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:
- pc1 want send icmp packet pc2, don't know mac address yet
- network:: pc1: arp - address of 192.168.2.2?
- network:: pc2: arp - address of 192.168.2.2 aa:bb:cc:dd:ee:ff
- pc1 has l2 address, can send packet
- 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
- pc2 recieves icmp echo-request, , want send echo-reply, don't know l2 address of 192.168.2.1
- network: pc2: arp - address of 192.168.2.1?
- network: pc1: arp - address of 192.168.2.1 11:22:33:44:55:66
- 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
Post a Comment