Anda di halaman 1dari 3

EP2120 Internetworking/Internetteknik

IK2218 Internets Protokoll och Principer


Homework Assignment 1
(Solutions due 23:00, Wednesday, 2016. Sept.7)
(Review due 23:00, Friday, 2016. Sept.09)
1. IPv4 Addressing (30/100)
a) What is the best fit netmask (i.e., resulting in as few host addresses as possible) for a
network with 7 hosts in it? (5p)
b) What is the maximum number of hosts can you have in a /24 network? (5p)
c) Split up the network 130.229.134.0/24 into three networks, including one /25 network and
two /26 networks! Provide the results in binary and in dotted decimal notation including
the prefix length. (5p)
d) What is the directed broadcast address of the network 130.229.124.0/27? (5p)
e) What is the limited broadcast address of the network 130.229.124.0/27? (5p)
f) Use the services of IANA and a regional registry to figure out to whom the IP network
130.237.0.0/18 belongs. Provide the name of the organization and the AS number. (5p)

2. Address allocation (30/100)

Consider the network above, a routed network in an organizations enterprise network. The
organization built a core network (network F) connected to a central router (R1), and connected a
router (R2) with (long-haul) switched Ethernet (network E). The access routers (R3 to R6) are
connected to a set of local offices (networks A to D). The host H1, connected to network F, performs
various traffic monitoring tasks. All networks use Ethernet on the link layer.
The enterprise allocated prefix 60.88.16.0/21 for its internal addresses.
Make an address allocation using 60.88.16.0/21 in the network by assigning a sub-block to each
network A-F in the following way:
f) The networks A through C require 250 hosts each, while network D requires 450 hosts. Create
a minimal block for each local office A through D. Start with the lowest address for network
A.
g) There are no unnumbered point-to-point links: all Ethernet networks have IP sub-networks and
all nodes (routers and hosts) have an IP address on all their network interfaces. All nodes need
to be reachable from any other host.
h) The address allocation should be such that the sub-networks can be aggregated.
i) Each sub-network should not be larger than necessary in order to accommodate all hosts in the
sub-network.
Based on your address allocation, provide the required entries of the forwarding table of router R1!
Give a sketch of your reasoning to support your solution. (30p)

3. IPv4 forwarding (20/100)


A router has the forwarding table shown below. Determine the next-hop address and the
outgoing interface for the packets arriving to the router with destination addresses as given in
points (a)-(e).
Destination

Next hop

Flags

Interface

157.29.11.0/24
177.121.128.0/18
130.78.0.0/15
73.0.0.0/16
221.182.100.0/25
9.221.80.0/20
198.17.42.160/29
0.0.0.0/0

130.78.11.10
73.0.45.1

221.182.100.28
221.182.100.25
73.0.65.1

UG
G
U
U
U
UG
UG
UG

m1
m0
m1
m0
m2
m2
m2
m0

a) 157.29.11.122

(4p)

b) 177.121.128.2

(4p)

c) 73.16.132.16

(4p)

d) 221.182.100.27

(4p)

e) 21.193.63.142

(4p)

4. IPv4 and IPv6 datagram formats (20/100)


a) What is the function of the header length and time-to-live (TTL) fields in the IPv4 header?
(5p)
b) What is the function of the flow label and of the traffic class fields in the IPv6 header? (5p)
c) Comparing the IPv6 header with the IPv4 header, we notice that the fragmentation related
fields appearing in the IPv4 datagram are not present in the IPv6 header. Give an
explanation why fragmentation related fields are not present in the IPv6 base header? (5p)
d) Comparing the IPv6 header with the IPv4 header, we notice that the header checksum field
appearing in the IPv4 datagram is not present in the IPv6 header. Give an explanation why
the checksum field is not present in the IPv6 header? (5p)