Posts

Showing posts with the label MPLS

MPLS VPN - Route Target Rewrite

Image
Prerequisites for MPLS VPN - Route Target Rewrite The MPLS VPN - Route Target Rewrite feature requires the following: • You should know how to configure Multiprotocol Virtual Private Networks (MPLS VPNs). • You need to configure your network to support interautonomous systems (Inter-AS) with different route target (RT) values in each autonomous system (AS). • You need to identify the RT replacement policy and target router for each AS. Route Target Replacement Policy Routing policies for a peer include all configurations that may impact inbound or outbound routing table updates. The MPLS VPN - Route Target Rewrite feature can influence routing table updates by allowing the replacement of route targets on inbound and outbound BGP updates. Route targets are carried as extended community attributes in BGP Virtual Private Network IP Version 4 (VPNv4) updates. Route target extended community attributes are used to identify a set of sites and VPN routing/forwarding instanc...

MPLS Traffic Engineering - DiffServ Aware (DS-TE)

Image
MPLS Traffic Engineering - DiffServ Aware (DS-TE) Background and Overview MPLS traffic engineering allows constraint-based routing (CBR) of IP traffic. One of the constraints satisfied by CBR is the availability of required bandwidth over a selected path. DiffServ-aware Traffic Engineering extends MPLS traffic engineering to enable you to perform constraint-based routing of "guaranteed" traffic, which satisfies a more restrictive bandwidth constraint than that satisfied by CBR for regular traffic. The more restrictive bandwidth is termed a  sub-pool , while the regular TE tunnel bandwidth is called the  global pool . (The sub-pool is a portion of the global pool. In the new IETF-Standard, the global pool is called BC0 and the sub-pool is called BC1. These are two of an eventually available eight Class Types). This ability to satisfy a more restrictive bandwidth constraint translates into an ability to achieve higher Quality of Service performance in terms of delay, jitter, ...

Inter-AS MPLS VPN Options

Image

How to enable MPLS Accouting with Netflow Feature?

如果要讓Netflow支援MPLS這種比較進階的traffic flow,就必須使用version 9。 建議各位可以參考以下幾份文章: MPLS Egress NetFlow Accounting http://ciscosystems.com/en/US/docs/ios/12_0st/12_0st10/feature/guide/egress.html Configuring MPLS Egress NetFlow Accounting http://www.cisco.com/en/US/docs/ios/12_4/netflow/configuration/guide/onf_dmeg.html MPLS-aware NetFlow http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/fsmnf24.html Configuring MPLS-aware NetFlow http://www.cisco.com/en/US/docs/ios/12_4/netflow/configuration/guide/onf_dmnf.html 假設現在題目要求在Serial 0/0介面上進行MPLS Label Accounting,同時要將資料輸出到100.1.1.1 Port 1001這台Netflow Server: interface Serial0/0 ip route-cache flow mpls netflow egress ! ip flow-export version 9 ip flow-export destination 100.1.1.1 1001 ip flow-cache mpls label-positions

MPLS L2 VPN - Any to Any Interworking

The L2 VPN Interworking feature supports Ethernet, 802.1Q(VLAN), Frame Relay, ATM AAL5, and PPP attachment circuits over MPLS. The L2 VPN Interworking function is implemented in two modes. Bridged Interworking Mode In bridged interworking mode, Ethernet frames are extracted from the AC and sent over the pseudo wire. AC frames that are not Ethernet are dropped. In the case of a VLAN, the VLAN tag is removed, leaving an untagged Ethernet frame. This interworking functionality is implemented by configuring the interworking ethernet command under the pseudo-wire class configuration mode. Roted Interworking Mode In routed interworking, IP packets are extracted from the AC and sent over the pseudo wire. AC frames are dropped if they do not contain the IPv4 packets. This interworking functionality is implemented by configuring the interworking ip command under the pseudo-wire class configuration mode. Configuring Layer 2 VPN Interworking Ethernet to VLAN Interworking CE1: interface ethernet...

Multicast in MPLS Backbone Case Study

假設R1(PE)-R2(PE)-R3(P)-R4(PE)為MPLS Backbone AS200的Backbone Routers;R5(CE to R4),R6(CE to R1),R7(C),R8(C)屬於AS100 CE Routers;R9(to R2)屬於AS9 CE Router。 Step 1. 設定AS200中R1,R2,R3,R4啟用multicast,提供MDT transit給MPLS VPN客戶,將不使用shared multicast tree,PIM join將永遠是(S,G)的形式。 R1: ip multicast-routing ip pim ssm default ! interface S0/0 ! Connect to R2(PE) ip pim sparse-mode R2: ip multicast-routing ip pim ssm default ! interface S0/0 ! Connect to R1(PE) ip pim sparse-mode ! interface S0/1 ! Connect to R3(PE) ip pim sparse-mode R3: ip multicast-routing ip pim ssm default ! interface S0/0 ! Connect to R2(PE) ip pim sparse-mode ! interface S0/1 ! Connect to R4(PE) ip pim sparse-mode R4: ip multicast-routing ip pim ssm default ! interface S0/0 ! Connect to R3(PE) ip pim sparse-mode Step 2. 設定AS100 R5,R6,R7,R8啟用multicast,在這些Router之間啟用PIMv2,R5宣告自己成為這些Routers的Rendezvous Point(RP)。 R5: ip multicast-routing ! interface Ethernet0/0 ! Connect to R4(PE) ip pim sparse-mode ! interface Ethernet0/1 ! Co...

MPLS LDP Access-List for QoS

在MPLS QoS相關的控制設定常常會要求讓MPLS LDP traffic調高priority or 保留頻寬,所以我把這個Sample ACL列出來給各位了解一下,其中比較特別是LDP會利用udp傳送至multicast ip 224.0.0.2(all routers)來flooding discovery,而且source port & destination port都是646;然後再用tcp port 646來建立LDP session: Router(config)#ip access-list extended LDP Router(config-ext-nacl)#permit udp any eq 646 host 224.0.0.2 eq 646 Router(config-ext-nacl)#permit tcp any any eq 646 Router(config-ext-nacl)#permit tcp any eq 646 any 另外還要特別注意LDP neighbor預設使用loopback interface當source interface,所以如果兩個Router之間設定了"mpls ldp discovery transport-address"指令的話,就會改用直連的interface當source interface,那麼在ACL上的設定就要特別留意。 比方說現在有兩個Router,R1,R2之間利用Ethernet直連建立MPLS LDP neighbor,但是我們希望沒有任何其他的Router可以加入,因此我們要設定一個ACL只允許R1,R2交換彼此之間的MPLS LDP。 R1 interface loopback 0 ip address 1.1.1.1 255.255.255.255 ! interface Ethernet0/0 ip address 10.1.1.1 255.255.255.0 mpls ldp discovery transport-address interface ip access-group LDP in ! ip access-list extended LDP permit udp host 10.1.1.2 eq 646 host 224.0....

Implementing the DiffServ Tunneling Models in Cisco IOS - Short Pipe Model

MPLS DiffServ Short Pipe Model Egress PE !!! Egress interace: ! class-map TOS match ip precedence 2 4 ! policy-map TOS_OUT_QOS class TOS bandwidth percent 40 random-detect precedence-based ! interface ethernet 0/0 service-policy output TOS_OUT_QOS

Implementing the DiffServ Tunneling Models in Cisco IOS - Pipe Model

MPLS DiffServ Pipe Model For the Pipe and Short Pipe DiffServ Model, however, the ingress PE can change the EXP bits according to the policy of the service provider. Egress PE !!! Ingress interface: ! class-map MPLS_EXP match mpls experimental topmost 2 4 ! policy-map EXP_IN_QOS_GROUP class MPLS_EXP set qos-group mpls experimental topmost ! interface ethernet 0/0 service-policy input EXP_IN_QOS_GROUP ! ! ! !!! Egress interface: ! class-map QOS_GROUP match qos-group 2 match qos-group 4 ! policy-map QOS_GROUP_OUT_QOS class QOS_GROUP bandwidth percent 40 random-detect ! interface ethernet 1/0 service-policy output QOS_GROUP_OUT_QOS

Implementing the DiffServ Tunneling Models in Cisco IOS - Uniform Model

MPLS DiffServ Uniform Model Ingree PE !!! Ingress interface: ! class-map IP_TOS match ip precedence 4 ! policy-map SET_MPLS_PHB class IP_TOS4 police cir 8000 conform-action set-mpls-exp-transmit 4 exceed-action set-mpls-exp-transmit 2 ! interface ethernet 0/0 service-policy input SET_MPLS_PHB ! ! ! !!! Egree interface: ! class-map MPLS_EXP match mpls experimental topmost 2 4 ! policy-map SET_QOS_OUT class MPLS_EXP bandwidth percent 40 random-detect ! interface ethernet 1/0 service-policy output SET_QOS_OUT For the Uniform model, you must copy the precedence bits to the EXP bits on the ingress PE. P Router !!! Ingree interface: ! ! Nothing needed because the EXP bits are copied to the swapped outgoing label by default. ! !!! Egress interface: ! class-map MPLS_EXP match mpls experimental topmost 2 4 ! policy-map SET_QOS_OUT class MPLS_EXP bandwidth percent 40 random-detect ! interface ethernet 0/0 service-policy output SET_QOS_OUT PHP P R...

Default MPLS QoS Behavior in Cisco IOS

In Cisco IOS, the default behavior when imposing one or more labels on an IP packets is to copy the precedence value to the EXP bits of all imposed labels. This is called TOS reflection, because nothing regarding QoS changes by default. MPLS QoS Rule: By default, in Cisco IOS, the precedence bits or the first three bits of the DSCP field in the IP header are copied to the EXP bits of all imposed labels at the ingress LSR. By default, in Cisco IOS, the EXP bits of the incoming top label are copied to the swapped outgoing label and to any label pushed onto that. By default, in Cisco IOS, the EXP bits of the incoming top label are not copied to the newly exposed label when the incoming label is poped. By default, in Cisco IOS, the EXP bits of the incoming top label are not copied to the precedence bits of DSCP bits when the label stack is removed and the IP header becomes exposed. When you change the EXP bits value through configuration, the value of the EXP bits in labels other than the ...

OSPF Sham-link in MPLS backbone

假設R1,R2都是MPLS PE Router,為了避免CE Router R3,R4走backdoor(直連interface),要強迫R3走MPLS backbone到達R4必須使用OSPF Sham-link feature,建立類似tunnel的通道來導引packet flow。有一個很重要的trick,那就是用來建立sham-link的loopback絕對不能在ospf LSDB中,必須要使用BGP來交換這個loopback interface的network。最好是另外再建立新的專屬loopback interface。最後將兩個CE之間的Backdoor OSPF cost調大,使之成為較差的路由。 R1 R1(config)#int loopback 99 R1(config-if)#ip vrf forwarding VRFA R1(config-if)#ip address 1.1.1.1 255.255.255.255 R1(config)#router bgp 100 R1(config-router)#address-family ipv4 vrf VRFA R1(config-router-af)#redistribute connected metric 1 R1(config-router-af)#router ospf 100 vrf VRFA R1(config-router)#area 51 sham-link 1.1.1.1 2.2.2.2 R2(PE) R2(config)#int loopback 99 R2(config-if)#ip vrf forwarding VRFA R2(config-if)#ip address 2.2.2.2 255.255.255.255 R2(config)#router bgp 100 R2(config-router)#address-family ipv4 vrf VRFA R2(config-router-af)#redistribute connected metric 1 R2(config-router-af)#router ospf 100 vrf VRFA R2(config-router)#area 51 sham-link 2.2.2.2 1.1.1.1 R3(CE...

BGP ver 3.2 & MPLS ver 2.2正式課程中沒有告訴你的事(BGP RR Groups)

BGP RR Group - 用於BGP RR(Route Reflector)上設定inbound route-targer filter,透過"bgp rr-group"這個指令來設置。這個指令執行跟route-map相同的功能。不過,這個指令是設置於BGP Process之下而且會影響所有的BGP neighbors。同時。另外一個重要的運作細節是在RR上設置的extended community access-list會被當成是outbound filter透過ORF功能傳遞給PE Router。Route-map的input filter無法透過ORF功能來下載。 Route-Partitioning設置步驟如下: 1. 假設CE1-PE1-P1-P2-PE2-CE2這樣的網路架構,我們使用P1, P2當RR,先在P1, P2上設置extended-community access-list P1(config)#ip extcommunity-list standard VPNA  P1(config-extcomm-list)#permit rt 1:100  P2(config)ip extcommunity-list standard VPNB  P2(config-extcomm-list)#permit rt 1:200  2.設置route-target inbound filter,在RRs上BGP process之下設定"bgp rr-group"指令 P1(config)#router bgp 1  P1(config-router)#address-family vpnv4  P1(config-router-af)#bgp rr-group VPNA  P2(config)#router bgp 1  P2(config-router)#address-family vpnv4  P2(config-router-af)#bgp rr-group VPNB  以上是所謂的Route Partitioning的設置範例,不過這比較適用於大型ISP為了讓RR的loading減輕所使用的方式,個人不建議在...

MPLS ver 2.2 中沒有告訴你的事(OSPF Superbackbone - OSPF domain ID)

Image
最近實在覺得沒有好好準備SP CCIE,有點良心過意不去,所以很認真的跑到天瓏去買了幾本MPLS相關書籍(原文書一定要這麼貴嗎?…),其中一本MPLS Configuration on Cisco IOS Software是一本相當不錯的書籍,難怪Class on Demand中強烈建議要先看這一本書。到現在只看完了100多頁,但是補充了很多現在MPLS正式教材中沒有提到的Cell-Mode MPLS的觀念及許多Slide不會提及的詳細show configuration。前面幾章的內容可以說是MPLS正式課程的精華節錄,如果有上過課的同學會很容易吸收了解,甚至更加地清楚每一個路由在不同Router上的相關資訊及變化,我想這是正式教材中所缺乏的,因此如果對正式教材的內容感覺不夠踏實的話,Cisco Press會是解答心中疑惑最好的方向。(Internet Google大神雖然很強,不過鮮少有人會整理地像Cisco Press這麼地的詳盡及圖文並茂,P2P E-Books則另當別論…個人還是喜歡直接看實體的書本) 其中一個非常重要的觀念,竟然在正式的課程中沒有特別提及的那就是OSPF Domain ID的概念,為了讓各位對OSPF Superbackbone有更進一步的了解,所以我把重點摘錄如下 - 在MPLS VPN Superbackbone中,BGP extended attributes會帶著以下屬性: OSPF Route Type - 承載OSPF路由類型資訊通過MP-iBGP backbone OSPF Router ID - 辨識相關VRF OSPF instance中的PE Router ID OSPF Domain ID - 辨識MPLS VPN Backbone中特定OSPF prefix的Domain ID。 預設,這個數值會等同於VRF中的OSPF Process ID,不過Domain ID可以被OSPF Process之下的這個指令"domain ID x.x.x.x"強制置換。如果在接收端PE上的Domain ID跟路由資訊中所攜帶的Domain ID不同,這筆路由會被轉換成外部OSPF路由(LSA Type 5,Metric-Type E2),不論原來的LSA Type為何。 ...

Enabling Tag Switching on the ATM Interface

Image
Note:Configure all parallel interfaces between ATM switch routers for either IP unnumbered or with a specific IP address. Unnumbering some parallel interfaces and assigning specific IP addresses to others might cause TDP sessions to restart on some parallel interfaces when another parallel interface is shut down. Therefore, we highly recommend that you unnumber all parallel interfaces to loopback. To enable tag switching on the ATM interface, perform the following steps, beginning in global configuration mode: 1. interface atm card/subcard/port 2. ip unnumbered type number or ip address ip-address mask 3. tag-switching ip Examples In the following example, ATM interface 1/0/1 is configured for IP unnumbered to loopback interface 0: Switch(config-if)# interface atm 1/0/1 Switch(config-if)# ip unnumbered loopback 0 Switch(config-if)# tag-switching ip Switch(config-if)# exit In the following example, ATM interface 0/0/3 is configured with a specific IP address and subnet mask (1.3.11.3 2...

L2F(Layer 2 Forwarding) vs L2TP(Layer TunnelingProtocol)

1996年,Cisco提出L2F(Layer 2 Forwarding)隧道協議,它也支持多協議,但其主要用Cisco的路由器和撥號訪問服務器。1997年底,Micorosoft和Cisco公司把PPTP協議和L2F協議的優點結合在一起,形成了L2TP協議。 L2TP是經由Cisco的L2F(Layer Two Forwarding)和Microsoft的PPTP合作並在IETF的規範下發展而成。利用PPP支援Multi-Protocol的特性,間接使L2TP支援多重通訊協定如IP、IPX、NetBUIT...等。L2TP的傳輸介面為UDP封包、與下層介面無關。實質傳輸介面(Physical Layer)的改變,只要不影響UDP封包傳輸,並不會影響L2TP封包的運送。透過L2TP所啟動的PPP,加上NCP協調的動作可依使用者的需要彈性設計私有網路的節點或特殊節點。兩端點之間之同一撥接連線(Connection),可提供多人使用,其間以不同Call ID分別。透過Internet來傳遞PPP以取代傳統電話連線(PSTN)長途撥接的高額成本。 L2TP的運作模式: 1. 遠端使用者先和ISP端建立普通的PPP連線。 2. 遠端使用者透過ISP和遠端L2TP Server進行協調。 3. 遠端使用者透過ISP和遠端L2TP Server建立自願性通道。

PPTP(Point-to-Point Tunneling Protocol)

PPTP是由Microsoft、3COM、U.S. Robotics、Ascend、ECI等企業所聯合發展。由於Microsoft的全力支援,在Windows的作業系統中都內建PPTP,加上Windows Play form的熱賣對於撥接方面的市場有相當大的市場影響力。PPTP支援Multi-Protocol因此可等說是它相當大的優點如IP、IPX、NetBEUI、AppleTalk。 PPTP的傳輸介面為IP封包、與下層介面無關。實質傳輸介面(Physical Layer)的改變,只要不影響IP封包傳輸,並不會影響PPTP封包的運送。透過PPTP所啟動的PPP,加上NCP協調的動作可依使用者的需要彈性設計私有網路的節點或特殊節點。兩端點之間之同一通道(Tunneling),可提供多人使用,其間以不同Call ID分別。透過Internet來傳遞PPP以取代傳統電話連線(PSTN)長途撥接的高額成本。 PPTP的運作模式: 1. PPTP Tunneling建立的方式有Client-initiated經由客戶端撥接至ISP,並和ISP,再由客戶端啟動PPTP的Session和欲建立的另一端PPTP Server建立通道。 2. ISP-initiated客戶端和ISP的Access Server建立PPP連線後,經由ISP的Access Server和目的端PPTP Server建立通道,客戶端不需安裝PPTP Client完全由ISP-PPTP-enable。 3. LAN-to-LAN tunneling在PPTP Server兩端建立PPTP tunneling,如在NT Server上加裝Microsoft的Routing and Remote Access Service(R&RAS)。

CBR(Constraint Based Routing)

In general, path computation for an LSP may seek to satisfy a set of requirements associated with the LSP, taking into account a set of constraints imposed by administrative policies and the prevailing state of the network -- which usually relates to topology data and resource availability. Computation of an engineered path that satisfies an arbitrary set of constraints is referred to as "constraint based routing". Draft-li-mpls-igp-te-00.txt

Ethernet over MPLS(EoMPLS)

都會區乙太網路近來發生最重要的技術創新,就是符合乙太網路規格的多協定標籤交換技術(Ethernet-over-MPLS;EoMPLS)。如同名稱所指,EoMPLS將乙太網路訊框密封進一條多協定標籤交換(MultiProtocol Label Switching;MPLS)路徑中,讓MPLS核心網路可以直接傳輸原有乙太網路訊框(Native Ethernet Frames)。EoMPLS最初定義是出現在一份送到國際電機電子工程協會網際網路工程專案小組(Internet engineering Task Force;IETF)的RFC初稿(俗稱Martini Draft),並定義為點對點式原有乙太網路訊框傳輸的模式。 支援EoMPLS功能的網路元件先天上價格就高於僅使用傳統乙太網路交換技術的網路元件,因此和完全使用802.1Q技術的都會區乙太網路相比,要使用EoMPLS技術的都會區乙太網路延伸到服務存取設備上時,會需要更龐大的成本投資,不過這份增加的成本支出可由EoMPLS技術在網路擴充性和互通性上的好處來彌補。此外,標準MPLS功能包括標籤分類協定(Label Distribution Protocol;LDP)和MPLS訊務工程(Traffic Engineering),能讓服務的提供和管理變得更有效率,並具有降低網路營運成本的空間,且至少能限制服務網路擴增時成本增加的上升速度。 而由於EoMPLS是設計在MPLS核心網路中傳送原有乙太網路訊框,所以可利用MPLS的服務品質(QoS)和訊務工程方面之功能,其所提供的服務等級協議(SLA)至少和現有Frame Relay之協議是相同水平。如果使用MPLS的欄位來區別各個服務等級(COS)如分封語音,EoMPLS也具有提供更好服務等級協議的能力。 另外,如先前提過的,定義在IETF RFC初稿中的EoMPLS功能基本上是點對點式Layer 2服務,這份初稿是希望能為都會區乙太網路存取服務定義,其採用類似現有終端用戶在使用Frame Relay服務時的網路架構。EoMPLS和Frame Relay服務的差別在於,都會區乙太網路存取服務讓終端用戶可使用乙太網路介面連接服務網路,或許還提供比Frame Relay更彈性的頻寬使用選擇;當然,如同Frame Relay一樣,EoMPLS也支援多連線(Multi-link)功能,所...

FEC(Forwarding Equivalence Class)

…(略) MPLS 徹底改變了網際網路的網路建置及管理方式,它將網際網路協定 (IP) 納為原生的資料單元。在網路邊緣,MPLS 路由器的閘道介面模組負責連結 (及聚合) 傳統網路,這通常涵蓋了各種乙太網路、訊框傳送、SONET,當然,還包括 ATM。但是在網路核心,原生的 IP 封包則以一種叫做 FEC 的容器 (container) 傳送。每個 FEC (Forwarding Equivalence Class, 相同轉送類別) 載送指定的 IP 封包類型 (其類型由網路管理員或最終用戶定義),同時,MPLS 網路則根據網路應用的要求,而非網路的特定現狀,路由和轉送這些 FEC。映射到 FEC 的封包都被分配到一個固定長度數值的標籤 (label),並根據這些標籤轉送和路由 FEC。 在 MPLS 網路,FEC 被路由到虛擬資料路徑中,此路徑叫標籤交換路徑 (LSP)。LSP 取代了 ATM PVC 的永久性,可以動態修改。當網路發生擁塞或故障時,MPLS 立即利用快速重路由功能 (Fast Re-route, FRR),將 FEC (及其 IP 封包) 送到替代路徑。LSP 也可以根據網路應用的需求彈性調整,針對即時性網路應用「保留」頻寬並保障品質。這種 MPLS 流量工程 (MPLS-Traffic Engineering, MPLS-TE) 確保了端到端的服務品質 (QoS),在 MPLS 出現之前,這是不可能實現的。 (略)... 資料摘錄自 MPLS — 通向未來的新途徑 作者:游源濱,Juniper 網路公司香港/台灣區技術總監 http://tw.juniper.net/company/presscenter/features/2005/0205.html