当前位置:网站首页>【HCIP】MPLS 基础
【HCIP】MPLS 基础
2022-07-29 00:30:00 【Domeecky】
目录
LSR:标签交换路由器
MPLS 域:由 LSR 构成的网络域
LER:标签边缘路由器
LSP:标签交换路径(单向)
Ingress:LSP 的入节点;Transit:LSP 的中间节点;Egress:LSP 的出节点
MPLS 体系结构
MPLS 体系结构由「控制平面」和「转发平面」组成
控制平面:负责产生和维护路由信息及标签。其中,路由信息表 RIB:由 IP 路由协议生成,用于选择路由;标签分发协议 LDP:负责标签的分配、标签转发信息表的建立、标签交换路径的建立、拆除等工作;标签信息表 LIB:由标签分发协议生成,用于管理标签信息
转发平面:负责普通 IP 报文的转发及带 MPLS 标签的转发。其中,转发信息表 FIB:从 RIB 提取必要的路由信息生成,负责普通 IP 报文的转发;标签转发信息表 LFIB:简称标签转发表,由标签分发协议在 LSR 上建立 LFIB,负责带 MPLS 标签报文的转发
转发等价类 FEC:将特征相同的报文归为一类,转发时做相同处理
标签
Label:标签值域;Exp:用于扩展,现常用于做 Cos,当设备阻塞优先发送优先级高的报文;S:表示最后一层标签;TTL:跳数
特殊标签:0 ~ 15;0:表示弹出;3:直接进行 IP 转发
静态 LSP 和CR-LSP 共享标签:16 ~ 1023
动态:1024 及以上
静态 MPLS
mpls lsr-id「ID」:用于标识唯一的LSR
mpls:启用mpls功能(全局、接口都要)
static-lsp ingress「名」destin「IP」nexthop「下一跳」out-label「标签」:下游
static-lsp transit「名」incoming-interface「入接口」in-label「标签」nexthop「下一跳」out-label「标签」:中游
static-lsp transit「名」incoming-interface「入接口」in-label「标签」:下游
dis fibLDP 标签分发协议
负责建立、维护标签交换路径
本地邻接体:以组播方式建立邻居;远端邻接体:以单播方式建立邻居
本地 LDP 会话:直连;远端 LDP 会话:可非直连
LDP 邻居:5s 一次 hello 报文,15s 中断;LDP 会话:15s 一次keepalive 报文,45s 中断
LDP 消息类型
发现(Discovery):用于通告和维护网络中 LSR 的存在
会话(Session):用于建立、维护和终止 LDP 对等体之间的会话
通告(Advertisement):用于建立、改变和删除 FEC 的标签映射
通知(Notification):用于提供建议性的消息和差错通知
除了发现报文是 UDP,其他都是 TCP
LDP LSR 建立过程
将 FEC 和标签进行绑定,并通告 LSP 上相邻的 LSR
(1)缺省情况下,路由改变时,若边缘节点(Egress)发现自己路由表中出现新路由且这条路由不属于任何现有 FEC,则为该路由建立新的 FEC
(2)若 MPLS 网络有可供分配的标签,则为 FEC 分配标签,并主动向上游发出标签映射消息,其中包含分配标签和绑定的 FEC 等信息
(3)Transit 收到标签映射信息后,判断发送者是否为该 FEC 的下一跳,若是,则在其标签转发表中添加相应条目,然后主动向上游发送指定信息
(4)Ingress 收到标签后判断发送者是否为该 FEC 的下一跳,若是,则在标签转发表中添加相应条目,这时完成 LSP 建立





MPLS 转发过程


MPLS 对 TTL 的处理
MPLS 对 TTL 有两种处理模式:「统一模式(Uniform)」「管道模式(Pipe)」


mpls ldp(全局、接口)
dis mpls ldp session
dis mpls lsp
dis mpls lsp protocol ldp
lsp-trigger:触发建立LSP(华为默认只为32位主机非物理接口开启)
diag:进入诊断模式
dis mpls nhlfe:查看下一跳标签转发表
dis mpls ilm:查看
route recursive-lookup tunnel:开启非标签公网GBP路由迭代到LSP隧道中
ttl propagate:普通模式
undo ttl propagate:管道模式边栏推荐
- Closures and decorators
- 正则表达式
- redis安装,集群部署与常见调优
- Error reporting: SQL syntax error in flask. Fields in SQL statements need quotation marks when formatting
- Google Play APK 上传其他国际应用商店
- Canal real-time parsing MySQL binlog data practice
- Thread lock and its ascending and descending levels
- log4j动态加载配置文件
- Recommended Spanish translation of Beijing passport
- Docuware mobile labor solution can help you build a new productivity model: anytime, anywhere, any device
猜你喜欢

Intel带你初识视觉识别--OpenVINO

redis安装,集群部署与常见调优

地下水、土壤、地质、环境人看过来

20220728 sorting strings that are not pure numbers
![[Jenkins' notes] introduction, free space; Continuous integration of enterprise wechat; Allure reports, continuous integration of email notifications; Build scheduled tasks](/img/0f/f75603616bd54039f8ccfa3e024768.png)
[Jenkins' notes] introduction, free space; Continuous integration of enterprise wechat; Allure reports, continuous integration of email notifications; Build scheduled tasks

Beginner's Guide to electronic bidding

一元函数积分学之1__不定积分

FLV文件简介

Groundwater, soil, geology and environment

J9数字论:什么因素决定NFT的价值?
随机推荐
SQL injection of DVWA
Principle and usage setting of large page memory
MySQL time is formatted by hour_ MySQL time format, MySQL statement queried by time period [easy to understand]
Visual full link log tracking
Tupu software appeared at the 2022 Fuzhou digital Expo to jointly create a new digital era
mysql分表之后怎么平滑上线?
DocuWare 移动劳动力解决方案可帮助您构建新的生产力模式:随时随地、任何设备
Oozie job scheduling
Teach you a text to solve the problem of JS digital accuracy loss
Error reporting: SQL syntax error in flask. Fields in SQL statements need quotation marks when formatting
Learning summary of time complexity and space complexity
PlatoFarm社区生态福音,用户可借助Elephant Swap获得溢价收益
(perfect solution) why is the effect of using train mode on the train/val/test dataset good, but it is all very poor in Eval mode
redis安装,集群部署与常见调优
地下水、土壤、地质、环境人看过来
全面升级,淘宝/天猫api接口大全
Univariate function integration 1__ Indefinite integral
Google Play APK 上传其他国际应用商店
FLV文件简介
Flash reports an error: type object 'news' has no attribute' query 'the view name is duplicate with the model name