TCP Connection Establishment: Lecture No.5
TCP Connection Establishment: Lecture No.5
TCP Connection Establishment: Lecture No.5
(a) (b)
(c) (d)
(e) (f)
Lecture No.5 Computer Networks Asst.Lec. Tareq Imad Ali
(g) (h)
(i) (j)
Fig.24. Encapsulation Process
Unlike the transport layer (OSI Layer 4), which manages the data transport
between the processes running on each host, network layer protocols specify the
packet structure and processing used to carry the data from one host to another
host. Operating without regard to the data carried in each packet allows the
network layer to carry packets for multiple types of communications between
multiple hosts. Figure (25-a to 25-i) illustrate the De-encapsulation process.
Lecture No.5 Computer Networks Asst.Lec. Tareq Imad Ali
(a) (b)
(c ) (d)
(e) (f)
Lecture No.5 Computer Networks Asst.Lec. Tareq Imad Ali
(g) (h)
(i)
Fig.25. De-Encapsulation Process
Encapsulating IP
IP encapsulates the transport layer segment or other data by adding an IP header.
This header is used to deliver the packet to the destination host. The IP header
remains the same from the time the packet leaves the source host until it arrives
at the destination host. Figure (26) illustrates how the transport layer PDU is then
encapsulated by the network layer PDU to create an IP packet. The process of
encapsulating data layer by layer enables the services at the different layers
to develop and scale without affecting the other layers. This means the
transport layer segments can be readily packaged by IPv4 or IPv6 or by any new
protocol that might be developed in the future. Routers can implement these
different network layer protocols to operate concurrently over a network. The
routing performed by these intermediate devices only considers the contents of
the network layer packet header. In all cases, the data portion of the packet, that
Lecture No.5 Computer Networks Asst.Lec. Tareq Imad Ali
is, the encapsulated transport layer PDU, remains unchanged during the network
layer processes.
Unreliable means that IP does not have the capability to manage and recover
from undelivered or corrupt packets. This is because while IP packets are sent
with information about the location of delivery, they contain no information that
can be processed to inform the sender whether delivery was successful. Packets
may arrive at the destination corrupted, out of sequence, or not at all. IP provides
no capability for packet retransmissions if errors occur. If out-of-order packets
are delivered, or packets are missing, then applications using the data, or
upper layer services, must resolve these issues. This allows IP to function very
efficiently. In the TCP/IP protocol suite, reliability is the role of the transport
layer.
IP operates independently of the media that carry the data at lower layers of the
protocol stack. As shown in the figure (30), IP packets can be communicated as
electronic signals over copper cable, as optical signals over fiber, or wirelessly as
radio signals.
It is the responsibility of the OSI data link layer to take an IP packet and prepare
it for transmission over the communications medium. This means that the
transport of IP packets is not limited to any particular medium. There is, however,
one major characteristic of the media that the network layer considers: the
maximum size of the PDU that each medium can transport. This characteristic
is referred to as the maximum transmission unit (MTU). Part of the control
Lecture No.5 Computer Networks Asst.Lec. Tareq Imad Ali
Communication between the data link layer and the network layer is the
establishment of a maximum size for the packet. The data link layer passes the MTU
value up to the network layer. The network layer then determines how large packets
can be. The default MTU 1500. In some cases, an intermediate device, usually a
router, must split up a packet when forwarding it from one medium to another
medium with a smaller MTU. This process is called fragmenting the packet or
fragmentation.