Docsity

Practice Midterm Exam - Internet Protocols | CSC 573, Exams of Computer Science

Toggle sidebar
bg1
CSC 573 Section 001
Midterm test
March 26, 2002
Questions 1 โ€“ 10 each carry 3 marks. Answer only by placing a check mark to indicate
whether the statement is true of false in the appropriate box, and leaving the other box
blank.
Questions 11 โ€“ 17 each carry 10 marks. Answer in the space provided; provide
reasonable explanations where called for, but make your answer brief.
Question 18 is a 5 mark extra credit question.
This is a one hour test.
First Name: _____________________________
Last Name: _____________________________
Student ID: _____________________________
Pledge of Honor: I pledge on my honor that I have answered the questions
in this test purely on my own individual ability, and have neither given help
to nor received help from another person in taking the test.
Signature: __________________________________________
pf3
pf4
pf5

Partial preview of the text

Download Practice Midterm Exam - Internet Protocols | CSC 573 and more Exams Computer Science in PDF only on Docsity!

CSC 573 Section 001

Midterm test

March 26, 2002

Questions 1 โ€“ 10 each carry 3 marks. Answer only by placing a check mark to indicate whether the statement is true of false in the appropriate box, and leaving the other box blank.

Questions 11 โ€“ 17 each carry 10 marks. Answer in the space provided; provide reasonable explanations where called for, but make your answer brief.

Question 18 is a 5 mark extra credit question.

This is a one hour test.

First Name: _____________________________

Last Name: _____________________________

Student ID: _____________________________

Pledge of Honor: I pledge on my honor that I have answered the questions in this test purely on my own individual ability, and have neither given help to nor received help from another person in taking the test.

Signature: __________________________________________

TRUE FALSE

  1. UDP can sometimes deliver the same datagram to two different processes.
  2. A port is a one-to-one abstraction for applications processes.
  3. On a host, the IP layer can be simultaneously delivering many datagrams to the TCP layer.
  4. UDP always needs to use queues to communicate with IP.
  5. ICMP does not specify the action to be taken in response to all ICMP error reports.
  6. The congestion control feature of TCP can be turned off by an application which does not need this functionality.
  7. An ICMP message is never generated in response to an IP datagram encapsulating an ICMP message.
  8. The TCP sliding window mechanism is more like GoBackN than like stop-and-wait.
  9. The listen() call allows us to specify how many sockets a single process apparent concurrent server will service.
  10. In normal TCP operation, the ACK flag is sometimes but not always set in the segments being exchanged.
  1. Consider the TCP 3-way handshake. Suppose that a stale copy of an active open request (the SYN segment) with sequence number x from host A arrives at host B at a time when A is not attempting to open a connection to the same endpoint at B. B sends the passive open segment with acknowledgement number x +1 and sequence number y. By an improbable misfortune a stale copy of an ACK from A to B with the same endpoints and sequence number of x +1 and acknowledgement number of y + arrives now at B. Explain what happens next and whether A and B can continue indefinitely with different ideas regarding the connection. Does this situation stop a real connection from ever being opened between the given endpoints?
  2. Consider two hosts A and B joined by a point-to-point link of bandwidth 1.5 Mbps. There is no other traffic. Assume A always has data to send to B over the link. Further, assume B always sends back an advertised window of 1 segment, the MSS is 1460 bytes and the round trip time (RTT) is estimated at 60ms. Further assume that packets are never lost. (a) What is the average TCP data throughput (i.e., the throughput observed by an application)? (b) How is the answer going to change if the link has a bandwidth of 10 Mbps instead? (c) Consider the original link bandwidth, what is the utilization of the link bandwidth under the given circumstances? Assume a constant size of 20 bytes for each of TCP and IP header and 28 bytes for the Ethernet header. (d) Everything else remaining the same, what is the size of the window advertisement in bytes that would allow full utilization of the link? Assume that the window advertisement is not constrained to by a multiple of the MSS.
  1. A client C and a server S establish a connection. The initial sequence number chosen by C is 60921. The MSS is 1024 and S has a buffer of size 7200 bytes. After each step of the sequence shown below, write down the transmission window at C in terms of the sequence numbers. Express the sent position as the sequence number of the first byte not yet sent, and right edge as the sequence number of the first byte that cannot be sent.

Event Left edge Sent position Right edge segment #3: S advertises a window of size 4096 segments #4,5,6: C sends 3 segments of size 1024 each segment #7: S acknowledges segment # and advertises a window of size 7200 segment #8: C sends 1 segment of size 1024 segment #9: S acknowledges segment # and advertises a window of size 7200 Segment #6 times out at C

  1. Assume that in a TCP connection no segments have to be retransmitted. Does this allow the rtt for each segment to be measured and incorporated into rtt estimation?