Frames & Packets

Cornici Ethernet

Cornici Ethernet risiedono nello strato Data Link del modello OSI 7 Layer. Sono il blocco di rete di base delle moderne reti IP. Poiché un sistema estrae i dati dal filo fisico, la Cornice Ethernet è il primo strato che deve essere rimosso o decapsulato prima di leggere le informazioni.

Cornice Ethernet

8 Bytes 1 Byte 6 Bytes 6 Bytes 4 Bytes 2 Bytes 9000 Bytes (Jumbo Frames) 4 Bytes
Preamble SFD (Start Frame Delimeter) Destination Address Source Address VLAN TAG Type / Length DATA Frame Check Sequence (CRC)

IPv4 e IPv6

Sia IPv4 che IPv6 risiedono nello strato di rete del modello OSI 7 Layer. Essi forniscono l'indirizzo per i sistemi di comunicare al di fuori della subnet locale. Una volta che un sistema ha decapsulato la Cornice Ethernet il sistema valuta le informazioni IP presentate. IPv4 è stato creato nel 1981 come parte di IETF RFC 791 ma è stato distribuito per la prima volta in1983. Tuttavia, come internet è cresciuto è diventato evidente che lo spazio IPv4 pubblico sarebbe completamente consumato che ha spinto la creazione di IPv6. Lo spazio dell'indirizzo IPv4 è stato ufficialmente esaurito24 settembre 2015.Poiché tale IPv6 è ora tutto ciò che può essere acquistato daAREAche è il Registro Americano di Internet Numbers.IANAè l'organizzatore globale di Internet Indirizzo spazio e ci sono altre regioni.

Intestazione IPv4

IPv4 Header (32 bits)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Version IHL (header Len) Type Of Server (TOS) Total Length
4 Identification IP Flag Fragment Offset
8 Time To Line (TTL) Protocol Header Checksum
12 Source Address
16 Destination Address
20 IP Option (Variable Length, Optional, not common)

Intestazione IPv6

IPv6 Header (128 bits)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Version Traffic Class Flow Label
4 Payload Length Next Header Hop Limit
8-20 Source Address
24 - 36 Destination Address

Intestazione TCP

TCP è uno dello strato di incapsulamento finale prima di entrare nel sistema operativo. I server di solito ascolteranno su una porta specifica per funzionare un protocollo. Ad esempio, un server web non crittografato ascolta tipicamente la porta TCP 80.

TCP Header (60 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Source Port # (16 bits) Destination Port # (16 bits)
4/td> Sequence Number (32 bits)
8 Acknowledgement Number (32 bits)
12 Header Length (4) Reserved (6) URG ACK PSH RST SYN FIN Window Size (16 bits)
16 TCP Checksum (16 bits) Urgent Pointer (16 bit)
20 Options (if any, variable length, padded with 0's)
24 Actual Data Payload

Testa UDP

UDP è allo stesso livello di TCP in quanto anche il suo strato di incapsulamento finale prima di entrare nel sistema operativo. I server di solito ascolteranno su una porta specifica per funzionare un protocollo. Ad esempio, un server DHCP sarà elencato sulla porta UDP 67 e 68 per una richiesta DHCP.

UDP Header (8 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Source Port # (16 bits) Destination Port # (16 bits)
4 Length (16 bits) Checksum (16 bits)

Testa ICMP

ICMP è allo stesso livello di TCP e UDP ma viene utilizzato per il controllo della rete con ARP e ping.

ICMP Header (8 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Type (8 bits) Code (8 bits) Checksum (16 bits)
4 Other Message Specific Information (32 bits)

Testa IGMP

IGMP è allo stesso livello di TCP e UDP e ICMP ma viene utilizzato per le comunicazioni multicast. Di seguito è riportato l'intestazione IGMPv1

IGMP Header Versione 1

IGMP Header Version1 (8 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Version (4 bits) Type (4 bits) Unused (8 bits) Checksum (16 bits)
4 Group Address (32 bits)

IGMP Header Versione 2

IGMP Header Version2 (8 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Type (8 bits) Max Response Time (8 bits) Checksum (16 bits)
4 Group Address (32 bits)

Internet Protocol Security (IPSEC) Header

IPSEC è una suite di protocollo di sicurezza costruita per le comunicazioni IP. Ogni pacchetto è autenticato e crittografato prima della trasmissione.

Testa di autenticazione IPSEC

IPSEC Authentication Header(12 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Next Header (8 bits) Payload Length (8 bits) Reserved (16 bits)
4 Security Parameters Index (SPI) (32 bits)
8 Sequence Number (32 bits)
16 Integrity Check Value (ICV) (32 bits or more as required)

Responsabile IPSEC ESP

IPSEC Encapsulating Security Payload (ESP) Header
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Security Parameter Index (SPI) (32 bits)
4 Sequence Number (32 bits)
8 Payload Data (32 bits or more)
... Padding (0 - 255 Bytes)
... Padding Length (8 Bytes) Next Header (8 Bytes) Integrity Check Value (ICV) (4 bytes or more)

Generico Routing Encapsulation (GRE) Header

GRE è un protocollo di tunneling che racchiude altri dati. Una volta che i dati sono incapsulati, il traffico sembrerà che un utente finale sia un link punto a punto anche se ci possono essere diversi collegamenti instradati traversi tunnel. Può essere utile trasferire un tipo di rete, come il traffico degli ospiti, su un'altra rete, come una rete aziendale, se la crittografia non è necessaria.

Generic Routing Encapsulation Header(16 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Checksum Present (1 bits) Reserved (12 bits) Version Number (3 bits) Protocol Type (16 bits)
4 Checksum (optional) (16 bits) Reserved (optional) (16 bits)

Incapsulamento di routine generico (GRE) Header - Extended

Nel settembre 2000 l'ETF in RFC2890aggiunte all'intestazione GRE.

Generic Routing Encapsulation Header(32 Bytes)
Starting Byte Byte Byte Byte Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 Checksum Present (1 bits) Key Present (1 bits) Sequence Number Present (1 bits) Reserved (12 bits) Version Number (3 bits) Protocol Type (16 bits)
4 Checksum (optional) (16 bits) Reserved (optional) (16 bits)
8 Key (optional) (32 bits)
12 Sequence Number (optional) (32 bits)

Modello di livello OSI 7

Come questo articolo riferisce il modello OSI 7 Layer incluso come riferimento Applicazione

Presentazione
Sessione
Trasporti
Rete di rete
Link dei dati
Fisica