Docsity

Transport Protocol - Lecture Notes | LTSP 123, Study notes of Spanish Language

Partial preview of the text

Download Transport Protocol - Lecture Notes | LTSP 123 and more Study notes Spanish Language in PDF only on Docsity!

CS423: Lecture 24, Transp ort

Proto col

George Varghese

Novemb er 25, 1996

Wiring Concentrator 100 Mbps:single lane

Parallel LAN Multilane highway

Inputs O(N*N) crosspoints Scalable NlogNswitches

  1. Integrated 2)Virtual circuits (multicast also)
  2. Cell switching for latency and switch design.

Video In

Videoout

WS−

WS−2 server

Videoout Videoout

Di erences b etween Data Link and Transp ort

 Network instead of single FIFO link { packets can b e delayed for large amounts of time { duplicates can b e created by packet lo oping: delayed duplicates imply need for large sequence numb ers. { packets can b e reordered by route changes.  Connection management { Only done for Data Link when a link crashes or comes up { Lots of clients dynamically requesting connections { HDLC didn't work: here more at stake, have to do it right.  Data link only needs sp eed matching b etween receiver and sender ( ow control). Here we also need sp eed matching b etween sender and network (congestion control)  Transp ort needs to dynamically round-trip delay to set retransmit timers.

Delayed Duplicates

 Because of non-FIFO delivery and rep eated sending at sender, receiver can get delayed duplicates

 Delayed duplicates can cause serious damage for connection management as we see from the following John and Martha story.

JOHN MARTHA

Hi

Hi Lets meet at the cafe

OK Bye

Bye

(at beach) (^) old duplicates

Goes to cafe

JOHN MARTHA (at beach) (^) old duplicates

Last heard 15 from John

Hi, 13

Lets meet at the cafe, 14

Bye, 15

Discard as duplicates

Martha has to remember last number from John for worst−case packet lifetime. Called Timer−based connection management.

JOHN MARTHA

(at beach) (^) old duplicates

Hi, x

Hi, x, y Lets meet at the cafe, x, z

Choose unused y

Reject

Crashes

 Each send (e.g., John, Martha) needs to rememb er only one numb er on NVRAM that is incremented every time a new connection is set up. Without NVRAM, pick a random numb er from a large space.

 Note that Martha's validation numb er protects herself, and John's protects himself. Sauce for the go ose is sauce for the gander.

 Same ideas used in TCP or OSI

Disconnect−Confirm Disconnect−Ack

IP VERSUS OSI: HANDSHAKES

CI(seq =x)

ACK(x)

DATA(x)

CC(seq =y, ack =x)

CI(CID =x,−)

CC(CID =x,y)

DATA(CID=x,y,seq=0) ACK(CID=x,y,seq=1)

IP

OSI

In IP the handshake sets the initial sequence numbers; in OSI, it sets up a CID and resets seq. numbers

TRANSFERRING A FILE

H1 H

copy f1 f2@H Connect(FileTransfer) Wakeup Process Connect Ack Write f2 (^) Open temp

Copyto buffer f

OK

Ack

Block 1(B1) Write B1 to temp Connection CRASH times out (^) Connect(FileTransfer) Connect Ack Write f B1 OK B Ack FileDone

RESTART(remove temp2) Wakeup Process

OK Disconnect

Set f2=temp

Open temp Write B1 to temp

Disconnect−Confirm Disconnect−Ack

Write B2 to temp