Data transmission control method and apparatus, network element, and medium

By acquiring and announcing the Layer 2 member link adjacency segment identifier, the forwarding path and processing method of data packets are determined, solving the problem of inflexible data processing in the SRv6 scenario and realizing enhanced flexibility and adaptability of data transmission.

CN116436847BActive Publication Date: 2026-06-26CHINA MOBILE COMM GRP CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE COMM GRP CO LTD
Filing Date
2022-01-04
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In SRv6 scenarios, network elements cannot flexibly implement data processing according to different service requirements, resulting in insufficient flexibility in data transmission.

Method used

By obtaining the Layer 2 member link adjacency segment identifier based on the IPv6 forwarding plane, the forwarding path of the data packet is determined, and when the path fails, the data packet is processed according to the processing method, including using a hash algorithm to select an alternative path or discarding the data packet, announcing the Layer 2 member link adjacency segment identifier in the Layer 3 binding interface, and generating announcement information using a preset transmission protocol.

Benefits of technology

It improves the flexibility of data packet transmission and processing, making data packet forwarding and processing more aligned with business needs, and enhancing the adaptability and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116436847B_ABST
    Figure CN116436847B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission control method and device, a network element and a medium. The method comprises the following steps: when a data packet is received, a two-layer member link adjacency segment identifier corresponding to a segment routing based on an IPv6 forwarding plane of the data packet is acquired; a first forwarding path corresponding to the data packet is determined according to the two-layer member link adjacency segment identifier; when the first forwarding path has a fault, a processing mode corresponding to the two-layer member link adjacency segment identifier is determined, and the data packet is processed according to the processing mode. The application improves the flexibility of data packet transmission and processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data transmission control method, apparatus, network element, and medium. Background Technology

[0002] The Layer 3 bonding interface between network elements consists of multiple Layer 2 member links. Different Layer 2 member links exhibit significant differences in latency, jitter, packet loss, and reliability due to variations in transmission paths and other factors. Service quality varies across these member links. Therefore, different service bearers require the selection of suitable Layer 2 member links; for example, latency-sensitive services like gaming should choose the lowest-latency Layer 2 member link within the Layer 3 bonding interface. However, in SRv6 scenarios, network elements need to implement different data processing methods based on varying service requirements, but existing solutions cannot flexibly accommodate this different data processing needs. Summary of the Invention

[0003] The main objective of this invention is to provide a data transmission control method, apparatus, network element, and medium, aiming to solve the problem of how to improve the flexibility of data processing.

[0004] To achieve the above objectives, the present invention provides a data transmission control method applied to a network element, the data transmission control method comprising the following steps:

[0005] Upon receiving a data packet, obtain the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet;

[0006] The first forwarding path corresponding to the data packet is determined based on the Layer 2 member link adjacency segment identifier;

[0007] When the first forwarding path fails, the processing method corresponding to the Layer 2 member link adjacency segment identifier is determined, and the data packet is processed according to the processing method.

[0008] In one embodiment, the step of determining the processing method corresponding to the Layer 2 member link adjacency segment identifier and processing the data packet according to the processing method includes:

[0009] When the Layer 2 member link adjacency segment identifier is the first value, it is determined that there is no fault in the undetermined forwarding path;

[0010] A second forwarding path is determined from the undetermined forwarding path according to the hash algorithm, and the data packet is forwarded to the adjacent network element of the network element through the second forwarding path;

[0011] When the Layer 2 member link adjacency segment identifier is the second value, the data packet is discarded.

[0012] In one embodiment, after determining the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier, the method further includes:

[0013] When the first forwarding path is not faulty, the data packet is sent to the adjacent network element of the network element according to the first forwarding path.

[0014] In one embodiment, the method further includes:

[0015] The adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface is announced, including the adjacency segment identifier of the Layer 2 member link with the values ​​filled with the first value and the second value, so that when the network element receives a data packet, it can determine the processing method of the data packet according to the announced content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet.

[0016] In one embodiment, the step of generating announcement information for a preset transport protocol based on the Layer 2 member link adjacency segment identifier and the preset message format includes:

[0017] The Layer 2 Member Link Adjacent Segment Identifier in the Layer 3 Bundling Interface is announced according to the sub-TLV of the Layer 2 Member Link Adjacent Segment Identifier of the segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol.

[0018] The sub-TLV includes at least a SID field, a Flag field, and an Endpoint Behavior field; the SID field of the sub-TLV includes a Layer 2 member link adjacency segment identifier, the target flag bit in the Flag field includes a first padding value, and the Endpoint Behavior field includes a second padding value; the preset transmission protocol is ISIS intermediate system to intermediate system routing protocol, or OSPF open shortest path first protocol, or BGP LS border gateway protocol link state protocol.

[0019] In one embodiment, the Layer 2 member link adjacency segment identifier is a newly defined adjacency segment identifier after updating and extending RFC8986, used to announce the Layer 2 member link in the Layer 3 bundle interface.

[0020] To achieve the above objectives, the present invention provides a data transmission control method applied to an upper-layer system, the method comprising:

[0021] Obtain the Service Level Agreement (SLA) for services, and obtain the Layer 2 member link adjacency segment identifiers in the Layer 3 binding interfaces of each network element based on the BGP LS protocol.

[0022] Based on the service SLA and the Layer 2 member link adjacency segment identifier, the network path corresponding to the data packet of the service is programmed so that the network forwards the data packet corresponding to the service based on the programming result.

[0023] To achieve the above objectives, the present invention also provides a data transmission control device, the data transmission control device comprising:

[0024] The acquisition module is used to acquire the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet when the data packet is received.

[0025] The determination module is used to determine the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier;

[0026] The control module is used to determine the processing method corresponding to the Layer 2 member link adjacency segment identifier when the first forwarding path has a fault, and to process the data packet according to the processing method.

[0027] To achieve the above objectives, the present invention also provides a network element, the network element including a memory, a processor, and a data transmission control program stored in the memory and executable on the processor, wherein the data transmission control program, when executed by the processor, implements the various steps of the data transmission control method as described above.

[0028] To achieve the above objectives, the present invention also provides a data transmission control device, the data transmission control device comprising:

[0029] The acquisition module is used to obtain the Service Level Agreement (SLA) of the service and to obtain the Layer 2 member link adjacency segment identifier of each network element's Layer 3 binding interface based on the BGP LS protocol.

[0030] The determination module is used to program the network path corresponding to the data packet of the service based on the service SLA and the Layer 2 member link adjacency segment identifier, so that the network forwards the data packet corresponding to the service based on the programming result.

[0031] To achieve the above objectives, the present invention also provides an upper-level system, the upper-level system including a memory, a processor, and a data transmission control program stored in the memory and executable on the processor, wherein the data transmission control program, when executed by the processor, implements the various steps of the data transmission control method as described above.

[0032] To achieve the above objectives, the present invention also provides a computer-readable storage medium storing a data transmission control program, which, when executed by a processor, implements the various steps of the data transmission control method described above.

[0033] This invention provides a data transmission control method, apparatus, network element, and medium. The method involves obtaining a predefined Layer 2 member link adjacency segment identifier corresponding to a predefined segment route based on the IPv6 forwarding plane for a preset transmission protocol. Based on the Layer 2 member link adjacency segment identifier and a preset message format, the method generates announcement information for a preset transmission protocol, enabling the preset transmission protocol to announce the Layer 2 member link adjacency segment identifier according to the announcement information. By announcing the newly defined Layer 2 member link adjacency segment identifier, the network element, upon receiving a data packet, determines the data packet processing method based on the corresponding Layer 2 member link adjacency segment identifier. This makes the data packet forwarding process more aligned with service requirements, improving the flexibility of data packet transmission and processing. Attached Figure Description

[0034] Figure 1 This is a schematic diagram of the hardware structure of the network element or upper-layer system involved in the embodiments of the present invention;

[0035] Figure 2 This is a flowchart illustrating the first embodiment of the data transmission control method of the present invention;

[0036] Figure 3 This is a schematic diagram of the network element and upper-layer system of the data transmission control method of the present invention.

[0037] Figure 4 This is a flowchart illustrating a second embodiment of the data transmission control method of the present invention;

[0038] Figure 5 This is a schematic diagram of the SRv6 End.L2X SID sub-TLV in the data transmission control method of the present invention;

[0039] Figure 6 This is a flowchart illustrating the SRv6 LAN End.L2X SID sub-TLV process in the data transmission control method of this invention.

[0040] Figure 7 This is a schematic diagram of the Flags field in the data transmission control method of the present invention;

[0041] Figure 8 This is a flowchart illustrating a third embodiment of the data transmission control method of the present invention.

[0042] Figure 9 This is a schematic diagram of the logic structure of the data transmission control device of the present invention;

[0043] Figure 10 This is a schematic diagram of the logic structure of the data transmission control device of the present invention.

[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0045] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0046] The main solution of this invention is: to obtain the Layer 2 member link adjacency segment identifier of the predefined segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol; to generate the announcement information of the preset transmission protocol according to the Layer 2 member link adjacency segment identifier and the preset message format, so that the preset transmission protocol announces the Layer 2 member link adjacency segment identifier according to the announcement information.

[0047] By announcing the newly defined Layer 2 member link adjacency segment identifier, network elements can determine the processing method for data packets based on the Layer 2 member link adjacency segment identifier when receiving data packets. This makes the forwarding and processing of data packets more aligned with business needs and improves the flexibility of data packet transmission and processing.

[0048] As one implementation scheme, network elements or upper-layer systems can be like... Figure 1 As shown.

[0049] The embodiments of the present invention relate to a network element or upper-layer system, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to implement communication between these components.

[0050] Memory 102 can be high-speed RAM or stable memory (non-volatile memory), such as disk storage. Figure 1 As shown, the memory 102 of a network element, which is a computer-readable storage medium, may include a data transmission control program; and the processor 101 of the network element can be used to call the data transmission control program stored in the memory 102 and perform the following operations:

[0051] Upon receiving a data packet, obtain the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet;

[0052] The first forwarding path corresponding to the data packet is determined based on the Layer 2 member link adjacency segment identifier;

[0053] When the first forwarding path fails, the processing method corresponding to the Layer 2 member link adjacency segment identifier is determined, and the data packet is processed according to the processing method.

[0054] In one embodiment, the processor 101 can be used to call the data transfer control program stored in the memory 102 and perform the following operations:

[0055] When the Layer 2 member link adjacency segment identifier is the first value, it is determined that there is no fault in the undetermined forwarding path;

[0056] A second forwarding path is determined from the undetermined forwarding path according to the hash algorithm, and the data packet is forwarded to the adjacent network element of the network element through the second forwarding path;

[0057] When the Layer 2 member link adjacency segment identifier is the second value, the data packet is discarded.

[0058] In one embodiment, the processor 101 can be used to call the data transfer control program stored in the memory 102 and perform the following operations:

[0059] When the first forwarding path is not faulty, the data packet is sent to the adjacent network element of the network element according to the first forwarding path.

[0060] In one embodiment, the processor 101 can be used to call the data transfer control program stored in the memory 102 and perform the following operations:

[0061] The adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface is announced, including the adjacency segment identifier of the Layer 2 member link with the values ​​filled with the first value and the second value, so that when the network element receives a data packet, it can determine the processing method of the data packet according to the announced content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet.

[0062] In one embodiment, the processor 101 can be used to call the data transfer control program stored in the memory 102 and perform the following operations:

[0063] The Layer 2 Member Link Adjacent Segment Identifier in the Layer 3 Bundling Interface is announced according to the sub-TLV of the Layer 2 Member Link Adjacent Segment Identifier of the segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol.

[0064] The sub-TLV includes at least a SID field, a Flag field, and an Endpoint Behavior field; the SID field of the sub-TLV includes a Layer 2 member link adjacency segment identifier, the target flag bit in the Flag field includes a first padding value, and the Endpoint Behavior field includes a second padding value; the preset transmission protocol is ISIS intermediate system to intermediate system routing protocol, or OSPF open shortest path first protocol, or BGP LS border gateway protocol link state protocol.

[0065] Or, such as Figure 1 As shown, the memory 102 of the upper-level system, which serves as a computer-readable storage medium, may include a data transfer control program; and the processor 101 of the upper-level system can be used to call the data transfer control program stored in the memory 102 and perform the following operations:

[0066] Obtain the Service Level Agreement (SLA) for services, and obtain the Layer 2 member link adjacency segment identifiers in the Layer 3 binding interfaces of each network element based on the BGP LS protocol.

[0067] Based on the service SLA and the Layer 2 member link adjacency segment identifier, the network path corresponding to the data packet of the service is programmed so that the network forwards the data packet corresponding to the service based on the programming result.

[0068] Based on the hardware architecture of the aforementioned network elements, an embodiment of the data transmission control method of the present invention is proposed.

[0069] Reference Figure 2 , Figure 2 This is a first embodiment of the data transmission control method of the present invention, the data transmission control method comprising the following steps:

[0070] Step S10: When a data packet is received, obtain the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet.

[0071] Specifically, in the SRv6 scenario, there are no regulations on how to declare the Layer 2 member link adjacency segment identifier attribute information in the Layer 3 bundled interface between network elements. Therefore, before executing step S10, it is necessary to declare the Layer 2 member link adjacency segment identifier in the Layer 3 bundled interface in the SRv6 scenario.

[0072] After a network element announces the adjacency segment identifier of a Layer 2 member link in a Layer 3 bundled interface under SRv6 scenarios, upon receiving a data packet, the network element obtains the corresponding Layer 2 member link adjacency segment identifier, End.L2X, based on the segment routing of the IPv6 forwarding plane. The End.L2X identifier represents the adjacency relationship between the network element and adjacent network elements in the Layer 2 member links of the Layer 3 bundled interface. End.L2X is used for traffic scheduling on the Layer 2 member links in the Layer 3 bundled interface. When the Layer 2 member links in the Layer 3 bundled interface are not entirely identical in terms of latency, jitter, packet loss, and reliability, and different types of traffic have different network quality requirements, traffic is scheduled to the member link that meets the requirements based on the actual quality of each member link, rather than selecting a Layer 2 member link for packet forwarding based on the hash algorithm result of the network element on the Layer 3 bundled interface.

[0073] Step S20: Determine the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier.

[0074] Specifically, the first forwarding path corresponding to the data packet is determined based on the Layer 2 member link adjacency segment identifier End.L2X. The first forwarding path is the Layer 2 member link of the Layer 3 bonding interface between the network element and the adjacent network element. After determining the first forwarding path, when there is no fault in the first forwarding path, the network element sends the data packet to the adjacent network element according to the first forwarding path. For example, the relationship between the network element and the adjacent network element is as follows: Figure 3 As shown, network element a and network element b are adjacent network elements, and network element b and network element c are adjacent network elements. The transmission protocol between network elements is ISIS (Intermediate System-to-Intermediate System) routing protocol or OSPF (Open Shortest Path First) protocol.

[0075] Step S30: When the first forwarding path is faulty, determine the processing method corresponding to the Layer 2 member link adjacency segment identifier, and process the data packet according to the processing method.

[0076] Specifically, when the first forwarding path is faulty, if the Layer 2 member link adjacency segment identifier is the first value, the network element determines a fault-free forwarding path to be determined. Based on a hash algorithm, a second forwarding path is determined from this path. The network element forwards the data packet to the adjacent network element through the second forwarding path, which can reduce packet loss and is suitable for data packets with low requirements for latency, path, and other SLAs. If the Layer 2 member link adjacency segment identifier is the second value, the data packet is discarded, potentially resulting in significant packet loss before the new path takes effect.

[0077] In this embodiment, upon receiving a data packet, the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet is obtained. The first forwarding path corresponding to the data packet is determined based on the Layer 2 member link adjacency segment identifier. When the first forwarding path fails, the processing method corresponding to the Layer 2 member link adjacency segment identifier is determined, and the data packet is processed according to the processing method. By determining the first forwarding path through the Layer 2 member link adjacency segment identifier, the forwarding path of the data packet can be determined according to different needs. Furthermore, when the first forwarding path fails, the different processing methods for the data packet by the network element are determined based on the Layer 2 member link adjacency segment identifier, making the forwarding processing of the data packet more aligned with business requirements and improving the flexibility of data packet transmission and processing.

[0078] Reference Figure 4 , Figure 4 This is a second embodiment of the data transmission control method of the present invention. Based on the first embodiment, the data transmission control method further includes the following steps:

[0079] Step S40: Declare the adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface, including the adjacency segment identifier of the Layer 2 member link with the values ​​filled with the first value and the second value, so that when the network element receives a data packet, it can determine the processing method of the data packet according to the declared content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet.

[0080] Specifically, in the SRv6 scenario, there is no specification on how to declare the adjacency segment identifier attribute information of the Layer 2 member links in the Layer 3 bundled interface between network elements. Therefore, before the network element forwards the data packet, it is necessary to declare the adjacency segment identifier of the Layer 2 member links in the Layer 3 bundled interface under the SRv6 scenario. The network element declares the adjacency segment identifier of the Layer 2 member links in the Layer 3 bundled interface, which includes the adjacency segment identifier of the Layer 2 member links with padding values ​​of a first value and a second value, so that when the network element receives the data packet, it can determine the data packet processing method according to the declared content and the corresponding Layer 2 member link adjacency segment identifier of the data packet. However, RFC8986 does not specify a method for declaring the adjacency segment identifier of the Layer 2 member links in the Layer 3 bundled interface; therefore, a new Layer 2 member link adjacency segment identifier is defined in RFC8986 for declaring the Layer 2 member links in the Layer 3 bundled interface.

[0081] Based on the sub-TLV of the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol, the Layer 2 member link adjacency segment identifier in the Layer 3 binding interface is announced; wherein, the sub-TLV includes at least a SID field, a Flag field and an Endpoint Behavior field; the SID field of the sub-TLV includes the Layer 2 member link adjacency segment identifier, the target flag bit in the Flag field includes a first padding value, and the Endpoint Behavior field includes a second padding value.

[0082] The default transport protocol can be ISIS, OSPF, or BGP LS (Border Gateway Protocol Link State). Each transport protocol includes multiple TLVs, where each TLV typically includes three fields: Tag (type of data to be encapsulated), Length (total length of encapsulated data), and Value (value of the data to be encapsulated). Each TLV includes two sub-TLVs for identifying the adjacent segments of Layer 2 member links based on segment routing in the IPv6 forwarding plane. For example, when the transport protocol is ISIS, two sub-TLVs are defined for TLVs 22, 23, 25, 141, 222, and 223 in the ISIS protocol. Similarly, sub-TLVs are obtained by extending the TLVs of OSPF and BGP LS protocols. Optionally, the network element assigns two End.L2X SIDs to each Layer 2 member link in the Layer 3 bundled interface, one with H bit set to 0 and the other with H bit set to 1. When a network element declares the End.L2X SID of a Layer 2 member link in a Layer 3 bundled interface through the ISIS L2 Bundle MemberAttributes TLV (a TLV of type 25), it encapsulates the End.L2X SID with H bits set to 0 and H bits set to 1 into the SRv6 End.L2X SID sub-TLV by carrying two L2Bundle Attribute Descriptors.

[0083] In IPv6 forwarding plane segment routing, the adjacency segment identifier for Layer 2 member links is End.L2X. End.L2X represents the adjacency relationship between Layer 2 member links in the Layer 3 bonding interface between a network element and its neighboring network elements. End.L2X is used for traffic scheduling on Layer 2 member links in the Layer 3 bonding interface. When Layer 2 member links in the Layer 3 bonding interface are not entirely identical in terms of latency, jitter, packet loss, and reliability, and different types of traffic have different network quality requirements, traffic is scheduled to the member link that meets the requirements based on the actual quality of each member link, rather than selecting a Layer 2 member link for packet forwarding based on the hash algorithm result of the network element on the Layer 3 bonding interface.

[0084] The sub-TLV format for Layer 2 member link adjacency segment identifiers in segment routing based on the IPv6 forwarding plane includes at least the SID field, Flag field, and Endpoint Behavior field. For example, the sub-TLV format can be the format corresponding to SRv6 End.L2XSID sub-TLV or SRv6 LAN End.L2X SID sub-TLV. Wherein, such as... Figure 5 As shown, the SRv6 End.L2X SID sub-TLV includes fields such as Type, Length, Flags, Endpoint Behavior, and SID. The target flag in the Flags field can be an H bit. The SRv6 LAN End.L2X SID sub-TLV is suitable for LAN (Local Area Network) adjacency scenarios, such as... Figure 6 As shown, the SRv6 LAN End.L2X SIDsub-TLV includes fields such as Type, Length, Neighbor System-ID, Flags, EndpointBehavior, and SID. The target flag in the Flags field can be an H bit.

[0085] The sub-TLV of the Layer 2 member link adjacency segment identifier based on the segment routing of the IPv6 forwarding plane can be an SRv6 End.L2X SID sub-TLV or an SRv6 LAN End.L2X SID sub-TLV. For example, ... Figure 5As shown, the specific value of the Type field in the SRv6 End.L2X SID sub-TLV is assigned by the international standardization organization to indicate that this is an SRv6 End.L2X SID sub-TLV. The Flags field includes 8 bits, consistent with the Flags field in the SRv6 End.X SID sub-TLV of the draft-ietf-lsr-isis-srv6-extensions of the SRv6 basic protocol, but the B bit is not used and is reserved instead, and an H bit is added as a flag bit. The H bit includes the first padding value, and the processing method corresponding to the first padding value is predefined. The Endpoint Behavior field includes the second padding value, and the forwarding method corresponding to the second padding value is predefined. The definitions of other fields are the same as the definitions of the corresponding fields in the SRv6 LAN End.X SID sub-TLV of the draft-ietf-lsr-isis-srv6-extensions of the SRv6 basic protocol.

[0086] SRv6 LAN End.L2X SID sub-TLV is applicable to LAN (Local Area Network) adjacency scenarios, for example, such as Figure 6 As shown, the specific value of the Type field in the SRv6 LAN End.L2X SID sub-TLV is assigned by the international standardization organization to indicate that this is an SRv6 LAN End.L2X SID sub-TLV; the definition of the Flags field is the same as that in the SRv6 End.L2X SID sub-TLV, and the H bit includes the first padding value, the processing method corresponding to the first padding value is predefined; the Endpoint Behavior field includes the second padding value, the forwarding method corresponding to the second padding value is predefined; the definitions of other fields are the same as the definitions of the corresponding fields of the SRv6 LAN End.X SID sub-TLV in draft-ietf-lsr-isis-srv6-extensions in the SRv6 basic protocol.

[0087] The first padding value of the target flag bit in the Flags field of the SRv6 End.L2X SID sub-TLV or SRv6 LAN End.L2X SID sub-TLV, where the target flag bit can be the H bit of the Flags field, such as... Figure 7As shown, the Flags field includes 8 bits, consistent with the Flags field in the SRv6End.X SID sub-TLV of the draft-ietf-lsr-isis-srv6-extensions in the SRv6 basic protocol. However, the B bit is no longer used and is reserved, and an H bit is added to indicate the two handling methods corresponding to the failure of the first forwarding path. The first padding value can be 0 or 1. When the first padding value is 1, when the network element forwards the data packet through the first forwarding path, it needs to determine a Layer 2 member link without failure. Based on the hash algorithm, a second forwarding path is determined among the Layer 2 member links, and the data packet is forwarded to the adjacent network element through the second forwarding path. This reduces packet loss and is suitable for data packets with low requirements for latency, path, and other SLAs. When the first padding value is 0, when the first forwarding path of the network element fails, the network element needs to discard the data packet, which may result in a large amount of packet loss before the new path takes effect.

[0088] The second padding value in the endpointbehavior field of the sub-TLV of the Layer 2 member link adjacency segment identifier for segment routing based on the IPv6 forwarding plane determines the forwarding mode corresponding to the first forwarding path. End.L2X is a Layer 2 link adjacency segment identifier defined in RFC8986 as an extension. End.L2X can be used in combination with USD (Ultimate Segment Decapsulation), PSP (Penultimate Segment Pop of the SRH), and USP (Ultimate Segment Pop of the SRH) defined in RFC8986. The forwarding modes corresponding to different second padding values ​​in the EndpointBehavior field are shown in the table below:

[0089] endpoint behavior second padding value End.L2X value 1 End.L2X with USD value 2 End.L2X with PSP value 3 End.L2X with USP value 4 End.L2X with PSP&USP value 5 End.L2X with PSP&USD value 6 End.L2X with USP&USD value 7 End.L2X with PSP, USP&USD value 8

[0090] In this embodiment, the adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface is announced. This includes the adjacency segment identifier of the Layer 2 member link with values ​​filled with the first and second values. This allows the network element to determine the processing method for a received data packet based on the announced content and the corresponding Layer 2 member link adjacency segment identifier. By announcing the newly defined Layer 2 member link adjacency segment identifier, the network element can determine the processing method for the received data packet based on the corresponding Layer 2 member link adjacency segment identifier. This makes the forwarding and processing of data packets more aligned with service requirements, improving the flexibility of data packet transmission and processing.

[0091] Reference Figure 8 , Figure 8 This is a third embodiment of the data transmission control method of the present invention, which further includes the following steps:

[0092] Step S50: Obtain the Service Level Agreement (SLA) and the Layer 2 member link adjacency segment identifier in the Layer 3 binding interface of each network element based on the BGP LS protocol.

[0093] Step S60: Based on the service SLA and the Layer 2 member link adjacency segment identifier, program the network path corresponding to the data packet corresponding to the service, so that the network forwards the data packet corresponding to the service based on the programming result.

[0094] Specifically, the relationship between network elements and upper-layer systems is as follows: Figure 3 As shown, network elements a, b, and c communicate with upper-layer system A via BGP-LS. Upper-layer system A can be a network management system or controller. The topology information collected by the IGP (Interior Gateway Protocol) protocol is aggregated via the BGP-LS protocol and sent to upper-layer system A. Upper-layer system A then collects the End.L2X SIDs of Layer 2 member links in the Layer 3 bundled interface from the network elements via the extended BGP-LS protocol. This includes End.L2X SIDs with H bits set to 0 and H bits set to 1.

[0095] The system obtains the Service-Level Agreement (SLA) and the Layer 2 member link adjacency segment identifiers from the Layer 3 binding interfaces of each network element based on the BGP LS protocol. When the upper-layer system A programs the network path according to the service SLA, it selects the End.L2X SID with H bit set to 0 or H bit set to 1 as needed to program the network path corresponding to the data packet, so that the network forwards the data packet based on the programming result.

[0096] For scenarios where there are Layer 3 bonded interfaces between eBGP (External Border Gateway Protocol) network elements, a similar approach can be used to extend BGP EPE (Border Gateway Protocol Egress Peer Enginnering). The extended BGP LS protocol then announces the End.L2X SID of the Layer 2 member links in the Layer 3 bonded interfaces between eBGP network elements to the upper-layer system A. The upper-layer system A, based on the service SLA requirements, uses the obtained End.L2X SIDs between eBGP network elements to perform cross-domain end-to-end network programming, scheduling data packets to the corresponding Layer 2 member links in the Layer 3 bonded interfaces between eBGP network elements that meet the requirements.

[0097] In this embodiment, the Service Level Agreement (SLA) is obtained, and the Layer 2 Member Link Adjacency Segment (LLS) identifiers from the Layer 3 binding interfaces of each network element are obtained based on the BGP LS protocol. Based on the service SLA and the LLS identifiers, the network paths corresponding to the data packets for the service are programmed, enabling the network to forward the service-related data packets based on the programming results. The upper-layer system collects LLS identifiers through the BGP LS protocol and programs the network paths corresponding to the data packets according to the service SLA and LLS identifiers, allowing network elements to process the data packets accordingly. This makes the forwarding and processing of data packets more aligned with service requirements, improving the flexibility of data packet transmission and processing.

[0098] Reference Figure 9 The present invention also provides a data transmission control device, the data transmission control device comprising:

[0099] The acquisition module 100 is used to acquire the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet when the data packet is received.

[0100] The determining module 200 is used to determine the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier;

[0101] The control module 300 is used to determine the processing method corresponding to the Layer 2 member link adjacency segment identifier when the first forwarding path has a fault, and to process the data packet according to the processing method.

[0102] In one embodiment, the control module 300 is specifically configured to: determine the processing method corresponding to the Layer 2 member link adjacency segment identifier and process the data packet according to the processing method;

[0103] When the Layer 2 member link adjacency segment identifier is the first value, it is determined that there is no fault in the undetermined forwarding path;

[0104] A second forwarding path is determined from the undetermined forwarding path according to the hash algorithm, and the data packet is forwarded to the adjacent network element of the network element through the second forwarding path;

[0105] When the Layer 2 member link adjacency segment identifier is the second value, the data packet is discarded.

[0106] In one embodiment, after determining the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier, the determining module 200 is specifically used for:

[0107] When the first forwarding path is not faulty, the data packet is sent to the adjacent network element of the network element according to the first forwarding path.

[0108] In one embodiment, the data transmission control device further includes:

[0109] The announcement module 400 is used to announce the adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface, wherein the adjacency segment identifier of the Layer 2 member link includes the value of the first value and the second value, so that when the network element receives the data packet, it can determine the processing method of the data packet according to the announcement content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet.

[0110] In one embodiment, regarding the declaration of the Layer 2 member link adjacency segment identifier in the Layer 3 binding port, the declaration module 400 is specifically used for:

[0111] The Layer 2 Member Link Adjacent Segment Identifier in the Layer 3 Bundling Interface is announced according to the sub-TLV of the Layer 2 Member Link Adjacent Segment Identifier of the segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol.

[0112] The sub-TLV includes at least a SID field, a Flag field, and an Endpoint Behavior field; the SID field of the sub-TLV includes a Layer 2 member link adjacency segment identifier, the target flag bit in the Flag field includes a first padding value, and the Endpoint Behavior field includes a second padding value; the preset transmission protocol is ISIS intermediate system to intermediate system routing protocol, or OSPF open shortest path first protocol, or BGP LS border gateway protocol link state protocol.

[0113] The present invention also provides a network element, the network element including a memory, a processor, and a data transmission control program stored in the memory and executable on the processor. When the data transmission control program is executed by the processor, it implements the various steps of the data transmission control method as described in the above embodiments.

[0114] Reference Figure 10 The present invention also provides a data transmission control device, the device comprising:

[0115] The acquisition module 500 is used to acquire the Service Level Agreement (SLA) of services and to acquire the Layer 2 member link adjacency segment identifiers in the Layer 3 binding interfaces of each network element based on the BGP LS protocol.

[0116] The determination module 600 is used to program the network path corresponding to the data packet of the service based on the service SLA and the Layer 2 member link adjacency segment identifier, so that the network forwards the data packet corresponding to the service based on the programming result.

[0117] The present invention also provides an upper-level system, the upper-level system including a memory, a processor, and a data transmission control program stored in the memory and executable on the processor, wherein when the data transmission control program is executed by the processor, it implements the various steps of the data transmission control method as described in the above embodiments.

[0118] The present invention also provides a computer-readable storage medium storing a data transmission control program, which, when executed by a processor, implements the various steps of the data transmission control method described in the above embodiments.

[0119] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0120] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, system, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, system, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, system, article, or apparatus that includes that element.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that the systems described in the embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, parking management device, air conditioner, or network device, etc.) to execute the systems described in the various embodiments of the present invention.

[0122] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A data transmission control method, characterized in that, Applied to network elements, the data transmission control method includes: The adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface is announced, including the adjacency segment identifier of the Layer 2 member link with a fill value of a first value and a second value, so that when the network element receives a data packet, it can determine the processing method of the data packet according to the announced content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet. Upon receiving a data packet, obtain the Layer 2 member link adjacency segment identifier of the segment route based on the IPv6 forwarding plane corresponding to the data packet; The first forwarding path corresponding to the data packet is determined based on the Layer 2 member link adjacency segment identifier; When the first forwarding path is faulty, and the Layer 2 member link adjacency segment identifier is a first value, a forwarding path to be determined that is not faulty is identified. A second forwarding path is determined from the undetermined forwarding path according to the hash algorithm, and the data packet is forwarded to the adjacent network element of the network element through the second forwarding path; When the Layer 2 member link adjacency segment identifier is the second value, the data packet is discarded.

2. The data transmission control method as described in claim 1, characterized in that, After the step of determining the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier, the method further includes: When the first forwarding path is not faulty, the data packet is sent to the adjacent network element of the network element according to the first forwarding path.

3. The data transmission control method as described in claim 1, characterized in that, The step of declaring the Layer 2 member link adjacency segment identifier in the Layer 3 binding port includes: The Layer 2 Member Link Adjacent Segment Identifier in the Layer 3 Bundling Interface is announced according to the sub-TLV of the Layer 2 Member Link Adjacent Segment Identifier of the segment route based on the IPv6 forwarding plane corresponding to the preset transmission protocol. The sub-TLV includes at least a SID field, a Flag field, and an Endpoint Behavior field; the SID field of the sub-TLV includes a Layer 2 member link adjacency segment identifier, the target flag bit in the Flag field includes a first padding value, and the Endpoint Behavior field includes a second padding value; the preset transmission protocol is ISIS intermediate system to intermediate system routing protocol, or OSPF open shortest path first protocol, or BGP LS border gateway protocol link state protocol.

4. The data transmission control method as described in claim 1, characterized in that, The Layer 2 member link adjacency segment identifier is a newly defined adjacency segment identifier after updating and extending RFC8986, used to announce the Layer 2 member link in the Layer 3 binding interface.

5. A data transmission control method, characterized in that, Applied to upper-layer systems, the method includes: The network element obtains the Service Level Agreement (SLA) and the Layer 2 Member Link Adjacency Segment Identifier in the Layer 3 Bundling Interface of each network element based on the BGP LS protocol. The network element then executes the data transmission control method as described in claim 1. Based on the service SLA and the Layer 2 member link adjacency segment identifier, the network path corresponding to the data packet of the service is programmed so that the network forwards the data packet corresponding to the service based on the programming result.

6. A data transmission control device, characterized in that, The data transmission control device includes: The acquisition module is used to announce the adjacency segment identifier of the Layer 2 member link in the Layer 3 binding interface, which includes the adjacency segment identifier of the Layer 2 member link with padding values ​​of a first value and a second value, so that when the network element receives a data packet, it can determine the processing method of the data packet based on the announced content and the adjacency segment identifier of the Layer 2 member link corresponding to the data packet; when the data packet is received, the module acquires the adjacency segment identifier of the Layer 2 member link based on the segment route of the IPv6 forwarding plane corresponding to the data packet. The determination module is used to determine the first forwarding path corresponding to the data packet based on the Layer 2 member link adjacency segment identifier; The control module is configured to: when the first forwarding path is faulty, and when the Layer 2 member link adjacency segment identifier is a first value, determine a non-faulty forwarding path to be determined; determine a second forwarding path from the undetermined forwarding path according to a hash algorithm, and forward the data packet to the adjacent network element of the network element through the second forwarding path; and discard the data packet when the Layer 2 member link adjacency segment identifier is a second value.

7. A network element, characterized in that, The network element includes a memory, a processor, and a data transmission control program stored in the memory and executable on the processor. When the data transmission control program is executed by the processor, it implements the various steps of the data transmission control method as described in any one of claims 1-4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a data transmission control program, which, when executed by a processor, implements the steps of the data transmission control method as described in any one of claims 1-4 or 5.