Message processing method and device, communication device, and storage medium

By using low-priority tunnel forwarding to forward messages when both the primary and backup paths of the small-granular slice channel fail, the problem of unreliable communication when both paths fail is solved, achieving high reliability and low modification communication protection.

CN118827524BActive Publication Date: 2026-01-20CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311413742.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2026-01-20
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

When both the primary and backup paths of small-granular slices fail, existing technologies cannot forward services to the destination node, resulting in unreliable communication.

Method used

In the event that both the primary and backup channels of the small particle slice channel fail, the first tunnel is used to forward the message. The first tunnel represents the low-priority tunnel in the tunnel group corresponding to the outgoing interface of the message, including receiving information and commands from the server to establish the tunnel group, and configuring backup channels for the high-priority tunnels.

Benefits of technology

It improves communication reliability, enabling message forwarding to the destination node even when both the primary and backup channels of the small-granular slice channel fail, and requires only minor network modifications to achieve multi-point failure protection for important services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827524B_ABST
    Figure CN118827524B_ABST
Patent Text Reader

Abstract

The application discloses a message processing method and device, communication equipment and a storage medium. The method comprises the following steps: in the case where the main and standby channels of a small-particle slice channel both fail, a source node of an SPN forwards a first message by using a first tunnel; wherein the first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first message.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to a message processing method and device, communication equipment and a storage medium. BACKGROUND

[0002] In the related art, a metro transport network (MTN) supports a time-division multiplexing (TDM) channel with a smaller granularity, such as a 10-megabit per second (Mbps) granularity channel. Protection is an important service level agreement (SLA) index of a small-granularity slice private line. However, in the case where both a primary path and a backup path of a small-granularity slice fail, a service cannot be forwarded to a destination node. SUMMARY

[0003] To solve the problems in the related art, the present application provides a message processing method and device, communication equipment and a storage medium.

[0004] The technical scheme of the present application is implemented as follows:

[0005] The present application provides a message processing method applied to a source node of a small-granularity slice service of a slicing packet network (SPN), and the method comprises the following steps.

[0006] In the case where both a primary path and a backup path of a small-granularity slice channel fail, a first message is forwarded by using a first tunnel, wherein the first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first message.

[0007] In the above scheme, the method further comprises the following steps.

[0008] First information and / or second information issued by a server are received, wherein the first information is used to indicate a priority of a tunnel, and the second information is used to indicate that a source node of a small-granularity slice service of an SPN selects a tunnel for forwarding a message according to a priority of a tunnel included in a tunnel group.

[0009] The first information is used to indicate a priority of a tunnel.

[0010] The second information is used to indicate that a source node of a small-granularity slice service of an SPN selects a tunnel for forwarding a message according to a priority of a tunnel included in a tunnel group.

[0011] In the above scheme, before the step of receiving the first information and / or the second information issued by the server, the method further comprises the following steps.

[0012] A first command issued by a server is received, and the first command is used to indicate that a tunnel group is established between a source node and a destination node of a small-granularity slice service of an SPN.

[0013] According to the first command, a tunnel group between the source node and a corresponding destination node is established.

[0014] In the above scheme, the method further comprises at least one of the following:

[0015] The second tunnel in the tunnel group established by the source node is bound to a small-particle slice channel.

[0016] The second tunnel is configured for each SPN small-particle slice service; wherein

[0017] The priority of the second tunnel is higher than the priority of the first tunnel.

[0018] The second tunnel of the same SPN small-particle slice service comprises a primary channel and a backup channel.

[0019] In the above scheme, the first command carries information of the source node and information of the destination node corresponding to the source node.

[0020] In the above scheme, the method further comprises:

[0021] In the case that at least one of the following conditions is met, the first packet is forwarded by using the second tunnel:

[0022] The primary channel of the small-particle slice channel has not failed.

[0023] The primary channel of the small-particle slice channel has failed, and the backup channel of the small-particle slice channel has not failed.

[0024] Both the primary channel and the backup channel of the small-particle slice channel have not failed; wherein

[0025] The second tunnel represents a tunnel with high priority in a tunnel group corresponding to an out-interface of the first packet.

[0026] In the above scheme, one tunnel group is bound to one or more out-interfaces, and one tunnel group comprises tunnels with different priorities.

[0027] In the above scheme, one tunnel group comprises tunnels of different types, and the priorities of the tunnels of different types are different.

[0028] In the above scheme, one tunnel group comprises a multi-protocol label switching (MPLS) tunnel and a segment routing (SR) tunnel, and the priority of the MPLS tunnel is higher than the priority of the SR tunnel.

[0029] In the above scheme, the first information is determined by the server according to service requirements of the SPN small-particle slice service.

[0030] The embodiment of the present application further provides a packet processing device, comprising:

[0031] The first sending unit is configured to forward the first packet by using the first tunnel in the case that the primary and backup channels of the small-particle slice channel both fail.

[0032] The first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet.

[0033] The embodiment of the present application further provides a communication device, comprising a processor and a communication interface, wherein

[0034] The communication interface is configured to forward the first packet by using the first tunnel in the case that the primary and backup channels of the small-particle slice channel both fail.

[0035] The first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet.

[0036] The embodiment of the present application further provides a communication device, comprising a processor and a memory for storing a computer program capable of running on the processor,

[0037] The processor is configured to execute the steps of any of the above methods when the computer program runs.

[0038] The embodiment of the present application further provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of any of the above methods.

[0039] In the packet processing method, device, communication device and storage medium provided by the embodiment of the present application, the source node of the SPN forwards the first packet by using the first tunnel in the case that the primary and backup channels of the small-particle slice channel both fail, and the first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet. The above scheme can still forward the packet to the destination node by using the first tunnel in the case that the primary and backup channels of the small-particle slice channel both fail, thereby improving the communication reliability. In addition, the above scheme only selects the tunnel for forwarding the packet according to the priority of the tunnel in the tunnel group corresponding to the out-interface of the packet at the source node, and the network is slightly changed, so that the multi-point failure protection of important services can be implemented at a minimum cost. BRIEF DESCRIPTION OF DRAWINGS

[0040] Figure 1 FIG. 1 is a flowchart of a packet processing method according to an embodiment of the present application;

[0041] Figure 2 FIG. 2 is an example diagram of a packet processing method according to an embodiment of the present application;

[0042] Figure 3 Figure 1 is a schematic diagram of a packet processing device according to an embodiment of the present application;

[0043] Figure 4 Figure 2 is a schematic diagram of a communication device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] MTN is a new type of transport network technology system defined by the International Telecommunication Union-Telecommunication Sector (ITU-T) for new service requirements (for example, the requirement of network slicing), which can realize effective integration of TDM and packet switching; MTN is composed of a Section layer and a Path layer, and the Path layer is also referred to as a passage layer. The Section layer of MTN reuses a Flexible Ethernet (FlexE) logical support port binding, is compatible with an Ethernet underlying protocol stack and a standard Ethernet optical module; the Path layer of MTN supports TDM switching based on a 66-byte (B) code block, has a perfect end-to-end Operation Administration and Maintenance (OAM) mechanism, and supports cross-multiplexing of any Nx5G channelized customer signals.

[0045] With the development of services, MTN is also developing smaller granularity TDM channels, for example, 10-megabit per second (Mbps) granularity channels. Specifically, a Fine Granularity Unit (FGU) is used to further time slot division and multiplexing of a 5Gbps granularity channel of a Slicing Packet Network (SPN) Path layer, to form a small granularity channel with a bandwidth granularity of 10 Mbps.

[0046] Protection is an important SLA index of a small granularity slicing private line, and the MTN fine granularity Path (MTN FG Path) layer supports Automatic Protection Switching (APS). APS is a linear protection mechanism, and an APS protocol message is carried by an APS code block of the layer. The APS protection mechanism supports one-way / double one-way 1+1 path protection, and the 1+1 path can be understood as a main path and a backup path. Currently, only 1:1 or 1+1 protection can be provided when a small granularity slicing private line is established, but in the case that both the main path and the backup path of the small granularity slicing are faulty, the existing technical solution cannot provide protection for the small granularity slicing private line, and cannot forward the service to the destination node.

[0047] Based on this, in various embodiments of the present application, the source node of the SPN forwards the first packet by using a first tunnel in the case that the primary and backup channels of the small-granularity slice both fail; wherein the first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet. The above scheme can still forward the packet to the destination node in the case that the primary and backup channels of the small-granularity slice both fail, thereby improving the communication reliability. In addition, the above scheme only selects the tunnel for forwarding the packet according to the priority of the tunnel in the tunnel group corresponding to the out-interface of the packet at the source node, and has small network changes, so that the multi-point failure protection of important services can be implemented at a minimum cost.

[0048] The present application will be further described in detail below in combination with the drawings and embodiments.

[0049] The present application provides a packet processing method, which is applied to a source node of an SPN small-granularity slice service, and can also be referred to as a source node of the SPN. The source node of the SPN small-granularity slice service and the source node of the SPN are both SPN devices. As shown in the figure, the method comprises the following steps. Figure 1

[0050] Step 101: In the case that the primary and backup channels of the small-granularity slice both fail, a first tunnel is used to forward a first packet.

[0051] The first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet.

[0052] ​Here, the source node of the SPN small-granularity slice service acquires the first packet, detects whether the primary and backup channels of the small-granularity slice channel have failed, in the case where the primary and backup channels of the small-granularity slice channel have both failed, the tunnel of high priority in the tunnel group corresponding to the out interface of the first packet is invalid, a tunnel of low priority in the tunnel group corresponding to the out interface of the first packet is determined, a first tunnel is obtained, and the first tunnel is used to forward the first packet, so that the first packet is sent out through the out interface of the first packet; the first tunnel is in a normal working state, that is, the first tunnel is valid or the first tunnel has not currently failed, and can be used to forward a packet. The source node of the SPN small-granularity slice service can determine the tunnel group corresponding to the out interface of the first packet according to the following method: the out interface of the first packet is determined according to a forwarding table, or the out interface of the first packet is determined according to the destination address carried by the first packet; the tunnel group corresponding to the out interface of the first packet is determined according to a first relationship; the first relationship at least includes a corresponding relationship or a mapping relationship between the out interface and the tunnel group, and specifically, the first relationship can include a corresponding relationship or a mapping relationship between the identifier of the out interface and the number or identifier of the tunnel group. The first relationship can be stored in the source node of the SPN small-granularity slice service, or obtained by the source node of the SPN small-granularity slice service from a management and control system or a server corresponding to the management and control system.

[0053] The small-granularity slice channel can be understood as a channel of a small-granularity slice, and the primary and backup channels of the small-granularity slice channel can be understood as primary and backup channels of a small-granularity slice. The small-granularity slice can be understood as an SPN small-granularity slice, one small-granularity slice can have one primary channel and one backup channel, and one service with a hard isolation requirement corresponds to at least one small-granularity slice. The primary and backup channels of the small-granularity slice channel refer to the primary channel and the backup channel of the small-granularity slice channel, the primary channel of the small-granularity slice channel is also referred to as a small-granularity slice primary channel, and the backup channel of the small-granularity slice channel is also referred to as a small-granularity slice backup channel; the primary and backup channels can also be understood as primary and backup links or primary and backup paths. The first packet can be understood as any packet or any service packet or any management and control packet, and the first packet includes an SPN related packet, such as an SPN service packet or an SPN small-granularity slice service packet.

[0054] In an embodiment, one tunnel group corresponds to binding one or more out interfaces, and one tunnel group includes tunnels of different priorities.

[0055] Here, the source node of the SPN small-granularity slice service can select a tunnel for forwarding a packet according to the priority of the tunnel in the tunnel group corresponding to the out interface of the packet (service packet), so as to improve the communication reliability.

[0056] On the basis that one tunnel group corresponds to bind one or more outgoing interfaces, in an embodiment, one tunnel group contains different types of tunnels, and the priorities of different types of tunnels are different.

[0057] Here, different types of tunnels in the same tunnel group are distinguished by priority. The number of tunnels of the same type in the same tunnel group can be one or at least two, which can be established according to actual needs, and is not limited here. Different types of tunnels may support different transmission protocols, so that the appropriate tunnel can be selected in the tunnel group corresponding to the outgoing interface of the service message to forward the service message according to the transmission protocol supported by the service data or the service message, so as to improve the data transmission reliability. The service message carries service data.

[0058] On the basis that one tunnel group corresponds to bind one outgoing interface, in an embodiment, one tunnel group contains MPLS tunnels and SR tunnels, and the priority of the MPLS tunnel is higher than that of the SR tunnel.

[0059] Here, the SR tunnel can be a dynamic SR tunnel. The first tunnel can be a dynamic SR tunnel. That is, in the case that both the primary and standby channels of the small-grain slice channel fail, the first message can be forwarded by using the effective dynamic SR tunnel in the tunnel group corresponding to the outgoing interface of the first message. When forwarding the message by using the SR tunnel, the message is forwarded according to the packet forwarding mechanism. The effective dynamic SR tunnel can be understood as an SR tunnel in a normal working state and can be used to forward the message.

[0060] It should be noted that the MPLS tunnel can also be referred to as an MPLS-TP (MPLS-Transport Profile) tunnel; the SR tunnel or the dynamic SR tunnel can also be referred to as an SR-TP tunnel, and the SR-TP tunnel is suitable for SR-TP (MPLS-TP and SR combined) networking mode.

[0061] Table 1 gives an example of a tunnel group, which contains MPLS tunnels and SR tunnels in the same tunnel group.

[0062] Table 1

[0063]

[0064] Among them, the outgoing interface bound with the tunnel group 001 is port1; the MPLS tunnel in the same tunnel group is bound with the small-grain slice channel MTN-001, and the SR tunnel is not bound with the small-grain slice channel. The priority of the MPLS tunnel is higher than that of the SR tunnel.

[0065] In order to enable the source node of the SPN small-granularity slice service to select a suitable tunnel for packet forwarding according to the priority of the tunnels in the same tunnel group, in an embodiment, before the first tunnel is used to forward the first packet, the method further comprises:

[0066] receiving the first information and / or the second information issued by the server; wherein,

[0067] the first information is used to indicate the priority of the tunnels;

[0068] the second information is used to indicate that the source node of the SPN small-granularity slice service selects a tunnel for forwarding a packet according to the priority of the tunnels included in the tunnel group.

[0069] Here, the server can be understood as a management system or a server running the management system. The first information can indicate the priority of each tunnel established by the source node of the SPN small-granularity slice service, or indicate the priority of each type of tunnel established by the source node of the SPN small-granularity slice service. In actual application, an enumeration value can be used to define the priority of the tunnel, for example, enumeration values 00-07 are used to represent the priority of the tunnel, and the smaller the enumeration value, the lower the priority of the tunnel. The first information can be used to indicate that the priority of the MPLS tunnel is 07 and the priority of the SR tunnel is 01.

[0070] In the case where the first information and the second information are received, when the source node of the SPN small-granularity slice service receives any packet, it determines the tunnel group corresponding to the out-interface of the packet, and selects a tunnel with a higher priority to forward the packet according to the tunnels in the tunnel group corresponding to the out-interface of the packet that are in a normal working state. It should be noted that in the case where both the primary and backup channels of the small-granularity slice fail, the high-priority tunnel is disabled.

[0071] In an embodiment, the first information is determined by the server according to the service requirement of the SPN small-granularity slice service.

[0072] Here, the server can determine the priority of the tunnel according to the service requirement of the SPN small-granularity slice service, generate the first information according to the priority of the tunnel, and issue the first information to the source node of the SPN small-granularity slice service. The service requirement of the SPN small-granularity slice service can be understood as the SLA requirement or SLA demand of the service.

[0073] For example, the SPN small-granularity slice service includes a first service and a second service, in a case where the SLA requirement of the first service is higher and the SLA requirement of the second service is lower, the server can indicate, by the first information, a source node of the SPN to establish a tunnel group for the first service, establish a small-granularity slice channel corresponding to the service bearer, set a second tunnel bound with the small-granularity slice channel corresponding to the first service as a high priority, and set a first tunnel corresponding to the first service as a low priority. The second service does not establish a tunnel group, and only uses the corresponding small-granularity slice channel and / or the tunnel corresponding to the second service to bear the second service. The first service can be a premium class service, and the premium class service can include a control class service and / or a production class service, etc. The second service can be a high-class service, and the second service does not bind a tunnel group.

[0074] Before the server issues the first information and / or the second information, the source node of the SPN small-granularity slice service also needs to be instructed to establish a tunnel between the source node and the sink node. Based on this, in an embodiment, before the server issues the first information and / or the second information, the method further includes:

[0075] receiving a first command issued by the server, the first command being used to instruct to establish a tunnel group between the source node and the sink node of the SPN small-granularity slice service;

[0076] According to the first command, a tunnel group between the source node and the corresponding sink node is established.

[0077] In an embodiment, the first command is determined by the server according to the service requirement of the SPN small-granularity slice service.

[0078] Here, the source node of the SPN determines the sink node corresponding to the source node and establishes a tunnel group between the source node and the corresponding sink node in a case where the first command is received. One tunnel group can include tunnels of different priorities. One source node can correspond to one sink node, or can correspond to at least two sink nodes. In the SPN, the source node represents the starting point of service transmission, and the sink node represents the end point of service transmission.

[0079] One source node has at least one port, and the sink node also has at least one port, therefore, there is at least one tunnel group between one source node and one corresponding sink node, one tunnel group can correspond to the port of one sink node, each tunnel group has a tunnel group ID, and the tunnel group IDs of different tunnel groups are different, that is, different tunnel groups are distinguished by the tunnel group ID. The same tunnel group can include different tunnels, and when forwarding a packet, a suitable tunnel can be selected from different tunnels in the same tunnel group for packet forwarding according to the priority of the tunnel.

[0080] In actual application, the service and the tunnel group are one-to-one corresponding, and a tunnel group does not need to be established for all services, only a tunnel group needs to be established for a service with high SLA requirement, therefore, the server needs to determine the first command according to the service requirement of the SPN small-granularity slice service, and the service requirement of the SPN includes the SLA requirement.

[0081] Considering that the service with high SLA requirement has a corresponding relationship with the small-granularity slice channel, in actual application, the source node of the SPN small-granularity slice service can determine whether to bind the tunnel in the established tunnel group with the small-granularity slice channel corresponding to the service according to the SLA requirement of the service, in the case that the tunnel group between the source node and the corresponding sink node is successfully established. For example, in the case that the SLA requirement of the first service requires high quality of service, the high-priority tunnel in the established tunnel group can be bound with the small-granularity slice channel corresponding to the first service; in the case that the SLA requirement of the second service indicates that low quality of service can meet the requirement of the second service, the small-granularity slice channel corresponding to the second service can not be bound with a tunnel.

[0082] In order to facilitate the source node of the SPN small-granularity slice service to determine the corresponding sink node and improve the efficiency of the source node of the SPN small-granularity slice service to establish a tunnel group, in an embodiment, the first command carries the information of the source node and the information of the sink node corresponding to the source node.

[0083] Here, the source node of the SPN small-granularity slice service parses the first command to obtain the information of the source node and the information of the sink node corresponding to the source node carried by the first command, and establishes a tunnel group between the source node and the corresponding sink node based on the information of the source node and the information of the sink node corresponding to the source node.

[0084] In the case that the server respectively issues corresponding first commands to each source node in the SPN, the first command can carry the information of one source node in the SPN and the information of the sink node corresponding to the source node; the information of the source node carried in different first commands is different, and the sink nodes corresponding to different source nodes can be the same or different. The information of the source node includes the identifier of the source node, the Internet Protocol Address (IP address), etc.

[0085] In the case that the server broadcasts or group-sends the first command to multiple source nodes in the SPN, the broadcasted or group-sent first command carries the same content, at this time, the first command can carry the information of multiple source nodes in the SPN and the information of the sink node corresponding to each source node; the source node receiving the first command determines the information of the sink node corresponding to the source node from the first command, and establishes a tunnel group between the source node and the corresponding sink node.

[0086] To provide 1:1 or (1+1) protection for small-particle slices to improve the reliability of SPN small-particle slice services, in an embodiment, the method further comprises at least one of the following:

[0087] binding the second tunnel in the tunnel group established by the source node to a small-particle slice channel;

[0088] configuring a second tunnel for each SPN small-particle slice service; wherein,

[0089] the priority of the second tunnel is higher than the priority of the first tunnel;

[0090] the second tunnel for the same SPN small-particle slice service comprises a primary channel and a backup channel.

[0091] Here, in the case where the tunnel group established by the source node of the SPN small-particle slice service comprises the first tunnel and the second tunnel, the second tunnel in the tunnel group is bound to a small-particle slice channel corresponding to the out interface of the tunnel group. For example, in the case where the second tunnel is an MPLS tunnel, the MPLS tunnel can be bound to a small-particle slice channel after the MPLS tunnel is encapsulated with an MPLS label or an MPLS-TS label, such as being arranged in the small-particle slice channel. The small-particle slice channel can be understood as a channel of the small-particle slice service, including a primary channel of the small-particle slice service and / or a backup channel of the small-particle slice service.

[0092] The source node of the SPN small-particle slice service can correspondingly configure a second tunnel for each SPN small-particle slice service, and bind a pair of primary and backup channels to each second tunnel, so that the second tunnel for the same SPN small-particle slice service comprises a primary channel and a backup channel, thereby achieving primary and backup protection or providing FGU 1:1 / 1+1 protection for the SPN small-particle slice service. That is, one SPN small-particle slice service corresponds to one second tunnel, and one second tunnel has one primary channel and one backup channel. For example, in the case where the second tunnel is an MPLS tunnel, a pair of primary and backup channels is bound to one MPLS tunnel. In this way, even if the primary channel or the backup channel in the second tunnel fails, the second tunnel can still forward packets.

[0093] It should be noted that there is a one-to-one correspondence between SPN small-granularity slice services and tunnel groups. A tunnel group includes a first tunnel and a second tunnel. The first tunnel can be an SR tunnel, and the second tunnel can be an MPLS tunnel. The high-priority second tunnel corresponds to the small-granularity slice channel, and the high-priority second tunnel is configured with primary and backup protection. The low-priority first tunnel is not bound to a small-granularity slice channel. The primary channel can be understood as the primary channel for small-granularity slices, the primary small-granularity slice channel, the primary channel for small-granularity slice services, or the primary channel for the small-granularity slice channel corresponding to the small-granularity slice service. The backup channel can be understood as the backup channel for small-granularity slices, the backup small-granularity slice channel, the backup channel for small-granularity slice services, or the backup channel for the small-granularity slice channel corresponding to the small-granularity slice service.

[0094] It should be noted that the source node of the SPN small-granularity slice service can also bind MPLS tunnels and SR tunnels in the same tunnel group to the same small-granularity slice service. In this case, the MPLS tunnel of the same small-granularity slice service has a higher priority than the SR tunnel.

[0095] To ensure communication reliability, a second tunnel can be preferentially selected for message forwarding. Based on this, in one embodiment, the method further includes:

[0096] The first message is forwarded using a second tunnel if at least one of the following conditions is met:

[0097] The main channel for small particle slicing was not malfunctioning;

[0098] The primary channel of the small particle slicing channel failed, while the backup channel of the small particle slicing channel did not fail.

[0099] Neither the primary nor backup channels of the small particle slicing channel experienced any malfunctions; among them...

[0100] The second tunnel represents the high-priority tunnel in the tunnel group corresponding to the outgoing interface of the first message.

[0101] Here, as Figure 2 As shown, if the primary channel of the small-granularity slice channel does not fail, and / or the backup channel of the small-granularity slice channel does not fail, the source node of the SPN small-granularity slice service determines the available high-priority tunnel in the tunnel group corresponding to the outgoing interface of the first packet, obtains the second tunnel, and uses the second tunnel to forward the first packet, so that the first packet is sent out through the outgoing interface of the first packet. In this way, small-granularity slice channel layer protection can be achieved.

[0102] In a case where the primary channel of the small-particle slice channel fails and the backup channel of the small-particle slice channel does not fail, the source node of the SPN small-particle slice service performs APS, the primary channel of the small-particle slice channel fails, and the backup channel of the small-particle slice channel takes effect, at this time, the second tunnel can be bound to the backup channel of the small-particle slice service, or can not be bound to the backup channel of the small-particle slice service.

[0103] In a case where the primary channel of the small-particle slice channel does not fail, the primary channel of the small-particle slice channel takes effect, and the backup channel of the small-particle slice fails, the second tunnel can be bound to the primary channel of the small-particle slice service, or can not be bound to the primary channel of the small-particle slice service.

[0104] To implement the packet processing method of the embodiments of the present application, the embodiments of the present application further provide a packet processing device arranged on a source node of an SPN small-particle slice service, as shown in Figure 3 The device comprises:

[0105] A first sending unit 301 is configured to, in a case where both the primary and backup channels of the small-particle slice channel fail, forward a first packet by using a first tunnel; wherein,

[0106] The first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first packet.

[0107] In an embodiment, the device further comprises:

[0108] A first receiving unit is configured to receive first information and / or second information issued by a server; wherein,

[0109] The first information is used to indicate the priority of a tunnel;

[0110] The second information is used to indicate that the source node of the SPN small-particle slice service selects a tunnel for forwarding a packet according to the priority of a tunnel included in a tunnel group.

[0111] In an embodiment, the device further comprises:

[0112] A second receiving unit is configured to receive a first command issued by a server, and the first command is used to indicate that a tunnel group is established between the source node and a destination node of the SPN small-particle slice service;

[0113] An establishing unit is configured to establish the tunnel group between the source node and a corresponding destination node according to the first command.

[0114] In an embodiment, the device further comprises at least one of the following:

[0115] a binding unit, configured to bind a second tunnel in the tunnel group established by the source node to a small-granularity slice channel;

[0116] a configuration unit, configured to configure the second tunnel for each SPN small-granularity slice service; wherein,

[0117] The priority of the second tunnel is higher than that of the first tunnel.

[0118] The second tunnels for the same SPN small-granularity slice service include a primary channel and a backup channel.

[0119] In an embodiment, the first command carries information of the source node and information of a destination node corresponding to the source node.

[0120] In an embodiment, the apparatus further includes:

[0121] a second sending unit, configured to forward the first packet via the second tunnel when at least one of the following conditions is met:

[0122] The primary channel of the small-granularity slice channel has not failed;

[0123] The primary channel of the small-granularity slice channel has failed, and the backup channel of the small-granularity slice channel has not failed;

[0124] Both the primary and backup channels of the small-granularity slice channel have not failed; wherein,

[0125] The second tunnel represents a tunnel with high priority in a tunnel group corresponding to an out-interface of the first packet.

[0126] In an embodiment, one tunnel group corresponds to binding of one or more out-interfaces, and one tunnel group includes tunnels with different priorities.

[0127] In an embodiment, one tunnel group includes tunnels of different types, and the tunnels of different types have different priorities.

[0128] In an embodiment, one tunnel group includes MPLS tunnels and SR tunnels, and the MPLS tunnels have higher priority than the SR tunnels.

[0129] In an embodiment, the first information is determined by the server according to service requirements of the SPN small-granularity slice service.

[0130] In actual application, the first sending unit 301, the first receiving unit, the second receiving unit, and the second sending unit can be implemented by a processor in a packet processing device in combination with a communication interface. The establishment unit, the binding unit, and the configuration unit can be implemented by a processor in a packet processing device.

[0131] It should be noted that the message processing apparatus provided in the above embodiments is only used for illustrating the division of the above program modules when performing message processing, and in actual application, the above processing can be completed by different program modules according to needs, that is, the internal structure of the apparatus is divided into different program modules to complete all or part of the above processing. In addition, the message processing apparatus and the message processing method provided in the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be repeated here.

[0132] Based on the hardware implementation of the above program modules, and in order to realize the method of the first electronic device side of the embodiment of the application, the embodiment of the application further provides a communication device, which includes a source node of a SPN small-granularity slice service. As shown in the following Figure 4 The communication device 400 includes:

[0133] The communication interface 401 can interact with other network nodes.

[0134] The processor 402 is connected with the communication interface 401 to realize information interaction with other network nodes, and is used to run a computer program to execute the method provided by one or more technical solutions of the source node side of the SPN small-granularity slice service. The computer program is stored on the memory 403.

[0135] Specifically, the communication interface 401 is configured to forward a first message through a first tunnel in the case that both the primary channel and the backup channel of the small-granularity slice channel fail; wherein,

[0136] The first tunnel represents a tunnel with a low priority in a tunnel group corresponding to an out-interface of the first message.

[0137] In an embodiment, the communication interface 401 is further configured to receive first information and / or second information issued by a server; wherein,

[0138] The first information is used to indicate the priority of the tunnel.

[0139] The second information is used to indicate that the source node of the SPN small-granularity slice service selects a tunnel for forwarding a message according to the priority of the tunnel included in the tunnel group.

[0140] In an embodiment, the communication interface 401 is further configured to receive a first command issued by a server, and the first command is used to indicate that a tunnel group is established between the source node and a sink node of the SPN small-granularity slice service.

[0141] The processor 402 is configured to establish the tunnel group between the source node and the corresponding sink node according to the first command.

[0142] In an embodiment, the processor 402 is further configured to bind a second tunnel in the tunnel group established by the source node to a small-particle slice channel.

[0143] The processor 402 is further configured to configure a second tunnel for each SPN small-particle slice service; and wherein

[0144] The priority of the second tunnel is higher than the priority of the first tunnel.

[0145] The second tunnel for the same SPN small-particle slice service includes a primary channel and a backup channel.

[0146] In an embodiment, the first command carries information of the source node and information of a destination node corresponding to the source node.

[0147] In an embodiment, the communication interface 401 is further configured to forward the first packet through the second tunnel when at least one of the following conditions is met:

[0148] The primary channel of the small-particle slice channel does not fail;

[0149] The primary channel of the small-particle slice channel fails, and the backup channel of the small-particle slice channel does not fail.

[0150] Both the primary channel and the backup channel of the small-particle slice channel do not fail; and wherein

[0151] The second tunnel represents a tunnel with a high priority in a tunnel group corresponding to an out-interface of the first packet.

[0152] In an embodiment, one tunnel group corresponds to binding of one or more out-interfaces, and one tunnel group includes tunnels with different priorities.

[0153] In an embodiment, one tunnel group includes tunnels of different types, and the tunnels of different types have different priorities.

[0154] In an embodiment, one tunnel group includes an MPLS tunnel and an SR tunnel, and the priority of the MPLS tunnel is higher than the priority of the SR tunnel.

[0155] In an embodiment, the first information is determined by the server according to service requirements of the SPN small-particle slice service.

[0156] It should be noted that the specific processing process of the processor 402 and the communication interface 401 can be understood with reference to the above method.

[0157] Of course, in a practical application, various components in the communication device 400 are coupled together by a bus system 404. It can be understood that the bus system 404 is used for realizing the connection communication between the components. The bus system 404 includes, in addition to the data bus, a power supply bus, a control bus, and a status signal bus. However, for the purpose of clear illustration, all the buses are marked as the bus system 404 in the Figure 4

[0158] The memory 403 in the embodiment of the present application is used for storing various types of data to support the operation of the communication device 400. Examples of the data include any computer programs used for operating on the communication device 400.

[0159] The method disclosed in the above embodiment of the present application can be applied to or implemented by the processor 402. The processor 402 can be an integrated circuit chip having a processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software in the processor 402. The processor 402 disclosed above can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 402 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiments of the present application, the execution can be directly embodied as a hardware decoding processor, or be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, and the storage medium is located in the memory 403. The processor 402 reads the information in the memory 403, and combines the hardware to complete the steps of the above method.

[0160] In the exemplary embodiments, the communication device 400 can be implemented by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, micro controllers (MCUs), microprocessors (Microprocessors), or other electronic elements, for executing the above method.​

[0161] It can be understood that the memory (the memory 403) of the embodiments of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM). The magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM can be used, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.

[0162] In the example embodiments, the embodiments of the present application also provide a storage medium, i.e., a computer storage medium, specifically a computer readable storage medium, such as the memory 403 storing a computer program executable by the processor 402 of the communication device 400 to complete the steps of the aforementioned communication device side method. The computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.

[0163] It should be noted that "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0164] The term "and / or" herein is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0165] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0166] The above is only a preferred embodiment of the present application, and is not intended to limit the protection scope of the present application.

Claims

1. A message processing method, characterized in that, The method, applied to the source node of a slice packet network (SPN) small-granularity slice service, includes: In the event that both the primary and backup channels of the small-particle slice channel fail, the first tunnel is used to forward the first message; among which... The first tunnel represents a low-priority tunnel in the tunnel group corresponding to the outgoing interface of the first message; a tunnel group is bound to one or more outgoing interfaces, and a tunnel group contains tunnels with different priorities; a tunnel group contains tunnels of different types, and the different types of tunnels have different priorities; a tunnel group contains multiprotocol label switching (MPLS) tunnels and segment routing (SR) tunnels, and the priority of MPLS tunnels is higher than that of SR tunnels.

2. The method according to claim 1, characterized in that, The method further includes: Receive the first and / or second information sent by the server; wherein, The first information is used to indicate the priority of the tunnel; The second information is used to instruct the source node of the SPN small-granular slice service to select the tunnel for forwarding packets based on the priority of the tunnels contained in the tunnel group.

3. The method according to claim 2, characterized in that, Before receiving the first and / or second information sent by the server, the method further includes: Receive the first command issued by the server, which is used to instruct the establishment of a tunnel group between the source node and the destination node of the SPN small-granular slice service; According to the first command, a tunnel group is established between the source node and the corresponding destination node.

4. The method according to claim 3, characterized in that, The method further includes at least one of the following: Bind the second tunnel in the tunnel group established by the source node to the small particle slice channel; Configure a second tunnel for each SPN small-granularity slice service; whereby, The second tunnel has a higher priority than the first tunnel; The second tunnel for the same type of SPN small particle slicing service includes a primary channel and a backup channel.

5. The method according to claim 3, characterized in that, The first command carries information about the source node and information about the corresponding destination node.

6. The method according to claim 1, characterized in that, The method further includes: The first message is forwarded using a second tunnel if at least one of the following conditions is met: The main channel for small particle slicing was not malfunctioning; The primary channel of the small particle slicing channel failed, while the backup channel of the small particle slicing channel did not fail. Neither the primary nor backup channels of the small particle slicing channel experienced any malfunctions; among them... The second tunnel represents the high-priority tunnel in the tunnel group corresponding to the outgoing interface of the first message.

7. The method according to claim 2, characterized in that, The first information is determined by the server based on the service requirements of the SPN small particle slicing service.

8. A message processing apparatus, characterized in that, include: The first sending unit is used to forward the first message using the first tunnel in the event that both the primary and backup channels of the small-particle slice channel fail; wherein... The first tunnel represents a low-priority tunnel in the tunnel group corresponding to the outgoing interface of the first message; a tunnel group is bound to one or more outgoing interfaces, and a tunnel group contains tunnels of different priorities; a tunnel group contains different types of tunnels, and different types of tunnels have different priorities; a tunnel group contains MPLS tunnels and SR tunnels, and the priority of MPLS tunnels is higher than that of SR tunnels.

9. A communication device, characterized in that, include: Processor and communication interface; among which, The communication interface is used to forward the first message via a first tunnel in the event that both the primary and backup channels of the small-particle slice channel fail; wherein... The first tunnel represents a low-priority tunnel in the tunnel group corresponding to the outgoing interface of the first message; a tunnel group is bound to one or more outgoing interfaces, and a tunnel group contains tunnels of different priorities; a tunnel group contains different types of tunnels, and different types of tunnels have different priorities; a tunnel group contains MPLS tunnels and SR tunnels, and the priority of MPLS tunnels is higher than that of SR tunnels.

10. A communication device, characterized in that, This includes a processor and memory for storing computer programs that can run on the processor. When the processor is used to run the computer program, it performs the steps of the method according to any one of claims 1 to 7.

11. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Message forwarding method and device, SPE and storage medium

    CN110011839A

  • Disaster recovery backup implementation method and device

    CN112367252A