D
DJ
ARP is a good thing.
No need to worry bout it. Here how it functions :
PC A needs to send a packet to PC B :
1. PC A looks in its ARP cache to see if it has the
MAC of (PC B) or (Default Gateway of PC A).
2. PC A checks whether PC B IP's address is in the same
subnet.
3a. If its in the same subnet it send a frame with MAC
address FFFFFFFFFFFF (broadcast) so every PC in the local
subnet can read this frame. The frame inside has the
target IP address of PC B. So when PC B reads this ARP
request it will reply to PC A and PC A will be able to
send future packets to PC B with its actuall MAC address.
MAC IP content
FFFFFFFFFFFF | PC B IP | WHAT IS YOUR MAC |
3b. If its on different subnet, then PC A will try to get
the MAC of its DEFAULT GATEWAY the same way as in 3a.
MAC IP content
FFFFFFFFFFFF | DEF GATEWAY IP | WHAT IS YOUR MAC |
then it will send the packet to PC B in this format :
MAC IP content
DEF GATEWAY MAC | PC B IP | WHATSUP |
Hope you got it
No need to worry bout it. Here how it functions :
PC A needs to send a packet to PC B :
1. PC A looks in its ARP cache to see if it has the
MAC of (PC B) or (Default Gateway of PC A).
2. PC A checks whether PC B IP's address is in the same
subnet.
3a. If its in the same subnet it send a frame with MAC
address FFFFFFFFFFFF (broadcast) so every PC in the local
subnet can read this frame. The frame inside has the
target IP address of PC B. So when PC B reads this ARP
request it will reply to PC A and PC A will be able to
send future packets to PC B with its actuall MAC address.
MAC IP content
FFFFFFFFFFFF | PC B IP | WHAT IS YOUR MAC |
3b. If its on different subnet, then PC A will try to get
the MAC of its DEFAULT GATEWAY the same way as in 3a.
MAC IP content
FFFFFFFFFFFF | DEF GATEWAY IP | WHAT IS YOUR MAC |
then it will send the packet to PC B in this format :
MAC IP content
DEF GATEWAY MAC | PC B IP | WHATSUP |
Hope you got it