当前位置:网站首页>Hcip day 14 (MPLS protocol)
Hcip day 14 (MPLS protocol)
2022-07-02 01:08:00 【Enron tears】
Catalog
MPLS( Multiprotocol label switching )
Optimization process of packet switching
MPLS( Multiprotocol label switching )
Packet exchange
Data consists of packets , In each node of the network , The best way to reach the goal , That is, the process of routing and forwarding .
1、 Check two tables , That is, routing table and ARP Cache table .
2、 Matching principle of routing table ( The longest match principle ).
3、 Recursive search .
4、IP Baotou variable length , That is, it can only be processed by software .
Control level : The flow direction of data flow in the routing protocol , The purpose is to obtain the routing information of unknown network segments , Generate routing table .
Data level : Based on the complete routing table of the equipment (FIB), To forward specific data to the target network segment . The direction is just opposite to the control level .
Label switching
Between two-layer package and three-layer package , Add a label that has a mapping relationship with the routing entry , Then maintain a record correspondence and forwarding interface table , Then carry the tag data to the device , You will see the label first , Then forward based on the maintained table , Second, no longer look at the third floor IP data . Because the label itself is short and fixed length , Therefore, the forwarding efficiency will be higher than that of packet switching . However, the label exchange process requires the action of pressing and ejecting labels , Therefore, the overall improvement of packet switching efficiency is not obvious .
Control level : be based on FEC Assign tags , And get other LSR Yes, the same FEC Assigned tags . Record locally LIB In the table , combining FIB Table to generate LFIB surface .( The functions of the control level can be completed through static manual configuration , It can also be done through dynamic protocol --- LDP agreement : Label distribution agreement .)
Data level : The device is based on LFIB surface , Forward according to the tag .
Optimization process of packet switching
1、 Process exchange : The earliest packet switching , That is, every packet coming to the device needs to be based on the target IP Check the routing table and ARP Cache table for forwarding .
2、 Fast packet switching : Stream based packet switching , One route, multiple exchanges --- Only the first packet needs to perform the packet exchange process .
3、 Cisco express exchange (Cisco Express Forwading): namely CEF, For routing tables and ARP Pre read the contents of the cache table ( The lines in the routing table that need recursive search are recursive ) Recorded in the CEF In the table . And this CEF Tables can support hardware processing .
although CEF It's Cisco's proprietary technology , However, various manufacturers have developed their own express exchange technology based on the principle . When the guard equipment is transmitting data , You are not looking at the routing table , It is FIB surface ( Forwarding information database ), This table supports hardware processing and forwarding .
MPLS In fact, it is a label switching technology developed together with packet switching . Because tag generation needs to identify the three-tier protocol , and MPLS It's called multiprotocol label switching , Because it can recognize and compatible with a variety of three-tier protocols .
MPLS Main application areas :
1、 Used to solve BGP The routing black hole of
2、MPLS-VPN
3、MPLS-TE( Flow engineering ), It can be simply understood as controlling the forwarding path of traffic .

function MPLS A network of devices , We can call it a MPLS Domain . All running in the domain MPLS All devices can be called LSR( Label switching router ).
This label is generated by each router based on the routing entries in its own routing table , It's the personal behavior of land carriers .
stay MPLS in , We call packets with the same characteristics FEC( Equivalent forwarding class ), It is simply understood that all data packets matching the same route entry belong to the same FEC, One FEC Assign a label .
LIB surface ( Label information table )
LFIB surface ( Tag information forwarding table ), yes LIB Table and FIB The product of surface binding , The main record is the corresponding relationship between the tag number and the outgoing interface and the next hop .
In the whole process , all MPLS In domain LSR Deal with yourself for a FEC In addition to the generated tags, you need to get other LSR Yes, the same FEC Assigned tags .
Combined with the above figure to analyze :
R1 This device is for entering MPLS The data in the field is pressed into the label , So we call such a device : Inbound LSR(Ingress LSR)
In the process ,R2 Completed a label replacement action , In this way LSR We call it : transit LSR(transit LSR)
R4 yes MPLS A boundary of a field , What is completed is the pop-up action of the label , In this way LSR We call it : To play LSR(egress LSR)
The path of data flow at the whole data level is R1-R2-R3-R4, We call this path LSP( Label switching path )
Generally one FEC It will correspond to a LSP. Particular attention :LSP It's directional , If it is necessary to realize two-way data interworking , You have to build... In two directions LSP Talent .LSP How to build it : static state 、 dynamic LDP

LABEL:20 position , The value range is 0-2 Of 20 Power . We call the value range of tags as tag space , The label space of each device is independent .
0-15, Special tag value , We usually don't use these labels when distributing , Because they have a special meaning
16-1023, Generally used for static LSP Build and use
1023-2 Of 20 Power ,LDP And the range of tag numbers used by protocols that can dynamically assign tags
EXP: Occupy 3 position , Mainly for strategy . In general 000, It can be understood as priority , The greater the numerical , The higher the priority , Can be forwarded first .
S: Occupy 1 position ( At the bottom of the stack ), We call the ordered sequence of tag headers as tag stack . This bit is 1, It means the last label , by 0, It means that there are subsequent labels to be processed .
TTL: Is equivalent to TTL The value is counted in a different position , The function and purpose are the same .
边栏推荐
- The first "mobile cloud Cup" empty publicity meeting, looking forward to working with developers to create a new world of computing!
- AIX存储管理之逻辑卷的创建及属性的查看和修改
- Global and Chinese markets for supply chain strategy and operation consulting 2022-2028: Research Report on technology, participants, trends, market size and share
- 工作中非常重要的测试策略,你大概没注意过吧
- PLC Analog input analog conversion FB s_ ITR (Mitsubishi FX3U)
- Leetcode skimming: binary tree 03 (post order traversal of binary tree)
- Deb file installation
- Comprehensive broadcast of global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- 969 interlaced string
- New version of free mobile phone, PC, tablet, notebook four terminal Website thumbnail display diagram online one click to generate website source code
猜你喜欢

Review notes of compilation principles

Leetcode skimming: binary tree 01 (preorder traversal of binary tree)

Leetcode skimming: stack and queue 01 (realizing queue with stack)

Leetcode skimming: stack and queue 02 (realizing stack with queue)

2023 Lexus ES products have been announced, which makes great progress this time

Promise and modular programming
![[eight sorts ②] select sort (select sort, heap sort)](/img/4b/da0d08230391d6ee48cd8cfd2f7240.png)
[eight sorts ②] select sort (select sort, heap sort)

AIX存储管理之卷组属性的查看和修改(二)

工作中非常重要的测试策略,你大概没注意过吧

Keepalived introduction and installation
随机推荐
Global and Chinese markets for distributed generation and energy storage in telecommunications networks 2022-2028: Research Report on technology, participants, trends, market size and share
With the acquisition of Xilinx, AMD is more than "walking on two legs" | Jiazi found
What is commercial endowment insurance? Is commercial endowment insurance safe?
Global and Chinese market of collaborative applications 2022-2028: Research Report on technology, participants, trends, market size and share
970 golang realizes the communication between multithreaded server and client
Global and Chinese markets of beverage seasoning systems 2022-2028: Research Report on technology, participants, trends, market size and share
【八大排序③】快速排序(动图演绎Hoare法、挖坑法、前后指针法)
cookie、session、tooken
About asp Net core uses a small detail of datetime date type parameter
[conference resources] the Third International Conference on Automation Science and Engineering in 2022 (jcase 2022)
King combat power query renamed toolbox applet source code - with traffic main incentive advertisement
Barbie q! How to analyze the new game app?
excel数据透视表
How to extract login cookies when JMeter performs interface testing
What skills does an excellent software tester need to master?
Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)
How does schedulerx help users solve the problem of distributed task scheduling?
Datawhale community blackboard newspaper (issue 1)
Two TVs
Leetcode question brushing: stack and queue 07 (maximum value of sliding window)