Our goals: understand d principles. behind transport layer protocols in the. Internet: layer services:

Size: px
Start display at page:

Download "Our goals: understand d principles. behind transport layer protocols in the. Internet: layer services:"

Transcription

1 Chapter 3: Transport Layer Our goals: understand d principles i learn about transport t behind transport layer protocols in the layer services: Internet: multiplexing/ demultiplexing reliable data transfer flow control congestion control UDP: connectionless transport, unreliable delivery of segments TCP: connection-oriented transport, reliable delivery of byte stream Transport Layer (SSL) 3-1 1

2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer (my slides for Section 3.4 do not follow Kurose & Ross) 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL) 3-2 2

3 Transport services and protocols provide logical communication between app processes on different hosts transport protocol runs in end systems (primarily) send side: breaks app messages into segments, passes to network layer rcv side: reassembles segments into messages, passes to app layer application transport network data link physical application transport network data link physical Transport Layer (SSL) 3-3 3

4 Internet transport-layer protocols unreliable, unordered datagram delivery by UDP no-frills extension of besteffort IP reliable, in-order byte delivery by TCP connection setup flow control congestion control services not available: delay guarantees bandwidth guarantees application 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 application transport network data link physical Transport Layer (SSL) 3-4 4

5 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL) 3-5 5

6 Multiplexing/demultiplexing Demultiplexing at rcv host: deliver received segments to correct sockets socket process/thread Multiplexing at send host: gather data from multiple sockets, encapsulate data with header (later used for demultiplexing) application P3 P1 P1 application P2 P4 application transport network link transport network link transport network link physical physical host 1 host 2 host 3 physical Transport Layer (SSL) 3-6 6

7 How demultiplexing works host receives IP datagrams 32 bits It uses IP addresses in layer- 3 header & port numbers in layer-4 header to direct segment to appropriate socket source port # dest port # other header fields application data (message) TCP/UDP segment format Transport Layer (SSL) 3-7 7

8 Connectionless onless demultiplexing UDP socket identified by two-tuple: (dest IP address, dest port number) When host receives UDP segment: directs UDP segment to socket with destination port number IP datagrams from different sources directed to same UDP socket Transport Layer (SSL) 3-8 8

9 Connection-oriented or ented demux Server has welcome and connection sockets welcome socket is identified by server s IP address and a port number TCP connection socket identified d by 4-tuple: source IP address source port number dest IP address dest port number Server may support many simultaneous TCP connection sockets with clients: each connection socket and the welcome socket have the same port number in server host receiving host uses all four values to direct segment to appropriate connection socket Transport Layer (SSL) 3-9 9

10 Connection-oriented demux (cont) P1 P4 P2 P1P3 SP: 5775 DP: 80 S-IP: B D-IP:C client IP: A SP: 9157 SP: 9157 DP: 80 DP: 80 server S-IP: A S-IP: B IP: C D-IP:C D-IP:C Client IP:B Transport Layer (SSL)

11 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

12 UDP: User Datagram Protocol [RFC 768] best effort service, UDP segments (aka datagrams) may be: lost delivered out of order to appl connectionless: no handshaking ng between UDP sender, receiver each UDP segment handled independently of others Length, in bytes of UDP segment including header 32 bits source port # dest. port # length checksum Application data (message) UDP segment format Transport Layer (SSL)

13 UDP (more) suitable for interactive streaming multimedia applications loss tolerant min rate required other UDP uses, e.g. DNS SNMP DHCP reliable transfer over UDP? add reliability in application layer application-specific p error recovery Advantages of UDP no congestion control: UDP can blast away as fast as desired d small segment header no connection establishment (which can add delay) simple: no connection state at sender, receiver Transport Layer (SSL)

14 Internet checksum Sender: treat segment as a sequence of 16-bit i t integers (with checksum field initialized to zero) add integers using 1 s complement arithmetic and take 1 s complement of the sum put result as checksum value into UDP checksum field detail: pseudoheader consisting of protocol no., IP addresses, segment length field (again) included in checksum calculation Receiver: compute 1 s complement sum of received segment (checksum field included) check if computed sum equals sixteen 1 s: NO - error detected YES - no error detected But maybe errors nonetheless? More later. Transport Layer (SSL)

15 Internet Checksum Example Notes In ones complement arithmetic, a negative integer -x is represented as the complement of x,, i.e., each bit of x is inverted When adding numbers, a carryout from the most significant bit needs to be added to the result Example: add two 16-bit integers wraparound sum checksum Transport Layer (SSL)

16 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer (my slides do not follow Kurose & Ross) 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

17 Principles of Reliable data transfer important in application, transport, link layers top-10 list of important networking topics! Transport Layer (SSL)

18 Principles of Reliable data transfer important in app., transport, link layers top-10 list of important networking topics! characteristics of unreliable channel will determine complexity of reliable data transfer protocol (rdt) Transport Layer (SSL)

19 Principles of Reliable data transfer important in app., transport, link layers top-10 list of important networking topics! characteristics of unreliable channel will determine complexity of reliable data transfer protocol (rdt) Transport Layer (SSL)

20 Channel Abstractions Lossy FIFO channel delivers a subsequence in FIFO order example: delivery service provided by a physical link Lossy, reordering, duplicative i (LRD) channel example: delivery service provided d by IP or by UDP protocol Transport Layer (SSL)

21 Stop-and-wait ARQ (automatic repeat request) Error-free operation Sender Time Receiver ack ack Transport Layer (SSL)

22 Stop-and-wait ARQ Retransmission after timeout Recovery from loss of frame timeoutt retransmission Sender Error Time Receiver ack Transport Layer (SSL)

23 Stop-and-wait ARQ Retransmission i after timeout to recover from loss of ack Receiver gets duplicate frame Sequence number needed in frame Sender Receiver timeout Error retransmission Time Transport Layer (SSL)

24 Stop-and-wait ARQ Sequence number also needed d in ack timeout retransmission Sender thinks this is an ack for frame 1 Sender Time Receiver ack ack Error Transport Layer (SSL)

25 Stop-and-wait ARQ Operation with 1-bit sequence numbers in frames and acks Discard timeout timeout Sender ACK 0 ACK 0 Time Receiver Error Transport Layer (SSL)

26 Alternating-Bit Protocol Sender P1 (initial state = 1a) Receiver P2 (initial state = 1a) -D1 accept data 1a 1b +A1 -D0 +A0 +A1 timeout 4b 4a 2a 2b timeout -D1 +A0 3b Sender and Receiver specified by communicating finite-state machines Notation for arc labels -m send message m +m receive message m if it is waiting to be received 3a accept data 1b -A1 +D1 1a msgs in transit -A1 +D0 -D0 4b 2a deliver data deliver data 4a 2b +D1 -A0 +D0 3a 3b -A0 Protocol state space is infinite Transport Layer (SSL)

27 Alternating-Bit ng t Protocol (cont.) Assertion: If Sender and Receiver communicate via lossy FIFO channels, the alternating-bit protocol provides reliable in-order data delivery. Assumption: A frame is retransmitted infinitely many times if it is lost infinitely many times. Note: A real protocol is typically designed d to retransmit a fixed number of times (say k). Transport Layer (SSL)

28 Stop-and-wait ARQ performance analysis T f Sender 2τ + T A + T P Time Receiver ack T A τ T P τ Transport Layer (SSL)

29 P = probability transmission is unsuccessful b = Prob[success after i transmissions] for i = 1,2,... i i 1 bi = P P 1 (1 ) Average number of transmissions per frame i 1 Nf = ibi = i P P i= 1 i= 1 = (1 P) i= 1 i P i 1 (1 ) d i d = (1 P ) P = (1 P ) P dp dp i= 1 i= 0 d 1 1 = (1 P) = (1 P) dp 1 P (1 P) 1 = = N 1 P f 2 i Transport Layer (SSL)

30 Timeout duration T >2τ +T A +T P Each unsuccessful transmission uses T f + T Each successful transmission i uses T f + 2τ + T A + T P Average time per frame (N f 1)(T f +T) + (T f + 2τ + T A + T P ) Max. utilization (throughput) of stop-and-wait U = T f P ( T + T ) + T + 2τ + T + T 1 P f f A P Transport Layer (SSL)

31 Effect of propagation delay & transmission time Assume P = 0, T A = 0, T P = 0 Note: U τ = = T f = T f T f + 2τ τ T f = a (upper bound) distance propagation speed fram e length transm ission rate where a = τ T f Transport Layer (SSL)

32 Performance of AB protocol AB protocol works, but performance degrades for channels with large delay-bandwidth product example: 1 Gbps link, 15 ms prop. p delay, 1KByte packet T transmit = 8Kbits 10**9 bits/sec = 8 microsec U = 8 microsec microsec = the protocol limits use of available bandwidth Transport Layer (SSL)

33 Pipelined protocols Pipelining: i sender allows multiple, l in-flight, yet-tobe-acknowledged packets range of sequence numbers must be increased buffering at sender and/or receiver Pipelined protocols: (i) concurrent logical channels (used in ARPANET), ),(ii) sliding window protocol Transport Layer (SSL)

34 Sliding Window Protocol Consider an infinite array, Source, at the sender, and an infinite it array, Sink, at tthe receiver. P1 Sender Source: send window a 1 a s 1 s acknowledged unacknowledged Sink: next expected received r + RW 1 P2 Receiver r delivered receive window RW receive window size SW send window size (s - a SW) Transport Layer (SSL)

35 Sliding Windows in Action Data unit r has just been received by P2 Receive window slides forward P2 sends cumulative ack with sequence number it expects to receive next (r+3) P1 Sender Source: send window a 1 a s 1 s acknowledged unacknowledged r+3 Sink: P r Receiver delivered next expected r + RW 1 receive window Transport Layer (SSL)

36 Sliding Windows in Action P1 has just received cumulative ack with r+3 as next expected sequence number Send window slides forward Source: send window P1 Sender a 1 a s 1 s acknowledged P2 Receiver Sink: r delivered next expected r + RW 1 receive window Transport Layer (SSL)

37 Sliding Window protocol Functions provided error control (reliable delivery) in-order delivery flow and congestion control (by varying send window size) TCP uses cumulative acks (needed for correctness) Other kinds of acks (to improve performance) selective nack selective ack (TCP SACK) bit-vector representing entire state of receive window (in addition to first sequence number of window) Transport Layer (SSL)

38 P1 Sender Sliding Windows for Lossy FIFO Channels A small number of bits in packet header for sequence number Necessary and sufficient condition for correct operation: SW + RW MaxSeqNum Necessity: Source: a 1 a acknowledged send window unacknowledged RW receive window size SW send window size P2 Receiver Sink: delivered next expected receive window Transport Layer (SSL)

39 Sliding Windows for Lossy FIFO Channels Sufficiency can only be demonstrated by using a formal method to prove that the protocol provides reliable in-order delivery. See Shankar and Lam, ACM TOPLAS, Vol. 14, No. 3, July Interesting special cases SW = RW = 1 alternating-bit protocol SW = 7, RW = 1 out-of-order arrivals not accepted, e.g., HDLC SW = RW Transport Layer (SSL)

40 Sliding Windows for LRD Channels Assumption: Packetshavebounded lifetime L Be careful how fast sequence numbers are consumed (i.e., by arrival of data to be sent into network) (send rate) L < MaxSeqNum TCP 32-bit sequence numbers counts bytes assumes that datagrams will be discarded by IP if too old Transport Layer (SSL)

41 Sliding Window Protocol Performance Analysis Go to slide 3-46 Assumptions ack transmission time is negligible, T A = 0 receiver processing time is negligible, g T P = 0 send window size is W T f T f time WT f 2τ ACK τ WT f... (a) WT f >2τ + T f (b) WT f <2τ + T f Transport Layer (SSL)

42 Performance for Error-Free Channels Maximum utilization U = 1 WT f > 2τ +T f WT f WT f 2τ +T f T f + 2τ Define a = τ/t f U = 1 W > 2a+ 1 W 1+ 2a W 2a+ 1 W=1 is special case of alternating-bit protocol Transport Layer (SSL)

43 Performance Analysis for Error- Prone Channels Define N f = Average number of transmissions per frame Maximum utilization U = 1 W > 2a+1 N f W/ N f 1+ 2a W 2a+1 To determine N f for two cases f f Selective repeat (optimistic performance) Go-back-N (pessimistic performance) Transport Layer (SSL)

44 Performance Analysis of Error-Prone Channels P = probability a transmission is unsuccessful Selective repeat (-> upper bound on U) N f = 1 1 P 1 P W> 2a+ 1 U = W(1 P) W 2a a Go-back-N (-> lowerboundonu) on Each lost frame requires the retransmission of N frames where 1 N W Transport Layer (SSL)

45 Go-back-N (cont.) With probability (1 P)P i, a frame requires 1+iN transmissions to succeed, for i=0,1,... N = (1 + in) (1 P) P f i= 0 i = (1 P ) P + NP(1 P ) i P i i= 0 i= 0 d = 1 + NP(1 P) P dp i = 0 d 1 = 1 + NP (1 P ) dp 1 P 1 = 1 + NP(1 P) (1 ) 2 P NP = P i i 1 Transport Layer (SSL)

46 What is N? For WT > 2 τ + T f NT N N f f Go to slide 3-41 f f T a Case (a) 2τ Go-back-N (cont.) From previous slide N f NP = 1+ 1 P (1 + 2 a) P 1 P + P + 2aP 1 + 2aP = P = 1 P = 1 P For WT 2τ + T Case (b) f N = W N f f WP 1 P + WP = 1+ = 1 P 1 P Transport Layer (SSL)

47 Go-back-N (cont.) Recall (from slide 3-43) U = 1 W > 2a+1 N f W/ N f W 2a a From previous slide N N f f 1+ 2aP = 1 P 1 P + WP = 1 P Maximum utilization U 1 P W > 2a aP = W(1 P) W 2a+ 1 ( (1+ 2 a )(1 P+ WP) Transport Layer (SSL)

48 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

49 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 connection-oriented handshaking initializes sender, receiver state before data exchange point-to-point two sender-receiver pairs bi-directional data flows in same connection MSS: maximum segment size less than MTU of directly connected network socket door application writes data TCP send buffer reliable, in-order byte steam service no message boundaries send and receive buffers pipelined send window size determined by TCP congestion and flow control segment application reads data TCP receive buffer Transport Layer (SSL) 3-49 socket door 49

50 TCP segment structure P1 P2 Send Receive Receive Send URG: urgent data (generally not used) ACK # count in valid 32-bit words PSH: push data now (generally not used) RST, SYN, FIN: connection estab. (setup, teardown commands) Internet checksum (as in UDP) 32 bits source port # dest port # sequence number head len acknowledgement number not used UAP R S F checksum Receive window Urg data pnter Options (variable length) application data (variable length) count by bytes of data (not segments) # bytes rcvr willing to accept Control info for both forward and reverse data transfers Transport Layer (SSL)

51 TCP seq. # s and ACKs Seq. # sequence number of first byte in segment s data ACK seq # of next byte expected from other side cumulative ACK Q: how receiver handles out-of-order segments? TCP spec doesn t say, up to implementor User types C host ACKs receipt of echoed C Host A Host B simple telnet scenario host ACKs receipt of C, echoes back C time Transport Layer (SSL)

52 TCP Round Trip Time and Timeout Q: how to set TCP timeout value? longer than RTT but RTT varies, may be too short or too long too short: premature timeout unnecessary retransmissions too long: slow reaction to segment loss Q: how to estimate RTT? SampleRTT: measured time from segment transmission until ACK receipt ignore retransmissions SampleRTT will vary, want estimated RTT smoother average several recent measurements, not just current SampleRTT Transport Layer (SSL)

53 TCP Round Trip Time and Timeout EstimatedRTT = (1- α)*estimatedrtt + α*samplertt Exponentially weighted moving average influence of past sample decreases exponentially fast typical value: α = Transport Layer (SSL)

54 Example RTT estimation: RTT: gaia.cs.umass.edu to fantasia.eurecom.fr T (milliseconds) RT time (seconnds) SampleRTT Estimated RTT Transport Layer (SSL)

55 Setting the timeout interval EstimtedRTT plus safety margin large variation in EstimatedRTT -> larger safety margin first estimate of how much SampleRTT deviates from EstimatedRTT: DevRTT = (1-β)*DevRTT + β* SampleRTT-EstimatedRTT (typically, β = 0.25) Then set timeout interval: TimeoutInterval = EstimatedRTT + 4*DevRTT Transport Layer (SSL)

56 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

57 TCP reliable data transfer TCP creates reliable service on top of IP s unreliable service Cumulative acks TCP uses single retransmission timer Retransmissions are triggered by: timeout events duplicate acks Initially consider simplified TCP sender: ignore duplicate acks ignore flow control, congestion control Transport Layer (SSL)

58 Sliding Window Protocol At the sender, a will be pointed to by SendBase, and s by NextSeqNum P1 Sender Source: send window a 1 a s 1 s acknowledged unacknowledged Sink: next expected received r+rw 1 P2 Receiver r delivered d receive window RW receive window size SW send window size (s - a SW) Transport Layer (SSL)

59 NextSeqNum = InitialSeqNum SendBase = InitialSeqNum loop (forever) { switch(event) TCP sender event: data received from application above and send window has enough room create TCP segment with sequence number NextSeqNum if (timer currently not running) (simplified) start timer pass segment to IP NextSeqNum = NextSeqNum + length(data) event: timer timeout retransmit not-yet-acknowledged segment with smallest sequence number start timer Note: event: ACK received, with ACK field value = y y > SendBase if (y > SendBase) { SendBase = y means new data if (there are currently not-yet-acknowledged segments) ack ed start timer; else stop timer } } /* end of loop forever */ Transport Layer (SSL)

60 TCP: retransmission scenario (1) Host A Host B SendBase =92 tim meout X loss lost ACK scenario restart timer for seq= 92 SendBase = 100 Stop timer time Transport Layer (SSL)

61 TCP retransmission scenario (2) Host A Host B SendBase = 92 SendBase = 120 Stop timer Seq 92 tim meout X loss Cumulative ACK scenario time Transport Layer (SSL)

62 TCP: retransmission scenario (3) premature timeout scenario SendBase= 92 Host A Host B restart timer for seq= 100 restart timer for seq= 92 Sendbase = 100 SendBase = 120 Seq=9 92 timeout stop timer SendBase = 120 time What does Host A do here? Transport Layer (SSL)

63 Fast Retransmit Time-out period often relatively long: long delay before resending lost packet Detect lost segments via duplicate ACKs Sender often sends many segments back-toback If segment is lost, there will likely l be many duplicate ACKs. If sender receives 3 duplicate ACKs for the same data, it supposes that segment after ACKed data was lost: fast retransmit: resend segment before timer expires Transport Layer (SSL)

64 Host A Host B X or 2 nd segm timeout fo ent time Resending a segment after triple duplicate ACK without waiting for timeout Transport Layer (SSL)

65 Fast retransmit algorithm: event: ACK received, with ACK field value = y if (y > SendBase) { SendBase = y if (there is a not-yet-acknowledged segment) start timer } else { increment count of dup ACKs received for y if (count of dup ACKs received for y = 3) { resend segment with sequence number y reset timer for y } a duplicate ACK for fast retransmit already ACKed segment Transport Layer (SSL)

66 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

67 TCP Flow Control flow control sender won t overrun receiver s buffers by transmitting too much, too fast receiver: explicitly informs sender of (dynamically y changing) amount of free buffer space RcvWindow field in TCP segment header sender: keeps amount of transmitted, unacked data less than most recently received RcvWindow value buffer at receive side of a TCP connection Transport Layer (SSL)

68 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

69 TCP Connection Management Three way handshake initialize TCP variables seq. #s buffers, flow control info (e.g. RcvWindow) Step 1: client end system sends TCP SYN control segment to server - initial seq number chosen at random Step 2: server end system Active participant p Passive participant Step server end system (client) (server) receives SYN, replies with SYNACK control segment allocates buffers specifies server-to-receiver initial seq. # (chosen at random) Step 3: client end system replies with ack # (likely piggybacked in segment with app data) Transport Layer (SSL)

70 TCP Connection Management (cont.) Closing a connection: client closes socket Step 1: client end system sends TCP FIN control message to server close client server close Step 2: server receives FIN, replies with ACK. Later no more data to send. It closes connection, sends FIN. timed wait closed Transport Layer (SSL)

71 TCP Connection Management (cont.) Step 3: client receives FIN, replies with ACK and client server enters timed wait close will respond with ACK to a retransmitted FIN (due to loss of previous ACK) Step 4: server receives ACK. Its connection is closed. Step 5: client closes connection at the end of timed wait closing timed wait Note: protocol spec allows simultaneous FINs closed close closed Transport Layer (SSL)

72 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

73 Principles of Congestion Control Congestion: informally: too many sources sending too much data too fast for network to handle different from flow control manifestations: long delays (queueing in router buffers) lost packets (buffer overflow at routers) atop10 top-10 problem! Transport Layer (SSL)

74 Causes/costs of congestion: scenario four senders multi-hop paths Timeout & retransmit Host A λ in Q: what happens as and increase at every sender? λ in : original data λ' in : original data plus retransmitted data finite shared output link buffers λ' in positive feedback instability Host B λ out Transport Layer (SSL)

75 Causes/costs of congestion: scenario Host A λ out Host B Cost of congestion when a packet is dropped, any upstream transmission capacity used for that packet was wasted behavior on right side of above graph called congestion collapse Transport Layer (SSL)

76 Approaches towards congestion control End-to-end congestion control: no explicit feedback from network congestion inferred from end-system s observed loss (or delay) approach taken by TCP Network-assisted congestion control: routers provide feedback to end systems single bit indicating congestion, e.g., SNA, DECbit, ATM TCP/IP explicit congestion notification (ECN) explicit sending rate for sender Transport Layer (SSL)

77 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing l i 3.3 Connectionless transport: rt UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment structure reliable data transfer flow control connection management 3.6 Principles of congestion control 3.7 TCP congestion control Transport Layer (SSL)

78 TCP Congestion Control end-to-end control (no network assistance) sender limits transmission: LastByteSent-LastByteAcked CongWin Roughly, the send buffer s throughput h CongWin RTT bytes/sec where CongWin is in bytes How does sender determine CongWin? loss event = timeout or 3 duplicate acks TCP sender reduces CongWin after loss event three mechanisms: slow start reduce to 1 segment after timeout event AIMD (additive i increase multiplicative decrease) Note: For now consider RcvWindow to be very large such that the send window size is equal lto CongWin. They are referred to as rwnd and cwnd, respectively, in the textbook. tb Transport Layer (SSL)

79 TCP Slow Start Probing for usable bandwidth When connection begins, CongWin =1MSS Example: MSS = 500 bytes & RTT = 200 msec initial rate = 2500 bytes/sec = 20 kbps available bandwidth may be >> MSS/RTT desirable to quickly ramp up to a higher rate Transport Layer (SSL)

80 TCP Slow Start (more) When connection begins, increase rate exponentially until first loss event or threshold double CongWin every RTT done by incrementing CongWin by 1 MSS for every ACK received Summary: initial rate is slow but ramps up exponentially fast RTT Host A Host B time Transport Layer (SSL)

81 Congestion avoidance state & responses to loss events Q: If no loss, when should 14 the exponential increase 12 switch to linear? A: When CongWin gets to 10 current value of 8 threshold 6 Implementation: For initial slow start, threshold h is set to a large value (e.g., 64 Kbytes) Subsequently, threshold is variable At a loss event, threshold is set to 1/2 of CongWin just before loss event size n window s egments) congestion (se TCP Tahoe threshold 3 dup ACKs TCP Reno Transmission round Tahoe Reno Notes: 1. For simplicity, CongWin is in number of segments in the above graph. 2. Reno s window inflation and deflation steps (details) omitted Transport Layer (SSL)

82 Rationale for Reno s Fast Recovery After 3 dup ACKs: CongWin is cut in half (multiplicative decrease) 3 dup ACKs indicate g f network capable of delivering some segments timeout occurring before 3 dup ACKs is more alarming window then grows linearly (additive t increase) But after timeout event: CongWin is set to 1 MSS instead; window then grows exponentially to a threshold, then grows linearly Additive Increase Multiplicative Decrease (AIMD) Transport Layer (SSL)

83 TCP Reno (example scenario) CongWin Timeout 3 dupacks halved Initial slow start 3 dupacks during slow start before reaching initial threshold threshold reached t during slow start Transport Layer (SSL)

84 Summary: TCP Congestion Control (Reno) When CongWin is below Threshold, sender in slow-start phase, window grows exponentially (until loss event or exceeding threshold). When CongWin is above Threshold, senderisin in congestion-avoidance phase, window grows linearly. When a triple duplicate ACK occurs, Threshold set to CongWin/2 and CongWin set to Threshold. When timeout occurs, Threshold set to CongWin/2 and CongWin is set to 1 MSS. Transport Layer (SSL)

85 AIMD in steady state (when no timeout) additive increase: multiplicative decrease: increase CongWin by cut CongWin in half 1 MSS every RTT in after loss event (3 dup the absence of any acks) loss event: probing congestion window What limits the average 24 Kbytes window size (or throughput)? 16 Kbytes 8 Kbytes Long-lived TCP connection time Transport Layer (SSL)

86 TCP Throughput limited by loss rate TCP average throughput h t (approximate) of send buffer under AIMD in terms of loss rate, L: 1.22 MSS throughput = bytes/second RTT L where MSS is number of bytes per segment Example: 1500-byte segments, 100ms RTT, to get 10 Gbps throughput, loss rate needs to be very low L = New version of TCP needed for high-speed applications Transport Layer (SSL)

87 Is TCP fair? Two competing sessions: Additive increase gives slope of 1, as window size increases multiplicative decrease reduces window size to half (proportionally) W equal window size loss: decrease window by factor of 2 congestion avoidance: additive increase loss: decrease window by factor of 2 congestion avoidance: additive increase Connection 1 window size W Transport Layer (SSL)

88 Is TCP fair? Fairness goal: if K TCP sessions share same bottleneck link of bandwidth R, each should have average rate of R/K TCP connection 1 TCP connection 2 bottleneck router capacity R AIMD only provides convergence to same window size, not necessarily same throughput rate Transport Layer (SSL)

89 No fairness in practice UDP Some multimedia apps use UDP instead of TCP Can tolerate packet loss, do not want rate throttled by congestion control send at constant rate Parallel TCP connections nothing prevents an app from opening parallel connections between 2 hosts. Web browsers do this Transport Layer (SSL)

90 Chapter 3: Summary principles behind transport layer services: multiplexing, demultiplexing reliable data transfer connection management flow control congestion control instantiation and implementation in the Internet UDP TCP Next: leaving the network edge (application, transport layers) into the network core Transport Layer (SSL)

Transport Layer and Data Center TCP

Transport Layer and Data Center TCP Transport Layer and Data Center TCP Hakim Weatherspoon Assistant Professor, Dept of Computer Science CS 5413: High Performance Systems and Networking September 5, 2014 Slides used and adapted judiciously

More information

Transport Layer Protocols

Transport Layer Protocols Transport Layer Protocols Version. Transport layer performs two main tasks for the application layer by using the network layer. It provides end to end communication between two applications, and implements

More information

Outline. TCP connection setup/data transfer. 15-441 Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics

Outline. TCP connection setup/data transfer. 15-441 Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics Outline 15-441 Computer Networking Lecture 8 TCP & Congestion Control TCP connection setup/data transfer TCP Reliability Congestion sources and collapse Congestion control basics Lecture 8: 09-23-2002

More information

Computer Networks. Chapter 5 Transport Protocols

Computer Networks. Chapter 5 Transport Protocols Computer Networks Chapter 5 Transport Protocols Transport Protocol Provides end-to-end transport Hides the network details Transport protocol or service (TS) offers: Different types of services QoS Data

More information

TCP in Wireless Mobile Networks

TCP in Wireless Mobile Networks TCP in Wireless Mobile Networks 1 Outline Introduction to transport layer Introduction to TCP (Internet) congestion control Congestion control in wireless networks 2 Transport Layer v.s. Network Layer

More information

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP) TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) *Slides adapted from a talk given by Nitin Vaidya. Wireless Computing and Network Systems Page

More information

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding Names & Addresses EE 122: IP Forwarding and Transport Protocols Scott Shenker http://inst.eecs.berkeley.edu/~ee122/ (Materials with thanks to Vern Paxson, Jennifer Rexford, and colleagues at UC Berkeley)

More information

Computer Networks UDP and TCP

Computer Networks UDP and TCP Computer Networks UDP and TCP Saad Mneimneh Computer Science Hunter College of CUNY New York I m a system programmer specializing in TCP/IP communication protocol on UNIX systems. How can I explain a thing

More information

15-441: Computer Networks Homework 2 Solution

15-441: Computer Networks Homework 2 Solution 5-44: omputer Networks Homework 2 Solution Assigned: September 25, 2002. Due: October 7, 2002 in class. In this homework you will test your understanding of the TP concepts taught in class including flow

More information

Chapter 5. Transport layer protocols

Chapter 5. Transport layer protocols Chapter 5. Transport layer protocols This chapter provides an overview of the most important and common protocols of the TCP/IP transport layer. These include: User Datagram Protocol (UDP) Transmission

More information

COMP 3331/9331: Computer Networks and Applications. Lab Exercise 3: TCP and UDP (Solutions)

COMP 3331/9331: Computer Networks and Applications. Lab Exercise 3: TCP and UDP (Solutions) COMP 3331/9331: Computer Networks and Applications Lab Exercise 3: TCP and UDP (Solutions) AIM To investigate the behaviour of TCP and UDP in greater detail. EXPERIMENT 1: Understanding TCP Basics Tools

More information

First Midterm for ECE374 03/09/12 Solution!!

First Midterm for ECE374 03/09/12 Solution!! 1 First Midterm for ECE374 03/09/12 Solution!! Instructions: Put your name and student number on each sheet of paper! The exam is closed book. You have 90 minutes to complete the exam. Be a smart exam

More information

La couche transport dans l'internet (la suite TCP/IP)

La couche transport dans l'internet (la suite TCP/IP) La couche transport dans l'internet (la suite TCP/IP) C. Pham Université de Pau et des Pays de l Adour Département Informatique http://www.univ-pau.fr/~cpham Congduc.Pham@univ-pau.fr Cours de C. Pham,

More information

First Midterm for ECE374 03/24/11 Solution!!

First Midterm for ECE374 03/24/11 Solution!! 1 First Midterm for ECE374 03/24/11 Solution!! Note: In all written assignments, please show as much of your work as you can. Even if you get a wrong answer, you can get partial credit if you show your

More information

TCP/IP Optimization for Wide Area Storage Networks. Dr. Joseph L White Juniper Networks

TCP/IP Optimization for Wide Area Storage Networks. Dr. Joseph L White Juniper Networks TCP/IP Optimization for Wide Area Storage Networks Dr. Joseph L White Juniper Networks SNIA Legal Notice The material contained in this tutorial is copyrighted by the SNIA. Member companies and individuals

More information

Computer Networks - CS132/EECS148 - Spring 2013 ------------------------------------------------------------------------------

Computer Networks - CS132/EECS148 - Spring 2013 ------------------------------------------------------------------------------ Computer Networks - CS132/EECS148 - Spring 2013 Instructor: Karim El Defrawy Assignment 3 - Solutions Deadline : May 9 th 9:30pm (hard and soft copies required) ------------------------------------------------------------------------------

More information

ICOM 5026-090: Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

ICOM 5026-090: Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM ICOM 5026-090: Computer Networks Chapter 6: The Transport Layer By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 Outline The transport service Elements of transport protocols A

More information

Final for ECE374 05/06/13 Solution!!

Final for ECE374 05/06/13 Solution!! 1 Final for ECE374 05/06/13 Solution!! Instructions: Put your name and student number on each sheet of paper! The exam is closed book. You have 90 minutes to complete the exam. Be a smart exam taker -

More information

SIP: Session Initiation Protocol

SIP: Session Initiation Protocol SIP: Session Initiation Protocol Comes from IETF (RFC 3261) SIP long-term vision All telephone calls and video conference calls take place over the Internet People are identified by names or e-mail addresses,

More information

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006 CSE33: Introduction to Networks and Security Lecture 9 Fall 2006 Announcements Project Due TODAY HW Due on Friday Midterm I will be held next Friday, Oct. 6th. Will cover all course material up to next

More information

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation R.Navaneethakrishnan Assistant Professor (SG) Bharathiyar College of Engineering and Technology, Karaikal, India.

More information

A Survey on Congestion Control Mechanisms for Performance Improvement of TCP

A Survey on Congestion Control Mechanisms for Performance Improvement of TCP A Survey on Congestion Control Mechanisms for Performance Improvement of TCP Shital N. Karande Department of Computer Science Engineering, VIT, Pune, Maharashtra, India Sanjesh S. Pawale Department of

More information

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013 CSE 473 Introduction to Computer Networks Jon Turner Exam Solutions Your name: 0/3/03. (0 points). Consider a circular DHT with 7 nodes numbered 0,,...,6, where the nodes cache key-values pairs for 60

More information

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage Lecture 15: Congestion Control CSE 123: Computer Networks Stefan Savage Overview Yesterday: TCP & UDP overview Connection setup Flow control: resource exhaustion at end node Today: Congestion control Resource

More information

Lecture Objectives. Lecture 07 Mobile Networks: TCP in Wireless Networks. Agenda. TCP Flow Control. Flow Control Can Limit Throughput (1)

Lecture Objectives. Lecture 07 Mobile Networks: TCP in Wireless Networks. Agenda. TCP Flow Control. Flow Control Can Limit Throughput (1) Lecture Objectives Wireless and Mobile Systems Design Lecture 07 Mobile Networks: TCP in Wireless Networks Describe TCP s flow control mechanism Describe operation of TCP Reno and TCP Vegas, including

More information

Higher Layer Protocols: UDP, TCP, ATM, MPLS

Higher Layer Protocols: UDP, TCP, ATM, MPLS Higher Layer Protocols: UDP, TCP, ATM, MPLS Massachusetts Institute of Technology Slide 1 The TCP/IP Protocol Suite Transmission Control Protocol / Internet Protocol Developed by DARPA to connect Universities

More information

Data Communications & Networks. Session 6 Main Theme Reliable Data Transfer. Dr. Jean-Claude Franchitti

Data Communications & Networks. Session 6 Main Theme Reliable Data Transfer. Dr. Jean-Claude Franchitti Data Communications & Networks Session 6 Main Theme Reliable Data Transfer Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Adapted

More information

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit www.gearbit.com

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit www.gearbit.com B-2 Analyzing TCP/IP Networks with Wireshark June 15, 2010 Ray Tompkins Founder of Gearbit www.gearbit.com SHARKFEST 10 Stanford University June 14-17, 2010 TCP In this session we will examine the details

More information

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology Indian Institute of Technology Kharagpur TCP/IP Part I Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology Kharagpur Lecture 3: TCP/IP Part I On completion, the student

More information

TCP over Wireless Networks

TCP over Wireless Networks TCP over Wireless Networks Raj Jain Professor of Computer Science and Engineering Washington University in Saint Louis Saint Louis, MO 63130 Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse574-10/

More information

[Prof. Rupesh G Vaishnav] Page 1

[Prof. Rupesh G Vaishnav] Page 1 Basics The function of transport layer is to provide a reliable end-to-end communications service. It also provides data transfer service for the user layers above and shield the upper layers from the

More information

Computer Networks. Data Link Layer

Computer Networks. Data Link Layer Computer Networks The Data Link Layer 1 Data Link Layer Application Transport Network DLL PHY 2 What does it do? What functions it performs? Typically: Handling transmission errors, a.k.a., error control.

More information

Access Control: Firewalls (1)

Access Control: Firewalls (1) Access Control: Firewalls (1) World is divided in good and bad guys ---> access control (security checks) at a single point of entry/exit: in medieval castles: drawbridge in corporate buildings: security/reception

More information

Visualizations and Correlations in Troubleshooting

Visualizations and Correlations in Troubleshooting Visualizations and Correlations in Troubleshooting Kevin Burns Comcast kevin_burns@cable.comcast.com 1 Comcast Technology Groups Cable CMTS, Modem, Edge Services Backbone Transport, Routing Converged Regional

More information

Transport Layer. Chapter 3.4. Think about

Transport Layer. Chapter 3.4. Think about Chapter 3.4 La 4 Transport La 1 Think about 2 How do MAC addresses differ from that of the network la? What is flat and what is hierarchical addressing? Who defines the IP Address of a device? What is

More information

q Connection establishment (if connection-oriented) q Data transfer q Connection release (if conn-oriented) q Addressing the transport user

q Connection establishment (if connection-oriented) q Data transfer q Connection release (if conn-oriented) q Addressing the transport user Transport service characterization The Transport Layer End-to-End Protocols: UDP and TCP Connection establishment (if connection-oriented) Data transfer Reliable ( TCP) Unreliable / best effort ( UDP)

More information

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose Instructions: There are 4 questions on this exam. Please use two exam blue books answer questions 1, 2 in one book, and the remaining

More information

Architecture and Performance of the Internet

Architecture and Performance of the Internet SC250 Computer Networking I Architecture and Performance of the Internet Prof. Matthias Grossglauser School of Computer and Communication Sciences EPFL http://lcawww.epfl.ch 1 Today's Objectives Understanding

More information

Mobile Communications Chapter 9: Mobile Transport Layer

Mobile Communications Chapter 9: Mobile Transport Layer Mobile Communications Chapter 9: Mobile Transport Layer Motivation TCP-mechanisms Classical approaches Indirect TCP Snooping TCP Mobile TCP PEPs in general Additional optimizations Fast retransmit/recovery

More information

Ethernet. Ethernet. Network Devices

Ethernet. Ethernet. Network Devices Ethernet Babak Kia Adjunct Professor Boston University College of Engineering ENG SC757 - Advanced Microprocessor Design Ethernet Ethernet is a term used to refer to a diverse set of frame based networking

More information

COMP 361 Computer Communications Networks. Fall Semester 2003. Midterm Examination

COMP 361 Computer Communications Networks. Fall Semester 2003. Midterm Examination COMP 361 Computer Communications Networks Fall Semester 2003 Midterm Examination Date: October 23, 2003, Time 18:30pm --19:50pm Name: Student ID: Email: Instructions: 1. This is a closed book exam 2. This

More information

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme Chapter 2 Technical Basics: Layer 1 Methods for Medium Access: Layer 2 Chapter 3 Wireless Networks: Bluetooth, WLAN, WirelessMAN, WirelessWAN Mobile Networks: GSM, GPRS, UMTS Chapter 4 Mobility on the

More information

IP - The Internet Protocol

IP - The Internet Protocol Orientation IP - The Internet Protocol IP (Internet Protocol) is a Network Layer Protocol. IP s current version is Version 4 (IPv4). It is specified in RFC 891. TCP UDP Transport Layer ICMP IP IGMP Network

More information

Prefix AggregaNon. Company X and Company Y connect to the same ISP, and they are assigned the prefixes:

Prefix AggregaNon. Company X and Company Y connect to the same ISP, and they are assigned the prefixes: Data Transfer Consider transferring an enormous file of L bytes from Host A to B using a MSS of 1460 bytes and a 66 byte header. What is the maximum value of L such that TCP sequence numbers are not exhausted?

More information

La couche transport dans l'internet (la suite TCP/IP)

La couche transport dans l'internet (la suite TCP/IP) La couche transport dans l'internet (la suite TCP/IP) C. Pham RESO-LIP/INRIA Université Lyon 1 http://www.ens-lyon.fr/~cpham Basé sur les transparent de Shivkumar Kalyanaraman La couche transport dans

More information

Transport Protocols and Distributed Applications

Transport Protocols and Distributed Applications Transport Protocols and Distributed Applications EP1100 Data Communications and Computer Networks Illustrations in this material are collected from Behrouz A Forouzan, Data Communications and Networking,

More information

Network Layer: Network Layer and IP Protocol

Network Layer: Network Layer and IP Protocol 1 Network Layer: Network Layer and IP Protocol Required reading: Garcia 7.3.3, 8.1, 8.2.1 CSE 3213, Winter 2010 Instructor: N. Vlajic 2 1. Introduction 2. Router Architecture 3. Network Layer Protocols

More information

Simulation-Based Comparisons of Solutions for TCP Packet Reordering in Wireless Network

Simulation-Based Comparisons of Solutions for TCP Packet Reordering in Wireless Network Simulation-Based Comparisons of Solutions for TCP Packet Reordering in Wireless Network 作 者 :Daiqin Yang, Ka-Cheong Leung, and Victor O. K. Li 出 處 :Wireless Communications and Networking Conference, 2007.WCNC

More information

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages Part I: The problem specifications NTNU The Norwegian University of Science and Technology Department of Telematics Note! The problem set consists of two parts: Part I: The problem specifications pages

More information

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst Data communication in reality In reality, the source and destination hosts are very seldom on the same network, for

More information

Transport layer protocols for ad hoc networks

Transport layer protocols for ad hoc networks Transport layer protocols for ad hoc networks Lecturer: Dmitri A. Moltchanov E-mail: moltchan@cs.tut.fi http://www.cs.tut.fi/kurssit/tlt-2616/ Which transport layer protocol? Classification of transport

More information

Data Communication & Networks G22.2262-001

Data Communication & Networks G22.2262-001 Data Communication & Networks G22.2262-001 Session 10 - Main Theme Java Sockets Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences 1 Agenda

More information

TCP/IP Networking for Wireless Systems. Integrated Communication Systems Group Ilmenau University of Technology

TCP/IP Networking for Wireless Systems. Integrated Communication Systems Group Ilmenau University of Technology TCP/IP Networking for Wireless Systems Integrated Communication Systems Group Ilmenau University of Technology Content Internet Protocol Suite Link Layer: Ethernet, PPP, ARP, MAC Addressing Network Layer:

More information

IP address format: Dotted decimal notation: 10000000 00001011 00000011 00011111 128.11.3.31

IP address format: Dotted decimal notation: 10000000 00001011 00000011 00011111 128.11.3.31 IP address format: 7 24 Class A 0 Network ID Host ID 14 16 Class B 1 0 Network ID Host ID 21 8 Class C 1 1 0 Network ID Host ID 28 Class D 1 1 1 0 Multicast Address Dotted decimal notation: 10000000 00001011

More information

Data Networks Summer 2007 Homework #3

Data Networks Summer 2007 Homework #3 Data Networks Summer Homework # Assigned June 8, Due June in class Name: Email: Student ID: Problem Total Points Problem ( points) Host A is transferring a file of size L to host B using a TCP connection.

More information

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP Overview Securing TCP/IP Chapter 6 TCP/IP Open Systems Interconnection Model Anatomy of a Packet Internet Protocol Security (IPSec) Web Security (HTTP over TLS, Secure-HTTP) Lecturer: Pei-yih Ting 1 2

More information

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4) Chapter 3 TCP/IP Networks 3.1 Internet Protocol version 4 (IPv4) Internet Protocol version 4 is the fourth iteration of the Internet Protocol (IP) and it is the first version of the protocol to be widely

More information

Chapter 6 Congestion Control and Resource Allocation

Chapter 6 Congestion Control and Resource Allocation Chapter 6 Congestion Control and Resource Allocation 6.3 TCP Congestion Control Additive Increase/Multiplicative Decrease (AIMD) o Basic idea: repeatedly increase transmission rate until congestion occurs;

More information

Congestions and Control Mechanisms n Wired and Wireless Networks

Congestions and Control Mechanisms n Wired and Wireless Networks International OPEN ACCESS Journal ISSN: 2249-6645 Of Modern Engineering Research (IJMER) Congestions and Control Mechanisms n Wired and Wireless Networks MD Gulzar 1, B Mahender 2, Mr.B.Buchibabu 3 1 (Asst

More information

CMPE 150 Winter 2009

CMPE 150 Winter 2009 CMPE 150 Winter 2009 Lecture 6 January 22, 2009 P.E. Mantey CMPE 150 -- Introduction to Computer Networks Instructor: Patrick Mantey mantey@soe.ucsc.edu http://www.soe.ucsc.edu/~mantey/ / t / Office: Engr.

More information

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed. Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because routers are receiving packets faster than they can forward them, one

More information

Pig Laboratory. Additional documentation for the laboratory. Exercises and Rules. Tstat Data

Pig Laboratory. Additional documentation for the laboratory. Exercises and Rules. Tstat Data Pig Laboratory This laboratory is dedicated to Hadoop Pig and consists of a series of exercises: some of them somewhat mimic those in the MapReduce laboratory, others are inspired by "real-world" problems.

More information

TCP Flow Control. TCP Receiver Window. Sliding Window. Computer Networks. Lecture 30: Flow Control, Reliable Delivery

TCP Flow Control. TCP Receiver Window. Sliding Window. Computer Networks. Lecture 30: Flow Control, Reliable Delivery TCP Flow Control Computer Networks The receiver side of a TCP connection maintains a receiver buffer: Lecture : Flow Control, eliable elivery application process may be slow at reading from the buffer

More information

Chapter 11. User Datagram Protocol (UDP)

Chapter 11. User Datagram Protocol (UDP) Chapter 11 User Datagram Protocol (UDP) The McGraw-Hill Companies, Inc., 2000 1 CONTENTS PROCESS-TO-PROCESS COMMUNICATION USER DATAGRAM CHECKSUM UDP OPERATION USE OF UDP UDP PACKAGE The McGraw-Hill Companies,

More information

First Midterm for ECE374 02/25/15 Solution!!

First Midterm for ECE374 02/25/15 Solution!! 1 First Midterm for ECE374 02/25/15 Solution!! Instructions: Put your name and student number on each sheet of paper! The exam is closed book. You have 90 minutes to complete the exam. Be a smart exam

More information

TCP Adaptation for MPI on Long-and-Fat Networks

TCP Adaptation for MPI on Long-and-Fat Networks TCP Adaptation for MPI on Long-and-Fat Networks Motohiko Matsuda, Tomohiro Kudoh Yuetsu Kodama, Ryousei Takano Grid Technology Research Center Yutaka Ishikawa The University of Tokyo Outline Background

More information

Stop And Wait. ACK received; transmit frame 2 CS 455 3

Stop And Wait. ACK received; transmit frame 2 CS 455 3 Data Link Layer, Part 5 Sliding Window Protocols These slides are created by Dr. Yih Huang of George Mason University. Students registered in Dr. Huang's courses at GMU can make a single machine-readable

More information

How do I get to www.randomsite.com?

How do I get to www.randomsite.com? Networking Primer* *caveat: this is just a brief and incomplete introduction to networking to help students without a networking background learn Network Security. How do I get to www.randomsite.com? Local

More information

This sequence diagram was generated with EventStudio System Designer (http://www.eventhelix.com/eventstudio).

This sequence diagram was generated with EventStudio System Designer (http://www.eventhelix.com/eventstudio). Client App Network Server App 25-May-13 15:32 (Page 1) This sequence diagram was generated with EventStudio System Designer (http://www.eventhelix.com/eventstudio). TCP is an end to end protocol which

More information

Transport Layer Services Mul9plexing/Demul9plexing. Transport Layer Services

Transport Layer Services Mul9plexing/Demul9plexing. Transport Layer Services Computer Networks Mul9plexing/Demul9plexing Transport services and protocols provide logical communica+on between app processes running on different hosts protocols run in end systems send side: breaks

More information

Answer: that dprop equals dtrans. seconds. a) d prop. b) d trans

Answer: that dprop equals dtrans. seconds. a) d prop. b) d trans Chapter 1 1) p. 98: P-6 This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, A and B, connected by single link

More information

Networking part 3: the transport layer

Networking part 3: the transport layer Networking part 3: the transport layer Juliusz Chroboczek Université de Paris-Diderot (Paris 7) September 2011 Summary of the previous episodes Episode 1: switching, packet switching and the Internet.

More information

Computer Networks Homework 1

Computer Networks Homework 1 Computer Networks Homework 1 Reference Solution 1. (15%) Suppose users share a 1 Mbps link. Also suppose each user requires 100 kbps when transmitting, but each user transmits only 10 percent of the time.

More information

TCP Westwood for Wireless

TCP Westwood for Wireless TCP Westwood for Wireless מבוא רקע טכני בקרת עומס ב- TCP TCP על קשר אלחוטי שיפור תפוקה עם פרוטוקול TCP Westwood סיכום.1.2.3.4.5 Seminar in Computer Networks and Distributed Systems Hadassah College Spring

More information

TCP for Wireless Networks

TCP for Wireless Networks TCP for Wireless Networks Outline Motivation TCP mechanisms Indirect TCP Snooping TCP Mobile TCP Fast retransmit/recovery Transmission freezing Selective retransmission Transaction oriented TCP Adapted

More information

Parallel TCP Data Transfers: A Practical Model and its Application

Parallel TCP Data Transfers: A Practical Model and its Application D r a g a n a D a m j a n o v i ć Parallel TCP Data Transfers: A Practical Model and its Application s u b m i t t e d t o the Faculty of Mathematics, Computer Science and Physics, the University of Innsbruck

More information

Transport layer issues in ad hoc wireless networks Dmitrij Lagutin, dlagutin@cc.hut.fi

Transport layer issues in ad hoc wireless networks Dmitrij Lagutin, dlagutin@cc.hut.fi Transport layer issues in ad hoc wireless networks Dmitrij Lagutin, dlagutin@cc.hut.fi 1. Introduction Ad hoc wireless networks pose a big challenge for transport layer protocol and transport layer protocols

More information

2 TCP-like Design. Answer

2 TCP-like Design. Answer Homework 3 1 DNS Suppose you have a Host C, a local name server L, and authoritative name servers A root, A com, and A google.com, where the naming convention A x means that the name server knows about

More information

TCP/IP Over Lossy Links - TCP SACK without Congestion Control

TCP/IP Over Lossy Links - TCP SACK without Congestion Control Wireless Random Packet Networking, Part II: TCP/IP Over Lossy Links - TCP SACK without Congestion Control Roland Kempter The University of Alberta, June 17 th, 2004 Department of Electrical And Computer

More information

Congestion Control Review. 15-441 Computer Networking. Resource Management Approaches. Traffic and Resource Management. What is congestion control?

Congestion Control Review. 15-441 Computer Networking. Resource Management Approaches. Traffic and Resource Management. What is congestion control? Congestion Control Review What is congestion control? 15-441 Computer Networking What is the principle of TCP? Lecture 22 Queue Management and QoS 2 Traffic and Resource Management Resource Management

More information

PART III. OPS-based wide area networks

PART III. OPS-based wide area networks PART III OPS-based wide area networks Chapter 7 Introduction to the OPS-based wide area network 7.1 State-of-the-art In this thesis, we consider the general switch architecture with full connectivity

More information

Analytic Models for the Latency and Steady-State Throughput of TCP Tahoe, Reno and SACK

Analytic Models for the Latency and Steady-State Throughput of TCP Tahoe, Reno and SACK REVISION 1 1 Analytic Models for the Latency and Steady-State Throughput of TCP Tahoe, Reno and SACK B. Sikdar, S. Kalyanaraman and K. S. Vastola Dept. of ECSE, Rensselaer Polytechnic Institute Troy, NY

More information

SELECTIVE-TCP FOR WIRED/WIRELESS NETWORKS

SELECTIVE-TCP FOR WIRED/WIRELESS NETWORKS SELECTIVE-TCP FOR WIRED/WIRELESS NETWORKS by Rajashree Paul Bachelor of Technology, University of Kalyani, 2002 PROJECT SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF

More information

Homework 2 assignment for ECE374 Posted: 02/21/14 Due: 02/28/14

Homework 2 assignment for ECE374 Posted: 02/21/14 Due: 02/28/14 1 Homework 2 assignment for ECE374 Posted: 02/21/14 Due: 02/28/14 Note: In all written assignments, please show as much of your work as you can. Even if you get a wrong answer, you can get partial credit

More information

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline OSI Seven Layer Model & Seminar Outline TCP/IP Fundamentals This seminar will present TCP/IP communications starting from Layer 2 up to Layer 4 (TCP/IP applications cover Layers 5-7) IP Addresses Data

More information

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson)

Networking Overview. (as usual, thanks to Dave Wagner and Vern Paxson) Networking Overview (as usual, thanks to Dave Wagner and Vern Paxson) Focus For This Lecture Sufficient background in networking to then explore security issues in next few lectures Networking = the Internet

More information

Protocols and Architecture. Protocol Architecture.

Protocols and Architecture. Protocol Architecture. Protocols and Architecture Protocol Architecture. Layered structure of hardware and software to support exchange of data between systems/distributed applications Set of rules for transmission of data between

More information

Active Queue Management (AQM) based Internet Congestion Control

Active Queue Management (AQM) based Internet Congestion Control Active Queue Management (AQM) based Internet Congestion Control October 1 2002 Seungwan Ryu (sryu@eng.buffalo.edu) PhD Student of IE Department University at Buffalo Contents Internet Congestion Control

More information

High Speed Internet Access Using Satellite-Based DVB Networks

High Speed Internet Access Using Satellite-Based DVB Networks High Speed Internet Access Using Satellite-Based DVB Networks Nihal K. G. Samaraweera and Godred Fairhurst Electronics Research Group, Department of Engineering University of Aberdeen, Aberdeen, AB24 3UE,

More information

A Survey: High Speed TCP Variants in Wireless Networks

A Survey: High Speed TCP Variants in Wireless Networks ISSN: 2321-7782 (Online) Volume 1, Issue 7, December 2013 International Journal of Advance Research in Computer Science and Management Studies Research Paper Available online at: www.ijarcsms.com A Survey:

More information

Improved Digital Media Delivery with Telestream HyperLaunch

Improved Digital Media Delivery with Telestream HyperLaunch WHITE PAPER Improved Digital Media Delivery with Telestream THE CHALLENGE Increasingly, Internet Protocol (IP) based networks are being used to deliver digital media. Applications include delivery of news

More information

TCP in Wireless Networks

TCP in Wireless Networks Outline Lecture 10 TCP Performance and QoS in Wireless s TCP Performance in wireless networks TCP performance in asymmetric networks WAP Kurose-Ross: Chapter 3, 6.8 On-line: TCP over Wireless Systems Problems

More information

Introduction. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Introduction. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross Introduction Abusayeed Saifullah CS 5600 Computer Networks These slides are adapted from Kurose and Ross Roadmap 1.1 what is the Inter? 1.2 work edge end systems, works, links 1.3 work core packet switching,

More information

An enhanced TCP mechanism Fast-TCP in IP networks with wireless links

An enhanced TCP mechanism Fast-TCP in IP networks with wireless links Wireless Networks 6 (2000) 375 379 375 An enhanced TCP mechanism Fast-TCP in IP networks with wireless links Jian Ma a, Jussi Ruutu b and Jing Wu c a Nokia China R&D Center, No. 10, He Ping Li Dong Jie,

More information

A packet-reordering solution to wireless losses in transmission control protocol

A packet-reordering solution to wireless losses in transmission control protocol Wireless Netw () 9:577 59 DOI.7/s76--55-6 A packet-reordering solution to wireless losses in transmission control protocol Ka-Cheong Leung Chengdi Lai Victor O. K. Li Daiqin Yang Published online: 6 February

More information

Internet Protocols. Background CHAPTER

Internet Protocols. Background CHAPTER CHAPTER 3 Internet Protocols Background The Internet protocols are the world s most popular open-system (nonproprietary) protocol suite because they can be used to communicate across any set of interconnected

More information

Low-rate TCP-targeted Denial of Service Attack Defense

Low-rate TCP-targeted Denial of Service Attack Defense Low-rate TCP-targeted Denial of Service Attack Defense Johnny Tsao Petros Efstathopoulos University of California, Los Angeles, Computer Science Department Los Angeles, CA E-mail: {johnny5t, pefstath}@cs.ucla.edu

More information

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross Multimedia Communication Multimedia Systems(Module 5 Lesson 2) Summary: H Internet Phone Example Making the Best use of Internet s Best-Effort Service. Sources: H Chapter 6 from Computer Networking: A

More information

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment Voice over IP Demonstration 1: VoIP Protocols Network Environment We use two Windows workstations from the production network, both with OpenPhone application (figure 1). The OpenH.323 project has developed

More information

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP CSCE 515: Computer Network Programming TCP/IP IP Network Layer Wenyuan Xu Department of Computer Science and Engineering University of South Carolina IP Datagrams IP is the network layer packet delivery

More information