






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!







Department of Electrical Engineering and Computer Science
There are 24 questions and 13 pages in this quiz booklet. Answer each question according to the instructions given. You have 120 minutes to answer the questions.
If you find a question ambiguous, be sure to write down any assumptions you make. Please be neat and legible. If we can’t understand your answer, we can’t give you credit!
Use the empty sides of this booklet if you need scratch space. You may also use them for answers, although you shouldn’t need to. If you do use the blank sides for answers, make sure to clearly say so!
Before you start, please write your name CLEARLY in the space below.
One two-sided “crib sheet” and calculator allowed. No other notes, books, computers, cell phones, PDAs, information appliances, carrier pigeons carrying answer slips, etc.!
Do not write in the boxes below
1-5 (x/24) 6-11 (x/29) 12-17 (x/27) 18-24(x/20) Total (x/100)
Alyssa P. Hacker is setting up an 8-node broadcast network in her apartment building in which all nodes can hear each other. Nodes send packets of the same size. If packet collisions occur, both packets are corrupted and lost; no other packet losses occur. All nodes generate equal load on average.
A. True / False Four nodes are backlogged on average, and the network is using Slotted Aloha with stabilization, and the fairness is close to 1. False. With four backlogged nodes and fairness close to 1, the probability of of transmission is 1/4. That would put the utilization at 4 · 1 / 4 · (1 − 1 /4)^3 < 0. 5. B. True / False Four nodes are backlogged on average, and the network is using TDMA, and the fairness is close to 1. True. TDMA gives each node an equal share of the network, but 4 nodes have nothing to send, giving a utilization of 0.5. 2 points each.
Now suppose Alyssa’s 8-node network runs the Carrier Sense Multiple Access (CSMA) MAC protocol. The maximum data rate of the network is 10 Megabits/s. Including retries, each node sends traffic according to some unknown random process at an average rate of 1 Megabit/s per node. Alyssa measures the network’s utilization and finds that it is 0.75. No packets get dropped in the network except due to collisions, and each node’s average queue size is 5 packets.
As mentioned earlier, the average number of packets in a node’s queue is 5. Each packet is 10000 bits long.
In the reliable transport protocols we studied, the receiver sends an acknowledgment (ACK) saying “I got k” whenever it receives a packet with sequence number k. Ben Bitdiddle invents a different method using cumulative ACKs: whenever the receiver gets a packet, whether in order or not, it sends an ACK saying “I got every packet up to and including ”, where is the highest, in-order packet received so far.
The definition of the window is the same as before: a window size of W means that the maximum number of unacknowledged packets is W. Every time the sender gets an ACK, it may transmit one or more packets, within the constraint of the window size. It also implements a timeout mechanism to retransmit packets that it believes are lost using the algorithm from class and Lab 10.
Network assumptions. The protocol runs over a best-effort network, but no packet or ACK is duplicated at the network or link layers.
1 2 3 4 4 4 4 4 4 4
A. Now, suppose that the sender times out and retransmits the first unacknowledged packet. When the receiver gets that retransmitted packet, what can you say about the ACK, a, that it sends? (Circle the BEST answer) (a) a = 5. (b) a ≥ 5. (c) 5 ≤ a ≤ 11. (d) a = 11. (e) a ≤ 11. Solution. (b), a ≥ 5. The reason is that packet 6 could also be lost. It might be tempt- ing to pick (c), but that would be incorrect because the receiver might have received packets 6 , 7 ,... , 11 , 12 ,.. ., and the receiver’s ACKs for 12 ,... lost, yielding the sequence of ACKs. Now, when the receiver gets 5, the cumulative ACK it sends would be larger than 11. For this reason, choices (d) and (e) are also wrong. B. Is it possible for the given sequence of cumulative ACKs to have arrived at the sender even when no packets were lost en route to the receiver when they were sent? (Explain your answer in the space below.) Solution. Yes, 5 may be reordered in the network and experiencing a long delay.
21 22 23 25 28
The window size is 8 packets. What packet(s) should the sender transmit upon receiving each of the above ACKs, if it wants to maximize the number of unacknowledged packets?
On getting ACK # → Send ?? On getting ACK # → Send ??
Ben decides to use the sliding window transport protocol we studied in 6.02 and implemented in Lab 10 on the network below. The receiver sends end-to-end ACKs to the sender. The switch in the middle simply forwards packets in best-effort fashion.
Sender Switch Receiver
Queue (^106) bytes/s
106 bytes/s
108 bytes/s
108 bytes/s
A. Between 900 and 1000. B. Between 450 and 500. C. Between 225 and 250.
srtt → α · r +(1 − α)· srtt
We would like every packet in a window to contribute a weight of at least 1% to the srtt calculation. As the window size increases, should α increase, decrease, or remain the same, to achieve this goal? (You should be able to answer this question without writing any equations.) (Explain your answer in the space below.)
Solution. α should decrease. If α is small, the EWMA has more history, and as α becomes larger, the contribution reduces. One can write out a mathematical expression, but it isn’t necessary to answer the question.
A. State one significant difference between a circuit-switched and a packet-switched network. (Explain your answer in the space below.) In a packet-switched network, packets carry information in the header that tells the switches about the destination. Circuit-switched networks don’t carry any destination information in the data frames. The abstraction provided by a circuit-switched network is that of a dedicated link of a fixed rate; a packet-switched network provides no such guarantee to the communicating end points. B. Why does topological addressing enable large networks to be built? (Explain your answer in the space below.) It reduces the size of the routing tables and the amount of information that must be exchanged in the routing protocol.
A. True / False Only u may have incorrect routes to any other node. B. True / False Only u and u’s neighbors may have incorrect routes to any other node. C. True / False In some topologies, all nodes may have correct routes. D. True / False Even if no HELLO or advertisements packets are lost and no link or node failures occur, a routing loop may occur.
Solution. A and B are false, C is true, and D is false. A is false because u could propagate an incorrect cost to its neighbors causing the neighbor to have an incorrect route. In fact, u’s neighbors could do the same. C is correct; a simple example is where the network is a tree, where there is exactly one path between any two nodes. D is false; no routing loops can occur under the stated condition. We can reason by contradiction. Consider the shortest path from any node s to any other node t running the flawed routing protocol. If the path does not traverse u, no node on that path can have a loop because distance vector routing without any packet loss or failures is loop-free. Now consider the nodes for which the computed paths go through u; all these nodes are correctly implemented except for u, which means the paths between u and each of them is loop-free. Moreover, the path to u is itself loop-free because u picks one of its neighbors with smaller cost, and there is no possibility of a loop.
Alyssa now inspects node C, and finds that it looks like the picture below. She is sure that the bold (not dashed) links belong to the shortest path tree from node C, but is not sure of the dashed links.
C
B D
F
E
A
Consider the five 6-leaf binary trees shown below, each of which diagrams a particular Huffman code for message sequences composed from six symbols A, B, C, D, E, F. Each symbol has an associated proba- bility p(A), p(B), p(C), p(D), p(E), p(F ).
Solution. Tree 2.