Docsity

EE122 Final Review Section, Schemes and Mind Maps of Design

Toggle sidebar
bg1
EE122 Final Review Section
Many thanks to previous years finals/midterms at Berkeley and
Princeton.
Question 1: Short Answers
A) Internet Principles
We are faced with three basic design decisions
a) How to break the overall system into modules
b) Where these modules are implemented:
c) Where the associated state is stored:
We have three general principles to guide us. Which of the above design
decisions do the following help clarify: (choose either a, b, or c for principle
below)
i. Fate Sharing: c
ii. End-to-End Principle: b
iii. Layering: a
B) Routing
Which all of the following three choices form a necessary and sufficient
condition (independently) for successful routing (assuming routing is
deterministic):
a) Forward all packets along the shortest path, and never send a packet out
along the port it came in on.
b) Avoid loops (a packet returning to a node it has already visited) and dead-
ends (where a packet is dropped before it reaches the destination).
c) Always forward packets to a node closer to the destination.
C) TCP
Assume the advertised window of a TCP receiver does not exceed 3
segments. Give a “scenario” in which TCP Reno achieves better performance
than TCP Tahoe, if any. Justify your answer.
(A “scenario” can be specified by the number of segments sent by the sender,
and by indicating which segments are lost, if any.)
pf3
pf4
pf5

Partial preview of the text

Download EE122 Final Review Section and more Schemes and Mind Maps Design in PDF only on Docsity!

EE122 Final Review Section

Many thanks to previous years finals/midterms at Berkeley and Princeton. Question 1: Short Answers A) Internet Principles We are faced with three basic design decisions a) How to break the overall system into modules b) Where these modules are implemented: c) Where the associated state is stored: We have three general principles to guide us. Which of the above design decisions do the following help clarify: (choose either a, b, or c for principle below) i. Fate Sharing: c ii. End-to-End Principle: b iii. Layering: a B) Routing Which all of the following three choices form a necessary and sufficient condition (independently) for successful routing (assuming routing is deterministic): a) Forward all packets along the shortest path, and never send a packet out along the port it came in on. b) Avoid loops (a packet returning to a node it has already visited) and dead- ends (where a packet is dropped before it reaches the destination). c) Always forward packets to a node closer to the destination. C) TCP Assume the advertised window of a TCP receiver does not exceed 3 segments. Give a “scenario” in which TCP Reno achieves better performance than TCP Tahoe, if any. Justify your answer. (A “scenario” can be specified by the number of segments sent by the sender, and by indicating which segments are lost, if any.)

There is no scenario because TCP Reno can never obtain the three duplicate ACKs necessary to do fast retransmissions and fast recovery when the receiver’s advertized window does not exceed 3 segments. D) Wireless Is RTS/CTS guaranteed to eliminate hidden terminals? If yes, argue why; otherwise, present a counterexample. No. For instance, we can have asymmetric links, and the sender does not hear a CTS from one receiver, but that receiver can hear what the sender is transmitting E) Ethernet and IP a) Suppose Ethernet was the only existing LAN technology, so every host in the Internet was part of a local Ethernet and thus had a globally-unique Ethernet address. Your friend suggests that IP isn’t necessarily anymore, and the entire Internet could just be one large, switched Ethernet instead. Give two reasons why using existing Ethernet protocols for this is a bad idea from a networking perspective (i.e., don’t consider security or privacy).

  1. Flooding doesn’t scale for broadcast transmission (when address hasn’t been learned yet by switch)
  2. Even if switched Ethernet, flooding doesn’t scale for ARP or spanning tree.
  3. MAC addresses aren’t hierarchical – switches couldn’t aggregate addresses for more compact routing tables, unless in IP prefixes. (b) What about the other way around, why do we not simply assign IP addresses to network adaptors, instead of dealing with both MAC (Ethernet) and IP addresses? Give one reason.
  4. Approach would give up ability to have topological addressing and hence not support aggregation, again leading to large routing table sizes
  5. End-hosts would have to be part of routing protocol and announce addresses when they migrate, or the equivalent of global “ARP” for an IP address, neither which scales

c. Collisions are minimized when RTS/CTS mechanisms are used. d. TCP congestion control mechanisms work poorly in wireless environments if they do not perform any type of link-layer retransmission. e. Wireless networks generally have higher loss rates than that in wired networks.

3. Which of the following is/are true about routers? a. Routers reassemble IP fragments if the next link can handle the full datagram. b. Routers can arbitrarily drop packets if they want. c. Routers can not change the IP packets they forward at all d. On a router with many 1 Gbps ports, the router backplane can only handle 1 Gbps on the shared bus, leading to potential congestion. e. In their line cards, routers lookup forwarding tables in the incoming direction and queue packets in the outgoing direction. 4. Otto Pilot built a home-brew network with 20 computers. The RTT between each computer is 10 ms. Communication between computers uses a simple UDP query and response protocol. If no response is received within 20 ms, a computer retransmits the request. Soon, Otto notices congestion collapse in his network. Which of the following techniques is/are guaranteed to prevent congestion collapse? a. Double the timeout value from 20 ms to 40 ms. b. Increase the size of the queue in each router from 4 packets to 8 packets. c. Use exponential backoff in the timeout mechanism while retrying queries. d. If a query is not answered within a timeout interval, multiplicatively reduce the maximum rate at which the client application sends query packets. e. Use a flow control window at each receiver to prevent buffer overruns. 5. Which of the following statements is/are true about fair queuing algorithms? a. For a router serving n flows, fair queuing ensures that no flow can transmit at more than 1/nth the link’s capacity.

b. Fair queuing is often used in the core of the Internet to minimize denial- of-service attacks by individual senders. c. Fair queuing algorithms conceptually track the number of bytes each flow consumes, rather than the number of packets. d. Fair queuing algorithms can be based both on unique flows (5-tuples) or on unique classes of traffic (specified in the IP TOS field). e. Fair queuing with drop-tail policies experiences synchronized losses between multiple senders. 6. Which best describes the Ethernet protocol? (Circle ONE) a. Talk only if you hear no one else talking, but stop as soon as you hear anybody else. b. Pass a ticket around and only talk if you are holding the ticket. c. Raise your hand and wait till a moderator gives you permission to talk. d. Every person is scheduled a time to talk. 7. Which of the following is/are true about Address Resolution Protocol (ARP) and learning switches? (Circle ALL that are correct) a. A learning switch maintains state that maps IP addresses to hardware (MAC) addresses. b. A learning switch maintains state that maps MAC addresses to IP addresses. c. A host’s ARP table maintains state that maps IP addresses to hardware (MAC) addresses. d. A host’s ARP table maintains state that maps hardware addresses to IP addresses. 8. Which of the following is/are true about a communications channel that uses time- division multiplexing? (Circle ALL that are correct) a. There may be times when the channel is idle, even if a sender has data to send on the channel. b. The channel requires the sender’s and receiver’s clocks to be closely synchronized. c. Data in the channel could experience variable delays due to queuing.

c. Persistent HTTP shows the greatest performance advantage over non- persistent HTTP when downloading a page with large objects. d. When the server has finished sending data for all objects referenced by the initially requested page, the server closes the connection.