CN108183858A - A kind of routing introducing method and device - Google Patents

A kind of routing introducing method and device Download PDF

Info

Publication number
CN108183858A
CN108183858A CN201711429737.5A CN201711429737A CN108183858A CN 108183858 A CN108183858 A CN 108183858A CN 201711429737 A CN201711429737 A CN 201711429737A CN 108183858 A CN108183858 A CN 108183858A
Authority
CN
China
Prior art keywords
equipment
evpn
esi
routing
routings
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711429737.5A
Other languages
Chinese (zh)
Other versions
CN108183858B (en
Inventor
陈建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201711429737.5A priority Critical patent/CN108183858B/en
Publication of CN108183858A publication Critical patent/CN108183858A/en
Application granted granted Critical
Publication of CN108183858B publication Critical patent/CN108183858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The application provides a kind of routing introducing method and device, and this method is applied to the local end PE equipment in EVPN networkings, and this method is:Obtain the common RT and ESI of opposite end PE equipment;When the common RT of the opposite end PE equipment and the common RT of local end PE equipment are there are during identical RT, the ES RT of the corresponding ESI are generated according to the ESI of the opposite end PE equipment;When the RT carried in the EVPN routings received is matched with the generated ES RT, EVPN routings are introduced into the MAC address entries of local end PE equipment and/or IP list items.Pass through the above method, as long as local end PE equipment determines to have in the EVPN received routings RT identical with the generated ES RT in local, EVPN routings can be introduced directly into, it is reduced so that introducing and routeing consumed time, and introduces and route the consumed time and no longer influenced by the RT quantity of PE device configurations.

Description

A kind of routing introducing method and device
Technical field
This application involves field of communication technology more particularly to a kind of routing introducing methods and device.
Background technology
In EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network), in order to carry The bandwidth availability ratio of high link and enhancing network reliability, the host (either virtualizing empty machine) of a usual user or It is the private network of a user, can be connected to by multilink on more VTEP in EVPN networks, this is known as belong to more Access.
Common routing way of reference is in EVPN:PE (Provider Edge, Provider Edge) equipment is from CE After (Customer Edge, customer network edge) equipment acquires the routing of CE equipment local, increase RD (Route in routing Distinguisher, route-distinguisher) and RT (Route Target, route target), then it is distributed to other PE.Different VPN's Routing is distinguished in public network by RD, and the routing between different CE equipment carries out introducing control using RT.PE equipment is connecing When receiving the routing of other PE equipment publications, the RT carried in routing is compared with the RT being locally configured, only in the two There are can just introduce the routing during identical RT values.
Invention content
The application provides a kind of method and apparatus for being rapidly introduced into routing.
Specifically, the application is achieved by the following technical solution:
The application is in a first aspect, provide a kind of routing introducing method, applied to the local end PE equipment in EVPN networkings, institute The method of stating includes:
Obtain the common RT and ESI of opposite end PE equipment;
When the common RT of the opposite end PE equipment and the common RT of local end PE equipment are there are during identical RT, according to described right Hold the ES RT of the corresponding ESI of ESI generations of PE equipment;
When the RT carried in the EVPN routings received is matched with the generated ES RT, EVPN routings are drawn Enter into the MAC address entries of local end PE equipment and/or IP list items.
The application second aspect provides a kind of routing introducing device, applied to the local end PE equipment in EVPN networkings, institute Device is stated to include:
Acquiring unit, for obtaining the common RT of opposite end PE equipment and ESI;
ES RT generation units, for working as the common RT of the common RT of the opposite end PE equipment and local end PE equipment, there are phases With RT when, the ES RT of the corresponding ESI are generated according to the ESI of the opposite end PE equipment;
Routing introduces unit, for when the RT that carries is matched with the generated ESRT in the EVPN routings received, EVPN routings are introduced into the MAC address entries of local end PE equipment and/or IP list items.
As can be seen from the above technical solutions, in the application, local end PE equipment generates one according to the ESI of opposite end PE equipment Special RT, opposite end PE equipment generate identical special RT also based on the ESI of itself.Later, it for opposite end PE equipment, can send out This special RT is carried in the EVPN routings of cloth;For local end PE equipment, as long as determining there is RT and this in the EVPN received routings The generated special RT in ground is identical, can be introduced directly into EVPN routings so that and it introduces and route consumed time reduction, and Introduce routing the consumed time is no longer influenced by the RT quantity of PE device configurations.
Description of the drawings
Fig. 1 is a kind of EVPN networking schematic diagrams;
Fig. 2 is method flow diagram provided by the embodiments of the present application;
Fig. 3 is the interactive process figure between local end PE equipment provided by the embodiments of the present application and opposite end PE equipment;
Fig. 4 is structure drawing of device provided by the embodiments of the present application;
Fig. 5 is the hardware structure diagram of Fig. 4 shown devices provided by the embodiments of the present application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application. It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
It is a kind of technology that CE is supported to be connected to multiple PE that EVPN belongs to more, and EVPN belongs to more introduces ES (Ethernet Segment, ethernet segment) concept:When a website is linked into EVPN networks by multilink, these links form one ES;Each of the links use identical ESI (Ethernet Segment Identifier, Ethernet segment mark on corresponding VTEP Know symbol) mark.Such as in EVPN networkings shown in Fig. 1, just for more ownership to PE1 and PE2, CE1 is connected to PE1's and PE2 to CE1 Link passes through ESI (such as es1) unique mark.
There are many types for EVPN routings, and different types of EVPN routings can realize different functions, defined at present EVPN routings have eight classes.For example, (hereinafter referred to as two classes are route, other types of EVPN routings for the second class EVPN routings Similar abbreviation can be used), i.e. MAC/IP notice routings (MAC/IP Advertisement Route), available for synchronizing MAC/ IP list items;Three classes routing can be used for creating tunnel;The routing of five classes can be used for synchronizing IP network section routing.
Here illustrate a kind of incorporation way of two class routing in EVPN networkings by taking CE1, PE2 and PE3 in Fig. 1 as an example: After PE2 acquires MAC (Medium Access Control, media access control) address of CE1, two classes can be issued to PE3 Routing includes RD, RT and next-hop of the MAC Address of CE1, the ESI and PE2 of CE1 in the routing of two classes.PE3 receives two class After routing, the RT during which is route is compared with the RT being locally configured, and just to be introduced as long as there are identical RT in the two This two class is route.Assuming that the RT that the routing of two classes carries is 1:1、2:2、3:3, the PE3 RT being locally configured are 3:3、4:4, then By can relatively determine that there are identical RT 3 in the two:3, so the CE1 that PE3 is carried during can this two class be route MAC Address is introduced into RT 3:The MAC address entries of 3 corresponding VSI (Virtual Switch Interface, virtual switch interface) In.
The shortcomings that this routing incorporation way is the every EVPN received to be route, PE equipment is required for the EVPN It route each RT carried the and RT that is locally configured and compare to determine if to introduce EVPN routings and by the EVPN roads By being introduced into which local forwarding instance;When the RT being configured in PE equipment is more, when introducing routing by consuming longer Between.
To solve this problem, this application provides a kind of routings to be rapidly introduced into scheme, in the present solution, local end PE equipment root A special RT is generated according to the ESI of opposite end PE equipment, opposite end PE equipment generates identical special RT also based on the ESI of itself.It Afterwards, for opposite end PE equipment, this special RT can be carried in the EVPN of publication routings;For local end PE equipment, as long as really Surely there is RT identical with local generated special RT in the EVPN routings received, EVPN routings can be introduced directly into so that It introduces and route consumed time reduction, and introduce and route the consumed time no longer by the shadow of the RT quantity of PE device configurations It rings.For ease of differentiation, will ES RT be known as based on the special RT that ESI is generated below, traditional RT is known as common RT, it will be common RT and ES RT are referred to as RT.
Technical scheme is illustrated with each embodiment with reference to the accompanying drawings of the specification.
Referring to Fig. 2, in one embodiment, any local end PE equipment in EVPN networkings performs such as in the process of running Lower step:
Step 201:Local end PE equipment obtains the common RT and ESI of opposite end PE equipment.
Step 202:When the common RT of opposite end PE equipment and the common RT of local end PE equipment are there are during identical RT, local end PE Equipment generates the ES RT of the corresponding ESI according to the ESI of opposite end PE equipment.
ES RT and common RT are 8 bytes, wherein preceding 2 bytes define the type of attribute, rear 6 bytes include The value of attribute.The property value of ES RT is 0x0602, and the property value of common RT is 0x0002 or 0x0102.
As one embodiment, ES RT can be generated by following steps:6 words before being extracted from the ESI of 10 bytes Section, is spliced with property value 0x0602, obtains ES RT.
Such as, it is assumed that an ESI is 0x12345678901234567890, then the ES of 8 bytes can be generated according to this ESI RT=0x0602 123456789012.
Step 203:When the RT carried in the EVPN routings received is matched with generated above-mentioned ES RT, local end PE is set It is standby that EVPN routings are introduced into local MAC address entries and/or IP list items.
So far, flow shown in Fig. 2 is completed.
The routing introducing method that can be seen that the application offer by flow shown in Fig. 2 is logical compared to above-described The method for comparing that the common RT carried and the common RT being locally configured carry out routing introducing in EVPN routings is crossed, is mainly had following excellent Gesture:1) when sending EVPN routings, only an ES RT need to be carried in EVPN routings, it is no longer necessary to a large amount of common RT is carried, The byte number that EVPN routings occupy can be reduced in this way, and then transmission EVPN can be saved and route consumed network bandwidth;2) When deciding whether to introduce EVPN routings, the RT and local generated ES RT during only EVPN need to be route are compared, in this way It can reduce to introduce and route the consumed time, and introduce and route the consumed time no longer with the common RT numbers of PE device configurations The growth of amount and increase.
It should be noted that can be applied not only to EVPN as shown in Figure 1 more for the routing introducing method that provides of the application Belong to scene;Under the non-multi ownership scenes of EVPN, if being configured with effective ESI in some PE equipment, this Shen can also be used The routing introducing method that please be provided enables opposite end PE equipment be rapidly introduced into the EVPN routings of this PE equipment publication.
In order to make those skilled in the art more clear and clear, below in conjunction with Fig. 3, pass through local end PE equipment and opposite end PE Interaction between equipment illustrates the specific implementation process of method shown in Fig. 2.
Step 301:Local end PE equipment judges that the whether enabled routing based on ES of this equipment introduces strategy.
Here judge that the whether enabled routing based on ES of this equipment introduces strategy, that is, judge whether this equipment supports basis ESI generates ES RT and the ability of routing introducing and transmission is carried out according to ES RT.
Step 302:If enabled, local end PE equipment is to opposite end PE equipment transmitting capacity negotiation messages.
In the present embodiment, capability negotiation message be used to indicate send this capability negotiation message PE equipment enable based on ES's Routing introduces strategy.
Here capability negotiation message can simply enumerate two kinds here there are many realization method:
Mode one:It is realized by existing type of message.
For by two class route implementing capability negotiation message.Local end PE equipment can send two classes to opposite end PE equipment Routing, wherein increasing new attribute in extended community attribute (Ext-Community) field of two classes routing, PE equipment passes through this A new attribute represents that this equipment enables the routing based on ES and introduces strategy;RT in the routing of two classes can be filled with one in advance If RT values, this preset RT value can be the overall situation arranged in advance be applicable in for unconditionally introduce capability negotiation disappear The RT values of breath, the capability negotiation message that all PE equipment are externally sent all carry this preset RT value;RT is removed in the routing of two classes With other fields outside aforementioned capabilities attribute, as RD, ESI, VLAN ID (i.e. Ethernet tag ID (Ethernet Tag ID)), MAC Address length (MAC Address Length), MAC Address, IP address length (IP Address Length), IP address Etc. fields fill out as invalid value (such as fill out is 0).
Based on mode one, opposite end PE equipment is after receiving and introducing a two classes routing, if it find that in the routing of this two class New attribute in extended community attribute field is virtual value, and other fields in addition to RT and this new attribute are invalid value, then This two class received routing is considered capability negotiation message, determines that the PE equipment for sending this capability negotiation message enables and is based on The routing of ES introduces strategy.
Mode two:It is realized by new type of message.
For example, a kind of type of message can be increased newly, this newly-increased type of message is known as nine class roads for the time being for convenience of description By.In one implementation, in order to allow capability negotiation message here and the ES that occurs hereinafter introduce routing can be multiplexed it is same A kind of type of message, the message format that can define the routing of nine classes include RD, RT, ESI and VLAN id field.When by this During nine class route implementing capability negotiation message of form, wherein the RT of nine classes routing can be filled with a preset RT value, this A preset RT values can be the RT values for unconditionally introducing capability negotiation message that the overall situation arranged in advance is applicable in;Nine RD, ESI and VLAN ID in class routing then fills into invalid value.
Step 303:After opposite end PE equipment receives the capability negotiation message of local end PE equipment transmission, judge whether itself enables Routing based on ES introduces strategy and itself whether is configured with ESI.
Step 304:If opposite end PE equipment determines that itself enabled routing based on ES introduces strategy and is configured with ESI, Local end PE equipment is sent to by the ESI of itself configuration and with the associated common RT and VLAN ID of ESI.
If it should be noted that VLAN is not configured for ESI in the PE equipment of opposite end, then PE equipment in opposite end is sent here It is an invalid value to local end PE equipment and the associated VLAN ID of ESI.
As an example it is assumed that the interface rag0/1 of PE2 connections CE1 is three layer interface in Fig. 1, the following institute of configuration on PE2 Show:
Above-mentioned configuration represents:Three layer interface rag0/1's on PE2 is identified as ES 1, and three layer interface rag0/1 is associated with It is RD 2 that vsi 1, vsi 1, which is associated with Vxlan1 and 1 corresponding RD of Tunnel12, vsi, and 1 corresponding RT of vsi are 1:1 2:2 3: 3。
Based on above-mentioned configuration, PE2 confirms that the local enabled routing based on ES is drawn after the capability negotiation message of PE3 is received Enter strategy, can by ES 1 and with the associated common RT 1 of ES 1:1 2:2 3:3rd, RD2 is sent to PE3, since ES1 is identified Three layer interface rag0/1 VLAN is not configured, therefore PE2 is an invalid value response to 1 associated VLAN ID of PE3 and ES.
For another example, if the interface bag0/1 of PE2 connections CE1 is two layer interface in Fig. 1, the configuration on PE2 is as follows:
ES fast-import//enabled routing based on ES introduces strategy
Above-mentioned configuration represents:Two layer interface bag0/1's on PE2 is identified as ES 2, has under two layer interface bag0/1 Vlan 10 and Vlan 20, wherein Vlan10 are associated with vsi 2, and Vlan 20 is associated with vsi 3.
Based on above-mentioned configuration, PE2 confirms that the local enabled routing based on ES is drawn after the capability negotiation message of PE3 is received Enter strategy, can by ES 2 and with the associated common RT 1 of ES 2:1 2:2 3:3rd, Vlan 10 and Vlan20, RD2:2 and RD 3:3 are sent to PE3.
For ease of description, the present embodiment will be responsible for transmitting the ESI of PE equipment in step 304, common RT and VLAN ID disappear Breath is known as ES and introduces routing.ES introduces routing and again may be by existing type of message or new type of message to realize.
Assuming that by existing two classes route implementing ES introduce route, then can by the RD being configured in PE equipment, common RT, ESI and VLAN ID are inserted in RD, RT, ESI and VLAN id field of two classes routing;Meanwhile the MAC Address during two classes are route This 4 fields of length, MAC Address, IP address length and IP address fill into invalid value.
Assuming that realize that ES introduces routing, the message lattice of nine classes routing by the type of message (routing of such as nine classes) newly defined Formula as described above, including RD, RT, ESI and VLAN id field.When the nine class route implementing ES introducings road by this form By when, only the RD being configured in PE equipment, common RT, ESI and VLAN ID need to be inserted nine classes routing respective field in.
If it should be noted that being configured with multiple effective ESI in the PE equipment of opposite end, opposite end PE equipment can be directed to Each ESI sends corresponding ES and introduces routing respectively.If opposite end PE equipment without the enabled routing based on ES introduce strategy or Person is configured without the ESI of effect, then does not respond.
Step 301 to step 304 describes a unidirectional capability negotiation procedure;Similarly, opposite end PE equipment also can be to Local end PE equipment transmitting capacity negotiation message, local end PE equipment can also respond the ESI that itself is configured the capability negotiation message, general Logical RT and VLAN ID introduce routing by ES and are sent to opposite end PE equipment.Below mainly from the angle of local end PE equipment, description ES RT generating process and the routing introducing process based on ES RT.
Step 305:Local end PE equipment receive opposite end PE equipment ESI and with the associated common RT and VLAN ID of ESI Afterwards, judge that the common RT and the common RT of local end PE equipment of opposite end PE equipment whether there is identical RT.
Step 306:If there is identical RT, then local end PE equipment is according to the corresponding ESI of the ESI of opposite end PE equipment generations ES RT, search the corresponding forwarding instance marks of identical with this RT in local end PE equipment, and generate routing and introduce list item.
Here the routing generated introduces list item and includes occurrence and forwarding instance corresponding with occurrence mark, wherein matching For opposite end PE equipment ESI and with the associated VLAN ID of the ESI.Here forwarding instance mark includes two layers of forwarding instance Identify (such as VSI marks) and three layers of forwarding instance mark (such as VPN marks).
As described above, PE equipment in opposite end can introduce itself is configured for routing ESI, common RT and VLAN by ES ID is sent to local end PE equipment.One ES introduces routing and only carries an ESI, but can carry multiple VLAN ID.
Assuming that it is esi1 that certain ES, which is introduced into the ESI carried in routing, the VLAN ID of carrying include vlan id1 and vlan Id2, the ES introduce common RT and local end PE equipment that routing carries there are identical RT and the corresponding forwardings of the identical RT in fact Example is identified as vsi1 and vpn1, then the routing generated introduces list item can be with shown in reference table 1 or table 2.
Table 1
esi1+vlan id1 vsi1、vpn1
esi1+vlan id2 vsi1、vpn1
Table 2
Esi1+vlan id1 or esi1+vlan id2 vsi1、vpn1
Step 307:When local end PE equipment receives EVPN routings, judge whether there is RT to be set with local end PE in EVPN routings Standby generated ES RT match, if there is then EVPN routings are introduced into the MAC address entries of this equipment and/or IP list items.
It, then can should if instead there is no RT to match with the generated ES RT of local end PE equipment in EVPN routings The RT that EVPN routings carry is matched with the common RT of local end PE equipment;If RT and local end PE equipment that EVPN routings carry Common RT there are identical RT, then EVPN routings are introduced into the corresponding MAC address entries of identical RT and/or IP list items In.
In step 307, when determining to there are the RT and already present ES RT of local end PE equipment to match in EVPN routings, The matched routings of ESI and VLAN ID carried with EVPN routings can be searched and introduce list item.
From above, it is found that ES RT were generated according to preceding 6 bytes of ESI, this calculation causes according to different ESI may generate identical ES RT.Such as there are two ESI be respectively 0x12345678901233333333 and 0x12345678901244444444 is 0x0,602 123456789012 according to the two ESI ES RT generated.ES RT Nonuniqueness lead to the feelings that the ES RT for having the generation of RT and local end PE equipment in EVPN routings are determined in step 307 match Under condition, ESI the and VLAN ID carried according to EVPN routings are but searched less than matched routing introducing list item.For this feelings Condition, the application propose solution below:
If finding the matched routings of ESI and VLAN ID carried with EVPN routings introduces list item, which is route In the MAC address entries and/or IP list items that are introduced into corresponding to the forwarding instance mark that matched routing is introduced into list item;
If not finding matched routing introduces list item, the RT and the common RT of local end PE equipment that EVPN routings are carried It is matched, if the EVPN route the common RT of the RT and local end PE equipment carried there are identical RT, by the EVPN roads By being introduced into the corresponding MAC address entries of identical RT and/or IP list items.Optionally, if follow-up local end PE equipment generates again After new routing introduces list item, can introduce list item based on newly-generated routing can match this ES RT of this equipment But can not find matching routing introduce list item EVPN routing it is counter looked into, with determine whether by this EVPN route be introduced into just In true MAC address entries and/or IP list items.
As a kind of realization method, EVPN routings are being introduced into the MAC address entries of this equipment and/or IP list items by the present embodiment When middle, following several situations can be divided into:
One, it, can should when EVPN routings are invalid value for the IP address that the routing of two classes and EVPN routings carry EVPN routings are introduced into the MAC address entries of this equipment;
Two, it, can should when EVPN routings are virtual value for the IP address that the routing of two classes and EVPN routings carry EVPN routings are introduced into the MAC address entries and IP list items of this equipment simultaneously;
Three, when EVPN routings is the routings of five classes, which can be route to the IP list items for being introduced into this equipment.
In addition, it is contemplated that the future may appear other types of EVPN routings, then the other types occurred for future EVPN routing, if the EVPN routing in carry effective ESI, then it is also contemplated that using the application provide routing draw Enter method.
The method provided above the application is described.The device provided below the application is described:
Referring to Fig. 4, Fig. 4 is the structure drawing of device that the application provides.The local end PE that the device is applied in EVPN networkings is set It is standby.As shown in figure 4, the device includes:
Acquiring unit 401, for obtaining the common RT of opposite end PE equipment and ESI.
ES RT generation units 402 exist for working as the common RT of the opposite end PE equipment and the common RT of local end PE equipment During identical RT, the ESRT of the corresponding ESI is generated according to the ESI of the opposite end PE equipment.
Routing introduces unit 403, for being matched as the RT carried in the EVPN routings received with the generated ES RT When, EVPN routings are introduced into the MAC address entries of local end PE equipment and/or IP list items.
In wherein a kind of embodiment, described device can also include routing and introduce list item generation unit;The acquisition Unit 401 is additionally operable to obtain the associated VLAN ID of ESI with opposite end PE equipment.The routing introduces list item generation unit, uses In when the common RT of opposite end PE equipment and the common RT of local end PE equipment there are during identical RT, search in local end PE equipment with institute State the corresponding forwarding instance marks of identical RT;According to the ESI of the opposite end PE equipment got and with the associated VLAN ID of ESI And the forwarding instance mark generation routing found introduces list item, the routing introduces list item and includes occurrence and and occurrence Corresponding forwarding instance mark, wherein occurrence for the opposite end PE equipment ESI and with the associated VLAN ID of ESI.
In wherein a kind of embodiment, the routing introduces unit 403, can be used for searching and be taken with EVPN routings The matched routings of ESI and VLAN ID of band introduce list item;If finding, EVPN routings are introduced into matched routing and are drawn Enter in MAC address entries and/or the IP list items corresponding to the forwarding instance mark in list item.
In wherein a kind of embodiment, the routing introduces unit 403, if can be also used for not finding and the EVPN It route the matched routings of the ESI and VLAN ID carried and introduces list item, then the RT and local end PE equipment carried EVPN routings Common RT matched;If the common RT of the RT that EVPN routing carries and local end PE equipment there are identical RT, EVPN routings are introduced into the corresponding MAC address entries of identical RT and/or IP list items.
In wherein a kind of embodiment, the acquiring unit 401 can be used for judging the whether enabled base of local end PE equipment Strategy is introduced in the routing of ES;If enabled, to the opposite end PE equipment transmitting capacity negotiation message, the capability negotiation disappears Breath, which is used to indicate, to be sent the local end PE equipment of the capability negotiation message and enables routing based on ES and introduce strategy so that receipts To the capability negotiation message the opposite end PE equipment determine itself routing based on ES introduce strategy and from When body is configured with ESI, by the ESI of itself configuration and it is sent to the local end PE with the associated common RT and VLAN ID of ESI and sets It is standby.
In wherein a kind of embodiment, the routing introduces unit 403, and can be used for when EVPN routings is two classes When the IP address that routing and EVPN routings carry is invalid value, EVPN routings are introduced into the MAC of local end PE equipment In list item;When it is virtual value that the EVPN, which is route as the IP address of the routing of two classes and EVPN routing carryings, by described in EVPN routings are introduced into the MAC address entries and IP list items of local end PE equipment simultaneously;It, will when EVPN routings is the routings of five classes The EVPN routings are introduced into the IP list items of local end PE equipment.
The function of modules and the realization process of effect specifically refer to and step are corresponded in the above method in above device Realization process, details are not described herein.
It should be noted that it is schematical, only a kind of logic function to the division of unit in the embodiment of the present invention It divides, can there is other dividing mode in actual implementation.Each functional unit in embodiments herein can be integrated in In one processing unit or each unit is individually physically present, can also two or more units be integrated in one In a unit.The form that hardware had both may be used in above-mentioned integrated unit is realized, can also use the form of SFU software functional unit It realizes.
So far, the description of Fig. 4 shown devices is completed.
Referring to Fig. 5, the application also provides a kind of hardware architecture diagram of PE equipment, which includes:Communication interface 501, Processor 502, memory 503 and bus 504;Wherein, communication interface 501, processor 502 and memory 503 pass through bus 504 Complete mutual communication.
Wherein, communication interface 501, for communicating with other PE equipment.Processor 502 can be a central processing unit (CPU), memory 503 can be nonvolatile memory (non-volatile memory), and be stored in memory 503 There is routing to introduce logical order, processor 502 can perform the routing stored in memory 503 and introduce logical order, to realize The function of local end PE equipment in flow shown in above-mentioned Fig. 2 and Fig. 3.
So far, hardware configuration description shown in fig. 5 is completed.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.

Claims (12)

1. a kind of routing introducing method, which is characterized in that applied to the local terminal service in Ethernet Virtual Private Network EVPN networkings Provider's edge PE equipment, the method includes:
Obtain the common route target RT of opposite end PE equipment and ethernet segment identifier ESI;
When the common RT of the opposite end PE equipment and the common RT of local end PE equipment are there are during identical RT, according to the opposite end PE The ES RT of the corresponding ESI of ESI generations of equipment;
When the RT carried in the EVPN routings received is matched with the generated ES RT, EVPN routings are introduced into In the MAC address entries of local end PE equipment and/or IP list items.
2. the method as described in claim 1, which is characterized in that in the MAC that EVPN routings are introduced into local end PE equipment Before in list item and/or IP list items, the method further includes:
Obtain the associated VLAN ID of ESI with opposite end PE equipment;
When the common RT of opposite end PE equipment and the common RT of local end PE equipment there are during identical RT, search in local end PE equipment with The corresponding forwarding instance mark of the identical RT;
According to the ESI of the opposite end PE equipment got and VLAN ID associated with ESI and the forwarding instance found mark life List item is introduced into routing, the routing introduces list item and is identified comprising occurrence and forwarding instance corresponding with occurrence, wherein With item for the opposite end PE equipment ESI and with the associated VLANID of ESI.
3. method as claimed in claim 2, which is characterized in that described that EVPN routings are introduced into local end PE equipment In MAC address entries and/or IP list items, including:
It searches the matched routings of ESI and VLAN ID carried with EVPN routings and introduces list item;
If finding, EVPN routings are introduced into corresponding to the matched forwarding instance mark for routeing and being introduced into list item In MAC address entries and/or IP list items.
4. method as claimed in claim 3, which is characterized in that the method further includes:
If not finding the matched routings of ESI and VLAN ID carried with EVPN routings introduces list item, by the EVPN roads It is matched by the RT carried with the common RT of local end PE equipment;
If the EVPN is route by RT and the common RT of local end PE equipment that the EVPN routings carry there are identical RT It is introduced into the corresponding MAC address entries of identical RT and/or IP list items.
5. the method as described in claim 1, which is characterized in that the common RT and ESI for obtaining opposite end PE equipment, including:
Judge that the whether enabled routing based on ES of local end PE equipment introduces strategy;
If enabled, to the opposite end PE equipment transmitting capacity negotiation message, the capability negotiation message is used to indicate transmission The local end PE equipment of the capability negotiation message enables the routing based on ES and introduces strategy so that receives the capability negotiation The opposite end PE equipment of message is determining that itself routing based on ES introduces strategy and when itself being configured with ESI, The local end PE equipment is sent to by the ESI of itself configuration and with the associated common RT and VLAN ID of ESI.
6. the method as described in claim 1, which is characterized in that EVPN routings are introduced into the MAC table of local end PE equipment In item and/or IP list items, including:
When EVPN routings are invalid value for the IP address that the routing of two classes and EVPN routings carry, by the EVPN roads By being introduced into the MAC address entries of local end PE equipment;
When EVPN routings are virtual value for the IP address that the routing of two classes and EVPN routings carry, by the EVPN roads By being introduced into simultaneously in the MAC address entries and IP list items of local end PE equipment;
When EVPN routings is the routings of five classes, EVPN routings are introduced into the IP list items of local end PE equipment.
7. a kind of routing introducing device, which is characterized in that applied to the local terminal service in Ethernet Virtual Private Network EVPN networkings Provider's edge PE equipment, described device include:
Acquiring unit, for obtaining the common route target RT of opposite end PE equipment and ethernet segment identifier ESI;
ES RT generation units, for working as the common RT of the common RT of the opposite end PE equipment and local end PE equipment, there are identical During RT, the ES RT of the corresponding ESI are generated according to the ESI of the opposite end PE equipment;
Routing introduces unit, for when the RT that carries is matched with the generated ESRT in the EVPN routings received, by institute EVPN routings are stated to be introduced into the MAC address entries of local end PE equipment and/or IP list items.
8. device as claimed in claim 7, which is characterized in that described device further includes routing and introduces list item generation unit;
The acquiring unit is additionally operable to obtain the associated VLAN ID of ESI with opposite end PE equipment;
The routing introduces list item generation unit, exists for working as the common RT of opposite end PE equipment and the common RT of local end PE equipment During identical RT, forwarding instance mark corresponding with the identical RT in local end PE equipment is searched;According to the opposite end got The ESI of PE equipment and VLAN ID associated with ESI and the forwarding instance mark generation routing found introduce list item, described Routing introduces list item and includes occurrence and forwarding instance corresponding with occurrence mark, and wherein occurrence is the opposite end PE equipment ESI and with the associated VLAN ID of ESI.
9. device as claimed in claim 8, which is characterized in that
The routing introduces unit, and table is introduced for searching the matched routings of ESI and VLAN ID carried with EVPN routings ;If finding, EVPN routings are introduced into the MAC corresponding to the matched forwarding instance mark for routeing and being introduced into list item In list item and/or IP list items.
10. device as claimed in claim 9, which is characterized in that
The routing introduces unit, if being additionally operable to not find the ESI carried with EVPN routings and the matched routings of VLANID List item is introduced, then is matched the RT that EVPN routings carry with the common RT of local end PE equipment;If the EVPN roads By the common RT of the RT that carries and local end PE equipment, there are identical RT, then EVPN routings are introduced into this identical RT pairs In the MAC address entries and/or IP list items answered.
11. device as claimed in claim 7, which is characterized in that
The acquiring unit, for judging that the whether enabled routing based on ES of local end PE equipment introduces strategy;If enabled, to The opposite end PE equipment transmitting capacity negotiation message, the capability negotiation message, which is used to indicate, sends the capability negotiation message The local end PE equipment enables the routing based on ES and introduces strategy so that the opposite end PE for receiving the capability negotiation message is set It is standby to determine that itself enabled routing based on ES introduces strategy and when itself being configured with ESI, by the ESI of itself configuration and The local end PE equipment is sent to the associated common RT and VLAN ID of ESI.
12. device as claimed in claim 7, which is characterized in that
The routing introduces unit, is for the IP address that the routing of two classes and EVPN routings carry for working as the EVPN routings During invalid value, EVPN routings are introduced into the MAC address entries of local end PE equipment;When the EVPN routing for two classes routing and When the IP address that the EVPN routings carry is virtual value, the EVPN is route to the MAC table for being introduced into local end PE equipment simultaneously In item and IP list items;When EVPN routings is the routings of five classes, EVPN routings are introduced into the IP tables of local end PE equipment .
CN201711429737.5A 2017-12-26 2017-12-26 Route introducing method and device Active CN108183858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711429737.5A CN108183858B (en) 2017-12-26 2017-12-26 Route introducing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711429737.5A CN108183858B (en) 2017-12-26 2017-12-26 Route introducing method and device

Publications (2)

Publication Number Publication Date
CN108183858A true CN108183858A (en) 2018-06-19
CN108183858B CN108183858B (en) 2020-12-29

Family

ID=62547015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711429737.5A Active CN108183858B (en) 2017-12-26 2017-12-26 Route introducing method and device

Country Status (1)

Country Link
CN (1) CN108183858B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661643A (en) * 2018-06-29 2020-01-07 瞻博网络公司 Performance monitoring support for CFM on EVPN
WO2020024828A1 (en) * 2018-08-01 2020-02-06 华为技术有限公司 Communication method, communication device and communication system
CN115277535A (en) * 2022-09-30 2022-11-01 紫光恒越技术有限公司 VPN routing processing method and device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984066A (en) * 2012-12-14 2013-03-20 杭州华三通信技术有限公司 Method and equipment for route distribution
US8953590B1 (en) * 2011-03-23 2015-02-10 Juniper Networks, Inc. Layer two virtual private network having control plane address learning supporting multi-homed customer networks
CN105337865A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, apparatus and system for establishing forwarding table item
US9397931B1 (en) * 2013-08-16 2016-07-19 Juniper Networks, Inc. Fast convergence in singly-homed ethernet virtual private networks
CN105991432A (en) * 2015-03-18 2016-10-05 丛林网络公司 Supplier rim router and method
CN106878137A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of route learning method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8953590B1 (en) * 2011-03-23 2015-02-10 Juniper Networks, Inc. Layer two virtual private network having control plane address learning supporting multi-homed customer networks
CN102984066A (en) * 2012-12-14 2013-03-20 杭州华三通信技术有限公司 Method and equipment for route distribution
US9397931B1 (en) * 2013-08-16 2016-07-19 Juniper Networks, Inc. Fast convergence in singly-homed ethernet virtual private networks
CN105337865A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, apparatus and system for establishing forwarding table item
CN105991432A (en) * 2015-03-18 2016-10-05 丛林网络公司 Supplier rim router and method
CN106878137A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of route learning method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
A. SAJASSI, ED.,ET AL.: ""RFC7432"", 《IETF》 *
E. ROSEN,ET AL.: ""RFC4364"", 《IETF》 *
P. MARQUES,ET AL.: ""RFC4684"", 《IETF》 *
王婷,等: ""BGP Add-path的研究与实现"", 《电子设计工程》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661643A (en) * 2018-06-29 2020-01-07 瞻博网络公司 Performance monitoring support for CFM on EVPN
CN110661643B (en) * 2018-06-29 2021-05-07 瞻博网络公司 Method, network device and medium for network management
WO2020024828A1 (en) * 2018-08-01 2020-02-06 华为技术有限公司 Communication method, communication device and communication system
US11611509B2 (en) 2018-08-01 2023-03-21 Huawei Technologies Co., Ltd. Communication method, communications device, and communications system
CN115277535A (en) * 2022-09-30 2022-11-01 紫光恒越技术有限公司 VPN routing processing method and device, electronic equipment and readable storage medium
CN115277535B (en) * 2022-09-30 2022-12-16 紫光恒越技术有限公司 VPN routing processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN108183858B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US20180375768A1 (en) Segment Routing Network Processing of Packets including Packets having a Multiple Segment Routing Header Packet Structure that Provides Processing and/or Memory Efficiencies
CN107547402B (en) Forwarding table generation method and device
CN108632098B (en) Flow classifier, service routing trigger, message processing method and system
CN105379197B (en) It establishes the method in tunnel, distribute method, equipment and the network system of label
WO2019105462A1 (en) Method and apparatus for sending packet, method and apparatus for processing packet, pe node, and node
CN103118149B (en) Communication control method between same tenant's server and the network equipment
US20080031263A1 (en) Method and apparatus for load balancing over virtual network links
CN109729012B (en) Unicast message transmission method and device
CN107645431B (en) Message forwarding method and device
CN101510855B (en) Method and apparatus for processing QinQ message
CN108259304B (en) Forwarding table item synchronization method and device
CN112187648B (en) Multicast message forwarding method and device
CN108306806B (en) Message forwarding method and device
CN112868214B (en) Coordinated load transfer OAM records within packets
EP4160950A1 (en) Method and apparatus for sending message, and network device, system and storage medium
CN108183858A (en) A kind of routing introducing method and device
US20150341263A1 (en) Associating internet protocol (ip) addresses with ethernet virtualisation interconnection (evi) links
WO2018058639A1 (en) Pseudo wire load sharing method and apparatus
WO2014059814A1 (en) Message forwarding between geographically dispersed network sites
CN108075969A (en) Message forwarding method and device
CN108718276A (en) A kind of message forwarding method and device
CN103490968A (en) Method and device for interconnecting across data centers in FCoE network
CN106209554B (en) message forwarding method and device for crossing virtual extensible local area network
CN109218176B (en) Message processing method and device
CN108306825A (en) A kind of equivalence forwarding-table item generation method and VTEP equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant