Transport Layer1
Transport Layer1
Module 2
Introduction and Transport Layer Services
-provides logical-communication b/w application-
processes running on different hosts.
-implemented in the end-systems but not in network-
routers.
On the sender, the transport-layer
→ receives messages from an application-process
→ converts the messages into the segments and
→ passes the segment to the network-layer.
On the receiver, the transport-layer
→ receives the segment from the network-layer
→ converts the segments into to the messages and
→ passes the messages to the application-process.
Relationship between Transport and Network Layers
Multiplexing
At the sender, the transport-layer
→ gathers data-chunks at the source-host from different sockets
→ encapsulates data-chunk with header to create segments and
→ passes the segments to the network-layer.
The job of combining the data-chunks from different sockets to create a
segment is called multiplexing.
Demultiplexing
At the receiver, the transport-layer
→ examines the fields in the segments to identify the receiving-
socket and
→ directs the segment to the receiving-socket.
The job of delivering the data in a segment to the correct socket is
Endpoint Identification
RTT- 30msecs
Transmission rate (R)- 1 Gbps=109 bits/sec
Packet size(L) = 1000bytes=8000 bits(header + data)
Dtrans= L/R = (8000 bits/packet)/(109 bits/sec)
= 8 microsecs
t= RTT/2+ L/R =15.008 msec
With ACK received t= 30.008 msecs
Usender=(L/R)/(RTT+L/R) =0.008/30.008=0.00027
• RTT- 30msecs
• Transmission rate (R)- 1 Gbps=109 bits/sec
• Packet size(L) = 1000bytes=8000 bits(header + data)
• Dtrans= L/R = (8000 bits/packet)/(109 bits/sec)
= 8 microsecs
t= RTT/2+ L/R =15.008 msec
With ACK received t= 30.008 msecs
Usender=(L/R)/(RTT+L/R) =0.008/30.008=0.00027
Pipelined Reliable Data Transfer Protocols
Continued..
• The sender is allowed to send multiple packets
without waiting for acknowledgments.
• Pipelining has the following consequences:
– The range of sequence-numbers must be increased.
– The sender and receiver may have to buffer more than
one packet.
• Two basic approaches toward pipelined error
recovery can be identified:
• 1) Go-Back-N and 2) Selective repeat.
Stop-and-wait and pipelined sending
Go-Back-N (GBN)
• Alpha=0.125=1/8
• Beta=0.25
Reliable Data Transfer
IP is unreliable i.e. IP does not guarantee data
delivery.
TCP creates a reliable data-transfer-service on top of
IP’s unreliable-service.
At the receiver, reliable-service means
→ data-stream is uncorrupted
→ data-stream is without duplication and
→ data-stream is in sequence.
A Few Interesting Scenarios
First Scenario
Slow start
Congestion avoidance
Fast recovery.
• Slow Start