top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How does an IP Packet travel between two PC’s connected to a switch.??

+3 votes
How does an IP Packet travel between two PC’s connected to a switch.??
posted Dec 11, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
Take the following scenario :
1)  PC1 is connected to port 1 of the switch and its ip address is
2)  PC2 is connected to port 2 of the switch and its ip address is

The following are the sequence of events which would happen when PC1 pings PC2.

  a) User on PC1 pings PC2.
  b) The route entry corresponding to the destination IP address (In this case PC2) is checked on PC1.s local routing table.
  c)  In this case, since the destination and the source are on the same network, the ARP cache on PC1 would be looked into for PC2.s information.
  d) If unavailable, an ARP Request would be sent to PC2 from PC1. ARP is sent to retrieve the mac-address of PC2 .
       This is needed to construct the ethernet frame which is required for encapsulating the IP Packet.
  e) After PC2 responds , the IP packet packet carrying the icmp data (Ping) will be encapsulated in the ethernet frame and sent to PC2.
  f)  PC2 would first check if the destination mac-address in the frame is it;s own address.
  g) After verification, the destination IP address would be looked into. In this case , it is PC2.s IP address.
  h) The data would now be processed (icmp data) and a response (icmp reply) to PC1 would be send.```
answer Dec 21, 2013 by Vikas Upadhyay
Similar Questions
+2 votes

I am searching for tools available as opensource where we can create networks and capture packets ...

Please provide the link so that i can download and play around it.

0 votes

Lets assume device is a computer which is connected to LAN switch and LAN switch has further links in upward.
Does a computer initiate ARP request for each destination IP ? Or it initiates ARP request only for a specific group of IPs ?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.