请教网络地址转换NAT的原理
我在看Behrouz A. Forouzan写的TCP/IP Protocol Suit 第四版其中5.5节讲NAT,
就是关于路由器怎么知道从因特网收到的包要转发给哪个端口
When the router translates the
source address of the outgoing packet, it also makes note of the destination address—
where the packet is going. When the response comes back from the destination, the
router uses the source address of the packet (as the external address) to find the private
address of the packet.
上面这段说是在往外发的时候记了一下内部私有地址与外部地址的映射,这样收到时查一下映射可以得知。
我的问题是,如果局域网中多个设备访问外部同一个IP,那不是冲突了吗