0% found this document useful (0 votes)
34 views3 pages

Tutorial 6 Qns

Uploaded by

zhangyiheng0810
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views3 pages

Tutorial 6 Qns

Uploaded by

zhangyiheng0810
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

National University of Singapore

School of Computing

CS2105 Tutorial 6 Question paper

1. [Modified from KR, Chapter 4, P21] Consider the network setup in the following figure.
Suppose that the ISP assigns the router the address 24.34.112.235 and that the network
address (i.e. network prefix) of this home network is 192.168.1/24.

24.34.112.235

a) Give an example IP address assignment to all interfaces in this home network.


b) Suppose each host has two ongoing TCP connections, all to port 80 of a server at
128.119.40.86. Provide example corresponding entries in the NAT translation table.

NAT Translation Table


WAN side LAN side

Page 1 of 3
2. [Modified from KR, Chapter 4, P19] Consider sending a 1500-byte IP datagram into a link
that has an MTU of 500 bytes. Suppose the original datagram is stamped with the
identification number 422. Also assume that IP header is 20 bytes long.
a) How many fragments will be generated?
b) What is the length of each fragment (including IP header)?
c) What are the values of identification number, offset and flag in each fragment?

3. [CS2105 Final Exam, April 2006] The following diagram shows a simple network topology
with 4 nodes. The links in the diagram are labeled with the cost of each link. The nodes
run distance vector routing protocol. The protocol has terminated, and each node knows
the cost of the minimum cost path to every other node.

20
w z

7 6
3 2

3
x y

The following table shows an incomplete distance vector table at node x. Fill in the
missing distance vectors.
cost to w cost to x cost to y cost to z
from x 0
from y 0
from z 0

4. Wireshark: IP
Do the following:
1. Start up Wireshark and begin packet capture.
2. Start up the Terminal and execute the following command:
ping www.google.com (Windows)
OR
Ping www.google.com -c 4 (Linux/mac)

Page 2 of 3
3. Stop Wireshark packet capture.
4. Type in “icmp” into the display filter specification window, then select Apply.

Answer the following questions:


1. Within the IP packet header, what is the value in the upper layer protocol field?
2. Which fields in the IP datagram always change from one datagram to the next
within this series of ICMP messages sent by your computer?

Page 3 of 3

You might also like