CN115022121A - Message processing method, device, equipment and medium - Google Patents

Message processing method, device, equipment and medium Download PDF

Info

Publication number
CN115022121A
CN115022121A CN202210614423.7A CN202210614423A CN115022121A CN 115022121 A CN115022121 A CN 115022121A CN 202210614423 A CN202210614423 A CN 202210614423A CN 115022121 A CN115022121 A CN 115022121A
Authority
CN
China
Prior art keywords
srv6
message
vxlan
tunnel
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.)
Pending
Application number
CN202210614423.7A
Other languages
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210614423.7A priority Critical patent/CN115022121A/en
Publication of CN115022121A publication Critical patent/CN115022121A/en
Pending 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
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Abstract

The application provides a message processing method, a message processing device, message processing equipment and a message processing medium, and relates to the technical field of communication. The method comprises the following steps: obtaining SRv6 SRv6 messages output by the network; determining transmission data in the SRv6 message and the END-SID of the SRv6 message; determining configuration information of a target VXLAN tunnel corresponding to the END-SID by using a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between a node segment identifier of SRv6 network and the configuration information of the VXLAN tunnel; and encapsulating the transmission data by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel. According to the embodiment of the application, the message conversion efficiency between the SRv6 message and the VXLAN message can be improved.

Description

Message processing method, device, equipment and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for processing a packet.
Background
With the development of communication technology, the interworking technology between internet protocol version 6 Routing (IPv 6, SRv6) Network and Virtual eXtensible Local Area Network (VXLAN) Network has gradually developed.
Since VXLAN messages need to be transmitted in VXLAN networks, SRv6 messages need to be transmitted in SRv6 networks. Therefore, how to improve the message conversion efficiency between the SRv6 message and the VXLAN message in the interworking technology becomes an urgent problem to be solved.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present application and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The application provides a message processing method, a message processing device and a message processing medium, which at least solve the problem of low message conversion efficiency between SRv6 messages and VXLAN messages to a certain extent.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the present application, there is provided a packet processing method applied to a packet forwarding device, including:
obtaining SRv6 SRv6 messages output by the network;
determining transmission data in the SRv6 message and an END-SID of the SRv6 message;
determining configuration information of a target VXLAN tunnel corresponding to the END-SID by using a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between a node segment identifier of SRv6 network and the configuration information of the VXLAN tunnel;
and packaging the transmission data by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel.
In one embodiment, prior to encapsulating the transmission data with configuration information for the target VXLAN tunnel, the method further comprises:
acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is the bearing information of the forwarding service of the SRv6 message from an SRv6 network, and the second forwarding service information is the bearing information of the forwarding service of the VXLAN message from a target VXLAN tunnel;
judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
encapsulating transmission data by using configuration information of a target VXLAN tunnel, comprising the following steps:
and packaging the transmission data by using the configuration information of the target VXLAN tunnel under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
In one embodiment, after determining whether the first forwarding service information and the second forwarding service information satisfy the preset service binding relationship, the method further includes:
and under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship, discarding the transmission data.
In one embodiment, before determining the transmission data in the SRv6 message and the destination node segment identification END-SID of the SRv6 message, the method further comprises:
obtaining SRv6 Segment Left field of message;
determining transmission data in the SRv6 message and a destination node segment identifier (END-SID) of the SRv6 message, wherein the method comprises the following steps:
and determining the transmission data in the SRv6 message and the END-SID of the SRv6 message under the condition that the END-SID exists in the preset tunnel mapping relation and the value of the Segment Left field is 0.
According to another aspect of the present application, there is provided a packet processing method applied to a packet forwarding device, including:
obtaining VXLAN messages output by VXLAN tunnels;
determining configuration information of a VXLAN tunnel and transmission data in a VXLAN message;
determining a target Binding Segment Identifier (BSID) corresponding to the configuration information by using a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between the configuration information of the VXLAN tunnel and the configuration information of the BSID of the SRv6 network;
and packaging the transmission data by using the target BSID to obtain SRv6 messages for inputting target SRv6 network transmission.
In one embodiment, before encapsulating transmission data with a target BSID to obtain SRv6 messages for incoming target SRv6 network transmissions, the method further comprises:
acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is bearing information of a forwarding service of a SRv6 message by a target SRv6 network, and the second forwarding service information is bearing information of a forwarding service of a VXLAN message by a VXLAN tunnel;
judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
encapsulating transmission data with a target BSID, comprising:
and packaging the transmission data by using the target BSID under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
In one embodiment, after determining whether the first forwarding service information and the second forwarding service information satisfy the preset service binding relationship, the method further includes:
and under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship, discarding the transmission data.
In one embodiment, determining configuration information for the VXLAN tunnel and transmission data in the VXLAN message comprises:
determining configuration information of a VXLAN tunnel;
judging whether the configuration information of the VXLAN tunnel exists in a preset tunnel mapping relation or not;
and under the condition that the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation, the VXLAN message is de-encapsulated to obtain transmission data.
In one embodiment, the preset tunnel mapping relationship further includes routing mode information of the target SRv6 network;
encapsulating transmission data by using the target BSID to obtain SRv6 messages for inputting target SRv6 network transmission, wherein the SRv6 messages comprise:
under the condition that the routing mode information is the optimal SRv6 path SRv6BE mode, packaging according to a packaging format corresponding to the SRv6BE mode to obtain a SRv6 message;
and under the condition that the routing mode information is SRv6 traffic engineering strategy SRv6TE Policy mode, packaging according to a packaging format corresponding to the SRv6TE Policy mode to obtain SRv6 messages.
According to another aspect of the present application, there is provided a message processing apparatus, including:
SRv6, a message processing module, configured to obtain a SRv6 message output by SRv6 network; determining transmission data in the SRv6 message and the END-SID of the SRv6 message;
the information processing module is used for determining the configuration information of the target VXLAN tunnel corresponding to the END-SID by utilizing a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between the node segment identifier of the SRv6 network and the configuration information of the VXLAN tunnel;
and the VXLAN message processing module is used for encapsulating the transmission data by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel.
In one embodiment, the information processing module includes:
the first virtual AC interface is connected with the SRv6 message processing module;
and the second virtual AC interface is connected with the VXLAN message processing module.
In one embodiment, the apparatus further comprises:
and the application programming interface API is used for receiving a mapping strategy between the SRv6 network and the VXLAN tunnel sent by the controller, and the mapping strategy is used for producing a preset tunnel mapping relation.
According to still another aspect of the present application, there is provided a message processing apparatus including:
the VXLAN message processing module is used for acquiring VXLAN messages output by the VXLAN tunnel; determining configuration information of a VXLAN tunnel and transmission data in a VXLAN message;
the information processing module is used for determining a target Binding Segment Identifier (BSID) corresponding to the configuration information by utilizing a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between the configuration information of the VXLAN tunnel and the configuration information of the BSID of the SRv6 network;
SRv6 message processing module, configured to encapsulate the transmission data with the target BSID, to obtain SRv6 message for inputting target SRv6 network transmission.
According to still another aspect of the present application, there is provided an electronic device including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to execute the message processing method via executing the executable instructions.
According to yet another aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the message processing method described above.
According to the message processing method, the device, the equipment and the medium provided by the embodiment of the application, after the obtained SRv6 message is obtained, the configuration information of the target VXLAN tunnel corresponding to the END-SID in the SRv6 message can be determined based on the preset tunnel mapping relation, and the configuration information of the target VXLAN tunnel is utilized to package the transmission data to obtain the VXLAN message. Because the END-SID identifies the destination node of the SRv6 message in the SRv6 network, and the configuration information of the target VXLAN tunnel corresponds to the target VXLAN tunnel, correspondingly, the END-SID in the SRv6 message can quickly determine the target VXLAN tunnel mapped with the destination node in the SRv6 network in the preset tunnel mapping relationship recorded in the mapping relationship between the node in the SRv6 network and the VXLAN tunnel, and further, the configuration information of the target VXLAN tunnel can be quickly encapsulated into a VXLAN message which can enter the target VXLAN tunnel for transmission, thereby improving the message conversion efficiency between the SRv6 message and the VXLAN message.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 illustrates a packet processing scheme in the related art;
fig. 2 is a schematic diagram illustrating a format of an SRv6 message according to an embodiment of the present application;
fig. 3 shows a schematic format diagram of a VXLAN message provided in an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a processing logic of a message processing scheme according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a message processing method in an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an exemplary tunnel mapping relationship table provided in an embodiment of the present application;
fig. 7 is a schematic diagram illustrating an exemplary service binding relationship table provided in an embodiment of the present application;
FIG. 8 is a flow chart illustrating another message processing method in an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a message processing apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of another message processing apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram illustrating an exemplary message processing apparatus according to an embodiment of the present application; and
fig. 12 is a block diagram illustrating a structure of an electronic device in an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
It should be noted that the terms "first", "second", and the like in the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this application are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
In the interworking transmission technology between SRv6 network and VXLAN network, since VXLAN messages need to be transmitted in VXLAN network, SRv6 messages need to be transmitted in SRv6 network. Therefore, how to implement the message conversion between the SRv6 message and the VXLAN message is an urgent problem to be solved.
In a related art, fig. 1 shows a packet processing scheme in the related art.
As shown in fig. 1, the controller 11 supports issuing commands such as: relevant configuration parameters of SRv6 messages, such as an optimal SRv6 path (Segment Routing IPv6 Best Effort, SRv6 BE), SRv6 Traffic Engineering Policy (Segment Routing IPv6 Traffic Engineering Policy, SRv6TE Policy), Ethernet Virtual Private Network (EVPN), and the like, that is, configuration parameter 1 in fig. 1.
The controller 11 also supports the issue of relevant configuration information of the VXLAN packet, such as VXLAN tunnel parameters, VXLAN Network Identifier (VNI), Broadcast Domain (BD) information, etc., i.e., configuration parameter 2 in fig. 1. Optionally, the configuration parameter 2 may further include Virtual Private Network (VPN) information of the VXLAN Network when the VXLAN Network configures a VXLAN three-layer gateway.
However, since the encapsulation and decapsulation technique of the VXLAN message and the encapsulation and decapsulation technique of the SRv6 message cannot be spliced in the same device, SRv6 does not have a corresponding termination mode to enter the VXLAN network. The controller 11 can only issue the configuration parameter 1 to the first router 12 and issue the configuration parameter 2 to the second router 13.
With reference to fig. 1, after the configuration parameter is successfully issued, after the SRv6 message M1 enters the first router 12, the first router 12 needs to strip the header H1 of the SRv6 message M1 first, so as to obtain the transmission DATA. The first router 12 then forwards the transmission DATA to the second router 13 for encapsulation as a VXLAN message M2.
Similarly, after the VXLAN message M2 enters the second router 13, the second router 13 needs to obtain the transmission DATA after stripping off the VXLAN header H2. Then, the transmission DATA is forwarded to the first router 12 encapsulating SRv6 the message M1.
In this kind of technical solution, there is at least one of the following problems:
problem one, between the first router 12 and the second router 13, it is often necessary to establish a routing table, and forward the routing table from the physical sending port of one router to the physical receiving port of the other router by table lookup and forwarding. The forwarding process is complicated, thereby affecting the message conversion efficiency.
Problem two, it also needs to manually ensure the intercommunication of the two or three layers of the first router 12 and the second router 13. This configuration is cumbersome and further affects the message conversion efficiency.
And thirdly, decapsulation of the message headers needs to be performed on the two routers respectively, and routing tables need to be configured, so that the link bandwidth is wasted, the resource consumption is increased, the equipment configuration is complex, and the maintenance difficulty is high.
In order to solve at least one of the above problems, embodiments of the present application provide a message processing scheme, which may be applied to scenarios that require intercommunication between SRv6 networks and a VXLAN network, such as a metropolitan area network access cloud network scenario, a cloud network convergence scenario, and a private line service scenario. Specifically, when a message needs to be sent from the SRv6 network to the VXLAN network, the configuration information of the target VXLAN tunnel bound to the SRv6 network can be found by using the preset tunnel mapping relationship, and then the VXLAN message capable of entering the target VXLAN tunnel for transmission is obtained by encapsulation. Or when the message needs to be sent from the VXLAN network to the SRv6 network, the preset tunnel mapping relationship can be used to quickly find the configuration information of the target SRv6 network matched with the VXLAN tunnel, and then the SRv6 message which can enter the target SRv6 network for transmission is obtained through encapsulation, so that the message conversion efficiency between the SRv6 message and the VXLAN message is improved.
Next, a message processing method, a message processing apparatus, a message processing device, and a message processing medium according to embodiments of the present application will be described.
Before the technical solutions of the embodiments of the present application are introduced, the technical data related to the embodiments of the present application are defined and explained.
(1) SRv6 network, a network that uses SRv6 messages for data transmission. In this network, SRv6 messages may BE routed in SRv6 networks using modes such as SRv6BE mode, SRv6TE Policy mode, etc.
(2) SRv6 message, or referred to as a route extension Header (SRH) message, fig. 2 shows a format schematic diagram of a SRv6 message provided in this embodiment of the present application. As shown in fig. 2, the SRv6 message may include SRv6 message header and transport data 23. The SRv6 header may include an IPv6 header 21 and an SRH header 22.
Wherein the transmission data 23 may be the original data that needs to be transmitted by SRv6 message.
(3) VXLAN networks, i.e., networks that use VXLAN messages for data transmission.
(4) The VXLAN tunnel is a virtual channel established between a source network device and a destination network device of the VXLAN network and is used for transmitting VXLAN messages.
(5) Fig. 3 shows a format diagram of a VXLAN packet according to an embodiment of the present application. As shown in fig. 3, the VXLAN message may include both the header and the transmission data 35 portions of the VXLAN message. The header of the VXLAN message may include a Media Access Control (MAC) header 31 (i.e., an ethernet header), an outer IP header 32, a User Datagram Protocol (UDP) header 33, and a VXLAN header 34.
After the above technical terms are introduced, since the execution main body of the embodiment of the present application is a message processing apparatus, in order to facilitate overall understanding of the message processing scheme provided by the embodiment of the present application, the message processing scheme of the embodiment of the present application is first described in combination with the message processing apparatus as a whole.
Fig. 4 is a schematic diagram illustrating a processing logic of a message processing scheme according to an embodiment of the present application. As shown in fig. 4, after obtaining SRv6 the message M1, the message forwarding device 40 may decapsulate the message M, strip the header H1 of the message M, and obtain the transmission DATA, and then determine the configuration information of the target VXLAN tunnel by using a preset tunnel mapping relationship. And then, encapsulating the transmission DATA DATA by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message M2.
Similarly, after obtaining the VXLAN message M2, the message forwarding device 40 may decapsulate the VXLAN message M2, strip the header H2 of the VXLAN message, and obtain the transmission DATA, and then determine the binding segment identifier BSID of the SRv6 message by using a preset tunnel mapping relationship. Then, the transmission DATA is encapsulated by the BSID, and SRv6 message M1 is obtained.
Through the message forwarding device 40, the conversion between the SRv6 message and the VXLAN message can be completed in the same device, so that the deployment of related network element devices is simplified, physical network devices are saved, and the network is more flat. And the configuration flow of the equipment is simplified, the operation and maintenance cost of the equipment is reduced, the packaging process of the message is simplified, and the utilization rate of the link bandwidth is improved.
Optionally, the message forwarding device 40 may further receive an S-V policy issued by the controller 50 through an Application Programming Interface (API), and then generate an S-V table according to the S-V policy. The S-V table records SRv6 a binding relationship between the network and the VXLAN tunnel, for example, the S-V table may include a tunnel mapping relationship table (S-V tunnel table) recording a tunnel mapping relationship, or may further include a service binding relationship table (S-V service table) recording a service binding relationship.
Illustratively, the S-V policies may include S-V tunneling policies, such as may be referred to as S-V policies. Optionally, the S-V tunnel policy includes multiple sets of parameters, where each set of parameters includes a set of corresponding node segment identifiers and configuration information of the VXLAN tunnel. Wherein each group of parameters further comprises an S-V policy identification (S-V policy id).
As yet another example, S-V policies may also include S-V business policies, such as may be referred to as S-Vservice. Optionally, the S-V traffic policy may include a plurality of sets of corresponding first forwarding traffic information and second forwarding traffic information.
For example, the message processing method according to the embodiment of the present application may be implemented by a message forwarding engine deployed in the message forwarding device 40. Accordingly, the message forwarding device 40 may issue the S-V table to the message forwarding engine after generating the table.
It should be noted that, through the dedicated API interface, S-V policy transmission between the message forwarding device 40 and the controller 50 may be facilitated, and advantages such as convenience in deployment may also be provided.
After preliminarily understanding the processing logic of the embodiment of the present application, a description will be given below of a message processing method provided in the embodiment of the present application with reference to the drawings and the embodiment.
The embodiment of the application provides a message processing method, which can be executed by any message processing device with message processing capability or a message forwarding engine inside the message processing device. The message processing apparatus may be, for example, a router or the like equipped with a message forwarding engine, and is not particularly limited in this regard.
Fig. 5 shows a flowchart of a message processing method in the embodiment of the present application, and as shown in fig. 5, the message processing method provided in the embodiment of the present application includes the following steps S510 to S540.
S510, obtaining and SRv6 the SRv6 message output by the network.
For specific contents of SRv6 network and SRv6 messages, reference may be made to the above description of the embodiments of the present application, which is not described herein again.
S520, determining the transmission data in the SRv6 message and the END-SID (destination node segment identifier) of the SRv6 message.
For the transmission data, it may be SRv6 message data that needs to be transmitted.
In some embodiments, the manner of obtaining the transmission data may include: and (8) de-encapsulating the SRv6 message to obtain the transmission data. For example, the header may be stripped SRv6 to obtain the transmission data.
For the END-SID, which represents a destination node in the network, the device is instructed to process SRH, update the IPv6 destination address field, and then look up the IPv6 routing table for message forwarding. Illustratively, for SRv6 messages transmitted out of SRv6 networks, their END-SID may be the segment ID of the egress node of SRv6 networks.
In some embodiments, the END-SID of the SRv6 message may be obtained from the SRH extension header of the SRv6 message.
S530, determining the configuration information of the target VXLAN tunnel corresponding to the END-SID of the SRv6 message by using the preset tunnel mapping relation.
For a target VXLAN tunnel, it may be the target transport tunnel of the SRv6 message.
For the configuration information of the target VXLAN tunnel, it may be information that needs to be configured in the process of encapsulating the VXLAN message for transmission in the target VXLAN tunnel. Illustratively, the configuration information for the target VXLAN tunnel may include a source IP address, a destination IP address, and a VNI. It should be noted that the configuration information of the target VXLAN tunnel may include other information that needs to be configured, which is not described herein again.
For the preset tunnel mapping relationship, it may include SRv6 a mapping relationship between node segment identification of the network and configuration information of the VXLAN tunnel.
In some embodiments, the presetting of the tunnel mapping relationship may include: a first tunnel mapping relationship between the END-SID and the configuration information of the VXLAN tunnel, and a second tunnel mapping relationship between the BID and the configuration information of the VXLAN tunnel.
Accordingly, when the transmission from the SRv6 network to the VXLAN network is needed, the configuration information of the target VXLAN tunnel can be inquired from the first tunnel mapping relation according to the END-SID.
In one embodiment, the preset tunnel mapping relationship may be implemented as a tunnel mapping relationship table (S-V tunnel table).
In an example, fig. 6 illustrates a schematic diagram of an exemplary tunnel mapping relationship table provided in an embodiment of the present application. As shown in fig. 6, a tunnel mapping table (S-V tunnel table) may include a first tunnel mapping relationship between S-V policy id, END-SID and VXLAN tunnel configuration information.
The configuration information of the target VXLAN tunnel may include a source IP address (VXLAN _ src _ IP), a destination IP address (VXLAN _ det _ IP), and a VXLAN network identifier (vni).
Illustratively, with continued reference to FIG. 6, if after the SRv6 message is obtained, its END-SID may be extracted therefrom, such as "2022: 2: 27: : 243 ", then, it can be found through the tunnel mapping relation table that the source IP address is" 1.1.1.2 ", the destination IP address is" 1.1.1.3 ", and the VNI is" 1 ", and then, the VXLAN packet can be configured and generated by using the source IP address" 1.1.1.2 ", the destination IP address" 1.1.1.3 ", and the VNI" 1 ".
In one example, with continued reference to fig. 6, the second tunnel mapping may be a second tunnel mapping between a binding segment identification (bsid) and a source IP address, a destination IP address, a VNI.
Optionally, the tunnel mapping relationship table may further include a SRv6 routing mode corresponding to the SRv6 packet. For example, with continued reference to FIG. 6, the parameter value for the SRv6 routing mode "bsid _ mode" may BE "BE," which corresponds to SRv6 BE. Still alternatively, the parameter value may also be "TE", corresponding to SRv6TE Policy. It should BE noted that identifiers other than "BE" and "TE" may BE used to indicate different routing modes, and this is not particularly limited.
Optionally, the tunnel mapping relationship table may further include an S-V policy identification (S-V policy id). Each tunnel mapping relation table corresponds to 1S-V policy id, which is issued by the controller and has globally unique identification in the message forwarding equipment. Illustratively, an error is reported when the controller repeatedly issues the same S-V policy id, indicating that the S-V policy id conflicts. Therefore, the orderly and reasonable configuration of the mapping relation of the tunnel can be ensured.
And S540, packaging the transmission data by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel.
In S540, the VXLAN packet may be encapsulated according to the encapsulation format and the encapsulation flow of the VXLAN packet, and the encapsulation format and the encapsulation flow are not specifically limited.
According to the message processing method provided by the embodiment of the application, after the obtained SRv6 message is obtained, the configuration information of the target VXLAN tunnel corresponding to the END-SID in the SRv6 message can be determined based on the preset tunnel mapping relationship, and the configuration information of the target VXLAN tunnel is used for encapsulating the transmission data to obtain the VXLAN message. Because the END-SID identifies the destination node of the SRv6 message in the SRv6 network, and the configuration information of the target VXLAN tunnel corresponds to the target VXLAN tunnel, correspondingly, the END-SID in the SRv6 message can quickly determine the target VXLAN tunnel mapped with the destination node in the SRv6 network in the preset tunnel mapping relationship recorded in the mapping relationship between the node in the SRv6 network and the VXLAN tunnel, and further, the configuration information of the target VXLAN tunnel can be quickly encapsulated into a VXLAN message which can enter the target VXLAN tunnel for transmission, thereby improving the message conversion efficiency between the SRv6 message and the VXLAN message.
In some embodiments, before S540, the message processing method may further include step a1 and step a 2.
Step a1, acquiring the first forwarding service information and the second forwarding service information.
The first forwarding service information is the bearer information of the forwarding service of the SRv6 message from the SRv6 network. Illustratively, in the case where the network SRv6 is internetworking based on EVPN, the first forwarding traffic information may include a configuration value of EVPN. EVPN is a VPN technology for two-layer network interconnection.
Illustratively, the configuration values of EVPN may include a Route identifier (RD) of VPN, an import Route Target (RT) of VPN, and an export RT of VPN. For example, RD of VPN may be denoted as "VPN _ RD", import RT of VPN may be denoted as "VPN _ RT _ in", and export RT of VPN may be denoted as "VPN _ RT _ ex".
And the second forwarding service information is the bearing information of the forwarding service of the VXLAN message by the target VXLAN tunnel. Illustratively, the second forwarding traffic information may be related information of the L2 network or related information of the L3 network.
In a specific example, the second forwarding service information may include a BD Domain schema (L2 network or L3 network), a VLAN identifier, a Domain Controller (DC) gateway address, an RD of a DC gateway, an import RT of a BD Domain, and an export RT of a DC gateway. For example, the BD domain mode may be denoted as "BD _ mode" and the VLAN id may be denoted as "VLAN _ id". The DC gateway address may be denoted "BDIF _ ip". RD of the DC gateway may be denoted as "BD _ VPN _ RD", import RT of the DC gateway may be denoted as "BD _ VPN _ RT _ in", and export RT of the BD domain may be denoted as "BD _ VPN _ RT _ ex".
For step a1, after determining SRv6 network and target VXLAN tunnel, the first forwarding service information of SRv6 network and the second forwarding service information corresponding to the target VXLAN tunnel can be found.
Step a2, determining whether the first forwarding service information and the second forwarding service information satisfy a preset service binding relationship. The preset service binding relationship comprises a binding relationship between the first forwarding service information and the second forwarding service information.
In one embodiment, the preset service binding relationship may be implemented as a service binding relationship table (S-V service table).
Fig. 7 is a schematic diagram illustrating an exemplary service binding relationship table provided in an embodiment of the present application. As shown in fig. 7, a service binding relationship table (S-V service table) records a correspondence relationship between service bearers of SRv6 and service bearers of VXLAN tunnels bound to each other.
As shown in fig. 7, VPN _ RD, VPN _ RT _ in, and VPN _ RT _ ex are RD value and RT value of EVPN carried by SRv 6.
BD _ mode represents the bearer service mode of the VXLAN tunnel. Illustratively, a VXLAN tunnel can carry layer 2 forwarding traffic (i.e., an L2 network or referred to as an L2 gateway) can be denoted by "L2", and a VXLAN tunnel can carry layer 3 forwarding traffic (i.e., an L3 network or referred to as an L3 gateway) can be denoted by "L3".
vlan _ id is the vlan value that the VXLAN user side matches.
The values of BDIF _ ip, BD _ VPN _ RD, BD _ VPN _ RT _ in, and BD _ VPN _ RT _ ex are all null when the value of BD _ mode is L2. And, in the case where the BD _ mode has a value of L3, the BDIF _ ip takes a value of the DC gateway address. If the DC gateway carries the VPN, BD _ VPN _ RD is the RD value of the VPN of the DC gateway, BD _ VPN _ RT _ in is the import RT of the VPN of the DC gateway, and BD _ VPN _ RT _ ex is the export RT of the VPN of the DC gateway. And if the DC gateway does not carry the VPN, the values of the BD _ VPN _ RD, the BD _ VPN _ RT _ in and the BD _ VPN _ RT _ ex are null.
Optionally, the service binding relation table further comprises a service identifier "Evpl-id". Illustratively, when SRv6 bearer traffic is EVPN VPWS, Evpl-id is the local service identification (service-id). If the SRv6 bearer service is EVPN L3VPN, the value of Evpl-id is 0.
In some embodiments, the specific implementation of step a2 may include: and judging whether the first forwarding service information and the second forwarding service information exist in the same service binding relation table, if so, indicating that the first forwarding service information and the second forwarding service information meet the preset service binding relation.
Accordingly, S540 may include: and packaging the transmission data by using the configuration information of the target VXLAN tunnel under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
For S540, reference may be made to relevant descriptions of the above-mentioned portions of the embodiments of the present application, which are not described herein again.
Through the above steps a1 and a2, it can be determined whether the service bearer of SRv6 matches the service bearer of the VXLAN tunnel by using the preset service binding relationship. For example, it may be determined whether the EVPN of SRv6 matches the L2 network or the L3 network corresponding to the VXLAN tunnel. Through the embodiment, the service matching of the two services can be completed without manual matching. Through the steps, the compatibility of the message packaging capability of the message processing device can be ensured, the interoperability of the SRv6 network and the VXLAN tunnel is ensured, and the rationality and the efficiency of message processing are improved.
In one example, after step a2, the message processing method may further include step A3.
Step a3, discarding the transmission data when the first forwarding service information and the second forwarding service information do not satisfy the preset service binding relationship.
Through the step A3, the accuracy of message processing can be ensured, and abnormal messages can be cleared in time. Optionally, after step a3, an error report may be further included to the controller, so that the controller reconfirms the policy, and thus the packet forwarding problem can be handled in time.
In some embodiments, before S520, the message processing method may further include step B1.
Step B1, obtain Segment Left field of SRv6 message.
Correspondingly, S520 may specifically include: and under the condition that the END-SID exists in the preset tunnel mapping relation and the value of the Segment Left field is 0, decapsulating the SRv6 message to obtain transmission data.
Through the step B1, the END-SID exists in the preset tunnel mapping relationship, that is, it indicates that the VXLAN tunnel bound to the SRv6 network exists, so that the message processing can be continued. By judging whether the END-SID exists in the preset tunnel mapping relation, the message which can be processed can be screened out for continuous processing, and the processing precision is ensured.
And when the value of the Segment Left field is 0, SRv6 messages are transmitted out of the SRv6 network, namely the messages are terminated in the SRv6 network, so that the accuracy of message processing can be ensured by determining the Segment Left field.
Based on the same inventive concept, fig. 8 shows a flowchart of another message processing method in the embodiment of the present application, and as shown in fig. 8, the message processing method provided in the embodiment of the present application includes the following steps S810 to S840.
S810, obtaining VXLAN messages output by the VXLAN tunnel.
Specific contents of the VXLAN tunnel and the VXLAN message may refer to the above description of the embodiment of the present application, which is not described again.
S820, determine the configuration information of VXLAN tunnel and the transmission data in VXLAN message.
For configuration information of the VXLAN tunnel, refer to the related description of the above section of the embodiment of the present application in conjunction with S520, which is not limited in detail.
In some embodiments, configuration information for the VXLAN tunnel may be obtained from the VXLAN message. And obtaining the transmission data by a mode of de-encapsulating the VXLAN message.
In some embodiments, S820 may include steps C1 through C3.
Step C1, determine configuration information for the VXLAN tunnel.
Step C2, determine whether the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relationship.
And step C3, decapsulating the VXLAN message to obtain transmission data under the condition that the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation.
Through the above steps C1 to C31, the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relationship, that is, it indicates that the SRv6 network bound to the VXLAN tunnel exists, so that the message processing can be continued. By judging whether the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation, the message which can be processed can be screened out for continuous processing, and the processing precision is ensured.
S830, determining a target Binding segment identifier (Binding SID, BSID) corresponding to the configuration information by using a preset tunnel mapping relationship. Illustratively, the BSID may be used to orchestrate the routing path of SRv6 messages in the target SRv6 network.
The preset tunnel mapping relationship comprises a mapping relationship between configuration information of a VXLAN tunnel and configuration information of BSID of SRv6 network. For the preset tunnel mapping relationship, reference may be made to the related description of the above-mentioned part in the embodiments of the present application, which is not described again.
In one example, with continued reference to fig. 6, after obtaining the source IP address, the destination IP address, and the VNI, bsid may be determined according to a second tunnel mapping relationship, such as "2022: 2: 27: : 1".
S840, packaging the transmission data by using the target BSID, and obtaining SRv6 messages for inputting target SRv6 network transmission.
In S840, the packet may be encapsulated according to the encapsulation format and the encapsulation flow of the SRv6 message, and the encapsulation format and the encapsulation flow are not specifically limited.
In some embodiments, the preset tunnel mapping relationship also includes routing mode information for the destination SRv6 network. Illustratively, such as "bsid _ mode" in fig. 6.
Accordingly, S840 may specifically include step D1 and step D2.
And D1, encapsulating according to the encapsulation format corresponding to the SRv6BE mode to obtain a SRv6 message under the condition that the routing mode information is the SRv6BE mode.
For example, the step D1 may BE executed when the value of "bsid _ mode" in the preset tunnel mapping relationship is BE.
In one embodiment, step D1 may include: and packaging according to a native IPV6 packaging format by taking the target BSID in the preset tunnel mapping relation as a destination address.
And D2, encapsulating according to the encapsulation format corresponding to the SRv6TE Policy mode to obtain SRv6 messages under the condition that the routing mode information is SRv6TE Policy mode.
For example, step D2 may be executed when the value of "bsid _ mode" in the preset tunnel mapping relationship is set to be TE.
In one embodiment, step D2 may include: the SRH header is encapsulated and the SID is set to the target BSID, resulting in SRv6 messages. Wherein, SRv6 messages can be steered to SRv6te policy by the target BSID.
Through the steps D1 and D2, SRv6 messages can be flexibly and conveniently encapsulated based on the routing mode information, and the message encapsulation efficiency is improved.
In the embodiment of the present application, in combination with the message processing method shown in S810 to S840, after the obtained VXLAN message is obtained, a target BSID corresponding to configuration information of the VXLAN message may be determined based on a preset tunnel mapping relationship, and the target BSID is used to encapsulate transmission data to obtain SRv6 messages. Because the target BSID affects the routing path of the SRv6 message in the SRv6 network, the configuration information of the VPN tunnel corresponds to the target VXLAN tunnel, and accordingly, the target BSID mapped to the configuration information of the VXLAN message can be quickly determined in the preset tunnel mapping relationship recorded in the mapping relationship between the nodes in the SRv6 network and the VXLAN tunnel, and further, the target BSID can be quickly encapsulated into the SRv6 message which can enter the target SRv6 network for transmission, so that the message conversion efficiency between the SRv6 message and the VXLAN message is improved.
In some embodiments, before S840, the message processing method may further include steps E1 and E2.
Step E1, obtaining first forwarding service information and second forwarding service information, where the first forwarding service information is the bearer information of the forwarding service of the target SRv6 network to SRv6 message, and the second forwarding service information is the bearer information of the forwarding service of the VXLAN tunnel to the VXLAN message.
Step E2, determining whether the first forwarding service information and the second forwarding service information satisfy a preset service binding relationship, where the preset service binding relationship includes a binding relationship between the first forwarding service information and the second forwarding service information.
Accordingly, S840 may include: and packaging the transmission data by using the target BSID under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
For the step E1 and the step E2, reference may be made to the above-mentioned portions of the embodiments of the present application in combination with the related descriptions of the step a1 and the step a2, which are not described herein again.
In one example, after the step E2, the message processing method may further include a step E3.
And E3, discarding the transmission data under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship.
For specific contents of step E3, reference may be made to the related description of step A3 in the above-mentioned embodiments of the present application, and details are not repeated here.
Based on the same inventive concept, the embodiment of the present application further provides a message processing apparatus, such as the following embodiments.
Fig. 9 is a schematic diagram of a message processing apparatus in an embodiment of the present application, and as shown in fig. 9, the message processing apparatus 900 includes SRv6 a message processing module 910, an information processing module 920, and a VXLAN message processing module 930.
SRv6, a message processing module 910, configured to obtain SRv6 internet protocol version 6 route SRv6 message output by the network; and determining the transmission data in the SRv6 message and the destination node segment identification (END-SID) of the SRv6 message.
And the information processing module 920 is configured to determine configuration information of a target virtual extensible local area network VXLAN tunnel corresponding to the END-SID by using a preset tunnel mapping relationship, where the preset tunnel mapping relationship includes a mapping relationship between a node segment identifier of SRv6 network and the configuration information of the VXLAN tunnel.
The VXLAN message processing module 930 is configured to encapsulate the transmission data by using the configuration information of the target VXLAN tunnel, so as to obtain a VXLAN message for inputting the target VXLAN tunnel.
In some embodiments, information processing module 320 includes:
and the first virtual AC interface is connected with the SRv6 message processing module. For example, it may be referred to as a virtual EVPN AC port.
And the second virtual AC interface is connected with the VXLAN message processing module. For example, it may be referred to as an EVC sub-interface.
Through the virtual AC interface, the transmission of transmission data can be realized without setting a large number of physical interfaces, the data processing flow is simplified, and the maintenance cost is reduced.
In some embodiments, the message processing apparatus 900 further includes an API.
And the API is used for receiving a mapping strategy between the SRv6 network and the VXLAN tunnel sent by the controller, and the mapping strategy is used for producing a preset tunnel mapping relation.
It should be noted that, the API may refer to the foregoing description of the embodiments of the present application, and details are not described here again.
In some embodiments, the message processing apparatus 900 further includes: the device comprises a parameter acquisition module and a judgment module.
The parameter acquisition module is used for acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is the bearing information of the forwarding service of the SRv6 message by the SRv6 network, and the second forwarding service information is the bearing information of the forwarding service of the VXLAN message by the target VXLAN tunnel;
the judging module is used for judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
accordingly, the VXLAN message processing module 930 is specifically configured to: and packaging the transmission data by using the configuration information of the target VXLAN tunnel under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
In some embodiments, the message processing apparatus 900 further comprises a data discard module.
And the data discarding module is used for discarding the transmission data under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship.
In some embodiments, the message processing apparatus 900 further includes a parameter obtaining module.
The parameter acquisition module is used for acquiring SRv6 Segment Left fields of the messages;
correspondingly, the SRv6 message processing module 910 specifically includes:
and determining the transmission data in the SRv6 message and the END-SID of the SRv6 message under the condition that the END-SID exists in the preset tunnel mapping relation and the value of the Segment Left field is 0.
After the obtained SRv6 message is obtained, the message processing apparatus provided in the embodiment of the application may determine, based on a preset tunnel mapping relationship, configuration information of a target VXLAN tunnel corresponding to the END-SID in the SRv6 message, and encapsulate transmission data with the configuration information of the target VXLAN tunnel to obtain the VXLAN message. Because the END-SID identifies the destination node of the SRv6 message in the SRv6 network, and the configuration information of the target VXLAN tunnel corresponds to the target VXLAN tunnel, correspondingly, the END-SID in the SRv6 message can quickly determine the target VXLAN tunnel mapped with the destination node in the SRv6 network in the preset tunnel mapping relationship recorded in the mapping relationship between the node in the SRv6 network and the VXLAN tunnel, and further, the configuration information of the target VXLAN tunnel can be quickly encapsulated into a VXLAN message which can enter the target VXLAN tunnel for transmission, thereby improving the message conversion efficiency between the SRv6 message and the VXLAN message.
It should be noted that the message processing apparatus 900 shown in fig. 9 may execute each step in the method embodiments shown in fig. 5 to fig. 7, and implement each process and effect in the method embodiments shown in fig. 5 to fig. 7, which is not described herein again.
Based on the same inventive concept, the embodiment of the present application further provides a message processing apparatus, such as the following embodiments.
Fig. 10 shows another schematic diagram of a message processing apparatus in this embodiment of the application, and as shown in fig. 10, the message processing apparatus 1000 includes a VXLAN message processing module 1010, an information processing module 1020, and an SRv6 message processing module 1030.
The VXLAN message processing module 1010 is configured to obtain a VXLAN message output by a VXLAN tunnel; determining configuration information of a VXLAN tunnel and transmission data in a VXLAN message;
an information processing module 1020, configured to determine, by using a preset tunnel mapping relationship, a target binding segment identifier BSID corresponding to the configuration information, where the preset tunnel mapping relationship includes a mapping relationship between the configuration information of the VXLAN tunnel and the configuration information of the BSID of the SRv6 network;
SRv6 a message processing module 1030, configured to encapsulate the transmission data with the target BSID, to obtain SRv6 messages for inputting the target SRv6 network transmission.
In some embodiments, information processing module 1020 includes:
the first virtual AC interface is connected with the SRv6 message processing module;
and the second virtual AC interface is connected with the VXLAN message processing module.
In some embodiments, the message processing apparatus 1000 further includes:
and the application programming interface API is used for receiving a mapping strategy between the SRv6 network and the VXLAN tunnel sent by the controller, and the mapping strategy is used for producing a preset tunnel mapping relation.
In some embodiments, the message processing apparatus 1000 further includes: the device comprises a parameter acquisition module and a judgment module.
The parameter acquisition module is used for acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is the bearing information of the forwarding service of the target SRv6 network to SRv6 messages, and the second forwarding service information is the bearing information of the forwarding service of the VXLAN tunnel to the VXLAN messages;
the judging module is used for judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
correspondingly, the SRv6 message processing module 1030 is specifically configured to: and packaging the transmission data by using the target BSID under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
In some embodiments, the message processing apparatus 1000 further includes discarding the transmission data when the first forwarding service information and the second forwarding service information do not satisfy the preset service binding relationship.
In some embodiments, the information processing module 1020 includes an information determining unit, a determining unit, and a decapsulating unit.
The information determining unit is used for determining the configuration information of the VXLAN tunnel;
the judging unit is used for judging whether the configuration information of the VXLAN tunnel exists in a preset tunnel mapping relation or not;
and the decapsulation unit is used for decapsulating the VXLAN message to obtain transmission data under the condition that the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation.
In some embodiments, the preset tunnel mapping relationship further includes routing mode information of the target SRv6 network;
SRv6, the message processing module 1030 is specifically configured to:
under the condition that the routing mode information is the optimal SRv6 path SRv6BE mode, packaging according to a packaging format corresponding to the SRv6BE mode to obtain a SRv6 message;
and under the condition that the routing mode information is SRv6 traffic engineering Policy SRv6TE Policy mode, encapsulating according to an encapsulation format corresponding to the SRv6TE Policy mode to obtain SRv6 message.
After obtaining the obtained VXLAN message, the message processing apparatus provided in the embodiment of the present application may determine, based on a preset tunnel mapping relationship, a target BSID corresponding to configuration information of the VXLAN message, and package transmission data using the target BSID to obtain SRv6 messages. Because the target BSID affects the routing path of the SRv6 message in the SRv6 network, the configuration information of the VPN tunnel corresponds to the target VXLAN tunnel, and accordingly, the target BSID mapped to the configuration information of the VXLAN message can be quickly determined in the preset tunnel mapping relationship recorded in the mapping relationship between the nodes in the SRv6 network and the VXLAN tunnel, and further, the target BSID can be quickly encapsulated into the SRv6 message which can enter the target SRv6 network for transmission, so that the message conversion efficiency between the SRv6 message and the VXLAN message is improved.
It should be noted that the message processing apparatus 1000 shown in fig. 10 may execute each step in the method embodiment shown in fig. 8, and implement each process and effect in the method embodiment shown in fig. 8, which are not described herein again.
For convenience of understanding, the following section of the embodiment of the present application exemplarily describes a message processing scheme provided in the embodiment of the present application with reference to fig. 11.
Fig. 11 shows a schematic structural diagram of an exemplary message processing apparatus according to an embodiment of the present application. As shown in fig. 11, the message processing apparatus includes SRv6 message processing nodes (corresponding to the SRv6 message processing modules) 41, VAC nodes (corresponding to the information processing modules) 42, and VXLAN message processing nodes (corresponding to the VXLAN message processing modules) 43.
Illustratively, after the SRv6 message is entered SRv6 message handling node 41, the SRv6 message handling node 41 looks up whether there is an END-SID in the SRv6 message in the END-SID in the S-V table. If hit (i.e., found the END-SID in the SRv6 message) and the value of the Segment Left field is 0, decapsulate SRv6 the message and forward the decapsulated transmission data to the VAC node 42.
The VAC node 42 is a virtual AC port, which may include a virtual EVPN AC port (identified by AC in fig. 11) and an EVC subinterface (identified by EVC in fig. 11) entering VXLAN, the transmission data queries a relevant field of an S-V service table in an S-V table through the VAC port, confirms whether EVPN is matched with a VXLAN L2/L3 gateway, if not, VAC discards the transmission data, if the packets are matched, the transmission data is forwarded to the VXLAN packet processing node 43, and the VXLAN packet processing node 43 encapsulates the VXLAN packet according to VXLAN _ src _ ip, VXLAN _ dst _ ip, and vni fields in the S-V table.
Yet another example, the VXLAN tunnel is sent to the target SRv6 network if needed. After receiving the VXLAN packet, VXLAN packet processing node 43 may query whether VXLAN _ src _ ip, VXLAN _ dst _ ip, and vni in the VXLAN packet exist in the S-V table, and if yes, decapsulate the VXLAN packet and forward the transmission data obtained by decapsulation to VAC node 42.
After receiving the packet, the VAC node 42 queries the S-V service table related field in the S-V table to confirm whether the EVPN and the vxlan L2/L3 gateway are matched, if not, the VAC node 42 discards the packet, and if the packet is matched, the VAC node forwards the packet to the SRv6 packet processing node 41. SRv6 the message processing node 41 determines SRv6 whether it is BE mode or te policy mode according to bsid _ mode in S-V table, if it is BE, it packs directly according to the format of native ipv6 and sets the destination address as bsid address of S-V table item. If it is SRv6te policy mode, the SRH header is encapsulated and the SID is set to the bsid address, draining through bsid to SRv6te policy.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1200 according to this embodiment of the present application is described below with reference to fig. 12. The electronic device 1200 shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 12, the electronic device 1200 is embodied in the form of a general purpose computing device. The components of the electronic device 1200 may include, but are not limited to: the at least one processing unit 1210, the at least one memory unit 1220, and a bus 1230 connecting the various system components including the memory unit 1220 and the processing unit 1210.
Wherein the storage unit stores program code, which may be executed by the processing unit 1210, to cause the processing unit 1210 to perform the steps according to various exemplary embodiments of the present application described in the above section "exemplary methods" of the present specification.
The storage unit 1220 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM)12201 and/or a cache memory unit 12202, and may further include a read only memory unit (ROM) 12203.
Storage unit 1220 may also include a program/utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1230 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 1200 can also communicate with one or more external devices 1240 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1200, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 1250.
Also, the electronic device 1200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 1260.
As shown in FIG. 12, the network adapter 1260 communicates with the other modules of the electronic device 1200 via the bus 1230.
It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present application.
In exemplary embodiments of the present application, there is also provided a computer readable storage medium, which may be a readable signal medium or a readable storage medium. On which a program product capable of implementing the method of the present application is stored.
In some possible embodiments, various aspects of the present application may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present application described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer-readable storage medium in the present application may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present application, a computer readable storage medium may include a propagated data signal with readable program code embodied therein, either in baseband or as part of a carrier wave.
Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof.
A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
In some examples, program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages.
The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory.
Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods herein are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein.
This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

Claims (15)

1. A message processing method is applied to message forwarding equipment and comprises the following steps:
SRv6 obtaining Internet protocol version 6 route SRv6 message output by network;
determining transmission data in the SRv6 message and a destination node segment identifier (END-SID) of the SRv6 message;
determining configuration information of a target virtual extensible local area network (VXLAN) tunnel corresponding to the END-SID by using a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between a node segment identifier of SRv6 network and the configuration information of the VXLAN tunnel;
and encapsulating the transmission data by using the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel.
2. The method of claim 1, wherein prior to the encapsulating the transmission data with configuration information for the target VXLAN tunnel, the method further comprises:
acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is bearing information of the SRv6 network on the forwarding service of the SRv6 message, and the second forwarding service information is bearing information of the target VXLAN tunnel on the forwarding service of the VXLAN message;
judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
the encapsulating the transmission data with the configuration information of the target VXLAN tunnel includes:
and packaging the transmission data by using the configuration information of the target VXLAN tunnel under the condition that the first forwarding service information and the second forwarding service information meet the preset service binding relationship.
3. The method of claim 2, wherein after determining whether the first forwarding service information and the second forwarding service information satisfy a preset service binding relationship, the method further comprises:
and under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship, discarding the transmission data.
4. The method of claim 1, wherein prior to determining the transmission data in the SRv6 message and the destination node segment identification (END-SID) of the SRv6 message, the method further comprises:
acquiring a Segment Left field of the SRv6 message;
the determining the transmission data in the SRv6 message and the destination node segment identifier END-SID of the SRv6 message includes:
and determining the transmission data in the SRv6 message and the END-SID of the SRv6 message when the END-SID exists in the preset tunnel mapping relationship and the value of the Segment Left field is 0.
5. A message processing method is applied to message forwarding equipment and comprises the following steps:
obtaining VXLAN messages output by VXLAN tunnels;
determining configuration information of the VXLAN tunnel and transmission data in the VXLAN message;
determining a target Binding Segment Identifier (BSID) corresponding to the configuration information by utilizing a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between the configuration information of the VXLAN tunnel and the configuration information of the BSID of the SRv6 network;
and packaging the transmission data by using the target BSID to obtain SRv6 messages for inputting target SRv6 network transmission.
6. The method of claim 5, wherein prior to said encapsulating said transmission data with said target BSID resulting in the SRv6 message for ingress of target SRv6 network transmissions, the method further comprises:
acquiring first forwarding service information and second forwarding service information, wherein the first forwarding service information is bearing information of the target SRv6 network on the forwarding service of the SRv6 message, and the second forwarding service information is bearing information of the VXLAN tunnel on the forwarding service of the VXLAN message;
judging whether the first forwarding service information and the second forwarding service information meet a preset service binding relationship, wherein the preset service binding relationship comprises the binding relationship between the first forwarding service information and the second forwarding service information;
the encapsulating the transmission data by using the target BSID includes:
and packaging the transmission data by using the target BSID under the condition that the first forwarding service information and the second forwarding service information meet a preset service binding relationship.
7. The method of claim 6, wherein after determining whether the first forwarding service information and the second forwarding service information satisfy a preset service binding relationship, the method further comprises:
and under the condition that the first forwarding service information and the second forwarding service information do not meet the preset service binding relationship, discarding the transmission data.
8. The method of claim 5, wherein the determining the configuration information for the VXLAN tunnel and the transmission data in the VXLAN message comprises:
determining configuration information of the VXLAN tunnel;
judging whether the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation;
and under the condition that the configuration information of the VXLAN tunnel exists in the preset tunnel mapping relation, decapsulating the VXLAN message to obtain the transmission data.
9. The method of claim 5, wherein the preset tunnel mapping relationship further comprises routing mode information of the target SRv6 network;
the encapsulating the transmission data by using the target BSID to obtain a SRv6 packet for inputting the target SRv6 network transmission includes:
under the condition that the routing mode information is the optimal SRv6 path SRv6BE mode, packaging according to a packaging format corresponding to the SRv6BE mode to obtain the SRv6 message;
and under the condition that the routing mode information is SRv6 traffic engineering strategy SRv6TE Policy mode, packaging according to a packaging format corresponding to SRv6TE Policy mode to obtain the SRv6 message.
10. A message processing apparatus, comprising:
SRv6, a message processing module, configured to obtain a SRv6 message output by SRv6 network; determining transmission data in the SRv6 message and the END-SID of the SRv6 message;
the information processing module is used for determining the configuration information of the target VXLAN tunnel corresponding to the END-SID by utilizing a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between a node segment identifier of SRv6 network and the configuration information of the VXLAN tunnel;
and the VXLAN message processing module is used for encapsulating the transmission data by utilizing the configuration information of the target VXLAN tunnel to obtain a VXLAN message for inputting the target VXLAN tunnel.
11. The apparatus of claim 10, wherein the information processing module comprises:
the first virtual AC interface is connected with the SRv6 message processing module;
and the second virtual AC interface is connected with the VXLAN message processing module.
12. The apparatus of claim 10, further comprising:
and the application programming interface API is used for receiving a mapping strategy between the SRv6 network and the VXLAN tunnel sent by the controller, and the mapping strategy is used for producing the preset tunnel mapping relation.
13. A message processing apparatus, comprising:
the VXLAN message processing module is used for acquiring VXLAN messages output by the VXLAN tunnel; determining configuration information of the VXLAN tunnel and transmission data in the VXLAN message;
the information processing module is used for determining a target Binding Segment Identifier (BSID) corresponding to the configuration information by utilizing a preset tunnel mapping relation, wherein the preset tunnel mapping relation comprises a mapping relation between the configuration information of the VXLAN tunnel and the configuration information of the BSID of the SRv6 network;
SRv6, a message processing module, configured to encapsulate the transmission data with the target BSID, to obtain a SRv6 message for inputting target SRv6 network transmission.
14. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the message processing method of any of claims 1-9 via execution of the executable instructions.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the message processing method according to any one of claims 1 to 9.
CN202210614423.7A 2022-05-31 2022-05-31 Message processing method, device, equipment and medium Pending CN115022121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210614423.7A CN115022121A (en) 2022-05-31 2022-05-31 Message processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210614423.7A CN115022121A (en) 2022-05-31 2022-05-31 Message processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115022121A true CN115022121A (en) 2022-09-06

Family

ID=83071005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210614423.7A Pending CN115022121A (en) 2022-05-31 2022-05-31 Message processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115022121A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635684A (en) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 Method and system for classifying service flow
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN111917625A (en) * 2020-07-17 2020-11-10 中盈优创资讯科技有限公司 Method, device and nodes for realizing difference from VXLAN service to SR domain
CN112751769A (en) * 2019-10-31 2021-05-04 华为技术有限公司 Method, device and system for sending message
CN113852550A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device, network equipment, system and storage medium for sending message
WO2022078415A1 (en) * 2020-10-15 2022-04-21 华为技术有限公司 Packet forwarding method and network device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635684A (en) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 Method and system for classifying service flow
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN112751769A (en) * 2019-10-31 2021-05-04 华为技术有限公司 Method, device and system for sending message
CN113852550A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Method, device, network equipment, system and storage medium for sending message
CN111917625A (en) * 2020-07-17 2020-11-10 中盈优创资讯科技有限公司 Method, device and nodes for realizing difference from VXLAN service to SR domain
WO2022078415A1 (en) * 2020-10-15 2022-04-21 华为技术有限公司 Packet forwarding method and network device

Similar Documents

Publication Publication Date Title
US11765000B2 (en) Method and system for virtual and physical network integration
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
CN109218178B (en) Message processing method and network equipment
CA2493383C (en) Apparatus and method for a virtual hierarchial local area network
US10666459B1 (en) System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
CN104869042B (en) Message forwarding method and device
EP2945330B1 (en) Route management method, route method, network controller and router
US20230155932A1 (en) Multicast traffic transmission method and apparatus, communication node, and storage medium
EP3742683B1 (en) Method and device for processing packet by using unified sr label stack
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
CN106713100B (en) A kind of method, CPE and convergence device for establishing tunnel automatically
EP4231597A1 (en) Method for forwarding bier message, and device and system
CN107733795B (en) Ethernet virtual private network EVPN and public network intercommunication method and device
WO2009045925A2 (en) Methods and apparatus for managing addresses related to virtual partitions of a session exchange device
EP3605959A1 (en) Method, device and computer storage medium for implementing double control plane
CN107547340B (en) Message forwarding method and device
WO2022237291A1 (en) Message transmission method and apparatus, related device, and storage medium
CN116488958A (en) Gateway processing method, virtual access gateway, virtual service gateway and related equipment
CN115022121A (en) Message processing method, device, equipment and medium
EP3913865B1 (en) Message decapsulation method and device, message encapsulation method and device, electronic device, and storage medium
CN113542441B (en) Communication processing method and device
WO2021109763A1 (en) Connection establishment method, apparatus and device, and storage medium
CN114598644A (en) BIER message forwarding method, equipment and system
CN112702251A (en) Message detection method, connectivity negotiation relationship establishment method and related equipment
WO2024032636A1 (en) Method and apparatus for implementing h-vpn hierarchical management of srv6 policy network, and related device

Legal Events

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