Data sending method, receiving method, device, communication node and storage medium

By converting data frames into data frame groups and encapsulating them, the problem of a large XGEM frame header in passive optical fiber networks is solved and bandwidth utilization is improved.

CN112713960BActive Publication Date: 2024-10-29ZTE CORP

Patent Information

Application Number
CN201911025039.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-25
Publication Date
2024-10-29
Estimated Expiration
2039-10-25

AI Technical Summary

Technical Problem

In passive optical networks, XGEM frames have a relatively large frame header and a small payload, resulting in low bandwidth utilization, especially in the case of multi-channel binding.

Method used

Convert the data frames to be sent into data frame groups and encapsulate the data frame groups to reduce the overhead of frame headers and increase the proportion of data frames in encapsulated frames, thereby improving bandwidth utilization.

Benefits of technology

By reducing the proportion of frame headers in the encapsulation process, the proportion of data frames to be sent and the bandwidth utilization during data transmission are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112713960B_ABST
    Figure CN112713960B_ABST
Patent Text Reader

Abstract

The present application provides a data sending method, a receiving method, a device, a communication node and a storage medium. The method converts a data frame to be sent into a data frame group; encapsulates the data frame group to obtain an encapsulated frame; and sends the encapsulated frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a passive optical network, for example, to a data sending method, receiving method, device, communication node and storage medium. Background Art

[0002] In the Passive Optical Network (PON) standard of the International Telecommunication Union Telecommunication Standardization Group (ITU-T), a data frame is mapped into a GEM / XGEM (G-PON / XG-PON Encapsulation Method) frame for transmission. Taking the XGEM frame as an example, when the length of the data frame to be sent is short, the XGEM frame header accounts for a large proportion, while the XGEM frame payload accounts for a small proportion, and the bandwidth utilization is low. Especially in the case of multi-channel bonding (Channel Bonding), the XGEM frame header must be inserted on each channel, and the problem of low bandwidth utilization is more serious. Summary of the invention

[0003] The present application provides a data sending method, a receiving method, a device, a communication node and a storage medium to increase the proportion of data frames and improve bandwidth utilization.

[0004] The present application provides a data transmission method, including:

[0005] Convert the data frame to be sent into a data frame group;

[0006] Encapsulating the data frame group to obtain an encapsulated frame;

[0007] The encapsulated frame is sent.

[0008] The present application also provides a data receiving method, including:

[0009] Receive encapsulated frames;

[0010] Obtaining a data frame group according to the encapsulated frame;

[0011] The data frame group is converted into a target data frame.

[0012] The embodiment of the present application also provides a data sending device, including:

[0013] A first conversion module, configured to convert a data frame to be sent into a data frame group;

[0014] An encapsulation module, configured to encapsulate the data frame group to obtain an encapsulated frame;

[0015] The sending module is configured to send the encapsulated frame.

[0016] The present application also provides a data receiving device, including:

[0017] A receiving module, configured to receive encapsulated frames;

[0018] A decapsulation module, configured to obtain a data frame group according to the encapsulation frame;

[0019] The second conversion module is configured to convert the data frame group into a target data frame.

[0020] The present application also provides a communication node, including:

[0021] one or more processors;

[0022] A storage device for storing one or more programs;

[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned data sending method or data receiving method.

[0024] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the above-mentioned data sending method or data receiving method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of encapsulating a data frame to be sent;

[0026] Figure 2 A flowchart of a data sending method provided by an embodiment;

[0027] Figure 3 is a schematic diagram of an encapsulation frame in an embodiment;

[0028] Figure 4 is a schematic diagram of an encapsulation frame in another embodiment;

[0029] Figure 5 is a schematic diagram of an encapsulation frame in yet another embodiment;

[0030] Figure 6 A flowchart of a data receiving method provided by an embodiment;

[0031] Figure 7 A schematic diagram of the structure of a data sending device provided by an embodiment;

[0032] Figure 8 A schematic diagram of the structure of a data receiving device provided by an embodiment;

[0033] Fig. 9A schematic diagram of the structure of a communication node provided by an embodiment. DETAILED DESCRIPTION

[0034] The present application is described below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. It should also be noted that, for ease of description, only the parts related to the present application rather than all structures are shown in the accompanying drawings.

[0035] In the Passive Optical Network (PON) standard of the International Telecommunication Union Telecommunication Standardization Group (ITU-T), a data frame is mapped into a GEM / XGEM (G-PON / XG-PON Encapsulation Method) frame for transmission. Figure 1 FIG. 1 is a schematic diagram of encapsulating a data frame to be sent. The process of encapsulating a data frame to be sent is to encapsulate part of the content of a data frame to be sent (such as Figure 1 The process of mapping a portion of the data frame (shaded portion) into a partial field of an encapsulation frame, for example, mapping an Ethernet medium access control (MAC) frame into a GEM / XGEM (G-PON / XG-PON Encapsulation Method) frame. When the length of the data frame to be sent is short, the frame header of the XGEM frame accounts for a large proportion (8 bytes), while the payload of the XGEM frame accounts for a small proportion, and the bandwidth utilization is low. Especially in the case of multi-channel bonding (Channel Bonding), the frame header of the XGEM frame must be inserted on each channel, and the problem of low bandwidth utilization is more serious. It can be seen that the prior art encapsulates each data frame separately and transmits it, which has a large encapsulation overhead, a small proportion of effective data, and a low bandwidth utilization.

[0036] In an embodiment of the present application, a data transmission method is provided, which reduces the overhead of the frame header during the encapsulation process by converting the data frame to be transmitted into a data frame group, and encapsulating and transmitting the entire data frame group, thereby increasing the proportion of the data frame to be transmitted in the encapsulated frame, and improving the bandwidth utilization during data transmission. The method can be applied to the transmitting end of data in a passive optical fiber network, which is composed of an optical line terminal (OLT) connected to multiple optical network units (ONU) through a point-to-multipoint optical distribution network (ODN). The transmitting end of the data can be an OLT or an ONU.

[0037] Figure 2 FIG. 1 is a flow chart of a data transmission method provided by an embodiment. Figure 2 As shown, the method provided in this embodiment includes step 110, step 120 and step 130.

[0038] In step 110, the data frame to be sent is converted into a data frame group;

[0039] In step 120, the data frame group is encapsulated to obtain an encapsulated frame;

[0040] In step 130, the encapsulated frame is sent.

[0041] In this embodiment, the data frame to be sent can be an Ethernet MAC frame. The process of converting the data frame to be sent into a data frame group can be understood as splicing the data frame to be sent into a data frame group. During the splicing process, each data frame to be sent corresponds to a corresponding delineation field (Delineation), which is used to indicate the length of the corresponding data frame to be sent, so that the receiving end can identify the data frame group according to all the delineation fields and de-splice each independent data frame on this basis. The process of encapsulating the data frame group can be understood as adding a frame header to the data frame group to form a complete encapsulation frame. The frame header may include information indicating the length of the entire data frame group, and may also include information indicating the length of a specific data frame to be sent (for example, the first data frame to be sent). After the data frame to be sent is converted into a data frame group, encapsulation can be achieved using only one frame header, thereby effectively reducing the proportion of the frame header in the encapsulation frame and increasing the proportion of the data frame to be sent, thereby improving the bandwidth utilization during data transmission. It should be noted that the conversion, encapsulation, and sending operations in this embodiment are applicable to the case where there are one or more data frames to be sent.

[0042] In one embodiment, in the data frame group, each data frame to be sent corresponds to a boundary field, and the boundary field is used to indicate the length of the corresponding data frame to be sent.

[0043] Figure 3 FIG. 1 is a schematic diagram of an encapsulation frame in an embodiment. Figure 3 As shown, an encapsulated frame includes two parts: a frame header and payload data. For example, the frame header includes fields such as payload length indication, encryption indication, port ID, etc. In this embodiment, the payload data mainly refers to a data frame group converted from a data frame to be sent. In the splicing process, a delimiter field is added before each data frame to be sent to indicate the length of the data frame to be sent, and then the delimiter field 1, data frame 1 to be sent, delimiter field 2, data frame 2 to be sent...delimiter field n, data frame n to be sent are sequentially spliced ​​together to convert it into a data frame group. It should be noted that if there is only one data frame to be sent, the data frame to be sent and its corresponding delimiter field can constitute a data frame group.

[0044] In one embodiment, when the data frame to be sent is a data frame fragment, the boundary field is also used to indicate the fragmentation attribute of the corresponding data frame to be sent, and the fragmentation attribute is used to indicate that the corresponding data frame to be sent is the last fragment or not the last fragment.

[0045] In one embodiment, in at least one of the following cases, the data frame to be sent is a data frame fragment: the length of the data frame to be sent is greater than the maximum length that can be indicated by the corresponding boundary field; the data frame to be sent cannot be sent completely.

[0046] In this embodiment, the delimiter field includes an indication field for indicating the length of the corresponding data frame to be sent. Since the frame length that can be indicated by the indication field is limited, or the total length of the spliced ​​data frame group that can be indicated by the payload length indication field (PayloadLength Indicator) in the encapsulated frame header is limited, the data frame to be sent may need to be divided into data frame fragments for transmission, and multiple data frame fragments constitute a complete data frame to be sent. In this embodiment, the delimiter field also includes an indication field for indicating the fragmentation attribute of the corresponding data frame to be sent, thereby indicating whether the data frame to be sent is the last fragment, such as Figure 3 For example, for a MAC frame, the delimiter field includes a MAC frame length indication field (MAC Frame Length, MFL), and in the case of MAC frame fragmentation, the delimiter field also includes a fragmentation attribute (Last Fragment, LF) field. In addition, the delimiter field may also include a hybrid error correction (HEC) field.

[0047] For example, the delimiter field may include: a length indication field (14 bits), a fragmentation attribute indication field (1 bit), a reserved field (4 bits), and a hybrid error correction field (13 bits); or,

[0048] The demarcation field may include: a length indication field (10 bits), a fragmentation attribute indication field (1 bit), and a hybrid error correction field (13 bits).

[0049] In one embodiment, the encapsulating the data frame group further includes: encapsulating the boundary field of the first data frame to be sent in the data frame group in the encapsulation frame header, and the length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first data frame to be sent.

[0050] Figure 4 FIG. 1 is a schematic diagram of an encapsulation frame in another embodiment. Figure 4 As shown, during the splicing process, a corresponding delimiting field is added before other data frames to be sent except the first data frame to be sent, which is used to indicate the length of the corresponding data frame to be sent, and then the data frames to be sent are sequentially spliced ​​together in the order of data frame 1 to be sent, delimiting field 2, data frame 2 to be sent...delimiting field n, data frame n to be sent, and can be converted into a data frame group, which is the payload in the encapsulation frame. In this embodiment, the data frame group does not include the delimiting field of the first data frame to be sent, and the delimiting field of the first data frame to be sent is included in the encapsulation frame header, for example, it can be encapsulated in the options (Options) in the frame header.

[0051] In one embodiment, encapsulating the data frame group includes: indicating the length of the data frame group in an encapsulation frame header.

[0052] In this embodiment, the length of the data frame group is indicated by the encapsulation frame header.

[0053] Figure 5 FIG. 1 is a schematic diagram of an encapsulated frame in another embodiment. During the conversion and encapsulation process, each data frame to be sent in the data frame group is added with a corresponding delimiter field (the delimiter field corresponding to the first data frame to be sent can be included in the frame header), and the effective load length in the encapsulated frame is greatly increased. This embodiment expands the effective load length indication field PLI in the frame header. For example, when each data frame to be sent is encapsulated and sent separately, the PLI is 14 bits, that is, 2 14 =16384 bytes, and the optional Options are 18 bits. In this embodiment, the boundary field of the first data frame to be sent can occupy 14+1 bits in Options, and the other 3 bits in Options can be extended to PLI, so that PLI is extended to 17 bits, that is, 2 17=131072 bytes, thereby extending the length of the data frame group and being able to encapsulate more data frames to be sent in one encapsulation frame.

[0054] The data sending method of this embodiment converts the data frame to be sent into a data frame group, encapsulates and sends the entire data frame group, thereby reducing the overhead of the frame header during the encapsulation process, increasing the proportion of the data frame to be sent in the encapsulated frame, and improving the bandwidth utilization during data transmission.

[0055] The embodiment of the present application also provides a data receiving method, which is applied to a data receiving end in a passive optical fiber network, where the receiving end may be an OLT or an ONU. Figure 6 A flowchart of a data receiving method provided by an embodiment is shown in FIG. Figure 6 As shown, the method provided in this embodiment includes step 210, step 220 and step 230.

[0056] In step 210, receiving an encapsulation frame;

[0057] In step 220, a data frame group is obtained according to the encapsulation frame;

[0058] In step 230, the data frame group is converted into a target data frame.

[0059] In this embodiment, the target data frame is a data frame obtained after decapsulating and converting the received encapsulated frame, which corresponds to the data frame to be sent by the transmitter. Taking the target data frame as a MAC frame as an example, the encapsulated frame includes a frame header and a data frame group. The frame header may include information for indicating the length of the entire data frame group, and may also include information for indicating the length of a specific data frame in the data frame group; the data frame group consists of a target data frame. The process of converting the data frame group into a target data frame can be understood as de-splicing the target data frame to obtain each target data frame. Each target data frame in the data frame group corresponds to a demarcation field for indicating the length of the target data frame, and each target data frame can be de-spliced ​​according to the demarcation field corresponding to each target data frame. In the data receiving method of this embodiment, all target data frames (one or more) are encapsulated in the same encapsulated frame, and data transmission can be achieved with less encapsulation overhead and a higher data frame ratio, thereby improving bandwidth utilization during data transmission.

[0060] In one embodiment, converting the data frame group into a target data frame includes: determining the target data frames one by one according to the boundary fields in the data frame group.

[0061] In this embodiment, a corresponding boundary field is added to the target data frame before it is sent and converted into a data frame group. The data frame group can be de-spliced ​​according to each boundary field to obtain each target data frame. If there is only one target data frame, the data frame after removing the boundary field in the data frame group is the target data frame.

[0062] In one embodiment, determining the target data frames one by one according to the boundary fields in the data frame group includes:

[0063] Get the delimiting fields in the data frame group one by one;

[0064] The corresponding target data frame is determined from the data frame group according to the length of the target data frame indicated by each demarcation field.

[0065] refer to Figure 3 In the structure of the data frame group, in this embodiment, the boundary fields in the data frame group are obtained one by one. For each boundary field, the data frame after the boundary field and with a length equal to that indicated by the boundary field is the target data frame corresponding to the boundary field.

[0066] In one embodiment, the method further includes: when the target data frame is a data frame fragment,

[0067] When the fragment attribute of the data frame fragment indicated by the delimiter field indicates that the fragment is not the last fragment, temporarily storing the data frame fragment;

[0068] In the case that the fragment attribute of the data frame fragment indicated by the boundary field indicates that it is the last fragment, the stored data frame fragments and the data frame fragments are assembled in sequence to obtain the target data frame.

[0069] refer to Figure 3 In the structure of the data frame group, in this embodiment, the boundary fields in the data frame group are obtained one by one. For each boundary field, starting from the data frame fragment corresponding to the boundary field until the fragment attribute indicated by the boundary field is the last data frame fragment, a target data frame is constructed.

[0070] In one embodiment, obtaining a data frame group according to the encapsulation frame includes: determining the length of the data frame group according to the encapsulation frame header; and extracting the data frame group from the encapsulation frame according to the length of the data frame group. In this embodiment, the encapsulation frame header indicates the length of the data frame group, so that the receiving end can extract the data frame group according to the indicated length of the data frame group. For example, the length of the data frame group can be indicated by the PLI of the encapsulation frame header.

[0071] In one embodiment, a delimiter field in a frame header of an encapsulation frame is obtained as a delimiter field of a first target data frame in a data frame group.

[0072] In this embodiment, the encapsulation frame header includes a boundary field, and the boundary field is used to indicate the length of the first target data frame in the data frame group, and may also indicate the fragmentation attribute of the first target data frame.

[0073] The data receiving method of this embodiment extracts the data frame group from the encapsulation frame, converts the data frame group into a target data frame, and realizes data transmission with less frame header overhead and a higher data frame ratio, thereby improving the bandwidth utilization during data transmission.

[0074] The embodiment of the present application also provides a data sending device. Figure 7 FIG. 1 is a schematic diagram of the structure of a data sending device provided by an embodiment. Figure 7 As shown, the data sending device includes: a first conversion module 310, a packaging module 320 and a sending module 330.

[0075] A first conversion module 310 is configured to convert a data frame to be sent into a data frame group;

[0076] The encapsulation module 320 is configured to encapsulate the data frame group to obtain an encapsulated frame;

[0077] The sending module 330 is configured to send the encapsulated frame.

[0078] The data sending device of this embodiment converts the data frame to be sent into a data frame group, encapsulates and sends the entire data frame group, thereby reducing the overhead of the frame header during the encapsulation process, increasing the proportion of the data frame to be sent in the encapsulated frame, and improving the bandwidth utilization during data transmission.

[0079] In one embodiment, in the data frame group, each data frame to be sent corresponds to a boundary field, and the boundary field is used to indicate the length of the corresponding data frame to be sent.

[0080] In one embodiment, when the data frame to be sent is a data frame fragment, the boundary field is also used to indicate the fragmentation attribute of the corresponding data frame to be sent, and the fragmentation attribute is used to indicate that the corresponding data frame to be sent is the last fragment or not the last fragment.

[0081] In one embodiment, in at least one of the following cases, the data frame to be sent is a data frame fragment: the length of the data frame to be sent is greater than the maximum length that can be indicated by the corresponding boundary field; the data frame to be sent cannot be sent completely.

[0082] In one embodiment, the encapsulation module 320 is specifically configured as follows:

[0083] The length of the data frame group is indicated in the encapsulation frame header.

[0084] In one embodiment, the encapsulation module 320 is further configured to:

[0085] Encapsulating the boundary field corresponding to the first data frame to be sent in the data frame group in the encapsulation frame header;

[0086] The length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first data frame to be sent.

[0087] The data sending device proposed in this embodiment and the data sending method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the data sending method.

[0088] The embodiment of the present application also provides a data receiving device. Figure 8 FIG. 1 is a schematic diagram of the structure of a data sending device provided by an embodiment. Figure 8 As shown, the data receiving device includes: a receiving module 410 , a decapsulation module 420 and a second conversion module 430 .

[0089] A receiving module 410, configured to receive an encapsulated frame;

[0090] A decapsulation module 420, configured to obtain a data frame group according to the encapsulation frame;

[0091] The second conversion module 430 is configured to convert the data frame group into a target data frame.

[0092] The data receiving device of this embodiment extracts the data frame group from the encapsulated frame, converts the data frame group into a target data frame, and realizes data transmission with less frame header overhead and a higher data frame ratio, thereby improving the bandwidth utilization during data transmission.

[0093] In one embodiment, the second conversion module 430 is specifically configured as follows:

[0094] The target data frames are determined one by one according to the boundary fields in the data frame group.

[0095] In one embodiment, the second conversion module 430 is specifically configured as follows:

[0096] Get the delimiting fields in the data frame group one by one;

[0097] The corresponding target data frame is determined from the data frame group according to the length of the target data frame indicated by each demarcation field.

[0098] In one embodiment, when the target data frame is a data frame fragment, determining the target data frame one by one according to the boundary fields in the data frame group further includes:

[0099] When the fragment attribute of the data frame fragment indicated by the delimiter field indicates that the fragment is not the last fragment, temporarily storing the data frame fragment;

[0100] In the case that the fragment attribute of the data frame fragment indicated by the boundary field indicates that it is the last fragment, the stored data frame fragments and the data frame fragments are assembled in sequence to obtain the target data frame.

[0101] In one embodiment, the deblocking module 420 is specifically configured as follows:

[0102] Determine the length of the data frame group according to the encapsulation frame header;

[0103] The data frame group is extracted from the encapsulation frame according to the length of the data frame group.

[0104] In one embodiment, the decapsulation module 420 is further configured to:

[0105] The delimiter field in the frame header of the encapsulation frame is obtained as the delimiter field of the first target data frame in the data frame group.

[0106] The data receiving device proposed in this embodiment and the receiving and sending method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the data receiving method.

[0107] The embodiment of the present application also provides a communication node. The data sending method can be performed by a data sending device, which can be implemented by software and / or hardware and integrated in the communication node. The data receiving method can be performed by a data receiving device, which can be implemented by software and / or hardware and integrated in the communication node. The communication node can be a service node or a terminal.

[0108] Fig. 9 FIG. 1 is a schematic diagram of a communication node structure provided by an embodiment. Fig. 9 As shown, a communication node provided in this embodiment includes: a processor 510 and a storage device 520. The processor in the communication node may be one or more, Fig. 9 Taking a processor 510 as an example, the processor 510 and the storage device 520 in the device may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0109] The one or more programs are executed by the one or more processors 510, so that the one or more processors implement the data sending method or the data receiving method described in any of the above embodiments.

[0110] The storage device 520 in the communication node is a computer-readable storage medium and can be used to store one or more programs, which can be software programs, computer executable programs, and modules, such as program instructions / modules corresponding to the data sending method in the embodiment of the present invention (for example, the attached Figure 7 The modules in the data sending device shown include: a first conversion module 310, an encapsulation module 320 and a sending module 330). The processor 510 executes various functional applications and data processing of the communication node by running the software programs, instructions and modules stored in the storage device 520, that is, the data sending method or the data receiving method in the above method embodiment is implemented.

[0111] The storage device 520 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the device, etc. (such as the data frame group, encapsulation frame, etc. in the above-mentioned embodiment). In addition, the storage device 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the communication node via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0112] Furthermore, when one or more programs included in the above communication node are executed by the one or more processors 510, the following operations are implemented: a first conversion module is configured to convert a data frame to be sent into a data frame group; an encapsulation module is configured to encapsulate the data frame group to obtain an encapsulated frame; a sending module is configured to send the encapsulated frame. Or the following operations are implemented: receiving an encapsulated frame; obtaining a data frame group according to the encapsulated frame; and converting the data frame group into a target data frame.

[0113] The communication node proposed in this embodiment and the data sending method or data receiving method proposed in the above embodiments belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the data sending method or the data receiving method.

[0114] An embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a data sending method or a data receiving method when executed by a computer processor.

[0115] Through the above description of the implementation method, the technical personnel in the relevant field can understand that the present application can be implemented by means of software and general hardware, or by hardware. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including multiple instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the method described in any embodiment of the present application.

[0116] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.

[0117] The block diagram of any logic flow in the accompanying drawings of the present application can represent program steps, or can represent interconnected logic circuits, modules and functions, or can represent a combination of program steps and logic circuits, modules and functions. The computer program can be stored on a memory. The memory can have any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory device and system (digital versatile disc DVD or CD disc), etc. Computer-readable media may include non-transient storage media. The data processor can be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (FGPA) and a processor based on a multi-core processor architecture.

[0118] By way of exemplary and non-limiting examples, a detailed description of exemplary embodiments of the present application has been provided above. However, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art when considered in conjunction with the accompanying drawings and claims, but will not depart from the scope of the present invention. Therefore, the proper scope of the present invention will be determined according to the claims.

Claims

1. A data transmission method, It is characterized in that include: Convert the data frame to be sent into a data frame group; Encapsulating the data frame group to obtain an encapsulated frame; Sending the encapsulated frame; In the data frame group, each data frame to be sent corresponds to a delimiter field, and the delimiter field is used to indicate the length of the corresponding data frame to be sent; The encapsulating the data frame group comprises: Indicating the length of the data frame group in the encapsulation frame header; The encapsulating the data frame group further comprises: Encapsulating the boundary field corresponding to the first data frame to be sent in the data frame group in the encapsulation frame header; The length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first data frame to be sent.

2. The method according to claim 1, It is characterized in that In the case that the data frame to be sent is a data frame fragment, the boundary field is also used to indicate the fragmentation attribute of the corresponding data frame to be sent, and the fragmentation attribute is used to indicate that the corresponding data frame to be sent is the last fragment or not the last fragment.

3. The method according to claim 2, It is characterized in that In at least one of the following cases, the data frame to be sent is a data frame fragment: The length of the data frame to be sent is greater than the maximum length that can be indicated by the corresponding delimiter field; The data frame to be sent cannot be sent completely.

4. A data receiving method, It is characterized in that include: Receive encapsulated frames; Obtaining a data frame group according to the encapsulated frame; Converting the data frame group into a target data frame; The step of obtaining a data frame group according to the encapsulated frame comprises: Determine the length of the data frame group according to the encapsulation frame header; Extracting the data frame group from the encapsulation frame according to the length of the data frame group; The converting the data frame group into a target data frame comprises: Determine the target data frames one by one according to the boundary fields in the data frame group; The method further comprises: Obtaining the delimiting field in the frame header of the encapsulated frame as the delimiting field of the first target data frame in the data frame group; The length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first target data frame.

5. The method according to claim 4, It is characterized in that The step of determining the target data frames one by one according to the boundary fields in the data frame group comprises: Get the delimiting fields in the data frame group one by one; The corresponding target data frame is determined from the data frame group according to the length of the target data frame indicated by each demarcation field.

6. The method according to claim 4, It is characterized in that In the case where the target data frame is a data frame fragment, determining the target data frame one by one according to the boundary fields in the data frame group further includes: When the fragment attribute of the data frame fragment indicated by the delimiter field indicates that the fragment is not the last fragment, temporarily storing the data frame fragment; In the case that the fragment attribute of the data frame fragment indicated by the boundary field indicates that it is the last fragment, the stored data frame fragments and the data frame fragments are assembled in sequence to obtain the target data frame.

7. A data transmission device, It is characterized in that include: A first conversion module, configured to convert a data frame to be sent into a data frame group; An encapsulation module, configured to encapsulate the data frame group to obtain an encapsulated frame; A sending module, configured to send the encapsulated frame; In the data frame group, each data frame to be sent corresponds to a delimiter field, and the delimiter field is used to indicate the length of the corresponding data frame to be sent; The encapsulation module is configured as follows: Indicating the length of the data frame group in the encapsulation frame header; The encapsulation module is further configured to: Encapsulating the boundary field corresponding to the first data frame to be sent in the data frame group in the encapsulation frame header; The length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first data frame to be sent.

8. A data receiving device, It is characterized in that include: A receiving module, configured to receive encapsulated frames; A decapsulation module, configured to obtain a data frame group according to the encapsulation frame; A second conversion module is configured to convert the data frame group into a target data frame; The decapsulation module is configured as follows: Determine the length of the data frame group according to the encapsulation frame header; Extracting the data frame group from the encapsulation frame according to the length of the data frame group; The second conversion module is configured as follows: Determine the target data frames one by one according to the boundary fields in the data frame group; The decapsulation module is further configured to: Obtaining the delimiting field in the frame header of the encapsulated frame as the delimiting field of the first target data frame in the data frame group; The length of the data frame group indicated by the encapsulation frame header does not include the length of the boundary field of the first target data frame.

9. A communication node, It is characterized in that include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the data sending method according to any one of claims 1 to 3 or the data receiving method according to any one of claims 4 to 6.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the data sending method according to any one of claims 1 to 3 or the data receiving method according to any one of claims 4 to 6 is implemented.

Citation Information

Patent Citations

  • Method, device and system for transmitting and receiving data frames

    CN102026045A

  • Station and device for receiving aggregation frame inwireless LAN system, method thereof

    KR1020070061064A

Cited By

  • Data sending method and apparatus, data receiving method and apparatus, communication node, and storage medium

    WO2021078093A1