A method, device, medium and equipment for forwarding a data packet in an SRv6 network
By acquiring and mapping the transmission requirement information of data packets to the network identifier in the SRv6 network, the problem of network devices being unable to perceive data elements is solved, thus achieving the security and effectiveness of data transmission.
Patent Information
- Application Number
- CN202510872102.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-06-26
AI Technical Summary
Existing technologies cannot perceive the data elements in data packets at the network device level, resulting in unmet transmission needs and affecting data security and effectiveness.
By obtaining the data identifier information of data packets at the device node side, parsing the transmission requirement information, mapping it to the network identifier, and encapsulating it into the data packet header for forwarding, the network device can ensure that it can perceive and meet the transmission requirements of data elements.
It enables accurate forwarding of data packets, improves the security and effectiveness of data transmission, and ensures that the transmission requirements of sensitive data are met.
Smart Images

Figure CN120455360B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission technology, and in particular to a method, apparatus, medium and device for forwarding data packets in an SRv6 network. Background Technology
[0002] Currently, with the rapid development of technology, data transmission scenarios are increasing across various industries. When massive amounts of data resources are transmitted via networks, existing technologies cannot perceive the data elements contained in the transmitted messages at the network device level, nor can they perceive the requirements these data elements place on the network. For example, highly sensitive data elements may have requirements such as visibility of the data transmission process and ensuring that the data transmission path does not cross borders. However, because current networks cannot perceive these data elements, they cannot know the corresponding transmission requirements. Therefore, during data transmission, situations may arise where the transmission requirements of the messages cannot be met, resulting in a significant impact on data security and validity. Therefore, how to solve the problem of unmet transmission requirements due to the network's inability to perceive data elements is a technical issue of great concern to those skilled in the art. Summary of the Invention
[0003] This application proposes a method, apparatus, medium, and device for forwarding data packets in an SRv6 network to address the problem of unmet transmission requirements caused by the network layer's inability to perceive data elements. The technical solution provided by this application obtains the data identifier information of the data packet at the device node side, parses it to obtain the transmission requirement information of the data element, maps the transmission requirement information to a network identifier, encapsulates it into the header of the data packet, and continues forwarding. This enables the device node to know the transmission requirement of the data element and forward it accordingly. Subsequent nodes can also parse the transmission requirement from the header content of the data packet, thereby ensuring that the data packet forwarding link conforms to the transmission requirements. The network layer perceives the transmission requirement of the data element, ensuring the security and effectiveness of data transmission.
[0004] This application provides a method for forwarding data packets in an SRv6 network, the method comprising:
[0005] After receiving a data packet, obtain the data identifier information of the data packet;
[0006] The data identification information is parsed to obtain the transmission requirement information of the data elements;
[0007] The transmission requirement information is mapped to a network identifier and encapsulated in the header of the data packet;
[0008] The data packets are forwarded according to the network identifier.
[0009] Furthermore, the transmission requirement information is mapped to a network identifier and encapsulated in the header of the data packet, including:
[0010] Create a network identifier flag in the header of the data packet;
[0011] After mapping the transmission requirement information to the network identifier, the network identifier is written into the corresponding flag bit;
[0012] The header of the data packet is encapsulated.
[0013] Furthermore, the flag bits corresponding to the network identifier include one or more of the following: path visibility flag bit, domestic transmission path flag bit, low latency slice flag bit, and high priority transmission path flag bit.
[0014] Furthermore, forwarding the data packet according to the network identifier includes:
[0015] Based on the network identifier, determine one of at least two candidate lower-level device nodes as the target device node;
[0016] The data packet is forwarded to the target device node.
[0017] Furthermore, after forwarding the data packet according to the network identifier, the method further includes:
[0018] After receiving the data packet, each device node in the SRv6 network identifies the network identifier encapsulated in the header of the data packet.
[0019] This application embodiment also provides a method for forwarding data packets in an SRv6 network, the method comprising:
[0020] After receiving a data packet, the network identifier encapsulated in the header of the data packet is read;
[0021] If the current device node is not the final device node, then one of the at least two candidate lower-level device nodes is determined as the target device node based on the network identifier;
[0022] The data packet is forwarded to the target device node.
[0023] This application embodiment also provides a data packet forwarding device in an SRv6 network, the device comprising:
[0024] The data identification information acquisition module is used to acquire the data identification information of the data packet after receiving the data packet;
[0025] The transmission requirement information parsing module is used to parse the data identification information to obtain the transmission requirement information of the data elements;
[0026] A network identifier encapsulation module is used to map the transmission requirement information to a network identifier and encapsulate it into the header of a data packet.
[0027] The delivery module is used to forward the data packets according to the network identifier.
[0028] This application embodiment also provides a data packet forwarding device in an SRv6 network, the device comprising:
[0029] The network identifier reading module is used to read the network identifier encapsulated in the header of the data packet after receiving the data packet;
[0030] The target device node determination module is used to determine one of at least two candidate lower-level device nodes as the target device node based on the network identifier if the current device node is not the final device node.
[0031] The data packet forwarding module is used to forward the data packet to the target device node.
[0032] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the data packet forwarding method in the SRv6 network as described above.
[0033] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the data packet forwarding method in the SRv6 network as described above.
[0034] The embodiments of this application adopt the following technical solution: after receiving a data packet, the data identification information of the data packet is obtained; the data identification information is parsed to obtain the transmission requirement information of the data elements; the transmission requirement information is mapped to the network identifier and encapsulated in the header of the data packet; the data packet is forwarded according to the network identifier.
[0035] The above-described technical solutions adopted in the embodiments of this application can achieve the following beneficial effects:
[0036] This solution obtains the data identifier information of data packets and parses it to obtain the transmission requirement information of data elements. After mapping it to a network identifier, it is encapsulated in the packet header, enabling network devices to perceive the transmission requirements corresponding to data elements. Thus, based on the network identifier, data packets can be accurately forwarded. This effectively solves the problem that traditional networks cannot perceive data elements, resulting in unmet transmission requirements. It improves the security and effectiveness of data transmission and ensures that sensitive data and other special data with special requirements can meet the requirements of visibility and path restriction during transmission. Attached Figure Description
[0037] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0038] Figure 1 This is a flowchart illustrating the data packet forwarding method in an SRv6 network provided in Embodiment 1 of this application;
[0039] Figure 2 This is a flowchart illustrating the data packet forwarding method in an SRv6 network provided in Embodiment 2 of this application;
[0040] Figure 3 A schematic diagram of a data packet forwarding system in an SRv6 network provided in Embodiment 3 of this application;
[0041] Figure 4 This is a schematic diagram of the structure of the data packet forwarding device in the SRv6 network provided in Embodiment 4 of this application;
[0042] Figure 5 This is a schematic diagram of the structure of the data packet forwarding device in the SRv6 network provided in Embodiment 5 of this application;
[0043] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 6 of this application. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0046] Example 1
[0047] Figure 1 This is a flowchart illustrating the data packet forwarding method in an SRv6 network provided in Embodiment 1 of this application. Figure 1 As shown, the method includes:
[0048] S11, after receiving the data packet, obtain the data identification information of the data packet;
[0049] SRv6 (Segment Routing over IPv6) is a segmented routing technology based on IPv6. It achieves flexible traffic engineering and network programmability by embedding a segment list in the IPv6 header. Each segment is an IPv6 address representing a specific function point in the network, such as a node, service, or operation. SRv6 allows network devices to process and forward packets hop-by-hop according to the segment list in the header, without relying on traditional destination-based routing tables, thus supporting fine-grained flow control and service chain orchestration.
[0050] Data packets can include an IPv6 basic header, an SRH (Segment Routing Header) extension header, optional hop-by-hop options headers, and payload data. The payload data can conform to the format of specific protocols, such as TCP / UDP, HTTP / 2, and QUIC, or it can be a custom format.
[0051] Data identification information refers to the characteristic tags carried by the data itself, such as: data type identifiers, which may be medical data, financial data or general office data; security level markings, such as top secret, confidential or public; transmission constraints, such as domestic transmission and / or low latency priority; compliance requirements, such as compliance with the Personal Information Protection Law and / or meeting industry regulatory standards, etc.
[0052] In this solution, network devices can receive message data through physical interfaces. For data packet acquisition, they can receive frames one by one and perform link layer frame detection, including identifying frame headers, frame trailers, and check bits.
[0053] S12, the data identification information is parsed to obtain the transmission requirement information of the data elements;
[0054] Data identification information refers to tags or metadata carried in the message that describe the characteristics of data elements. These include data type tags, such as those for medical data, financial transactions, and government information; security attribute tags, such as those indicating high sensitivity, cross-border restrictions, and the need for encrypted transmission; and compliance requirements, such as meeting domestic transmission regulations.
[0055] Data elements refer to data units with specific business value and attributes, and are the main carriers of data identification information. Examples include sensitive data such as personal identification information, medical records, or trade secrets; highly time-sensitive data such as real-time video streams and industrial control commands; and geographically constrained data such as user behavior data transmitted across borders.
[0056] Transmission requirement information refers to the specific requirements for network transmission paths and services parsed from data identification information. These include path constraints, such as requiring passage through domestic nodes or prohibiting passage through specific countries; security services, such as end-to-end encryption, intrusion detection, and data anonymization; and quality of service, such as latency less than 50ms, bandwidth greater than 100Mbps, and packet loss rate less than 0.1%.
[0057] This solution can extract data tags from the message header and convert the data identifiers into transmission requirements according to preset corresponding rules. For example, the presence of data identifier 0011 indicates that domestic transmission is required, and so on.
[0058] S13, map the transmission requirement information to the network identifier and encapsulate it into the header of the data packet;
[0059] Network identifier refers to the encoded representation of transmission requirements in an SRv6 network, which can generally be an IPv6 address or a special field.
[0060] The data packet header can refer to the SRv6 extension header, such as SRH (Segment Routing Header), which includes a list of segments and a pointer to the currently active segment; DOH (Destination Options Header), which carries hop-by-hop processing instructions; and HBH (Hop-by-Hop Options), which carries options visible to all nodes.
[0061] One encapsulation method is to encode the network identifier into an IPv6 address range and insert it into the SRH segment list.
[0062] In this scheme, transmission requirement information can be mapped to network identifiers. Specific network identifiers are used to represent requirements; for example, multiple bits can be set, each filled with either 0 or 1 to represent different requirements. For instance, when domestic transmission is required, the bit for domestic transmission is set to 1; otherwise, it is set to 0. This achieves the mapping of transmission requirement information to network identifiers. In subsequent device nodes, as long as the written value of each bit is identified, the transmission requirement information of the packet data can be parsed, enabling fast and compliant forwarding.
[0063] S14, forward the data packet according to the network identifier.
[0064] Network devices can forward data packets from the current device node to the next device node based on the packet header information. Specifically, they can find the next device node that meets the requirements based on the IPv6 destination address.
[0065] The technical solution provided in this embodiment solves the problem of ineffective forwarding in traditional networks by deeply integrating data characteristics with network transmission capabilities. This enables network devices to understand the inherent needs of packet data, achieve intelligent forwarding, and control transmission requirements according to different data transmission services, providing high flexibility at the control level. This solution dynamically allocates network resources based on real-time needs, improving the rationality of data transmission, ensuring the security and effectiveness of data transmission, and avoiding data unavailability due to transmission path issues.
[0066] In one embodiment, optionally, the transmission requirement information is mapped to a network identifier and encapsulated in the header of a data packet, including:
[0067] Create a network identifier flag in the header of the data packet;
[0068] After mapping the transmission requirement information to the network identifier, the network identifier is written into the corresponding flag bit;
[0069] The header of the data packet is encapsulated.
[0070] The network identifier flag bit refers to a specific field or encoding space in the data packet header used to carry the network identifier. It is the physical carrier of SRv6 network identification transmission requirements.
[0071] Transmission requirement information refers to specific requirements including path constraints, security services, and QoS (Quality of Service) parameters, which need to be converted into binary or text encoding that the network can recognize.
[0072] According to the SRv6 protocol specification, this scheme can determine one or more fields as flag bits in the reserved extended space in the message header. For example, each 2 bytes can be used as a flag bit. If there are four data transmission requirements that need to be limited, a total of 8 bytes can be provided, and each 2 bytes can be used as a flag bit corresponding to a transmission requirement.
[0073] In this scheme, the encoded network identifier can be written into the packet header according to the address of the flag bit or the field offset. For example, the header field can be directly modified using a network programming interface. Then, the data packet header is encapsulated, specifically by assembling the basic header, SRH, and other extension headers according to the IPv6 protocol specification, ensuring the correct order of fields during the encapsulation process.
[0074] This technical solution provides a carrier for the transmission requirements of data elements by mapping transmission requirement information to network identifiers and encapsulating them in the packet header. It uses the SRv6 extended header mechanism to create standardized flag bits, providing a physical carrier for requirement encoding. Through regular mapping, abstract requirements are converted into network-recognizable addresses or field values, enabling SRv6 device nodes to directly parse the requirements. The header encapsulation ensures that the packet is readable hop-by-hop in the network environment, allowing network devices to dynamically adjust forwarding strategies based on data attributes. This not only ensures the compliance and security of data transmission but also achieves link optimization.
[0075] In one embodiment, optionally, the flag bits corresponding to the network identifier include one or more of the following: path visibility flag bit, domestic transmission path flag bit, low latency slice flag bit, and high priority transmission path flag bit.
[0076] The path visibility flag indicates that the data transmission path must support full monitoring or auditing to ensure transparency of data flow.
[0077] The domestic transmission path flag is used to force data transmission paths not to cross national borders, ensuring that data does not leave the country.
[0078] The low-latency slice flag indicates that the network is requested to allocate a dedicated low-latency slice for the data to ensure real-time requirements.
[0079] The high-priority transmission path flag is used to allocate high-priority resources in the network to data, giving it priority over ordinary traffic.
[0080] This technical solution, through the refined design of the aforementioned flag bits, enables the network to accurately perceive the data element transmission requirements. Based on the flag bit design of the standard IPv6 extension header, it can achieve network-level perception without large-scale modification of existing network equipment. Furthermore, since the flag bit corresponding to the network identifier is set in the header, the security of data information is ensured.
[0081] In one embodiment, optionally, forwarding the data packet based on the network identifier includes:
[0082] Based on the network identifier, determine one of at least two candidate lower-level device nodes as the target device node;
[0083] The data packet is forwarded to the target device node.
[0084] Candidate downstream device nodes refer to a group of potential forwarding nodes in the network that are downstream of the current node and can receive and process data packets.
[0085] The target device node refers to the node selected from the candidate nodes that best matches the transmission requirements expressed by the network identifier of the data packet.
[0086] The current node reads the network identifier in the packet header, identifies the transmission requirements, and can determine priorities based on the functional matching degree, path compliance, and real-time status of the new transmission requirements. The real-time status includes the node's load, congestion level, and link quality.
[0087] This technical solution uses network identifiers for dynamic path selection, providing secure paths for sensitive data and automatically selecting low-latency links for real-time services. Furthermore, this solution requires no modification to the underlying network architecture and can be implemented using SRv6 extension headers, providing network infrastructure support for the secure and efficient flow of data elements.
[0088] In one embodiment, optionally, after forwarding the data packet according to the network identifier, the method further includes:
[0089] After receiving the data packet, each device node in the SRv6 network identifies the network identifier encapsulated in the header of the data packet.
[0090] SRv6 network device nodes can include routers, switches, or dedicated function nodes such as firewalls and encryption devices.
[0091] This technical solution ensures that data packets are correctly understood and processed throughout the SRv6 network by unifying the identification and processing capabilities of network identifiers across nodes, avoiding deviations in requirement execution caused by inconsistent node behavior. It enables nodes to automatically execute predefined operations based on identifiers, and in special circumstances, can detect and report unprocessable requirements in real time, ensuring that all nodes strictly adhere to geographical constraints, security policies, and other requirements to meet data transmission requirements.
[0092] Example 2
[0093] Figure 2 This is a flowchart illustrating the data packet forwarding method in an SRv6 network provided in Embodiment 2 of this application. Figure 2 As shown, the method includes:
[0094] S21, After receiving the data packet, read the network identifier encapsulated in the header of the data packet;
[0095] S22, if the current device node is not the final device node, then determine one of the at least two candidate lower-level device nodes as the target device node based on the network identifier;
[0096] S23, forward the data packet to the target device node.
[0097] The technical solution provided in this embodiment can be a specific operation performed in the downstream device node of the above embodiment. It corresponds to the operation of the device node provided in the above embodiment and has a threshold-related functional module and beneficial effects. To avoid repetition, it will not be described again here.
[0098] Example 3
[0099] To enable those skilled in the art to better understand this solution, this application also provides a preferred embodiment. Figure 3 This is a schematic diagram of a data packet forwarding system in an SRv6 network provided in Embodiment 3 of this application; as shown Figure 3 As shown, this system can perform the following steps to complete the monitoring of data flow operations:
[0100] When a network device receives a message containing data elements, it checks the data identification information it carries.
[0101] By reading the data identification information, which contains the network requirements of data elements during transmission, we can obtain the network transmission requirements of data elements, such as path visibility, domestic transmission path, low-latency slicing, and high-priority transmission path.
[0102] The read demand information is then mapped to the flag bit corresponding to the network identifier, and the network identifier is encapsulated in the header of the message. Since it is subsequently transmitted in the SRv6 network, the network identifier can be encapsulated in the headers of SRH, DOH, HBH, etc., and forwarded to the subsequent device nodes in the SRv6 network according to the rules, ensuring that the network identifier can be read by each device node in the SRv6 network, thereby solving the problem that the network cannot perceive data elements.
[0103] This application provides a method and system for identifying data elements in a network, applicable to scenarios where data elements are transmitted in an SRv6 network. The method includes: mapping network identifiers to data identifiers and transmitting the network identifier in the header of an SRv6 network packet, enabling each node device in the network to perceive the network transmission needs of corresponding data elements through the network identifier. This method effectively solves the problem of the network being unable to perceive data elements.
[0104] Example 4
[0105] Figure 4 This is a schematic diagram of the structure of a data packet forwarding device in an SRv6 network provided in Embodiment 4 of this application. Figure 4 As shown, the device includes:
[0106] The data identification information acquisition module 41 is used to acquire the data identification information of the data packet after receiving the data packet;
[0107] The transmission requirement information parsing module 42 is used to parse the data identification information to obtain the transmission requirement information of the data elements;
[0108] The network identifier encapsulation module 43 is used to map the transmission requirement information to a network identifier and encapsulate it into the header of the data packet;
[0109] The delivery module 44 is used to forward the data packet according to the network identifier.
[0110] This device can execute the data packet forwarding method in the SRv6 network provided in Embodiment 1 above, and has corresponding functional units and beneficial effects. Further details are omitted here.
[0111] Example 5
[0112] Figure 5 This is a schematic diagram of the structure of a data packet forwarding device in an SRv6 network provided in Embodiment 5 of this application. Figure 5 As shown, the device includes:
[0113] The network identifier reading module 51 is used to read the network identifier encapsulated in the header of the data packet after receiving the data packet;
[0114] The target device node determination module 52 is used to determine one of at least two candidate lower-level device nodes as the target device node based on the network identifier if the current device node is not the final device node.
[0115] The data packet forwarding module 53 is used to forward the data packet to the target device node.
[0116] This device can execute the data packet forwarding method in the SRv6 network provided in Embodiment 2 above, and has corresponding functional units and beneficial effects. Further details are omitted here.
[0117] Example 6
[0118] Those skilled in the art will understand that embodiments of the present invention can provide methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] Therefore, this application also proposes a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the methods described in any embodiment of this application.
[0120] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0121] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0122] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0123] Furthermore, Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 6 of this application. Figure 6 As shown, this application also proposes an electronic device (or computing device) including a processor 11, a memory 12, and a computer program stored on the memory 12 and executable on the processor 11, wherein the processor 11 executes the computer program to implement the method described in any embodiment of this application.
[0124] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-persistent storage in computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media. Computer-readable media includes both permanent and non-persistent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information that can be accessed by the computing device. As defined in this article, computer-readable media do not include transient media, such as modulated data signals and carrier waves.
[0125] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, 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, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for forwarding data packets in an SRv6 network, characterized in that, The method is executed by the upstream device node, and the method includes: After receiving a data packet, obtain the data identifier information of the data packet; The data identification information is parsed to obtain the transmission requirement information of the data elements; The transmission requirement information is mapped to a network identifier and encapsulated in the header of the data packet; wherein the network identifier includes multiple bits, each bit being filled with 0 or 1 to represent different transmission requirement information; The data packet is forwarded according to the network identifier to the downstream device node, so that the downstream device node can determine one of at least two candidate lower-level device nodes as the target device node based on the network identifier in the header of the data packet.
2. The method according to claim 1, characterized in that, Mapping the transmission requirement information to a network identifier and encapsulating it in the header of a data packet includes: Create a network identifier flag in the header of the data packet; After mapping the transmission requirement information to the network identifier, the network identifier is written into the corresponding flag bit; The header of the data packet is encapsulated.
3. The method according to claim 2, characterized in that, The flag bits corresponding to the network identifier include one or more of the following: path visibility flag bit, domestic transmission path flag bit, low latency slice flag bit, and high priority transmission path flag bit.
4. The method according to claim 3, characterized in that, Forwarding the data packet according to the network identifier includes: Based on the network identifier, determine one of at least two candidate lower-level device nodes as the target device node; The data packet is forwarded to the target device node.
5. The method according to any one of claims 1-4, characterized in that, After forwarding the data packet according to the network identifier, the method further includes: After receiving the data packet, each device node in the SRv6 network identifies the network identifier encapsulated in the header of the data packet.
6. A method for forwarding data packets in an SRv6 network, characterized in that, The method is executed by a downstream device node, and the method includes: After receiving a data packet, the network identifier encapsulated in the header of the data packet is read; If the current device node is not the final device node, then one of the at least two candidate lower-level device nodes is determined as the target device node based on the network identifier; wherein, different transmission requirement information is determined by filling 0 or 1 in each bit of the network identifier, so as to determine one of the at least two candidate lower-level device nodes as the target device node based on the transmission requirement information. The data packet is forwarded to the target device node.
7. A data packet forwarding device in an SRv6 network, characterized in that, The device is configured at an upstream device node, and the device includes: The data identification information acquisition module is used to acquire the data identification information of the data packet after receiving the data packet; The transmission requirement information parsing module is used to parse the data identification information to obtain the transmission requirement information of the data elements; The network identifier encapsulation module is used to map the transmission requirement information to a network identifier and encapsulate it into the header of a data packet; wherein the network identifier includes multiple bits, each bit being filled with 0 or 1 to represent different transmission requirement information; The delivery module is used to forward the data packet according to the network identifier to the downstream device node, so that the downstream device node can determine one of at least two candidate lower-level device nodes as the target device node according to the network identifier in the header of the data packet.
8. A data packet forwarding device in an SRv6 network, characterized in that, The device is configured at a downstream device node, and the device includes: The network identifier reading module is used to read the network identifier encapsulated in the header of the data packet after receiving the data packet; The target device node determination module is used to determine one of the at least two candidate lower-level device nodes as the target device node based on the network identifier if the current device node is not the final device node; wherein, different transmission requirement information is determined by filling 0 or 1 in each bit of the network identifier, so as to determine one of the at least two candidate lower-level device nodes as the target device node based on the transmission requirement information. The data packet forwarding module is used to forward the data packet to the target device node.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-5 or claim 6.
10. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-5 or claim 6.
Citation Information
Patent Citations
Data transmission method and device, equipment and storage medium
CN116915358A