



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 Sciences College of Engineering University of California, Berkeley
Vern Paxson / Jorge Ortiz / Lisa Fowler / Daniel Killebrew
Chapter 1, P (a) [5 points] With circuit switching you can support up to 104 users, since you need to allocate 100 kbps of capacity for each user, and 1 Gbps / 100 kbps = 104. (b) [5 points] Given M total users, each using the network at a given point of time with proba- bility p, then the probability that exactly K are using the network at a given time is: ( M K
) pK^ (1 − p)M^ −K
Therefore, the probability that at least N + 1 users are active at the same time is given by:
∑^ M
i=N +
( M i
) pi(1 − p)M^ −i.
Chapter 1, P (a) [2 points] The delay is: 104 km · 103 m/km
= 0. 04 s.
Therefore the bandwidth-delay product is:
1 Mbps · 0. 04 s = 40, 000 bits.
(b) [2 points] The link can carry data at 1 Mbps. Consider a single bit propagating over the link. By the time it reaches the other end, 40 msec have elapsed. By the time it exits, another 1 Mbps · 0.040s = 40,000 bits have entered the link, so at any given time the link can hold at most 40,000 bits. (c) [2 points] The bandwidth-delay product of a link is the maximum number of bits that can be in the link. We will see later that this generalizes to multi-hop paths. (d) [2 points] If 40,000 bits completely fill a link that is 10,000 km long, then during propaga- tion each bit spans 10,000 km / 40,000 bits = 0.25 km = 250 m. A football field is 100 yds ≈ 90 m, so a bit is longer. (e) [2 points] The total number of bits a link can carry at one time is the bandwidth-delay product. The delay of a link is its length m divided by the propagation speed s, so the bandwidth delay product is R · m s. The width of each bit is the length of the link divided by the number of bits it can carry, so m R · m s
= s/R.
Chapter 1, P
(a) [2 points] Time to send message from source to first packet switch = 7.^5 x^10
6
3
Chapter 4, P11 [10 points]
For Subnet 1 you need at least 125 addresses, so you could allocate 223.1.17.0/25. Subnet 2 needs at least 60 addresses, so you could allocate 223.1.17.128/26. Finally for Subnet 3, where you also need at least 60 address, you could assign 223.1.17.192/26. Another possible set of answers are 223.1.17.128/25 for Subnet 1; 223.1.17.0/26 Subnet 2; and 223.1.17.64/26 for Subnet 3.
Chapter 4, P14 [10 points] We need to include the first 26 bits of 101.101.101.64, so any address from 101.101.101.65 to 101.101.101.127 is a valid address in this network. The four equal-sized subnets that span it are 101.101.128.0/19, 101.101.160.0/19, 101.101.192.0/19, 101.101.224.0/19.
(b) Same as (1), but after we finish transmitting a packet we must wait for one RTT before transmit- ting the next packet. Answer: [5 points] The number of packets we wish to send is the same as in part (a), except now we wait an RTT for each packet that we send. This leaves us with the following: 1560 ∗ 210 ∗ 8 ︸ 10 ︷︷^6 ︸ T otalF ullP acket
LastP acket
RT T /packet
Handshake
= 137. 74752 sec
(c) Same as (1), but the link bandwidth is “infinite” (the transmission time is assumed to be zero). We start by sending one packet in the first RTT ( 20 ), during the second RTT we send two ( 21 ) packets, during the third RTT we send four ( 22 ), and so on. (Any idea why we might want to do something like this?) Answer: [5 points] The main idea here to count the minimum number of terms in the following
summation:
∑^ n
i=
2 i^ that yields a sum ≥ 1561.
When expanded we see that there are 11 terms. (We could also get this directly as ⌈log 2 1561 ⌉.) This means that the total amount of time to send the file is the initial hand- shake, plus the 11 RTTs to send the groups, plus a final one-way propagation for the last group to reach the destination: 0 .08 + 11 ∗ 0 .08 + 0.04 = 1. 0 sec. (Note: we also accepted an answer of 0.96 sec which left out the final 40 ms of propagation time.) This scheme might be used when we want to maximize the number of packets in flight but we are trying to determine how much the network and receiving host(s) could handle (which it turns out TCP does when starting up).
The ping program determines the round-trip-time (RTT) to any host on the Internet. Using a computer on campus, ping the following hosts: mit.edu (Cambridge, MA), cornell.edu (Ithaca, NY), prince- ton.edu (Princeton, NJ), cmu.edu (Pittsburgh, PA), wisc.edu (Madison, WI), uchicago.edu (Chicago, IL), utexas.edu (Austin, TX), utah.edu (Salt Lake City, UT). For each of these locations find the physical distance from Berkeley using google maps (maps.google.com).
(a) Plot a graph (using your favorite plotting program like gnuplot or excel) where the X-axis represents the distance to each city, and the Y-axis represents the ratio between the RTT as measured by the ping program and the shortest possible time T along the driving route returned by Google maps.
[3 points] Ping data [3 points] Ratio calculation and graph
Dest Google Distance (mi) Ping RTT (ms) Light T (ms) Ratio mit.edu 3086 127.66 16.566 7. cornell.edu 2780 91.84 14.924 6. princeton.edu 2898 93.49 15.557 6. cmu.edu 2568 88.36 13.786 6. wisc.edu 2084 79.52 11.187 7. uchicago.edu 2131 78.18 11.187 6. utexas.edu 1750 44.01 9.394 4. utah.edu 726 42.13 3.897 10.
(b) [4 points] 2 points per reason. Give two reasons why the Y-values you plot are larger than 2. Answer: At least two of the following:
The Request for Comments (RFC) documents define and standardize the bulk of the protocols used in the Internet. They are published on behalf of the Internet Engineering Task Force (IETF), which
RFC Title 877 A Standard for the Transmission of IP Datagrams Over Public Data Networks 894 A Standard for the Transmission of IP Datagrams Over Ethernet Networks 895 A Standard for the Transmission of IP Datagrams Over Experimental Ethernet Networks 1042 A Standard for the Transmission of IP Datagrams Over IEEE 802 Networks 1044 Internet Protocol on Network System’s HYPERchannel Protocol Specification 1055 A NONSTANDARD FOR TRANSMISSION OF IP DATAQGRAMS OVER SERIAL LINES: SLIP 1088 A Standard for the Transmission of IP Datagrams over NetBIOS Networks 1209 The Transmission of IP Datagrams over the SMDS Service 1390 Transmission of IP and ARP over FDDI Networks 1577 Classical IP and ARP over ATM 2023 IP Version 6 over PPP 2067 IP over HIPPI 2470 Transmission of IPv6 Packets over Token Ring Networks 2491 IPv6 over Non-Broadcast Multiple Access (NBMA) networks 2590 Transmission of IPv6 Packets over Frame Relay Networks Specification 2625 IP and ARP over Fibre Channel 2734 IPv4 over IEEE 1394 3572 Internet Protocol Version 6 over MAPOS (Multiple Access Protocol Over SONET/SDH) 3717 IP over Optical Networks: A Framework 4259 A Framework for Transmission of IP Datagrams over MPEG-2 Networks 4391 Transmission of IP over InfiniBand (IPoIB)