PERN2 LOW LEVEL DESIGN (Routing Implementation)

61
PERN2 LOW LEVEL DESIGN (Routing Implementation) By: Jawad Raza Manager Network & Operations [email protected] Friday 30 th August,2013

description

PERN2 LOW LEVEL DESIGN (Routing Implementation). By: Jawad Raza Manager Network & Operations [email protected]. Friday 30 th August,2013. NUST H-12. Arid. IIU. NUML. NDU. NUST,RWP. BU. FAST. AIOU. IST. PUUST. FJWU. NCP. AUP. AU. CIIT. PU. IMS. QAU. PIES. UET. GU. - PowerPoint PPT Presentation

Transcript of PERN2 LOW LEVEL DESIGN (Routing Implementation)

Page 1: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

PERN2 LOW LEVEL DESIGN

(Routing Implementation)By:Jawad RazaManager Network & [email protected]

Friday 30th August,2013

Page 2: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

HEC(khi)

Legend10G Link1G Link

BUITMS(QTA)

USINDH(HYD)

BZU(MLT)

GCUL Uop-OLDKCW

LCWUNCA

PASCUETUVAS

PU-NEW NCOEIMB

FASTUHS

VU

HEC(lhr)

LSELUMS

UOEUOGSUUOAGCU

FAST

CPSP

PNA

KUHU

IBANED

SSUETHEJ

AKUDUHS

UET,KhuzdarLU

QeAMUET

LUMHS SALUSAU

IBA

UOB

CSC

SBKWU

AUPIMS

PU

UETGU

KUUOMCoAE

GIK HU

PMAHEC(Pesh)

IU(BWP)

HEC(ISB)

PUUSTAIOU

NUMLFAST

IIUArid NUST H-12

BU

AU

FJWU

QAU

NDU NUST,RWP

IST

NCPCIIT

PIES

AUF(FSD)

High Level Design

Page 3: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Topology Design

Page 4: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Planning

Page 5: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Core layer

• Level-1: • Three (3) cRA-PoP

routers, located at the major cities of Pakistan

• • Level-2:

• Five (5) sRA-PoP routers, located at the small cities

• Level-3:• Seven (7) LA-PoP router,

to cover the metro cities

InternetServiceProvider

User-B

User-ACampus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

NRENs LinkTEIN3 Network

User-C

Stanford University,

Page 6: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Core layer

1. Level-1: 1. Three (3) cRA-PoP

routers, located at the major cities of Pakistan

2. Level-2:

1. Five (5) sRA-PoP routers, located at the small cities

3. Level-3:1. Seven (7) LA-PoP router,

to cover the metro cities

InternetServiceProvider

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

NRENs LinkTEIN3 Network

Page 7: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Traffic Categories

• A – Internet traffic:• IP Transit Connectivity

• • B – Intranet traffic:

• Connectivity among the PERN2 Campuses

• Intranet Bandwidth should be Separate from Internet Bandwidth

• C – International NREN (R&D) traffic

• For the R&D traffic Bandwidth must be separate from Intranet and Internet

InternetServiceProvider

NRENs ConnectivityTEIN3 Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Stanford (USA)

Page 8: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Routing Basics

Page 9: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

IPv4 Addressing Routing & Forwarding Routing Protocols

◦ IGPs◦ EGP

Routing Basic

Page 10: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

What does the router do?

Find path & forward packet…… if primary path is not available find alternate path….

Router

?

Page 11: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Routing:◦ Selection of Path in the networks along with which to send network traffic

Forwarding:◦ Moving packets between interfaces according to the “directions”

Routing vs Forwarding

Page 12: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Path derived from information received from a routing protocol Several alternative paths may exist best next hop stored in forwarding table Decisions are updated periodically or as topology changes (event driven) Decisions are based on:

◦ Topology, policies and metrics (hop count, filtering, delay, bandwidth, etc.

IP Routing

Page 13: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Based on destination IP packets

IP Route

R1

R4

R3

R2

10/16 R4

20/8 R630/8 R5

40/8 R30

Packet Destination:10.1.1.1

10/16

40/8

Page 14: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

32 bits long address, ◦ Range from 1.0.0.0 to 223.255.255.255

Serves with two principal function i.e Network portion and Host Portion Address & Mask written as

◦ 192.168.1.1 255.255.255.0 or 192.168.1.1/24 Some of the IP addresses are reserved

◦ Private IP Addresses◦ Multicast IP Addresses

IPv4 Address

Page 15: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Interior Gateway Protocols ◦ within a single autonomous system

single network administration unique routing policy make best use of network resources

Exterior Gateway Protocols ◦ among different autonomous systems

independent administrative entities communication between independent network

infrastructures

Routing Protocols IGP & EGP

Page 16: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Collection of networks with same routing policy Single routing protocol Usually under single ownership, trust and administrative control Identified by a unique number

Autonomous System (AS)

AS 100

Page 17: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

IGP◦ RIP◦ IS-IS◦ OSPF

EGP◦ BGP

IGP & EGP Protocols

Page 18: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

PERN2 Selection of IGPs

Page 19: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGP

Single network administration

unique routing policy

Page 20: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGP

Single network administration

unique routing policy

EGP

Page 21: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGPs1. RIP2.

OSPF3. IS-IS

Page 22: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

RIP (Routing Information Protocol)

Page 23: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Routing Information Protocol◦ Two Versions of RIP

RIPv1 RIP v2

Distance Vector Routing Protocol

RIPng (Next Generation) design for IPv6 routing

What is RIP

Page 24: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Routers are advertised as vector of distance and direction.

Direction is represented by next hop address and exit interface.

Whereas Distance uses metrics such as hop count

Updates are performed periodically in a distance vector protocol where all router's routing table is sent to all its neighbors

The cost of reaching a destination is calculated using various route metrics, RIP uses hop count to calculate metric.

Distance Vector Routing

Page 25: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Hop count Limit to 15

RIP eats lots of bandwidth (all broadcast traffic) on large networks

RIP takes 30 – 60 seconds to converge

RIP in large ISP

Page 26: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGPs1. RIP2.

OSPF3. IS-IS

Page 27: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

OSPFOpen Shortest Path First

Page 28: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Most Widely used IGP routing protocol

Link State Protocol

Allow routers to dynamically learn routes from other routers and to advertise routes to other routers.

OSPF

Page 29: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

OSPF operation can be divided into three categories

OSPF Operations

Neighbor and Adjacency initialization

LSA Flooding

SPF Calculation

Page 30: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

In a link-state protocol, the network can be viewed as a jigsaw puzzle Each jigsaw piece holds one router

Each router creates a packet which represents its own jigsaw piece This packet is called a Link State Advertisement (LSA)

Link State Routing Protocol

LSP for router-B LSP for router-A

to A to B

to E to D

to C to E

to A to B

to A LSP for router E to B

to C to D

LSP for router-D LSP for router-C

Page 31: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

These packets are flooded everywhere

Therefore each router receives all pieces of the jigsaw puzzle

Each routers compute SPF algorithm to put the pieces together

Input: all jigsaw puzzle pieces Output: Area or network topology treeShortest Path Tree

All routers exchange all LSAsvia a reliable flooding mechanism Link

Page 32: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

OSPF Areas Area is a group of contiguous hosts and networks

Reduces routing traffic Per area topology database Backbone area MUST be contiguous

◦ All other areas must be connected to the backbone

Area 1Area 2

Area 3 Area 4

Area 0Backbone Area

R1R2

R3R4

R5 R6

R7 R8

R9

R10 R11

R12

Page 33: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Support Large Network

Fast Update and Convergence

Support VLSM

Dividing the whole routing domain into different areas

Support Authentication

OSPF Features

Page 34: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

OSPF for IPv6

Based on OSPFv2, with enhancements

Distributes IPv6 prefixes

Runs directly over IPv6

Ships-in-the-night with OSPFv2

OSPFv3

Page 35: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGPs1. RIP2.

OSPF3. IS-IS

Page 36: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

ISIS (Intermediate System to Intermediate System)

Page 37: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

IS an IGP (Interior Gateway Protocol) scalable only for dynamic routing within a domain

Link State Protocol

IS a dynamic routing protocol based on SPF routing algorithm

IS is “OSI speak” for router

Easily extendable for other routing protocolMainly IPv6

What is ISIS

Page 38: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

IS-IS has 2 levels of hierarchy◦ Level-1 (L1)

Neighbors only in the same AREA, and information about its own area

Hierarchy

L1 Adjacencies R1 R2

L1 L1

R3

L1

Page 39: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Embraced by the large tier1 ISPs. Proven to be a very stable and scalable, with

very fast convergence. Encodes the packet(s) in TLV format. Flexible protocol in terms of tuning and easily

extensible to new features (MPLS-TE etc). It runs directly over Layer 2. (next to IP).

Why IS-IS?

Page 40: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

User-A

User-B

Campus-A

Campus-B

Isb-PoP

Khi-PoP

Lhr-PoP

IGPs1. RIP2.

OSPF3. IS-IS

Page 41: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Similarities: OSPF and IS-IS are more similar than they are different.

Both are Link State Routing Protocol Both ISIS & OSPF Support Hierarchical Routing Both Support VLSM, CDIR, Authentication, Multiple Paths

ISIS & OSPF Similar Terminologies ◦ OSPFISIS

Host End System (ES) RouterIntermediate System (IS) Link Circuit Packet Protocol Data Unit (PDU Link-State Advertisement (LSA) Link-State PDU (LSP) Area Sub domain (area) Non-backbone area Level-1 area Backbone area Level-2 Sub domain (backbone) Area Border Router (ABR) L1L2 router

ISIS and OSPF

Page 42: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Difference:

ISIS over OSPF

ISIS OSPFGenerally supports a up to 1024 nodes in the same Area

Generally deployed with a much smaller number of nodes (less than 200).

SPF table not refresh periodically. OSPF does so after 30min.

Provide more extensibility , for example ISIS was given new TLVs to Support IPv6.TLVs can also be utilize to carry MPLS TE attributes (ISIS-TE)

OSPF was completely re-written to Support IPv6 (i.e OSPFv3)

ISIS group update into one packet and send them as one LSP, so to increase network efficiency

OSPF produce many LSAs

Page 43: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

C I S C O “Which IGP should an ISP choose?

◦ Both OSPF and ISIS use Dijkstra SPF algorithm◦ Exhibit same convergence properties◦ ISIS can runs on data link layer, OSPF runs on IP layer◦ Biggest ISPs tend to use ISIS◦ Main ISIS implementations more tuneable than equivalent OSPF

implementations “

ISIS over OSPF

Page 44: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

GEANT2 http://www.geant2.net/server/show/nav.1525 : “The IGP currently used in GÉANT is the ISO IGP IS-IS (Intermediate System to Intermediate System), which provides support for both IPv4 and IPv6”.

CANARIE http://www.canarie.ca/canet4/services/c4_routing_policy.pdf “The Intermediate System-to-Intermediate System (IS-IS) routing protocol is the IGP for CA*net 4, where a single IS-IS Level 2 area is defined. IS-IS was chosen over OSPF mainly for network migration considerations as well as for early release of advanced backbone network feature support by major routing vendors”.

Ufone Pakistan (Largest Telecomm Operator in Pakistan)

China Telecomm (An extra-large State-owned telecom operator in China) CMPaK (Telecomm Operator in Pakistan)

References

Page 45: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

IS-IS

Page 46: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

ISIS Cost (Core)

Legend10G Link(Optic Fiber)

PSH-HECISB-HEC

LHR-HEC

KHI-HEC

MLT-BZU

QTA-BUITMS

HYD-USINDH

10G Link(Long Haul Fiber)

FSD-AUF

IS-IS enable interface

10

10 10

10 10

10

10

10

10

1010

1010

10

1010

10

10

10

Page 47: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

ISIS Core layer

NE40E/80E (PE)

VOIP Service

NE20E (CPE)

Internet Service

VOD,IPTV, Streaming, etc.

International University Service, Webserver, Mailserver, etc.

One interlink ipNAT and one default route

pointing to NE20E

OSPF

• OSPF process Between PoP Router & Access router

• Under different Management

• Easier to Manage for a campus environment

OSPF Design (PoP & Access)

Page 48: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Page 48

GE Optic linkApplications topology (POP Site)

NE20E (CPE) MPLS Backbone

NE40E/80E (PE)

FE Electric link

Internet Service

VOIP Service

VOD,IPTV, Streaming, etc.

International University Service,Webserver, Mailserver, etc.

L2VPN Service

Subinterface10: enable ISIS/MPLS for L2VPNSubinterface20: Internet Subinterface30: NRENSubinterface40: Intranet

CPE:.

One interlink ipNAT and one default

route pointing to NE20E

NMS Servers &Clients.

Page 49: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

InternetServiceProvider

TEIN3Network

IS-IS BGP

OSPF

Page 50: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

BGP(Border Gateway Protocol)

Page 51: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

A Routing protocol used to exchange routing information between different Networks

The Autonomous System is BGP’s fundamental operating unit◦ It is used to uniquely identify networks with a

common routing policy

Border Gateway Protocol

Page 52: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Collection of networks with same routing policy Single routing protocol Usually under single ownership, trust and administrative control Identified by a unique number

Autonomous System (AS)

AS 100

Page 53: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Two ranges◦ 0-65535 (original 16-bit range)◦ 65536-4294967295 (32-bit range - RFC4893)

Usage:◦ 0 and 65535 (reserved)◦ 1-64495 (public Internet)◦ 64496-64511 (documentation - RFC5398)◦ 64512-65534 (private use only)◦ 23456 (represent 32-bit range in 16-bit world)◦ 65536-65551 (documentation - RFC5398)◦ 65552-4294967295 (public Internet)

ASNs are distributed by the Regional Internet Registries◦ They are also available from upstream ISPs who are members of one of the RIRs

The RIRs also have received 1024 32-bit ASNs each◦ Out of 190 allocations, around 50 are visible on the Internet◦ See www.iana.org/assignments/as-numbers

Autonomous Number System (ASN)

Page 54: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Multi-homing with BGP is a way to manage redundant links to multiple ISPs.

Maintaining links to multiple Internet provider (Usually 2 or 3) and using BGP to send routs and receive full routing tables from these providers

Multi-homing

ISP-2 ISP-1

Multi-homed Customer

AS 100

Route ReceivedPrefix announcement

Prefix announcement

Route Received

Page 55: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

EBGP & IBGP Implementation

ISP-2

ISP-1

PE

KHI-HEC-P-PE-EGRESS-NE80E

ISB-HEC-P-PE-EGRESS-NE80E

IBGPPEPE

PE

EBGP

EBGP

ISP-2

EBGP

ISP-1

EBGP

Page 56: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

PERN2 BGP DESIGN

eBGP p

eerin

g

ISP1ASN-1

ISP2ASN-2

eBGP peering Full R

outin

g fee

d Rece

ived

Full Routing feed Received

Router Receives Full routing table from both ISP’s, and store the best available routes reveries from both these ISPs,

Page 57: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

eBGP p

eerin

g

ISP1ASN-1

ISP2ASN-2

eBGP peering

PERN2 Prefixes

P1/24P2/24P3/24P4/24P5/24P6/24P7/24P8/24

Primary Prefixs

P1/24P2/24P3/24P4/24

Primary Prefixs

P5/24P6/24P7/24P8/24

Prepend Prefixs

P5/24 P6/24P7/24P8/24

Prepend Prefixs

P1/24P2/24P3/24P4/24

Prefix'

s Ann

ounce

ment Prefix's Announcement

BGP Policy routing has been applied, AS-PATH Prepend for the load balancing on Incoming traffic

Page 58: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

eBGP p

eerin

g

ISP1ASN-1

ISP2ASN-2

PERN2 Prefixes

P1/24P2/24P3/24P4/24P5/24P6/24P7/24P8/24

Primary Prefixs

P1/24P2/24P3/24P4/24

Primary Prefixs

P5/24P6/24P7/24P8/24

Prepend Prefixs

P5/24 P6/24P7/24P8/24

Prepend Prefixs

P1/24P2/24P3/24P4/24

Prefix'

s Ann

ounce

ment

In Case of One link failure, the prefix prepend traffic will be shifted to backup link.

Prepend Prefixs

P5/24 P6/24P7/24P8/24

In Case of Link Failure

eBGP peering

Prefix's Announcement

Page 59: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

eBGP is used to learn the Internet Routes and advertised PERN2 IP prefixes on Internet

iBGP then originate connected networks and also pass on prefixes learned from outside the ASN

ISIS has been used as an IGP Protocol on the core network of PERN2

OSPF has been used as an IGP protocol between the core and access network.

Conclusion

Page 60: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

Customer Relationship Management (CRM) Service Communicator◦ Generates Tickets◦ http://sc.hec.gov.pk◦ 24/7 Help Line also Available i.e

111-11PERN 051-9040PERN

◦ Complain also can log by email [email protected]

Page 61: PERN2 LOW LEVEL  DESIGN (Routing Implementation)

THANKS