






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







You are not required to do these problems, and we are not asking you to hand them in. However, if you can’t do these problems, then you will have trouble on the final. In fact, many of these questions came from last year’s final. As the saying goes, “Know This”.
Consider the following acronyms: A, AIMD, BGP, CDN, CIDR, CNAME, DHCP, DNS, ECN, FIN, HTTP, ICANN, LPM, MSS, MTU, MX, NAT, NS, PMTU, PTR, RFC, RIP, RST, RTO, SSTHRESH, STFU, SYN, TCP, TLD, UDP. Match the acronyms to the descriptions below, using each acronym exactly once. Supply exactly one answer for each item below. In some cases, an acronym might fit more than one question, but there is only one way to answer these so that every acronym is used exactly once. For terms that aren’t familiar to you, use the book or the web. i) A mechanism that allows the network to indicate congestion to TCP without having to drop the packet. ii) The DNS record type that provides the IP address of a given hostname. iii) The DNS record type that provides the canonical name associated with a given hostnam. iv) The DNS record type that provides the authoritative name server associated with a given domain. v) The DNS record type that provides the mail server associated with a given domain. vi) The DNS record type that provides a hostname associated with a given IP address vii) The name of the message used to initiate a TCP connection. viii)A message (control flag) used to terminate a TCP connection abruptly. ix) A message (control flag) used to terminate a TCP connection smoothly. x) The kind of window adjustment algorithm used in TCP. xi) The size of the largest IP packet that can be sent end-‐to-‐end along a path without fragmentation. xii) The largest sized segment that can be sent by TCP. xiii)The largest size IP packet that can be sent across a particular link. xiv) The most common examples of this acronym are .com, .net, and .org.
Due to budget cuts, the CS department is forced to buy cheaper networking equipment. It turns out that one of the switches has a defective port that has a strange dropping behavior. On a particular port, it drops every fourth packet, in both the sending and receiving directions. To be precise, if one only looks at the packets being received, it drops the 4th, 8th, 12th, ... packet. Similarly, if one only looks at the packets being sent, it drops the 4th, 8th, 12th, etc. This problematic port is the port that attaches the department chair’s computer, host A, to the network, so every fourth packet sent to A is dropped, and every fourth packet sent by A is dropped. Suspecting a problem, the CS department runs a test by initiating a file transfer from host A to an offsite host B. The RTT of the packets is 1 msec, the packet transmission time is .01msec, and the RTO (timeout value) in the TCP connection is 100msec (you won’t need these exact numbers, they just set the relative magnitude of the various timescales). Host A uses a transport protocol with a sliding window flow control with a constant window size of 5 packets and a duplicate ACK threshold of 3 packets (3 duplicate ACKs lead to a retransmission). The test consists of sending a series of data packets (labeled D1, D2, …) from A to B. We want to describe the transmissions from A (by writing Dx for the appropriate x). The first five data packets are shown, in addition to the starting SYN and ACK packets, just to get you started (and just to clarify, we assume that the packet count, in terms of dropping, starts with the SYN; therefore, in these first few packets, D and only D2 is dropped). The packets from A that will be dropped are marked in bold. Please fill in the remaining 15 packets sent from A. (And remember that the packets coming to A are also dropped in a similar one-‐every-‐four pattern, with the packet count starting with the SYN-‐ACK, so the first packet dropped in the receiving direction is the ACK sent in response to D4.) SYN, ACK, D1, D2 , D3, D4, D5, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____ How many fast retransmits occur during the transmission of this set of packets?_____ How may timeouts occur during the transmission of this set of packets?______
In the following, assume that the MSS=1000 bytes and that in all computations CWND is rounded down to the nearest integer. During the congestion avoidance phase, TCP updates the window following each ACK by the following equation:
Where Int(x) is the integer part of x. In the slow-‐start phase, TCP updates the window following each ACK by
The algorithm leaves slow-‐start when CWND > SSThresh (note the strict inequality, which is implementation dependent rather than a property of the TCP spec.). When undergoing a Fast Retransmit, assume the TCP uses the “advanced” version discussed in the congestion control lecture (slide 38). In the answers on the next page, denote the packet containing bytes 1401 to 1500 as the 15th^ MSS, and denote the ACK expecting the next byte of 15001 as an ACK for the 16 th^ MSS. Consider a TCP connection with a CWND of 12000 bytes and then undergoes a timeout. Assume all data up to 16000 have been ACKed (i.e., the last ACK’s expected next byte was 16001). What is the value of CWIN, and which packets does TCP send, at each step in the following process? The first two lines are filled out, to indicate the required form of the answers.
i) Consider a case where a client A is retrieving files F and G from web site B. F and G are both 125KB (i.e., one megabit). The RTT between A and B is 10msec (note, these are round-‐trip-‐times, not one-‐way latencies), and the bandwidth between the sites is 10Mbps. Assume all TCP SYN/ACK packets and HTTP request packets are negligible in size. How long does it take A to retrieve both files under the following circumstances: Sequential (one-‐at-‐a-‐time) requests with nonpersistent TCP connections:_____ Concurrent requests with nonpersistent TCP connections:_____ Sequential requests within a single persistent TCP connection:_____ Pipelined requests within a single persistent TCP connection:_____ ii) Consider the same situation as in i), but assume that rather than a dedicated link there is a large shared link with many flows traversing it, and each TCP connection gets 10Mbps (adding additional flows does not significantly change the bandwidth per TCP connection, because there are thousands of flows on the link). Now, how long does it take A to retrieve both files under the following circumstances: Sequential (one-‐at-‐a-‐time) requests with nonpersistent TCP connections:_____ Concurrent requests with nonpersistent TCP connections:_____ Sequential requests within a single persistent TCP connection:_____ Pipelined requests within a single persistent TCP connection:_____ iii) Consider the same situation as in i), except that A is only downloading file F and there is now a cache C between A and B. All requests from A to B go through cache C, and assume the bandwidth along the path from A to C is 1gbps and the RTT between A and C is negligible, while the bandwidth along the path from C to B is 10mbps with an RTT of 10msec. Note, these are round-‐trip-‐times, not one-‐way latencies. As above, assume that the file is 125KB (i.e., one megabit) and that all TCP SYN/ACK packets and HTTP request packets are negligible in size.
Assume the cache operates as follows: (where the origin server refers to the site named in the URL)
Domain G: F>H Domain H: C>E>G What path do packets take from A to G?__________ What path do packets take from G to A?__________ Note: there is not a unique right answer to this question: BGP could reach several different fixed points. All you need to do is give an answer that is stable; that is, your answer should reflect a set of routes that, if BGP were to start with these routes as its initial condition, BGP would continue to retain that set of routes.