networking - can some one explain communication between two clients in below network? -


pc1 -> switch -> switch b -> pc2.

ip address of pc1 -192.168.2.1 ip address of pc2 -192.168.2.2

if ping pc2 pc1, how packet forwarded?

what packets source ip address, destination ip address, source mac address , destination mac address @ port connecting pc1 , @ port connecting pc2 ?

you can omit switches between hosts, because don't affect or modify communication between hosts. store informations mac address reachable @ interface reduce spamming network segments useless data. whole communication done in few steps:

  1. pc1 want send icmp packet pc2, don't know mac address yet
  2. network:: pc1: arp - address of 192.168.2.2?
  3. network:: pc2: arp - address of 192.168.2.2 aa:bb:cc:dd:ee:ff
  4. pc1 has l2 address, can send packet
  5. network:: pc1: icmp echo-request - src-mac: 11:22:33:44:55:66, src-ip: 192.168.2.1 ... dest-mac: aa:bb:cc:dd:ee:ff, dest-ip: 192.168.2.2
  6. pc2 recieves icmp echo-request, , want send echo-reply, don't know l2 address of 192.168.2.1
  7. network: pc2: arp - address of 192.168.2.1?
  8. network: pc1: arp - address of 192.168.2.1 11:22:33:44:55:66
  9. network: pc2: icmp echo-reply - src-mac: aa:bb:cc:dd:ee:ff, src-ip: 192.168.2.2 ... dest-mac: 11:22:33:44:55:66, dest-ip: 192.168.2.1

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -