


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to problem set 4 of the cs/ece 438: communication networks course, covering topics such as ip addressing, tcp round-trip time estimation, ip fragmentation, and the use of networking utilities like ifconfig and arp.
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



(a) For each entry in the table, list the range of IP addresses that will be matched by that entry (ignoring any overlap between entries) and state the number of addresses in each group i. 64.20.44.1 – 64.20.44.254 (254) ii. 64.20.44.101 – 64.20.44.102 (2) iii. 64.20.32.1 – 64.20.47.254 (4094) iv. 64.20.46.1 – 64.20.47.254 (510) v. 64.0.0.1 – 64.64.255.254 (4194302) vi. All addresses I excluded the IP addresses for the network address and the broadcast address in these calculations. (b) Which interface will be used for each of the following addresses? Remember that routers use the rule with the longest matching prefix. i. 64.20.44.102 — if ii. 64.20.45.102 — if iii. 64.20.47.102 — if iv. 64.20.48.102 — if
(a) Choose α = 0.75 and SRTT(0) = 2 seconds, and assume all measured RTT values = 1 second with no packet loss. What is SRTT(15)? Recall,
SRT T (k + 1) = α ∗ SRT T (k) + (1 − α) ∗ RT T (k + 1).
t SRT T (t) 0 2 1 1. 2 1. 3 1. 4 1. 5 1. 6 1. 7 1. 8 1. 9 1. 10 1. 11 1. 12 1. 13 1. 14 1. 15 1. (b) Now let SRTT(0) = 1 second and assume RTT values = 2 seconds and no packet loss. What is SRTT(15)? t SRT T (t) 0 1 1 1. 2 1. 3 1. 4 1. 5 1. 6 1. 7 1. 8 1. 9 1. 10 1. 11 1. 12 1. 13 1. 14 1. 15 1.
Consider two hosts, A and B, each on a separate shared Ethernet with MTU=1500 bytes. In addition to these LAN’s, the route connecting host A to host B through the Internet contains an additional hop over a point-to-point link between a router on A’s Ethernet and a second router on B’s Ethernet. The point-to-point link has MTU=400 bytes. Recall that MTU is the maximum amount of data that can be sent in a frame at the physical layer and thus includes all TCP and IP headers (each of which occupies 20 bytes). Also recall that IP fragmentation breaks data along 8 byte boundaries.
(a) For each packet that arrives at host B, show the part of the header that concerns fragmentation, i.e. the ident, more-fragments, and offset fields, as well as the payload length. The packet will be fragmented into 4 fragments. The fragmentation is done at the IP layer, so there will be 1480 bytes of IP-layer payload to split among 4 packets. Packet 1: Ident: X, More-Fragments: Yes, Offset: 0, Length: 376. The payload will include 20 bytes of TCP header and 356 bytes of TCP payload. The length will be 376 bytes and not 400 due to having to round the offset up to a multiple of 8. Packet 2: Ident: X, More-Fragments: Yes, Offset: 47 (·8 = 376), Length: 376