CS 742 Computer Communication Networks Final Exam - Name ...
CS 742 Computer Communication Networks Final Exam - Name ...
CS 742 Computer Communication Networks Final Exam - Name ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5. (7 pts.) Using the divisor polynomial x 4 + x + 1 for CRC, what frame will be transmitted for the data<br />
M = 110011001?<br />
ns: M(x) = 110011001, C(x) = 10011, r = 4<br />
1101101<br />
--------------<br />
10011 )1100110010000<br />
10011<br />
------<br />
10101<br />
10011<br />
-------<br />
11000<br />
10011<br />
------<br />
10111<br />
10011<br />
-------<br />
10000<br />
10011<br />
--------<br />
1100<br />
So the transmission frame T(x) is 1100110011100<br />
6. (8 pts.) Suppose that 2 n stations use the adaptive tree walk protocol to arbitrate access to a shared<br />
channel. At a certain instant 2 stations become ready. What are the minimum and maximum number<br />
of bit slots needed to walk the tree if 2 n is much larger than 1?<br />
(a) The minimum number happens when two stations are in two different subtrees from the root. It<br />
will be 3 bit slots.<br />
(b) The maximum number happens when two stations are in the same deepst subtree. Traversing<br />
from the root node, there are n collision nodes and n + 1 nodes without collision. So the maximum<br />
number is n + n + 1 = 2n + 1.<br />
7. (6 pts.) Suppose a router has built up the routing table as shown in the following table. The router<br />
can deliver packets directly over interfaces eth0 and eth1, or it can forward packets to other routers in<br />
the table.<br />
Destination Netmask Gateway<br />
156.26.10.0 255.255.255.128 eth0<br />
156.26.10.128 255.255.255.128 eth1<br />
156.26.11.0 255.255.255.192 R1<br />
<br />
R2<br />
Describe what the router does with a packet addressed to each of the following destinations:<br />
(a) 156.26.10.239 - deliver packets directly through eth1<br />
(b) 156.26.11.208 - forward to R2<br />
(c) 156.26.12.27 - forward to R2<br />
8. (9 pts.) For the network 168.78.16.0/20, answer the following questions:<br />
(a) How many IP addresses can be allocated?<br />
(b) What is the last IP address?<br />
(c) What is the netmask?<br />
Ans:<br />
(a) 2 32−20 = 2 12 = 4096.<br />
(b) 16 × 256 = 4096, 16 + 16 − 1 = 31 ⇒ 168.78.31.255.<br />
(c) The host ranges from 168.78.16.0 to 168.78.31.255. The first, second, and forth part of the netmask<br />
are 255, 255, and 0, respectively. The third part of the netmask 256 − 2 24−20 = 240. Hence, the<br />
netmask is 255.255.240.0.