Sunteți pe pagina 1din 3

Class 1 TSIN02 Internetworking ht1, 2004

Exercise 1: Write the following netmasks in slash (/n) notation:


1
a) 255.255.255.0
b) 255.255.224.0
c) 255.255.255.240
d) 255.0.0.0

Exercise 2: What is the range of addresses in the following blocks:


a) 123.56.77.32/29
b) 200.17.21.128/27
c) 17.34.16.0/23
d) 180.34.64.64/30

Exercise 3: An ISP is granted a block of addresses starting with 150.80.0.0/16.


The ISP wants to distribute these blocks to customers as follows:
a) A group of 200 medium-sized businesses, each needs 128 addresses.
b) A group of 400 small businesses, each needs 16 addresses.
c) A group 2048 households, each needs 4 addresses.
Design the subblocks and give the slash notation for each subblock. Find out how
many addresses are still available after these allocations.

Exercise 4: A large number of consecutive IP addresses are available starting at 198.16.0.0.


2
Suppose that four organisations A, B, C and D request 4000, 2000, 4000, 8000
addresses respectively, and in that order. For each of these, give the first IP address
assigned, the last address assigned, and the mask in the z.x.y.z/n notation.

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

1 Exercise 1-3 are from TCP/IP Protocol Suite by Behrouz A. Forouzan.


2 Exercise 4-5 are from Computer Networks by Andrew S. Tanenbaum.
Class 1 TSIN02 Internetworking ht1, 2004

Exercise 6: Change the following IP addresses from hexadecimal notation to binary notation:
3
a) 0x1347FEAB
b) 0xAB234102
c) 0x0123A2BE
d) 0x00001111

Exercise 7: Change the following IP addresses from dotted-decimal notation to hexadecimal


notation.
a) 114.34.2.8
b) 129.14.6.8
c) 208.34.54.12
d) 241.34.2.8

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

How should this packet be interpreted?

Exercise 10: An IP datagram has arrived with the following information in the header:

0x4500005400030000200600007C4E0302B40E0F02

a) Are there any options?


b) Is the packet fragmented?
c) What is the size of the data?
d) Is a checksum used?
e) How many routers can the packet travel to?
f) What is the identification number of the packet?
g) What is the type of service?

Exercise 11: An ICMP message has arrived with the header: 0x05001112110B0302

a) What is the type of message?


b) What is the code?
c) What is the purpose of the message?
d) What is the value of the last 4 bytes?
e) What do the last bytes signify?

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

As a response a ”destination unreachable” error report should be returned to the sender.


Construct the IPv6 packet that carries this error report.

4 Most of these exercises are from TCP/IP Protocol Suite by Behrouz A. Forouzan.

S-ar putea să vă placă și