Data message transmission method and apparatus, and computer-readable storage medium
By sharing the mapping relationship between SID and identifier in the core network and introducing indication information, the problem of SRv6 packet header length is solved, enabling efficient data packet transmission and flexible forwarding, and improving network performance and transmission efficiency.
Patent Information
- Application Number
- PCT/CN2024/121363
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-21
- Filing Date
- 2024-09-26
- Publication Date
- 2025-11-27
AI Technical Summary
In existing SRv6 message transmission, the GTP-U protocol cannot achieve traffic engineering. The SRv6 message header is relatively long, and existing compression schemes have limited efficiency and significant limitations, failing to meet the high-efficiency communication needs between core network devices.
By sharing the mapping relationship between SID and identifier among core network devices, SID is compressed into identifier, and indication information is introduced into data packets, thereby realizing the compression and flexible forwarding of SRv6 packet headers.
It improves data packet transmission efficiency, simplifies network planning, ensures that the receiver correctly parses data packets, and selects an efficient forwarding method based on the instruction information, thereby improving network performance.
Smart Images

Figure CN2024121363_27112025_PF_FP_ABST
Abstract
Description
Method and device for transmitting data packet, and computer readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The present disclosure is based on and claims priority to the CN application No. 202410634753.1, filed on May 21, 2024, the disclosure of which is hereby incorporated by reference in its entirety into the present disclosure. TECHNICAL FIELD
[0003] The present disclosure relates to the field of data transmission, in particular to a SRv6 data packet transmission method and device in a core network and a computer readable storage medium. BACKGROUND
[0004] SRv6 (Segment Routing with IPv6) is a segment routing technology based on IPv6 (Internet Protocol version 6), which allows nodes in the network to use a part of the IPv6 address, i.e., a segment identifier (SID), to represent service functions or path forwarding on the path. SRv6 achieves path control and flexible service path definition by inserting a segment list (Segment List) containing a series of SIDs in the header of an IPv6 packet.
[0005] Currently, the data plane of the mobile core network, especially the 5G mobile core network, i.e., RAN (Radio Access Network) to UPF (User Plane Function), UPF to UPF, adopts GTP-U (General Packet Radio Service Tunneling Protocol-User Plane), which does not have functions such as traffic engineering, and thus cannot specify the forwarding path within the core network. 3GPP TR 29.892 once proposed to use the SRv6 protocol as the user plane protocol of the core network to replace the original GTP-U protocol, but the SRv6 packet header has the disadvantage of being too long.
[0006] In traditional SRv6 packet transmission, the commonly used SRv6 data packet header compression schemes include a G-SRv6 (Generalized Segment Identifier) scheme and a uSID (Micro Segment Identifier) scheme. However, these schemes cause network planning problems, have limited compression efficiency, and rely on a common prefix between SIDs for implementation, which cannot be used when there is no common prefix and has certain limitations.
[0007] SUMMARY
[0008] The present disclosure provides an SRv6 data packet transmission method and device in a core network and a computer readable storage medium.
[0009] According to an aspect of the present disclosure, an SRv6 data packet transmission method in a core network is provided, including: compressing each segment identifier (SID) in a packet header of a data packet to be forwarded into a corresponding marker according to a mapping relationship between the SIDs and the markers, to obtain a compressed packet header, wherein the length of the marker is less than the length of the SID, and the mapping relationship is shared between devices in the core network; encapsulating the compressed packet header into the data packet to be forwarded to obtain a compressed data packet, wherein the compressed data packet includes first indication information and second indication information, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker corresponds to a device in the core network; and sending the compressed data packet to a receiver.
[0010] In some embodiments, the marker satisfies at least one of the following: the marker includes a marker corresponding to a device in the core network pointed to by the SID; and the marker does not include a function part of the SID.
[0011] In some embodiments, the device in the core network pointed to by the SID corresponds to a routing address in the SID.
[0012] In some embodiments, the mapping relationship is included in a SID dictionary, and the SID dictionary is dynamically modified based on a routing address of a device in the core network.
[0013] In some embodiments, the compressed data packet includes a flag bit for indicating the first indication information and the second indication information.
[0014] In some embodiments, the compressed packet header includes a segment list indicating a path.
[0015] According to another aspect of the present disclosure, a method for SRv6 data packet transmission in a core network is provided. In some embodiments, the method comprises: receiving a compressed data packet, wherein the compressed data packet comprises a compressed packet header, first indication information, and second indication information, the compressed packet header is obtained according to a mapping relationship between a segment identifier (SID) and a label, the mapping relationship is shared between devices in the core network, the first indication information indicates whether the SID before compression includes a function part, and the second indication information indicates whether the label in the compressed packet header corresponds to a device in the core network; determining a forwarding mode according to the first indication information and the second indication information; and forwarding the compressed data packet according to the determined forwarding mode.
[0016] In some embodiments, the compressed packet header comprises a segment list indicating a path.
[0017] In some embodiments, the forwarding mode comprises: a first forwarding mode, wherein the compressed data packet is forwarded after the compressed packet header is decompressed according to the mapping relationship; or a second forwarding mode, wherein the compressed data packet is directly forwarded without decompressing the compressed packet header.
[0018] In some embodiments, determining the forwarding mode according to the first indication information and the second indication information comprises: in a case where the first indication information indicates that the SID before compression includes a function part, determining the forwarding mode as the first forwarding mode; in a case where the first indication information indicates that the SID before compression does not include a function part, and in response to the second indication information indicating that the label in the compressed packet header corresponds to a device in the core network, determining the forwarding mode as the second forwarding mode; and in a case where the first indication information indicates that the SID before compression does not include a function part, and in response to the second indication information indicating that the label in the compressed packet header does not correspond to a device in the core network, determining the forwarding mode as the first forwarding mode.
[0019] In some embodiments, forwarding the compressed data packet according to the determined forwarding mode comprises: in a case where the forwarding mode is determined as the first forwarding mode, decompressing the compressed packet header according to the mapping relationship to obtain a first packet header, the first packet header comprises a segment list composed of SIDs; performing the function part of the SIDs and updating the segment list to obtain a second packet header; compressing the SIDs into corresponding labels according to the mapping relationship shared between the devices in the core network to obtain a compressed second packet header; obtaining an updated compressed data packet according to the compressed second packet header; and forwarding the updated compressed data packet according to the updated segment list.
[0020] In some embodiments, according to the determined forwarding mode, the forwarding the compressed data packet comprises: in a case where it is determined that the second forwarding mode, updating a segment list composed of the markers included in the compressed packet header; and forwarding the compressed data packet according to the updated segment list.
[0021] In some embodiments, the marker satisfies at least one of the following: the marker includes a marker corresponding to a device in the core network pointed to by the SID; and the marker does not include a function part of the SID.
[0022] In some embodiments, before determining the forwarding mode according to the first indication information and the second indication information, it is determined whether the compressed data packet needs to be forwarded according to the compressed packet header.
[0023] According to still another aspect of the present disclosure, there is provided an SRv6 data packet transmission apparatus in a core network, comprising:
[0024] a compression module configured to compress each SID in a packet header of a data packet to be forwarded into a corresponding marker according to a mapping relationship between a segment identifier (SID) and the marker, to obtain a compressed packet header, wherein the length of the marker is less than the length of the SID, and the mapping relationship is shared between devices in the core network;
[0025] an encapsulation module configured to encapsulate the compressed packet header into the data packet to be forwarded, to obtain a compressed data packet, wherein the compressed data packet includes first indication information and second indication information, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker corresponds to a device in the core network;
[0026] a sending module configured to send the compressed data packet to a receiver.
[0027] According to still another aspect of the present disclosure, there is provided an SRv6 data packet transmission apparatus in a core network, comprising:
[0028] a receiving module configured to receive a compressed data packet, wherein the compressed data packet includes a compressed packet header, first indication information, and second indication information, the compressed packet header being obtained according to a mapping relationship between a segment identifier (SID) and a marker, the mapping relationship being shared between devices in the core network, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker in the compressed packet header corresponds to a device in the core network;
[0029] a determination module configured to determine a forwarding mode according to the first indication information and the second indication information;
[0030] a forwarding module, configured to forward the compressed data packet according to the determined forwarding mode.
[0031] According to still another aspect of the present disclosure, there is provided a SRv6 data packet transmission apparatus in a core network, comprising:
[0032] a memory; and
[0033] a processor coupled to the memory, configured to execute a SRv6 data packet transmission method according to the foregoing technical solutions based on instructions stored in the memory.
[0034] According to still another aspect of the present disclosure, there is provided a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and the instructions, when executed by a processor, implement a SRv6 data packet transmission method according to the foregoing technical solutions.
[0035] According to still another aspect of the present disclosure, there is provided a computer program product, wherein the computer program product stores computer instructions, and the instructions, when executed by a processor, implement a SRv6 data packet transmission method according to the foregoing technical solutions.
[0036] The SRv6 data packet transmission method of the present disclosure introduces a mapping relationship shared between devices in a core network, so that a sender of a packet in the core network can compress a long SID into a shorter marker, and on the premise that a receiver can correctly analyze the data packet, the SRv6 packet header is compressed, and the network performance is improved. Meanwhile, by introducing indication information in the data packet, the receiver of the data packet can select different forwarding modes according to the content of the indication information, and the transmission efficiency is further improved.
[0037] Other features of the present disclosure and its advantages will become apparent from the following detailed description of embodiments of the present disclosure with reference to the drawings. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the related art, the drawings needed to be used in the embodiments or the related art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0039] FIG. 1 shows a flowchart of a SRv6 data packet transmission method according to some embodiments of the present disclosure;
[0040] FIG. 2 shows a flowchart of a SRv6 data packet transmission method according to some other embodiments of the present disclosure;
[0041] FIG. 3 shows a flow chart for determining a forwarding mode in some embodiments of the present disclosure;
[0042] FIG. 4 shows a flow chart for forwarding a data packet according to a first forwarding mode in some embodiments of the present disclosure;
[0043] FIG. 5 shows a flow chart for forwarding a data packet according to a second forwarding mode in some embodiments of the present disclosure;
[0044] FIG. 6 shows a block diagram of an SRv6 data packet transmission apparatus in some embodiments of the present disclosure;
[0045] FIG. 7 shows a block diagram of an SRv6 data packet transmission apparatus in some other embodiments of the present disclosure;
[0046] FIG. 8 shows a block diagram of an SRv6 data packet transmission apparatus in some other embodiments of the present disclosure;
[0047] FIG. 9 is a block diagram showing a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative, but not as any limitation on the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present disclosure.
[0049] In conventional SRv6 packet transmission, the commonly used SRv6 data packet header compression scheme relies on some adjustments to the common structure between SIDs, such as compressing the common routing address of SIDs into other codes. These schemes increase the complexity of network planning and operation, have limited compression efficiency, and have certain limitations in applicable scenarios, especially in the communication between devices in the core network. In view of this, the embodiments of the present disclosure provide an SRv6 data packet transmission method in the core network, which can improve the efficiency of data packet transmission.
[0050] First, some embodiments of the SRv6 data packet transmission method of the present disclosure are described in conjunction with FIG. 1.
[0051] FIG. 1 shows a flowchart of an SRv6 data packet transmission method according to some embodiments of the present disclosure. As shown in FIG. 1, the SRv6 data packet transmission method comprises: step S11, compressing each SID in the packet header of a data packet to be forwarded into a corresponding marker according to a mapping relationship between the SID and the marker, to obtain a compressed packet header, wherein the length of the marker is less than the length of the SID, and the mapping relationship is shared between devices in a core network; step S12, encapsulating the compressed packet header into the data packet to be forwarded to obtain a compressed data packet, wherein the compressed data packet comprises first indication information and second indication information, the first indication information indicating whether the SID before compression comprises a function part, and the second indication information indicating whether the marker corresponds to a device in the core network; and step S13, sending the compressed data packet to a receiver.
[0052] In step S11, the mapping relationship between the SID and the marker can be created by allocating a shorter marker to each unique SID in the network. The marker can be, for example, an integer or a specific code. An example of the above mapping relationship is shown in the following table.
[0053] Table 1: Example of mapping relationship
[0054] In Table 1 (example of mapping relationship), the left column is an example SRv6 SID, and the right column is a corresponding identifier allocated to the example SRv6 SID. As can be seen, the data packet transmission method of the present disclosure can effectively compress a longer SID, thereby improving transmission efficiency.
[0055] As shown in the above example, the form of the marker compressed according to the mapping relationship is not limited. In particular, unlike the compression scheme commonly used in the related art, the marker does not need to maintain the format of the SID, for example, it does not need to include the function part in the SID, further improving the compression efficiency.
[0056] In some embodiments, the above marker comprises a marker corresponding to a device in the core network pointed to by the SID, so as to determine the destination address of the data packet according to the marker, thereby realizing direct forwarding of the data packet without decompression in subsequent forwarding process. The device in the core network pointed to by the SID refers to a device corresponding to a routing address included in the SID.
[0057] In some embodiments, the mapping relationship between the SID and the label can be stored in a codebook such as a SID dictionary, which can be stored in a user plane function (UPF) or other network element in the core network. When the SID dictionary is modified, the control plane of the core network can synchronize the modification to the UPF or to other network elements, which then respectively issue the modification to the corresponding UPF, thereby achieving dynamic modification of the SID dictionary in each device. Through dynamic modification of the SID dictionary, the corresponding relationship between the SID and the label can be changed in a timely manner, for example, when the routing address of the device changes, so that the label still includes the label corresponding to the device in the core network pointed to by the SID, or the short label occupied by the UPF after it leaves the network is released, ensuring transmission efficiency.
[0058] In step S12, after compressing the SID into the label according to the mapping relationship, the data packet to be forwarded is encapsulated using a compressed packet header, which describes the subsequent forwarding path of the data packet. The packet header can include a segment list for indicating the path, which is an ordered list composed of SIDs or labels, and the order of the list is the order in which the data packet needs to be forwarded. This forwarding method can effectively simplify the forwarding logic of the network, while also ensuring that the data packet is transmitted according to the predetermined path.
[0059] For example, an example packet header includes a segment list {3::3, 2::2}, indicating that the first target routing address is 3::3 and the second target routing address is 2::2, and the mapping relationship shared by the devices in the core network is, for example, {1::1=X, 2::2=Y, 3::3=Z}. According to the mapping relationship, the compressed packet header includes a segment list {Z, Y}, still retaining the information of the forwarding order, ensuring that the data packet is transmitted according to the predetermined path.
[0060] In some embodiments, the compressed data packet can also include a flag bit for indicating the first and second indication information, for representing whether the SID before compression includes a function part and whether the label corresponds to a device in the core network.
[0061] The SRv6 data packet transmission method described above compresses the long SID into a short label, achieving compression of the SRv6 packet header and improving the transmission performance of the network. At the same time, by introducing the indication information in the data packet, the subsequent process can select different forwarding methods according to the content of the indication information, further improving the transmission efficiency.
[0062] The above describes the SRv6 data packet transmission method on the sender side in some embodiments of the present disclosure based on FIG. 1. The SRv6 data packet transmission method on the receiver side in other embodiments of the present disclosure will be described below in conjunction with FIGS. 2-5.
[0063] As shown in FIG. 2, in some embodiments of the present disclosure, the SRv6 data packet transmission method comprises: S21, receiving a compressed data packet, wherein the compressed data packet comprises a compressed packet header, first indication information and second indication information, the compressed packet header is obtained according to a mapping relationship between a segment identifier (SID) and a marker, the mapping relationship is shared between devices in the core network, the first indication information indicates whether the SID before compression includes a function part, and the second indication information indicates whether the marker in the compressed packet header corresponds to a device in the core network; S22, determining a forwarding mode according to the first indication information and the second indication information; and S23, forwarding the compressed data packet according to the determined forwarding mode.
[0064] In step S21, a compressed data packet is received from a sender, the compressed data packet being compressed and transmitted by the sender according to the above process, wherein the compressed packet header of the data packet can include a segment list for indicating a path as described above.
[0065] In addition, similar to the foregoing technical solution, the marker included in the received compressed packet header can not need to maintain the format of the SID, for example, the function part in the SID does not need to be included, further improving the compression efficiency. The marker can also include a marker corresponding to a device in the core network pointed to by the SID, so as to determine the destination address of the data packet according to the marker, thereby realizing direct forwarding of the data packet without decompression in the subsequent forwarding process.
[0066] In step S22, according to some embodiments of the present disclosure, the forwarding mode of the data packet can include: a first forwarding mode, forwarding the compressed data packet after decompressing the compressed packet header according to the mapping relationship; or a second forwarding mode, directly forwarding the compressed data packet without decompressing the compressed packet header.
[0067] In the first forwarding mode in the above embodiments of the present disclosure, the original SID included in the packet header is restored by using the shared mapping relationship for decompression, which can instruct the data packet transmission node to perform operations included in the function part of the SID, and the amount of information is large.
[0068] The second forwarding mode can directly forward the data packet without decompression, further improving the transmission efficiency of the network. In addition, in the case where the marker includes a marker corresponding to a device in the core network pointed to by the SID, in other words, the marker in the compressed packet header corresponds to a device in the core network, the destination address of the data packet can be determined according to the marker, thereby realizing the second forwarding mode, i.e., direct forwarding of the compressed data packet.
[0069] Based on the above judgment basis, FIG. 3 shows a flowchart of determining the forwarding mode in some embodiments of the present disclosure, which further describes how to determine the forwarding mode.
[0070] As shown in FIG. 3, in some embodiments of the present disclosure, step S22 of the SRv6 data packet transmission method includes: S221, checking the first indication information, and determining the forwarding mode as the first forwarding mode in the case that the first indication information indicates that the pre-compression SID includes the function part; in the case that the first indication information indicates that the pre-compression SID does not include the function part, S222, checking the second indication information, and determining the forwarding mode as the second forwarding mode in response to the second indication information indicating that the marker in the compressed packet header corresponds to the device in the core network; and determining the forwarding mode as the first forwarding mode in response to the case that the second indication information indicates that the marker in the compressed packet header does not correspond to the device in the core network.
[0071] As described above, according to the first indication information, it is determined whether the receiver of the data packet needs to perform the operation included in the function part of the SID. In the case that the operation is needed, the forwarding mode is determined as the first forwarding mode with more information transmission. In the case that the operation is not needed, the next step of checking the second indication information is performed. In the case that the marker includes the marker corresponding to the device in the core network pointed by the SID, the direct forwarding of the compressed packet can be realized, and thus the forwarding mode is determined as the second forwarding mode with higher transmission efficiency. In the case that the marker does not correspond to the device, the forwarding mode is determined as the first forwarding mode to ensure the correctness of the transmission.
[0072] Returning to FIG. 2, the SRv6 data packet transmission method on the receiver side is further described.
[0073] In step S23, the packet is forwarded according to the determined forwarding mode. The step S23 is described in detail below in combination with FIGS. 4-5. Specifically, FIG. 4 shows a flowchart of forwarding the data packet according to the first forwarding mode in some embodiments of the present disclosure; and FIG. 5 shows a flowchart of forwarding the data packet according to the second forwarding mode in some embodiments of the present disclosure.
[0074] As shown in FIG. 4, in some embodiments of the present disclosure, in the case of determining the first forwarding mode, step S23 of the SRv6 data packet transmission method comprises: S2311, decompressing the compressed packet header according to the mapping relationship to obtain a first packet header, the first packet header comprising a segment list composed of SIDs; S2312, executing the function part of the SID and updating the segment list to obtain a second packet header; S2313, compressing the SID into a corresponding marker according to the mapping relationship shared between devices in the core network to obtain a compressed second packet header; S2314, obtaining an updated compressed data packet according to the compressed second packet header; and S2315, forwarding the updated compressed data packet according to the updated segment list.
[0075] In step S2311, the compressed packet header is decompressed using the mapping relationship used when obtaining the compressed packet header, so that the packet header is correctly restored, including the segment list for indicating the path. In step S2312, the operations included in the SID function part can be executed, and the packet header is updated according to the SRv6 protocol, so that the data packet is forwarded, and the transmission efficiency is improved based on the use of the compressed packet header, and the correctness of the transmission is also guaranteed. Subsequent steps S2313-S2315 are compression steps similar to steps S11-S13 in FIG. 1, and the data packet is compressed and forwarded according to the same mapping relationship, thereby improving the transmission efficiency.
[0076] As shown in FIG. 5, in some embodiments of the present disclosure, in the case of determining the second forwarding mode, step S23 of the SRv6 data packet transmission method comprises: S2321 updating the segment list composed of markers included in the compressed packet header; and S2322 forwarding the compressed data packet according to the updated segment list.
[0077] In the second forwarding mode, there is no need for decompression, and the devices in the core network can directly determine the destination address of the data packet according to the marker, and can directly update the packet header according to the SRv6 protocol to forward the data packet, thereby further improving the transmission efficiency of the data packet.
[0078] Generally, the last device in the core network does not need to forward and can remove the packet header, so in some embodiments of the present disclosure, before determining the forwarding mode according to the first indication information and the second indication information, it is also determined whether the compressed data packet needs to be forwarded according to the compressed packet header. In the case where the compressed data packet does not need to be forwarded, the packet header with the SRv6 Header (SRv6 Segment Routing Header, SRv6 segment routing header) is stripped off to restore the original IP (Internet Protocol, Internet Protocol) packet.
[0079] In the above embodiments, the SRv6 data packet transmission method of the present disclosure introduces a mapping relationship shared between devices in the core network, so that the sender of the data packet in the core network can compress a long SID into a shorter marker, under the premise of ensuring that the receiver can correctly analyze the data packet, the compression of the SRv6 packet header is realized, and the network performance is improved; at the same time, by introducing indication information in the data packet, the receiver of the data packet can select different forwarding modes according to the content of the indication information, further improving the transmission efficiency.
[0080] The above describes each step of the SRv6 data packet transmission method of the present disclosure, and the following will provide embodiments of the SRv6 data packet transmission device corresponding to the above method.
[0081] FIG. 6 shows a block diagram of an SRv6 data packet transmission device according to some embodiments of the present disclosure.
[0082] As shown in FIG. 6, some embodiments of the present disclosure provide an SRv6 data packet transmission device, comprising:
[0083] The compression module 61 is configured to compress each SID in the packet header of the data packet to be forwarded into a corresponding marker according to the mapping relationship between the segment identifier (SID) and the marker, to obtain a compressed packet header, wherein the length of the marker is less than the length of the SID, and the mapping relationship is shared between devices in the core network.
[0084] The encapsulation module 62 is configured to encapsulate the compressed packet header into the data packet to be forwarded, to obtain a compressed data packet, wherein the compressed data packet includes first indication information and second indication information, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker corresponds to a device in the core network.
[0085] The sending module 63 sends the compressed data packet to the receiver.
[0086] The compression module 61 of the SRv6 data packet transmission device 6 can be used to execute step S11 of FIG. 1. The encapsulation module 62 of the SRv6 data packet transmission device 6 can be used to execute step S12 of FIG. 1. The sending module 63 of the SRv6 data packet transmission device 6 can be used to execute step S13 of FIG. 1.
[0087] As shown in FIG. 7, some embodiments of the present disclosure provide an SRv6 data packet transmission device, comprising:
[0088] The receiving module 71 is configured to receive a compressed data packet, wherein the compressed data packet comprises a compressed packet header, first indication information and second indication information, the compressed packet header is obtained according to a mapping relationship between a segment identifier (SID) and a marker, the mapping relationship is shared between devices in the core network, the first indication information indicates whether the SID before compression includes a function part, and the second indication information indicates whether the marker in the compressed packet header corresponds to a device in the core network.
[0089] The determining module 72 is configured to determine a forwarding mode according to the first indication information and the second indication information.
[0090] The forwarding module 73 is configured to forward the compressed data packet according to the determined forwarding mode.
[0091] The receiving module 71 of the SRv6 data packet transmission device 7 can be used to execute step S21 of FIG. 2. The determining module 72 of the SRv6 data packet transmission device 7 can be used to execute step S22 of FIG. 2. The forwarding module 73 of the SRv6 data packet transmission device 7 can be used to execute step S23 of FIG. 2.
[0092] In the above embodiment, similar to the SRv6 data packet transmission method, the SRv6 data packet transmission device of the present disclosure introduces a mapping relationship shared between devices in the core network, so that the sender of the data packet in the core network can compress the long SID into a shorter marker, under the premise that the receiver can correctly analyze the data packet, the compression of the SRv6 packet header is realized, and the network performance is improved; at the same time, by introducing the indication information in the data packet, the receiver of the data packet can select different forwarding modes according to the content of the indication information, and the transmission efficiency is further improved.
[0093] As shown in FIG. 8, some embodiments of the present disclosure provide an SRv6 data packet transmission device 8, comprising:
[0094] a memory 81; and
[0095] a processor 82 coupled to the memory, the processor 82 is configured to execute the SRv6 data packet transmission method of any one of the preceding embodiments based on the instructions stored in the memory.
[0096] The memory 81 may, for example, include a system memory, a fixed non-volatile storage medium, etc. The system memory, for example, stores an operating system, an application program, a boot loader, a database, and other programs, etc.
[0097] It should be understood that each of the steps in the foregoing SRv6 data packet transmission method can be implemented by the processor 82, and can be implemented by any one of software, hardware, firmware or a combination thereof.
[0098] FIG. 9 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure.
[0099] As shown in FIG. 9, the computer system 9 can be in the form of a general computing device. The computer system 9 includes a memory 91, a processor 92, and a bus 90 connecting different system components.
[0100] The memory 91 can be various forms of computer-readable storage media, which can include system memory, non-volatile storage media, etc. The system memory, for example, stores an operating system, application programs, a Boot Loader, and other programs, etc. The system memory can include volatile storage media, such as random access memory (RAM) and / or cache memory. The non-volatile storage media, for example, stores instructions for implementing corresponding embodiments of the SRv6 data packet transmission method. The non-volatile storage media includes, but is not limited to, disk storage, optical storage, flash memory, etc.
[0101] The processor 92 can be implemented in the form of a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete hardware component, etc. Accordingly, each module can be implemented by a central processing unit (CPU) running instructions in the memory for performing corresponding steps, or by a dedicated circuit for performing corresponding steps.
[0102] The bus 90 can use any of a variety of bus structures. For example, the bus structure includes, but is not limited to, an industry standard architecture (ISA) bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus.
[0103] The computer system 9 can also include an input / output interface 93, a network interface 94, a storage interface 95, etc. These interfaces 93, 94, 95 and the memory 91 and the processor 92 can be connected through the bus 90. The input / output interface 93 can provide a connection interface for display, mouse, keyboard, etc. input / output devices. The network interface 94 provides a connection interface for various networking devices. The storage interface 95 provides a connection interface for external storage devices such as floppy disks, U disks, SD cards, etc.
[0104] According to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product which, when running on a computer, causes the computer to implement the SRv6 data packet transmission method described in any of the preceding embodiments. The computer program product includes a computer program carried on a computer readable medium, which contains program code for executing the method shown in the flowchart.
[0105] So far, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Those skilled in the art can fully understand how to implement the technical solutions disclosed herein according to the above description.
[0106] Although some specific embodiments of the present disclosure have been described in detail through examples, those skilled in the art should understand that the above examples are only for illustration, not for limiting the scope of the present disclosure. Those skilled in the art should understand that the above embodiments can be modified or some technical features can be replaced equivalently without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for SRv6 data packet transmission in a core network, comprising: compressing each segment identifier (SID) in a packet header of a data packet to be forwarded into a corresponding label according to a mapping relationship between the SIDs and the labels, to obtain a compressed packet header, wherein a length of the label is less than a length of the SID, and the mapping relationship is shared between devices in the core network; encapsulating the compressed packet header into the data packet to be forwarded, to obtain a compressed data packet, wherein the compressed data packet comprises first indication information and second indication information, the first indication information indicating whether the SID before compression comprises a function part, and the second indication information indicating whether the label in the compressed packet header corresponds to a device in the core network; sending the compressed data packet to a receiver.
2. The SRv6 datagram transmission method of claim 1, wherein, The label satisfies at least one of the following conditions: The label comprises a label corresponding to a device in the core network pointed to by the SID. The label does not comprise the function part of the SID.
3. The SRv6 datagram transmission method according to claim 2, wherein, The device in the core network pointed to by the SID corresponds to a routing address in the SID.
4. The SRv6 datagram transmission method according to claim 3, wherein, The mapping relationship is included in a SID dictionary, and the SID dictionary is dynamically modified based on routing addresses of devices in the core network.
5. The SRv6 data packet transmission method according to any one of claims 1 to 4, wherein, The compressed data packet comprises flag bits for indicating the first indication information and the second indication information.
6. The SRv6 data packet transmission method according to any one of claims 1 to 5, wherein, The compressed packet header comprises a segment list indicating a path.
7. A method for SRv6 data packet transmission in a core network, comprising: receiving a compressed data packet, wherein the compressed data packet comprises a compressed packet header, first indication information, and second indication information, the compressed packet header being obtained according to a mapping relationship between segment identifiers (SIDs) and labels, the mapping relationship being shared between devices in the core network, the first indication information indicating whether the SID before compression comprises a function part, and the second indication information indicating whether the label in the compressed packet header corresponds to a device in the core network; determining a forwarding mode according to the first indication information and the second indication information; forwarding the compressed data packet according to the determined forwarding mode. The compressed packet header comprises a segment list indicating a path.
8. The SRv6 datagram transmission method according to claim 7, wherein, The forwarding mode comprises:
9. The SRv6 datagram transmission method of claim 8, wherein, a first forwarding mode, in which the compressed data packet is forwarded after the compressed packet header is decompressed according to the mapping relationship; or a second forwarding mode, in which the compressed data packet is directly forwarded without decompressing the compressed packet header. Determining the forwarding mode according to the first indication information and the second indication information comprises:
10. The SRv6 datagram transmission method of claim 9, wherein, in a case where the first indication information indicates that the SID before compression comprises the function part, determining that the forwarding mode is the first forwarding mode; in a case where the first indication information indicates that the SID before compression does not comprise the function part, and in response to the second indication information indicating that the label in the compressed packet header corresponds to the device in the core network, determining that the forwarding mode is the second forwarding mode; and in a case where the first indication information indicates that the SID before compression does not comprise the function part, and in response to the second indication information indicating that the label in the compressed packet header does not correspond to the device in the core network, determining that the forwarding mode is the first forwarding mode. 11. The SRv6 datagram transmission method of claim 10, wherein, According to the determined forwarding mode, forwarding the compressed data message comprises: In the case of determining that the forwarding mode is the first forwarding mode, decompressing the compressed message header according to the mapping relationship to obtain a first message header, wherein the first message header comprises a segment list composed of SIDs; Executing the function part of the SID and updating the segment list to obtain a second message header; According to the mapping relationship shared between the devices in the core network, compressing the SID into a corresponding marker to obtain a compressed second message header; According to the compressed second message header, obtaining an updated compressed data message; According to the updated segment list, forwarding the updated compressed data message.
12. The SRv6 data packet transmission method according to claim 10 or 11, wherein, According to the determined forwarding mode, forwarding the compressed data message comprises: In the case of determining that the forwarding mode is the second forwarding mode, updating the segment list composed of markers included in the compressed message header; According to the updated segment list, forwarding the compressed data message.
13. The SRv6 data packet transmission method according to any one of claims 7 to 12, wherein, The marker satisfies at least one of the following: The marker comprises a marker corresponding to the device in the core network pointed to by the SID; The marker does not include the function part of the SID.
14. The SRv6 data message transmission method according to any one of claims 7 to 13, further comprising: Before determining the forwarding mode according to the first indication information and the second indication information, determining whether the compressed data message needs to be forwarded according to the compressed message header.
15. An SRv6 data message transmission device in a core network, comprising: a compression module configured to compress each SID in a message header of a data message to be forwarded into a corresponding marker according to a mapping relationship between a segment identifier (SID) and the marker to obtain a compressed message header, wherein the length of the marker is less than the length of the SID, and the mapping relationship is shared between devices in the core network; an encapsulation module configured to encapsulate the compressed message header into the data message to be forwarded to obtain a compressed data message, wherein the compressed data message comprises first indication information and second indication information, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker corresponds to a device in the core network; a sending module configured to send the compressed data message to a receiver.
16. An SRv6 data message transmission device in a core network, comprising: a receiving module configured to receive a compressed data message, wherein the compressed data message comprises a compressed message header, first indication information, and second indication information, the compressed message header being obtained according to a mapping relationship between a segment identifier (SID) and a marker, the mapping relationship being shared between devices in the core network, the first indication information indicating whether the SID before compression includes a function part, and the second indication information indicating whether the marker in the compressed message header corresponds to a device in the core network; a determination module configured to determine a forwarding mode according to the first indication information and the second indication information; a forwarding module configured to forward the compressed data message according to the determined forwarding mode.
17. An SRv6 data packet transmission apparatus in a core network, comprising: a memory; and a processor coupled to the memory, configured to execute an SRv6 data packet transmission method according to any one of claims 1 to 14 based on instructions stored in the memory.
18. A computer readable storage medium, wherein, The computer readable storage medium stores computer instructions, and the instructions are executed by the processor to implement the SRv6 data packet transmission method according to any one of claims 1 to 14.
19. A computer program product, wherein, The computer program product stores computer instructions, and the instructions are executed by the processor to implement the SRv6 data packet transmission method according to any one of claims 1 to 14. The computer program product stores computer instructions, and the instructions are executed by the processor to implement the SRv6 data packet transmission method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Routing method, routing device and computer readable storage medium
CN113438160A
Message processing method, network equipment and communication system
CN117354377A
Message forwarding method and device, electronic equipment and storage medium
CN117376285A
Routing method, routing apparatus and computer-readable storage medium
US20230140531A1