documentas

31
Intra-AS and Inter-AS routing Gateways: •perform inter-AS routing among themselves •perform intra-AS routers with other routers in their AS inter-AS, intra-AS routing in gateway A.c network layer link layer physical layer a b b a a C A B d A.a A.c C.b B.a c b c

Upload: cristian-ramos

Post on 16-Jan-2016

212 views

Category:

Documents


0 download

DESCRIPTION

redes

TRANSCRIPT

Page 1: DocumentAs

Intra-AS and Inter-AS routingGateways:

•perform inter-AS routing among themselves•perform intra-AS routers with other routers in their AS

inter-AS, intra-AS routing in

gateway A.c

network layerlink layer

physical layer

a

b

b

aaC

A

Bd

A.aA.c

C.bB.a

cb

c

Page 2: DocumentAs

Intra-AS and Inter-AS routing

Host h2

a

b

b

aaC

A

Bd c

A.aA.c

C.bB.a

cb

Hosth1

Intra-AS routingwithin AS A

Inter-ASrouting

between A and B

Intra-AS routingwithin AS B

Page 3: DocumentAs

Internet Structure

Today

Backbone service provider

Peeringpoint

Peeringpoint

Large corporation

Large corporation

Smallcorporation

“Consumer” ISP

“Consumer” ISP

“Consumer” ISP

local traffic: traffic that originates at or terminates on nodes within the autonomous system;transit traffic: traffic that passes through an AS

Page 4: DocumentAs

EGP: Exterior Gateway Protocol• Overview

– designed for tree-structured Internet– concerned with reachability, not optimal routes

• Protocol messages– neighbor acquisition: one router requests that another

be its peer; peers exchange reachability information– neighbor reachability: one router periodically tests if

the another is still reachable; exchange HELLO/ACK messages; uses a k-out-of-n rule

– routing updates: peers periodically exchange their routing tables (distance-vector)

Page 5: DocumentAs

BGP-4: Border Gateway Protocol

• AS Types– stub AS: has a single connection to one other AS

• carries local traffic only– multihomed AS: has connections to more than one AS

• refuses to carry transit traffic– transit AS: has connections to more than one AS

• carries both transit and local traffic

Page 6: DocumentAs

Why interdomain routing is an hard problem

• Scalability problem: an Internet backbone router must be able to forward any packet destined anywhere in the Internet. CIDR has helped to control the number of distinct prefixes but they are of the order of 105

• Autonomous nature of the domains. Each domain may run its own interior routing protocols and can uses any scheme to assign metrics to paths

• Interdomain routing advertises only “reachability”• Issue of trust: provider A migth be unwilling to

believe certain advertisements from provider B for fear that provider B will advertise erroneous routing information.

Page 7: DocumentAs

The issue of policies

• In interdomain routing there is the need to support very flexible policies.

Examples• Use provider B only to reach these addresses• Use the path that crosses the fewest number of ASs• Use AS x in preference of AS y

Page 8: DocumentAs

1

Border Routers and BGP Speakers

•Each AS has:– one or more border routers– one BGP speaker (not necessary a border

router) that advertises:• local networks• other reachable networks (transit AS only)• gives path information

Page 9: DocumentAs

BGP and border router

R1 R3

R2

R4

R5 R6

Autonomous System 1

Autonomous System 2

Border Router

Page 10: DocumentAs

Complete path advertisements

•BGP does not belong to either of the two main classes of routing protocols (distance-vector and link-state protocols)

•Unlike these protocols BGP advertises complete paths as an enumerated list of ASs to reach a particular network.

•This is also necessary to enable policy decisions• It also enable routing loops to be readily detected

Page 11: DocumentAs

BGP Example• Speaker for AS2 advertises reachability to P and Q

– network 128.96, 192.4.153, 192.4.32, and 192.4.3, can be reacheddirectly from AS2

• Speaker for backbone advertises– networks 128.96, 192.4.153, 192.4.32, and 192.4.3 can be reached

along the path (AS1, AS2).• Speaker can cancel previously advertised paths

Backbone network(AS 1)

Regional provider A(AS 2)

Regional provider B(AS 3)

Customer P(AS 4)

Customer Q(AS 5)

Customer R(AS 6)

Customer S(AS 7)

128.96192.4.153

192.4.32192.4.3

192.12.69

192.4.54192.4.23transit networks

stub networks

networks 192.12.69, 192.4.54, 192.4.23 can be reached along the path (AS1, AS3).

Page 12: DocumentAs

MultiProtocol Label Switching

Combine some of the properties of Virtual Circuits with the flexibility and robusteness of Datagrams.It relies on IP addresses and IP routing protocols to do its job.

MPLS-enabled router forward packets by examining relatively short,fixed-length labels, and these labels have local scope, just like in a virtual circuit network.

Page 13: DocumentAs

MPLS: what is it good for?

To enable IP capabilities on devices that do not have the capability to forward IP datagrams in the normal mannerTo forward IP packets along “explicit routes” that do not necessarily match those that normal IP routing protocol would selectTo support certain types of virtual private network servicesTo improve performance

Page 14: DocumentAs

Destination-based forwarding

Prefix Interface10.1.1 0 10.3.3 0

Prefix Interface 10.1.1 1 10.3.3 0

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

For sake of simplicity /24 is omitted in the pictures

Page 15: DocumentAs

Prefix Interface10.1.1 0 10.3.3 0

Label Prefix Interface

15 10.1.1 1 16 10.3.3 0 …

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

When MPLS is enabled on a router the router allocates a label for each prefix in its routing table and advertise both the label and the predix that it represent to its neighboring routers.The advertisement is carried in the “Label Distribution Protocol”

Label=15, Prefix=10.1.1

Label=16, Prefix=10.3.3

The labels can be chosen at the convenience of the allocating router

Advertise the label and

their bindings

“Please attach the label 15 to all packets sent to me that are destined to prefix 10.1.1”

Page 16: DocumentAs

Label Prefix Interface

15 10.1.1 1 16 10.3.3 0 …

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

Advertising labels

Prefix Interface Remote Label

10.1.1 0 15 10.3.3 0 16

Outgoing Label

Page 17: DocumentAs

Label Prefix Interface Remote Label

15 10.1.1 1 24 16 10.3.3 0 …

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

Advertising labels

Prefix Interface Remote Label

10.1.1 0 15 10.3.3 0 16

Outgoing Label

Label=24, Prefix=10.1.1

Outgoing Label

Page 18: DocumentAs

Label Prefix Interface Remote Label

15 10.1.1 1 24 16 10.3.3 0 …

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

Label switching

Prefix Interface Remote Label

10.1.1 0 15 10.3.3 0 16

INFO IP Dest 10.1.1.5

INFO IP Dest 10.1.1.5 15

LERLabel Edge Router

Page 19: DocumentAs

Label Prefix Interface Remote Label

15 10.1.1 1 24 16 10.3.3 0 …

0

0

1R1 R2

R3

R4

10.1.1/24

10.3.3/24

Label swapping

Prefix Interface Remote Label

10.1.1 0 15 10.3.3 0 16

LERLabel Edge Router

INFO IP Dest 10.1.1.5

INFO IP Dest 10.1.1.5 24

There is no need to examine theIP header* at router R2:

exact Match using labels

* IP addresses are always of the same length but IP prefixes are of variable length and the IP dest. addr. look-up algorithm needs to find the longest match

Page 20: DocumentAs

MPLS is a forwarding paradigm

Note that while the forwarding algorithm has changed from longest match to exact match the routing algorithm can be any standard IP routing algorithm (such as the one implemented in OSPF) . The chosen path would be the same.

The major effect of changing the forwarding algorithm is that devices that normally don’t know how to forward IP packets can be used in an MPLS network.

In this way ATM switches equipped by MPLS software can become Label Switching Routers (LSR)

Page 21: DocumentAs

How to insert or use labels

VPI PT CLP HEC

5 ByteATM Header

Format VCI

Label LabelOption 1Option 2 Combined Label

Option 3 LabelATM VPI (Tunnel)

DLCI C/R

EA DLCI FE

CNBECN

DE

EA

Q.922Header

Generic Encap.(PPP/LAN Format) Layer 3 Header and Packet

DLCI Size = 10, 17, 23 Bits

ATM:just use VPI/VCI

as labels

Frame Relay

Page 22: DocumentAs

PPP & LAN 802.3

How to insert a label:the shim header

Label: Label Value, 20 bit (0-16 reserved)0: IPv4 explicit null1: Router alert2: IPv6 explicit null3: Implicit null

Exp.: Experimental, 3 bit (Class of Service nel Tag Switching)S: Bottom of Stack, 1 bit (1 = last entry in label stack)TTL: Time to Live, 8 bit legato al TTL di IP

Layer 2 Header(PPP, 802.3)

•••Network Layer Header

and Info (IP or L3)

MPLS ‘Shim’ Headers (1-n)1n

Label Exp. S TTL

4 Byte

Label StackEntry Format

Page 23: DocumentAs

Overlay networks

ATM Backbone

IPBackbone

Five routing adjacencies

R1

R2

R3 R4

R5

R6

Page 24: DocumentAs

L2L2

L2 L2

L2 L2

Il routing L2 (ATM o FR) implementa l’ingegneria del

trafficoA livello L3 si vedono solo collegamenti diretti tra

router

L3 L3

L3 L3

L3L3

Svantaggi:

• costo maggiore

• network management non integrato tra i due livelli

• impossibilità di routing esplicito

Overlay networks

Page 25: DocumentAs

27©

Peer-to-peer networking

IPBackbone

Five routing adjacencies

R1

R2

R3 R4

R5

R6LSR1 LSR2

LSR3

Page 26: DocumentAs

9

R1

R3

R2

Explicit Routing

IP routing is destination-based; IP has a source routing option but limited in number of hops and processed outside the “fast path” on most routers

FISH PICTURE

R6R7

R4 R5

R8

Page 27: DocumentAs

Explicit Routing

How do all the routers in the network agree on what labels to use and how to forward packets with particular labels? A new mechanism is needed. It turns out that the protocol used for this task is the Resource Reservation Protocol (RSVP).It is possible to send an RSVP message along an explicitly specified path (e.g. R1-R3-R6-R7-R8) and use it to set up label forwarding entries all along that path.This is very similar to the process related to the opening packet which establish a virtual circuitOn of the application of explicit routing is “traffic engineering”which refers to the task of ensuring that sufficient resources are available in a network to meet the demands placed on it.Fast reroute is another relevant application of explicit routing. There are a range of algorithms that routers can use to calculate explicit route automatically. The most common is CSPF (Constrained Stortest Path First)

Page 28: DocumentAs

Virtual Private Networks and Tunnels

Head TailR1

R2 R3

R4

ATM Cells arrive

Tunneled dataarrives at tail

ATM Cells sent

Pseudowire emulation

Tunnel header consist of an MPLS header rather than an IP header

Page 29: DocumentAs

Virtual Private Networks and Tunnels

Head TailR1

R2 R3

R4

1. ATM Cells arrive

Tunneled dataarrives at tail

6. ATM Cells sent

Pseudowire emulationLabels can be stacked

101 INFO

101 INFODL

101 INFODLTL

2. Demux Label added

3. Tunnel Label added

101 INFODLTL

4. Packet is forwarded to tail

5. Demux Label examined101 INFODL

202 INFO

Page 30: DocumentAs

33©

L3 VPN

Provider Network

VPN A / Site 1

VPN A / Site 2

VPN A / Site 3

VPN B / Site 1VPN B / Site 2

VPN B / Site 3

Virtually private networks

Page 31: DocumentAs

Optical

ATM

IP/MPLS

lower complexity in control & management planes time

Optical

SDH

ATM

IP

Optical

SDH

IP/MPLS

Optical

IP/GMPLS

L2L2

L2 L2

L2 L2

L3 L3

L3 L3

L3L3

OVERLAY MODEL

PEER to PEER MODEL

L2L2

L2 L2

L2 L2

L3 L3

L3 L3

L3L3

Architectural Evolution

L3 Total mesh