so we have two computers behind a router... they are connected to the net we all share the same IP address to the outside world but internally we know that the IP address vary so for example 192.168.1.5. (A). and 192.168.1.15 (B)...
Now the question i have is when the data comes into the router from the cloud.. how does it know whether to go to computer A or B. I know data is encapsulated so im guessing the router would read the local hosts ip address off the ip header.. but in my mind the ip address off the header would be the IP address that is interfaced directly with the internet and is shared by both computer A and computer B. It is also shared with every device connected behind the initial router
Now i know that each device has a unique MAC address and I know each device has a unique ip address on the 192 local network.... so i dont remember seeing an entry in the IPv4 header fields for the 192 only the source IP address which i equate to being the source address the cloud sees .. so i am assuming that MAC address data from Layer 2 is transported back and forth during communication between devices in the cloud and devices on the 192 network.. this is the only way i see how the router can differentiate between incoming traffic routed to computer A or computer B
but this doesnt make sense to me.. because i know that as data hops from router to router.. it is stripped and encapsulated with its own layer 2 data ..HDLC..ATM..Frame relay... so where would the mac address for the 192 network devices be stored at in packets that are hopping around the net.. when the layer 2 data is stripped
this makes me look harder at the initial router before the cloud and i think the answer lies there... and im only on CH6 book 1 icnd.... and i think the answer lies in NAT which is in CH16.. lolz..
ahh back to the book