Starting from:

$25

EECS325-Assignment 3 Solved

Questions
1.    Assume a datagram of size 5000 bytes (excluding header) crosses multiple network segments from sender to receiver. One of the network segments has MTU of size

820 bytes.(Assuming the other network segments have unlimited MTU)

a.    The original datagram will be fragmented into how many datagrams?

b.    At which point does the fragmentation occur?

c.     Show the length, fragflag and offset fields of each IP datagram after fragmen-tation.

d.    At which location are the IP fragments reassembled?

2.    In the figure below, assign an IP address for each of the host and router interfaces and specify the number of subnsets.

 

3.    Consider a host A behind NAT, sending a packet to another external host B. The packets (sent by A and response packet from B) are shown below:

Packet sent by A (before modified by NAT):

dst IP: 4.3.2.1 src IP: 192.168.2.7 dst port: 80 src port: 1067

Response packet sent by B (before modifed by NAT):

dst IP: 2.2.2.2

src IP: 4.3.2.1 dst port: 2500 src port: 80

i     For the response packet leaving NAT towards A, fill the blank:

dst IP: src IP: dst port:

src port:

ii   Fill the following: external IP address of the NAT:

IP address of host A:

IP address of host B:

4.    Suppose a router has four interfaces, numbered from 0 - 3. The forwarding policies for the following address ranges are below:

Address 11000000 00000000 00000000 00000000 through 11000001 11111111 11111111 11111111 → interface 0

Address 11100001 00000000 00000000 00000000 through 11100001 00000000 11111111 11111111 → interface 1

Address 11100001 00000001 00000000 00000000 through 11100001 11111111 11111111 11111111 → interface 2

All other addresses → interface 3

a    Provide a forwarding table that has four entries, using longest prefix matching, and forwards packets to the correct link interfaces.

b   Consider three datagrams with the following addresses. Which interfaces would they

be sent to?

i) 11001000 10010001 01010001 01010101 ii) 11100001 00000000 11000011 00111100 iii) 11100001 10000000 00010001 01110111

c    Rewrite the forwarding table entries with a.b.c.d/x notation instead of binary string notation.

More products