Documente Academic
Documente Profesional
Documente Cultură
Exercise 5: A router has the following (CIDR) entries in its routing table:
Address/mask Next hop
135.46.56.0/22 Interface 0
135.46.60.0/22 Interface 1
192.53.40.0/23 Router 1
default Router 2
For each of the following IP addresses, what does the router do if a packet with that
destination address arrives?
a) 135.46.63.10
b) 135.46.52.2
c) 135.46.57.14
d) 192.53.40.7
e) 192.53.56.7
Exercise 6: Change the following IP addresses from hexadecimal notation to binary notation:
3
a) 0x1347FEAB
b) 0xAB234102
c) 0x0123A2BE
d) 0x00001111
Exercise 8: Given the IP address 201.14.78.65 and the subnet mask 255.255.255.224. What
is the subnet address?
Exercise 9: The following ARP packet was encapsulated in a data link frame:
0x0001080006040001B2345510221082172B1400000000000082172B19
Exercise 10: An IP datagram has arrived with the following information in the header:
0x4500005400030000200600007C4E0302B40E0F02
Exercise 11: An ICMP message has arrived with the header: 0x05001112110B0302
Exercise 12: Calculate the checksum for the following ICMP packet:
Type: Echo Request Identifier: 123
Sequence number: 25 Message: HELLO
(hint: the letter A is coded as 0x41, the letter B 0x42 etc.)
3 Most of these exercises are from TCP/IP Protocol Suite by Behrouz A. Forouzan.
Class 1 TSIN02 Internetworking ht1, 2004
Exercise 13: Show the shortest form of the following IPv6 adresses:
4
a) 2340:1ABC:119A:A000:0000:0000:0000:0000
b) 0000:00AA:0000:0000:0000:0000:119A:A231
c) 2340:0000:0000:0000:0000:119A:A001:0000
d) 0000:0000:0000:2340:0000:0000:0000:0000
Exercise 14: Show the unabbrevated form of the following IPv6 adresses:
a) 0::0
b) 0:AA::0
c) 0:1234::3
d) 123::1:2
Exercise 15: Show the IPv6 header of a packet that will carry a 320 byte TCP segment from address
581E:1456::38:1AC to address 581E:1456:2EFF::1:0. The maximum number of hops
should be limited to three. Choose suitable values for the remaining fields.
Exercise 16: Show the IPv6 header of a packet that will carry a 128000 byte TCP segment from
address FDEC::BBFF:0:FFFF to address FDEC:BA98:74:3210:F:BBFF:0:FFFF.
The maximum number of hops should be limited to seven. Choose suitable values for the
remaining fields.
Exercise 17: An IPv6 packet with the following header has been dropped by the destination host:
60000000
00AC0603
234000AA
119A2340
00000000
467C00E2
012300AA
34570000
00000000
000000CE
4 Most of these exercises are from TCP/IP Protocol Suite by Behrouz A. Forouzan.