
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012
Transport Layer 3-^2
provide logical communication between app processes running on different hosts (^) transport protocols run in end systems
applicatio n transport network data link physical logical end-end transport applicatio n transport network data link physical
Transport Layer 3-^4
applicatio n transport network data link physical applicatio n transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical logical end-end transport
Transport Layer 3-^5 UDP: User Datagram Protocol [RFC 768] “no frills,” “bare bones” Internet transport protocol “best effort” service, UDP segments may be:
connectionless:
(^) streaming multimedia apps (loss tolerant, rate sensitive) (^) DNS (^) SNMP
(^) add reliability at application layer (^) application-specific error recovery!
treat segment contents, including header fields, as sequence of 16-bit integers checksum: addition (one’s complement sum) of segment contents sender puts checksum value into UDP checksum
compute checksum of received segment check if computed checksum equals checksum field value:
1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 wraparound sum checksum Note: when adding numbers, a carryout from the most significant bit needs to be added to the result
(a) no loss X
rdt3.0 in X
- rcv pkt - rcv pkt - send ack - send ack - send ack - rcv ackrdt3.0: stop-and-wait operation first packet bit transmitted, t = 0 sender receiver RTT last packet bit transmitted, t = L / R first packet bit arrives last packet bit arrives, send ACK ACK arrives, send next packet, t = RTT + L / R U sender =
. 008 30. = (^) 0. L / R RTT + L / R =
Pipelined protocols pipelining: sender allows multiple, “in-flight”, yet-to-be- acknowledged pkts
two generic forms of pipelined protocols: go-Back-N, selective repeat
Transport Layer 3-^16
k-bit seq # in pkt header “window” of up to N, consecutive unack’ed pkts allowed ACK(n): ACKs all pkts up to, including seq # n - “cumulative ACK” (^) may receive duplicate ACKs (see receiver) timer for oldest in-flight pkt timeout(n): retransmit packet n and all higher seq
GBN in action send pkt send pkt send pkt send pkt (wait) sender (^) receiver receive pkt0, send ack receive pkt1, send ack receive pkt3, discard, rcv ack0, send pkt4^ (re)send ack rcv ack1, send pkt pkt 2 timeout send pkt send pkt send pkt send pkt X loss receive pkt4, discard, (re)send ack receive pkt5, discard, (re)send ack rcv pkt2, deliver, send ack rcv pkt3, deliver, send ack rcv pkt4, deliver, send ack rcv pkt5, deliver, send ack ignore duplicate ACK 0 1 2 3 4 5 6 7 8 sender window (N=4) 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
Selective repeat receiver individually acknowledges all correctly received pkts
sender only resends pkts for which ACK not received
sender window