CCCN 312 Computer Networks Assignment
CCCN 312 Computer Networks Assignment
Ministry of Education
وزارة اﻟﺗﻌﻠﯾم
University of Jeddah
College of Science and Computer ﺟﺎﻣﻌﺔ ﺟدّة
Engineering ﻛﻠﯾﺔ ﻋﻠوم و ھﻧدﺳﺔ اﻟﺣﺎﺳب
Allocated 9 8 3 20
Obtained
Name:
ID:
Kingdom of Saudi Arabia اﻟﻣﻣﻠﻛﺔ اﻟﻌرﺑﯾﺔ اﻟﺳﻌودﯾﺔ
Ministry of Education
وزارة اﻟﺗﻌﻠﯾم
University of Jeddah
College of Science and Computer ﺟﺎﻣﻌﺔ ﺟدّة
Engineering ﻛﻠﯾﺔ ﻋﻠوم و ھﻧدﺳﺔ اﻟﺣﺎﺳب
Question 1: [__/ 9]
Consider the arrival of nine packets to an output link at a router during the time interval
[0, 5]. Time is divided into "slots," beginning at t = 0, 1, 2, 3, and so on. Packets can arrive
at any point during a slot, and multiple packets may arrive within a single slot. At the
start of each time slot, the packet scheduler selects one packet from the queued
packets (if any) for transmission, using a round-robin scheduling method. Each packet
requires exactly one slot to transmit, meaning that a packet selected for transmission at
time t will complete its transmission at t + 1. At that point, another packet will be
chosen for transmission from those queued.
Question 2: [__/ 8]
In the scenario described, there are two TCP clients that communicate with a TCP
server using TCP sockets. The figure illustrates the Python code used to create a single
listening socket on the server (the listening socket itself is not depicted graphically).
Additionally, the code for the client sockets is also provided. The three sockets shown
on the server were created because the server accepted connection requests through
the listening socket—one connection from the client on the left and two connections
from the client on the right.
Question 3: [__/ 3]
Consider a datagram network that uses 8-bit host addresses. Suppose a router
employs longest-prefix matching and has the following forwarding table: