Laboratory 3
Laboratory 3
Laboratory Exercises 3
Peer to Peer Configuration
Aim:
To establish a connection between two PCs in the same network.
Software used:
Cisco Packet Tracer.
Theory:
Procedure:
Step 1: Place a basic switch and two PCs on the workspace.
Step 2: Connect both the PCs to the switch using copper straight through cable.
Step 3: Click on simulation button and then observe the packet flow
Answer the following questions based on the above 3 steps:
Q 1.1: What type of packets flow once you start the simulation?
- ARP requests and replies help PCs learn each other’s MAC addresses. You might also
see broadcast packets initially.
Q 1.2: What are STP and DTP packets?
-STP (Spanning Tree Protocol) prevents network loops in switches, while DTP
(Dynamic Trunking Protocol) helps Cisco switches automatically set up trunk links.
Q 1.3: Why does the communication fail between two computers?
-Communication may fail if the PCs haven’t learned each other’s MAC addresses, if
their IP addresses are on different subnets, if the wrong cable type is used, or if the
switch ports are disabled or misconfigured.
Q 1.4: What are the MAC addresses of PC0 and PC1?
-The MAC addresses can be found in Packet Tracer by going to the PC’s desktop,
opening the Command Prompt, and typing "ipconfig /all".
Step 4: Open PC0 --> Desktop --> IP Configurations and put IP address 192.168.10.1
And press TAB.
Step 5: Open PC1 --> Desktop --> IP Configurations and put IP address 192.168.10.2
And press TAB.
Step 6: Open PC0 --> Desktop --> Command Prompt and type ping 192.168.10.2 and
Press enter.
Answer the following questions based on the above 3 steps:
Q 1.5: What packets transfer between PC0 and PC1?
-PC0 and PC1 first exchange ARP packets to learn each other’s MAC addresses. After
that, they send ICMP packets if you ping, and TCP or UDP packets if any applications
are running.
Q 1.6: What is ARP?
-ARP (Address Resolution Protocol) helps devices find each other on a network by
matching IP addresses to MAC addresses
Q 1.7: What is ICMP?
-ICMP (Internet Control Message Protocol) is used for sending error messages and
network diagnostics, like when you use ping to check if a device is online.