WO2023061069A1 - Procédé et appareil de traitement de paquet de routage, et support de stockage et appareil électronique - Google Patents

Procédé et appareil de traitement de paquet de routage, et support de stockage et appareil électronique Download PDF

Info

Publication number
WO2023061069A1
WO2023061069A1 PCT/CN2022/115496 CN2022115496W WO2023061069A1 WO 2023061069 A1 WO2023061069 A1 WO 2023061069A1 CN 2022115496 W CN2022115496 W CN 2022115496W WO 2023061069 A1 WO2023061069 A1 WO 2023061069A1
Authority
WO
WIPO (PCT)
Prior art keywords
variable
target
routing
information
indication information
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.)
Ceased
Application number
PCT/CN2022/115496
Other languages
English (en)
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of WO2023061069A1 publication Critical patent/WO2023061069A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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

Definitions

  • Embodiments of the present disclosure relate to the communication field, and in particular, relate to a routing message processing method, device, storage medium, and electronic device.
  • FIG. 1 is a schematic diagram of a network structure according to data packet processing in related technologies.
  • VXLAN VXLAN
  • PE1 Provide Edge, operator edge
  • PE2 nodes
  • PE1 Advertises the MAC entry it learned from the CPE to PE2 through the RT-2 route
  • Nexthop Nexthop as the address of the CPE, so that After receiving the RT-2 route, PE2 creates a tunnel to the CPE instead of to PE1.
  • FIG. 1 is just a simplified network, and the actual network is often more complex.
  • Figure 2 is a schematic diagram of the second network structure according to data packet processing in related technologies, as shown in Figure 2, where PE1 and PE2 are used as The boundary point between the Ethernet Virtual Private Network (EVPN) domain and the static VXLAN domain, where PE1/PE2/PE3 form the VXLAN EVPN domain, PE1/PE2/CPE form the static VXLAN domain, and in the static VXLAN domain , the VXLAN tunnel is statically configured, and in the VXLAN EVPN domain, the VXLAN tunnel is dynamically created.
  • EVPN Ethernet Virtual Private Network
  • PE1 still uses the Medium Access Control (MAC) address learned from the CPE as the next hop when publishing the RT-2 route instead of PE1's own IP address.
  • MAC Medium Access Control
  • PE3 will also create the VXLAN tunnel T1 to the CPE instead of the VXLAN tunnel T2 to PE1. This is wrong, because the CPE will not create A static VXLAN tunnel to PE3, so that the VXLAN data packets sent by PE3 to the CPE through the tunnel T1 are discarded by the CPE.
  • IMET Inclusive Multicast Ethernet Tag
  • IP Internet Protocol
  • PE1 advertises the RT-2 route of PE2
  • PE2 will receive the RT-2 route and create a tunnel with the Anycast PE address as the source IP.
  • the source IPs of these two routes when creating a VXLAN tunnel need to use different source IPs. Currently, this needs to be implemented through complex configurations such as Route Map.
  • ELP ESI Link Protection
  • ELP ESI Link Protection
  • the devices try to bypass each other, so that the data packets appear between the devices, that is, a loop occurs.
  • the tunnel between devices needs to be marked with a special mark, so that the forwarding plane knows that the data packets received from the tunnel can no longer be sent out from the tunnel according to the mark.
  • Embodiments of the present disclosure provide a routing message processing method, device, storage medium, and electronic device to at least solve the problem in the related art of how the sending end controls different processing of the same routing message by different receiving ends.
  • a routing packet processing method including:
  • the first device acquires target routing information
  • the first device publishes a first routing message according to the target routing information, where the first routing message is used to instruct a device receiving the first routing message to perform a first target action, and the first The routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, the first variable instruction information buffer, and the second Descriptive information of the target action, the first indication information instructs the device receiving the first routing message to perform at least one of the following processes:
  • the device receiving the first routing packet is a device that meets the first condition, and executes the second target action in the context of executing the first target action;
  • the device receiving the first routing message is a device that does not meet the first condition and is in the context of performing the first target action, not executing the second target action;
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • a routing packet processing method including:
  • the text carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, the first variable instruction information buffer and the second target action description information;
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • an apparatus for processing routing packets, which is applied to the first device including:
  • the acquisition module is set to acquire target routing information
  • a publishing module configured to publish a first routing message according to the target routing information, wherein the first routing message is used to instruct the device receiving the first routing message to perform a first target action, and the first The routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, the first variable instruction information buffer, and the second Descriptive information of the target action, the first indication information instructs the device receiving the first routing message to perform at least one of the following processes:
  • the device receiving the first routing packet is a device that meets the first condition, and executes the second target action in the context of executing the first target action;
  • the device receiving the first routing message is a device that does not meet the first condition and is in the context of performing the first target action, not executing the second target action;
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • a device for processing routing packets including:
  • the receiving module is configured to receive a first routing packet issued by the first device according to the target routing information, wherein the first routing packet is used to instruct the device receiving the first routing packet to perform a first target action, and the The first routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, and the first variable instruction information buffer and description information of the second target action;
  • a processing module configured to perform at least one of the following processing according to the first instruction information instruction:
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • a computer-readable storage medium where a computer program is stored in the storage medium, wherein the computer program is set to execute any one of the above method embodiments when running in the steps.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
  • the first device acquires target routing information; the first device issues a first routing message according to the target routing information, and the first indication information carried in the first routing message indicates receiving the first
  • the device for routing packets performs at least one of the following processes: when the device receiving the first routing packet is a device that satisfies the first condition, and executes the second target action in the context of executing the first target action ;
  • the device receiving the first routing message is a device that does not meet the first condition, and does not execute the second target action in the context of executing the first target action, it can solve the problem in the related art How does the sender control the different processing of the same routing packet by different receivers?
  • the sender controls the different processing methods for the same routing packet by different receivers. At least one processing method is different from the processing behavior specified in the current protocol.
  • FIG. 1 is a first schematic diagram of a network structure according to data packet processing in the related art
  • FIG. 2 is a second schematic diagram of a networking structure according to data packet processing in the related art
  • FIG. 3 is a block diagram of a hardware structure of a mobile terminal according to a routing message processing method according to an embodiment of the present disclosure
  • FIG. 4 is a first flowchart of a routing message processing method according to an embodiment of the present disclosure
  • FIG. 5 is a second flowchart of a routing message processing method according to an embodiment of the present disclosure.
  • FIG. 6 is a first schematic diagram of a network structure for data packet processing according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of the architecture of the Programming TLV according to an embodiment of the present disclosure.
  • FIG. 8 is a second schematic diagram of a network structure for processing data packets according to an embodiment of the present disclosure.
  • FIG. 9 is a first block diagram of an apparatus for processing routing packets according to an embodiment of the present disclosure.
  • Fig. 10 is a second block diagram of an apparatus for processing routing packets according to an embodiment of the present disclosure.
  • FIG. 3 is a block diagram of the hardware structure of the mobile terminal according to the routing message processing method of the embodiment of the present disclosure.
  • the mobile terminal may include one or more (only shown in FIG. 3 a) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned mobile terminal may also include a memory for communication Functional transmission device 106 and input and output device 108 .
  • a processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA
  • a memory 104 for storing data
  • the above-mentioned mobile terminal may also include a memory for communication Functional transmission device 106 and input and output device 108 .
  • FIG. 3 is only for illustration, and it does not limit the structure of the above-mentioned mobile terminal.
  • the mobile terminal may also include more or fewer components than those shown in FIG. 3, or have a different configuration from that shown in FIG.
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the routing packet processing method in the embodiment of the present disclosure, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and slicing processing of the service chain address pool is to realize the above-mentioned method.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 4 is a flowchart 1 of a routing message processing method according to an embodiment of the present disclosure. As shown in FIG. 4 , the The process includes the following steps:
  • Step S402 the first device acquires target routing information
  • Step S404 the first device publishes a first routing message according to the target routing information, wherein the first routing message is used to instruct the device receiving the first routing message to perform a first target action, and the The first routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, and the first variable instruction information buffer and description information of the second target action, the first indication information instructs the device receiving the first routing message to perform at least one of the following processes:
  • the device receiving the first routing packet is a device that meets the first condition, and executes the second target action in the context of executing the first target action;
  • the device receiving the first routing message is a device that does not meet the first condition and is in the context of performing the first target action, not executing the second target action;
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • the first instruction indication information or the second instruction indication information may be the first indication information.
  • the first target action is the processing performed by the node receiving the first routing packet according to the information in the first routing packet when receiving the first routing packet, instead of After receiving the first routing message, process the data message according to the other received data message and the information in the first routing message. Further, in some implementation manners, all the information required to execute the first target action is in the first routing packet or can be obtained through indication information in the first routing packet.
  • the second target action is an action in the context of executing the first target action.
  • actions in the context of the first target action include actions before executing the first target action, actions during the execution of the first target action, and actions after executing the first target action and executing Actions before other actions.
  • the matching of the first variable and the first target value includes:
  • the first variable is equal to the first target value
  • At least one of the first variable and the first target value is a set, then there is an inclusion relationship between the first variable and the first target value.
  • the matching of the first variable and the first target value in some implementations means that the first variable is included in the set
  • the first target value in other embodiments, the first target value is included in the first variable.
  • the description information of the second target action indicates that the second target action is not to execute the first target action.
  • the first variable indication information buffer is used to carry a first type of indication information
  • the first type of indication information is indication information indicating variables in a first variable set
  • the first variable set include at least two variables in .
  • the description information of the second target action includes third instruction indication information, a second variable indication information buffer, and a second target value description information buffer;
  • the third instruction indication information indicates that the second target action is to set the value of the second variable as the value in the first buffer, and the second variable is the value in the second variable indication information buffer.
  • the variable indicated by the indication information, the first buffer is the second target value description information buffer or a buffer determined according to the method indicated by the indication information in the second target value description information buffer.
  • the third instruction indication information may be the second instruction indication information.
  • the second variable indication information buffer is used to carry a second type of indication information
  • the second type of indication information is indication information indicating variables in a second variable set
  • the second variable set include at least two variables in .
  • the second variable set includes at least two of the following variables: ⁇ the source IP of the IP tunnel; the destination IP of the tunnel; the Bypass flag on the tunnel; the split horizon flag on the tunnel; The Bypass sign of the ingress replication list entry corresponding to the first routing message; the split horizon sign of the ingress replication list entry corresponding to the first routing message ⁇ ;
  • the Bypass flag is the field storing the third indication information
  • the split horizon flag is the field storing the fourth indication information
  • the ingress replication list entry is routed by EVPN RT-3 Constructed entries.
  • the two variables are standardized variables on the first device, devices meeting the first condition, and devices not meeting the first condition.
  • the first routing message, the first variable, the first target value, and the second variable satisfy one of the fifth condition, the sixth condition, and the seventh condition; wherein ,
  • the fifth condition is: the first routing message is a second routing message, wherein the next hop Nexthop of the second routing message is the IP address identifying the first device;
  • the first variable is a set of common IP addresses between the node receiving the second routing message and other nodes, the first target value is a fifth IP, and the fifth IP is the first device an IP address common to the device meeting the first condition, and the second variable is the first attribute of the first entity matching the second routing packet;
  • the sixth condition is: the first routing message is a third routing message, wherein the next hop Nexthop of the third routing message is the IP address identifying the first device; the first The variable is the IP address identifying the node on the node receiving the third routing message, the first target value is a first IP value set, and the first IP value set is the IP configured on the first device A set of address values, the second variable being a second attribute of the second entity matching the third routing packet, wherein the first set of IP values includes at least a device identifying a device meeting the first condition An IP address, and the first IP value set does not include an IP address identifying a device that does not meet the first condition;
  • the seventh condition is: the first routing message is a fourth routing message, wherein the next hop Nexthop of the fourth routing message is the IP address identifying the first device;
  • the first variable is a second IP value set on the node receiving the fourth routing message
  • the first target value is a value identifying the IP address of the first device
  • the second IP value set is a set of IP address values configured on the node receiving the fourth routing message
  • the second variable is a second attribute of a second entity matching the fourth routing message
  • the first The second IP value set includes at least the IP address that identifies the first device
  • the third IP address value set of the device that does not meet the first condition does not include the IP address that identifies the first device
  • the second IP address value set does not include the IP address that identifies the first device.
  • the three IP address sets are IP address value sets configured on devices that do not meet the first condition, and the third IP address set and the second IP address set are configured through the same configuration interface.
  • the second routing packet, the third routing packet, or the next hop Nexthop of the third routing packet is the IP address identifying the first device.
  • the method also includes:
  • the first device When the first routing packet, the first variable, the first target value, and the second variable satisfy the sixth condition, the first device receives a fifth routing packet from the second device , wherein the second device is a device that receives the third routing message and satisfies the first condition, and the next hop Nexthop of the fifth routing message is an IP address identifying the second device,
  • the fifth routing message and the third routing message are similar routing messages, and the fifth routing message does not carry information related to the first instruction information, the second instruction instruction information, and the third instruction instruction information Corresponding instruction information;
  • the first device In response to the next hop of the fifth routing packet being in the first set of IP values, the first device sets a fourth variable as a fourth target value, so that the fourth variable is the same as the second
  • the variables have a symmetrical relationship, wherein the fourth variable is a variable in the context of executing the first target action on the fifth routing packet.
  • the fourth variable has a symmetrical relationship with the second variable, and it may be that the fourth entity to which the fourth variable belongs has a symmetrical relationship with the fifth entity to which the second variable belongs, and the fourth variable
  • the four variables and the second variable are respectively the same elements in the key values of the two entities, wherein the symmetrical relationship between the fourth entity and the fifth entity may be the key value of the fourth entity and
  • the key values of the fifth entity have the same structure and have mutually symmetrical values, and the co-located elements are elements with the same ordinal number in the key values; for example, when the fourth entity and the fifth entity When both key values include ⁇ A attribute, B attribute>, if the A attribute of the fourth entity is equal to the B attribute of the fifth entity and the B attribute of the fourth entity is equal to the A attribute of the fifth entity, Then the key value of the fourth entity and the key value of the fifth entity have mutually symmetrical values, so that the fifth entity and the fourth entity have a symmetrical relationship.
  • the method also includes:
  • the first device Before sending the third routing packet, the first device configures the first IP set.
  • the second target action includes coupling a third entity with the target routing information and setting a third attribute of the third entity to the second target value, wherein the The third attribute is the first attribute of the first entity or the second attribute of the second entity, and the third entity is the second entity or the second attribute to which the third attribute belongs An entity, and the third attribute is a field of the third entity storing second indication information.
  • the first routing message is a sixth routing message
  • the sixth routing message includes:
  • the sixth routing message indicates the routing information to reach the target host through the fourth device after reaching the fourth device through the first target tunnel; wherein, the fourth device passes through the same NVO (Network Virtualization Overlay, network virtualization overlay) ) tunnels belong to the first device and the device that receives the sixth routing message and meets the first condition, and the NVO tunnel does not belong to the third device, and the third device is the device that receives the sixth routing message The node of the sixth routing packet and the third device does not meet the first condition.
  • NVO Network Virtualization Overlay, network virtualization overlay
  • the first routing message is a sixth routing message
  • the sixth routing message further includes:
  • the sixth routing packet indicates routing information to reach the target host via the first device after reaching the first device through the second target tunnel.
  • the second target action further includes, before coupling the third entity with the target routing information, if the third entity has not been created, creating the third entity entity.
  • the second indication information is used to indicate that the packet received from the third entity cannot be forwarded to a fourth entity, and the fourth entity is different from the third entity.
  • the fourth entity is the first target tunnel.
  • the second indication information is used to indicate that the packet received from the third entity cannot be forwarded to the third entity.
  • the publishing of the sixth routing packet by the first device according to the target routing information includes:
  • the first device publishes the target routing information to the EVPN network through the sixth routing message
  • the second target value is a second IP
  • the second IP is the purpose of the first target tunnel IP
  • the value of the fifth IP is obtained from the source IP of the first target tunnel
  • the third attribute is the destination IP of the tunnel matching the sixth routing packet.
  • the publishing of the sixth routing packet by the first device according to the target routing information includes:
  • the first device publishes the target routing information to the EVPN network through the sixth routing message, the value of the fifth IP is obtained from the source IP of the first target tunnel, and the second target value is The indication information in the description information buffer indicates that the second target value is obtained from the first target value, and the third attribute is the source IP of the VXLAN tunnel that matches the sixth routing packet.
  • the sixth routing message also carries fourth instruction indication information, a third variable indication information buffer, and a third target value description information buffer, wherein the fourth instruction indication information, the The third variable indication information buffer and the third target value description information buffer respectively correspond to the functions of the third instruction indication information, the second variable indication information buffer, and the second target value buffer .
  • the second entity or the first entity is at least one of the following:
  • Ethernet segment identifier (Ethernet Segment Identifier, referred to as ESI) forwarding table item matched with the first routing message;
  • the IP tunnel can be VXLAN encapsulation, SRv6 encapsulation, Geneve encapsulation, VXLAN GPE (Generic Protocol Extension, general protocol extension) encapsulation, NVGRE (Network Virtualization using Generic Routing Encapsulation, network virtualization using GRE) These tunnels are sometimes called VXLAN tunnels, SRv6 tunnels, Geneve tunnels, VXLAN GPE tunnels, NVGRE tunnels, and GRE tunnels.
  • the ESI forwarding table entry can be a forwarding table entry based on EVPN RT-1 routing, and at this time, the first routing message can be an EVPN RT-1 routing message;
  • the entry copy list table The item may be a forwarding table entry constructed based on EVPN RT-3 routing, and at this time, the first routing message may be an EVPN RT-3 routing message.
  • the second target value description information buffer contains the second target value or indicates a manner of obtaining the second target value.
  • the first target value description information buffer contains the first target value or indicates a manner of obtaining the first target value.
  • the first variable set includes at least two variables in the following variables: ⁇ node Router ID; node IP address set; BGP link establishment address; Anycast PE address set; Source NVE address of NVE interface ⁇ ;
  • the BGP link establishment address is the source IP address of the TCP session used to establish the BGP session.
  • the two variables are standardized variables on the first device, devices meeting the first condition, and devices not meeting the first condition.
  • the standardized variable refers to that the format of the indication information indicating the variable is consistent on the first device, the device that meets the first condition, and the device that does not meet the first condition. or, the same configuration interface is used on the first device, the device meeting the first condition, and the device not meeting the first condition to modify or indicate the same variable; wherein, the same variable is in Different nodes can have different values. For example, the values of NVE IP on different nodes are different, but they all belong to the variable "NVE IP". If the format has a consistent definition, it can be said that the "NVE IP" variable is a normalized variable on these nodes.
  • the indication information of the first variable indication information buffer may be the indication information of the standardized variable, at this time: use the indication information in the first variable indication information buffer The property that can be changed, whenever a new standardized variable is added, a new first condition is added, so that the new first condition can be compared with any existing second target action Combining to obtain different new processing behaviors; similarly, utilizing the changeable nature of the indication information in the second variable indication information buffer, whenever adding a new standardized variable, a new The second target action, so that the new second target action can be combined with any of the existing first conditions to obtain different new processing behaviors.
  • the new first condition and the new second target action brought about by the newly added standardized variable can also be combined with functions. For example, after adding the standardized variable "NVE IP", You can realize functions such as setting "NVE IP” to 8.8.8.8 when "NVE IP” is 7.7.7.7.
  • the method before the first device publishes the first routing packet according to the target routing information, the method further includes:
  • the first variable indication information buffer is used to indicate different variables in the first variable set by changing the indication information without changing the configuration on the node receiving the first routing message On the premise, the node performing the second target action is changed.
  • the first variable indication information, the first target value description information, and the second target action description information come from configuration information.
  • the first variable indicates an information buffer
  • the description information of the first target value, and the description information of the second target action are included in the first routing message in the form of a script.
  • the first variable indication information buffer, the description information of the first target value and the description information of the second target action are included in the same TLV (Type, Length, Value), and the TLV The TLV type value is the first indication information.
  • FIG. 5 is a flowchart 2 of a routing packet processing method according to an embodiment of the present disclosure. As shown in FIG. 5 , the process includes the following step:
  • Step S502 receiving a first routing packet issued by the first device according to the target routing information, wherein the first routing packet is used to instruct the device receiving the first routing packet to perform a first target action, and the first routing packet
  • a routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, the first variable instruction information buffer, and the second 2. Descriptive information of the target action;
  • Step S504 performing at least one of the following processes according to the first indication information:
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • the first variable indication information buffer is used to carry a first type of indication information
  • the first type of indication information is indication information indicating variables in a first variable set
  • the first variable set include at least two variables in .
  • the description information of the second target action includes third instruction indication information, a second variable indication information buffer, and a second target value description information buffer;
  • the third instruction indication information indicates that the second target action is to set the value of the second variable as the value in the first buffer, and the second variable is the value in the second variable indication information buffer.
  • the variable indicated by the indication information, the first buffer is the second target value description information buffer or a buffer determined according to the method indicated by the indication information in the second target value description information buffer.
  • the second variable indication information buffer is used to carry a second type of indication information, the second type of indication information is indication information indicating variables in a second variable set, and the second variable set Include at least two variables in .
  • the first variable indication information buffer is used to carry a first type of indication information, the first type of indication information is indication information indicating variables in a first variable set, and the first variable set includes at least two variables .
  • the method when the first routing message, the first variable, the first target value, and the second variable satisfy the sixth condition, the method further includes:
  • the next hop Nexthop of the fifth routing message is an identification device IP address
  • the fifth routing message and the third routing message are similar routing messages
  • the fifth routing message does not carry the same as the first indication information, the second instruction indication information, the first The instruction information corresponding to the instruction information of the three instructions;
  • the fifth routing message is used to instruct the first device to perform the following processing: in response to the next hop of the fifth routing message being in the first IP value set, the first device sends the fourth The variable is set to a fourth target value, so that the fourth variable has a symmetrical relationship with the second variable, wherein the fourth variable is that the first device executes the first Variables in the context of the target action.
  • the second target action includes coupling a third entity with the target routing information and setting a third attribute of the third entity to the second target value, wherein the The third attribute is the first attribute of the first entity or the second attribute of the second entity, and the third entity is the second entity or the first entity to which the third attribute belongs , the third attribute is a field of the third entity storing second indication information, and the second target value is a value of the second indication information.
  • the second indication information is used to indicate that the packet received from the third entity cannot be forwarded to a fourth entity, and the fourth entity is different from the third entity.
  • the second indication information is used to indicate that the packet received from the third entity cannot be forwarded to the third entity.
  • the second entity or the first entity is at least one of the following:
  • the device receiving the first routing message is a device that satisfies the first condition (corresponding to the second device), and executes the second target in the context of executing the first target action Action: when the device receiving the first routing message is a device that does not meet the first condition (corresponding to a third device), and in the context of executing the first target action, the second target is not executed actions, including:
  • the first device (such as PE1) is the first routing information (for example, learned from the fourth device to the MAC entry) publishes the first routing packet (ie RT-2 routing).
  • the first routing message carries the description information of the second target value (identifying the IP value of the fourth device, such as the second IP), the description information of the first target value (such as the IP value of the first device and the second device) common IP address), the first instruction indication information, and the second target action (such as determining the tunnel destination IP) indication information.
  • the first routing packet is used by the second device and the third device to perform the first target action (such as "create an IP tunnel") according to the first routing packet.
  • the second device is a device that satisfies the first condition
  • the third device is a device that does not meet the first condition
  • the second device such as PE2 executes the For the second target action
  • the third device (such as PE3) does not use the second target value description information when executing the first target action.
  • the first target value description information is parameter information used for judging whether the first condition is satisfied, and the first device also meets the first condition.
  • the first device (such as PE1) is the first routing information (for example, learned from the fourth device to the MAC entry) publishes the first routing packet (ie RT-2 routing).
  • the first routing message carries the description information of the second target value (indicating information indicating the method for obtaining the first target value), the description information of the first target value (for example, the common IP address of the first device and the second device address), the first instruction indication information, and the second target action (such as determining the source IP of the NVO tunnel corresponding to the first routing packet) indication information.
  • the first routing packet is used by the second device and the third device to perform the first target action (such as "create an IP tunnel") according to the first routing packet.
  • the second device is a device that satisfies the first condition
  • the third device is a device that does not meet the first condition
  • the second device (such as PE2) according to the first target value (that is, according to the The second target value describes the value obtained by the method indicated in the information) executes the second target action (such as determining the first target value as the source IP of the NVO tunnel), and the third device (such as PE3 ) does not use the second target value description information when executing the first target action.
  • the first target value description information is parameter information used when judging whether the first condition is met, and the first device also meets the first condition.
  • the first device (such as PE1) publishes the first routing message (ie, the EVPN VPLS instance) for the first routing information (ie, the EVPN VPLS instance) that satisfies the fourth condition (ie, there is an Anycast VTEP (VXLAN Tunnel End Point, VXLAN tunnel endpoint) address).
  • the first routing message carries the description information of the second target value (such as "indication information indicating the BGP link establishment address"), the description information of the first target value (such as the value of the Anycast VTEP address), the The first instruction indication information and the second target action (such as determining the source IP of the NVO tunnel corresponding to the first routing packet) indication information.
  • the first routing packet is used by the second device and the third device to perform the first target action (such as "create an IP tunnel") according to the first routing packet.
  • the second device is a device that satisfies the first condition
  • the third device is a device that does not meet the first condition
  • the second device (such as PE2) executes the second target value according to the second target value.
  • Target action (such as determining the second target value (such as the local address in the BGP link establishment address of the BGP session that receives the first routing message) as the value of the source IP of the NVO tunnel)
  • the second The third device (such as PE3) does not use the second target value description information when executing the first target action.
  • the first target value description information is parameter information used for judging whether the first condition is satisfied, and the first device also meets the first condition.
  • the first device publishes a first routing packet according to the first routing information.
  • the first routing message carries the second target value (ie "action-parameters"), the first target value (ie “matching-parameters”), the second environment variable indication information (match type) and the first action ( action statement) instructions.
  • the first routing packet is used by the second device and the third device to perform first processing according to the first routing packet.
  • the second device is a device that satisfies the second condition
  • the third device is a device that does not meet the second condition
  • the second device performs the first process according to the first parameter (i.e. "action-parameters" information executes the first action
  • the third device does not execute the first action when executing the first process.
  • the second condition is that the value of the second environment variable is equal to the first target value, and the first device also satisfies the second condition.
  • the first device publishes a first routing packet.
  • the first routing message carries second target value description information (namely "matching-parameters"), second environment variable indication information (match type) and first action description information (action statement).
  • the first routing packet is used by the second device and the third device to perform first processing according to the first routing packet.
  • the second device is a device that satisfies the second condition
  • the third device is a device that does not meet the second condition
  • the second device executes the first action when performing the first process, so The third device does not perform the first action when performing the first process.
  • the second condition is that the value of the first pre-variable is equal to the second target value.
  • the first action description information indicates that the value of the first environment variable indication information is set as the first target value
  • the first post variable is a variable generated during the first processing
  • the first routing message also carries first post variable indication information and first target value description information.
  • the second target value description information includes the second target value or indicates the method for obtaining the second target value
  • the first target value description information includes the first target value or indicates the method for obtaining the second target value. A target value method.
  • the sending end and the receiving end have a unified value range and meaning of the first pre-variable, the second target value, and the first action description information.
  • the value range of the first pre-variable includes ⁇ node Router ID; node IP address set; BGP (Border Gateway Protocol, Border Gateway Protocol) link building address; Anycast PE address set; NVE interface Source NVE address ⁇
  • the first action includes ⁇ Deny: discard the first routing message; Set: set the value of the X post variable to the Y target value ⁇ , wherein the X post
  • the value range of the variable includes ⁇ the source IP of the IP tunnel; the destination IP of the tunnel; the Bypass sign on the tunnel; the split horizon sign on the tunnel; the Bypass sign of the entry copy list entry corresponding to the first routing message; The split horizon flag of the ingress replication list entry corresponding to the first routing packet ⁇ .
  • the first pre-variable indication information, the second target value description information and the first action description information are included in the first routing message in the form of a script.
  • the The above script comes from configuration information.
  • the first pre-variable, the second target value and the first action description information are included in the first routing packet in the form of TLV.
  • CE forms a superior network (the first network), wherein, PE1 and PE2 are the boundary nodes between the subordinate network and the superior network, and PE1 and PE2 use the same virtual address as the address of the NVE interface for the subordinate network, namely Anycast PE address, so that only one remote NVE (Network Virtualization Edge, Network Virtualization Edge) interface is perceived from the CPE side, and a VXLAN tunnel is established with this virtual address.
  • NVE Network Virtualization Edge, Network Virtualization Edge
  • CPE uplink packets can reach PE3 or dual-homed CE3 (Customer Edge) by choosing PE1 or PE2 (CE3 in Figure 1 still exists in Figure 2, but it is not shown in Figure 2), However, there may also be single-homed CE devices in the network, such as CE1 and CE2. After the CPE's uplink packets arrive at one of the PEs, they may need to detour to another PE to reach the single-homed CE. Therefore, a bypass channel is required between dual-active PE1 and PE2. Deploy EVPN neighbors between PE1 and PE2, and configure different addresses, namely Bypass VTEP addresses, to create a Bypass VXLAN tunnel between PE1 and PE2 as a bypass channel.
  • the real address of PE3 is 150.3.3.3, which is also the BGP link establishment address and BGP Router ID.
  • FIG. 7 is a schematic diagram of the architecture of the Programming TLV according to an embodiment of the present disclosure.
  • PE1 and PE2 learn the MAC address information M1 of the host H1 on the CPE side through the uplink message on the CPE side, and the M1 is obtained from The static VXLAN tunnel T14 is learned, so that the host H1 can first reach the CPE node through the destination IP address 4.4.4.4 of the tunnel T14, and then reach the H1 host through the CPE node, and then route the message through MAC/IP R1 publishes the M1 to the EVPN network, which carries the Programming TLV, and the Programming TLV carries the destination IP of the T14 tunnel (that is, 4.4.4.4, the second IP) through the Action Parameters Sub-TLV, and through the Matching Parameters Sub-TLV -TLV carries the source IP of the T14 tunnel (i.e.
  • the first IP which is also the Anycast PE address of PE1 and PE2), and instructs the receiving end node of the routing message R1 to send its Anycast PE address through Matching Sub-TLV Match the data carried in Matching Parameters, and if the match is successful (called Matching Sub-TLV hit), execute the action corresponding to the Action Sub-TLV; indicate the receiving end node of the routing message R1 through the Action Sub-TLV if Matching Sub -TLV match, when matching the VXLAN tunnel, use the IP address carried in the Action Parameters Sub-TLV as the destination IP of the VXLAN tunnel matched by R1.
  • the Programming TLV is a new TLV.
  • the PE2 node receives the routing message R1, matches the Anycast PE address configured on PE2 with the IP address 1.1.1.1 in the Matching Parameters Sub-TLV according to its Matching Sub-TLV instruction, and finds that the match is successful. Then, according to The Action Sub-TLV indicates that the IP address 4.4.4.4 in the Action Parameters Sub-TLV is used as the destination IP address of the VXLAN tunnel that matches R1.
  • the PE3 node receives the routing message R1, and according to its Matching Sub-TLV instruction, it finds that the Anycast PE address is not configured locally, so it cannot match the IP address in the Matching Parameters Sub-TLV, so the matching fails, so the Action Sub is ignored -TLV instructions and the data in the Action Parameters Sub-TLV to create a VXLAN tunnel T31 with a source IP of 150.3.3.3 and a destination IP of 100.1.1.1.
  • the Nexthop of the RT-2 route R1 advertised by PE1 is the real address of PE1 (namely 100.1.1.1).
  • the first instruction indication information (that is, the type encoding of Maching Sub-TLV) indicates that the Value part of Maching Sub-TLV is the first variable indication information buffer and the Value part of Maching Parameters Sub-TLV is the first target value description information buffer district.
  • the second instruction indication information (that is, the type code of the Action Sub-TLV) indicates that the Value part of the Action Sub-TLV is the second variable indication information buffer and the Value part of the Action Parameters Sub-TLV is the second target value description information buffer district.
  • the first indication information (that is, the type code of Programming TLV) instructs the second device (that is, PE2) to execute the second target action according to the second target value when executing the first target action
  • the The first indication information indicates that the third device (that is, PE3) does not execute the second target action according to the second target value when executing the first target action.
  • the third device is a device that does not satisfy the first condition
  • the first condition is that the first variable is equal to the first target value.
  • the second target action assigns a value to the second variable (that is, the destination IP of the VXLAN tunnel that matches R1), and executes the second variable according to the second target value (that is, 4.4.4.4).
  • the target action is to use the second target value to assign a value to the second variable.
  • the Nexthop of the RT-2 route advertised by PE1 and PE2 is a real address rather than the Anycast PE address
  • the Nexthop of the RT-1 route corresponding to CE3 (see Figure 1, not shown in Figure 2) published by PE1 and PE2 is also The real address does not need to be an Anycast PE address, thus avoiding the problem that some traffic has to be detoured through the VXLAN tunnel between PE1-PE2 when one of the CE3 dual-homing links fails.
  • This embodiment is the same as Example 1 except where specified.
  • this embodiment uses the Action Sub-TLV to instruct the receiving end node of the routing message R1 to use the IP address carried in the Action Parameters Sub-TLV as the destination IP of the VXLAN tunnel matching R1, At the same time, use the Action Parameters Sub-TLV to indicate that the source IP of the VXLAN tunnel that matches R1 is in the Matching Parameters Sub-TLV.
  • the Action Parameters Sub-TLV does not carry any IP address, but only carries an instruction information on how to obtain the corresponding IP address.
  • Example 1 Unless otherwise specified, this embodiment is the same as the superposition of Example 1 and Example 2.
  • TLV1 the routing message R1 (i.e. the first routing message)
  • TLV2 one of the Programming TLVs
  • TLV2 another Programming TLV
  • the Matching Sub-TLV of the TLV1 is the same as that of the TLV2, and the Matching Parameters Sub-TLV is also the same.
  • the first routing message also carries the fourth instruction indication information (the type encoding of the Action Sub-TLV of TLV2), the third variable indication information buffer (the value domain of the Action Sub-TLV of TLV2) and the third target value Description information buffer (value domain of Action Parameters Sub-TLV of TLV2), wherein, the fourth instruction indication information, the third variable indication information buffer and the third target value description information buffer are respectively related to the
  • the third instruction indication information (the type encoding of the Action Sub-TLV of TLV1), the second variable indication information buffer (the value domain of the Action Sub-TLV of TLV1), the second target value buffer (the Action Parameters Sub-TLV value domain) has the same effect.
  • This embodiment is the same as Example 3 except where specified.
  • this embodiment replaces the two Programming TLVs in Example 3 with one Programming TLV (referred to as TLV3)
  • the method is: the Matching Sub-TLV of the TLV3 and the Matching TLV of the TLV1 (or TLV2) Same, the Matching Parameters Sub-TLV of the TLV3 is the same as the Matching Parameters Sub-TLV of the TLV1 (or TLV2); and, by carrying the IPt and the ninth indication information in the Action Parameters Sub-TLV at the same time, so that according to the The Action Parameters Sub-TLV of TLV3 can obtain two IP addresses at the same time, that is, IPs and IPt, wherein the ninth indication indicates that the IPs are obtained in the Matching Parameters Sub-TLV; and, using the TLV3
  • the Action Sub-TLV instructs the receiving end node of the routing message R1 to use the IPs as the source IP of the VXLAN tunnel matching R1, and use the IPt as the destination IP of the VXLAN tunnel matching R
  • this embodiment does not carry the Programming TLV, but carries the Consignor PE TLV.
  • the method is: carry the IPt in the Value part of the consignor PE TLV at the operator edge of the entrusting party, and use the R1 Nexthop carries the IPs, and, through the TLV Type (i.e., type coding) of the Consignor PE TLV, indicates that the IPs are carried out and "the Matching Sub-TLV in the TLV3 indicates that the IPs carried in the TLV3 are carried out.” Matching" is the same match, and at the same time, the TLV Type of the Consignor TLV also indicates that the receiving end node of the routing message R1 uses the IPs as the source IP of the VXLAN tunnel that matches R1, and uses the IPt as the source IP of the VXLAN tunnel that matches R1. R1 matches the destination IP of the VXLAN tunnel.
  • This embodiment is the same as Example 2 except where specified.
  • PE1 and PE2 send RT3 route R3 to each other, where Nexthop is the real address of PE1 and PE2, and ORIP is also the real address of PE1 and PE2, and PMSI Tunnel extended community attribute
  • the Tunnel ID in is also the real address of PE1 and PE2 respectively.
  • the present embodiment carries the Programming TLV (referred to as TLV4) in the RT-3 routing message R3, and the Matching Sub-TLV, Matching Parameters Sub-TLV and Action Sub-TLV of the TLV4 are all consistent with the Same as above TLV2.
  • TLV4 Programming TLV
  • this embodiment carries the tenth indication information and the eleventh indication information in the Action Parameters Sub-TLV, and uses the tenth indication information to indicate that the receiving end node of the routing message R3 is related to the route
  • the source IP of the VXLAN tunnel (corresponding to the third entity) matched by the message R3 is the BGP link establishment address on the receiving end node (marked as IPs2, namely the 200.2.2.2), and the tenth An indication indicates that the VXLAN tunnel is marked as a Bypass VXLAN tunnel (corresponding to setting the field storing the third indication information of the third entity as the value of the third indication information).
  • the tenth indication information and the eleventh indication information may be the same data, and the eleventh indication information indicates the third indication information.
  • PE2 After PE2 receives the routing message R3, according to the instructions of the Programming TLV, it will create a VXLAN tunnel T21b according to the routing message R3, and the source IP of the VXLAN tunnel T21b is the IPs2 (i.e. said 200.2.2.2), destination IP is the Tunnel ID (i.e. said 100.1.1.1) in the PMSI Tunnel extended community attribute of said RT-3 route, and said tunnel T21b is marked as a Bypass tunnel.
  • IPs2 i.e. said 200.2.2.2
  • destination IP is the Tunnel ID (i.e. said 100.1.1.1) in the PMSI Tunnel extended community attribute of said RT-3 route
  • said tunnel T21b is marked as a Bypass tunnel.
  • the two-tuple ⁇ the tenth indication information, the eleventh indication information> corresponds to the second target value description information
  • the field of the VXLAN tunnel that matches the routing message R3 stores the third indication information (that is, the Bypass flag) > that is, corresponds to the second variable, the two-tuple ⁇ IPs2, the third indication
  • the value of the message > ie corresponds to the second target value.
  • Example 5 Unless otherwise specified, this embodiment is the same as the superposition of Example 5 and Example 6.
  • the Consignor PE TLV and the TLV4 are respectively carried and processed in the RT-2 route and the RT-3 route.
  • VXLAN tunnel T21b created through the RT-3 route is marked as a Bypass tunnel.
  • This embodiment is the same as Example 7 except where specified.
  • the TLV4 is replaced by script 2.
  • the first indication information is the type code of the TLV carrying the script.
  • the script language of the script has at least two statements, a match statement and a set statement, and each of the match statement and the set statement has two parameters.
  • the first instruction indication information indicates that the first parameter of the match statement (i.e. the keyword anycast-vtep-address of the script language) position (i.e. the data block storing anycast-vtep-address) is all
  • the first variable indicates the information buffer and the location of the second parameter of the match statement (ie, the keyword vxlan-tunnel-destination of the script language) (ie, the data block storing vxlan-tunnel-destination) is described by the first target value information buffer;
  • the first parameter (being the keyword bgp-nexthop of the scripting language) position (being the data block of storing bgp-nexthop) of the second instruction indicating information (being the set keyword of the scripting language) indication set statement is described second variable Indicate the information buffer and the second parameter (i.e. the keyword consignor-pe-ip of the script language) position (i.e. the data block storing consignor-pe-ip) of the match statement is the described second target value description information buffer;
  • the first indication information indicates that the second device executes the second target action according to the second target value when executing the first target action
  • the first indication information indicates that the third device performs
  • the first target action does not execute the second target action according to the second target value
  • the second device is a device that satisfies the first condition
  • the third device is a device that does not meet the first condition.
  • a conditional device, the first condition being that the first variable is equal to the first target value.
  • the first device (PE1) publishes a first routing packet.
  • the first routing message carries second target value description information (bgp-nexthop), first variable indication information (anycast-vtep-address) and first action description information (setvxlan-tunnel-destination consignor-pe-ip ).
  • the first routing packet is used by the second device (PE2) and the third device (PE3) to perform a first target action (creating a VXLAN tunnel) according to the first routing packet.
  • the second device is a device that satisfies the first condition (match anycast-vtep-address bgp-nexthop)
  • the third device is a device that does not meet the first condition
  • the second device is performing the second Execute the second target action (set vxlan-tunnel-destination consignor-pe-ip) during a target action, and the third device does not execute the second target action when executing the first process.
  • the first condition is that the value of the first variable (Anycast PE address of the receiving end of the first routing message) is equal to the first target value (Nexthop of the first routing message).
  • the second target action description information indicates that the value of the second variable (the destination IP of the VXLAN tunnel to be created) is set as the second target value (the value of the Consignor PE TLV), and the second The variable is a variable generated during the first target action (that is, creating a VXLAN tunnel), and the first routing message also carries the second variable indication information (vxlan-tunnel-destination) and the second target value description information ( consignor-pe-ip).
  • the first target value description information indicates the method for obtaining the first target value (obtained from Nexthop in the first routing message)
  • the second target value description information indicates the method for obtaining the second target value method (taken from the Consignor PE TLV).
  • the first device (PE1) publishes a first routing packet.
  • the first routing message carries the first target value description information (bgp-nexthop), the first pre-variable (that is, the first variable) indication information (anycast-vtep-address) and the first action (that is, the Describe the second target action) description information (set vxlan-tunnel--source bgp-update-source).
  • the first routing packet is used by the second device (PE2) and the third device (PE3) to perform first processing (that is, the first target action) according to the first routing packet, and in this example, create a VXLAN tunnel).
  • the second device is a device that satisfies the second condition (equivalent to the first condition, in this example, match anycast-vtep-address bgp-nexthop), and the third device is a device that does not meet the second condition
  • the second device executes the first action when performing the first processing (setting the source IP of the VXLAN tunnel to be created as the BGP link establishment address of the node receiving the first routing message) , the third device does not perform the first action when performing the first process.
  • the second condition is that the value of the first pre-variable (Anycast PE address of the receiving end of the first routing message) is equal to the first target value (Nexthop of the first routing message).
  • the first action description information indicates that the value of the first post variable (that is, the second variable, in this example, the source IP of the VXLAN tunnel to be created) is set as the first target value (the value of the BGP link-building address of the node receiving the first routing message), the first post variable is a variable generated during the first processing (that is, creating a VXLAN tunnel), and the first The routing message also carries the first post variable indication information (that is, the second variable indication information, vxlan-tunnel-source in this embodiment) and the second target value description information (bgp-update-source).
  • the first target value description information includes the first target value or indicates the method for obtaining the first target value (obtained from Nexthop in the first routing message), and the second target value description information includes The second target value may indicate a method for obtaining the second target value (obtained from the BGP link establishment address of the node receiving the first routing message).
  • the value range of the first pre-variable includes ⁇ node Router ID; node IP address set; BGP link establishment address; Anycast PE address set; Source NVE address of the NVE interface ⁇ , the first An action includes ⁇ Deny: discard the first routing packet; Set: set the value of the X post variable to the Y target value ⁇ , wherein the value range of the X post variable includes ⁇ IP tunnel The source IP of the tunnel; the destination IP of the tunnel; the Bypass mark on the tunnel; the split horizon mark on the tunnel; the Bypass mark of the entry replication list entry corresponding to the first routing message; corresponding to the first routing message entry to copy the split horizon flag of the list entry ⁇ .
  • the matching of the second target value with the first pre-variable means that the second target value is in the set, wherein, The first pre-variable is a variable that exists before the first process is performed.
  • FIG. 8 is a second schematic diagram of a network structure for data message processing according to an embodiment of the present disclosure. As shown in Figure 8, it is an EVPN network, where CE3 is on ES3, and when CE1 node fails, ES3 on PE1 and PE2 will both perceive This failure, and ESI link protection ELP, that is, both PE1 and PE2 try to bypass each other to CE3, thus causing data packets to ping-pong between PE1 and PE2, that is, a loop occurs, in order to break the loop , you can mark the tunnel between PE1 and PE2 as a split-horizon tunnel, that is, data packets received from this tunnel cannot be sent out from this tunnel.
  • ESI link protection ELP that is, both PE1 and PE2 try to bypass each other to CE3, thus causing data packets to ping-pong between PE1 and PE2, that is, a loop occurs, in order to break the loop , you can mark the tunnel between PE1 and PE2 as a split-horizon tunnel, that is, data packets received from this
  • PE1 and PE2 Configure each other's NVE IP as their protector IP on PE1 and PE2, and then PE1 and PE2 carry a Programming TLV when sending EVPN routes to each other, and these two Programming TLVs are TLV5 and TLV6 respectively.
  • the Matching Sub-TLV of TLV5 indicates to match the value in the Matching Parameters Sub-TLV with the protector IP set of the receiving end (including the NVE IP of PE1), and the Action Sub-TLV indicates that if the matching is established, execute the Action Parameters Sub-TLV
  • the Action Parameters Sub-TLV indicates to mark the "split horizon" on the VXLAN tunnel T21c created according to the EVPN route.
  • the Matching Sub-TLV of TLV6 indicates to match the value in the Matching Parameters Sub-TLV with the protector IP set of the receiver (corresponding to the second IP value set mentioned above, including the NVE IP of PE2), and the Action Sub-TLV indicates that if the If the above match is established, the action in the Action Parameters Sub-TLV is executed, wherein the value of the Matching Parameters Sub-TLV is the NVE IP of PE2, and the Action Parameters Sub-TLV indicates that the VXLAN tunnel T12c created according to the EVPN route is marked with "Horizontal split" mark (corresponding to the above-mentioned fourth indication information).
  • VXLAN tunnels T21c and T12c are marking the VXLAN tunnels T21c and T12c as "split-horizon" tunnels. PE1/PE2 will not resend the data packets sent by the other party to the other party, thus breaking the loop.
  • PE1 and PE2 only configure each other's NVE IP as their own protector IP (in this form, PE1 and PE2 record each other's The IP of the other party), the IP of the protector of PE1 is not the IP owned by PE1 (so it is not the common IP of PE1 and PE2), the IP of the protector of PE2 is not the IP owned by PE2 (so it is not the common IP of PE1 and PE2) .
  • PE2 does not need to configure PE1 as its protector, and only PE1 needs to configure PE2 as its protector.
  • TLV7 indicates that the NVE IP of the receiving end is used to match the value in the Matching Parameters Sub-TLV
  • the Action Sub-TLV indicates that if the match is established, the action in the Action Parameters Sub-TLV is executed, wherein, Matching Parameters Sub -The value of TLV is a set composed of the protector IP of PE1 (corresponding to the above-mentioned first IP value set, including the NVE IP of PE2), and the Action Parameters Sub-TLV indicates the VXLAN tunnel T21c created according to the EVPN route Put the "horizontal split" mark on it (corresponding to the above-mentioned second instruction information).
  • PE1 when PE1 receives the EVPN route sent by PE2, although it does not carry the Programming TLV, PE1 finds that the Next hop of the route is an element in its protector IP set (that is, the Nexthop match this set), PE1 will also mark the VXLAN tunnel T12c created according to this route as "split horizon".
  • PE2 and PE1 will respectively mark the VXLAN tunnels T21c and T12c as "split horizon" tunnels, so that PE1/PE2 will not resend the data packets sent by the other party to the other party, thus breaking the loop. road.
  • the loop is broken without upgrading the PE2 node or changing the configuration on the PE2 node.
  • FIG. 9 is a block diagram 1 of a routing message processing device according to an embodiment of the present disclosure, as shown in FIG. 9 display, including:
  • An acquisition module 92 configured to acquire target routing information
  • the publishing module 94 is configured to publish a first routing message according to the target routing information, wherein the first routing message is used to instruct the device receiving the first routing message to perform a first target action, and the first routing message
  • a routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, the first variable instruction information buffer, and the second 2.
  • Descriptive information of the target action, the first indication information instructs the device receiving the first routing message to perform at least one of the following processes:
  • the device receiving the first routing packet is a device that meets the first condition, and executes the second target action in the context of executing the first target action;
  • the device receiving the first routing message is a device that does not meet the first condition and is in the context of performing the first target action, not executing the second target action;
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • the first variable indication information buffer is used to carry a first type of indication information
  • the first type of indication information is indication information indicating variables in a first variable set
  • the first variable set include at least two variables in .
  • the description information of the second target action includes third instruction indication information, a second variable indication information buffer, and a second target value description information buffer;
  • the third instruction indication information indicates that the second target action is to set the value of the second variable as the value in the first buffer, and the second variable is the value in the second variable indication information buffer.
  • the variable indicated by the indication information, the first buffer is the second target value description information buffer or a buffer determined according to the method indicated by the indication information in the second target value description information buffer.
  • the second variable indication information buffer is used to carry a second type of indication information
  • the second type of indication information is indication information indicating variables in a second variable set
  • the second variable set include at least two variables in .
  • the first routing message, the first variable, the first target value, and the second variable satisfy one of the fifth condition, the sixth condition, and the seventh condition; wherein ,
  • the fifth condition is: the first routing message is a second routing message, and the first variable is a set of common IP addresses between the node receiving the second routing message and other nodes, so The first target value is the fifth IP, the fifth IP is the common IP address of the first device and the device meeting the first condition, and the second variable matches the second routing packet The first attribute of the first entity of ;
  • the sixth condition is: the first routing message is a third routing message, the first variable is the IP address identifying the node on the node receiving the third routing message, and the first target The value is the first IP value set, the first IP value set is the IP address value set configured on the first device, and the second variable is the first IP value of the second entity that matches the third routing message.
  • Two attributes wherein the first IP value set includes at least an IP address identifying a device that meets the first condition, and the first IP value set does not include an IP address that identifies a device that does not meet the first condition IP address;
  • the seventh condition is: the first routing message is a fourth routing message, the first variable is a second IP value set on the node receiving the fourth routing message, and the first target The value is a value identifying the IP address of the first device, the second IP value set is the IP address value set configured on the node receiving the fourth routing message, and the second variable is the same as the The second attribute of the second entity matched by the fourth routing packet, wherein the second IP value set includes at least the IP address identifying the first device, and the first IP address of the device that does not meet the first condition The IP address identifying the first device is not included in the three IP address value sets, the third IP address set is an IP address value set configured on a device that does not meet the first condition, and the third IP address The set is configured through the same configuration interface as the second set of IP addresses.
  • the method when the first routing message, the first variable, the first target value, and the second variable satisfy the sixth condition, the method further includes:
  • the first device receives a fifth routing packet from a second device, where the second device is a device that receives the third routing packet and satisfies the first condition, and the fifth routing packet
  • the next hop Nexthop is the IP address identifying the second device, the fifth routing message and the third routing message are similar routing messages, and the fifth routing message does not carry the same routing message as the first routing message.
  • the first device In response to the next hop of the fifth routing packet being in the first IP value set, the first device sets a fourth variable as a fourth target value, where the fourth variable is a reference to the The fifth variable in the context in which the routing packet executes the first target action makes the fourth variable have a symmetrical relationship with the second variable.
  • the second target action includes coupling a third entity with the target routing information and setting a third attribute of the third entity to the second target value, wherein the The third attribute is the first attribute of the first entity or the second attribute of the second entity, and the third entity is the second entity or the second attribute to which the third attribute belongs An entity, and the third attribute is a field of the third entity storing second indication information.
  • the second indication information is third indication information or fourth indication information, wherein the third indication information is used to indicate that the message received from the third entity cannot be forwarded to the fourth entity, and the fourth entity is different from the third entity, and the fourth indication information is used to indicate that the packet received from the third entity cannot be forwarded to the third entity.
  • the first routing message is a sixth routing message
  • the sixth routing message includes:
  • the sixth routing message indicates the routing information to reach the target host through the fourth device after reaching the fourth device through the first target tunnel; A device and a device that receives the sixth routing message and satisfies the first condition, and the NVO tunnel is not included in a third device, the third device is the node that receives the sixth routing message and the The third device does not satisfy the first condition.
  • the first variable indication information buffer is used to indicate different variables in the first variable set by changing the indication information without changing the configuration on the node receiving the first routing message On the premise, the node performing the second target action is changed.
  • the device also includes:
  • a configuration module configured to configure the first IP value set before sending the third routing packet.
  • the second target action is an action in the context of executing the first target action.
  • the matching of the first variable and the first target value includes:
  • the first variable is equal to the first target value
  • At least one of the first variable and the first target value is a set, then there is an inclusion relationship between the first variable and the first target value.
  • the description information of the second target action indicates that the second target action is not to execute the first target action.
  • the second variable set includes at least two of the following variables: ⁇ the source IP of the IP tunnel; the destination IP of the tunnel; the Bypass flag on the tunnel; the split horizon flag on the tunnel; The Bypass sign of the ingress replication list entry corresponding to the first routing message; the split horizon sign of the ingress replication list entry corresponding to the first routing message ⁇ ;
  • the two variables are standardized variables on the first device, devices meeting the first condition, and devices not meeting the first condition.
  • the second target action further includes, before coupling the third entity with the target routing information, if the third entity has not been created, creating the third entity entity.
  • the distribution module is further configured for the first device to publish the target routing information to the EVPN network through the sixth routing message, the second target value is the second IP, The second IP is the destination IP of the first target tunnel, the value of the fifth IP is obtained from the source IP of the first target tunnel, and the third attribute is to match the sixth routing message The destination IP of the tunnel.
  • the distribution module is also used for
  • the first device publishes the target routing information to the EVPN network through the sixth routing message, the value of the fifth IP is obtained from the source IP of the first target tunnel, and the second target value is The indication information in the description information buffer indicates that the second target value is obtained from the first target value, and the third attribute is the source IP of the VXLAN tunnel that matches the sixth routing packet.
  • the sixth routing message also carries fourth instruction indication information, a third variable indication information buffer, and a third target value description information buffer, wherein the fourth instruction indication information, the The third variable indication information buffer and the third target value description information buffer respectively correspond to the functions of the third instruction indication information, the second variable indication information buffer, and the second target value buffer .
  • the second entity or the first entity is at least one of the following:
  • the second target value description information buffer contains the second target value or indicates a manner of obtaining the second target value.
  • the first target value description information buffer contains the first target value or indicates a manner of obtaining the first target value.
  • the first variable set includes at least two variables in the following variables: ⁇ node Router ID; node IP address set; BGP link establishment address; Anycast PE address set; Source NVE address of NVE interface ⁇ ;
  • the two variables are standardized variables on the first device, devices meeting the first condition, and devices not meeting the first condition.
  • the device also includes:
  • An instructing module configured to instruct to send the first routing message.
  • the first variable indication information, the first target value description information, and the second target action description information come from configuration information.
  • the first variable indicates an information buffer
  • the description information of the first target value, and the description information of the second target action are included in the first routing message in the form of a script.
  • the first variable indicates the information buffer, the description information of the first target value, and the description information of the second target action are included in the same TLV, and the TLV type value of the TLV is the The first instruction message.
  • a routing message processing device is also provided, and Fig. 10 is a block diagram 2 of a routing message processing device according to an embodiment of the present disclosure, as shown in Fig. 10 , including:
  • the receiving module 102 is configured to receive a first routing packet issued by the first device according to the target routing information, where the first routing packet is used to instruct the device receiving the first routing packet to perform a first target action,
  • the first routing message carries the first instruction instruction information, the second instruction instruction information, the first instruction information, the first target value description information buffer, the second target value description information buffer, and the first variable instruction information buffer The descriptive information of the area and the second target action;
  • the processing module 104 is configured to perform at least one of the following processing according to the first indication information instruction:
  • the first condition is that the first variable matches the first target value
  • the first variable is the variable indicated by the indication information in the first variable indication information buffer
  • the first target value is the The value in the first target value description information buffer or the value obtained by the method indicated by the instruction information in the first target value description information buffer
  • the first instruction instruction information indicates to determine the first variable A method for indicating the location of the information buffer and the first target value description information buffer
  • the second instruction indication information indicates a method for obtaining the description information of the second target action.
  • the description information of the second target action includes third instruction indication information, a second variable indication information buffer, and a second target value description information buffer;
  • the third instruction indication information indicates that the second target action is to set the value of the second variable as the value in the first buffer, and the second variable is the value in the second variable indication information buffer.
  • the variable indicated by the indication information, the first buffer is the second target value description information buffer or a buffer determined according to the method indicated by the indication information in the second target value description information buffer.
  • the first variable indication information buffer is used to carry a first type of indication information
  • the first type of indication information is indication information indicating variables in a first variable set
  • the first variable set include at least two variables in .
  • the second variable indication information buffer is used to carry a second type of indication information, the second type of indication information is indication information indicating variables in a second variable set, and the second variable set includes at least two variables .
  • the method when the first routing message, the first variable, the first target value, and the second variable satisfy the sixth condition, the method further includes:
  • the next hop Nexthop of the fifth routing message is an identification device IP address
  • the fifth routing message and the third routing message are similar routing messages
  • the fifth routing message does not carry the same as the first indication information, the second instruction indication information, the first The instruction information corresponding to the instruction information of the three instructions;
  • the fifth routing message is used to instruct the first device to perform the following processing: in response to the next hop of the fifth routing message being in the first IP value set, the first device sends the fourth The variable is set to a fourth target value, wherein the fourth variable is a variable in the context in which the first device performs the first target action on the fifth routing packet, so that the fourth variable is the same as the The second variable has a symmetrical relationship.
  • the second target action includes coupling a third entity with the target routing information and setting a third attribute of the third entity to the second target value, wherein the The third attribute is the first attribute of the first entity or the second attribute of the second entity, the third entity is the second entity or the first entity to which the third attribute belongs, and the third attribute is a field of the third entity storing second indication information, and the second target value is a value of the second indication information.
  • the second indication information is used to indicate that the message received from the third entity cannot be forwarded to a fourth entity, and the fourth entity is different from the third entity, or,
  • the second indication information is used to indicate that the message received from the third entity cannot be forwarded to the third entity.
  • the second entity or the first entity is at least one of the following:
  • Embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Selon des modes de réalisation, la présente divulgation concerne un procédé et un appareil de traitement de paquet de routage, ainsi qu'un support de stockage et un appareil électronique. Le procédé comprend les étapes suivantes : un premier dispositif obtient des informations de routage cibles ; et émet un premier paquet de routage conformément aux informations de routage cibles, les premières informations d'indication transportées par le premier paquet de routage étant utilisées pour demander à un dispositif recevant le premier paquet de routage d'effectuer au moins l'une des actions consistant à : lorsque le dispositif recevant le premier paquet de routage est un dispositif satisfaisant une première condition et se trouve dans le contexte d'exécution d'une première action cible, exécuter une seconde action cible ; et lorsque le dispositif recevant le premier paquet de routage est un dispositif ne satisfaisant pas la première condition et se trouve dans le contexte d'exécution de la première action cible, ne pas exécuter la seconde action cible. Il est possible ainsi de résoudre le problème de l'état de la technique lié à la manière dont un terminal émetteur peut demander à différents terminaux récepteurs d'effectuer un traitement différent sur un même paquet de routage.
PCT/CN2022/115496 2021-10-15 2022-08-29 Procédé et appareil de traitement de paquet de routage, et support de stockage et appareil électronique Ceased WO2023061069A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111204435.4 2021-10-15
CN202111204435.4A CN115996157A (zh) 2021-10-15 2021-10-15 路由报文处理方法、装置、存储介质及电子装置

Publications (1)

Publication Number Publication Date
WO2023061069A1 true WO2023061069A1 (fr) 2023-04-20

Family

ID=85988159

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115496 Ceased WO2023061069A1 (fr) 2021-10-15 2022-08-29 Procédé et appareil de traitement de paquet de routage, et support de stockage et appareil électronique

Country Status (2)

Country Link
CN (1) CN115996157A (fr)
WO (1) WO2023061069A1 (fr)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139189A (zh) * 2011-12-05 2013-06-05 京信通信系统(中国)有限公司 一种IPSec隧道共用方法、系统及设备
US20160301626A1 (en) * 2015-04-08 2016-10-13 Oracle International Corporation Tunnel consolidation for real-time communications
EP3148151A1 (fr) * 2015-09-23 2017-03-29 Vodafone GmbH Methode, programme informatique et systeme de reseau pour etablissement d'une communication de donnees
CN107294711A (zh) * 2017-07-11 2017-10-24 国网辽宁省电力有限公司 一种基于vxlan技术的电力信息内网报文加密发布方法
WO2018063276A1 (fr) * 2016-09-30 2018-04-05 Intel Corporation Sélection et resélection de trajet en plan u pour une communication d'ue à ue
CN111277481A (zh) * 2020-01-09 2020-06-12 奇安信科技集团股份有限公司 一种建立vpn隧道的方法、装置、设备及存储介质
CN112583714A (zh) * 2019-09-30 2021-03-30 华为技术有限公司 路由控制方法和装置
CN112929273A (zh) * 2017-03-14 2021-06-08 华为技术有限公司 一种处理路由的方法、设备及系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139189A (zh) * 2011-12-05 2013-06-05 京信通信系统(中国)有限公司 一种IPSec隧道共用方法、系统及设备
US20160301626A1 (en) * 2015-04-08 2016-10-13 Oracle International Corporation Tunnel consolidation for real-time communications
EP3148151A1 (fr) * 2015-09-23 2017-03-29 Vodafone GmbH Methode, programme informatique et systeme de reseau pour etablissement d'une communication de donnees
WO2018063276A1 (fr) * 2016-09-30 2018-04-05 Intel Corporation Sélection et resélection de trajet en plan u pour une communication d'ue à ue
CN112929273A (zh) * 2017-03-14 2021-06-08 华为技术有限公司 一种处理路由的方法、设备及系统
CN107294711A (zh) * 2017-07-11 2017-10-24 国网辽宁省电力有限公司 一种基于vxlan技术的电力信息内网报文加密发布方法
CN112583714A (zh) * 2019-09-30 2021-03-30 华为技术有限公司 路由控制方法和装置
CN111277481A (zh) * 2020-01-09 2020-06-12 奇安信科技集团股份有限公司 一种建立vpn隧道的方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115996157A (zh) 2023-04-21

Similar Documents

Publication Publication Date Title
US9929940B2 (en) Update of MAC routes in EVPN single-active topology
WO2021063232A1 (fr) Procédé, appareil et système d'établissement d'élément de table d'acheminement bier
US9860169B1 (en) Neighbor resolution for remote EVPN hosts in IPV6 EVPN environment
US10771380B2 (en) Fast control path and data path convergence in layer 2 overlay networks
US10404573B2 (en) Efficient method to aggregate changes and to produce border gateway protocol link-state (BGP-LS) content from intermediate system to intermediate system (IS-IS) link-state database
US20170099180A1 (en) Fast convergence of evpn networks for multi homing topologies
US10367715B2 (en) Proxy of routing protocols to redundant controllers
CN110224935B (zh) 一种处理组播数据报文的方法及装置
US9954694B2 (en) Traffic black holing avoidance and fast convergence for active-active PBB-EVPN redundancy
WO2020142873A1 (fr) Procédé, dispositif et système de commande d'itération d'itinéraire
CN103098426A (zh) 使用分层标记栈改进ldp收敛的方法和设备
CN112511995B (zh) 消息交互方法、装置、设备和存储介质
US8923162B2 (en) Management of private virtual networks
CN112491706B (zh) 数据报文的处理方法及装置、存储介质、电子装置
US12143293B2 (en) Fast reroute for BUM traffic in ethernet virtual private networks
US20230081052A1 (en) Method and apparatus for sending multicast packet
WO2020142875A1 (fr) Procédé, dispositif et système de distribution de routage
WO2022042610A1 (fr) Procédé de traitement d'informations, dispositif de commande de réseau, nœud et support de stockage lisible par ordinateur
US12562988B2 (en) BUM traffic handling for EVPN E-tree via network convergence
WO2023061069A1 (fr) Procédé et appareil de traitement de paquet de routage, et support de stockage et appareil électronique
CN117336270A (zh) 一种组播信息转发方法、装置、组播信息汇聚节点及介质
WO2022222582A1 (fr) Procédé et appareil de traitement de paquets, support de stockage et appareil électronique
CN119011692A (zh) 一种信息处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22880016

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22880016

Country of ref document: EP

Kind code of ref document: A1