Communication method and device

By using the tunnel association table in the network device to continue forwarding service packets at the rate limit of the public network tunnel, the problem of rate limit failure when the SR-TE tunnel is not effective is solved, and redundant configurations and packet loss are reduced. The impact on aggregation equipment is small.

CN115037682BActive Publication Date: 2024-09-06NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210565723.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-09-06
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

When the existing technology uses SR-LSP to forward private network traffic, if the SR-TE tunnel does not take effect, complex and redundant rate limiting configurations need to be repeatedly performed on the SR-LSP, and packet loss and flow interruption are prone to occur during the forwarding period, which is detrimental to aggregation. Equipment has a greater impact.

Method used

By obtaining the outgoing label, port identification, VPN instance identification and destination address when the public network tunnel flapping is obtained in the first network device, the matching tunnel association entry is obtained from the tunnel association table. If the tunnel association entry is obtained in the public network routing table, If the outgoing label matches, the service packet will be forwarded through the second public network tunnel within the preset temporary rate limit time, and the rate limit of the first public network tunnel will be continued.

Benefits of technology

This avoids the temporary failure of speed limits caused by SR-TE tunnel flapping, reduces complex speed limit configurations for other tunnels, reduces the risk of packet loss and traffic interruption, and reduces the load on aggregation devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115037682B
    Figure CN115037682B
Patent Text Reader

Abstract

The present application provides a communication method and device, the method comprising: when the first public network tunnel oscillates, obtaining a first outgoing label, a port identifier of a first port for receiving a service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel; obtaining a matching tunnel association table entry from a tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address, the association table entry comprising at least one second outgoing label, each second outgoing label indicating a second public network tunnel in at least one public network tunnel; if the outgoing label obtained from the public network routing table is one of the at least one second outgoing labels, forwarding the service message at a first rate through the second public network tunnel within a preset temporary speed limit time; wherein the first outgoing label is obtained from a private network routing table entry under the VPN instance according to the port identifier and the destination address included in the service message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method and device. Background Art

[0002] MPLS L3VPN is a three-layer VPN technology that uses BGP technology to publish the private network routes of user sites in the backbone network of the service provider, and uses MPLS technology to forward private network messages between user sites in the backbone network of the service provider, thereby connecting user sites located in different geographical locations and belonging to the same virtual private network (English: Virtual Private Network, abbreviated as: VPN) through the backbone network of the service provider.

[0003] MPLS L3VPN has been widely used because of its flexible networking mode, good scalability, and the ability to easily support MPLS QoS and MPLS TE.

[0004] like Figure 1 As shown, Figure 1 This is a schematic diagram of the existing L3VPN or L2VPN network. Figure 1 In the example of L3VPN, device A establishes VPNv4 neighbors with device B, device C, and device D. Device A establishes four tunnels, two of which point to device B (tunnel1, tunnel2), one to device C (tunnel3), and one to device D (tunnel4).

[0005] Device B, device C, and device D are each connected to one or more user sites. Assume that the private network traffic of a user site reaches device A. Device A forwards the private network traffic through port 1 and automatically searches for a tunnel on port 1 for forwarding.

[0006] In the process of forwarding private network traffic, each private network traffic must pass through prot1 to reach the aggregation device, and the aggregation device has limited forwarding capacity. For example, it provides a forwarding rate of 3G / s for device A. According to the priority of the user site, device A configures QoS priority for each tunnel, and the forwarding rate configured for tunnel1 and tunnel2 is 500M / s each. The forwarding rate configured for tunnel3 and tunnel4 is 1G / s.

[0007] The above-mentioned multiple tunnels are all Segment Routing Traffic Engineering (SR-TE) tunnels formed by Segment Routing Label Switched Path (SR-LSP). The administrator configures the speed limit and forwarding priority of the SR-TE tunnel to achieve the purpose of the above-mentioned private network traffic speed limit. However, since the formation of the SR-TE tunnel depends on the generation of the SR-LSP, if the SR-LSP oscillates, and after the oscillation is restored, it can be used as another tunnel to forward L3VPN or L2VPN private network traffic. At this time, the SR-LSP does not form an SR-TE tunnel, and the SR-TE tunnel is not effective. During this period, SR-LSP is used to forward private network traffic.

[0008] During SR-LSP forwarding, the administrator needs to repeatedly configure the rate limit for SR-LSP. This rate limit configuration is complex and redundant, and packet loss and interruption are prone to occur during forwarding, which has a significant impact on the aggregation device. Summary of the invention

[0009] In view of this, the present application provides a communication method and device to solve the problem that when SR-LSP is used to forward private network traffic and the SR-TE tunnel is not effective, the SR-LSP needs to be repeatedly configured with complex and redundant speed limits, and packet loss and interruption are prone to occur during forwarding, which has a significant impact on the aggregation device.

[0010] In a first aspect, the present application provides a communication method, the method being applied to a first network device, establishing at least one public network tunnel between the first network device and a second network device and selecting the first public network tunnel to forward a service message, the first public network tunnel forwarding the service message at a first rate, the method comprising:

[0011] When the first public network tunnel flaps, obtain a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel;

[0012] Acquire a matching tunnel association table entry from a tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address, wherein the association table entry includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in the at least one public network tunnel;

[0013] If the outgoing label obtained from the public network routing table is one of the at least one second outgoing label, forwarding the service message at the first rate through the second public network tunnel within a preset temporary rate limit time;

[0014] The first outgoing label is obtained from a private network routing table entry under the VPN instance according to a port identifier and a destination address included in the service message.

[0015] In a second aspect, the present application provides a communication device, which is applied to a first network device, wherein at least one public network tunnel is established between the first network device and the second network device and the first public network tunnel is selected to forward a service message, and the first public network tunnel forwards the service message at a first rate, and the device includes:

[0016] A first acquisition unit, configured to acquire, when the first public network tunnel is oscillating, a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel;

[0017] a second acquisition unit, configured to acquire, from a tunnel association table, a matching tunnel association entry according to the first outgoing label, the port identifier, the instance identifier, and the destination address, the association entry comprising at least one second outgoing label, each second outgoing label indicating a second public network tunnel in the at least one public network tunnel;

[0018] a sending unit, configured to forward the service message at the first rate through the second public network tunnel within a preset temporary rate limit time if the outgoing label obtained from the public network routing table is one of the at least one second outgoing label;

[0019] The first outgoing label is obtained from a private network routing table entry under the VPN instance according to a port identifier and a destination address included in the service message.

[0020] In a third aspect, the present application provides a network device, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the first aspect of the present application.

[0021] Therefore, by applying the communication method and device provided by the present application, when the first public network tunnel oscillates, the first network device obtains the first outgoing label, the port identifier of the first port for receiving the service message, the instance identifier of the VPN instance to which the first port belongs, and the destination address of the public network tunnel; according to the first outgoing label, the port identifier, the instance identifier and the destination address, a matching tunnel association table item is obtained from the tunnel association table, and the association table item includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in at least one public network tunnel; if the outgoing label obtained from the public network routing table is one of the at least one second outgoing labels, then within the preset temporary speed limit time, the first network device forwards the service message at the first rate through the second public network tunnel; wherein the first outgoing label is obtained in the private network routing table item under the VPN instance according to the port identifier and the destination address included in the service message.

[0022] In this way, when the first public network tunnel vibrates, the tunnel association table is used to determine that the second outgoing label of the second public network tunnel has been stored in the tunnel association table entry. At this time, when the second public network tunnel forwards the message, it can continue the first speed record adopted by the first public network tunnel to forward the service message. When the SR-TE tunnel is not effective, other tunnels still maintain the speed limit, avoiding the problem that the temporary failure of the speed limit caused by the vibration of the SR-TE tunnel leads to complex and redundant speed limit configuration for other tunnels, and packet loss and interruption during forwarding, which has a greater impact on the aggregation equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of the existing L3VPN or L2VPN network;

[0024] Figure 2 A flow chart of a communication method provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the MPLS L3VPN network provided in the embodiment of the present application;

[0026] Figure 4 A structural diagram of a communication device provided in an embodiment of the present application;

[0027] Figure 5 The network device hardware structure provided in the embodiment of the present application. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0029] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.

[0030] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0031] The communication method provided in the embodiment of the present application is described in detail below. Figure 2 , Figure 2 A flow chart of a communication method provided in an embodiment of the present application. The method is applied to a first network device. The communication method provided in an embodiment of the present application may include the following steps.

[0032] Step 210: When the first public network tunnel is flapping, obtain a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel;

[0033] Specifically, at least one public network tunnel is established between the first network device and the second network device, and the first public network tunnel is selected to forward a VPN service message, wherein the source address of at least one public network tunnel is the address of the first network device, and the destination address is the address of the second network device.

[0034] When the first public network tunnel flaps, the first network device obtains a first outgoing label, a port identifier of a first port for receiving a service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel.

[0035] The first outgoing label is obtained by the first network device in the private network routing table under the VPN instance according to the port identifier and the destination address included in the service message. The port identifier and the instance identifier can be obtained through the configuration at the first interface, and the destination address can be obtained at the public network tunnel port configured on the first network device.

[0036] like Figure 3 As shown, Figure 3 The MPLS L3VPN networking diagram provided in the embodiment of the present application. Figure 3 In the embodiment, the first network device may be specifically a first service provider network edge (English: Provider Edge, abbreviated as: PE) device; the second network device may be specifically a second PE device.

[0037] In the MPLS network, the first network device and the second network device are respectively connected to a customer edge (English: Customer Edge, referred to as: CE) device to receive a service message sent by a user host and forwarded by the CE device.

[0038] The first network device establishes a connection with the second network device through the service provider network (Provider) device. Multiple public network tunnels have been established between the first network device and the second network device. For example, SR-TE tunnel, SR-LSP tunnel, LDPLSP tunnel, etc. The SR-TE tunnel is currently selected as the preferred tunnel for forwarding service messages, that is, the first public network tunnel, and other tunnels are selected as alternative tunnels, that is, the second public network tunnel.

[0039] In an MPLS network, each public network tunnel has a label. For example, the label of an SR-TE tunnel is 1800, the label of an SR-LSP tunnel is 16000, and the label of a Label Distribution Protocol Label Switched Path (LDP LSP) tunnel is 3000.

[0040] The first network device receives a service message sent by the CE1 device through the first port, and the service message includes a destination address (1.1.1.1). According to the port identifier (port1) of the first port, determine the VPN instance (vpna) to which the first port belongs, and obtain the private network routing table under the VPN instance. According to the destination address, obtain the matching first routing table item from the private network routing table, and obtain the first outgoing label and the first next hop from the first routing table item. The first outgoing label is specifically the label of the site, or is called a private network label (for example, 5000). The private network label is used to indicate which site the message should be sent to. The remote PE determines the VPN instance to which the service message belongs based on the private network label, and forwards the service message correctly to the corresponding site by searching the private network routing table under the VPN instance. The first next hop is specifically the address of the second network device.

[0041] The first network device encapsulates a private network label in an outer layer of the service message.

[0042] According to the address of the second network device, the first network device searches the public network routing table and obtains the matching second routing table entry from the public network routing table. The first network device obtains the third outgoing label (referred to as the third outgoing label here to distinguish it from the subsequent second outgoing label) and the outgoing interface from the second routing table entry. The third outgoing label is specifically the label of the first public network tunnel (for example, 1800), and the outgoing interface is specifically the identifier of the multiple public network tunnels established between the first network device and the second network device, that is, the identifier of the tunnel is tunnel1.

[0043] The first network device encapsulates a third outgoing label on the outer layer of the first outgoing label, and forwards the service packet through the SR-TE tunnel at a first rate.

[0044] In an embodiment of the present application, the first rate is a pre-configured rate limit, for example, the rate limit of the SR-TE tunnel is 500M / s.

[0045] The above description is about the process of the first network device receiving and forwarding the service message when the state of the SR-TE tunnel is up.

[0046] When the SR-TE tunnel is oscillating, that is, the state of the SR-TE tunnel is down. After the SR-TE tunnel state is down, the state of the SR-LSP that constitutes the SR-TE tunnel is also down. When the state of the SR-LSP is up, the state of the SR-TE tunnel has not changed to up. At this time, the first network device refreshes the third outgoing label in the second routing table entry by itself. The first network device refreshes the third outgoing label to the label of the alternative tunnel. For example, the first network device refreshes the third outgoing label to the label 16000 of the SR-LSP tunnel.

[0047] In this way, the first network device can subsequently continue to forward service messages to the second network device through the SR-LSP tunnel.

[0048] After refreshing the third outgoing label, the first network device obtains the first outgoing label (5000), the port identifier of the first port (port1), the instance identifier (vpna) of the VPN instance to which the first port belongs, and the destination address (2.2.2.2) of the public network tunnel.

[0049] Step 220: Obtain a matching tunnel association table entry from a tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address, wherein the association table entry includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in the at least one public network tunnel;

[0050] Specifically, according to the description of step 210, after the first network device obtains the first outgoing label, the port identifier, the instance identifier, and the destination address, it obtains a matching tunnel association table entry from the tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address. The association table entry includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in at least one public network tunnel.

[0051] Optionally, in an embodiment of the present application, the first network device may first establish a tunnel association relationship table entry, and generate a tunnel association relationship table according to the tunnel association relationship table entry.

[0052] The first network device uses the first outgoing label, port identifier, instance identifier and destination address as reference information; the first network device obtains the second outgoing label corresponding to each second public network tunnel; the first network device establishes an association relationship between the reference information and each second outgoing label, and generates a tunnel association table entry.

[0053] For example, the first network device uses the first outgoing label (5000), the port identifier of the first port (port1), the instance identifier of the VPN instance to which the first port belongs (vpna), and the destination address of the public network tunnel (2.2.2.2) as reference information. The first network device obtains the label 16000 of the SR-LSP tunnel and the label 3000 of the LDP LSP tunnel. The first network device establishes an association relationship between the reference information and the label 16000 of the SR-LSP tunnel and the label 3000 of the LDP LSP tunnel, and generates a tunnel association table entry.

[0054] It is understandable that when searching the tunnel association table, the first network device needs to match the obtained content with each field in the table item respectively. After each field is successfully matched, the corresponding tunnel association table item is obtained.

[0055] Step 230: If the outgoing label obtained from the public network routing table is one of the at least one second outgoing label, forward the service message at the first rate through the second public network tunnel within a preset temporary rate limit time.

[0056] Specifically, according to the description of step 220, the first network device obtains at least one second outgoing label from the tunnel association table entry. The first network device determines whether the outgoing label obtained from the public network routing table is one of the at least one second outgoing label obtained from the tunnel association table entry.

[0057] If so, within the preset temporary speed limit time, the first network device forwards the service message through the second public network tunnel at the first rate.

[0058] It is understandable that when the first public network tunnel is oscillating, the outgoing label obtained by the first network device from the public network routing table is the updated label of the second public network tunnel.

[0059] For example, if the outgoing label obtained by the first network device from the public network routing table is label 16000 of the SR-LSP tunnel and the label is one of at least one second outgoing label obtained from the tunnel association table entry, then within the temporary speed limit time, the first network device forwards the service message through the SR-LSP tunnel at the first rate again. This ensures that when the SR-TE tunnel is not effective, other tunnels still maintain the speed limit.

[0060] In an embodiment of the present application, the temporary speed limit time can be manually configured by the administrator at the first network device, or issued by the controller through a configuration command. For example, the temporary rate time can be specifically 100s. After the first network device accepts the above configuration, it starts the temporary speed limit function, and starts timing the temporary speed limit time after the first public network tunnel oscillates.

[0061] Therefore, by applying the communication method provided by the present application, when the first public network tunnel oscillates, the first network device obtains the first outgoing label, the port identifier of the first port for receiving the service message, the instance identifier of the VPN instance to which the first port belongs, and the destination address of the public network tunnel; according to the first outgoing label, the port identifier, the instance identifier and the destination address, a matching tunnel association table item is obtained from the tunnel association table, and the association table item includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in at least one public network tunnel; if the outgoing label obtained from the public network routing table is one of the at least one second outgoing labels, then within the preset temporary speed limit time, the first network device forwards the service message at the first rate through the second public network tunnel; wherein the first outgoing label is obtained from the private network routing table item under the VPN instance according to the port identifier and the destination address included in the service message.

[0062] In this way, when the first public network tunnel vibrates, the tunnel association table is used to determine that the second outgoing label of the second public network tunnel has been stored in the tunnel association table entry. At this time, when the second public network tunnel forwards the message, it can continue the first speed record adopted by the first public network tunnel to forward the service message. When the SR-TE tunnel is not effective, other tunnels still maintain the speed limit, avoiding the problem that the temporary failure of the speed limit caused by the vibration of the SR-TE tunnel leads to complex and redundant speed limit configuration for other tunnels, and packet loss and interruption during forwarding, which has a greater impact on the aggregation equipment.

[0063] Optionally, in an embodiment of the present application, when the temporary speed limit time is exceeded and the first public network tunnel is not restored, the first network device forwards the service message through the second public network tunnel at a second rate. The second rate is an unrestricted rate, for example, the normal rate of the SR-LSR tunnel is 1G / sec.

[0064] It is understandable that after the temporary speed limit time has expired, the first public network tunnel has not yet recovered to the up state. At this time, the first network device no longer performs speed limit processing on the service messages forwarded through the second public network tunnel. The first network device then returns to forwarding service messages through the second public network tunnel at a normal speed.

[0065] Optionally, in an embodiment of the present application, when the temporary speed limit time is within and the first public network tunnel is restored, the first network device determines whether a tunnel switching function has been configured locally.

[0066] If it has been configured, the first network device will perform tunnel reversal and forward the service message through the first public network tunnel at the first rate again; if it has not been configured, the first network device will no longer perform tunnel reversal and still forward the service message through the second public network tunnel at the first rate.

[0067] Based on the same inventive concept, the embodiment of the present application also provides a communication device corresponding to the communication method. Figure 4 , Figure 4 A communication device provided in an embodiment of the present application is applied to a first network device, at least one public network tunnel is established between the first network device and the second network device, and the first public network tunnel is selected to forward a service message, and the first public network tunnel forwards the service message at a first rate, and the device includes:

[0068] A first acquisition unit 410 is configured to acquire a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel when the first public network tunnel is oscillating;

[0069] A second acquisition unit 420 is configured to acquire a matching tunnel association table entry from a tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address, wherein the association table entry includes at least one second outgoing label, each second outgoing label indicating a second public network tunnel in the at least one public network tunnel;

[0070] The sending unit 430 is configured to forward the service message at the first rate through the second public network tunnel within a preset temporary rate limit time if the outgoing label obtained from the public network routing table is one of the at least one second outgoing label;

[0071] The first outgoing label is obtained from a private network routing table entry under the VPN instance according to a port identifier and a destination address included in the service message.

[0072] Optionally, the sending unit 430 is further configured to, when the temporary speed limit time is exceeded and the first public network tunnel is not restored, forward the service message at a second rate through the second public network tunnel;

[0073] The first rate is a limited rate, and the second rate is an unlimited rate.

[0074] Optionally, the device further includes: a first judgment unit (not shown in the figure), configured to judge whether a tunnel switching function has been configured locally when the temporary speed limit time is within the temporary speed limit time and the first public network tunnel is restored;

[0075] The sending unit 430 is further configured to, if configured, forward the service message through the first public network tunnel at the first rate;

[0076] The sending unit 430 is further configured to, if not configured, forward the service message at the first rate through the second public network tunnel.

[0077] Optionally, the device further comprises: a determination unit (not shown in the figure), configured to use the first outgoing label, the port identifier, the instance identifier and the destination address as reference information;

[0078] A third acquisition unit (not shown in the figure), configured to acquire a second outgoing label corresponding to each second public network tunnel;

[0079] An establishing unit (not shown in the figure) is used to establish an association relationship between the reference information and each second outgoing label, and generate the tunnel association relationship table entry.

[0080] Optionally, the first public network tunnel is an SR-TE tunnel, and the second public network tunnel is an SR-LSP tunnel, or an LDP LSP tunnel.

[0081] Therefore, by applying the communication device provided by the present application, when the first public network tunnel oscillates, the first network device obtains the first outgoing label, the port identifier of the first port for receiving the service message, the instance identifier of the VPN instance to which the first port belongs, and the destination address of the public network tunnel; according to the first outgoing label, the port identifier, the instance identifier and the destination address, a matching tunnel association table item is obtained from the tunnel association table, and the association table item includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in at least one public network tunnel; if the outgoing label obtained from the public network routing table is one of the at least one second outgoing labels, then within the preset temporary speed limit time, the first network device forwards the service message at the first rate through the second public network tunnel; wherein the first outgoing label is obtained from the private network routing table item under the VPN instance according to the port identifier and the destination address included in the service message.

[0082] In this way, when the first public network tunnel oscillates, the tunnel association table is used to determine that the second outgoing label of the second public network tunnel is stored in the tunnel association table entry. At this time, when the second public network tunnel forwards the message, it can continue to use the first speed record adopted by the first public network tunnel to forward the service message. This ensures that when the SR-TE tunnel is not effective, other tunnels still maintain the speed limit, avoiding the problem of temporary failure of the speed limit caused by the oscillation of the SR-TE tunnel, resulting in complex and redundant speed limit configuration for other tunnels, and packet loss and interruption during forwarding, which has a greater impact on the aggregation device.

[0083] Based on the same inventive concept, the embodiment of the present application also provides a network device, such as Figure 5 As shown, it includes a processor 510, a transceiver 520 and a machine-readable storage medium 530, the machine-readable storage medium 530 stores machine-executable instructions that can be executed by the processor 510, and the processor 510 is prompted by the machine-executable instructions to execute the communication method provided in the embodiment of the present application. Figure 4 The communication device shown can be used as Figure 5 The network device hardware structure shown is implemented.

[0084] The computer-readable storage medium 530 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the computer-readable storage medium 530 may also be at least one storage device located away from the processor 510.

[0085] The processor 510 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0086] In the embodiment of the present application, the processor 510 reads the machine executable instructions stored in the machine readable storage medium 530, and the machine executable instructions enable the processor 510 itself and call the transceiver 520 to execute the communication method described in the aforementioned embodiment of the present application.

[0087] In addition, an embodiment of the present application provides a machine-readable storage medium 530, which stores machine-executable instructions. When called and executed by the processor 510, the machine-executable instructions prompt the processor 510 itself and the calling transceiver 520 to execute the communication method described in the aforementioned embodiment of the present application.

[0088] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0089] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0090] As for the communication device and machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0091] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A communication method, It is characterized in that The method is applied to a first network device, at least one public network tunnel is established between the first network device and a second network device, and the first public network tunnel is selected to forward a service message, other tunnels of the at least one public network tunnel except the first public network tunnel are candidate tunnels, and the candidate tunnel is also a second public network tunnel, and the first public network tunnel forwards the service message at a first rate, and the method includes: When the first public network tunnel flaps, obtain a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel; Acquire a matching tunnel association table entry from a tunnel association table according to the first outgoing label, the port identifier, the instance identifier, and the destination address, wherein the association table entry includes at least one second outgoing label, and each second outgoing label indicates a second public network tunnel in the at least one public network tunnel; If the outgoing label obtained from the public network routing table is one of the at least one second outgoing label, forwarding the service message at the first rate through the second public network tunnel within a preset temporary rate limit time; Among them, the first outgoing label is obtained in the private network routing table item under the VPN instance according to the port identifier and the destination address included in the service message; the outgoing label obtained from the public network routing table is the label of the alternative tunnel, and the label of the alternative tunnel is updated from the label of the first public network tunnel to the label of the alternative tunnel after the first public network tunnel is oscillated, and the label of the alternative tunnel is the second outgoing label of a second public network tunnel.

2. The method according to claim 1, It is characterized in that The method further comprises: When the temporary speed limit time is exceeded and the first public network tunnel is not restored, forwarding the service message through the second public network tunnel at a second rate; The first rate is a limited rate, and the second rate is an unlimited rate.

3. The method according to claim 1, It is characterized in that The method further comprises: When the temporary speed limit time is reached and the first public network tunnel is restored, determining whether a tunnel switching back function has been configured locally; If configured, forwarding the service message through the first public network tunnel at the first rate; If not configured, the service message is forwarded through the second public network tunnel at the first rate.

4. The method according to claim 1, It is characterized in that The method further comprises: taking the first outgoing label, the port identifier, the instance identifier, and the destination address as reference information; Obtain a second outgoing label corresponding to each second public network tunnel; An association relationship between the reference information and each second outgoing label is established, and the tunnel association relationship table entry is generated.

5. The method according to claim 1, It is characterized in that The first public network tunnel is an SR-TE tunnel, and the second public network tunnel is an SR-LSP tunnel or an LDP LSP tunnel.

6. A communication device, It is characterized in that The device is applied to a first network device, at least one public network tunnel is established between the first network device and the second network device, and the first public network tunnel is selected to forward a service message, other tunnels of the at least one public network tunnel except the first public network tunnel are candidate tunnels, and the candidate tunnel is also the second public network tunnel, and the first public network tunnel forwards the service message at a first rate, and the device includes: A first acquisition unit, configured to acquire, when the first public network tunnel is oscillating, a first outgoing label, a port identifier of a first port receiving the service message, an instance identifier of a VPN instance to which the first port belongs, and a destination address of the public network tunnel; a second acquisition unit, configured to acquire, from a tunnel association table, a matching tunnel association entry according to the first outgoing label, the port identifier, the instance identifier, and the destination address, the association entry comprising at least one second outgoing label, each second outgoing label indicating a second public network tunnel in the at least one public network tunnel; a sending unit, configured to forward the service message at the first rate through the second public network tunnel within a preset temporary rate limit time if the outgoing label obtained from the public network routing table is one of the at least one second outgoing label; Among them, the first outgoing label is obtained in the private network routing table item under the VPN instance according to the port identifier and the destination address included in the service message; the outgoing label obtained from the public network routing table is the label of the alternative tunnel, and the label of the alternative tunnel is updated from the label of the first public network tunnel to the label of the alternative tunnel after the first public network tunnel is oscillated, and the label of the alternative tunnel is the second outgoing label of a second public network tunnel.

7. The device according to claim 6, It is characterized in that The sending unit is further configured to forward the service message at a second rate through the second public network tunnel when the temporary speed limit time is exceeded and the first public network tunnel is not restored; The first rate is a limited rate, and the second rate is an unlimited rate.

8. The device according to claim 6, It is characterized in that The device also includes: A first judgment unit is used to judge whether a tunnel reversal function has been configured locally when the temporary speed limit time is within the first public network tunnel recovery; The sending unit is further configured to, if configured, forward the service message through the first public network tunnel at the first rate; The sending unit is further configured to, if not configured, forward the service message at the first rate through the second public network tunnel.

9. The device according to claim 6, It is characterized in that The device also includes: a determining unit, configured to use the first outgoing label, the port identifier, the instance identifier, and the destination address as reference information; A third obtaining unit, configured to obtain a second outgoing label corresponding to each second public network tunnel; The establishing unit is used to establish an association relationship between the reference information and each second outgoing label, and generate the tunnel association relationship table entry.

10. The device according to claim 6, It is characterized in that The first public network tunnel is an SR-TE tunnel, and the second public network tunnel is an SR-LSP tunnel or an LDP LSP tunnel.