MPLS_TE基本配置_2
MPLS实验--设备配置

MPLS实验--设备配置hxga-rt-1#sh runBuilding configuration...Current configuration : 8247 bytes!version 12.2service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname hxga-rt-1!enable secret 5 $1$TJPE$rfRAoWFHEgXux9NegxTe7/!voice-card 1!ip subnet-zero!!ip domain-name gong'!!ip vrf fyrd 100:3route-target export 100:3route-target import 100:3!ip vrf gard 100:1route-target export 100:1route-target import 100:1!ip vrf jcrd 100:4route-target export 100:4route-target import 100:4!ip vrf videord 100:2route-target export 100:2route-target import 100:2ip cef!!voice class codec 88codec preference 1 g729br8 bytes 50codec preference 3 g729r8 bytes 50codec preference 5 g723ar53codec preference 6 g723ar63 bytes 144codec preference 7 g723r53codec preference 8 g723r63 bytes 120!!!!!!fax interface-type fax-mailmta receive maximum-recipients 0!controller E1 0/0channel-group 0 timeslots 1-31description hxga to qhgat 2M!controller E1 0/1channel-group 0 timeslots 1-31description hxga to hxfy 2M!controller E1 0/2channel-group 0 timeslots 1-31description hxga to hxjc 2M!controller E1 1/0framing NO-CRC4ds0-group 0 timeslots 1-15 type r2-digital r2-compelled ani ds0-group 1 timeslots 17-31 type r2-digital r2-compelled ani cas-custom 0unused-abcd 0 1 1 1country china use-defaultsanswer-signal group-b 1cas-custom 1unused-abcd 0 1 1 1country china use-defaultsanswer-signal group-b 1!!!!interface Loopback0description hxga-rt-1-idip address 10.192.151.6 255.255.255.255h323-gateway voip interfaceh323-gateway voip id gong'an ipaddr 10.192.151.2 1719 h323-gateway voip h323-id hxga-rt-1h323-gateway voip tech-prefix 1#!interface FastEthernet0/0description hxga lanno ip addressduplex autospeed auto!interface FastEthernet0/0.2encapsulation dot1Q 2ip vrf forwarding gaip address 10.194.121.100 255.255.255.0!interface FastEthernet0/0.3description hxga videoencapsulation dot1Q 3ip vrf forwarding videoip address 10.192.2.65 255.255.255.240!interface Serial0/0:0ip address 10.192.16.22 255.255.255.252tag-switching ip!interface FastEthernet0/1no ip addressduplex autospeed auto!interface FastEthernet0/1.1encapsulation dot1Q 3ip address 10.194.237.9 255.255.255.252!interface FastEthernet0/1.2encapsulation dot1Q 2ip vrf forwarding gaip address 10.194.237.21 255.255.255.252 !interface Serial0/1:0no ip addressencapsulation frame-relay!interface Serial0/1:0.1 point-to-pointip address 10.194.237.1 255.255.255.252 frame-relay interface-dlci 23!interface Serial0/1:0.2 point-to-pointip vrf forwarding fyip address 10.194.237.13 255.255.255.252 frame-relay interface-dlci 24!interface Serial0/2:0no ip addressencapsulation frame-relay!interface Serial0/2:0.1 point-to-pointip address 10.194.237.5 255.255.255.252 tag-switching ipframe-relay interface-dlci 25!interface Serial0/2:0.2 point-to-pointip vrf forwarding jcip address 10.194.237.17 255.255.255.252 frame-relay interface-dlci 26!router ospf 1log-adjacency-changesnetwork 10.192.16.22 0.0.0.0 area 0 network 10.192.151.6 0.0.0.0 area 0 network 10.194.237.1 0.0.0.0 area 4 network 10.194.237.5 0.0.0.0 area 4 network 10.194.237.9 0.0.0.0 area 4!router ospf 2 vrf galog-adjacency-changesredistribute bgp 1 metric-type 1 subnets network 10.194.121.100 0.0.0.0 area 0 network 10.194.237.21 0.0.0.0 area 0!log-adjacency-changesredistribute bgp 1 metric-type 1 subnets network 10.194.237.13 0.0.0.0 area 0!router ospf 4 vrf jclog-adjacency-changesredistribute bgp 1 metric-type 1 subnets network 10.194.237.17 0.0.0.0 area 0!router ospf 5 vrf videolog-adjacency-changesredistribute bgp 1 metric-type 1 subnets network 10.192.2.65 0.0.0.0 area 0!router bgp 1no synchronizationbgp log-neighbor-changesneighbor 10.192.151.1 remote-as 1neighbor 10.192.151.1 update-source Loopback0 no auto-summary!address-family ipv4 vrf videoredistribute connectedno auto-summaryno synchronizationexit-address-family!address-family ipv4 vrf jcredistribute connectedredistribute ospf 4no auto-summaryno synchronizationexit-address-family!address-family ipv4 vrf garedistribute connectedredistribute ospf 2no auto-summaryno synchronizationexit-address-family!address-family ipv4 vrf fyredistribute connectedno auto-summaryno synchronizationexit-address-family!address-family vpnv4neighbor 10.192.151.1 activateneighbor 10.192.151.1 next-hop-self neighbor 10.192.151.1 send-community both no auto-summaryexit-address-family!ip classlessip http serverip pim bidir-enable!!!!call rsvp-sync!voice-port 1/0:0cptone CN!voice-port 1/0:1cptone CN!!mgcp profile default!dial-peer cor custom!!!dial-peer voice 80000 potsincoming called-number .Tdirect-inward-dialport 1/0:0!dial-peer voice 80001 potsdestination-pattern 9463Tport 1/0:1!dial-peer voice 80002 voipdestination-pattern 9462Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80003 voipdestination-pattern 9463Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80004 voipdestination-pattern 9464Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80005 voipdestination-pattern 9465Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80006 voipdestination-pattern 9466Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80007 voipdestination-pattern 9467Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80008 voipdestination-pattern 9468Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80009 voipdestination-pattern 9471Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80010 voipdestination-pattern 9472Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80011 voipdestination-pattern 9473Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80012 voipdestination-pattern 9474Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80013 voipdestination-pattern 9475Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80014 voipdestination-pattern 9476Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumericfax rate 9600!dial-peer voice 80015 voipdestination-pattern 9477Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80016 voipdestination-pattern 9478Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80017 voipdestination-pattern 9479Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80018 voipdestination-pattern 9111Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80019 voipdestination-pattern 9461Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!dial-peer voice 80020 voipdestination-pattern 6666Tvoice-class codec 88session target rasdtmf-relay cisco-rtp h245-signal h245-alphanumeric fax rate 9600!gateway!!line con 0 line aux 0 line vty 0 4 password login!!endhxga-rt-1#。
MPLS TE的基本架构

MPLS TE 的基本架构MPLS TE 的结构图MPLS TE 的结构如图1-1所示。
图1-1 MPLS TE 组件 报文转发组件IGP路由选择信令组件链路状态数据库信息发布组件报文进入报文离开LSP建立LSP建立信息扩散信息扩散路径选择组件流量工程数据库MPLS TE 功能需要如下四个组件:信息发布组件;错误!未找到引用源。
;信令组件;报文转发组件 信息发布组件除了网络的拓扑信息外,流量工程还需要知道网络的负载信息。
为此,MPLS TE 引入信息发布组件,即通过对现有的IGP 进行扩展,比如在IS-IS 协议中引入新的TLV ,或者在OSPF 中引入新的LSA ,来发布链路状态信息,包括最大链路带宽、最大可预留带宽、当前预留带宽、链路颜色等。
通过IGP 扩展,在每个路由器上,维护网络的链路属性和拓扑属性,形成流量工程数据库TEDB 。
利用TEDB ,可以计算出满足各种约束的路径。
扩展后的OSPF 和IS-IS 协议在链路连接状态中增加了链路带宽、着色等TE 相关属性,其中,链路的最大可预留带宽和每个优先级的链路未被预留带宽尤为重要。
每台路由器收集本区域所有路由器每条链路的TE 相关信息,生成流量工程数据库TEDB (TE DataBase )。
通过信息发布组件形成TEDB 后,在每个入口路由器上可以指定LSP 隧道经过的路径。
这种显示路由可以是严格的,也可以是松散的。
可以指定必须经过某个路由器,或者不经过某个路由器,可以逐跳指定,也可以指定部分跳。
此外,还可以指定带宽等约束条件。
路径选择组件是通过CSPF (Constraint Shortest Path First )算法,利用TEDB 中的数据来计算满足指定约束的路径的。
CSPF 算法由最短路径优先算法演变而来,它首先在当前拓扑结构中删除不满足条件的节点和链路,然后再通过SPF (Shortest Path First )算法来计算。
Cisco MPLS-TE 配置实例

拓扑结构:原理说明:流量工程中tunnel的创立过程分为四步,分别为:1.开启全局和interface上面的mpls traffic engine tunnel,这一步为一个开关的作用。
2.配置端口的rsvp bandw idth,分别为各个interface指定一定的预留带宽用于分给上面的tunnel。
3.开启ospf-te或者其他协议的扩展功能,保障所有端口的流量情况被同步到area中的所有路由器,这在LER建立tunnel时提供了保障。
4.创建mpls traffic-engine tunnel,配置其带宽,优先级,recor route等属性。
通过RSVP-TE的path报文到达destination,并反向传送resv报文,用于分配标签和预留带宽。
从而真正创建出一条有保障能力的tunnel。
实验步骤:在所有设备之间运行OSPF和MPLS,保障所有设备都能够分到标签,基于标签转发。
此时,在PE1-P1-PE2上预留带宽为10M,在PE1-P2-PE2上预留带宽为20M。
在PE1上面建立dynamic tunnel和explicit r oute tunnel,看在大于或者小于等于链路所剩余带宽的情况下,是否能够成功创建mpls traffic-engine tunnel。
//CE1//ip cefmpls label protocol ldpinterface Loopback0ip address 1.1.1.1 255.255.255.255interface GigabitEthernet1/0ip address 10.0.0.1 255.255.255.0tag-switching iprouter ospf 1router-id 1.1.1.1network 1.1.1.1 0.0.0.0 area 0network 10.0.0.0 0.0.0.255 area 0//PE1//ip cefmpls label protocol ldpmpls traffic-eng tunnelsinterface Loopback0ip address 2.2.2.2 255.255.255.255interface Tunnel1ip unnumbered Loopback0tunnel destination 5.5.5.5tunnel mode mpls traffic-engtunnel mpls traffic-eng autoroute announcetunnel mpls traffic-eng priority 7 7tunnel mpls traffic-eng bandwidth 5000tunnel mpls traffic-eng path-option 5 dynamic tunnel mpls traffic-eng record-routeinterface GigabitEthernet1/0ip address 10.0.0.2 255.255.255.0tag-switching ipinterface GigabitEthernet2/0ip address 11.0.0.1 255.255.255.0mpls traffic-eng tunnelstag-switching ipip rsvp bandwidth 10000interface GigabitEthernet3/0ip address 13.0.0.1 255.255.255.0mpls traffic-eng tunnelstag-switching ipip rsvp bandwidth 20000router ospf 1mpls traffic-eng router-id Loopback0mpls traffic-eng area 0router-id 2.2.2.2network 2.2.2.2 0.0.0.0 area 0network 10.0.0.0 0.0.0.255 area 0network 11.0.0.0 0.0.0.255 area 0network 13.0.0.0 0.0.0.255 area 0ip explicit-path name 10m_link enablenext-address 11.0.0.2next-address 12.0.0.2//P1//ip cefmpls label protocol ldpmpls traffic-eng tunnelsinterface Loopback0ip address 3.3.3.3 255.255.255.255interface GigabitEthernet1/0ip address 11.0.0.2 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 10000interface GigabitEthernet2/0ip address 12.0.0.1 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 10000router ospf 1mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0router-id 3.3.3.3log-adjacency-changesnetwork 3.3.3.3 0.0.0.0 area 0network 11.0.0.0 0.0.0.255 area 0network 12.0.0.0 0.0.0.255 area 0//P2//ip cefmpls label protocol ldpmpls traffic-eng tunnelsinterface Loopback0ip address 4.4.4.4 255.255.255.255 interface GigabitEthernet1/0ip address 13.0.0.2 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 20000interface GigabitEthernet2/0ip address 14.0.0.1 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 20000router ospf 1mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0router-id 4.4.4.4network 4.4.4.4 0.0.0.0 area 0network 13.0.0.0 0.0.0.255 area 0network 14.0.0.0 0.0.0.255 area 0//PE2//ip cefmpls label protocol ldpmpls traffic-eng tunnelsinterface Loopback0ip address 5.5.5.5 255.255.255.255interface GigabitEthernet1/0ip address 15.0.0.1 255.255.255.0negotiation autotag-switching ip!interface GigabitEthernet2/0ip address 12.0.0.2 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 10000interface GigabitEthernet3/0ip address 14.0.0.2 255.255.255.0negotiation autompls traffic-eng tunnelstag-switching ipip rsvp bandwidth 20000router ospf 1mpls traffic-eng router-id Loopback0mpls traffic-eng area 0router-id 5.5.5.5network 5.5.5.5 0.0.0.0 area 0network 12.0.0.0 0.0.0.255 area 0network 14.0.0.0 0.0.0.255 area 0network 15.0.0.0 0.0.0.255 area 0network 16.0.0.0 0.0.0.255 area 0//CE2//ip cefmpls label protocol ldpinterface Loopback0ip address 6.6.6.6 255.255.255.255interface GigabitEthernet1/0ip address 15.0.0.2 255.255.255.0negotiation autotag-switching iprouter ospf 1network 6.6.6.6 0.0.0.0 area 0network 15.0.0.0 0.0.0.255 area 0Cisco MPLS流量工程TE隧道的基本配置(转)前言:mpls网络正在成为运营商主流网络趋势,目前国内运营商大上3G,同时也在部署更高效的mpls网络,电信的CN2(中盈承建),移动的CMnet(亚信承建),联通的集团IP承载网(中盈承建),CCIE的路由交换考试也加入了mpls可见一般,转载一篇mpls高级应用,供大家参考1 流量工程简介TE:Traffic Engineering的缩写,即流量工程的意思。
浅谈MPLS-TE技术及应用

浅谈MPLS-TE技术及应用MPLS(Multiprotocol Label Switching)技术是一种高效的网络传输技术,旨在提高网络带宽使用和数据传输速度。
MPLS技术可以用于路由选择和流量工程,它通过添加标签来在网络中识别流量,可以显著提高网络传输的效率和可靠性。
MPLS技术的进一步发展和演变,形成了MPLSTE(MPLS Traffic Engineering)技术。
MPLSTE技术是一种基于MPLS技术的流量工程技术,它可以优化网络性能、提高网络容量,并保证数据传输质量。
MPLSTE技术可以对网络中的数据流进行引导和分配,从而实现网络资源的有效利用。
MPLSTE技术通常通过单独的MPLS通道来路由数据流,从而使网络传输更加高效和可靠。
MPLSTE技术的应用范围非常广泛,涵盖了各种不同的网络环境。
MPLSTE技术可以用于数据中心网络、通信网络、互联网服务提供商网络和企业网络等。
它可以用于提高网络容量、减少网络延迟和提高网络的可靠性。
通过使用MPLSTE技术,网络管理员可以更加有效地利用网络资源,优化网络流量,降低网络成本。
MPLSTE技术的主要优点包括:1、更高效的网络带宽使用率:使用MPLSTE技术可以更好地控制网络流量,并充分利用网络带宽。
最终目标是最大化网络效率,实现更高的数据传输速度和减少网络延迟,使数据传输更加高效和快速。
2、更好的网络容量:使用MPLSTE技术,可以根据网络需求实现更好的网络容量规划。
MPLSTE技术可以通过在网络中传输大量数据包来提高容量,从而满足网络用户的日益增长的需求。
3、更好的网络可靠性:MPLSTE技术可以帮助网络管理员更好地管理网络流量,并在网络故障时自动切换到其他路由,从而保证网络可靠性。
当发生故障时,MPLSTE技术可以自动检测到失败的路由和网络节点,并自动选择其他可用路由和节点。
MPLSTE技术有很多重要的应用,包括:1、流量工程:MPLSTE技术可以用于流量工程,从而实现更有效的网络流量管理。
IP RAN 、CPE、LSTP、MPLS TE

关键词:IP RAN 、CPE、LSTP、MPLS TEIP RAN全球范围内移动运营商不断地扩建无线接入网(Radio Access Network,RAN)。
2G(The Second Generation,第二代移动通信的简称)RAN承载主要基于TDM/SDH构建,存在着带宽利用率低、扩展困难和配置不够灵活等弊端。
IP数据通信网是数据通信的主流方式,具备丰富的接入方式,庞大的网络规模。
引入IP RAN 特性,运营商可以充分利用已有IP网资源,进行基站和基站控制器之间的组网。
为了最大限度地保护运营商的投资成本、减少建网投资以及3G(The Third Generation,第三代移动通信的简称)网络的平滑演进,在RAN中引入IP将是WCDMA R5阶段的一个重要步骤。
而IP RAN就是专门针对这些问题的解决方案。
简单的说,IP RAN就是利用IP传输技术取代ATM技术的RAN解决方案。
随着IP网络的发展,IP网络本身的可拓展、可升级以及兼容互通能力非常强。
而传统的通信网络的升级、扩展、互通的灵活性则相对比较差,受限于传输的方式和业务的类型,并且新建的网络共用性也较差,不宜于互通管理。
因此在传统通信网的升级和拓展过程中应考虑建立重复的网络还是充分利用现有或公共网络资源。
根据无线接入侧2G和3G的的组网差异,2G使用TDM(Time Division Multiplex,时分复用)接入,3G使用ATM IMA(Inverse Multiplexing over ATM,ATM反向复用技术)接入。
以下分为两个场景分别描述。
(Customer Premise Equipment)CPE是指物理上位于用户侧的硬件,如:· 服务器;· 工作站;· 通信硬件(CSU/DSUs,调制解调器);· LAN设备(集线器、网桥、交换机);· WAN设备(路由器)。
MPLS TE在高铁数据网系统中的配置设计与验证测试

随着 高速 铁 路 的发 展 ,各条 高速 铁路 客运 专线
数 据 网系统 承载 了视频 监 控 、会 议 电视 、办公 自动
1 MP L S T E 技 术
M P L S( 多协议 标 记 交 换 )技 术 ,可 以帮 助 本
质 上无 连接 的 I P网络 建 立 到 指定 目的地 的预 先 确 定 的路 径 ,即标 记 交 换 路 径 ( L S P) 。经 过 M P L S
参 考 文 献
设 备总体技术要求 [ S ] . 2 0 0 6 .
[ 3 ] 中华人 民共 和国信息产业部 . Y D . T 1 2 4 3 . 1 - 2 0 0 2 .媒体
导致 网络 拥 塞 主要 有 2个 原 因 :① 网络 带 宽
马幼 军 :深 圳 市 长龙 铁 路 电 子 工程 有 限公 司
深 圳
工师
小 ,难 以承载 日益繁 忙 的网络应 用 ;② 网络 流量 分
张 自强 : 中铁 电 化 集 团 北 京 电 信 研 究 试验 中 心有 限公 司
T E技 术 、T E配置和路 由保护 配置 ,及 其测 试方案 。
关键 词 :多协议 标记 交换 ;流 量工程 ( T E ) ;路 径保 护 ;跟 踪路 由;接 口
Abs t r a c t : MPL S TE t e c h no l o g y p r o v i d e s t h e f u n c t i o n s o f q u a l i t y o f s e r v i c e a nd t r a f f i c e n g i n e e r i n g c o n t r o l
a v o i d l i n k c o n g e s t i o n r e s u l t i n g i n l o s s o f da t a . Th e t e c h n o l o g y o f MPL S TE,TE c o n ig f u r a t i o n,r o u t i n g p r o t e c t i o n c o ig f n ur a t i o n s a nd t e s t s c e n a r i o s a r e i n t r o du c e d. Ke y wo r d s: MPL S; Tr a f f i c En g i n e e r i n g;Pa t h p r o t e c t i o n; Tr a c i n g r o u t e; I n t e r f a c e
MPLS协议原理与配置详解

MPLS协议原理与配置详解多协议标签交换MPLS(Multiprotocol Label Switching ),MPLS在⽆连接的IP⽹络上引⼊⾯向连接的标签交换概念,将第三层路由技术和第⼆层交换技术相结合,充分发挥了IP路由的灵活性和⼆层交换的便捷性MPLS并不是⼀种业务或者应⽤,它实际上是⼀种隧道技术。
这种技术不仅⽀持多种⾼层协议与业务,⽽且在⼀定程度上可以保证信息传输的安全性MPLSMP:多协议LS:标签交换(label switch)应⽤场景⽤于早期提⾼转发效率⽤于MPLS VPN(⼆层或三层标签)⽤于MPLS TE流量⼯程⽤于解决路由⿊洞:route recursive-lookup tunnelMPLS是⼯作在“2.5”层的协议在⼆层头部和IP头部之间插⼊MPLS头部(短⽽定长的4字节)MPLS头部可以插⼊多层,普通的MPLS插⼊⼀层头部,MPLS VPN插⼊2层MPLS头部⼀、MPLS基本结构1.MPLS域能够进⾏标签转发的区域2.MPLS 设备⾓⾊LER(label edge router):处于MPLS⽹络的边界设备,负责标签的压⼊push和弹出popLSR(label switch router):处于MPLS⽹络的中间区域,负责标签的交换swap3.LSP标签转发路径到达同⼀⽬的地址的报⽂在mpls⽹络中经过的路径数据转发过程中的LSP是单向的LSP需要构建成功后才能进⾏标签转发构建⽅式:静态、动态LSP的建⽴过程时间就是将FEC和标签进⾏绑定4.FEC转发等价类具有相同转发处理⽅式的报⽂,在MPLS⽹络中,到达同⼀⽬的地址的所有报⽂就是⼀个FECMPLS中,⼀条FEC对应着⼀条路由FEC的划分⽅式以源地址、⽬的地址、源端⼝、⽬的端⼝、协议类型或VPN等为划分依据设备为FEC进⾏标签分配;设备对⼀条FEC完成标签分配后(FEC和标签绑定),建⽴⼀条LSP设备为FEC分发的标签作为⼊标签设备收到FEC对应的标签作为出标签标签值只具有本地意义(不同设备的标签分发是可以⼀致的)5.数据流向上游:数据源⽅向下游:数据⽬的⽅向ingress⼊节点:负责压⼊标签transit中间节点:负责标签交换egress出节点:负责弹出标签标签分发是从下游往上游⽅向分发标签动作动作解释push压⼊swap交换pop弹出null剥离标签,出空标签⼆、MPLS体系结构控制层⾯负责⽣成和维护路由信息和标签信息1.IP路由协议产⽣路由信息2.RIB路由信息表存放路由信息3.LDP标签分发协议Label Distribution Protocol为FEC分发标签4.LIB标签信息表Label Information Base由LDP⽣成,存放FEC和标签的映射关系,管理标签信息数据层⾯负责IP报⽂的转发和带MPLS标签报⽂的转发从控制层⾯下发得到,形成最优表项,直接指导数据转发1.FIB转发信息表Forwarding Information Base基于RIB⽣成,指导IP报⽂转发判断数据是否需要标签转发tunnel ID为0x0:进⾏IP转发tunnel ID为⾮0x0:查看LFIB表,进⾏标签转发2.LFIB标签转发信息表Label Forwarding Information Base基于LIB表和IP路由表⽣成,指导标签报⽂转发由ILM表(⼊标签映射表)和NHLFE(下⼀跳标签转发表)构成NHLFE表(下⼀跳转发表项)内容出接⼝下⼀跳出标签查看⽅式display tunnel-info tunnel-id xxxdisplay mpls lsp include x.x.x.x 32 verboseILM表(⼊标签映射表)内容⼊标签⼊接⼝tunnel ID(token)标签操作类型查看display mpls lsp in-label xxxx verbosedisplay mpls lspFIB表通过tunnel ID关联到LFIB表,ILM表通过tunnel ID关联到NHLFE表3.转发⽅式接收到IP数据包,查看⽬的地址对应的tunnel IDtunnel ID为0x0:进⾏IP转发tunnel ID为⾮0x0:查看LFIB表,进⾏标签转发接收到带MPLS标签的数据包,直接查看LFIB表LFIB出标签为普通标签进⾏标签交换LFIB出标签为空标签查看FIB进⾏IP转发三、MPLS的数据转发流程当数据进⼊MPLS域时:根据FIB表查找相对应的转发条⽬,转发条⽬中包含tunnel ID字段**查看tunnel ID字段tunnel ID为0x0,进⾏IP转发tunnelID为⾮0x0,进⾏MPLS转发查看⼆层头部信息中的TYPE字段type=0x0800表⽰上层为IPtype=0x8847表⽰上层为MPLS1.ingress的处理查询FIB表和NHLFE表指导报⽂转发查看FIB表,根据⽬的IP地址找到对应tunnel IDdisplay fib ##可以找到相关⽬的地的tunnel ID根据tunnel ID找到对应的NHLFE表项,将FIB表项和NHLFE表项相关联起来(FTN) ##查看详细信息(出接⼝、下⼀跳、出标签)display tunnel-info tunnel-id 0x3##查看详细信息(出接⼝、下⼀跳、出标签,标签操作类型)display mpls lsp include 4.4.4.4 32 verbose查看NHLFE表项得出接⼝、下⼀跳、出标签和标签操作类型在IP报⽂中压⼊出标签、同时处理TTL,然后将封装好的MPLS报⽂从相应出接⼝发给下⼀跳2.transit的处理通过查询ILM和NHLFE表指导MPLS报⽂转发根据MPLS的标签值查看对应的ILM表,可以得到tunnel ID。
MPLS TE简介

MPLS traffic engineering2013年10月20日16:54概述:流量工程:操作网络中的流量走向的技术,穿越网络的流量将从最优化的路径进行转发。
传统的流量工程是通过ATM或者Frame relay技术实现,统称overlay模型早期的IP网络实现基础为fr或者arm,但是现在越来越多的网络开始建立在纯IP网络或者基于MPLS的IP网络。
IP网络需要一种新的流量工程技术,纯IP网络TE技术现在还无法实现,但是基于MPLS,可以为MPLS/IP提供TE方案每一个IP协议都为每条链路指定了一个“成本”,路径中每条链路cost累加用来就算最低成本路径,IP数据报文先通过成本最低的路径“尽可能快的转发”。
这是现代IP网络协议设计的基本原理。
OSPF和ISIS使用单一的metric度量成本。
EIGFRP使用一种复合度量技术,使用5个权重系数与链路度量值bw ,delay ,reliability,load综合考虑链路状态:RIP使用跳数作为度量单位IP网络转发报文时,每跳路由器基于自己的路由表决定如何转发该报文,转发决定并不依赖于转发路径的带宽、丢包等情况。
因此,即使该链路因为拥塞出现丢包,路由器仍然会继续向该路径转发报文。
同时另一条也能到达该目的地的路径即使空闲,但是由于cost较高,得不到利用。
对这种情况,TE能带来一种解决方案:操纵流量避开拥塞链路帮助减少丢包,抖动等情况,合理利用网络资源,为客户流量提供较好的服务质量。
MPLS TE引入了一种TE方案:在下层基础网络上构造一层LSP(标签转发路径),用以掩盖下层实际拓扑,并用于操作流量走向,路径的计算是由LSP(TE tunnel)的第一跳路由器完成。
需要记住的是TE tunnel是单向的,要完成双向通信,你需要每个方向各建立一条tunnel。
MPLS TE基本概念:首端路由器Head end router:MPLS TE tunnel 隧道起点成为TE首端路由器,相应的是尾端路由器的定义。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Enabling MPLS TE on an Interface
router(config-if)#
mpls ip---不总是必须
• Enable the MPLS on an interface
router(config-if)#
mpls traffic-eng tunnels
Creating and Configuring a Traffic Trunk
router(config)#
interface tunnel number
• Configures a tunnel interface
router(config-if)#ip unnumbered loopback 0
ISIS环境—R3上汇总配置
ip cef mpls traffic-eng tunnels mpls label range 300 399 ! interface Loopback0 ip address 33.1.1.1 255.255.255.255 ip router isis ! interface Tunnel1 ip unnumbered Loopback0 tunnel destination 88.1.1.1 tunnel mode mpls traffic-eng tunnel mpls traffic-eng priority 7 7 tunnel mpls traffic-eng bandwidth 1000 tunnel mpls traffic-eng path-option 10 interface POS2/0 ip address 35.1.1.3 255.255.255.0 ip router isis encapsulation ppp mpls traffic-eng tunnels mpls ip ip rsvp bandwidth !! router isis net 49.0001.0000.0000.0003.00 is-type level-2-only metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2
• Enable the MPLS traffic engineering tunnel feature on an interface
router(config-if)#
ip rsvp bandwidth [total-flow-kbps] [single-flow-kbps]
• Enable RSVP for IP on an interface and specify amount of bandwidth to be reserved
• Sets the tunnel encapsulation mode to MPLS traffic engineering
Configuring a Traffic Trunk
router(config-if)#
tunnel mpls traffic-eng bandwidth bandwidth
Enabling MPLS TE Support in OSPF
router(config-router)#
mpls traffic-eng area area-c engineering for the respective area
router(config-router)#
mpls traffic-eng router-id {interface}
• Specify the interface to be associated with the traffic engineering router identifier (also end-point of a tunnel)
OSPF环境—R3上汇总配置
ip cef mpls traffic-eng tunnels mpls label range 300 399 interface Loopback0 ip address 33.1.1.1 255.255.255.255 interface Tunnel1 ip unnumbered Loopback0 tunnel destination 88.1.1.1 tunnel mode mpls traffic-eng tunnel mpls traffic-eng priority 7 7 tunnel mpls traffic-eng bandwidth 1000 tunnel mpls traffic-eng path-option 10 dynamic no routing dynamic interface POS2/0 ip address 35.1.1.3 255.255.255.0 encapsulation ppp mpls traffic-eng tunnels mpls ip ip rsvp bandwidth ! router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 33.1.1.1 log-adjacency-changes network 0.0.0.0 255.255.255.255 area 0
• Configures a tunnel interface IP address
router(config-if)#
tunnel destination ip-address
• Specifies the destination for the tunnel
router(config-if)#
tunnel mode mpls traffic-eng
• Configures the requested bandwidth for the MPLS traffic engineering tunnel
router(config-if)#
tunnel mpls traffic-eng path-option number {dynamic | explicit {name path-name | path-number}} [lockdown] • Configures the tunnel to use a named IP explicit path or a path dynamically calculated from the traffic engineering topology database
Enabling Device-Level MPLS TE Support
router(config)#
ip cef
• Enable IP cef switching
router(config)#
mpls traffic-eng tunnels
• Enable the MPLS traffic engineering tunnel feature on a device
Configuring MPLS Traffic Engineering on Cisco IOS
课程目标
• 完成一个在CISCO IOS平台上的MPLS TE基本 配置