Cs/ee 143 Communication Networks Chapter 4 Internetworking
Cs/ee 143 Communication Networks Chapter 4 Internetworking
Chapter 4 Internetworking
Text: Walrand & Parekh, 2010
Steven Low
CMS, EE, Caltech
Warning
These notes are not self-contained,
probably not understandable,
unless you also were in the lecture
Transport
congestion control, error recovery
Scalability
location-based routing, hierarchical
best-effort service, end-to-end principle
Layering
Protocol stack
Network mechanisms implemented as
protocol stack
Each layer designed separately, evolves
asynchronously
application
transport
network
Routing (IP)
link
physical
Queueing theory
We will use it to understand statistical
properties of wireless MAC
Recap: Routing
Covered layer 3 routing
Autonomous systems (AS)
Defined by administrative domains
Inter-AS: BGP
Policy based
Error recovery
Can be used in link, transport, or
application layer
Parity check, FEC, network coding
This week
Internetworking
Routing across LANs, layer2-layer3
DHCP
NAT
Transport layer
Connection setup
Error recovery: retransmission
Congestion control
Internetworks
Layer 2 networks
Internetworks
an Ethernet network (layer 2)
Ethernet switch
Layer 3 view
Example
Ethernet sub-network 1
Ethernet sub-network 2
Internet
Gateways
Example:
Network
Link
gateway
Ethernet switch
Example:
Network
Link
gateway
Ethernet switch
Example:
Network
Link
[all,
e1, who is IP2?]
gateway
Ethernet switch
Example:
Network
Link
[all,
e1, who is IP2?]
gateway
Ethernet switch
Network
Link
Link layer on H2 responds to the ARP query with its MAC address
Example:
Network
Link
[e2,
e1,[IP1, IP2, X]]
gateway
Ethernet switch
Network
Link
Once the link layer on H1 knows e2, it can now send the
original message
Example:
Network
Link
[e2,
e1,[IP1, IP2, X]]
gateway
Ethernet switch
Network
Link
[IP1, IP2, X]
Example:
Network
Link
gateway
Ethernet switch
Example:
Network
Link
gateway
Ethernet switch
Example:
gateway
Ethernet switch
[IP1, IP3, X]
Network
Network
Link
Link
Example:
gateway
Ethernet switch
[IP1, IP3, X]
Network
Network
Link
Link
Send
[IP1, IP3, X]
to IP3
Summary
Network layer (Layer 3)
Provides host-to-host communication service by
finding a path of routers connecting any two
hosts
Main function: routing
[W&P 2010]
initially unconnected
[W&P 2010]
initially unconnected
[W&P 2010]
[W&P 2010]
[W&P 2010]
[W&P 2010]
[W&P 2010]
initially unconnected
[W&P 2010]
initially unconnected
goes down
[W&P 2010]
goes down
[W&P 2010]
DHCP
Motivations
Allows reuse of IP addresses
Enhances mobility, e.g., a laptop gets a new (local) IP
address whenever it connects to a different LAN
NAT
Most home routers implement NAT (Network
Address Translation)
Motivations
Reuse of IP addresses
Security
Protocol stack
Network mechanisms implemented as
protocol stack
Each layer designed separately, evolves
asynchronously
application
transport
network
Routing (IP)
link
physical
Transport services
UDP
Datagram service
No congestion control
No error/loss recovery
Lightweight
TCP
Connection oriented service
Congestion control
Error/loss recovery
Heavyweight
NAT
Key idea
A flow is specified by IP address + TCP port #
NAT uses TCP port# to hide private IP
NAT
NAT
NAT
NAT translates
NAT
NAT
Most home routers implement NAT (Network
Address Translation)
Motivations
Reuse of IP addresses
Security