Sid Shanker - 06/07/2018
Impress upon you that:
Sid's Macbook
Google Server
RC Router
The internet
Google Router
Lots of different protocols in play here!
Source and destination address are both IP Addresses
TCP Very Quickly
A typical TCP packet
Private Network
Public Internet
Google Router
RC Router
Private Network
has public ip
computer
computer
computer
computer
computer
computer
computer
computer
Introducing: the NAT
Answer: A Disappointing Hack
Router
Original IP Packet:
private ip: 10.0.0.1
original port: 65419
Modified IP Packet:
source ip: 207.251.103.46
new "port": 72192
NAT Table:
out-ip:out-port | local-ip:local-port
207.251.103.46:72192 |10.0.0.1:65419
....
Exercise for the reader: How could this work with a transport-protocol that doesn't use ports?
Moral of the story: sometimes you have to make compromises for things to work in the real world.