COMPUTER NETWORK LAB PRACTICAL FILE
Submitted by
Shivanshu Sajwan
123102193 CS-C
Practical 1 :
Creating Different Topologies and Network Configuration
Configure and set up a Mesh Topology in Cisco Packet Tracer using 5 PCs and 5 switches.
Each PC will be assigned an appropriate IPv4 address and subnet mask to enable
communication within the network. The PCs will be interconnected through switches to
form a mesh topology for full connectivity. The configuration will be verified by pinging the
IP addresses of various hosts from one another. Additionally, packet transfer between PCs
will be simulated to test the network's functionality and confirm seamless communication.
Similarly create Ring, Bus, Start, and Hybrid topologies.
Mesh Topology
Pinging Result
Practical 2 :
Static Routing to facilitate data transfer between multiple networks
Configure and set up a static routing network in Cisco Packet Tracer using 3 routers, 3
switches, and 6 PCs. Each PC will be assigned an appropriate IPv4 address and subnet mask
based on the network topology. Each router will configure static routes to enable
communication among all the networks. The setup will be verified by pinging the IP
addresses of different PCs in different networks to ensure successful connectivity.
Pinging Result
Practical 3:
Dynamic Routing with RIP by automatically updating routing tables
Configure Routing Information Protocol (RIP) routing in Cisco Packet Tracer using a network
setup using 3 routers, 3 switches, and 6 PCs. Each router will be connected to its respective
network, with devices assigned appropriate IPv4 addresses and subnet masks. RIP will be
configured on all routers to enable dynamic routing and facilitate communication between
the connected networks. The configuration will be verified by pinging devices across
different networks to ensure successful packet transmission.
Pinging Result
Practical 4:
BGP Protocol for routing between multiple autonomous systems in large-scale networks
Configure Border Gateway Protocol (BGP) in Cisco Packet Tracer using a network topology
consisting of routers, switches, and PCs. Each router will be assigned an Autonomous System
Number (ASN), and BGP neighbors will be specified to establish inter-domain routing. The
directly connected networks will be advertised using BGP to enable communication between
different ASNs. Traceroute to observe the path taken by packets and ping the hosts to ensure
successful connectivity.
Pinging Result
Practical 5:
Traffic Analysis and Capturing Login Credentials of an HTTP Website Using Wireshark
Install and configure Wireshark to capture HTTP traffic to observe login credentials in
plaintext using Wireshark
Packets
Practical 6:
Configure Wireshark to capture the details of network communication across different
protocol layers. Analyse TCP connection establishment by capturing and studying the three-
way handshake, followed by exploring UDP communication.
Packets
Packets
Practical 7:
Implement OSPF-Based Dynamic Routing Using a Python Script
Write a Python script that simulates dynamic routing using the Open Shortest Path First
(OSPF) protocol. Implement Dijkstra’s Shortest Path Algorithm to determine the best route
based on link costs between a source and destination router. The network topology should
be represented as a graph, where routers act as nodes and links between them represent
network connections with associated weights (costs). The script should prompt the user to
enter the source and destination routers, compute the shortest path using OSPF’s link-state
routing mechanism, and display the selected path along with the total cost. The script
should indicate that the destination is unreachable if no valid route exists.
Code Output