MPLS自己的经验理解通俗易懂教案.pptx
《MPLS自己的经验理解通俗易懂教案.pptx》由会员分享,可在线阅读,更多相关《MPLS自己的经验理解通俗易懂教案.pptx(94页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、会计学1MPLS自己的经验理解通俗易懂自己的经验理解通俗易懂MPLS VPN的基本概念目录目录MPLS的基本概念1 13 3MPLS 及MPLS VPN举例第1页/共94页传统传统IP路由网络的缺陷路由网络的缺陷第2页/共94页传统的传统的IP数据转发数据转发n n使用路由协议传送使用路由协议传送IPIP路由信息路由信息n n基于基于IPIP包的目标地址进行数据转发包的目标地址进行数据转发n nIPIP包每经过一个路由器都需要进行路由包每经过一个路由器都需要进行路由表的查询表的查询第3页/共94页n nIPIP的逐跳转发,在经过的每一跳处,必须进行路的逐跳转发,在经过的每一跳处,必须进行路由表
2、的最长匹配查找(可能多次),速度缓慢。由表的最长匹配查找(可能多次),速度缓慢。第4页/共94页在传统的在传统的IP转发中的转发中的流量工程问题流量工程问题n nMost traffic goes between large sites A and B and uses only the primary link.Most traffic goes between large sites A and B and uses only the primary link.n nDestination-based routing does not provide any mechanism for l
3、oad Destination-based routing does not provide any mechanism for load balancing across unequal paths.balancing across unequal paths.n nPolicy-based routing can be used to forward packets based on other Policy-based routing can be used to forward packets based on other parameters,but parameters,but t
4、histhis is not a scalable solution.is not a scalable solution.Primary OC192 linkLarge Site ALarge Site BSmall Site CBackupOC48 link第5页/共94页Review Questionsn n列出主要的传统列出主要的传统IPIP路由缺点路由缺点.n nIPIP包的传发是基于那一种信息包的传发是基于那一种信息?n n为什么这种转发机制不适用于大型为什么这种转发机制不适用于大型网络网络?第6页/共94页MPLS架构及相关技术架构及相关技术第7页/共94页MPLS数据转发数据转
5、发n nMPLSMPLS的标签转发,通过事先分配好的标签,为报文建立的标签转发,通过事先分配好的标签,为报文建立了一条标签转发通道(了一条标签转发通道(LSPLSP),在通道经过的每一台设备),在通道经过的每一台设备处,只需要进行快速的标签交换即可(一次查找)。处,只需要进行快速的标签交换即可(一次查找)。第8页/共94页MPLS:多协议标签交换多协议标签交换n nMPLS:Multi-Protocol Label Switchingn n在IP网络实现2.5层数据交换第9页/共94页MPLS 的基本概念的基本概念n n基于标签进行数据转发的机制n n标签对应于IP目标路由网络n n标签可对应
6、于其他相关参数QosQosIPIP源地址源地址n n支持多种协议的转发第10页/共94页MPLS/IP网络网络第11页/共94页MPLS 架构架构n n控制层面(Control plane)n n运用路由协议进行路由信息的交换运用路由协议进行路由信息的交换n n运用标签分发协议进行标签交换运用标签分发协议进行标签交换n n数据层面(Data plane)n n基于标签进行数据转发基于标签进行数据转发第12页/共94页MPLS Architecturen nRouter functionality Router functionality is is divided into two major
7、 parts:divided into two major parts:control plane and data planecontrol plane and data planeData PlaneControl PlaneLabel 17OSPFLDPLFIBLabel 4417Labeled packetLabel 4Labeled packetLabel 17第13页/共94页Label FormatMPLS uses a 32-bit label field that contains the following information:n n20-bit label20-bit
8、 labeln n3-bit experimental field3-bit experimental fieldn n1-bit bottom-of-stack indicator1-bit bottom-of-stack indicatorn n8-bit time-to-live(TTL)field8-bit time-to-live(TTL)fieldLABELEXPSTTL0192223312024第14页/共94页Frame-Mode MPLSFrameHeaderIP HeaderPayloadLayer 2Layer 2Layer 3Layer 3FrameHeaderLabe
9、lIP HeaderPayloadLayer 2Layer 2 Layer 3Routing lookup andlabel assignment第15页/共94页Label Switch Routern nLabel switch router(LSR)Label switch router(LSR)转发打了标签的转发打了标签的IPIP包包n nEdge LSREdge LSR n n给给IPIP包打标签并转发到包打标签并转发到MPLSMPLS域域n n删除标签并把删除标签并把IPIP包从包从MPLSMPLS域转发出去域转发出去MPLS DomainEdge LSRLSRL=3L=5L=43
10、L=31第16页/共94页LSR的功能架构的功能架构LSRs,regardless of the type,perform the following three LSRs,regardless of the type,perform the following three functions:functions:n nExchange routing informationExchange routing informationn nExchange labelsExchange labelsn nForward packets(LSRs and edge LSRs)Forward pack
11、ets(LSRs and edge LSRs)The first two functions are part of the control plane.The first two functions are part of the control plane.The last function is part of the data plane.The last function is part of the data plane.第17页/共94页Architecture of LSRsLSRs primarily forward labeled packets.LSRControl Pl
12、aneData PlaneRouting ProtocolLabel Distribution ProtocolLabel Forwarding TableIP Routing TableExchange ofrouting informationExchange oflabelsIncoming labeled packetsOutgoing labeled packets第18页/共94页Architecture of Edge LSRsEdge LSRControl PlaneData PlaneRouting ProtocolLabel Distribution ProtocolLab
13、el Forwarding TableIP Routing TableExchange ofrouting informationExchange oflabelsIncoming labeled packetsOutgoing labeled packetsIP Forwarding TableIncoming IP packetsOutgoing IP packets第19页/共94页MPLS 转发转发LSRLSR功能功能:n n插入(插入(InsertInsert)标签)标签n n交换(交换(SwapSwap)标签)标签n n删除(删除(PopPop)标签)标签第20页/共94页MPLS
14、 域MPLS Forwarding(Frame-Mode)n nOn ingress a label is assigned On ingress a label is assigned and imposed and imposed by the by the IP IP routing processrouting process.n nLSRs in the core swap labels based on the contents of the label forwarding tableLSRs in the core swap labels based on the conten
15、ts of the label forwarding table.n nOn egress the label is removed and a routing lookup is used to forward the packetOn egress the label is removed and a routing lookup is used to forward the packet.路由表10.0.0.0/8 label 3标签转发表LFIBlabel 8 label 3路由表10.0.0.0/8 label 5标签转发表LFIBlabel 3 label 5路由表10.0.0.0
16、/8 next hop标签转发表LFIBlabel 5 pop10.1.1.1310.1.1.1510.1.1.1第21页/共94页MPLS 网络网络IP路由示路由示例例LSRControl PlaneData PlaneOSPF:RT:LIB:FIB:LFIB:10.0.0.0/8 1.2.3.4L=5 10.1.1.110.1.1.110.1.1.1第22页/共94页LSRControl PlaneData PlaneOSPF:RT:LIB:FIB:LFIB:10.0.0.0/8 1.2.3.410.1.1.1L=5 10.1.1.1 Next-hop L=3,Local L=5L=3 1
17、0.1.1.1L=3 10.1.1.1L=5 L=3,L=3MPLS 网络网络IP路由示例路由示例第23页/共94页标签的分配和分发过程标签的分配和分发过程n nIPIP路由协议构造路由协议构造IPIP路由表路由表n nLSRLSR对路由表中每一目标网段独立地分配标签对路由表中每一目标网段独立地分配标签n nLSRLSR把所分配的标签公告给其他把所分配的标签公告给其他LSRLSRn n根据所受到的标签,根据所受到的标签,LSRLSR构建构建LIBLIB,LFIBLFIB和和FIBFIB第24页/共94页路由表的构建路由表的构建n nIP routing protocols are used t
18、o build IP routing tables on all IP routing protocols are used to build IP routing tables on all LSRs.LSRs.n nFIBs are built based on IP routing tables with no labeling FIBs are built based on IP routing tables with no labeling information.information.ABCDENetwork X第25页/共94页分配标签分配标签n nEvery LSR allo
19、cates a label for every destination in the IP Every LSR allocates a label for every destination in the IP routing table.routing table.n nLabels have local significance.Labels have local significance.n nLabel allocations are asynchronous.Label allocations are asynchronous.ABCDENetwork XRouter B assig
20、ns label 25 to destination X.第26页/共94页ABCDENetwork XRouter B assigns label 25 to destination X.LIB 和和 LFIB 的建立的建立LIB and LFIB structures have to be initialized on the LSR LIB and LFIB structures have to be initialized on the LSR allocating the label.allocating the label.Local label is stored in LIB.
21、Outgoing action is pop,as B has received no label for X from C.第27页/共94页ABCDENetwork X标签分发标签分发 Label DistributionThe allocated label is advertised to all neighbor LSRs,regardless of The allocated label is advertised to all neighbor LSRs,regardless of whether the neighbors are upstream or downstream
22、LSRs for the whether the neighbors are upstream or downstream LSRs for the destination.destination.X=25X=25X=25第28页/共94页标签通告的接收标签通告的接收(Receiving Receiving Label AdvertisementLabel Advertisement)n nEvery LSR stores the received label in its LIB.Every LSR stores the received label in its LIB.n nEdge L
23、SRs that receive the label from their next-hop also store Edge LSRs that receive the label from their next-hop also store the label information in the FIB.the label information in the FIB.X=25X=25ABCDEX=25Network X第29页/共94页过渡期的数据传送过渡期的数据传送(Interim Packet PropagationInterim Packet Propagation)Forward
24、ed IP packets are labeled only on the path segments where Forwarded IP packets are labeled only on the path segments where the labels have already been assigned.the labels have already been assigned.IP:XLab:25IP:X查询FIB,给IP包打标签.查询LFIB,删除标签ABCE第30页/共94页进一步的标签分配进一步的标签分配(Further Further Label Allocation
25、Label Allocation)Every LSR will eventually assign a label for every destination.Every LSR will eventually assign a label for every destination.ABCDENetwork XRouter C assigns label 47 to destination X.X=47X=47第31页/共94页标签通告的接收标签通告的接收(Receiving Label Receiving Label AdvertisementAdvertisement)n nEvery
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MPLS 自己 经验 理解 通俗易懂 教案
限制150内