Network Layer Protocols
Transcript of Network Layer Protocols
Network Layer Protocols
2013, Part 2, Lecture 2.1Jens Andersson (Kaan Bür)
ETSF05/ETSF10 – Internet Protocols
Route Transfer
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 2
Scope of IGMP
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 3
IGMP: Designated/Parent Router
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 4
Network layer
• L3 is end‐to‐end
• L2 is host‐to‐host
2013‐11‐11 6ETSF05/ETSF10 ‐ Internet Protocols
Network layer: Routing
• L3 is end‐to‐end
Two functions:❶ Finding best path❷ Forwarding2013‐11‐11 7ETSF05/ETSF10 ‐ Internet Protocols
Forwarding: Address aggregation
2013‐10‐29 8ETSF05/ETSF10 ‐ Internet Protocols
Forwarding: Longest mask matching
2013‐10‐29 9ETSF05/ETSF10 ‐ Internet Protocols
Forwarding: Hierarchical routing
2013‐10‐29
ISP
10ETSF05/ETSF10 ‐ Internet Protocols
Forwarding based on destination address
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 11
Label Switching
• Switching is more efficient than routing• Create one path instead of routing/forwardingeach individual packet hop by hop– Switching still hop by hop– Compare ATM switching
• MPLS (Multi‐Protocol Lable Switching)
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 12
Forwarding based on label
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 13
MPLS header made of a stack of labels
• Ex: One label for outside an organisation• Ex: One label for inside a organisation• Compare hierarchical routing
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 14
Internet Protocol
IPv4
• Addressing scheme– Hierarchy– Configuration– Lookup
• Datagram format
IPv6
• Larger address space• Better header format
– Extendible– More secure
• Support for QoS
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 15
IPv4 addresses
• 32 bits = 4 bytes• 232 = (28)4 = 2564 = 4 294 967 296• Classful vs. classless hierarchy
• Notations– Dotted decimal– Slash (CIDR)
2013‐11‐11 16ETSF05/ETSF10 ‐ Internet Protocols
Classless addressing
• Addresses in blocks– Block size power of 2– N = 232‐n
2013‐11‐11 17ETSF05/ETSF10 ‐ Internet Protocols
Example: Classless addressing
• 205.16.37.39/28
2013‐11‐11 18ETSF05/ETSF10 ‐ Internet Protocols
IPv6 addresses
• 128 bits = 16 bytes• 2128 = 232 ∙ 296 > 3∙1035
• Notations
2013‐11‐11 19ETSF05/ETSF10 ‐ Internet Protocols
Prefixes for assigned IPv6 addresses
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 20
Global unicast addresses
• Identify individual computers
2013‐11‐11 21ETSF05/ETSF10 ‐ Internet Protocols
TYPEAREA
ISPORGANISATION
A few special IPv6 addresses
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 22
AU
TOC
ON
FIG
IPv4 datagram
2013‐11‐11 23ETSF05/ETSF10 ‐ Internet Protocols
Service type field
2013‐11‐11 24ETSF05/ETSF10 ‐ Internet Protocols
• Simpler base header, flexible for extensions
IPv6 datagram
2013‐11‐11 25ETSF05/ETSF10 ‐ Internet Protocols
IPv6 extension headers
2013‐11‐11 26ETSF05/ETSF10 ‐ Internet Protocols
Traffic Classes Packet priorities
• 0 .. 7– Congestioncontrolled
• 8 .. 15– Non‐congestioncontrolled
2013‐11‐11 27ETSF05/ETSF10 ‐ Internet Protocols
IPv6 and QoS
Flow label
• Identification of a stream– TCP sessions– Virtual connections
• Processing– Flow label table– Forwarding table
• Routing– Algorithms still necessary– But not run for every packet!
Traffic class
• Classification of packets– Queueing schemes– Relation to delay
• TCP vs. UDP– Congestion‐controlled– Non‐congestion‐controlled
• Other protocols– RTP– RSVP
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 28
CROSS‐LAYER?
Transition: IPv4 IPv6
• Cannot happen overnight– Too many independent systems– Economic cost– IPv4 address space lasted longer than expected
• CoexistSence needed
2013‐11‐11 29ETSF05/ETSF10 ‐ Internet Protocols
Transition: (1) Dual stack
• Decision based on destination IP
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 30
Transition: (2) Tunneling
• A few IPv6 routers
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 31
Transition: (3) Header translation
• A few IPv4 routers
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 32
Internet Control Message Protocol
• ICMP• Support protocol for IP
– Error reporting– Query
2013‐11‐11 33ETSF05/ETSF10 ‐ Internet Protocols
ICMPv4 message types
2013‐11‐11 34ETSF05/ETSF10 ‐ Internet Protocols
ICMP message formats
• Error reporting
• Query messages
2013‐11‐11 35ETSF05/ETSF10 ‐ Internet Protocols
• Routing update for hosts– Security/reliability?
Redirection (error reporting type)
2013‐11‐11 36ETSF05/ETSF10 ‐ Internet Protocols
DEFAULT ROUTER
Echo request and reply (query type)
• Is my destination alive?
• Network diagnostics– IP layer
• Debugging tools– Ping– Traceroute
2013‐11‐11 37ETSF05/ETSF10 ‐ Internet Protocols
Traceroute
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 38
Echo request
Changes to ICMP
ICMPv4• Some unused functions
ICMPv6• Same principle• Some new functions• Convergence• Suits IPv6 better
2013‐11‐11 40ETSF05/ETSF10 ‐ Internet Protocols
Virtual Private Network (VPN)
• Overlay network• Alternative to a real private network
2013‐11‐11 46ETSF05/ETSF10 ‐ Internet Protocols
An example VPN
• IPSec between routers
2013‐11‐11 47ETSF05/ETSF10 ‐ Internet Protocols
IPSec
Transport mode Tunnel mode
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 48
TH
• Data protected• Headers unprotected
– Addresses fully visible
Transport mode in action
2013‐11‐11 49ETSF05/ETSF10 ‐ Internet Protocols
Tunnel mode in action
• Not used between hosts• Entire packet protected
– New header inside tunnel
2013‐11‐11 50ETSF05/ETSF10 ‐ Internet Protocols
Internet security (discussed in othercourses)
2013‐11‐11 51ETSF05/ETSF10 ‐ Internet Protocols
VPN alternatives (bonus material)
• PPTP (Point‐to‐Point Tunneling Protocol)• L2TP (Layer 2 Tunneling Protocol)• SSTP (Secure Socket Tunneling Protocol)• OpenVPN
• See Wikipedia for information
2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 52