Computer Networking Protocols - Exam

COMPUTER NETWORKING PROTOCOLS EXAMINATION
CN 211 - UNIVERSITY OF DODOMA
End of Semester One - 2021/2022 Academic Year


** SECTION A: (15 MARKS)**

Question 1 - Multiple Choice

(0.5 Marks Each)

I. A Network Address Translation (NAT gateway) changes the following fields of a packet going from the internal (local area) network to the external (wide area) network: -

  • A. Source IP address
  • B. Source IP address and source port number
  • C. Destination IP address
  • D. Destination IP address and destination port number
  • E. Source and destination port numbers

II. Which of the following functionalities must be implemented by a transport protocol over and above the network protocol?

  • A. End to end connectivity
  • B. Packet delivery in the correct order
  • C. Detection of duplicate packets
  • D. Recovery from packet losses
  • E. Routing of packets

III. On classic Ethernet, the Maximum Transmission Unit (MTU) for an IP datagram is

  • A. 64 bytes
  • B. 1024 bytes
  • C. 1500 bytes
  • D. 65536 bytes
  • E. 4096 bytes

IV. Which of the following is TRUE about IPv4 class A, B and C?

  • A. Large number of networks and small number of hosts, medium number of networks and hosts, and small number of networks and large number of hosts respectively.
  • B. Medium number of networks and hosts, small number of networks and large number of hosts, and large number of networks and small number of hosts respectively.
  • C. Small number of networks and large number of hosts, large number of networks and small number of hosts, and medium number of networks and hosts respectively.
  • D. Small number of networks and large number of hosts, medium number of networks and hosts, and large number of networks and small number of hosts respectively.
  • E. All have the same number of networks

V. An example of protocols that doesn’t support CIDR and VLSM are:

  • A. RIPv2 and EIGRP
  • B. IS-IS and OSPF
  • C. RIPv1 and IGRP
  • D. RIPv2 and OSPF
  • E. RIPv2 and EIGRP

VI. Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.

  • A. HTTP GET request, DNS query, TCP SYN
  • B. DNS query, TCP SYN, HTTP GET request
  • C. DNS query, HTTP GET request, TCP SYN
  • D. TCP SYN, DNS query, HTTP GET request
  • E. HTTP GET request, TCP SYN, DNS query

VII. Which of the following is are example(s) of stateful application layer protocols? (i) HTTP (ii) FTP (iii) TCP (iv) POP3

  • A. (i) and (ii) only
  • B. (ii) and (iii) only
  • C. (ii) and (iv) only
  • D. (iv) only
  • E. (i) only

VIII. Which protocol can be used to load or retrieve Cisco IOS images to or from a router?

  • A. SNMP
  • B. TFTP
  • C. UDP
  • D. TCP
  • E. NTP

IX. Which of the following protocols is used by email server to maintain a central repository that can be accessed from any machine?

  • A. POP3
  • B. IMAP
  • C. SMTP
  • D. DMSP
  • E. SMTP, IMAP, POP

X. What is the purpose of TCP/UDP port numbers?

  • A. To indicate the beginning of a three-way handshake
  • B. To track the different conversations crossing the network at the same time
  • C. To reassemble the segments into the correct order
  • D. To identify the numbers of the data packets that can be sent without acknowledgment
  • E. To establish a logical connection between sender and receiver.

Question 2 - Matching Exercise

Match the item in Column A with its corresponding item in Column B.

Column AColumn B
i. 255.255.252.0A. IP address of router interface
ii. Video conferencing applicationsB. DNS
iii. PDU: segment→packet→frame data encapsulationC. Subnet mask of WAN link
iv. Email TransferD. TCP
v. ::ac1d:6405E. Process, host-to-host, internet, network access layer
vi. Distributed DatabaseF. UDP
vii. The status codes of 400 series (403, 404, etc)G. Subnet masks of an organization that uses class B IPv4 address with 64 departments
viii. Default GatewayH. Server Error
ix. DNS recordI. DF and is the last fragment (No more fragments)
x. IPV4 flags values 010J. DF and MF
K. IPv6 compatible with IPv4
L. Client Error
M. MX
N. DHCP
O. 172.29.100.5

Question 3 - Short Answer

i. Difference between congestion control and flow control?
(1 Mark)

ii. With example from each IPv4 class, briefly explain what Private IP address is.
(1.5 Marks)

iii. Differentiate IPv4, MAC, and port addressing.
(1.5 Marks)

iv. Differentiate between OSI and TCP/IP model.
(1 Mark)


SECTION B: (45 MARKS)

Attempt THREE (3) out of FOUR (4) questions provided.

Question 4 - TCP Protocol

a) A client sends a TCP segment to the server with Sequence Number 1400 and the payload included in the segment is 1399 bytes long.

i. What is the ACK Number in the acknowledgement that is returned from the server?
(2 Marks)

ii. Assume this packet is lost but the following packet is received. What is the ACK Number in the acknowledgement that is returned from the server for this packet?
(2 Marks)

b) A TCP connection is using a window size of 10000 bytes, and the previous acknowledgment number was 22001. It receives a segment with acknowledgment number 24001.

i. Draw a diagram to show the situation of the window before and after.
(3 Marks)

ii. What will be the acknowledgement from the receiver if the second segment is received correctly?
(2 Marks)

c) Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number x and destination port number y. What are the source and destination port numbers for the segments traveling from Host B to Host A?
(2 Marks)


d) Describe the functioning of a Distributed Denial-of-Service attack via SYN flood.
(4 Marks)


Question 5 - IP Addressing & Subnetting

a. Given the network address of 112.44.0.0 and the network mask of 255.255.0.0. Would the two stations with addresses 112.44.22.19/16 and 112.44.23.2/16 be on the same network?
(1 Mark)

b. How many network devices can be supported on a single network using network mask of 255.255.240.0?
(1 Mark)

c. Having a single public address within a company and you need to use private addressing and NAT or PAT. With reasons, state what would be the best to use?
(2 Marks)

d. Suppose you are working as a network expert at Ng’ong’ona ICT company. As a network expert, you are given a task to create forty (40) networks/subnets for several departments and sections. You are required to use class B IP address (172.31.0.0/16) and each subnet should not have less than 1000 hosts, what will be: -

i. The subnet mask.
(1 Mark)

ii. The number of subnets and hosts per subnet.
(1 Mark)

iii. The number of valid hosts per subnet.
(1 Mark)

iv. The subnets and their corresponding broadcast addresses (Note: Write the first six and the last two subnets and broadcast addresses).
(8 Marks)


Question 6 - VLSM Subnetting

Given a network diagram in Figure 1, use a preferable IPv4 address to perform VLSM. Make sure you show the subnet mask, network ID, broadcast address and the reserved subnet if available.
(15 Marks)


Question 7 - TCP and Error Detection

a) TCP implements a mechanism called the three-way handshake. State the purpose of such a mechanism.
(2 Marks)

b) Two 16-bit words 0011 0101 1010 1000 and 0101 1001 0000 0101 are received along with another 16-bit word, 1101 0001 0101 0010, which is the UDP checksum of the first two words. Will the receiver detect an error?
(4 Marks)

c) With reference to part 7 (b), can the receiver be certain for sure that the message was not corrupted along the way? Justify your answer with an example.
(3 Marks)

d) The diagram in Figure 2 shows the establishment of a TCP connection. Complete the information in the table 1 for the TCP messages 2 and 3 according to TCP messages 1.
(6 Marks)


END OF EXAMINATION PAPER