ComputerNetworks ClassTest2 Solutions
ComputerNetworks ClassTest2 Solutions
Question 1
Solution
Marks division: 1 mark is awarded for each correct answer, i.e. if someone gets 3
correct out of 4, he/she gets full marks.
The starting address, ending address, and mask are as follows:
A: 198.16.0.0 – 198.16.15.255 written as 198.16.0.0/20
B: 198.16.16.0 – 198.16.23.255 written as 198.16.16.0/21
C: 198.16.32.0 – 198.16.47.255 written as 198.16.32.0/20
D: 198.16.64.0 – 198.16.95.255 written as 198.16.64.0/19
(2) A router has the following (CIDR) entries in its routing table: [3]
For each of the following IP addresses, what does the router do if a packet with
that address arrives? (Answer in one sentence each)
(a) 135.46.63.10
(b) 135.46.52.2
(c) 192.53.40.7
Solution
The packets are routed as follows:
(a) Interface 1
(b) Router 2
(c) Router 1
(3) Based on the network shown below, state a sequence of events that will cause a
count-to-infinity problem in Distance Vector Routing. (Assume that no corrective
measure, e.g. poison reverse, is used). [2]
Solution
C-D fails. C routes to A for D, A continues to route to C for D. Routing loop is
created. Distance vector cost increases in each round, until it reaches infinity.
(4) Describe two major differences between the ECN method and the RED method of
congestion avoidance. [2]
Solution
(1) In ECN, router sends an explicit signal to the receiver that it is experiencing
congestion. In RED, there is no explicit congestion signal – packet drops act
as implicit/hidden signals.
(2) In ECN, packets are never dropped – rather they are marked if congestion is
experienced. In RED, packets are dropped randomly.
Question 2
Solution
Answer: 7 MSS
Explanation:
Since slow start is used, window size is increased by the number of segments
successfully sent. This happens until either threshold value is reached or time-
out occurs. When threshold is reached, window size increases linearly. When
time-out occurs, threshold is halved.
Solution
(a) The variation of delay between packets reaching the receiver is called jitter.
(b) Jitter can be controlled by buffering packets at the receiver before they are
played out (also called “playout with buffering”).
(c) In a RPC, when a client invokes a client stub procedure with parameters, the
parameters are marshalled; it includes converting the representation of the
parameters into a standard format, and copying those into a message.
(3) For a host machine that uses the token bucket algorithm for congestion control,
the token bucket has a capacity of 1 MB and the maximum output rate is 20
MBps. Tokens arrive at a rate to sustain output at a rate of 10 MBps. The token
bucket is currently full and the machine needs to send 12 MB of data. What is the
minimum time (in seconds) required to transmit the data? [4]
Solution
Answer: 1.2 seconds; (also accept if someone answers 1.1 seconds)
Explanation:
Capacity C = 1 MB, Max output rate M = 20 MBps, Arrival rate ρ = 10 MBps
Min. time required to transmit date, S = C/(M – ρ) = 1/(20 – 10) = 1/10 = 0.1 sec
Total time for 12 MB = 12S = 1.2 secs
Alternative explanation: Someone may assume that initial output rate is 20MBps,
and therefore first 2 MB data takes (1/20-10) = 0.1 sec. This is also correct, so
1.1 seconds is also a valid answer.