Forum Home
Press F1
 
Thread ID: 61185 2005-08-27 08:02:00 Blocking IP form a website noone (22) Press F1
Post ID Timestamp Content User
384125 2005-08-30 10:44:00 I've allways wondered exactly how a data manages to arrive at the correct client int a LAN. Is the local machines private IP address somehow added to the data sent out?


the sending computer decideds if the end point is on the LAN or not, this is done by checking the IP you are sending to with the subnet mask of the local system.

if the end point is on the LAN then the local computer sends a special packet to all systems on the lan that says "who has this IP and what is your MAC"
this is ARP/RARP. once the system has the MAC the packet is sent direct to that MAC address.

if the end point is not on the lan then the packet is sent to the default router.

once at the router the router uses much the same method to decide where to send the packet.

once at the local router of the end point the packet is sent by MAC address as with LAN.

the IP packet has a "return address" so every system along the way can see both where it is going and where it came from. an IP packet has other cruft atached to it, about 10% of each packet is cruft that makes IP work.


more info

www.networksorcery.com
robsonde (120)
1 2 3