A data encapsulation processing method and device, a storage medium and an electronic device
By determining the positional relationship between GSE fragments and transmission units and optimizing the GSE header field, the problem that GSE encapsulation cannot adapt to multiple transmission units when the transmission unit is small is solved, thus saving transmission link bandwidth.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2021-06-28
- Publication Date
- 2026-06-26
AI Technical Summary
Existing GSE encapsulation technology cannot accommodate the need for multiple transmission units to send one PDU of data when the transmission unit is small, resulting in low bandwidth utilization efficiency of the transmission link.
By determining the positional relationship between the GSE fragment and the sending unit, the optimization field is obtained, and some fields in the GSE header are reduced to obtain the reduced target GSE fragment for encapsulation.
This reduces the GSE header overhead length in each transmission unit, saving transmission link bandwidth.
Smart Images

Figure CN115604364B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more specifically, to a data encapsulation processing method, apparatus, storage medium, and electronic device. Background Technology
[0002] Generic Stream Encapsulation (GSE) is a commonly used encapsulation technique. It is frequently used in the Digital Video Broadcasting (DVB-S2) protocol, which provides network layer packet encapsulation and fragmentation functions on top of a generic streaming format. Protocol Data Units (PDUs) are encapsulated into variable-length link layer packets, which are then filled into physical layer baseband frames (BBFrames) for data transmission.
[0003] Figure 1 This is a diagram illustrating the relationship between GSE encapsulation and BBFrame in related technologies, such as... Figure 1 As shown, a PDU can independently complete a GSE encapsulation, or it can be divided into multiple pieces for GSE encapsulation, and then filled into a BBFrame or other transmission unit after GSE encapsulation.
[0004] Figure 2 This is based on the schematic diagram of the GSE encapsulation format in related technologies. Figure 1 ,like Figure 2 As shown, if the PDU is fragmented, Figure 3 This is based on the schematic diagram of the GSE encapsulation format in related technologies. Figure 2 ,like Figure 3 As shown, the unshaded areas represent the mandatory items in a standard GSE header encapsulation. In traditional GSE encapsulation, a GSE fragment includes a first fragment indicator S (1 bit), a last fragment indicator E (1 bit), a type flag LT (2 bits), a GSE length indicator (12 bits), an ID (1 bit), and for the first fragment, total message length (2 bits), protocol type indicator (2 bits), tag type (3-6 bits), and extended header indicator bits (>=2 bits). The last fragment has CRC check bits (4 bits). The GSE encapsulation overhead is the sum of the total GSE header lengths of all GSE fragments generated by encapsulating a PDU.
[0005] Existing GSE (Guided Message Separation) systems reduce GSE overhead by identifying consecutive identical GSE headers and replacing them with identical header information. This mainly includes: when the number of consecutively identified identical headers reaches a predetermined threshold, the header is replaced with a compressed index, and the corresponding compressed information is updated in the sender's own index and compression information table; determining whether the first N packets compressed in the current header are the original N packets: if yes, the packet is sent in a compressed format containing the original packet; if not, determining whether the current period includes the original packet: if yes, the packet is sent in a compressed format containing the original packet; if not, the packet is sent in a compressed format without the original packet; receiving the packet and checking the header flag: if it is a compressed format containing the original packet, the sender updates its own index and compression information table and forwards the original packet; if it is a compressed format without the original packet, the sender restores the original packet based on the index and compression information table and forwards the original packet. This saves satellite link bandwidth and eliminates the need to modify the packets.
[0006] The above method is effective when the sending unit is large enough. However, if the sending unit is small and one sending unit cannot complete the transmission of a whole PDU of data, that is, when one PDU requires N (N>=2), the above method is difficult to be effective.
[0007] To address the issue that related technologies save transmission link bandwidth by identifying identical packet headers for compression, which requires packet headers in the transmission frames to have the same encapsulation structure and cannot adapt to the problem that a single PDU data needs to be sent by multiple sending units, no solution has yet been proposed. Summary of the Invention
[0008] This application provides a data encapsulation processing method, apparatus, storage medium, and electronic device to at least solve the problem in related technologies that saving transmission link bandwidth by identifying the same packet header for compression requires the packet headers in the transmission frames to have the same encapsulation structure, and cannot adapt to the problem that a PDU data needs to be sent by multiple sending units.
[0009] According to one embodiment of this application, a data encapsulation processing method is provided, including:
[0010] Determine the positional relationship between the General Stream Encapsulation Protocol (GSE) fragments and the transmission unit;
[0011] The optimization fields in the GSE shards are obtained based on the positional relationships.
[0012] Based on the optimization fields, some fields in the GSE header of the GSE fragment are reduced to obtain the reduced target GSE fragment;
[0013] The target GSE fragment is encapsulated.
[0014] In an exemplary embodiment, determining the positional relationship between the GSE fragment and the transmitting unit includes:
[0015] Determine the location information of the GSE fragment in the transmitting unit; and / or
[0016] Determine the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple transmission units.
[0017] In an exemplary embodiment, obtaining the optimization field in the GSE shard based on the positional relationship includes:
[0018] The optimized field in the GSE shard is obtained based on the location information and the continuity relationship.
[0019] In an exemplary embodiment, before obtaining the optimized field in the GSE shard based on the positional relationship, the method further includes:
[0020] Based on the location information and the continuity relationship, it is determined that the optimized field exists in the GSE header of the GSE fragment.
[0021] In an exemplary embodiment, the reduced target GSE fragment is obtained by reducing a portion of the GSE header based on the optimized field, including:
[0022] Based on the optimization fields, delete a portion of the fields in the GSE header of the GSE fragment;
[0023] The purpose of certain fields in the GSE header of the GSE fragment is changed according to the optimization fields;
[0024] The length of some fields in the GSE header of the GSE fragment is changed according to the optimization field.
[0025] In an exemplary embodiment, after reducing a portion of the fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment, the method further includes:
[0026] Record the optimization information of the GSE shard, wherein the optimization information includes the optimization field and the reduction method.
[0027] In one exemplary embodiment, the optimized field includes a deletable field, a reusable field, and a resizeable field.
[0028] According to another embodiment of this application, a data encapsulation processing apparatus is also provided, comprising:
[0029] The first determining module is used to determine the positional relationship between the General Stream Encapsulation Protocol (GSE) fragment and the sending unit.
[0030] The acquisition module is used to acquire the optimization field in the GSE shard based on the positional relationship;
[0031] The reduction module is used to reduce some fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment;
[0032] The encapsulation module is used to encapsulate the target GSE fragment.
[0033] In one exemplary embodiment, the first determining module includes:
[0034] The first determining submodule is used to determine the location information of the GSE fragment in the transmitting unit; and / or
[0035] The second determining submodule is used to determine the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple transmission units.
[0036] In one exemplary embodiment, the acquisition module is further configured to
[0037] The optimized field in the GSE shard is obtained based on the location information and the continuity relationship.
[0038] In one exemplary embodiment, the apparatus further includes:
[0039] The second determining module is used to determine, based on the location information and the continuity relationship, that the optimized field exists in the GSE header of the GSE fragment.
[0040] In one exemplary embodiment, the reduction module includes:
[0041] The deletion submodule is used to delete a portion of the fields in the GSE header of the GSE shard based on the optimization fields;
[0042] The first modification submodule is used to modify the purpose of some fields in the GSE header of the GSE shard according to the optimization field;
[0043] The second modification submodule is used to modify the length of some fields in the GSE header of the GSE fragment according to the optimization field.
[0044] In one exemplary embodiment, the apparatus further includes:
[0045] The recording module is used to record the optimization information of the GSE shard, wherein the optimization information includes the optimization field and the reduction method.
[0046] In one exemplary embodiment, the optimized field includes a deletable field, a reusable field, and a resizeable field.
[0047] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0048] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0049] In this embodiment, the positional relationship between GSE fragments and transmission units is determined; optimized fields in the GSE fragments are obtained based on the positional relationship; a portion of the GSE header of the GSE fragments is reduced based on the optimized fields to obtain a reduced target GSE fragment; and the target GSE fragments are encapsulated. This solves the problem in related technologies where saving transmission link bandwidth by identifying identical packet headers for compression requires the packet headers in the transmission frames to have the same encapsulation structure, and it cannot adapt to the situation where a PDU data needs to be sent by multiple transmission units. By reducing a portion of the GSE header in each transmission unit of the PDU, the overhead length of the GSE header in each transmission unit can be reduced, thereby saving transmission link bandwidth. Attached Figure Description
[0050] Figure 1 This is a schematic diagram based on the relationship between GSE encapsulation and BBFrame in related technologies;
[0051] Figure 2 This is based on the schematic diagram of the GSE encapsulation format in related technologies. Figure 1 ;
[0052] Figure 3 This is based on the schematic diagram of the GSE encapsulation format in related technologies. Figure 2 ;
[0053] Figure 4 This is a hardware structure block diagram of a mobile terminal for the data encapsulation and processing method according to an embodiment of this application;
[0054] Figure 5 This is a flowchart of a data encapsulation and processing method according to an embodiment of this application;
[0055] Figure 6 This is a flowchart of the GSE protocol encapsulation optimization according to this embodiment;
[0056] Figure 7This is a schematic diagram showing the optimized GSE intermediate and tail segments according to this embodiment;
[0057] Figure 8 This is a schematic diagram of the GSE intermediate fragment and tail fragment in one transmission unit according to this embodiment;
[0058] Figure 9 This is a schematic diagram of the GSE intermediate fragment and tail fragment optimized according to the GSELength field of this embodiment;
[0059] Figure 10 This is a schematic diagram comparing the intermediate GSE segments before and after optimization according to this embodiment;
[0060] Figure 11 This is a schematic diagram comparing the GSE tail fragments before and after optimization according to this embodiment;
[0061] Figure 12 This is a schematic diagram of the continuous transmission unit GSE package according to this embodiment;
[0062] Figure 13 This is a block diagram of a data encapsulation and processing apparatus according to this embodiment. Detailed Implementation
[0063] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0064] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0065] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 4 This is a hardware structure block diagram of a mobile terminal for the data encapsulation and processing method according to an embodiment of this application, as shown below. Figure 4 As shown, a mobile terminal may include one or more ( Figure 4 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 4 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown.
[0066] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the data encapsulation processing method in this embodiment. The processor 102 executes various functional applications and business chain address pool slicing processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0067] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0068] This embodiment provides a data encapsulation and processing method that operates on the aforementioned mobile terminal or network architecture. Figure 5 This is a flowchart of a data encapsulation and processing method according to an embodiment of this application, such as... Figure 5 As shown, the process includes the following steps:
[0069] Step S502: Determine the positional relationship between the General Stream Encapsulation Protocol (GSE) fragment and the transmission unit;
[0070] Step S504: Obtain the optimized field in the GSE shard according to the positional relationship;
[0071] In this embodiment, the optimized fields may specifically include deletable fields, fields with changeable uses, and fields with changeable lengths.
[0072] Step S506: Reduce some fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment;
[0073] Step S508: Encapsulate the target GSE fragment.
[0074] Through the above steps S502 to S508, the positional relationship between the GSE fragment and the sending unit is determined; the optimized field in the GSE fragment is obtained according to the positional relationship; some fields in the GSE header of the GSE fragment are reduced according to the optimized field to obtain the reduced target GSE fragment; the target GSE fragment is encapsulated, which can solve the problem in related technologies that save transmission link bandwidth by identifying the same packet header for compression, which requires the packet headers in the transmission frame to have the same encapsulation structure and cannot adapt to the problem that one PDU data needs to be sent by multiple sending units. By reducing some fields in the GSE header of each sending unit of the PDU, the overhead length of the GSE header in each sending unit can be reduced, thereby saving transmission link bandwidth.
[0075] In this embodiment, step S502 may specifically include:
[0076] S5021, determine the location information of the GSE fragment in the transmitting unit; and / or
[0077] S5022, determine the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple transmission units.
[0078] Correspondingly, step S504 above may specifically include: obtaining the optimization field in the GSE shard based on the location information and the continuity relationship.
[0079] In one embodiment, before obtaining the optimized field in the GSE shard based on the positional relationship, it is determined that the optimized field exists in the GSE header of the GSE shard based on the positional information and the continuity relationship.
[0080] In this embodiment, step S506 may specifically include:
[0081] S5061, Delete some fields in the GSE header of the GSE fragment according to the optimization field;
[0082] S5062, change the purpose of some fields in the GSE header of the GSE fragment according to the optimization field;
[0083] S5063, change the length of some fields in the GSE header of the GSE fragment according to the optimization field.
[0084] In an exemplary embodiment, after reducing a portion of the fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment, the optimization information of the GSE fragment is recorded. The optimization information includes the optimization field and the reduction method, and the optimization information is used to provide information for GSE fragment transmission after PDU.
[0085] When sending messages using the GSE protocol, some fields can be optimized to reduce encapsulation overhead. This is especially important when the sending unit is small, such as when the sending unit is smaller than the message length, which inevitably leads to the fragmentation of the message (PDU) and generates multiple GSE fragmentation overheads.
[0086] This invention utilizes a specific relationship between GSE fragments and the transmitting unit. This specific relationship includes, but is not limited to, the position information of the GSE fragments within the transmitting unit and the continuity of the PDU within the transmitting unit after it has been divided into multiple GSE fragments. By using specific methods to remove and modify the length or usage of certain fields, including reducing the length of some fields, these saved fields can be obtained directly or indirectly from the information parameters of the preceding GSE fragments or transmitting units, thereby reducing the GSE header encapsulation overhead. Figure 6 This is a flowchart of the GSE protocol encapsulation optimization according to this embodiment, as follows: Figure 6 As shown, the optimization methods include: utilizing the position of GSE fragments in the transmitting unit to obtain part of the field information in the GSE header directly or indirectly; and utilizing the continuous relationship between multiple GSE fragments of the same PDU in multiple transmitting units to directly or indirectly obtain part of the GSE header field information. Specifically, this includes the following steps:
[0087] Step S601: Calculate the relationship between GSE fragments in the transmission unit and make a preliminary judgment on whether there is any GSE header field information that can be optimized.
[0088] Step S602: Query the previous GSE fragmentation optimization information. Query the previous GSE fragmentation optimization information of the PDU. The previous GSE fragmentation optimization information of the PDU is the continuous relationship of multiple GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in multiple transmission units.
[0089] Step S603: Determine if optimization is possible. If the result is yes, proceed to step S604; otherwise, proceed to step S605. Based on the information in steps S601 and S602, determine if the GSE shard has any fields that need optimization, i.e., whether there are optimization items such as deleting fields, changing the purpose of fields, or changing the length of fields.
[0090] Step S604: Calculate optimizable fields. If there are optimizable fields in the first step, the optimizable field information can be used. Optimization can include deleting fields and changing the length or usage of some unnecessary fields.
[0091] Step S605: Complete GSE encapsulation. If there are optimizations, complete the optimized GSE encapsulation based on the optimizable fields calculated in step S602. If there are no fields that can be optimized, then no optimized encapsulation is performed.
[0092] Step S606: Record the GSE fragmentation optimization information. If the PDU is not completely sent, record the GSE fragmentation optimization information to provide information for subsequent GSE fragmentation of the PDU.
[0093] Optimization using the GSELength field as an example: Optimize the middle and tail fragments of GSE within the GSE encapsulation. Figure 7 This is an optimized schematic diagram of the GSE intermediate and tail fragments according to this embodiment, as shown below. Figure 7 As shown, a function bit is added to indicate whether the GSELength bit is used. That is, the GSELength bit is optional in the GSE wrapper (the length of the function and GSELength bits can be adjusted according to actual needs).
[0094] Figure 8 This is a schematic diagram of the GSE intermediate fragment and tail fragment in one transmission unit according to this embodiment, as shown below. Figure 8 As shown, there are four possible distributions of GSE intermediate fragments and tail fragments within a single transmission unit.
[0095] Optimization of the GSELength field as an example: If the GSE encapsulation is in distribution scenarios 1 and 2, the size of the GSE encapsulation can be calculated from the size of the transmitting unit and the space usage of the preceding segments within the same transmitting unit. In this case, the GSELength field can be optimized by omitting it. Is there a usable function field to record the GSELength field in the GSE fragment, or is it recorded using other methods?
[0096] The above description is based only on Figure 8 Optimize for cases 1, 2, and 3; alternative solutions can also be developed based on... Figure 8 Methods 1, 2, 3, and 4, which are not described, are replaced with the same theoretical method to reduce GSE header overhead.
[0097] Figure 9 This is a schematic diagram of the GSE intermediate and tail fragments optimized according to the GSELength field of this embodiment, as shown below. Figure 9 As shown, GSELength can be optimized in the middle and tail fragments of GSE. Figure 10 This is a schematic diagram comparing the intermediate GSE fragments before and after optimization according to this embodiment, as shown below. Figure 10 As shown, by comparing the intermediate segments before and after optimization, it can be seen that changing the size of the GSE Length of the intermediate segment from 12 bits to 4 bits and modifying the function of GSE Length to Fusion, which is used to indicate whether GSE Length is used. Figure 11 This is a schematic diagram comparing the GSE tail fragments before and after optimization according to this embodiment, as shown below. Figure 11 As shown, a comparison of the tail fragments before and after optimization reveals that the optimization changes the size of the tail fragment's GSELength from 12 bits to 4 bits and modifies the function of GSE Length to Fusion, which indicates whether GSE Length is used.
[0098] Figure 12 This is a schematic diagram of the continuous transmission unit GSE package according to this embodiment, as shown below. Figure 12 As shown, in the GSE encapsulation of a PDU when continuous transmission unit resources are available, since the first fragment of GSE start already contains the field information, the intermediate fragments of GSE continuation and the tail fragment of GSE end can omit the field information (such as FragID) obtained directly or indirectly from the first fragment, thus saving GSE header overhead. In practical applications, optimization can be performed according to actual needs.
[0099] According to another embodiment of this application, a data encapsulation and processing apparatus is also provided. Figure 13 This is a block diagram of the data encapsulation and processing apparatus according to this embodiment, such as... Figure 13 As shown, it includes:
[0100] The first determining module 132 is used to determine the positional relationship between the General Stream Encapsulation Protocol (GSE) fragment and the sending unit.
[0101] The acquisition module 134 is used to acquire the optimization field in the GSE shard according to the positional relationship;
[0102] The reduction module 136 is used to reduce a portion of the fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment;
[0103] The encapsulation module 138 is used to encapsulate the target GSE fragment.
[0104] In an exemplary embodiment, the first determining module 132 includes:
[0105] The first determining submodule is used to determine the location information of the GSE fragment in the transmitting unit; and / or
[0106] The second determining submodule is used to determine the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple transmission units.
[0107] In one exemplary embodiment, the acquisition module 134 is further configured to
[0108] The optimized field in the GSE shard is obtained based on the location information and the continuity relationship.
[0109] In one exemplary embodiment, the apparatus further includes:
[0110] The second determining module is used to determine, based on the location information and the continuity relationship, that the optimized field exists in the GSE header of the GSE fragment.
[0111] In one exemplary embodiment, the reduction module 136 includes:
[0112] The deletion submodule is used to delete a portion of the fields in the GSE header of the GSE shard based on the optimization fields;
[0113] The first modification submodule is used to modify the purpose of some fields in the GSE header of the GSE shard according to the optimization field;
[0114] The second modification submodule is used to modify the length of some fields in the GSE header of the GSE fragment according to the optimization field.
[0115] In one exemplary embodiment, the apparatus further includes:
[0116] The recording module is used to record the optimization information of the GSE shard, wherein the optimization information includes the optimization field and the reduction method.
[0117] In one exemplary embodiment, the optimized field includes a deletable field, a reusable field, and a resizeable field.
[0118] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0119] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0120] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0121] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0122] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0123] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0124] The above description is merely a preferred embodiment of this application and is not intended to limit 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 principles of this application should be included within the protection scope of this application.
Claims
1. A data encapsulation and processing method, characterized in that, include: Determining the positional relationship between the General Stream Encapsulation Protocol (GSE) fragment and the transmission unit includes: determining the position information of the GSE fragment in the transmission unit; and determining the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple transmission units. Obtaining the optimized fields in the GSE fragment based on the location relationship includes: obtaining the optimized fields in the GSE fragment based on the location information and the continuity relationship, wherein the optimized fields include a deletable field, a field whose purpose can be changed, and a field whose length can be changed; Based on the optimization fields, some fields in the GSE header of the GSE fragment are reduced to obtain the reduced target GSE fragment; The target GSE fragment is encapsulated.
2. The method according to claim 1, characterized in that, Before obtaining the optimized field in the GSE shard based on the positional relationship, the method further includes: Based on the location information and the continuity relationship, it is determined that the optimized field exists in the GSE header of the GSE fragment.
3. The method according to claim 1, characterized in that, Based on the optimization fields, a portion of the fields in the GSE header of the GSE fragment are reduced to obtain the reduced target GSE fragment, which includes: Based on the optimization fields, delete a portion of the fields in the GSE header of the GSE fragment; The purpose of certain fields in the GSE header of the GSE fragment is changed according to the optimization fields; The length of some fields in the GSE header of the GSE fragment is changed according to the optimization field.
4. The method according to any one of claims 1 to 3, characterized in that, After reducing a portion of the GSE header of the GSE fragment according to the optimization fields to obtain the reduced target GSE fragment, the method further includes: Record the optimization information of the GSE shard, wherein the optimization information includes the optimization field and the reduction method.
5. A data encapsulation and processing apparatus, characterized in that, include: The first determining module is used to determine the positional relationship between the General Stream Encapsulation Protocol (GSE) fragment and the sending unit, including: determining the position information of the GSE fragment in the sending unit; and determining the continuity relationship of multiple GSE fragments of the Protocol Data Unit (PDU) corresponding to the GSE fragment in multiple sending units. The acquisition module is used to acquire the optimized fields in the GSE segment according to the positional relationship, including: acquiring the optimized fields in the GSE segment according to the positional information and the continuity relationship, wherein the optimized fields include a deletable field, a field whose purpose can be changed, and a field whose length can be changed; The reduction module is used to reduce some fields in the GSE header of the GSE fragment according to the optimization field to obtain the reduced target GSE fragment; The encapsulation module is used to encapsulate the target GSE fragment.
6. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 4 when it is run.
7. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 4.