IP Packet Ir Risanuri Hidayat M Sc IP

  • Slides: 8
Download presentation
IP Packet Ir. Risanuri Hidayat, M. Sc. IP Packet

IP Packet Ir. Risanuri Hidayat, M. Sc. IP Packet

Packet Format 0 4 Version 8 HLen 16 TOS 31 Length Ident TTL 19

Packet Format 0 4 Version 8 HLen 16 TOS 31 Length Ident TTL 19 Flags Protocol Offset Checksum Source. Addr Destination. Addr Options (variable) Pad (variable) Data 9/3/2021 IP Packet 2

Packet Format • Version—Versi IP yang digunakan (0100=4) • IP Header Length (IHL)—Datagram header

Packet Format • Version—Versi IP yang digunakan (0100=4) • IP Header Length (IHL)—Datagram header length dalam 32 -bit words. • Type-of-Service—Specifies how an upper-layer protocol would like a current datagram to be handled, and assigns datagrams various levels of importance. • Total Length—Panjang paket dalam bytes, termasuk data dan header. • Identification—Nilai integer ebagai identifikasi paket saat ini. Item ini berguna pada fragmentation jika paket terdiri atas potongan-potongan paket besar 9/3/2021 IP Packet 3

Packet Format • Flags—Consists of a 3 -bit field of which the two low-order

Packet Format • Flags—Consists of a 3 -bit field of which the two low-order (least-significant) bits control fragmentation. – The low-order bit specifies whether the packet can be fragmented. – The middle bit specifies whether the packet is the last fragment in a series of fragmented packets. – The third or high-order bit is not used. • Fragment Offset—Indicates the position of the fragment's data relative to the beginning of the data in the original datagram, which allows the destination IP process to properly reconstruct the original datagram. 9/3/2021 IP Packet 4

Packet Format • Time-to-Live—Maintains a counter that gradually decrements down to zero, at which

Packet Format • Time-to-Live—Maintains a counter that gradually decrements down to zero, at which point the datagram is discarded. This keeps packets from looping endlessly. • Protocol—Indicates which upper-layer protocol receives incoming packets after IP processing is complete. • Header Checksum—Helps ensure IP header integrity. • Source Address—Specifies the sending node. • Destination Address—Specifies the receiving node. • Options—Allows IP to support various options, such as security. • Data—Contains upper-layer information. 9/3/2021 IP Packet 5

Fragmentation and Reassembly H 2 H 1 H 3 Network 1 (Ethernet) Network 2

Fragmentation and Reassembly H 2 H 1 H 3 Network 1 (Ethernet) Network 2 (Ethernet) R 3 R 1 R 2 H 4 H 7 H 8 Network 4 (point-to-point) Network 3 (FDDI) H 5 9/3/2021 H 6 IP Packet 6

Fragmentation and Reassembly H 1 H 8 TCP R 1 IP IP ETH H

Fragmentation and Reassembly H 1 H 8 TCP R 1 IP IP ETH H 1 ETHIP (1400) 9/3/2021 R 2 R 3 IP FDDI R 1 FDDI IP PPP R 2 FDDIIP (1400) R 3 PPPIP(512) PPPIP(376) IP Packet TCP IP ETH H 8 ETHIP(512) ETHIP(376) 7

H 1 R 1 ETHIP (1400) R 2 FDDIIP (1400) =0 0 Offset Rest

H 1 R 1 ETHIP (1400) R 2 FDDIIP (1400) =0 0 Offset Rest of header PPPIP(512) PPPIP(376) Start of header Ident =x R 3 Ident =x 1 Offset =0 Rest of header 1400 data bytes 512 data bytes H 8 ETHIP(512) ETHIP(376) Start of header Ident =x 1 Offset = 512 Rest of header 512 data bytes Start of header Ident =x 0 Offset = 1024 Rest of header IP Header = 4 x 5 = 20 bytes 376 data bytes 9/3/2021 IP Packet 8