Docsity

Homework 4 Questions on Computer Communications | ECE 3076, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Name_______________________GT#___gt _ _ _
ECE3076 Homework 4
Due: Monday Oct. 20, 2008 (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*
130.207.0.0/17 130.107.0.0 130.207.127.255 255.255.128.0 32,766
130.207.128.0/21 130.207.128.0 130.207.135.255 255.255.248.0 2046
130.207.128.0/24 130.207.128.0 130.207.128.255 255.255.255.0 254
(* 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 130.207.151.182 ? This is easy if you calculate the largest IP matched (right column).
Sub-net Identifier Physical
Port
Largest IP Matched
130.207.0.0 / 16 A130.207.255.255
130.207.144.0 / 21 B130.207.151.255
130.207.150.0 / 24 C130.207.150.255
130.207.151.0 / 25 D130.207.151.127
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
130.207.32.0 / 24 A
130.207.33.0 / 24 B
130.207.34.0 / 24 A
130.207.35.0 / 24 A
Sub-net Physical Port
130.207.33.0 / 24 B
130.207.32.0 / 22 A
4. List the 5 major circuit parts (A-E) and the major software part (S) of an IP Router:
A. _______________Input Port____________
B. _______________Routing Processor__________
C. _______________Switching Fabric_____ _ ,
D. ______________ Output Port
ECE3076 HW-4 p.1
pf2

Partial preview of the text

Download Homework 4 Questions on Computer Communications | ECE 3076 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Name_______________________GT#___gt _ _ _ ECE3076 Homework 4 Due: Monday Oct. 20, 2008 (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 130.207.0.0/17* (^) 130.107.0.0 130.207.127.255 255.255.128.0 32, 130.207.128.0/21 (^) 130.207.128.0 130.207.135.255 255.255.248.0 2046 130.207.128.0/24 (^) 130.207.128.0 130.207.128.255 255.255.255.0 254 (* 2 host addresses are reserved)

  1. Based on the following routing table (first two columns), on which port should a IP datagram be forwarded if the destination is 130.207.151.182? This is easy if you calculate the largest IP matched (right column). Sub-net Identifier Physical Port Largest IP Matched 130.207.0.0 / 16 A 130.207.255. 130.207.144.0 / 21 B 130.207.151. 130.207.150.0 / 24 C 130.207.150. 130.207.151.0 / 25 D 130.207.151. Forward on port _______ B ___________________
  2. 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 130.207.32.0 / 24 A 130.207.33.0 / 24 B 130.207.34.0 / 24 A 130.207.35.0 / 24 A Sub-net Physical Port 130.207.33.0 / 24 B 130.207.32.0 / 22 A
  3. List the 5 major circuit parts (A-E) and the major software part (S) of an IP Router: A. _______________ Input Port ____________ B. _______________ Routing Processor __________ C. _______________ Switching Fabric _____ _ , D. ______________ Output Port ECE3076 HW-4 p. 1

Name_______________________GT#___gt _ _ _

5.. A 1500-byte IP datagram arrives at a link with a 660 byte MTU, and must be fragmented into 660-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 Offset 1500 2356953874 0 0 Fragments Datagram Length ID FragFlag Offset 660 2356953874 1 0 660 2356953874 1 80 220 2356953874 0 160 Hint. To check, add the datagram lengths (660 + 660 + 220). The sum should be the original length plus 20 times the number of additional segments (1500 + 20 * (3 - 1) ). How can a non-fragmented packet be detected? {The bit called "FragFlag" in the text is more often called "MoreFrags (MF)", which is closer to its meaning: "more fragments follow." It alone is not adequate. } _________FragFlag == 0 and Offset == 0____________________________ 6. What would happen in the case above if the DNF bit in the IP header was set (true)? THE PACKET WOULD BE DROPPED BY THE ROUTER, WHICH WOULD ALSO SEND AN ICMP MESSAGE TO THE SOURCE HOST. ECE3076 HW-4 p. 2