Data Communication and Networking LAB-3 and 4 Report
Data Communication and Networking LAB-3 and 4 Report
Lab-3 and 4
1.1 Objective
Cisco Packet Tracer Simulation
2
1.3. IP ADDRESS ALLOCATION 3
• Host A: 192.168.1.2
• Host B: 192.168.1.3
• Host C: 192.168.1.4
• Host D: 192.168.2.2
• Host E: 192.168.2.3
• Host F: 192.168.2.4
• Host G: 192.168.2.5
1.3.3 Explanation
Static IP addresses were chosen for simplicity and predictability. Each host is assigned a unique IP
address within its subnet. The router interfaces serve as the default gateways for their respective
subnets, enabling inter-subnet communication.
2. ARP Reply: Host B receives the ARP request and sends an ARP reply directly to Host A
with its MAC address.
3. ICMP Echo Request: Host A sends an ICMP echo request (ping) to Host B’s IP address,
encapsulated in an Ethernet frame with Host B’s MAC address as the destination.
4. ICMP Echo Reply: Host B receives the ICMP echo request and sends an ICMP echo reply
back to Host A.
4 CHAPTER 1. LAB-3 AND 4
MAC Header:
2. ARP Reply from Router: The router responds with its MAC address for Interface 1.
3. ICMP Echo Request: Host A sends an ICMP echo request to Host G (192.168.2.5), encap-
sulated in an Ethernet frame with the Router’s MAC address as the destination.
1.5. PING FROM HOST A TO HOST G 5
4. Router Forwarding: The router receives the packet, decrements the TTL, and forwards it
to Interface 2. It encapsulates the packet in a new Ethernet frame with the destination MAC
address of Switch 2.
7. ICMP Echo Reply: Host G sends an ICMP echo reply back to Host A, following the reverse
path.
• Router to Switch 2:
• Switch 3 to Host G:
1. TTL = 1: Host A sends a packet to Host B with TTL=1. The packet expires at the first hop
(Switch 1 or Host B if directly connected). An ICMP Time Exceeded message is sent back to
Host A.
2. TTL = 2: Host A sends a packet to Host B with TTL=2. The packet reaches the second
hop (Host B). Host B sends either an ICMP Time Exceeded (if it’s not the destination) or an
ICMP Echo Reply (if it is the destination).
MAC Header:
1. TTL = 1: Host A sends a packet to Host G with TTL=1. The packet expires at the first hop
(Switch 1). An ICMP Time Exceeded message is sent back to Host A.
2. TTL = 2: Host A sends a packet to Host G with TTL=2. The packet reaches the Router.
The Router sends an ICMP Time Exceeded message back to Host A.
3. TTL = 3: Host A sends a packet to Host G with TTL=3. The packet reaches Switch 2.
Switch 2 sends an ICMP Time Exceeded message back to Host A.
4. TTL = 4: Host A sends a packet to Host G with TTL=4. The packet reaches Switch 3.
Switch 3 sends an ICMP Time Exceeded message back to Host A.
5. TTL = 5: Host A sends a packet to Host G with TTL=5. The packet reaches Host G. Host
G sends an ICMP Echo Reply back to Host A.
MAC Header:
• Host A to Router:
• Router to Switch 2:
• Switch 3 to Host G: