Docsity

TCP and IP Networking Homework 3 - Prof. Malathi Veeraraghavan, Assignments of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
Page 1 of 6
CS/ECE 457 Fall 2008
Homework 3
Instructions:
• Be sure to write your name on your submission. Fill in your answers in this printout. Add extra sheets if needed.
• Complete the homework individually.
• Pledge: On my honor as a student I have neither given nor received aid on this exam/assignment. (Write out and
sign).
• The only help that you can get is from your class notes and the reference textbooks.
• Show all your steps and state your assumptions.
• Be neat.
• Number of problems: 8
• Total points: 21 points (will be scaled down for the final grade)
Due Date: Dec. 4, 2008 (submit in class, at the start of class; OR place your solution in the wall-mounted box outside my
office, THN E213, by the same deadline)
Problem 1. [1 point]
Fig. 1 shows a network of IP routers and hosts. The link rates, through , are all 1Gbps, while the link rate
. Two TCP connections are established: (i) between processes in Host 1 and Host 3, and (ii) between processes
in Host 2 and Host 3. The maximum segment size is the same, 1460 bytes, on both TCP connections. The RTT (Round Trip
Time), to send a segment and receive an ACK, on the Host1-to-Host3 path is 50ms, while it is 5ms on the Host2-to-Host3 path.
The packet loss rate on the Host1-to-Host3 path is 2%, while the packet loss rate on the Host2-to-Host3 path is so small that it
can be approximated to 0. What is the throughput of each TCP connection? Do not forget the units in your answer.
r
1
r
5
r
6
10Mbp s=
r
1
r
5
r
4
r
3
r
2
.....
.....
Other links
..... .....
IP router
IP router IP router
IP router
Host 1
Host 2
Host 3
r
6
Fig. 1 An example IP network
NAME:
Pledge:
pf3
pf4
pf5

Partial preview of the text

Download TCP and IP Networking Homework 3 - Prof. Malathi Veeraraghavan and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

CS/ECE 457 Fall 2008

Homework 3

Instructions:

  • Be sure to write your name on your submission. Fill in your answers in this printout. Add extra sheets if needed.
  • Complete the homework individually.
  • Pledge: On my honor as a student I have neither given nor received aid on this exam/assignment. (Write out and sign).
  • The only help that you can get is from your class notes and the reference textbooks.
  • Show all your steps and state your assumptions.
  • Be neat.
  • Number of problems: 8
  • Total points: 21 points (will be scaled down for the final grade)

Due Date: Dec. 4, 2008 (submit in class, at the start of class; OR place your solution in the wall-mounted box outside my office, THN E213, by the same deadline)

Problem 1. [1 point] Fig. 1 shows a network of IP routers and hosts. The link rates, through , are all 1Gbps, while the link rate

. Two TCP connections are established: (i) between processes in Host 1 and Host 3, and (ii) between processes in Host 2 and Host 3. The maximum segment size is the same, 1460 bytes, on both TCP connections. The RTT (Round Trip Time), to send a segment and receive an ACK, on the Host1-to-Host3 path is 50ms, while it is 5ms on the Host2-to-Host3 path. The packet loss rate on the Host1-to-Host3 path is 2%, while the packet loss rate on the Host2-to-Host3 path is so small that it can be approximated to 0. What is the throughput of each TCP connection? Do not forget the units in your answer.

r 1 r 5 r 6 = 10 Mbps

r 1 r 5

r 4 r 3 r 2 ..... ..... Other links

..... (^) .....

IP router IP router^ IP router IP router

Host 1

Host 2

Host 3

r 6

Fig. 1 An example IP network

NAME:

Pledge:

Problem 2. [1.5 points]

Fig. 2 shows a TCP segment exchange. The term “Max-Data” denotes a maximum-sized segment carrying user data. The MSS for this exchange is 1024 bytes. If a segment has no payload, and is simply used to carry an acknowl- edgment, it is represented with “ack number,” where “number” represents the value carried in the Acknowledgement number field of the TCP header. Assume that at time , the mean RTT value, A, is 3, the mean RTT deviation,

D, is 0.5, and the RTO is 5. At time t=4.2, an RTT measurement is initiated at the sender, mng.

  1. What is the RTO at?
  2. What is the RTO at?

Problem 3. [2 points]

At a given instant in time, , the congestion window size at a TCP sender is 6400 bytes, ssthresh is 7000 bytes, and the sender receives an ACK reporting a flow-window size from the receiver of 4000 bytes. After reception and processing of this ACK, the TCP sender notes that there are still 2 outstanding segments. MSS for this connection is 800 bytes. Answer the following:

a. What is the newly computed value of the congestion window?

b. How many maximum-sized segments can the sender now transmit?

mng (^) photon Time

Max-Data (seq 1025, ack 1)

Max-Data(seq 2049, ack 1)

ack 2049 ack 3073

Fig. 2 An example TCP data exchange

t =4.

t = 6

t =6.

t

Problem 6. [8 points]

In this problem, we study how TCP, UDP, DNS and FTP are all used. Assume that dns.virginia.edu and dns.cisco.com are the DNS servers for the virginia.edu and cisco.com domains, respectively. The IP address/subnet mask assigned to the interface cards of these two DNS servers are shown in Fig. 4. Also shown are the IP address/ subnet mask assigned to Frodo’s laptop’s NIC and the Cisco FTP server NIC. Frodo runs an FTP client on his laptop and wishes to download a file, F, of size 10000 bytes, from ftp.cisco.com. Assume that the DNS caches are empty at Frodo’s laptop and all the DNS servers. The name servers do NOT support recursion.

  1. The FTP client on Frodo’s laptop uses DNS to obtain the IP address corresponding to ftp.cisco.com. The RD flag is not set in the DNS query. What values are carried in the query name and query type of this DNS query?
  2. How many DNS query-response pairs are required for Frodo’s laptop to obtain the IP address corre- sponding to ftp.cisco.com? [State your assumptions.]
  3. What transport protocol is used to carry the DNS queries?
  4. What is the destination port number in the transport-layer header of the packet carrying the first DNS query?
  5. After obtaining the IP address corresponding to ftp.cisco.com, the FTP client on Frodo’s laptop opens a TCP connection to the control port of the FTP server running at ftp.cisco.com. How many TCP seg- ments are exchanged to open this connection? What is the destination port number carried in the TCP header of the first TCP segment?

IP router IP routers

IP router

Internet

FTP server ftp.cisco.com

DNS server dns.cisco.com

DNS server dns.virginia.edu

.com DNS server

.edu DNS server

root DNS server

128.143.219.25/ Frodo's laptop

198.133.219.25/

198.133.132.18/24 128.143.216.15/

Fig. 4 Example of DNS and FTP

  1. After Frodo logins to the FTP server, his FTP client selects port 259 for its data port and issues a PORT command. What are the parameters of the PORT command?
  2. What transport-layer protocol is used to carry the PORT command? What is the destination port number in the transport-layer header of this packet?
  3. The FTP server at ftp.cisco.com issues a TCP SYN, with the MSS option set to 1460 bytes, to the FTP client on Frodo’s laptop to open the data connection. When the data connection is established, Frodo initiates the download of file, F, which causes his FTP client to issue a RETR command. How many data-carrying TCP segments are sent from the FTP server for the complete file transfer, assuming error- free communication?
  4. Assuming ssthresh for this TCP connection is 64KB, and round-trip time between the FTP client and FTP server is 50ms, approximately how long will this file transfer take? Assume TCP byte counting, and negligible emission and processing delays. Further assume that the receiver buffer at the FTP client is 64KB.
  5. If Frodo closes his FTP client, both TCP connections will need to be closed. Can one TCP segment be used to close down both connections?

Problem 7. (3 points):

Using the RSA public key cryptosystem, if , and , find and compute the cipher text cor- responding to the plaintext message hoos. Assume that letters are represented by numeric values as follows: a = 1, b = 2, etc. [e.g., ‘h’ equals 8]. Encrypt hoos one letter at a time and give the corresponding decimal numeric values for the ciphertext.

p = 5 q = 11 d = 27 e