

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!


Name_______________________Email [email protected] ECE3076 Homework 5 Due: Wednesday Oct. 24, 2007 (in class) 1. 1. Complete the following table showing the lowest and highest IP addresses in dotted-decimal. "Number of Hosts" should exclude the "network address" and the "network broadcast address" (host addresses with all 0's or all 1's). See slides 4-46 to 4-48 for help. Network Identifier Lowest Address (dotted decimal) Highest Address (dotted decimal) Network Mask (dotted decimal) Number of Hosts 143.215.0.0/16* 143.215.0.0 (^) 143.215.255.255 255.255.0.0 65, 143.215.96.0/19 143.215.96.0 (^) 143.215.127.255 255.255.224.0 8190 143.215.64.128/25 143.215.64.128 (^) 143.215.64.255 255.255.255.128 126 (* 2 host addresses are reserved)
2. Based on the following routing table (first two columns), on which port should a IP datagram be forwarded if the destination is 143.215.151.182? This is easy if you calculate the largest IP in the subnet (right column). Sub-net Identifier Physical Port Largest IP in Subnet Does it fit within (Y/N)? 143.215.0.0 / 16 A 143.215.255.255 Y 143.215.144.0 / 21 B 143.215.152.255 Y 143.215.148.0 / 23 C 143.215.149.255 N 143.215.151.0 / 25 D 143.215.151.127 N Forward on port _________B_________________ 3. Aggregate the following routing table into two lines. Put them in the correct order (so that the first match will be the correct one). Sub-net Physical Port 143.215.32.0 / 24 A 143.215.33.0 / 24 A 143.215.34.0 / 24 B 143.215.35.0 / 24 A Answer Sub-net Physical Port 143.215.34.0 / 24 B 143.215.32.0 / 22 A 4. List the 4 major hardware components (A-D) of an IP Router (slide 4-21): A. _______________Input Port____________ B. _______________Routing Processor______ ("Control Processor" is ok) C. _______________Switching Fabric_____ D. ______________ Output Port _________ ECE3076 HW-5 answers p. 1
Name_______________________Email [email protected]
5. A 1480-byte IP datagram arrives at a link with a 580 byte MTU, and must be fragmented into 580-byte (or less) datagrams. Fill in the table below to show the values of the Datagram Length, ID, FragFlag (MF), and Offset in the resulting fragments (see slide 4-35 for help). Remember that each fragment needs its own 20-byte IP header which adds to the datagram length, and "Offset" is in units of 8-bytes (data in a fragmented IP datagram must be a multiple of 8 bytes, except the last datagram). Original Datagram Length ID FragFlag (MF) Offset 1480 2356953874 0 0 Fragments Datagram Length ID FragFlag (MF) Offset 580 2356953874 1 0 580 2356953874 1 560/8 = 70 20+(1480-20) -2* 360
How can a non-fragmented packet be detected? _________ MF and Offset both zero ______ The first fragment of a fragmented packet? ________ MF = 1 and Offset = 0 _______ The last fragment of a fragmented packet? _________ MF = 0 and Offset > 0 _______ Which packet or packets has a TCP header (circle answer or answers)? ( 1st only ) 2nd 3rd 4th All 6. What would happen in the case above if the DNF bit in the IP header was set (true)? ___________The packet would be dropped and an ICMP error message sent to the source IP _____________ ECE3076 HW-5 answers p. 2