COMSATS University Islamabad, Sahiwal Campus
DEPARTMENT OF COMPUTER SCIENCE
Assignment # 2
Program: FA24-BSE-A/B Deadline: 12th March
Course: Computer Networks Marks: 10
Q. No. 1 Scenario-Based Assignment (10 Marks)
Scenario: A software company TechSolutions is setting up its office network in a
new building. The company has three departments:
1. Development Department
2. Marketing Department
3. Administration Department
The company receives the IP address block: [Link]/24
The IT administrator wants to:
• Divide the network into three subnets
• Each subnet must support at least 50 hosts
• All departments must communicate through a central router
• The router provides Internet connectivity
• The company will use Network Address Translation (NAT) to access the Internet through
a single public IP address
Question 1 – Subnetting (5 Marks)
Apply subnetting on [Link]/24 to create networks for the three departments. Answer the
following:
a) Determine the new subnet mask that supports at least 50 hosts per subnet. (2 marks)
b) Write three valid subnet addresses. (1.5 marks)
c) Write the host range and broadcast address for each subnet. (1.5 marks)
Question 2 – Packet Forwarding (3 Marks)
A computer in the Development Department has IP: [Link]
It sends a packet to a computer in the Administration Department with IP: [Link]
1
Explain the packet forwarding process:
• How the router checks the destination address
• Which interface the router selects
Question 3 – IP Fragmentation Scenario (2 Marks)
Network sends a packet with:
• Total IP packet size = 2400 bytes
• MTU of the outgoing link = 700 bytes
• IP header size = 20 bytes
Tasks:
a) Determine how many fragments will be created.
b) Calculate the data size in each fragment.
c) Explain how the receiving host reassembles fragments using the Identification field.
*****The End*****