You are on page 1of 3

ECE 3144_1_2016-17 (H.W.

)
1. An organization is granted the block 16.0.0.0/8. The administrator wants to create
500 fixed-length subnets.
a. Find the subnet mask.
b. Find the number of addresses in each subnet.
c. Find the first and last addresses in subnet 1.
d. Find the first and last addresses in subnet 500.
2. An organization is granted the block 130.56.0.0/16. The administrator wants to
create 1024 subnets.
a. Find the subnet mask.
b. Find the number of addresses in each subnet.
c. Find the first and last addresses in subnet 1.
d. Find the first and last addresses in subnet 1024.
3. An ISP is granted a block of addresses starting with 150.80.0.0/16. The ISP wants
to distribute these blocks to 2600 customers as follows.
a. The first group has 200 medium-size businesses; each needs 128 addresses.
b. The second group has 400 small businesses; each needs 16 addresses.
c. The third group has 2000 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.

4. An IPv4 datagram has arrived with the following information in the header (in
hexadecimal) :
Ox45 00 00 54 00 03 58 50 20 06 00 00 7C 4E 03 02 B4 OE OF 02
a. Is the packet corrupted?
b. Are there any options?
c. Is the packet fragmented?
d. What is the size of the data?
e. How many more routers can the packet travel to?
f. What is the identification number of the packet?
g. What is the type of service?

5. In an IPv4 datagram, the M bit is 0, the value of HLEN is 5, the value of total
length is 200, and the offset value is 200. What is the number of the first byte and
number of the last byte in this datagram? Is this the last fragment, the first fragment,
or a middle fragment?

6. What is the purpose of including the IPv4 header and the first 8 bytes of datagram
data in the error-reporting ICMPv4 messages?

7. A router with IPv4 address 125.45.23.12 and Ethernet physical address


23:45:AB:4F:67:CD has received a packet for a host destination with IP address
125.11.78.10. Show the entries in the ARP request packet sent by the router. Assume
no subnetting.

8. Show the entries in the ARP packet sent in response to Exercise 7.


9. Encapsulate the result of Exercise 7 and 8 in a data link frame. Fill in all the fields.

10. Find the topology of the network if the following Table is the routing table for router
R1.

11. Compare the TCP header and the UDP header. List the fields in the TCP header
that are missing from UDP header. Give the reason for their absence.

12. The following is a dump of a UDP header in hexadecimal format.


0632000DOO lCE217
a. What is the source port number?
b. What is the destination port number?
c. What is the total length of the user datagram?
d. What is the length of the data?
e. Is the packet directed from a client to a server or vice versa?
f. What is the client process?

13. The following is a dump of a TCP header in hexadecimal format.


05320017 000oo1 00000000 5OO207FF 00000000
a. What is the source port number?
b. What is the destination port number?

c. What the sequence number?


d. What is the acknowledgment number?
e. What is the length of the header?
f. What is the type of the segment?
g. What is the window size?

14. A client uses TCP to send data to a server. The data are 16 bytes. Calculate the
efficiency of this transmission at the TCP level (ratio of useful bytes to total bytes).
Calculate the efficiency of transmission at the IP level. Assume no options for the
IP header. Calculate the efficiency of transmission at the data link layer. Assume no
options for the IF header and use Ethernet at the data link layer.

You might also like