Service message transmission method and device, equipment and storage medium

By introducing the SRv6 protocol into the PWE3 network, the transmission and decapsulation of PWE3 service packets in the SRv6 tunnel are realized, which solves the problem of poor compatibility of new and old devices in the transition from traditional VPN to SDN, improves the convenience of network upgrades and reduces the risk of technical updates.

CN120547110APending Publication Date: 2025-08-26ZTE CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410204959.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

When traditional VPN transitions to SDN, the compatibility of new and old devices is poor, making it difficult for new and old devices in the network to be compatible, affecting network upgrades and technical updates.

Method used

In the existing PWE3 network structure, by allowing the operator edge device PE to support the SRv6 protocol, PWE3 service messages from CE are encapsulated and processed, so that they are transmitted through SRv6 tunneling, and decapsulated and restored to the original PWE3 service messages on the counterpart PE.

Benefits of technology

It improves compatibility between new and old devices, reduces the difficulty of network upgrades, reduces the risk of technological updates, and makes the transition from traditional VPN to SDN more convenient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547110A_ABST
    Figure CN120547110A_ABST
Patent Text Reader

Abstract

The invention provides a service message transmission method and device, equipment and a storage medium, relates to the technical field of communication, and is used for solving the problem of poor compatibility of new and old equipment in a network. The method is applied to a first provider edge device PE, and comprises: receiving an edge-to-edge pseudo-wire simulation PWE3 service message from a source user edge device CE, the PWE3 service message comprising a target pseudo-wire PW identifier, and the target PW identifier being used for indicating a PW between the source CE and a target CE. And packaging the PWE3 service message according to the target PW identifier to obtain a segment routing SRv6 service message based on the sixth version of forwarding plane of the Internet protocol. And sending the SRv6 service message to a second PE through a target SRv6 tunnel between the first PE and the second PE, the second PE being a PE connected with the target CE.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method, apparatus, device, and storage medium for transmitting a service message. Background Art

[0002] Pseudowire emulation edge to edge (PWE3) uses the label distribution protocol (LDP) as its signaling protocol. It carries various Layer 2 services (such as various Layer 2 packets) on the customer edge (CE) side through a tunnel and transparently transmits Layer 2 packets on the CE side.

[0003] Currently, when traditional VPNs transition to SDN, support for SRv6 technology will not be expanded in traditional narrowband PWE3 networks, thus affecting the compatibility of new and old devices in the network. Summary of the Invention

[0004] The embodiments of the present disclosure provide a method, apparatus, device, and storage medium for transmitting a service message, which are used to solve the problem of poor compatibility between new and old devices in a network.

[0005] In one aspect, a method for transmitting service packets is provided, applied to a first operator edge device (PE). The method comprises: receiving an edge-to-edge pseudowire emulation (PWE3) service packet from a source customer edge device (CE), the PWE3 service packet including a target pseudowire (PW) identifier, which indicates the PW between the source CE and a destination CE. Based on the target PW identifier, the PWE3 service packet is encapsulated to obtain a segment-routed SRv6 service packet based on the Internet Protocol version 6 forwarding plane. The SRv6 service packet is then sent to the second PE via a target SRv6 tunnel between the first PE and the second PE, where the second PE is connected to the destination CE.

[0006] In another aspect, another method for transmitting service packets is provided, which is applied to a second PE connected to a destination CE. The method includes: receiving an SRv6 service packet from a first PE via a target SRv6 tunnel, wherein the first PE encapsulates a PWE3 service packet using a target PW identifier, where the target PW identifier indicates the PW between the source CE and the destination CE; and the PWE3 service packet is received by the first PE from the source CE. The method includes: decapsulating the SRv6 service packet to obtain a PWE3 service packet; and sending the PWE3 service packet to the destination CE.

[0007] On the other hand, a device for transmitting business messages is provided, which includes: an acquisition module, a processing module and a sending module.

[0008] The acquisition module is configured to receive an edge-to-edge pseudowire emulation (PWE3) service message from a source customer edge device (CE). The PWE3 service message includes a target pseudowire (PW) identifier, which indicates the PW between the source CE and the destination CE. The processing module is configured to encapsulate the PWE3 service message based on the target PW identifier to obtain a segment-routed SRv6 service message based on the Internet Protocol version 6 forwarding plane. The sending module is configured to send the SRv6 service message to the second PE via a target SRv6 tunnel between the first PE and the second PE, where the second PE is connected to the destination CE.

[0009] On the other hand, another device for transmitting business messages is provided, which includes: an acquisition module, a processing module and a sending module.

[0010] The acquisition module is configured to receive an SRv6 service message from the first PE via the target SRv6 tunnel. The SRv6 service message is obtained by the first PE encapsulating a PWE3 service message using the target PW identifier. The target PW identifier indicates the PW between the source CE and the destination CE. The PWE3 service message is received by the first PE from the source CE. The processing module is configured to decapsulate the SRv6 service message to obtain a PWE3 service message. The sending module is configured to send the PWE3 service message to the destination CE.

[0011] In yet another aspect, an electronic device is provided, comprising: a memory and a processor. The memory and the processor are coupled. The memory is configured to store a computer program. When the processor executes the computer program, the method for transmitting a service message according to any of the above embodiments is implemented.

[0012] On the other hand, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for transmitting the service message of any of the above embodiments is implemented.

[0013] On the other hand, a computer program product is provided, which includes computer program instructions, and when the computer program instructions are executed by a processor, the method for transmitting the service message of any of the above embodiments is implemented.

[0014] In the disclosed embodiments, within the existing PWE3 network structure, by enabling the provider edge (PE) to support the SRv6 protocol and encapsulate PWE3 service packets from the CE, the processed PWE3 service packets can reach the peer PE through the SRv6 tunnel. The peer PE then decapsulates the processed PWE3 service packets, restoring them to the original PWE3 service packets, and sends the original PWE3 service packets to the destination CE. This enables SRv6 technology to carry PWE3 service packets, improves the compatibility of new and old equipment in the network, facilitates the transition from traditional VPN to SDN, makes the replacement of old and new networks more convenient, reduces the difficulty of network upgrades, and reduces the risks of technology updates. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required for use in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0016] Figure 1 A schematic diagram of a communication system provided for some embodiments of the present disclosure;

[0017] Figure 2 A schematic diagram of a process flow of a method for transmitting a service message provided in some embodiments of the present disclosure;

[0018] Figure 3 A flowchart of another method for transmitting service messages provided in some embodiments of the present disclosure;

[0019] Figure 4 A flowchart of another method for transmitting service messages provided in some embodiments of the present disclosure;

[0020] Figure 5 A schematic structural diagram of a device for transmitting service messages provided in some embodiments of the present disclosure;

[0021] Figure 6 A schematic structural diagram of another device for transmitting service messages provided in some embodiments of the present disclosure;

[0022] Figure 7 A structural diagram of a service message transmission device provided in some embodiments of the present disclosure. DETAILED DESCRIPTION

[0023] The following will clearly and completely describe the technical solutions of this disclosure in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this disclosure, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of this disclosure without making any creative efforts shall fall within the scope of protection of this disclosure.

[0024] It should be noted that in this disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this disclosure as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0025] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the quantity of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the features.

[0026] In the description of this disclosure, unless otherwise specified, " / " means "or." For example, A / B can mean A or B. "And / or" in this document simply describes an association relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exists simultaneously, and B exists alone. Furthermore, "at least one" means one or more, and "a plurality" means two or more.

[0027] Before introducing in detail the method for transmitting a service message provided by an embodiment of the present disclosure, the implementation environment and application scenarios of the embodiment of the present disclosure are first introduced.

[0028] First, the application scenarios of the embodiments of the present disclosure are introduced.

[0029] PWE3 uses LDP as the signaling protocol, carries various Layer 2 services on the CE side through tunnels, and transparently transmits Layer 2 packets on the CE side.

[0030] With the transition from the fourth generation mobile communication technology (4G) to the fifth generation mobile communication technology (5G), software-defined networks (SDN) are becoming increasingly popular. For example, traditional virtual private networks (VPNs) are transitioning to SDN.

[0031] However, in traditional Layer 2 virtual private network (L2VPN) networking, narrowband PWE3 technology is used. With the transition from 4G to 5G, Segment Routing over IPv6 (SRv6) tunnels based on the Internet Protocol version 6 (IPv6) forwarding plane have become the primary tunnels for carrying services in SDN. Therefore, during the transition from traditional VPN to SDN, support for SRv6 technology will not be expanded in traditional narrowband PWE3 networking, affecting the compatibility of new and existing equipment in the network.

[0032] In order to solve the above problems, the embodiments of the present disclosure provide a method for transmitting service messages, and the method for transmitting service messages provided by the embodiments of the present disclosure is applied to the scenario of transition from traditional VPN to SDN. The present disclosure enables PE to support the SRv6 protocol in the existing PWE3 network structure, and encapsulates the PWE3 service messages from CE, so that the processed PWE3 service messages can reach the opposite PE through the SRv6 tunnel. Then, the opposite PE decapsulates the processed PWE3 service messages, restores them to the original PWE3 service messages, and sends the original PWE3 service messages to the destination CE, thereby realizing the SRv6 technology to carry PWE3 service messages, improving the compatibility of new and old equipment in the network, facilitating the transition from traditional VPN to SDN, making the replacement of old and new networks more convenient, reducing the difficulty of network upgrades, and reducing the risks of technology updates.

[0033] The implementation environment of the embodiments of the present disclosure is introduced below.

[0034] like Figure 1FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present disclosure, wherein the communication system may include: a first PE 101, a second PE 102, a source CE 103, and a destination CE 104. The first PE 101 and the second PE 102 are connected via an SRv6 tunnel of a virtual private wire service (VPWS), the first PE 101 and the source CE 103 are connected via a VPN, and the second PE 102 and the destination CE 104 are also connected via a VPN, and the two VPNs are different.

[0035] The source CE 103 may obtain an initial service message carrying the identifier of the destination CE 104, and determine the target PW identifier of the pseudo wire (PW) between the source CE 103 and the destination CE 104 based on the identifier of the destination CE 104. Then, the source CE 103 may encapsulate the initial service message into a PWE3 service message using the target PW identifier, and send the PWE3 service message carrying the target PW identifier to the first PE 101.

[0036] The first PE 101 may receive a PWE3 service message from the source CE 103 and, based on the target PW tag in the PWE3 service message, encapsulate the PWE3 service message into an SRv6 service message. The first PE 101 may then send the SRv6 service message to the second PE 102 via the target SRv6 tunnel connected to the second PE 102.

[0037] The second PE 102 receives the SRv6 service packet from the first PE 101 through the target SRv6 tunnel connected to the first PE 101, decapsulates the SRv6 service packet to obtain a PWE3 service packet, and then sends the PWE3 service packet to the destination CE 104.

[0038] The destination CE 104 may receive the PWE3 service message from the second PE 102 and decapsulate the PWE3 service message to obtain an initial service message.

[0039] After introducing the application scenario and implementation environment of the embodiment of the present disclosure, the following describes in detail the service message transmission method provided by the embodiment of the present disclosure in combination with the above implementation environment.

[0040] The embodiment of the present disclosure provides a method for transmitting a service message, which is applied to a first PE, such as Figure 2 As shown, the method for transmitting the service message may include: S201-S203.

[0041] S201: A first PE receives a PWE3 service message from a source CE.

[0042] The PWE3 service message may include a target PW identifier, and the target PW identifier is used to indicate the PW between the source CE and the destination CE.

[0043] As a possible implementation, a first PE is configured with an LDP-based L2VPN tunnel and an SRv6 tunnel, and the first PE's interior gateway protocol (IGP) enables the LDP-based L2VPN tunnel and the SRv6 tunnel. Furthermore, an LDP L2VPN tunnel of a first VPN is configured on the first PE, and the first PE is connected to a source CE in the first VPN via the LDP L2VPN tunnel of the first VPN. The first PE can receive PWE3 service packets from the source CE via the LDP L2VPN tunnel of the first VPN to obtain the PWE3 service packets to be transmitted.

[0044] In the embodiment of the present disclosure, the PWE3 service message is encapsulated with an initial service message, and the initial service message is a message sent by a user equipment and received by a source CE.

[0045] It should be noted that the embodiments of the present disclosure do not limit the service type of the initial service message. For example, the initial service message may be a message for a voice service. For another example, the initial service message may be a message for a short message service. For another example, the initial service message may be a message for an access service.

[0046] As a possible implementation, the PWE3 service message can be any of the following messages: Ethernet (ETH) message, asynchronous transfer mode (ATM) message, time division multiplexing (TDM) message, frame relay (FR) message, point-to-point protocol (PPP) message.

[0047] That is, the improved PWE3 based on the present disclosure can be applied in broadband metropolitan area access networks or mobile bearer networks to carry various types of services such as ETH, ATM, TDM, FR, and PPP.

[0048] S202: The first PE encapsulates the PWE3 service message according to the target PW identifier to obtain an SRv6 service message.

[0049] As a possible implementation method, the first PE stores a preset segment identifier (SID) list and the identifiers of the CEs at both ends of each PW. The preset SID list includes the SID of each PE connected to the preset CE. The first PE device can determine the PW between the source CE and the destination CE based on the target PW identifier, and then determine the identifier of the destination CE. Then, the first PE can obtain the SID of the second PE from the preset SID list based on the identifier of the destination CE. The second PE is the PE connected to the destination CE, and the SID of the second PE is used to encapsulate the PWE3 service message. Afterwards, the first PE can encapsulate the PWE3 service message through the SID of the second PE to obtain an SRv6 service message, and the SRv6 service message includes the PWE3 service message and the SID of the second PE.

[0050] It should be noted that the embodiments of the present disclosure do not limit the CE identifier. For example, the CE identifier may be the CE device number. In another example, the CE identifier may be the CE device name. In another example, the CE identifier may be the CE address information (such as VPN address information). In another example, the CE identifier may be composed of the CE device number, device name, and address information.

[0051] In some embodiments, before the first PE encapsulates the PWE3 service message into an SRv6 service message, the first PE may perform whitelist authentication on the destination CE to determine whether an SRv6 tunnel is established between the PE connected to the destination CE and the first PE, thereby managing the PWE3 service message.

[0052] As a possible implementation, the first PE stores a preset identifier list, which includes identifiers of multiple preset CEs. An SRv6 tunnel is established between the PE connected to the preset CE and the first PE. After the first PE determines the identifier of the destination CE based on the target PW identifier, it can query whether the identifier of the destination CE is in the preset identifier list. If the identifier of the destination CE is in the preset identifier list, the first PE encapsulates the PWE3 service message into an SRv6 service message.

[0053] It can be understood that the PE determines whether to transmit the PWE3 service message through the SRv6 tunnel by performing whitelist matching on the destination CE in the PWE3 service message, thereby improving the security of message transmission.

[0054] In other embodiments, before the first PE encapsulates the PWE3 service message into an SRv6 service message, the first PE may determine whether the target SRv6 tunnel can carry the SRv6 service message by judging the status of the target SRv6 tunnel between the first PE and the second PE, thereby managing the PWE3 service message.

[0055] As a possible implementation, before the first PE encapsulates the PWE3 service packet into an SRv6 service packet, the first PE may determine whether the IGP indicates that the target SRv6 tunnel is enabled. If the IGP indicates that the target SRv6 tunnel is enabled, the first PE may encapsulate the PWE3 service packet into an SRv6 service packet.

[0056] Optionally, the first PE is further configured with an LDP tunnel and / or public network tunnel corresponding to the target PW identifier. If the IGP does not indicate that the target SRv6 tunnel is enabled, the first PE does not encapsulate the PWE3 service message as an SRv6 service message and uses the LDP tunnel or public network tunnel corresponding to the target PW identifier to carry the PWE3 service message.

[0057] It should be noted that, in the embodiment of the present disclosure, the target SRv6 tunnel may include at least one of an SRv6 policy tunnel and an SRv6 best effort (BE) tunnel, wherein the encapsulation content of different SRv6 tunnels is also different.

[0058] In some embodiments, the first PE stores mapping relationships between multiple preset PW identifiers and multiple preset SRv6 segment identifiers. When the target SRv6 tunnel includes an SRv6 BE tunnel, the first PE can determine the segment identifier of the target SRv6 BE tunnel corresponding to the target PW identifier based on the target PW identifier and the stored mapping relationship, and encapsulate the PWE3 service message using the segment identifier of the target SRv6 BE tunnel to obtain an SRv6 service message. The SRv6 service message includes the segment identifier of the target SRv6 BE tunnel, and the segment identifier of the target SRv6 BE tunnel includes the SID of the first PE and the SID of the second PE.

[0059] In other embodiments, when the target SRv6 tunnel includes an SRv6 Policy tunnel, the first PE can determine the destination CE identifier based on the target PW identifier, and determine the destination CE's VPN address information based on the destination CE identifier. Simultaneously, the first PE can determine the target SRv6 tunnel's public network forwarding table based on the target PW identifier. The public network forwarding table includes the SIDs of multiple preset PEs between the source CE and the destination CE, where the multiple preset PEs include the first PE and the second PE. The first PE can then encapsulate the PWE3 service message using the destination CE's VPN address information and the public network forwarding table of the target SRv6 Policy tunnel to obtain an SRv6 service message. The SRv6 service message includes the destination CE's VPN address information and the public network forwarding table of the target SRv6 Policy tunnel.

[0060] As a possible implementation method, the first PE can determine all PEs between the source CE and the destination CE based on the target PW identifier, and select multiple preset PEs from all PEs between the source CE and the destination CE through the color diversion mechanism, and determine the SID of each preset PE, and then generate the public network forwarding table of the target SRv6 Policy tunnel based on the SIDs of multiple preset PEs.

[0061] Optionally, the first PE is also configured with a stream identifier (streamID) corresponding to the destination CE, and the stream ID is used to indicate that the downlink microcode needs to support encapsulating the private network label first and then the segment routing header (SRH). The first PE can encapsulate the PWE3 service message in the order of encapsulation indicated by the stream ID, using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel to obtain an SRv6 service message. The public network forwarding table of the target SRv6 Policy tunnel serves as the message header of the SRv6 service message.

[0062] It should be noted that in the disclosed embodiments, the target SRv6 tunnel may include both an SRv6 Policy tunnel and an SRv6 BE tunnel, and the SRv6 Policy tunnel has a higher priority than the SRv6 BE tunnel. If the SRv6 Policy tunnel is functioning properly, the first PE determines the SRv6 Policy tunnel as the target SRv6 tunnel. If the SRv6 Policy tunnel is abnormal, the first PE determines the SRv6 BE tunnel as the target SRv6 tunnel. That is, when the first PE sends SRv6 service packets to the second PE via the SRv6 tunnel, the first PE prioritizes sending SRv6 service packets to the second PE via the SRv6 Policy tunnel. Alternatively, if the SRv6 Policy tunnel is unavailable, the first PE sends SRv6 service packets to the second PE via the SRv6 BE tunnel.

[0063] In summary, the PE determines the transmission strategy for PWE3 service packets by sensing the status of the SRv6 tunnel established with the peer PE (i.e., the online / offline status of the Policy tunnel). If the Policy tunnel is online, the PE determines the VPN address information of the destination CE and sends a PWE3 service packet encapsulated with the destination CE's VPN address information to the peer PE via the Policy tunnel. If the Policy tunnel is offline, the peer PE determines the VPN address information of the destination CE and sends a PWE3 service packet without the destination CE's VPN address information to the peer PE via the BE tunnel. This improves the operability of packet transmission.

[0064] S203: The first PE sends an SRv6 service packet to the second PE through the target SRv6 tunnel between the first PE and the second PE.

[0065] In the embodiment of the present disclosure, the target SRv6 tunnel between the first PE and the second PE may be a target SRv6Policy tunnel or a target SRv6 BE tunnel.

[0066] As a possible implementation manner, the first PE may send an SRv6 service packet to the second PE through the target SRv6 BE tunnel.

[0067] It should be noted that for the process of the first PE sending the SRv6 service message to the second PE through the target SRv6 BE tunnel, reference can be made to the SRv6 segment routing IPv6 best effort (segment routing ipv6 besteffort, SRv6 BE) working mode in the relevant technology, which will not be described in detail here.

[0068] As another possible implementation, the first PE may send the SRv6 service packet to the second PE through the target SRv6 Policy tunnel.

[0069] It should be noted that for the process of the first PE sending SRv6 service packets to the second PE through the target SRv6 Policy tunnel, reference can be made to the SRv6 segment routing IPv6 traffic engineering policy (SRv6TE Policy) working mode in the relevant technology, which will not be described in detail here.

[0070] The embodiment of the present disclosure also provides a method for transmitting a service message, which is applied to a second PE, wherein the second PE is connected to a destination CE, such as Figure 3 As shown, the method for transmitting the service message may include: S301-S303.

[0071] S301. The second PE receives an SRv6 service packet from the first PE through a target SRv6 tunnel.

[0072] The SRv6 service message is a service message obtained by the first PE encapsulating the PWE3 service message through the target PW identifier. The target PW identifier is used to indicate the PW between the source CE and the destination CE. The PWE3 service message is received by the first PE from the source CE.

[0073] In the embodiment of the present application, the SRv6 service message may include the SID of the second PE. After the second PE receives the SRv6 service message, the second PE may manage the SRv6 service message by determining whether the SID in the SRv6 service message is its own SID.

[0074] In some embodiments, when the second PE determines that the SID in the SRv6 service message is different from its own SID, the second PE may forward the SRv6 service message through the SRv6 tunnel according to the SID in the SRv6 service message.

[0075] In other embodiments, when the second PE determines that the SID in the SRv6 service packet is the same as its own SID, the second PE may execute S302.

[0076] S302: The second PE decapsulates the SRv6 service message to obtain a PWE3 service message.

[0077] As a possible implementation manner, the second PE may obtain the PWE3 service message by deleting the SID of the second PE in the SRv6 message.

[0078] It should be noted that the target SRv6 tunnel can be an SRv6 Policy tunnel or an SRv6 BE tunnel. After the second PE receives the PWE3 service message, it can manage the PWE3 service message based on the SRv6 tunnel used when interacting with the first PE.

[0079] In some embodiments, when a second PE receives an SRv6 service packet through an SRv6 Policy tunnel, the SRv6 service packet contains the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel. The second PE can sequentially decapsulate the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel in the SRv6 service packet to obtain the PWE3 service packet and the VPN address information of the destination CE. The second PE can then execute S303 based on the VPN address information of the destination CE obtained from the decapsulation of the SRv6 service packet.

[0080] In other embodiments, when a second PE receives an SRv6 service packet via an SRv6 BE tunnel, the SRv6 service packet is encapsulated with the segment identifier of the target SRv6 BE tunnel. The second PE can decapsulate the segment identifier of the target SRv6 BE tunnel in the SRv6 service packet to obtain a PWE3 service packet. The second PE can then determine the destination CE identifier based on the target PW identifier in the PWE3 service packet, and determine the destination CE's VPN address information based on the destination CE identifier. Furthermore, based on the destination CE's VPN address information determined based on the destination CE identifier, the second PE executes S303.

[0081] S303: The second PE sends a PWE3 service message to the destination CE.

[0082] The following describes the method for transmitting service messages provided by the embodiment of the present disclosure in conjunction with specific embodiments. Figure 4 As shown, the method for transmitting a service message in an embodiment of the present disclosure may include:

[0083] S401. A source CE sends a PWE3 service message to a first PE.

[0084] S402: The first PE receives a PWE3 service message.

[0085] S403: The first PE encapsulates the PWE3 service message according to the target PW identifier to obtain an SRv6 service message.

[0086] S404: The first PE sends an SRv6 service packet to the second PE through the target SRv6 tunnel.

[0087] S405 : The second PE receives the SRv6 service packet through the target SRv6 tunnel.

[0088] S406 : The second PE decapsulates the SRv6 service message to obtain a PWE3 service message.

[0089] S407: The second PE sends a PWE3 service message to the destination CE.

[0090] S408: The destination CE obtains the PWE3 service message from the source CE.

[0091] It can be understood that the present disclosure enables PEs to support the SRv6 protocol within the existing PWE3 network structure and encapsulate PWE3 service packets from CEs, allowing the processed PWE3 service packets to reach the peer PE through the SRv6 tunnel. The peer PE then decapsulates the processed PWE3 service packets, restoring them to the original PWE3 service packets and sending them to the destination CE. This enables SRv6 technology to carry PWE3 service packets, improving the compatibility of new and old equipment in the network, facilitating the transition from traditional VPNs to SDNs, and making the replacement of old and new networks more convenient, reducing the difficulty of network upgrades, and minimizing the risks of technology updates.

[0092] The following describes the service message transmission method provided by the embodiment of the present disclosure with reference to specific examples. The VPN next hop (VPNNH) egress of the PWE3 service data module in the PE supports SRv6 tunnels, which are specifically divided into SRv6BE tunnels and SRv6 Policy tunnels.

[0093] If the VPNNH egress of the PWE3 service data module in the PE supports SRv6 BE tunnels, the PE can determine whether to transmit the message from the CE by querying the prefix table (i.e., a preset identifier list). If transmission is confirmed, the PE determines the SID of the peer PE by querying the private network uplink encapsulation table (ifte, i.e., a preset SID list). The PE then tunnel encapsulates the message from the CE and the peer PE's SID and sends the encapsulated message to the peer PE through the SRv6 BE tunnel between the PE and the peer PE.

[0094] Similarly, if the VPNNH egress of the PWE3 service data module in the PE supports SRv6 Policy tunnels, the PE can determine whether to transmit the message from the CE by querying the prefix table (i.e., the preset identifier list). If transmission is confirmed, the PE can determine the SID of the peer PE by querying the private network uplink encapsulation table. Simultaneously, the PE can determine the VPN address of the peer CE by querying the VPNNH list. The PE can then perform forwarding encapsulation on the message from the CE and the peer PE's SID, and use the color diversion mechanism to allocate other PEs for message forwarding to the SRv6 Policy tunnel between the PE and the peer PE. The PE can then send the encapsulated message to the peer PE via the allocated SRv6 Policy tunnel.

[0095] It should be noted that due to the SRv6 public process, two levels of SID are required (i.e., the SID of the sending device and the SID of the receiving device), so the PE is configured with ifte including multiple PW-SRv6 identifiers. The PE can determine the segment identifier of the SRv6 tunnel between the PE and the opposite PE by querying ifte based on the PW between the CE and the opposite CE, and determine the SID of the opposite PE based on the segment identifier of the SRv6 tunnel.

[0096] In the embodiment of the present disclosure, the PE may perform differentiated management on the uplink message based on the information carried in the uplink message.

[0097] It should be noted that in the disclosed embodiments, if the uplink message is transmitted through an SRv6 tunnel, the information carried by the message is the common header + IPv6 + SRH + PBU. If the uplink message is transmitted through a tunnel or LDP tunnel, the information carried by the message is the common header + IPv6 + PBU.

[0098] After receiving a message transmitted via the SRv6 tunnel, the PE can match the SID in the message with the PW-SRv6 identifier in the private network downlink encapsulation table (iete) to determine whether the PE's SID is the last hop SID of the message.

[0099] When the PE determines that the SID of the PE is not the last hop SID of the message, the PE may send the message to the next hop PE through the SRv6 tunnel according to IETE.

[0100] When the PE determines that the PE's SID is the last hop SID of the message, the PE can decapsulate the message and perform L2VPN common processes (such as horizontal split, source-in and source-out) on the decapsulated message.

[0101] For example, PE determines the pw label cword flag raw and other flags in the iete table, calls the public header function, performs label cword and other encapsulations, pays attention to the position of pktbase, modifies nexthead (the label's nexthead is 137), and jumps back to the public process.

[0102] It should be noted that the PE can determine the message delivery strategy to the CE based on the different SRv6 tunnels used to transmit the messages.

[0103] When the SRv6 tunnel used to transmit the message is an SRv6 BE tunnel, after receiving the decapsulated message, the PE can query the VPNNH list to determine the VPN address of the destination CE corresponding to the message. It can also query the nhfte list to determine the interface connected to the CE on the PE. The PE can then send the decapsulated message to the CE based on the CE's VPN address and the interface connected to the CE.

[0104] When the SRv6 tunnel used to transmit the message is an SRv6 Policy tunnel, after receiving the decapsulated message, the PE can query the v6lpm list to determine the nhfte list to be queried. Furthermore, the nhfte list can be used to determine the interface connected to the CE on the PE. The PE can then send the decapsulated message to the CE based on the VPN address in the message and the interface connected to the CE.

[0105] It is understandable that, in order to realize the above functions, the transmission device of the service message includes the hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiments of the present disclosure, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0106] The embodiment of the present disclosure can divide the transmission device of the service message into functional modules according to the above-mentioned method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above-mentioned integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiment of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.

[0107] Figure 5 This is a schematic diagram of the structure of a transmission device for a service message provided in an embodiment of the present disclosure. The transmission device 500 for a service message can execute the above method embodiment. Figure 2 The transmission method of the business message shown in FIG. Figure 5 As shown, the service message transmission device 500 includes: an acquisition module 501, a processing module 502 and a sending module 503.

[0108] An acquisition module 501 is configured to receive an edge-to-edge pseudowire emulation (PWE3) service message from a source customer edge device (CE). The PWE3 service message includes a target pseudowire (PW) identifier, which indicates the PW between the source CE and the destination CE. A processing module 502 is configured to encapsulate the PWE3 service message based on the target PW identifier to obtain a segment-routed SRv6 service message based on the Internet Protocol version 6 forwarding plane. A sending module 503 is configured to send the SRv6 service message to a first PE (connected to the destination CE) via a target SRv6 tunnel between the first and second PEs.

[0109] Optionally, processing module 502 is further configured to determine the identifier of the destination CE based on the target PW identifier. Processing module 502 is further configured to query whether the identifier of the destination CE is in a preset identifier list, where the preset identifier list includes identifiers of multiple preset CEs, and an SRv6 tunnel is established between the PE connected to the preset CE and the first PE. Processing module 502 is specifically configured to, if the identifier of the destination CE is in the preset identifier list, encapsulate the PWE3 service message based on the target PW identifier to obtain an SRv6 service message.

[0110] Optionally, the processing module 502 is further configured to obtain the SID of the second PE from a preset segment identifier SID list according to the identifier of the destination CE, wherein the preset SID list includes the SID of each PE connected to the preset CE. The SID of the second PE is used to encapsulate the PWE3 service message.

[0111] Optionally, the first PE is configured with a Layer 2 virtual private network L2VPN tunnel and an SRv6 tunnel based on the Label Distribution Protocol LDP, and the Interior Gateway Protocol IGP of the first PE enables the LDP-based L2VPN tunnel and the SRv6 tunnel.

[0112] Optionally, the target SRv6 tunnel includes at least one of an SRv6 Policy tunnel and an SRv6 Best Effort (BE) tunnel.

[0113] Optionally, the first PE stores mapping relationships between multiple preset PW identifiers and multiple preset SRv6 segment identifiers. When the target SRv6 tunnel includes an SRv6 BE tunnel, processing module 502 is specifically configured to determine the segment identifier of the target SRv6 BE tunnel corresponding to the target PW identifier based on the target PW identifier and the mapping relationship. Processing module 502 is further configured to encapsulate the PWE3 service message using the segment identifier of the target SRv6 BE tunnel to obtain an SRv6 service message, where the SRv6 service message includes the segment identifier of the target SRv6 BE tunnel.

[0114] Optionally, when the target SRv6 tunnel includes an SRv6 Policy tunnel, processing module 502 is specifically configured to determine the identifier of the destination CE based on the target PW identifier. Processing module 502 is further configured to determine the VPN address information of the destination CE based on the identifier of the destination CE. Processing module 502 is further configured to determine the public network forwarding table of the target SRv6 Policy tunnel based on the target PW identifier. The public network forwarding table includes the SIDs of multiple preset PEs between the source CE and the destination CE, where the multiple preset PEs include a first PE and a second PE. Processing module 502 is further configured to encapsulate the PWE3 service message using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel to obtain an SRv6 service message, where the SRv6 service message includes the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel.

[0115] Optionally, the processing module 502 is specifically configured to determine the SIDs of multiple preset PEs according to the target PW identifier. The processing module 502 is further configured to generate a public network forwarding table of the target SRv6 Policy tunnel according to the SIDs of the multiple preset PEs.

[0116] Optionally, the target SRv6 tunnel includes an SRv6 Policy tunnel and an SRv6 BE tunnel. Processing module 502 is further configured to, if the SRv6 Policy tunnel is normal, determine the SRv6 Policy tunnel as the target SRv6 tunnel. Processing module 502 is further configured to, if the SRv6 Policy tunnel is abnormal, determine the SRv6 BE tunnel as the target SRv6 tunnel.

[0117] Optionally, the processing module 502 is specifically configured to encapsulate the PWE3 service message in sequence according to the encapsulation order, using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel, to obtain an SRv6 service message.

[0118] Figure 6 This is a structural diagram of another device for transmitting a service message provided in an embodiment of the present disclosure. The device for transmitting a service message 600 can execute the above method embodiment. Figure 3 The transmission method of the business message shown in FIG. Figure 6 As shown, the service message transmission device 600 includes: an acquisition module 601, a processing module 602 and a sending module 603.

[0119] Acquisition module 601 is configured to receive an SRv6 service packet from a first PE via a target SRv6 tunnel. The SRv6 service packet is obtained by the first PE encapsulating a PWE3 service packet using a target PW identifier. The target PW identifier indicates the PW between the source CE and the destination CE. The PWE3 service packet is received by the first PE from the source CE. Processing module 602 is configured to decapsulate the SRv6 service packet to obtain a PWE3 service packet. Transmission module 603 is configured to send the PWE3 service packet to the destination CE.

[0120] Optionally, if the target SRv6 tunnel is an SRv6 Policy tunnel, the SRv6 service packet contains the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel. Processing module 602 is specifically configured to sequentially decapsulate the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel in the SRv6 service packet to obtain the PWE3 service packet and the VPN address information of the destination CE.

[0121] Optionally, when the target SRv6 tunnel is an SRv6 BE tunnel, the segment identifier of the target SRv6 BE tunnel is encapsulated in the SRv6 service message. Processing module 602 is specifically configured to decapsulate the segment identifier of the target SRv6 BE tunnel in the SRv6 service message to obtain a PWE3 service message.

[0122] Optionally, the PWE3 service message includes a target PW identifier. The processing module 602 is further configured to determine a target CE identifier based on the target PW identifier. The processing module 602 is further configured to determine VPN address information of the target CE based on the target CE identifier.

[0123] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present disclosure provides another possible network device structure of the transmission device of the service message involved in the above-mentioned embodiment. Figure 7 As shown, the service message transmission device 700 includes: a processor 702 and a bus 704. Optionally, the service message transmission device 700 may further include a memory 701; and optionally, the service message transmission device 700 may further include a communication interface 703.

[0124] Processor 702 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of this disclosure. Processor 702 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of this disclosure. Processor 702 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.

[0125] The communication interface 703 is used to connect to other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0126] The memory 701 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0127] As a possible implementation, the memory 701 can exist independently of the processor 702. The memory 701 can be connected to the processor 702 via a bus 704 to store instructions or program codes. When the processor 702 calls and executes the instructions or program codes stored in the memory 701, the service message transmission method provided in the embodiment of the present disclosure can be implemented.

[0128] In another possible implementation, the memory 701 and the processor 702 may also be integrated together.

[0129] The bus 704 may be an extended industry standard architecture (EISA) bus, etc. The bus 704 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0130] Some embodiments of the present disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the method for transmitting a service message as described in any of the above embodiments.

[0131] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes, etc.), optical disks (e.g., compact disks (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memories (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0132] An embodiment of the present disclosure provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the method for transmitting a service message described in any one of the above embodiments.

[0133] The above is only a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or replacements within the technical scope disclosed in the present disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.

Claims

1. A method for transmitting a service message, applied to a first operator edge device (PE), the method comprising: receiving an edge-to-edge pseudo wire emulation (PWE3) service message from a source customer edge device (CE), wherein the PWE3 service message includes a target pseudo wire (PW) identifier, where the target PW identifier is used to indicate a PW between the source CE and a destination CE; Encapsulating the PWE3 service message according to the target PW identifier to obtain a segment routing SRv6 service message based on an Internet Protocol version 6 forwarding plane; The SRv6 service packet is sent to the second PE through a target SRv6 tunnel between the first PE and the second PE, where the second PE is a PE connected to the destination CE.

2. The method according to claim 1, characterized in that Before encapsulating the PWE3 service message according to the target PW identifier to obtain a segment routing SRv6 service message based on an Internet Protocol version 6 forwarding plane, the method further includes: Determining the identifier of the destination CE according to the target PW identifier; Query whether the identifier of the destination CE is in a preset identifier list, where the preset identifier list includes identifiers of multiple preset CEs, and an SRv6 tunnel is established between the PE connected to the preset CE and the first PE; In a case where the identifier of the destination CE exists in the preset identifier list, encapsulating the PWE3 service message according to the target PW identifier is performed to obtain the SRv6 service message.

3. The method according to claim 2, characterized in that After determining the identifier of the destination CE according to the target PW identifier, the method further includes: According to the identifier of the destination CE, the SID of the second PE is obtained from a preset segment identifier SID list, where the preset SID list includes the SID of each PE connected to the preset CE; the SID of the second PE is used to encapsulate the PWE3 service message.

4. The method according to claim 1, wherein The first PE is configured with a Layer 2 virtual private network L2VPN tunnel and an SRv6 tunnel based on the Label Distribution Protocol LDP, and the Interior Gateway Protocol IGP of the first PE enables the L2VPN tunnel and the SRv6 tunnel based on LDP.

5. The method according to claim 1, wherein The target SRv6 tunnel includes at least one of an SRv6 Policy tunnel and an SRv6 Best Effort BE tunnel.

6. The method according to claim 5, characterized in that The first PE stores a mapping relationship between a plurality of preset PW identifiers and a plurality of preset SRv6 segment identifiers; In a case where the target SRv6 tunnel includes an SRv6 BE tunnel, encapsulating the PWE3 service message according to the target PW identifier to obtain a segment routing SRv6 service message based on an Internet Protocol version 6 forwarding plane includes: Determine, according to the target PW identifier and the mapping relationship, a segment identifier of a target SRv6 BE tunnel corresponding to the target PW identifier; The PWE3 service message is encapsulated using the segment identifier of the target SRv6 BE tunnel to obtain the SRv6 service message, where the SRv6 service message includes the segment identifier of the target SRv6 BE tunnel.

7. The method according to claim 5, characterized in that In a case where the target SRv6 tunnel includes an SRv6 Policy tunnel, encapsulating the PWE3 service message according to the target PW identifier to obtain a segment routing SRv6 service message based on an Internet Protocol version 6 forwarding plane includes: Determining the identifier of the destination CE according to the target PW identifier; Determining the VPN address information of the destination CE according to the identifier of the destination CE; Determine a public network forwarding table for the target SRv6 Policy tunnel based on the target PW identifier; wherein the public network forwarding table includes SIDs of multiple preset PEs between the source CE and the destination CE, and the multiple preset PEs include the first PE and the second PE; The PWE3 service message is encapsulated using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel to obtain the SRv6 service message, where the SRv6 service message includes the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel.

8. The method according to claim 7, characterized in that The determining, according to the target PW identifier, a public network forwarding table of the target SRv6 Policy tunnel includes: Determining the SIDs of the plurality of preset PEs according to the target PW identifier; Generate a public network forwarding table for the target SRv6 Policy tunnel according to the SIDs of the multiple preset PEs.

9. The method according to claim 5, characterized in that The target SRv6 tunnel includes an SRv6 Policy tunnel and an SRv6 BE tunnel; and the method includes: If the SRv6 Policy tunnel is normal, determining the SRv6 Policy tunnel as the target SRv6 tunnel; When the SRv6 Policy tunnel is abnormal, the SRv6 BE tunnel is determined as the target SRv6 tunnel.

10. The method according to claim 7, characterized in that The encapsulating the PWE3 service message by using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel to obtain the SRv6 service message includes: The PWE3 service message is encapsulated in sequence using the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel to obtain the SRv6 service message.

11. A method for transmitting a service message, applied to a second PE, where the second PE is connected to a destination CE, the method comprising: Receiving, through the target SRv6 tunnel, an SRv6 service packet from the first PE, where the SRv6 service packet is a service packet obtained by the first PE encapsulating the PWE3 service packet using the target PW identifier, where the target PW identifier is used to indicate the PW between the source CE and the destination CE, and the PWE3 service packet is received by the first PE from the source CE; Decapsulating the SRv6 service message to obtain the PWE3 service message; Send the PWE3 service message to the destination CE.

12. The method according to claim 11, characterized in that When the target SRv6 tunnel is an SRv6 Policy tunnel, the SRv6 service message encapsulates the VPN address information of the destination CE and the public network forwarding table of the target SRv6 Policy tunnel; Decapsulating the SRv6 service message to obtain the PWE3 service message includes: The VPN address information of the destination CE in the SRv6 service message and the public network forwarding table of the target SRv6 Policy tunnel are sequentially decapsulated to obtain the PWE3 service message and the VPN address information of the destination CE.

13. The method according to claim 11, characterized in that When the target SRv6 tunnel is an SRv6 BE tunnel, the segment identifier of the target SRv6 BE tunnel is encapsulated in the SRv6 service message; Decapsulating the SRv6 service message to obtain the PWE3 service message includes: Decapsulate the segment identifier of the target SRv6 BE tunnel in the SRv6 service message to obtain the PWE3 service message.

14. The method according to claim 13, wherein: The PWE3 service message includes the target PW identifier; After decapsulating the segment identifier of the target SRv6 BE tunnel in the SRv6 service message to obtain the PWE3 service message, the method further includes: Determining the identifier of the destination CE according to the target PW identifier; Determine the VPN address information of the destination CE according to the identifier of the destination CE.

15. A network device, characterized in that: include: memory and processor; Memory and processor coupling; The memory is used to store instructions executable by the processor; When the processor executes the instructions, the method according to any one of claims 1 to 14 is performed.

16. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 14.

Citation Information

Cited By

  • Message processing method and device

    CN121486263A