Homework 7

1. You are the CTO of a growing startup and have to get IP addresses to connect 560 computers to the Internet. You can get IP addresses from two providers, IPMart and EastSideIP. IPMart sells classA, class B and class C blocks, while EastSideIP sells CIDR blocks. As the IPv4 address space is scarce, you want to save money and get the smallest number of addresses possible.

  • a. If you get one block from IPMart, which class do you have to get? What is the problem with that?
  • b. If you get one block from EastSideIP, how many bits are there in the mask (e.g., is it a /8, /22)? How many addresses are wasted?
  • c. Suppose you can get two blocks from EastSideIP, and they can be of different sizes. How many bits are there in the masks for each of the blocks? How many addresses are wasted now?

2. Another customer of EastSideIP =needs to get 8000 IP addresses. You work for =EastSide, and see that you have the address range from to available.

  • a. What is the best CIDR block from this range you can allocate the customer?
  • b. Why is it best to minimize the number of CIDR blocks you allocate?
  • c. Why is it best to also minimize the size of the address blocks?

3. Suppose you have the following routing table in your router

Destination Netmask NextHop Interface eth0 eth1 eth2 eth3

What is the next hop for each of these addresses, given that you use longest-prefix matching?

  • a.
  • b.
  • c.
  • d.
  • e.
  • f.


Topic revision: r1 - 2013-11-07 - JimSkon
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback