Docsity

Transport Layer: Handling Corrupted ACK/NAK and Selective Repeat in TCP, Slides of Digital Systems Design

Toggle sidebar
bg1
Transport Layer 3-2
Chapter 3: Transport Layer
Our goals:
understand principles
behind transport
layer services:
multiplexing/demultipl
exing
reliable data transfer
flow control
congestion control
learn about transport
layer protocols in the
Internet:
UDP: connectionless
transport
TCP: connection-oriented
transport
TCP congestion control
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Transport Layer: Handling Corrupted ACK/NAK and Selective Repeat in TCP and more Slides Digital Systems Design in PDF only on Docsity!

Transport Layer^ 3-

Chapter 3: Transport LayerOur goals: ^ understand principlesbehind transportlayer services:^ ^ multiplexing/demultiplexing^ ^ reliable data transfer^ ^ flow control^ ^ congestion control

^ learn about transportlayer protocols in theInternet:^ ^ UDP: connectionlesstransport^ ^ TCP: connection-orientedtransport^ ^ TCP congestion control

Transport Layer^ 3-

Chapter 3 outline ^ 3.1 Transport-layerservices ^ 3.2 Multiplexing anddemultiplexing ^ 3.3 Connectionlesstransport: UDP ^ 3.4 Principles ofreliable data transfer

^ 3.5 Connection-orientedtransport: TCP^ ^ segment structure^ ^ reliable data transfer^ ^ flow control^ ^ connection management ^ 3.6 Principles ofcongestion control ^ 3.7 TCP congestioncontrol

Transport Layer^ 3-

Transport vs. network layer ^ network layer: logicalcommunicationbetween hosts ^ transport layer: logicalcommunicationbetween processes^ ^ relies on, enhances,network layer services

Household analogy:12 kids sending letters to12 kids ^ processes = kids ^ app messages = lettersin envelopes ^ hosts = houses ^ transport protocol =Ann and Bill ^ network-layer protocol= postal service

Transport Layer^ 3-

Internet transport-layer protocols^ ^ reliable, in-orderdelivery (TCP)^ ^ congestion control^ ^ flow control^ ^ connection setup^ ^ unreliable, unordereddelivery: UDP^ ^ no-frills extension of“best-effort” IP^ ^ services not available:^ ^ delay guarantees^ ^ bandwidth guarantees

applicationtransportnetworkdata linkphysical networkdata linknetworkphysicaldata linkphysicalnetworkdata linknetworkphysicaldata linkphysicalnetworkdata linkphysicalapplicationtransportnetworkdata linkphysical docsity.com

Transport Layer^ 3-

Multiplexing/demultiplexingP1^ applicationtransportnetworklink physical

applicationtransportnetworklink physical P4P2P3 P1applicationtransportnetworklink physicalhost 2 (^) host 1 host 3 Multiplexing at send host:Demultiplexing at rcv host:gathering data from multipledelivering received segmentssockets, enveloping data withto correct socketheader (later used fordemultiplexing)= process= socket

Transport Layer^ 3-

How demultiplexing works ^ host receives IP datagrams^ ^ each datagram has sourceIP address, destination IPaddress^ ^ each datagram carries 1transport-layer segment^ ^ each segment has source,destination port number(recall: well-known portnumbers for specificapplications) ^ host uses IP addresses & portnumbers to direct segment toappropriate socket

32 bitssource port #^ dest port #other header fieldsapplicationdata(message)TCP/UDP segment format

Transport Layer^ 3-

Connectionless demux (cont) DatagramSocket^ serverSocket

=^ new^ DatagramSocket(6428);

ClientIP:B P2 clientIP: A

P1P P3 SP: 6428SP: 6428DP: 9157DP: 5775SP: 9157SP: 5775DP: 6428DP: 6428serverIP: C SP provides “return address”

Transport Layer^ 3-

Connection-oriented demux ^ TCP socket identifiedby 4-tuple:^ ^ source IP address^ ^ source port number^ ^ dest IP address^ ^ dest port number ^ recv host uses all fourvalues to directsegment to appropriatesocket

^ Server host may supportmany simultaneous TCPsockets:^ ^ each socket identified byits own 4-tuple ^ Web servers havedifferent sockets foreach connecting client^ ^ non-persistent HTTP willhave different socket foreach request

Transport Layer^ 3-

Connection-oriented demux:Threaded Web Server

ClientIP:B P1 clientIP: A

P1P P4^ SP: 9157SP: 9157DP: 80DP: 80serverIP: C

P3 D-IP:C S-IP: AD-IP:C

SP: 5775DP: 80S-IP: BD-IP:C S-IP: B docsity.com

Transport Layer^ 3-

Chapter 3 outline ^ 3.1 Transport-layerservices ^ 3.2 Multiplexing anddemultiplexing ^ 3.3 Connectionlesstransport: UDP ^ 3.4 Principles ofreliable data transfer

^ 3.5 Connection-orientedtransport: TCP^ ^ segment structure^ ^ reliable data transfer^ ^ flow control^ ^ connection management ^ 3.6 Principles ofcongestion control ^ 3.7 TCP congestioncontrol

Transport Layer^ 3-

UDP: more ^ often used for streamingmultimedia apps^ ^ loss tolerant^ ^ rate sensitive ^ other UDP uses^ ^ DNS^ ^ SNMP ^ reliable transfer over UDP:add reliability atapplication layer^ ^ application-specificerror recovery!

32 bitssource port #^ dest port #Length, inbytes of UDPlength checksumsegment,includingheaderApplicationdata(message)UDP segment format

Transport Layer^ 3-

UDP checksumSender:^ ^ treat segment contentsas sequence of 16-bitintegers^ ^ checksum: addition (1’scomplement sum) ofsegment contents^ ^ sender puts checksumvalue into UDP checksumfield

Receiver: ^ compute checksum ofreceived segment ^ check if computed checksumequals checksum field value:^ ^ NO - error detected^ ^ YES - no error detected.But maybe errorsnonetheless? More later….

Goal: detect “errors” (e.g., flipped bits) in transmittedsegment

Transport Layer^ 3-

Chapter 3 outline ^ 3.1 Transport-layerservices ^ 3.2 Multiplexing anddemultiplexing ^ 3.3 Connectionlesstransport: UDP ^ 3.4 Principles ofreliable data transfer

^ 3.5 Connection-orientedtransport: TCP^ ^ segment structure^ ^ reliable data transfer^ ^ flow control^ ^ connection management ^ 3.6 Principles ofcongestion control ^ 3.7 TCP congestioncontrol

Transport Layer^ 3-

Principles of Reliable data transfer ^ important in app., transport, link layers ^ top-10 list of important networking topics! ^ characteristics of unreliable channel will determinecomplexity of reliable data transfer protocol (rdt)