Docsity

Understanding VPNs: Layer 2 vs. Layer 3, Anomaly Detection, and OD Flow Analysis, Study notes of Computer Science

Partial preview of the text

Download Understanding VPNs: Layer 2 vs. Layer 3, Anomaly Detection, and OD Flow Analysis and more Study notes Computer Science in PDF only on Docsity!

Traffic Anomaly Detection

Nick Feamster^ CS 7260 February 20, 2006

Administrivia^ •^

Problem Set 2 Due Friday • Quiz next Monday^ – Open everything (notes, Web, etc.)^ – Handful of reading questions^ – 1-2 “Design Questions” based on things we’velearned

Circuit Abstraction: Label Swapping

A^

1

(^23) A^2

D

Tag Out New

D

-^ Label-switched paths (LSPs):

Paths are “named” by

the label at the path’s entry point • At each hop, label determines:^ – Outgoing interface^ – New label to attach • Label distribution protocol:

responsible for

disseminating signalling information

Layer 3 Virtual Private Networks^ •^

Private communications over a public network • A set of sites that are allowed to communicate witheach other • Defined by a set of administrative policies^ – determine both connectivity and QoS among sites^ – established by VPN customers^ – One way to implement: BGP/MPLS VPNmechanisms (RFC 2547)

Layer 2 vs. Layer 3 VPNs^ •^

Layer 2 VPNs can carry traffic for many differentprotocols, whereas Layer 3 is “IP only” • More complicated to provision a Layer 2 VPN • Layer 3 VPNs: potentially more flexibility, fewerconfiguration headaches

Layer 3 BGP/MPLS VPNs^ VPN

A/ Site^

1

VPN^ A/

Site^^2^ VPN

A/ Site^

3 VPN^ B/

Site^^2

VPN^ B/

Site^^1

VPN^ B/

Site^^3

CEA

CEB

CEB2 CEA

CEA (^1) CEB (^2) CEB

PE^1

PE^2 PE

3

P^1

P^2 P^3

10.1/

10.2/

10.3/

10.1/

10.2/

10.4/

BGP to exchange routesMPLS to forward traffic

•^ Isolation:

Multiple logical networks over a

single, shared physical infrastructure • Tunneling:

Keeping routes out of the core

BGP/MPLS VPN key components^ •^

Forwarding in the core:

MPLS

•^ Distributing routes between PEs:

BGP

•^ Isolation:

Keeping different VPNs from routing

traffic over one another^ – Constrained distribution of routing information^ – Multiple “virtual” forwarding tables • Unique addresses:

VPN-IP4 Address extension

Layer 3 VPNs^ “Vanilla” Layer 3 VPNs: All customer routes in the core

CORE

Site 1^

Site 2^ IBGP^ EBGP

BGP/MPLS VPNs: BGP between PEs; MPLS in the core

MPLS CORE LDP^

LDP

PE^

PE

P^

P

Site 1^

Site 2

LDP

Virtual Routing and Forwarding^ •^

Separate tables per customer at each router

Customer 1

10.0.1.0/24RD: Green 10.0.1.0/24RD: Blue

Customer 1 Customer 2

Customer 2

Routing: Constraining Distribution^ •^

Performed by Service Provider using route filtering basedon BGP Extended Community attribute^ – BGP Community is attached by ingress PE route filteringbased on BGP Community is performed by egress PE

Site 1

Site 2^ Site 3

Static route,RIP, etc.

RD:10.0.1.0/24Route target: GreenNext-hop: A A

BGP

Forwarding^ •^

PE and P routers have BGP next-hop reachabilitythrough the backbone IGP• Labels are distributed through LDP (hop-by-hop)corresponding to BGP Next-Hops• Two-Label Stack

is used for packet forwarding

• Top label indicates Next-Hop (interior label)• Second level label indicates outgoing interface orVRF (exterior label)

IP Datagram Label^2 Label^1 Layer 2Header Corresponds to LSP ofBGP next-hop (PE)

Corresponds toVRF/interface at exit

Forwarding in BGP/MPLS VPNs^ •^

Step 1:

Packet arrives at incoming interface

– Site VRF determines BGP next-hop and Label

IP Datagram Label^2

•^ Step 2:

BGP next-hop lookup, add

corresponding LSP (also at site VRF)

IP Datagram Label^2 Label^1

Other Uses for MPLS/Tunneling^ •^

Reducing state in network core^ – Internal routers no longer need paths for everydestination • Traffic engineering^ – Can shift traffic based on

virtual circuits

, not just

destination prefixes

Open Research Questions^ •^

Static configuration analysis for enforcingisolation and other security policies^ – Easier, in some sense, since security (reachability)policies are likely easier to encode