Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
WEEK-END ASSIGNMENT-03
Computer Networking Workshop (CSE 4541)
Publish on: 02-03-2024 Submission on: 09-03-2024
Course Outcome: CO1 Program Outcome: PO1 , PO3 Learning Level: L4
Working with classful IPV4 address configuration
1. Determine the operating mode of the ports, either half-duplex or
full-duplex, in the following situations; Answer Remark
(a) With a connection from a switch to a host (a) q
(b) With a connection from a switch to a switch (b) q
(c) With a connection from a host to a host (c) q
(d) With a connection from a switch to a router (d) q
(e) With a connection from a router to a router (e) q
(f) With a connection from a router to a host (f) q
(g) With a connection from a hub to a host (g) q
(h) With a connection from a switch to a hub (h) q
(i) With a connection from a router to a hub
(i) q
(j) q
(j) With a connection from a hub to a hub
Answer Remark
2. Find the class of each IP address.
(a) q
(a) 10000001 00001011 00001011 11101111
(b) q
(b) 0000001 10000011 00011011 11111111
(c) q
(c) [Link]
(d) q
(d) [Link]
Answer Remark
3. Find the network address of the given IP addresses.
(a) q
(a) [Link]
(b) q
(b) [Link]
(c) q
(c) [Link]
(d) q
(d) [Link]
WEA03-1
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
Answer Remark
4. Determine the class from the given network addresses
(a) q
(a) [Link]
(b) q
(b) [Link]
(c) q
(c) [Link]
(d) q
(d) [Link]
5. Find the netID and hostID of the following classful IP addresses. Answer Remark
(a) [Link] (a) q
(b) [Link] (b) q
(c) [Link] (c) q
(d) [Link] (d) q
6. Determine default mask for the given IP addresses Answer Remark
(a) [Link] (a) q
(b) [Link] (b) q
(c) [Link] (c) q
(d) [Link] (d) q
7. You are the Cisco administrator for your company. A new branch
office is opening and you are selecting the necessary hardware Answer Remark
to support the network. There will be two groups of comput- q
ers, each organized by department. The Sales group comput-
ers will be assigned IP addresses ranging from [Link] to Justification:
[Link]. The Accounting group will be assigned IP ad-
dresses ranging from [Link] to [Link]. What type of device
should you select to connect the two groups of computers so that
data communication can occur?
(a) HUB (c) Router
(b) Switch (d) Bridge
8. Suppose computers A and B have IP addresses [Link] and Answer Remark
[Link] respectively and they both use the same netmask N.
Which of the values of N given below should not be used if A q
and B should belong to the same network. [GATE 2010] Justification:
(a) [Link] (c) [Link]
(b) [Link] (d) [Link]
WEA03-2
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
9. In the IPv4 addressing format, the number of networks allowed Answer Remark
under Class C addresses is [GATE 2012] q
(a) 214 (c) 221 Justification:
(b) 27 (d) 224
10. An Internet Service Provider (ISP) has the following chunk of
CIDR-based IP addresses available with it: [Link]/20. Answer Remark
The ISP wants to give half of this chunk of addresses to Orga- q
nization A, and a quarter to Organization B, while retaining the
remaining with itself. Which of the following is a valid alloca- Justification:
tion of addresses to A and B? [GATE 2012]
(a) [Link]/21 and [Link]/22
(b) [Link]/21 and [Link]/22
(c) [Link]/22 and [Link]/21
(d) [Link]/24 and [Link]/21
11. Assume that source S and destination D are connected through
two intermediate routers labeled R. Determine how many times Answer Remark
each packet has to visit the network layer and the data link layer q
during a transmission from S to D. [GATE 2012]
Justification:
S R R D
(a) Network layer 4 times and Data link layer 4 times
(b) Network layer 4 times and Data link layer 3 times
(c) Network layer 4 times and Data link layer 6 times
(d) Network layer 2 times and Data link layer 6 times
12. Assume that source S and destination D are connected through
as shown in the figure with R as Router. Determine how many Answer Remark
times each packet has to visit the network layer and the data link q
layer during a transmission from S to D.
Justification:
S Switch R Switch D
(a) Network layer 4 times and Data link layer 4 times
(b) Network layer 4 times and Data link layer 3 times
(c) Network layer 3 times and Data link layer 6 times
(d) Network layer 2 times and Data link layer 6 times
WEA03-3
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
13. Suppose that instead of using 16 bits for the network part of a Answer Remark
class B address originally, 20 bits had been used. How many q
class B networks would there have been?
14. Let us consider a routing table is given below. Find the inter-
face on which the packet will move with the destination address
[Link]
Answer Remark
Network address Subnet mask Interface q
[Link] [Link] a
[Link] [Link] b
[Link] [Link] c
[Link] [Link] d
[Link] [Link].0 e (default entry)
Experiment:
To study the implication of Subnet mask in network using Cisco Packet Tracer
(CPT)
1. Design the following network-1 using CPT and configure the IP and subnet mask of each node
(PCi,i=0..5 ). Send a simple PDU from source PC0 to the destination PC4 and observe how the
PDU is moving from source to destination in both the modes of the simulator (i.e. realtime as
well as simulation mode).
PC0 PC3
[Link] [Link]
PC1 PC4
Switch
.3 .136
PC2 PC5
[Link]
.4 [Link] .140
Figure 1: A Class C Switched Network
WEA03-4
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
Specify your Solution for the above design problem
Paste Network Topology here Remark
q
Mention the configuration at PCs
Node/PC Name IPv4 Address Subnet Mask
PC0 [Link] [Link]
PC1
PC2
PC3
PC4
PC5
Generate packet and forward from source to destination
Status Remark
(a) ICMP packet from source PC0 to PC1 in realtime mode (a) q
(b) ICMP packet from source PC1 to PC4 in simulation mode (b) q
(c) State the command to display MAC table (c) q
(d) If PC0 broadcast a packet, determine how many responses (d) q
are returned to PC0
WEA03-5
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
2. To the above network shown in Figure-1, Change only the subnet mask from [Link] to
[Link] without changing any IPV4 address of them. Again experiment the case; Gen-
erate packet and forward from source to destination. State the conclusion of your observation.
Status Remark
(a) ICMP packet from source PC0 to PC1 (a) q
(b) ICMP packet from source PC0 to PC2 (b) q
(c) ICMP packet from source PC0 to PC3 (c) q
(d) ICMP packet from source PC0 to PC4 (d) q
(e) ICMP packet from source PC0 to PC5 (e) q
Observartions:
State your answer
(a) Using default mask, [Link], in Question-1.
(b) Using mask in [Link] Question-2.
(c) Do you think that the class C network in Question-2 is broken into 2 parts? (Y/N) state your
answer
(d) Can a Switch interconnect two different networks? (Y/N) Justify your answer in favour of Y or
N. If N how to connect two different networks.
WEA03-6
Department of Computer Science and Engineering
Institute of Technical Education & Research, SOA, Deemed to be University
3. Modify the network shown in Figure-1 by adding a router in place of the switch. Configure
Default Gateway at PCs and assign IP address art router interface configure.
Configuration & Observartions:
Paste Network Topology here With Router Remark
q
Mention the configuration at PCs
Node/PC Name IPv4 Address Subnet Mask Default Gateway
PC0 [Link] [Link] [Link]
PC1 [Link]
PC2 [Link]
PC3 [Link]
PC4 [Link]
PC5 [Link]
Observation with Router
Status Remark
(a) ICMP packet from source PC0 to PC1
(a) q
(b) ICMP packet from source PC0 to PC2
(b) q
(c) ICMP packet from source PC0 to PC3
(c) q
(d) ICMP packet from source PC0 to PC4
(d) q
(e) ICMP packet from source PC0 to PC5
(e) q
What do you mean by Subnet mask?
What is the role of Subnet mask?
WEA03-7