CN115604364A - Data encapsulation processing method and device, storage medium and electronic device - Google Patents

Data encapsulation processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115604364A
CN115604364A CN202110721976.8A CN202110721976A CN115604364A CN 115604364 A CN115604364 A CN 115604364A CN 202110721976 A CN202110721976 A CN 202110721976A CN 115604364 A CN115604364 A CN 115604364A
Authority
CN
China
Prior art keywords
gse
field
optimized
header
fields
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110721976.8A
Other languages
Chinese (zh)
Inventor
赵梓竣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xingkai Communication Equipment Co ltd
ZTE Corp
Original Assignee
Shenzhen Xingkai Communication Equipment Co ltd
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xingkai Communication Equipment Co ltd, ZTE Corp filed Critical Shenzhen Xingkai Communication Equipment Co ltd
Priority to CN202110721976.8A priority Critical patent/CN115604364A/en
Publication of CN115604364A publication Critical patent/CN115604364A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The embodiment of the application provides a data encapsulation processing method, a data encapsulation processing device, a storage medium and an electronic device, wherein the method comprises the following steps: determining the position relation between the GSE fragments and the sending unit; acquiring an optimized field in the GSE fragment according to the position relation; reducing partial fields in the GSE header of the GSE fragment according to the optimized field to obtain a reduced target GSE fragment; the target GSE fragment is encapsulated, so that the problems that the transmission link bandwidth is saved by identifying the same packet header compression in the related technology, the packet headers in the transmission frames need to have the same encapsulation structure and cannot adapt to the problem that one PDU data needs to be transmitted by a plurality of transmitting units are solved, and the overhead length of the GSE header in each transmitting unit can be reduced by reducing partial fields of the GSE header in each transmitting unit of the PDU, so that the transmission link bandwidth is saved.

Description

Data encapsulation processing method and device, storage medium and electronic device
Technical Field
The embodiment of the application relates to the field of communication, in particular to a data encapsulation processing method, a data encapsulation processing device, a storage medium and an electronic device.
Background
Conventional general Stream Encapsulation protocol Encapsulation (GSE) is a common Encapsulation technique. The Protocol is commonly used for a Digital Video Broadcasting Protocol (DVB-S2 for short), and provides network layer packet encapsulation and fragmentation functions above a general stream format, and a Protocol Data Unit (PDU for short) is encapsulated into a link layer packet with a variable length, and then is filled into a baseband Frame (BBFrame for short) of a physical layer, so as to perform Data transmission.
Fig. 1 is a schematic diagram of a GSE encapsulation and BBFrame relationship in the related art, as shown in fig. 1, a PDU may independently complete one GSE encapsulation, or may be divided into multiple pieces for GSE encapsulation, and the GSE encapsulation is then filled in a BBFrame or other transmission units.
Fig. 2 is a diagram illustrating a first GSE encapsulation format according to the related art, as shown in fig. 2, and fig. 3 is a diagram illustrating a second GSE encapsulation format according to the related art if a PDU is fragmented, as shown in fig. 3, where an unshaded portion is a necessary entry for standard GSE header encapsulation. In the traditional GSE encapsulation, the GSE fragment includes a first fragment indicating bit S (1B), a last fragment indicating bit E (1B), a type flag bit LT (2B), a GSE length indicating bit (12B), an identifier ID (1B), a total packet length (2B), a protocol type indicating bit (2B), a flag type (3-6B), and an extension header indicating bit (> = 2B). The tail slice has CRC check bits (4B). The GSE encapsulation overhead generates a total GSE header length sum for all GSE slices for encapsulating one PDU.
The existing GSE carries out the same GSE header information replacement by identifying the continuous same GSE message header, thereby achieving the purpose of reducing the GSE overhead. The method mainly comprises the following steps: when the number of the continuously identified same message headers reaches a preset threshold value, replacing the message headers with compression indexes, and updating corresponding compression information to an index and compression information table of a sending end; judging whether the first N messages of the first compression of the current message header are the first N messages: if yes, sending the message in a format with the original message after compression; if not, judging whether the current period is in a period of sending the original message: if yes, sending the message in a format with the original message after compression; if not, sending the message in a format without the original message after compression; receiving a message and judging a message header mark: if the format is a format with the original message after being compressed, updating the index and the compression information table of the self, and forwarding the original message; if the format is the format without the original message after being compressed, the original message is restored according to the index and the compressed information table, and the original message is forwarded. The bandwidth of the satellite link is saved, and the message does not need to be modified.
The method is effective when the sending unit is large enough, and is difficult to work when one sending unit cannot complete sending of the whole PDU data if the sending unit is small, that is, N (N > = 2) PDUs are needed for one PDU.
For the problems that the transmission link bandwidth is saved by identifying the same packet header compression in the related art, the packet headers in the transmission frames need to have the same encapsulation structure, and the PDU data cannot be transmitted by a plurality of transmitting units, a solution has not been proposed.
Disclosure of Invention
The embodiment of the application provides a data encapsulation processing method, a data encapsulation processing device, a storage medium and an electronic device, which are used for at least solving the problems that in the related art, the same packet header compression is identified to save transmission link bandwidth, the packet headers in transmission frames need to have the same encapsulation structure, and the related art cannot adapt to the problem that one PDU data needs to be sent by a plurality of sending units.
According to an embodiment of the present application, there is provided a data encapsulation processing method including:
determining the position relation between the GSE fragments encapsulated by the general stream encapsulation protocol and the sending unit;
acquiring an optimized field in the GSE fragment according to the position relation;
reducing partial fields in a GSE header of the GSE fragment according to the optimized fields to obtain a reduced target GSE fragment;
and packaging the target GSE fragments.
In an exemplary embodiment, determining the position relationship between the GSE slice and the sending unit includes:
determining the position information of the GSE fragments in the sending unit; and/or
And determining the continuous relation of a plurality of GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in a plurality of sending units.
In an exemplary embodiment, obtaining the optimized field in the GSE slice according to the location relationship includes:
and acquiring the optimized field in the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, before obtaining the optimized field in the GSE slice according to the position relationship, the method further comprises:
and determining that the optimized field exists in the GSE header of the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, reducing a part of fields in a GSE header of the GSE slice according to the optimized field to obtain a reduced target GSE slice includes:
deleting partial fields in the GSE header of the GSE fragment according to the optimized fields;
changing the use of partial fields in the GSE header of the GSE fragment according to the optimized fields;
and changing the length of partial fields in the GSE header of the GSE fragment according to the optimized field.
In an exemplary embodiment, after reducing a part of fields in a GSE header of the GSE slice according to the optimized field to obtain a reduced target GSE slice, the method further includes:
and recording optimization information of the GSE fragments, wherein the optimization information comprises the optimization fields and the reduction modes.
In an exemplary embodiment, the optimization fields include a deletable field, a modifiable purpose field, and a modifiable length field.
According to another embodiment of the present application, there is also provided a data encapsulation processing apparatus including:
the first determining module is used for determining the position relation between the GSE fragments encapsulated by the general stream encapsulation protocol and the sending unit;
an obtaining module, configured to obtain an optimized field in the GSE slice according to the position relationship;
a reduction module, configured to reduce, according to the optimized field, a part of fields in a GSE header of the GSE slice, to obtain a reduced target GSE slice;
and the packaging module is used for packaging the target GSE fragments.
In an exemplary embodiment, the first determining module includes:
the first determining submodule is used for determining the position information of the GSE fragments in the sending unit; and/or
And the second determining submodule is used for determining the continuous relation of a plurality of GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in a plurality of sending units.
In an exemplary embodiment, the obtaining module is further configured to
And acquiring the optimized field in the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, the apparatus further comprises:
and the second determining module is used for determining that the optimized field exists in the GSE header of the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, the reduction module comprises:
the deleting submodule is used for deleting partial fields in the GSE header of the GSE fragment according to the optimized fields;
a first changing submodule, configured to change a use of a partial field in a GSE header of the GSE slice according to the optimized field;
and the second changing submodule is used for changing the length of a part of fields in the GSE header of the GSE fragment according to the optimized field.
In an exemplary embodiment, the apparatus further comprises:
and the recording module is used for recording the optimization information of the GSE fragment, wherein the optimization information comprises the optimization field and a reduction mode.
In an exemplary embodiment, the optimization fields include a deletable field, a modifiable purpose field, and a modifiable length field.
According to a further embodiment of the application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In the embodiment of the application, the position relation between the GSE fragments and the sending unit is determined; acquiring an optimized field in the GSE fragment according to the position relation; reducing partial fields in a GSE header of the GSE fragment according to the optimized fields to obtain a reduced target GSE fragment; the target GSE fragments are encapsulated, so that the problems that in the related technology, the transmission link bandwidth is saved by identifying the same packet header compression, the packet headers in the transmission frames need to have the same encapsulation structure and cannot be suitable for the problem that one PDU data needs to be transmitted by a plurality of transmitting units are solved, and the overhead length of the GSE header in each transmitting unit can be reduced by reducing partial fields of the GSE header in each transmitting unit of the PDU, so that the transmission link bandwidth is saved.
Drawings
FIG. 1 is a diagram illustrating a GSE encapsulation and BBFrame relationship according to the related art;
FIG. 2 is a diagram one of a GSE encapsulation format according to the related art;
FIG. 3 is a diagram II of a GSE encapsulation format according to the related art;
fig. 4 is a block diagram of a hardware structure of a mobile terminal of the data encapsulation processing method according to the embodiment of the present application;
FIG. 5 is a flow chart of a data encapsulation processing method according to an embodiment of the present application;
FIG. 6 is a flow diagram of GSE protocol encapsulation optimization according to the present embodiment;
fig. 7 is a schematic diagram of GSE middle and tail slices optimized according to the present embodiment;
fig. 8 is a schematic diagram of GSE middle and tail slices in one transmitting unit according to the present embodiment;
fig. 9 is a schematic diagram of GSE middle slices and tail slices after GSELength field optimization according to the present embodiment;
FIG. 10 is a schematic illustration of GSE mid-slice comparison before and after optimization according to the present embodiment;
FIG. 11 is a schematic illustration of pre-and post-optimization GSE tail tiling comparison according to the present embodiments;
fig. 12 is a schematic diagram of a continuous transmission unit GSE package according to the present embodiment;
fig. 13 is a block diagram of a data package processing device according to the present embodiment.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 4 is a block diagram of a hardware structure of the mobile terminal of the data encapsulation processing method according to the embodiment of the present application, and as shown in fig. 4, the mobile terminal may include one or more processors 102 (only one is shown in fig. 4) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, where the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the data encapsulation processing method in the embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby executing various functional applications and service chain address pool slicing processing, that is, implementing the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a data encapsulation processing method operating in the mobile terminal or the network architecture is provided, and fig. 5 is a flowchart of the data encapsulation processing method according to the embodiment of the present application, as shown in fig. 5, the flowchart includes the following steps:
step S502, determining the position relation between the general stream encapsulation protocol encapsulation GSE fragment and the sending unit;
step S504, obtaining the optimized field in the GSE fragment according to the position relation;
in this embodiment, the optimization field may specifically include a deletable field, a modifiable-purpose field, and a modifiable-length field.
Step S506, according to the optimized field, reducing partial fields in the GSE header of the GSE fragment to obtain a reduced target GSE fragment;
step S508, encapsulating the target GSE slice.
Determining the position relationship between the GSE fragments and the sending unit through the steps S502 to S508; acquiring an optimized field in the GSE fragment according to the position relation; reducing partial fields in a GSE header of the GSE fragment according to the optimized fields to obtain a reduced target GSE fragment; the target GSE fragments are encapsulated, so that the problems that in the related technology, the transmission link bandwidth is saved by identifying the same packet header compression, the packet headers in the transmission frames need to have the same encapsulation structure and cannot be suitable for the problem that one PDU data needs to be transmitted by a plurality of transmitting units are solved, and the overhead length of the GSE header in each transmitting unit can be reduced by reducing partial fields of the GSE header in each transmitting unit of the PDU, so that the transmission link bandwidth is saved.
In this embodiment, the step S502 may specifically include:
s5021, determining the position information of the GSE fragments in the sending unit; and/or
S5022, determining the continuous relation of a plurality of GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in a plurality of sending units.
Correspondingly, the step S504 may specifically include: and acquiring the optimized field in the GSE fragment according to the position information and the continuous relation.
In an embodiment, before obtaining the optimized field in the GSE slice according to the location relationship, it is determined that the optimized field exists in the GSE header of the GSE slice according to the location information and the continuity relationship.
In this embodiment, the step S506 may specifically include:
s5061, deleting partial fields in the GSE header of the GSE fragment according to the optimized fields;
s5062, changing the use of partial fields in the GSE header of the GSE slice according to the optimized field;
and S5063, changing the length of a part of fields in the GSE header of the GSE fragment according to the optimized field.
In an exemplary embodiment, after a part of fields in a GSE header of the GSE slice is reduced according to the optimization field to obtain a reduced target GSE slice, the optimization information of the GSE slice is recorded, where the optimization information includes the optimization field and a reduction mode, and the optimization information is used for providing information for the GSE slice after the PDU to send.
When the GSE protocol is applied to send the message, part of the fields can be optimized according to the actual situation to reduce the length of the packaging overhead. Especially, when the sending unit is small, for example, the sending unit is smaller than the sending message length, the sending message (PDU) is inevitably sent in a fragmentation manner, so that a plurality of GSE fragmentation costs are generated.
The embodiment of the invention utilizes the specific relationship between the GSE fragments and the sending units, and the specific relationship comprises but is not limited to: the position information of the GSE fragments in the sending unit and the continuous relation of the PDU in the sending unit after the PDU is divided into a plurality of GSE fragments. The method comprises the steps of removing and changing the length or the use mode of a partial field by a specific method, changing the use of the length of the field comprises reducing the length of the partial field, wherein the field which can be saved can be directly or indirectly obtained by the information parameters of a plurality of GSE fragments or sending units, and the length of GSE header encapsulation overhead is reduced. Fig. 6 is a flowchart of GSE protocol encapsulation optimization according to the present embodiment, and as shown in fig. 6, the optimization method includes: acquiring field information in part of GSE headers in a direct or indirect mode by utilizing the positions of the GSE fragments in the sending unit; and directly or indirectly obtaining partial GSE header field information by utilizing a plurality of GSE fragments of the same PDU in a continuous relation in a plurality of sending units. The method specifically comprises the following steps:
step S601, calculating the relation of GSE fragments in a sending unit, and preliminarily judging whether there is optimizable GSE header field information.
Step S602, querying the GSE slice optimization information before the PDU, and querying the GSE slice optimization information before the PDU, where the GSE slice optimization information before the PDU is a continuous relationship among a plurality of GSE slices of a protocol data unit PDU corresponding to the GSE slice in a plurality of sending units.
Step S603, determining whether optimization is possible, if yes, performing step S604, otherwise performing step S605, and determining whether the GSE fragment has a field that needs to be optimized, i.e. whether there is an optimization item that can delete the field, change the field for use, change the field length, etc., according to the information in steps S601 and S602.
In step S604, an optimizable field is calculated. If there is an optimizable possibility in the first step, the field information can be optimized, the optimization can be deleting fields and changing the length or usage of part of the unnecessary fields.
And step S605, finishing the GSE encapsulation, and finishing the optimized GSE encapsulation according to the optimized field calculated in the step S602 if the optimized GSE encapsulation exists. If no fields can be optimized, no optimized encapsulation is performed.
Step S606, recording the GSE slicing optimization information. If the PDU is not transmitted completely, the GSE slicing optimization information is recorded for GSE slicing transmission providing information behind the PDU.
Optimization taking the GSELength field as an example: and optimizing the GSE middle fragment and the GSE tail fragment in the GSE package. Fig. 7 is a schematic diagram of the GSELength slice and the GSELength slice that are optimized according to the embodiment, as shown in fig. 7, a function bit is added to identify whether the GSELength bit is used, that is, the GSELength bit is an optional item in the GSE package (the length of the function bit and the length of the GSELength bit can be adjusted according to actual requirements).
Fig. 8 is a schematic diagram of GSE middle slices and tail slices in one sending unit according to this embodiment, and as shown in fig. 8, there are 4 distribution situations of GSE middle slices and tail slices in one sending unit.
Optimization taking the GSELength field as an example: if the GSE encapsulation is in the distribution case 1 and 2, the size of the GSE encapsulation can be calculated from the size of the sending unit and the previous space usage in the same sending unit, and in this case, the GSELength field can be optimized, i.e. omitted. The GSELength field is recorded in the GSE slice with or without an available function field or recorded by other methods.
The above description is optimized only according to partial conditions 1, 2, and 3 in fig. 8, and the substitution scheme may also be replaced according to the same theory according to methods 1, 2, 3, and 4 not introduced in fig. 8, so as to achieve the purpose of reducing the GSE header overhead.
Fig. 9 is a schematic diagram of GSE middle slices and tail slices after GSELength field optimization according to this embodiment, and as shown in fig. 9, GSELength may be optimized in the GSE middle slices and tail slices. Fig. 10 is a schematic diagram of GSE middle slice comparison before and after optimization according to this embodiment, and as shown in fig. 10, by optimizing the front and back middle slice comparison, it can be seen that the size of the GSE Length of the middle slice is changed from 12bit to 4bit, and the function of the GSE Length is modified to function, and the function is used to indicate whether the GSE Length is used or not. Fig. 11 is a schematic diagram of GSE tail segment comparison before and after optimization according to this embodiment, as shown in fig. 11, from the optimization of the front and rear tail segment comparison, it can be seen that, by optimizing, the size of the GSE Length of the tail segment is changed from 12bit to 4bit, and the function of the GSE Length is modified to function, which is used to indicate whether the GSE Length is used or not.
Fig. 12 is a schematic diagram of GSE encapsulation of a continuous transmission unit according to this embodiment, as shown in fig. 12, GSE encapsulation is performed when there is a continuous transmission unit resource, because field information already included in a first slice of a GSE start, a GSE termination middle slice and a GSE end tail slice may directly or indirectly obtain field information (such as FragID) according to the first slice, and information of such fields may also be omitted to achieve the purpose of saving GSE header overhead. In practical application, the optimization can be carried out according to actual needs.
According to another embodiment of the present application, there is also provided a data package processing apparatus, and fig. 13 is a block diagram of the data package processing apparatus according to the present embodiment, as shown in fig. 13, including:
a first determining module 132, configured to determine a location relationship between a GSE fragment and a sending unit encapsulated by a generic stream encapsulation protocol;
an obtaining module 134, configured to obtain an optimized field in the GSE segment according to the position relationship;
a reduction module 136, configured to reduce, according to the optimized field, a part of fields in a GSE header of the GSE slice to obtain a reduced target GSE slice;
an encapsulating module 138, configured to encapsulate the target GSE segment.
In an exemplary embodiment, the first determining module 132 includes:
the first determining submodule is used for determining the position information of the GSE fragments in the sending unit; and/or
And the second determining submodule is used for determining the continuous relation of a plurality of GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in a plurality of sending units.
In an exemplary embodiment, the obtaining module 134 is further configured to
And acquiring the optimized field in the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, the apparatus further comprises:
and the second determining module is used for determining that the optimized field exists in the GSE header of the GSE fragment according to the position information and the continuous relation.
In an exemplary embodiment, the reduction module 136 includes:
the deleting submodule is used for deleting partial fields in the GSE header of the GSE fragment according to the optimized fields;
a first changing submodule, configured to change a use of a partial field in a GSE header of the GSE slice according to the optimized field;
and the second change submodule is used for changing the length of partial fields in the GSE header of the GSE fragment according to the optimized field.
In an exemplary embodiment, the apparatus further comprises:
and the recording module is used for recording the optimization information of the GSE fragment, wherein the optimization information comprises the optimization field and a reduction mode.
In an exemplary embodiment, the optimization field includes a deletable field, a repurposable field, and a modifiable length field.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus 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.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the present application described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data encapsulation processing method, comprising:
determining the position relation between the GSE fragments encapsulated by the general stream encapsulation protocol and the sending unit;
acquiring an optimized field in the GSE fragment according to the position relation;
reducing partial fields in a GSE header of the GSE fragment according to the optimized fields to obtain a reduced target GSE fragment;
and packaging the target GSE fragments.
2. The method of claim 1, wherein determining the positional relationship between the GSE slice and the transmitting unit comprises:
determining the position information of the GSE fragment in the sending unit; and/or
And determining the continuous relation of a plurality of GSE fragments of the protocol data unit PDU corresponding to the GSE fragment in a plurality of sending units.
3. The method of claim 2, wherein obtaining the optimized fields in the GSE slice according to the location relationship comprises:
and acquiring the optimized field in the GSE fragment according to the position information and the continuous relation.
4. The method of claim 2, wherein prior to obtaining the optimized field in the GSE slice according to the positional relationship, the method further comprises:
and determining that the optimized field exists in the GSE header of the GSE fragment according to the position information and the continuous relation.
5. The method of claim 1, wherein reducing a portion of fields in a GSE header of the GSE slice according to the optimization field to obtain a reduced target GSE slice comprises:
deleting partial fields in the GSE header of the GSE fragment according to the optimized fields;
changing the use of partial fields in the GSE header of the GSE fragment according to the optimized field;
and changing the length of partial fields in the GSE header of the GSE fragment according to the optimized field.
6. The method according to any of claims 1 to 5, wherein after reducing a part of fields in a GSE header of the GSE slice according to the optimized field to obtain a reduced target GSE slice, the method further comprises:
and recording optimization information of the GSE fragments, wherein the optimization information comprises the optimization fields and the reduction modes.
7. The method of any of claims 1 to 5, wherein the optimization field comprises a deletable field, a repurposable field, and a modifiable length field.
8. A data encapsulation processing apparatus, comprising:
the first determining module is used for determining the position relation between the GSE fragments encapsulated by the general stream encapsulation protocol and the sending unit;
an obtaining module, configured to obtain an optimized field in the GSE segment according to the position relationship;
a reduction module, configured to reduce, according to the optimized field, a part of fields in a GSE header of the GSE slice, to obtain a reduced target GSE slice;
and the packaging module is used for packaging the target GSE fragments.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202110721976.8A 2021-06-28 2021-06-28 Data encapsulation processing method and device, storage medium and electronic device Pending CN115604364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110721976.8A CN115604364A (en) 2021-06-28 2021-06-28 Data encapsulation processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110721976.8A CN115604364A (en) 2021-06-28 2021-06-28 Data encapsulation processing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115604364A true CN115604364A (en) 2023-01-13

Family

ID=84841052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110721976.8A Pending CN115604364A (en) 2021-06-28 2021-06-28 Data encapsulation processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115604364A (en)

Similar Documents

Publication Publication Date Title
US20120140686A1 (en) Method and apparatus for sending, receiving, and transmission of data packets (as amended)
US10299164B2 (en) Protocol stack adaptation method and apparatus
CN101803333B (en) Effective data block transmission method using header indicator
CN101848489B (en) Sending/receiving method and device of PDU (Protocol Data Unit)
US7978640B2 (en) Method and apparatus for transmitting and receiving data via media access control protocol in mobile communication system
CN102355694A (en) Data distribution method and device in wireless heterogeneous network and wireless network controller
US20170078916A1 (en) Data processing method and apparatus
US10817460B2 (en) RDMA data sending and receiving methods, electronic device, and readable storage medium
CN112003937A (en) Satellite data transmission method, satellite data transmission device, computer equipment and storage medium
CN104618961A (en) Single-channel TCP/ IP header compression method and system for intelligent power grid
WO2020220328A1 (en) Wireless communication method and apparatus
US10764411B2 (en) Stream control transmission protocol SCTP-based communications method and system, and apparatus
CN110535812B (en) Message transmission method, communication device and system
CN102017505A (en) Method and apparatus for managing transmission of TCP data segments
CN111224903A (en) Data transmission method, data transmission equipment and computer readable storage medium
CN115604364A (en) Data encapsulation processing method and device, storage medium and electronic device
CN102780618B (en) Method and device for data message transmission
CN108012289B (en) PDU (protocol data Unit) sending method and device and PDU receiving method and device
CN103906007A (en) Multimedia-message forwarding method and device
CN109639713B (en) IQ data frame and transmission and receiving method
CN107800653A (en) Message compression method and device
CN103179094B (en) Sending, receiving method, sending device and the reception device of IP packet head
CN115174699A (en) Processing method of Ethernet message and related equipment
CN112312476A (en) Service transmission method, device and computer readable storage medium
CN111836218B (en) Voice information forwarding method and device and data forwarding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination