Network Layer Protocols

45
Network Layer Protocols 2013, Part 2, Lecture 2.1 Jens Andersson (Kaan Bür) ETSF05/ETSF10 – Internet Protocols

Transcript of Network Layer Protocols

Page 1: Network Layer Protocols

Network Layer Protocols

2013, Part 2, Lecture 2.1Jens Andersson (Kaan Bür)

ETSF05/ETSF10 – Internet Protocols

Page 2: Network Layer Protocols

Route Transfer

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 2

Page 3: Network Layer Protocols

Scope of IGMP

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 3

Page 4: Network Layer Protocols

IGMP: Designated/Parent Router

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 4

Page 5: Network Layer Protocols

Network layer

• L3 is end‐to‐end

• L2 is host‐to‐host

2013‐11‐11 6ETSF05/ETSF10 ‐ Internet Protocols

Page 6: Network Layer Protocols

Network layer: Routing

• L3 is end‐to‐end

Two functions:❶ Finding best path❷ Forwarding2013‐11‐11 7ETSF05/ETSF10 ‐ Internet Protocols

Page 7: Network Layer Protocols

Forwarding: Address aggregation

2013‐10‐29 8ETSF05/ETSF10 ‐ Internet Protocols

Page 8: Network Layer Protocols

Forwarding: Longest mask matching

2013‐10‐29 9ETSF05/ETSF10 ‐ Internet Protocols

Page 9: Network Layer Protocols

Forwarding: Hierarchical routing

2013‐10‐29

ISP

10ETSF05/ETSF10 ‐ Internet Protocols

Page 10: Network Layer Protocols

Forwarding based on destination address

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 11

Page 11: Network Layer Protocols

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

Page 12: Network Layer Protocols

Forwarding based on label

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 13

Page 13: Network Layer Protocols

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

Page 14: Network Layer Protocols

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

Page 15: Network Layer Protocols

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

Page 16: Network Layer Protocols

Classless addressing

• Addresses in blocks– Block size power of 2– N = 232‐n

2013‐11‐11 17ETSF05/ETSF10 ‐ Internet Protocols

Page 17: Network Layer Protocols

Example: Classless addressing

• 205.16.37.39/28

2013‐11‐11 18ETSF05/ETSF10 ‐ Internet Protocols

Page 18: Network Layer Protocols

IPv6 addresses

• 128 bits = 16 bytes• 2128 = 232 ∙ 296 > 3∙1035

• Notations

2013‐11‐11 19ETSF05/ETSF10 ‐ Internet Protocols

Page 19: Network Layer Protocols

Prefixes for assigned IPv6 addresses

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 20

Page 20: Network Layer Protocols

Global unicast addresses

• Identify individual computers

2013‐11‐11 21ETSF05/ETSF10 ‐ Internet Protocols

TYPEAREA

ISPORGANISATION

Page 21: Network Layer Protocols

A few special IPv6 addresses

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 22

AU

TOC

ON

FIG

Page 22: Network Layer Protocols

IPv4 datagram

2013‐11‐11 23ETSF05/ETSF10 ‐ Internet Protocols

Page 23: Network Layer Protocols

Service type field

2013‐11‐11 24ETSF05/ETSF10 ‐ Internet Protocols

Page 24: Network Layer Protocols

• Simpler base header, flexible for extensions

IPv6 datagram

2013‐11‐11 25ETSF05/ETSF10 ‐ Internet Protocols

Page 25: Network Layer Protocols

IPv6 extension headers

2013‐11‐11 26ETSF05/ETSF10 ‐ Internet Protocols

Page 26: Network Layer Protocols

Traffic Classes  Packet priorities

• 0 .. 7– Congestioncontrolled

• 8 .. 15– Non‐congestioncontrolled

2013‐11‐11 27ETSF05/ETSF10 ‐ Internet Protocols

Page 27: Network Layer 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?

Page 28: Network Layer Protocols

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

Page 29: Network Layer Protocols

Transition: (1) Dual stack

• Decision based on destination IP

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 30

Page 30: Network Layer Protocols

Transition: (2) Tunneling

• A few IPv6 routers

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 31

Page 31: Network Layer Protocols

Transition: (3) Header translation

• A few IPv4 routers

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 32

Page 32: Network Layer Protocols

Internet Control Message Protocol

• ICMP• Support protocol for IP

– Error reporting– Query

2013‐11‐11 33ETSF05/ETSF10 ‐ Internet Protocols

Page 33: Network Layer Protocols

ICMPv4 message types

2013‐11‐11 34ETSF05/ETSF10 ‐ Internet Protocols

Page 34: Network Layer Protocols

ICMP message formats

• Error reporting 

• Query messages

2013‐11‐11 35ETSF05/ETSF10 ‐ Internet Protocols

Page 35: Network Layer Protocols

• Routing update for hosts– Security/reliability?

Redirection (error reporting type)

2013‐11‐11 36ETSF05/ETSF10 ‐ Internet Protocols

DEFAULT ROUTER

Page 36: Network Layer Protocols

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

Page 37: Network Layer Protocols

Traceroute

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 38

Echo request

Page 38: Network Layer Protocols

Changes to ICMP

ICMPv4• Some unused functions

ICMPv6• Same principle• Some new functions• Convergence• Suits IPv6 better

2013‐11‐11 40ETSF05/ETSF10 ‐ Internet Protocols

Page 39: Network Layer Protocols

Virtual Private Network (VPN)

• Overlay network• Alternative to a real private network

2013‐11‐11 46ETSF05/ETSF10 ‐ Internet Protocols

Page 40: Network Layer Protocols

An example VPN

• IPSec between routers

2013‐11‐11 47ETSF05/ETSF10 ‐ Internet Protocols

Page 41: Network Layer Protocols

IPSec

Transport mode Tunnel mode

2013‐11‐11 ETSF05/ETSF10 ‐ Internet Protocols 48

TH

Page 42: Network Layer Protocols

• Data protected• Headers unprotected

– Addresses fully visible

Transport mode in action

2013‐11‐11 49ETSF05/ETSF10 ‐ Internet Protocols

Page 43: Network Layer Protocols

Tunnel mode in action

• Not used between hosts• Entire packet protected

– New header inside tunnel

2013‐11‐11 50ETSF05/ETSF10 ‐ Internet Protocols

Page 44: Network Layer Protocols

Internet security (discussed in othercourses)

2013‐11‐11 51ETSF05/ETSF10 ‐ Internet Protocols

Page 45: Network Layer 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