Computer Network
Computer Network
Support material
You are allowed to have with you a calculator and hand-written notes on
four pages on A4 paper.
Results
The results are published at latest twelve working days after the exam.
Grading
The maximum is 40 points (44 if you passed the optional assignment). For
grade 3, 20 points are needed. For grades 4 and 5, 28 points and 36 points,
respectively, are needed.
Teacher-on-duty
Juha Takkinen, 0731-50 03 93, will visit the hall around 3 p.m. and at
5 p.m.
Instructions
In addition to the common instructions on the exam wrapper, the following
apply: Write clearly. Explain your answers (Swe. Motivera dina svar). State
any assumptions that you make in addition to what is stated in the
question, but you are not allowed to change the question. Have the same
order on your answers as the questions in the exam. You can answer either
in Swedish or English.
Good luck!
1.
Protocols
a. List two services that are both offered by the link layer as well as the
transport layer.
(2 p.)
b. What layers does a web server need, in order to function correctly over
the Internet?
(1 p.)
c. Give a network example of what is meant by the syntax, semantics and
timing of a protocol.
2.
(2 p.)
Networking basics
a. Assume a network consisting of three links between hosts A and B. Host
A wants to transmit a packet to host B. The length of a link is 2 km and
8
bandwidth 100 Mbps. The speed of light in the link medium is 2 x 10
m/s. What is the transmission delay at host A for a packet of size 2 MB?
When will host B receive the first bit of this packet? What is the size of
the pipe (for pipe-lining purposes) between A and B?
(3 p.)
b. What type of sliding protocol is shown in the example below? Packet
number 3 has been lost. Explain what will happen next, when the
remaining four packets are received by the sender.
(2 p.)
3. Applications
a. See the excerpt below from an e-mail message. For each of the following
four smtp commands, list after which position(s) A-J that the command
in question was executed at the sending side: DATA, RCPT TO, MAIL
FROM and . (period).
(2 p.)
IN
IN
IN
IN
A
A
A
A
;; AUTHORITY SECTION:
facebook.com.
169872
facebook.com.
169872
facebook.com.
169872
facebook.com.
169872
facebook.com.
169872
IN
IN
IN
IN
IN
NS
NS
NS
NS
NS
;; ADDITIONAL SECTION:
ns1.facebook.com.
672
ns2.facebook.com.
672
ns3.facebook.com.
672
ns4.facebook.com.
672
ns5.facebook.com.
672
IN
IN
IN
IN
IN
A
A
A
A
A
69.63.189.11
69.63.189.16
69.63.181.11
69.63.181.12
ns4.facebook.com.
ns5.facebook.com.
ns1.facebook.com.
ns2.facebook.com.
ns3.facebook.com.
204.74.66.132
204.74.67.132
69.63.178.21
69.63.186.49
69.63.176.200
4. TCP
a. Assume that an application is using UDP to transmit 40 KB of data.
How many UDP packets will be created and how large will they be? (2 p.)
b. State the purpose of duplicate ACKs and cumulative ACKs in TCP,
respectively.
(2 p.)
(1 p.)
5. IP
a. Assume a host A communicates with another host B via one LAN
switch, two routers and one LAN hub. How many IP addresses will be
used in the network between and including hosts A and B? How many
subnets will be involved?
b. Explain the purpose of address aggregation, as used in CIDR.
(2 p)
(1 p.)
6. Routing
a. What is BGP? What information does it mainly distribute and how does
it manage to maintain a loop-free network?
b. Calculate the routing table for the network shown below by filling in the
table, also shown below. Then, answer the following question: What links
will not be used for routing packets?
(3 p.)
Steg
0
1
2
3
4
N
A
D(B), p(B)
D(C), p(C)
(2 p.)
7. LAN
a. The figure below shows an ARP packet and the network from where this
packet has been extracted. The ARP packet has been put in an Ethernet
frame. Explain what will happen next in the scenario, until the ARPrelated communication has been fully resolved.
(2 p.)
Internet
B
Station
Accesspunkt
Access
point
Router
8. Security
a. Explain the full purpose of the handshake in SSL/TLS and if it is part of
the TCP handshake or not.
(2 p.)
b. Explain what a known-plaintext attack is.
(1 p.)
PS! Please read all the instructions for the examination once more
before handing in the answers; there are instructions both on the
wrapper that you put your answer papers in and also on the first real
page of this examination (under Instructions). Thanks.