Docsity

IP Datagrams & Network Transmission: Format, Encapsulation, Fragmentation & Reassembly, Slides of Computer Networks

Partial preview of the text

Download IP Datagrams & Network Transmission: Format, Encapsulation, Fragmentation & Reassembly and more Slides Computer Networks in PDF only on Docsity!

COMPUTER

NETWORKS

Lecture-

Review Lecture 29

IP Datagram and Datagram

Forwarding

Connectionless service

Virtual Packets

IP Datagram Format and Size

Routing Table and Address Masks

Best Effort Delivery

IP Datagram Header Format

VERS - version of IP (currently 4)

H. LEN - header length (in units of 32 bits)

SERVICE TYPE - sender's preference for low latency, high reliability (rarely used)

TOTAL LENGTH - total octets in datagram

IDENT, FLAGS, FRAGMENT OFFSET - used with fragmentation

IP Datagram Header Format

TTL - time to live; decremented in each

router; datagram discarded when TTL = 0

TYPE - type of protocol carried in datagram;

e.g., TCP, UDP.

HEADER CHECKSUM - 1s complement of 1s

complement sum.

SOURCE, DEST ,IP ADDRESS - IP addresses

of original source and ultimate destination.Docsity.com

Chapter 21

IP Encapsulation,

Fragmentation and

Reassembly

Datagram Transmission and

Frames

IP internet layer

Constructs datagram Determines next hop Hands to network interface layer

Network interface layer

Binds next hop address to hardware address Prepares datagram for transmission

But ... hardware frame doesn't understand IP; how is datagram transmitted?

Encapsulation

Encapsulation across Multiple

Hops

Each router in the path from the source to the destination: Unencapsulates incoming datagram from frame. Processes datagram - determines next hop. Encapsulates datagram in outgoing frame.

Datagram may be encapsulated in different hardware format at each hop.

Datagram itself is (almost!) unchanged.

MTU

Every hardware technology specification includes the definition of the maximum size of the frame data area.

Called the Maximum Transmission Unit (MTU).

Any datagram encapsulated in a hardware frame must be smaller than the MTU for that hardware.

MTU and Heterogeneous

Networks

An internet may have networks with different MTUs.

Suppose downstream network has smaller MTU than local network?

Fragmentation

Each fragment is an independent datagram

Includes all header fields. Bit in header indicates datagram is a fragment. Other fields have information for reconstructing original datagram. FRAGMENT OFFSET gives original location of fragment.

Router uses local MTU to compute size of each fragment.

Puts part of data from original datagram in each fragment.

Puts other information into header.

Fragmentation

Datagram Reassembly

Fragments may arrive out of order; header

bit identifies fragment containing end of data from original datagram.

Fragment 3 identified as last fragment.

Fragment Identification

How are fragments associated with

original datagram?

IDENT field in each fragment matches

IDENT field in original datagram.

Fragments from different datagrams

can arrive out of order and still be sorted out.