Unit-3 - Transport Layer
Unit-3 - Transport Layer
Computer Networks
Unit-3
Transport Layer
different hosts.
lo
gi
A transport protocols run in end
ca
enl
systems.
d-
en
d
Sender side: It breaks application
tra
ns
messages into segments, then
p
or
t
passes to network layer.
application
East Side
Hosts(End Systems) = Houses
Processes = Cousins
Sender Receiver
1 1110011001100110 1 1110011001100110
1 1101010101010101 1 1101010101010101
wraparound 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1011101110111011
+ +
sum 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0 1 1011101110111100
sum
checksum 0100010001000011 1 0100010001000011
1111111111111111
If one of the bits is a 0, then we can
say that error introduced into packet
sender receiver
side side
state state
1 event
2
actions
sender receiver
rdt_rcv(rcvpkt) &&
notcorrupt(rcvpkt)
extract(rcvpkt,data)
deliver_data(data)
udt_send(ACK)
rdt_rcv(rcvpkt) &&
notcorrupt(rcvpkt)
extract(rcvpkt,data)
deliver_data(data)
udt_send(ACK)
rdt_rcv(rcvpkt) &&
notcorrupt(rcvpkt)
extract(rcvpkt,data)
deliver_data(data)
udt_send(ACK)
extract(rcvpkt,data)
deliver_data(data)
sndpkt = make_pkt(ACK, chksum)
udt_send(sndpkt)
• Go-back-N Protocol
• Selective Repeat Protocol
Pipelined Protocol
Its a technique in which multiple requests are written out to a
single socket without waiting for the corresponding responses
(acknowledged).
✔ No. of Packets(request) must be increased.
✔ Data or Packet should be buffered at sender and/or receiver.
In Figure(b),
As long as thethe
sender
limiting
doesfactor
not send
is not
more
thewater
bucket
than
capacity,
the bucket
but can
the
In Figure(a), we see a thick pipe leading to a small-capacity
contain, carrying
internal no watercapacity
will be lost.
of the network.
receiver.
Unit: 3 – Transport Layer Darshan Institute of Engineering & Technology
Causes/costs of Congestion: Scenario 1
Two senders, Two receivers
One router, Infinite buffers
No retransmission
unlimited shared
output link buffers
Host B
Host A
A no buffer space!
Host B
Unit: 3 – Transport Layer Darshan Institute of Engineering & Technology
Causes/costs of Congestion: Scenario 2
Realistic: duplicate packets
Packets can be lost, dropped at router due to full buffers
Sender times out prematurely, sending two copies, both of which
are delivered
lin
timeout
copy lout
l'in
Host B
RTT
first steps in the congestion
control process.
It balances the amount of
data a sender can transmit
(known as the congestion
window) with the amount of
data the receiver can accept
(known as the receiver time
window).