PROBLEMSAND EXERCISES

Similar documents
c. If the sum contains a zero, the receiver knows there has been an error.

ECE 610: Homework 4 Problems are taken from Kurose and Ross.

Preview Test: HW3. Test Information Description Due:Nov. 3

Chapter 3 Review Questions

Problem 7. Problem 8. Problem 9

32 bits. source port # dest port # sequence number acknowledgement number not used. checksum. Options (variable length)

a) Adding the two bytes gives Taking the one s complement gives

Mobile Transport Layer Lesson 02 TCP Data Stream and Data Delivery

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page:

CSCD 330 Network Programming

Practice Problems: P22, 23, P24, P25, P26, P27, P28, P29, P30, P32, P44 and P45. Hand-in the following: P27, P28, P32, P37, P44

RSC Part III: Transport Layer 3. TCP

Answers to Sample Questions on Transport Layer

Lecture 08: The Transport Layer (Part 2) The Transport Layer Protocol (TCP) Dr. Anis Koubaa

CSCI Topics: Internet Programming Fall 2008

Transport Layer: outline

CSC 4900 Computer Networks: TCP

CS519: Computer Networks. Lecture 5, Part 1: Mar 3, 2004 Transport: UDP/TCP demux and flow control / sequencing

Chapter 3 Transport Layer

Lecture 5. Transport Layer. Transport Layer 1-1

file:///c:/users/hpguo/dropbox/website/teaching/fall 2017/CS4470/H...

Correcting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure

TCP : Fundamentals of Computer Networks Bill Nace

CSE 4213: Computer Networks II

Chapter 3 Transport Layer

The Transport Layer: TCP & Reliable Data Transfer

Chapter 3: Transport Layer. Chapter 3 Transport Layer. Chapter 3 outline. Transport services and protocols

CS 716: Introduction to communication networks th class; 7 th Oct Instructor: Sridhar Iyer IIT Bombay

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

TCP. 1 Administrivia. Tom Kelliher, CS 325. Apr. 2, Announcements. Assignment. Read From Last Time

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Chapter 3 outline. 3.5 connection-oriented transport: TCP segment structure reliable data transfer flow control connection management

Q23-5 In a network, the size of the receive window is 1 packet. Which of the follow-ing protocols is being used by the network?

UNIT IV -- TRANSPORT LAYER

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

CSCD 330 Network Programming Winter 2015

Transport Layer PREPARED BY AHMED ABDEL-RAOUF

Transport Layer: Outline

Question Points Score total 100

11/24/2009. Fundamentals of Computer Networks ECE 478/578. Flow Control in TCP

Computer Communication Networks Midterm Review

CNT 6885 Network Review on Transport Layer

Chapter 3: Transport Layer Part A

COMPUTER NETWORK. Homework #2. Due Date: April 12, 2017 in class

ECE 333: Introduction to Communication Networks Fall 2001

Transport Protocols and TCP: Review

Computer Networking Introduction

Fall 2012: FCM 708 Bridge Foundation I

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 9

ECE697AA Lecture 3. Today s lecture

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

COMP 431 Internet Services & Protocols. Transport Layer Protocols & Services Outline. The Transport Layer Reliable data delivery & flow control in TCP

CS457 Transport Protocols. CS 457 Fall 2014

Chapter III: Transport Layer

Sequence Number. Acknowledgment Number. Data

The aim of this unit is to review the main concepts related to TCP and UDP transport protocols, as well as application protocols. These concepts are

Transport Protocols. Raj Jain. Washington University in St. Louis

Lecture 3: The Transport Layer: UDP and TCP

Chapter 3 Transport Layer

Transport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections

Chapter 6 Transport Layer

TCP (Part 2) Session 10 INST 346 Technologies, Infrastructure and Architecture

Chapter 3 Transport Layer

Computer Networks. Homework #4: No Grading

Problem. Chapter Outline. Chapter Goal. End-to-end Protocols. End-to-end Protocols. Chapter 5. End-to-End Protocols

The Transport Layer Reliability

Internet and Intranet Protocols and Applications

Basic Reliable Transport Protocols

CC451 Computer Networks

Transmission Control Protocol (TCP)

NWEN 243. Networked Applications. Layer 4 TCP and UDP

CS321: Computer Networks Error and Flow Control in TCP

Transport Protocols and TCP

Chapter 3 Transport Layer

Transport Protocols & TCP TCP

Transport Protocols. CSCI 363 Computer Networks Department of Computer Science

The Transport Layer Reliable data delivery & flow control in TCP. Transport Layer Protocols & Services Outline

Development of reliable protocol Sliding window protocols. C = channel capacity in bps I = interrupt/service time + propagation delay

CS 4390 Computer Networks. Pointers to Corresponding Section of Textbook

Department of EECS - University of California at Berkeley EECS122 - Introduction to Communication Networks - Spring 2005 Final: 5/20/2005

10 minutes survey (anonymous)

Lecture 8. TCP/IP Transport Layer (2)

CSC 401 Data and Computer Communications Networks

Distributed Systems. 5. Transport Protocols

Internet transport-layer protocols. Transport services and protocols. Sending and receiving. Connection-oriented (TCP) Connection-oriented

The Transport Layer Reliable data delivery & flow control in TCP. Transport Layer Protocols & Services Outline

Transport services and protocols. Chapter 3 outline. Internet transport-layer protocols Chapter 3 outline. Multiplexing/demultiplexing

Outline. TCP: Overview RFCs: 793, 1122, 1323, 2018, Development of reliable protocol Sliding window protocols

Distributed Systems. 5. Transport Protocols. Werner Nutt

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2. Goals for Todayʼs Lecture. Role of Transport Layer

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

Transport Protocols Reading: Sections 2.5, 5.1, and 5.2

Review problems (for no credit): Transport and Network Layer

CS Lecture 1 Review of Basic Protocols

Chapter 3- parte B outline

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

TCP. TCP: Overview. TCP Segment Structure. Maximum Segment Size (MSS) Computer Networks 10/19/2009. CSC 257/457 - Fall

Foundations of Telematics

NWEN 243. Networked Applications. Transport layer and application layer

Transcription:

Departamento de Tecnología Electrónica Computer Networking Unit 3: Transport layer PROBLEMSAND EXERCISES Transport Layer 95

Pr1: port numbers Suppose that the client A initiates a TCP connection to a Web server whose name is S. More or less simultaneously, the client B also initiates a TCP connection to S. a) Indicate possible source and destination port number for: 1. Segments sent from A to S 2. Segments sent from B to S 3. Segments sent from S to A 4. Segments sent from S to B b) If A and B are in diferent hosts, could source port number from A to S be the same that from B to S? c) What if client process A and B are in the same host? Transport layer 2-96

Pr2: port numbers Look at the connections that the clients have initiated with the Web server and answer the questions: P1 P4 P5 P6 P2 P1P3 SP: 5775 DP: 80 S-IP: B D-IP: C Client IP: A SP: 9157 DP: 80 S-IP: A Web Server IP: C SP: 9157 DP: 80 S-IP: B client IP: B D-IP: C D-IP: C SP = Source port # DP = Destination port # S-IP = Source IP address D-IP = Destination IP address Transport Layer 2-97

Pr2: port numbers (II) What are the source and destination port number values in the segments flowing from the server back to the clients processes? What are the IP addresses (source and destination) of N_PDUs carrying these transport-layer segments? Transport Layer 3-98

Pr3: checksum UDP and TCP use 1s complement for their checksums. Suppose you have the following three 16-bit words: 1110000001010010 1101010100101111 0010101110101111 What is the 1s complement of the sum of these 16-bit words? Receiver adds the three words to the received checksum. If the result of the addition, in binary, contains some zero, the receiver realizes there is some error in some bit, is it right? Is it possible that a 1-bit error will go undetected? Propose a particular example for a non-detectable error. Transport Layer 3-99

Pr4: Channel utilization Pipeline protocols improve the performance of stop-and-wait protocols. Suppose a Tx and a Rx with a 1Gbps link, 30ms RTT, 1500 bytes PDUs and header size equal to zero (negligible size in comparison to the data size). How many data PDUs has Tx to have in-flight for channel utilization is 95%? Transport Layer 3-100

Pr5: Control over T_PDU content We have said that an application may choose UDP for a transport protocol because UDP offers finer application control (than TCP) of what data is sent in a segment and when. a) Why does an application have more control of what data is sent in a segment? b) Why does an application have more control on when the segment is sent? Transport Layer 3-101

Pr6: MSS Consider transferring an enormous file of L bytes from Host A to Host B. Assume an MSS of 536 bytes. a) What is the maximum value of L such that TCP sequence numbers are not exhausted? Recall that the TCP sequence number field has 4 bytes. Note: MSS isthemaximumsizeof userdata carriedbyany segmentin a TCP connection. In SYN segment, usingtcp options header, each TCP entity informs to the other about whichmss wantstouse. Thesmallerwillbeused. Transport Layer 3-102

Pr6: MSS (II) b) For the L you obtain in (a), find how long it takes to transmit the file. Assume that a total of 66 bytes of transport, network, and datalink header are added to each segment before the resulting packet is sent out over a 155 Mbps link. Ignore flow control and congestion control so A can pump out the segments back to back and continuously. Transporte 3-103

Pr7: seq # and ACK Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-toback. The first and second segments contain 70 and 50 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgement whenever it receives a segment from Host A. a) In the second segment sent from Host A to B, what are the sequence number, source port number, and destination port number? b) If the first segment arrives before the second segment, in the acknowledgement of the first arriving segment, what is the acknowledgment number, the source port number, and the destination port number? Transport Layer 3-104

Pr7: seq # and ACK (II) c) If the second segment arrives before the first segment, in the acknowledgement of the first arriving segment, what is the acknowledgment number? d) Suppose the two segments sent by A arrive in order at B. The first acknowledgement is lost and the second acknowledgement arrives after the first timeout interval. Draw a timing diagram, showing these segments and all other segments and acknowledgements sent. (Assume there is no additional packet loss.) For each segment in your figure, provide the sequence number and the number of bytes of data; for each acknowledgement that you add, provide the acknowledgement number. Transport Layer 3-105

Pr8: TCP flow control Host A and B are directly connected with a 100 Mbps link. There is one TCP connection between the two hosts, and Host A is sending to Host B an enormous file over this connection. Host A can send its application data into its TCP socket at a rate as high as 120 Mbps Host B can read out of its TCP receive buffer at a maximum rate of 60 Mbps. Describe the effect of TCP flowcontrol overtheratethat Application layer of A sends data through its TCP socket. Transport Layer 3-106

Pr9: estimated RTT We discussed TCP needs to estimate a value for RTT to know how long it has to wait for an ACK. To estimate the RTT, TCP uses SampleRTT values that are the time passed between a segment sending and the arrival of its ACK. However, TCP doesn t use the SampleRTT associated to the retransmitted segments. Why do you think TCP avoids measuring the SampleRTT for retransmitted segments? Transport Layer 3-107

Pr10: variables in pipelining What is the relationship between the variable SendBaseof TCP transmitter and the variable LastByteRcvd of TCP receiver? Transport Layer 3-108

Pr11: variables in pipelining What is the relationship between the variable LastByteRcvdof TCP receiver and the variable yof TCP sender? Transport Layer 3-109

Pr12: fast retransmit We saw that TCP waits until it has received three duplicate ACKs before performing a fast retransmit. When receiving three duplicate ACKs of a segment, TCP does a fast retransmit of this segment that supposes lost, without waiting for timer expires. Why do you think the TCP designers chose not to perform a fast retransmit after the first duplicate ACK for a segment is received? Transport Layer 3-110

Pr13: flow control Host A is sending an enormous file to Host B over a TCP connection. Over this connection there is never any packet loss and the timers never expire. Denote the transmission rate of the link connecting Host A to the Internet by R bps. Suppose that the process in Host A is capable of sending data into its TCP socket at a rate S bps, where S = 10 R. Further suppose that the TCP receive buffer is large enough to hold the entire file, and the send buffer can hold only one percent of the file. What would prevent the process in Host A from continuously passing data to its TCP socket at rate S bps? TCP flow control? TCP congestion control? Or something else? Elaborate. Transport Layer 3-111