Homework 5
Homework 5
Homework 5
1. Why is the UDP checksum separate from the IP checksum? Would you object to a protocol
that used a single checksum for the complete IP datagram including the UDP message?
Many possible answers would satisfy this question. The primary reason that they are
separate is that they evaluate the integrity of different data. The IP checksum only deals with
the integrity of the header, while the UDP checksum deals with the data area as well as the
header.
TCP acknowledgements contain the sequence number of the next octet of data that is
expected to be received. If an acknowledgement is dropped in an increasing window size
environment, more data may be sent out before the timeout value is reached. In this instance,
the receiver sends an acknowledgement for the new data with an updated sequence number
that shows that the previous data was already received.
3. Assume TCP is sending segments using a maximum window size (64 Kbytes) on a channel
that has infinite bandwidth and an average roundtrip time of 20 milliseconds. What is the
maximum throughput? How does throughput change if the roundtrip time increases to 40
milliseconds (while bandwidth remains infinite)?
4. Using your results from the previous problem, compute the throughput for the following
window sizes: 100, 1000, 10,000. Assuming perfect transmission/reception (no lost packets)
and only ACK packets for overhead.
This study source was downloaded by 100000844150145 from CourseHero.com on 10-11-2022 19:55:46 GMT -05:00
https://www.coursehero.com/file/5678200/homework5/
5. In broad terms, we could say that RIP distributes the local routing table, while BGP
distributes a table of networks and routers used to reach them (i.e., a router can send a BGP
advertisement that does not exactly match items in its own routing table). What are the
advantages of each approach?
Many possible answers are appropriate here. RIP is simple in its approach but doesn’t scale
well. As the listing of networks grows, more bandwidth is devoted to router update
information while less is available for actual traffic. More specifically, RIP routers are
responsible for a small geographic area while BGP routers cover routing amongst
autonomous systems. By advertising everything that it knows about, BGP routers are more
likely to propagate a complete routing picture, while a RIP routers advertisement will be a
small snapshot of a larger picture.
Frames:
16 Kbytes = 16,386 bytes = 9180 octets, 7204 octets
24 Kbytes = 24576 bytes = 9180 octets, 9180 octets, 6216 octets
7. How many octets and bits can be present on a fiber that connects to an ATM switch if the
fiber is 3 meters long? 100 meters? 3000 meters? To find out, consider an ATM switch
transmitting data at 155 Mbps. Each bit is a pulse of light that lasts 1/(155x106) second.
Assume the pulse travels at the speed of light, calculate its length, and compare to the length
of the fiber.
Size of a single bit = 6.45 x 10-9 seconds/bit x 3 x 108 m/s = 1.94 m/bit
Bits
3 m segment size = 3 m / 1.94 m/b = 1 bit
100 m segment size = 100 m / 1.94 m/b = 51 bits
3000 m segment size = 3000 m / 1.94 m/b = 1546 bits
Octets
Size of a single octet = 1.94 m/b * 8 = 15.52 m/octet
3 m segment size = 3 m / 15.52 m/octet = 0 octets
100 m segment size = 100 m / 15.52 m/octet = 6 octets
3000 m segment size = 3000 m / 15.52 m/octet = 193 octets
This study source was downloaded by 100000844150145 from CourseHero.com on 10-11-2022 19:55:46 GMT -05:00
https://www.coursehero.com/file/5678200/homework5/
Powered by TCPDF (www.tcpdf.org)