Use separate answer booklet for each section
SECTION 1 Questions 1 4
Question 1 (X marks)
An intelligent group of super speedy ants decide to set up a point-to-point link between two ant holes, denoted by hole A and hole B. Suppose the bandwidth of this link is 1000bps, or bread crumbs per second (you can imagine that each ant holds a bread crumb, and they leave hole A at a rate of 1000 ants per second). The distance from hole A to hole B is 100 meters, and the ants walk at a speed of 1 m/s.
- Calculate the Round Trip Time (RTT) for the link between the two holes.
- Using the delay as half the RTT (i.e. just going from A to B, not going back), calculate the delay x bandwidth product for the link, in bread crumbs.
- Suppose the queen ant in hole A sends a messenger ant to Hole B to request 10,000 bread crumbs (remember each ant holds exactly one bread crumb). Assume that 10,000 ants are ready to leave when the messenger arrive. What is the duration of time that will elapse between when the messenger departed the queen (i.e. hole A) and all 10,000 ants have arrived at hole A.
Question 2 (X marks)
Assume that the SendBase for a TCP Reno sender is currently 4000. The TCP sender has sent four TCP segments with sequence numbers 4000, 4500, 5500 and 7000. The sender then receives a segment with an acknowledgement number 7500 and a receive window 6000. The congestion window, CongWin, is set to 10000 bytes after this ACK is processed. Answer the questions (i)-(iii) assuming that this ACK is processed and no further ACKs are received:
- What is the value of SendBase?
- How many bytes in total are sent in the four TCP segments?
- What is the last byte (number) that the TCP sender can send with certainty that the receivers buffer will not overflow?
Now assume that the sender receives three more TCP segments, such that all three segments have TCP acknowledgement number 7500. Answer the questions (iv)-(v) assuming that all three ACKs are processed and no further ACKs are received:
- What is the value of CongWin?
- What is the sequence number of the next segment that will be sent?
Question 3 (X marks)
In the lecture (and in the text) we observed how the AIMD algorithm implemented by TCP enables two TCP connections sharing a bottleneck link to achieve a fair share of the bottleneck link capacity (see Figure 3.56 in the text). Suppose that instead of a multiplicative decrease TCP decreased the window size by a constant amount. Would the resulting AIAD algorithm converge to an equal share algorithm? Justify your answer using a diagram similar to Figure 3.56.
Question 4 (X marks)
Consider that only a single TCP Reno connection uses one 10Mbps link which does not buffer any data. Suppose that this link is the only congested link between the sending and receiving hosts. Assume that the TCP sender has a huge file to send to the receiver and the receivers receive buffer is much larger than the congestion window. We also make the following assumptions: each TCP segment is 1,500 bytes; the two-way propagation delay of this connection is 150 msec; and this TCP connection is always in congestion avoidance phase, that is ignore slow start.
- What is the maximum window size (in segments) that this TCP connection can achieve?
- What is the average window size (in segments) and average throughput (in bps) of this TCP connection?
- How long would it take for this TCP connection to reach its maximum window again after recovering from a packet loss?
PLEASE TURN OVER
Use separate answer booklet for each section
SECTION 2 Questions 5 8
Question 5 (X marks)
- Consider the network topology shown in the figure above. Show the operation of Dijkstras link-state algorithm to compute routes from node A to all destinations.
- Show the distance table that would be computed by the distance vector algorithm in A once the distance vector algorithm has finished executing. You do not have to run the distance vector algorithm; you should be able to compute the table by inspection. Note: make sure you have a row in the distance table for each neighbour of A.
- Consider three instances of link failure: (i) Link A-B fails, (ii) Link A-C fails, and (iii) Link A-E fails. In each of these three cases, all links except the one mentioned are still active. In which of the three instances of link failure will the count-to-infinity problem occur? Describe briefly how this problem occurs for the chosen instance. Name a solution to the count-to-infinity problem.
Question 6 (X marks)
Sheldon Cooper is designing a Network Address Translator (NAT) device to use at home so that multiple computers share a single global IP address (nat ip).
- In his first attempt Sheldon designs a NAT, which maps an outgoing {source ip, source port, destination ip, destination port} tuple to {nat ip, new port, destination ip, destination port}. To his surprise, he finds that routers in the Internet drop every packet sent by his NAT.
What is missing in Sheldons NAT design?
- Now assume that Sheldon has corrected the above problem. He now finds that he can successfully browse the Web through the NAT, but he cannot use FTP. Why?
Question 7 (X marks)
Assume that the forwarding table of a router is as follows:
Prefix | Link Interface |
128.96.170.0/23 | 0 |
128.96.168.0/23 | 1 |
128.96.166.0/23 | 2 |
128.96.164.0/22 | 3 |
Default | 4 |
Which interface would the datagrams with the following destination IP address be forwarded to?
- 96.171.92
- 96.167.151
- 96.163.151
- 96.169.192
- 96.165.121
Question 8 (X marks)
Lets consider the operation of a self-learning Ethernet switch in the context of a network in which 6 nodes labelled A through F are star connected into the self-learning switch (one node connected to each link). Suppose that (i) B sends a frame to E, (ii) E replies with a frame to B, (iii) A sends a frame to B, (iv) B replies with a frame to A. The switch table is initially empty. Show the state of the switch table before and after each of these events. For each of these events, identify the link(s) on which the transmitted frame will be forwarded, and briefly justify your answers.
PLEASE TURN OVER
Use separate answer booklet for each section
SECTION 3 Questions 9 12
Question 9 (X marks)
Why doesnt 802.11 implement collision detection? What compensation mechanism does it implement?
Question 10 (X marks)
Consider the wireless network composed of four nodes in Figure 2, which has a linear topology deployed along a highway. The distance between neighbouring nodes is equal. Assume all nodes are using 802.11 MAC with RTS/CTS enabled. The radio range for each node is fixed, and this radio range is slightly longer than the inter-node distance, i.e., each node can reach only its left and right neighbours. Assume that if there are two simultaneous transmissions within the radio range of the receiver, both transmissions will be unsuccessful.
Figure 2: Figure for Question 10
- Assume that node A is currently sending a data frame (not an ACK, an RTS, or a CTS) to node B. Node C wants to send a packet to node D. Assume that node C (and only C) ignores the 802.11 MAC and sends the packet. Would Cs packet arrive successfully at D? Would As packet arrive successfully at B? Explain your reasoning.
- Consider the same situation as above except that all nodes are using the 802.11 MAC. Will C start transmission while A is sending the data packet? Why or why not? If not, how does C know that A is transmitting a data frame?
- Is there any way for C to know when As transmission will end? Explain.
Question 11 (X marks)
Suppose Alice wants to send a message to Bob. Bob has a public-private key pair (KB+, KB), and Alice has Bobs certificate. But Alice does not have a public, private key pair. Alice and Bob share the same hash function H(.)
- In this situation, is it possible to design a scheme so that Bob can verify that Alice created the message? If so, show how with a block diagram for Alice and Bob.
- Is it possible to design a scheme that provides confidentially for sending the message from Alice to Bob? If so, show how with a block diagram for Alice and Bob.
Reviews
There are no reviews yet.