UNIT-4: IP Datagrams and Forwarding
UNIT-4: IP Datagrams and Forwarding
Virtual Packets :
To overcome the heterogeneity, internet protocol software
defines an internet packet format that is independent of the
underlying hardware. The result is universal, Virtual packet
that can be transferred across the underlying hardware. As the
term virtual implies, protocol software creates and handles
internet packets-the underlying hardware does not understand
or recognize the internet packet format. As the term universal
implies, each host or router in an internet contains protocol
software that understands internet packets.
TCP/IP protocols use the name IP datagram to refer to an
internet packet. An IP datagram has the same general format
as a hardware frame; the datagram begins with a header
following by a data area.
IP Datagram forwarding :
Datagrams traverse an internet by following a path from
their initial source through routers to the final destination.
Each router along the path receives the datagram, extracts the
destination address from the header, and uses the destination
address to determine a next hop to which datagram should be
sent. The router then forwards the datagram to the next hop,
either the final destination or another router.
To make the selection of a next hop efficient, each IP
router keeps the information in a routing table. A routing table
must be initialized, when the router boots, and must be
updated if the topology changes/hardware fails.
Conceptually, a routing table contains a set of entries that
each specify a destination and the next hop used to reach that
destination.
Example:
Destination
Net 1
Net 2
Net 3
Net 4
Next hop
R1
deliver direct
deliver direct
R3
Destination
Mask
Next hop
30.0.0.0
40.0.0.0
50.8.0.0
60.6.10.0
255.0.0.0
255.0.0.0
255.255.0.0
255.255.255.0
40.0.0.7
deliver dierct
deliver dierct
50.8.0.9
than the MTU of the network over which it must be sent, the
router divides the datagram into smaller pieces called
fragments, and sends each fragment independently. Fragment
has same format as other datagrams.
MTU
TCP
TCP-Transmission Control Protocol :
TCP is a connection-oriented protocol. It does not mean it
has a physical connection between sender and receiver. TCP
provides the function to allow a connection virtually exists
also called virtual circuit or connection. TCP offers a reliable
byte-stream delivery service .
TCP-Services :
Services provided by TCP applications are :
Retransmission Times :
Consider a case of packet loss on two connections that
have different round-trip delays.
As the diagram shows, TCP sets the transmission to be
slightly longer than the mean round-trip delay. If the delay is
large, TCP uses a large transmission timeout; if the delay is
small, TCP uses a small timeout. The goal is to wait long
enough to determine that a packet was lost, without waiting
longer than necessary.
Timeout and retransmission on two connections that that have different round-trip
delays. TCP optimizes throughput by using a round-trip estimate to compute a
retransmission timer.
Three-Way handshake :
To guarantee that connections are established or
terminated reliably, TCP uses a Three-Way -Handshake in
which three messages are exchanged. Scientists have proved
that a three way exchange is necessary and sufficient to ensure
unambiguous agreement despite packet loss, duplication and
delay.
TCP uses the term Synchronization segment(SYN
segment) to describe messages in a three-way-handshake used
to create a connection, and the term Finish segment(FIN
Congestion Control :
One of the most interesting aspects of TCP is a mechanism
for Congestion control. In most modern internets, packet loss
is more likely to be caused by congestion than a hardware
failure. Interestingly, transport protocols that retransmit can
exacerbate the problem of congestion by injecting additional