Homework 2 (Due Nov. 10,
turn in at class time and in hardcopies)
1. You have 5 subnets with the following
numbers of hosts on them: 58, 14, 29, 49, and 3, and you are given the address
space 10.1.1.0/24.
Determine how you could divide the address space given into subnets so these
hosts fit into it.
2. Assume an ATM buffer of 200 cells which
can serve at rate c=10000 cells/s which is fed with ATM AAL5 packets each of
which can be fragmented into exactly 20 cells. Assume the packet arrival
process is Poisson with rate r (packets/sec) and the cell arrival process for a
given packet is also Poisson with rate c/100. After a packet arrives when 20
such cells arrive, the packet is over. The load on the buffer is arrival rate /
service rate = 20*r/c and is denoted by a. Plot the packet success probability
as a function of a in case
o
Tail drop is used,
o
Early packet discard with new packets discarded
when the buffer contains 100 cells.
Provide
the graph as well as the simulation code with all the comments and explanations
made for me to understand the code.