[go: up one dir, main page]

CN118041492B - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN118041492B
CN118041492B CN202410443147.1A CN202410443147A CN118041492B CN 118041492 B CN118041492 B CN 118041492B CN 202410443147 A CN202410443147 A CN 202410443147A CN 118041492 B CN118041492 B CN 118041492B
Authority
CN
China
Prior art keywords
data
frame
payload
data frame
bits
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.)
Active
Application number
CN202410443147.1A
Other languages
Chinese (zh)
Other versions
CN118041492A (en
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.)
ZTE Corp
Original Assignee
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202410443147.1A priority Critical patent/CN118041492B/en
Publication of CN118041492A publication Critical patent/CN118041492A/en
Application granted granted Critical
Publication of CN118041492B publication Critical patent/CN118041492B/en
Priority to PCT/CN2025/083114 priority patent/WO2025214093A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本公开提供一种数据传输方法、装置、设备及存储介质,涉及数据处理技术领域,用于解决PON系统中对带宽资源的使用效率较低的问题,包括:数据发送端将待传输的多个第一数据帧进行聚合处理,得到第二数据帧;第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分;数据发送端传输第二数据帧。

The present disclosure provides a data transmission method, device, equipment and storage medium, which relate to the field of data processing technology and are used to solve the problem of low utilization efficiency of bandwidth resources in a PON system, including: a data sending end aggregates multiple first data frames to be transmitted to obtain a second data frame; the second data frame includes a second payload part, and the second payload part includes the first payload part of each first data frame in the multiple first data frames; the data sending end transmits the second data frame.

Description

数据传输方法、装置、设备及存储介质Data transmission method, device, equipment and storage medium

技术领域Technical Field

本公开涉及数据处理技术领域,尤其涉及一种数据传输方法、装置、设备及存储介质。The present disclosure relates to the field of data processing technology, and in particular to a data transmission method, device, equipment and storage medium.

背景技术Background Art

随着光网络技术的不断发展,光纤到户(FTTH,Fiber to the Home)已经全面铺开,对应的局端产品光线路终端(Optical Line Terminal,OLT)和终端产品光网络单元(Optical Network Unit,ONU)也得到了广泛应用。在无源光网络(Passive OpticalNetwork,PON)系统中,PON系统的架构一般都包含OLT、ONU和光分配网络(OpticalDistribution Network,ODN),以实现数据的传输。With the continuous development of optical network technology, fiber to the home (FTTH) has been fully rolled out, and the corresponding central office products Optical Line Terminal (OLT) and terminal products Optical Network Unit (ONU) have also been widely used. In the Passive Optical Network (PON) system, the architecture of the PON system generally includes OLT, ONU and Optical Distribution Network (ODN) to achieve data transmission.

目前,在PON系统中,由于带宽资源是预先配置的固定的资源,在传输数据时,需要充分利用已有的带宽资源,才能传输更多的数据。因此,为了避免带宽资源的浪费,需要进一步的提高PON系统中对带宽资源的使用效率。At present, in the PON system, since bandwidth resources are pre-configured fixed resources, when transmitting data, it is necessary to fully utilize the existing bandwidth resources to transmit more data. Therefore, in order to avoid the waste of bandwidth resources, it is necessary to further improve the efficiency of bandwidth resource utilization in the PON system.

发明内容Summary of the invention

本公开实施例提供一种数据传输方法、装置、设备及存储介质,用于解决PON系统中对带宽资源的使用效率较低的问题。The embodiments of the present disclosure provide a data transmission method, apparatus, device and storage medium, which are used to solve the problem of low bandwidth resource utilization efficiency in a PON system.

一方面,提供一种数据传输方法,应用于数据发送端,该方法包括:数据发送端将待传输的多个第一数据帧进行聚合处理,得到第二数据帧;第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。On the one hand, a data transmission method is provided, which is applied to a data sending end, and the method includes: the data sending end aggregates multiple first data frames to be transmitted to obtain a second data frame; the second data frame includes a second payload part, and the second payload part includes the first payload part in each of the multiple first data frames.

数据发送端传输第二数据帧。The data sending end transmits the second data frame.

又一方面,提供一种数据传输方法,应用于数据接收端,该方法包括:数据接收端接收第二数据帧,第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。On the other hand, a data transmission method is provided, which is applied to a data receiving end, and the method includes: the data receiving end receives a second data frame, the second data frame includes a second payload part, and the second payload part includes a first payload part in each first data frame in multiple first data frames.

数据接收端基于第二数据帧,得到多个第一数据帧。The data receiving end obtains a plurality of first data frames based on the second data frame.

又一方面,提供一种数据传输装置,应用于数据发送端,该装置包括:第一处理模块和第一传输模块。On the other hand, a data transmission device is provided, which is applied to a data sending end. The device includes: a first processing module and a first transmission module.

第一处理模块,用于将待传输的多个第一数据帧进行聚合处理,得到第二数据帧;第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The first processing module is used to aggregate multiple first data frames to be transmitted to obtain a second data frame; the second data frame includes a second payload part, and the second payload part includes the first payload part in each first data frame in the multiple first data frames.

第一传输模块,用于传输第二数据帧。The first transmission module is used to transmit the second data frame.

又一方面,提供一种数据传输装置,应用于数据接收端,该装置包括:第二传输模块和第二处理模块。On the other hand, a data transmission device is provided, which is applied to a data receiving end. The device includes: a second transmission module and a second processing module.

第二传输模块,用于接收第二数据帧,第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The second transmission module is used to receive a second data frame, where the second data frame includes a second payload portion, and the second payload portion includes a first payload portion in each of the plurality of first data frames.

第二处理模块,用于基于第二数据帧,得到多个第一数据帧。The second processing module is used to obtain multiple first data frames based on the second data frame.

又一方面,提供一种电子设备,包括:存储器和处理器;存储器和处理器耦合;存储器用于存储处理器可执行的指令;处理器执行指令时执行上述任一实施例的数据传输方法。On the other hand, an electronic device is provided, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; and the processor executes the data transmission method of any of the above embodiments when executing the instructions.

又一方面,提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机指令,当计算机指令在计算机上运行时,使得计算机执行上述任一实施例的数据传输方法。On the other hand, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the data transmission method of any of the above embodiments.

又一方面,提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一实施例的数据传输方法。On the other hand, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to execute the data transmission method of any one of the above embodiments.

在本公开实施例中,通过将多个第一数据帧进行聚合处理,得到第二数据帧,可以使得第二数据帧包括的第二净荷部分中,包括多个第一数据帧中每个第一数据帧中的第一净荷部分。如此可以通过传输第二数据帧,实现传输每个第一数据帧中的第一净荷部分的效果,并且将多个第一数据帧进行聚合处理得到第二数据帧,可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In the embodiment of the present disclosure, by aggregating multiple first data frames to obtain a second data frame, the second payload portion included in the second data frame can include the first payload portion in each of the multiple first data frames. In this way, the effect of transmitting the first payload portion in each first data frame can be achieved by transmitting the second data frame, and aggregating multiple first data frames to obtain the second data frame can reduce the bandwidth occupied during data transmission, thereby improving the efficiency of using bandwidth resources.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本公开中的技术方案,下面将对本公开一些实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例的附图,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present disclosure, the drawings required for use in some embodiments of the present disclosure will be briefly introduced below. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure, and a person skilled in the art can also obtain other drawings based on these drawings.

图1为本公开一些实施例提供的一种通信系统示意图;FIG1 is a schematic diagram of a communication system provided by some embodiments of the present disclosure;

图2为本公开一些实施例提供的一种数据传输方法的流程示意图;FIG2 is a schematic flow chart of a data transmission method provided by some embodiments of the present disclosure;

图3为本公开一些实施例提供的一种数据帧的帧结构实例示意图;FIG3 is a schematic diagram of an example of a frame structure of a data frame provided in some embodiments of the present disclosure;

图4为本公开一些实施例提供的另一种数据帧的帧结构实例示意图;FIG4 is a schematic diagram of another frame structure example of a data frame provided in some embodiments of the present disclosure;

图5为本公开一些实施例提供的另一种数据传输方法的流程示意图;FIG5 is a schematic flow chart of another data transmission method provided by some embodiments of the present disclosure;

图6为本公开一些实施例提供的另一种数据传输方法的流程示意图;FIG6 is a flow chart of another data transmission method provided by some embodiments of the present disclosure;

图7为本公开一些实施例提供的另一种数据传输方法的流程示意图;FIG7 is a schematic flow chart of another data transmission method provided by some embodiments of the present disclosure;

图8为本公开一些实施例提供的另一种数据帧的帧结构实例示意图;FIG8 is a schematic diagram of another frame structure example of a data frame provided in some embodiments of the present disclosure;

图9为本公开一些实施例提供的一种数据帧聚合处理的实例示意图;FIG9 is a schematic diagram of an example of data frame aggregation processing provided by some embodiments of the present disclosure;

图10为本公开一些实施例提供的另一种数据帧的帧结构实例示意图;FIG10 is a schematic diagram of another frame structure example of a data frame provided in some embodiments of the present disclosure;

图11为本公开一些实施例提供的另一种数据帧的帧结构实例示意图;FIG11 is a schematic diagram of another frame structure example of a data frame provided in some embodiments of the present disclosure;

图12为本公开一些实施例提供的另一种数据帧聚合处理的实例示意图;FIG12 is a schematic diagram of another example of data frame aggregation processing provided by some embodiments of the present disclosure;

图13为本公开一些实施例提供的另一种数据帧的帧结构实例示意图;FIG13 is a schematic diagram of another frame structure example of a data frame provided in some embodiments of the present disclosure;

图14为本公开一些实施例提供的另一种数据传输方法的流程示意图;FIG14 is a flow chart of another data transmission method provided by some embodiments of the present disclosure;

图15为本公开一些实施例提供的另一种数据帧聚合处理的实例示意图;FIG15 is a schematic diagram of another example of data frame aggregation processing provided by some embodiments of the present disclosure;

图16为本公开一些实施例提供的另一种数据帧聚合处理的实例示意图;FIG16 is a schematic diagram of another example of data frame aggregation processing provided by some embodiments of the present disclosure;

图17为本公开一些实施例提供的另一种数据传输方法的流程示意图;FIG17 is a flow chart of another data transmission method provided by some embodiments of the present disclosure;

图18为本公开一些实施例提供的第一数据传输装置的结构示意图;FIG18 is a schematic structural diagram of a first data transmission device provided in some embodiments of the present disclosure;

图19为本公开一些实施例提供的第二数据传输装置的结构示意图;FIG19 is a schematic diagram of the structure of a second data transmission device provided in some embodiments of the present disclosure;

图20为本公开一些实施例提供的一种数据传输设备的结构示意图。FIG20 is a schematic diagram of the structure of a data transmission device provided in some embodiments of the present disclosure.

具体实施方式DETAILED DESCRIPTION

下面将结合本公开中的附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following will be combined with the drawings in the present disclosure to clearly and completely describe the technical solutions in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

需要说明的是,在本公开中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

在本公开的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。In the description of the present disclosure, unless otherwise specified, "/" means "or", for example, A/B can mean A or B. "And/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more.

在对本公开实施例提供的数据传输方法进行详细介绍之前,先对本公开实施例的实施环境和应用场景进行介绍。Before introducing the data transmission method provided by the embodiment of the present disclosure in detail, the implementation environment and application scenarios of the embodiment of the present disclosure are first introduced.

首先,对本公开实施例的应用场景进行介绍。First, the application scenarios of the embodiments of the present disclosure are introduced.

在PON系统中,无源光网络设备根据传输汇聚层(Transmission Convergence,TC)的协议不同,可以细分为千兆无源光网络设备(Gigabit-capable Passive OpticalNetwork,GPON)、10G无源光网络设备(10-Gigabit-capable Passive Optical Networks,XGPON)、10G对称无源光网络设备(10-Gigabit-capable Symmetric Passive OpticalNetworks,XGSPON)、高速无源光网络设备(Higher Speed Passive Optical Networks,HSPON)等。在PON系统中,通过预先配置带宽资源,来实现OLT与ONU之间的数据传输。但是配置的带宽资源为固定的资源量,在传输数据时,需要充分利用已有的带宽资源,才能传输更多的数据。因此,需要进一步考虑如何提高PON系统中对带宽资源的使用效率,以同时传输更多的数据。In the PON system, passive optical network equipment can be subdivided into Gigabit-capable Passive Optical Network (GPON), 10G Passive Optical Networks (XGPON), 10G Symmetric Passive Optical Networks (XGSPON), and High Speed Passive Optical Networks (HSPON) according to the different protocols of the transmission convergence layer (TC). In the PON system, data transmission between OLT and ONU is achieved by pre-configuring bandwidth resources. However, the configured bandwidth resources are fixed resources. When transmitting data, it is necessary to make full use of the existing bandwidth resources to transmit more data. Therefore, it is necessary to further consider how to improve the efficiency of bandwidth resource utilization in the PON system to transmit more data at the same time.

为了解决上述问题,本公开实施例提供一种数据传输方法,本公开实施例提供的数据传输方法应用于PON系统中。In order to solve the above problems, an embodiment of the present disclosure provides a data transmission method. The data transmission method provided by the embodiment of the present disclosure is applied to a PON system.

本公开通过将多个第一数据帧进行聚合处理,得到第二数据帧,可以使得第二数据帧包括的第二净荷部分中,包括多个第一数据帧中每个第一数据帧中的第一净荷部分。如此可以通过传输第二数据帧,实现传输每个第一数据帧中的第一净荷部分的效果,并且将多个第一数据帧进行聚合处理得到第二数据帧,可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。The present disclosure aggregates multiple first data frames to obtain a second data frame, so that the second payload portion included in the second data frame includes the first payload portion in each of the multiple first data frames. In this way, the effect of transmitting the first payload portion in each first data frame can be achieved by transmitting the second data frame, and the aggregation of multiple first data frames to obtain the second data frame can reduce the bandwidth occupied during data transmission, thereby improving the efficiency of using bandwidth resources.

也就是说,通过将多个第一数据帧进行聚合处理得到第二数据帧,可以在传输第二数据帧时,相较于传输多个第一数据帧,减少了对带宽资源的占用量,也即第二数据帧对带宽资源的占用量,小于多个第一数据帧对带宽资源的占用量。这样的聚合方法,可以将更多的数据帧进行聚合处理,从而同时传输更多的数据,提高对带宽资源的使用效率。That is to say, by aggregating multiple first data frames to obtain a second data frame, when transmitting the second data frame, the amount of bandwidth resources occupied can be reduced compared to transmitting multiple first data frames, that is, the amount of bandwidth resources occupied by the second data frame is less than the amount of bandwidth resources occupied by multiple first data frames. Such an aggregation method can aggregate more data frames, thereby transmitting more data at the same time and improving the efficiency of bandwidth resource utilization.

下面对本公开实施例的实施环境进行介绍。The implementation environment of the embodiments of the present disclosure is introduced below.

如图1所示,为本公开实施例提供的一种通信系统示意图,该通信系统可以包括:数据发送端101和数据接收端102。数据发送端101和数据接收端102进行有线或无线通信。As shown in Fig. 1, it is a schematic diagram of a communication system provided by an embodiment of the present disclosure, and the communication system may include: a data transmitting end 101 and a data receiving end 102. The data transmitting end 101 and the data receiving end 102 perform wired or wireless communication.

其中,数据发送端101可以将待传输的多个第一数据帧进行聚合处理,得到第二数据帧,并将第二数据帧传输至数据接收端102。The data transmitting end 101 may aggregate multiple first data frames to be transmitted to obtain a second data frame, and transmit the second data frame to the data receiving end 102 .

在一些实施例中,数据发送端101可以先将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个第三数据帧。然后,将得到的多个第三数据帧进行聚合处理,得到第二数据帧。并将第二数据帧传输至数据接收端102。In some embodiments, the data transmitting end 101 may first encapsulate each of the multiple first data frames to obtain multiple third data frames, and then aggregate the obtained multiple third data frames to obtain a second data frame, and transmit the second data frame to the data receiving end 102.

或者,数据发送端101可以基于多个第一数据帧,获取多个第一净荷部分。然后,将多个第一净荷部分进行拼接处理,得到第二数据帧。并将第二数据帧传输至数据接收端102。Alternatively, the data transmitting end 101 may obtain multiple first payload parts based on multiple first data frames, and then perform splicing processing on the multiple first payload parts to obtain a second data frame, and transmit the second data frame to the data receiving end 102.

在一些实施例中,数据发送端101还可以对第二数据帧中的第二净荷部分先进行压缩处理,得到压缩处理后的第二数据帧。然后,将压缩处理后的第二数据帧传输至数据接收端102。In some embodiments, the data transmitting end 101 may further compress the second payload portion in the second data frame to obtain a compressed second data frame, and then transmit the compressed second data frame to the data receiving end 102 .

具体的,数据发送端101对第二数据帧中的第二净荷部分中符合压缩条件的数据单元进行压缩处理,得到压缩处理后的数据单元。然后,基于压缩处理后的数据单元和第二净荷部分中不符合压缩条件的数据单元,得到压缩处理后的第二数据帧。并将压缩处理后的第二数据帧传输至数据接收端102。Specifically, the data transmitting end 101 compresses the data units that meet the compression condition in the second payload part of the second data frame to obtain the compressed data units. Then, based on the compressed data units and the data units that do not meet the compression condition in the second payload part, a compressed second data frame is obtained. The compressed second data frame is transmitted to the data receiving end 102.

对应的,数据接收端102可以接收数据发送端101传输的第二数据帧,并基于第二数据帧,得到多个第一数据帧。Correspondingly, the data receiving end 102 can receive the second data frame transmitted by the data transmitting end 101, and obtain multiple first data frames based on the second data frame.

需要说明的是,本公开实施例中的数据发送端101可以为OLT,数据接收端102可以为ONU;或者,数据发送端101可以为ONU,数据接收端102可以为OLT。或者可以为PON系统中用于传输数据的其他终端,对此本申请不做具体的限定。It should be noted that the data transmitting end 101 in the embodiment of the present disclosure may be an OLT, and the data receiving end 102 may be an ONU; or the data transmitting end 101 may be an ONU, and the data receiving end 102 may be an OLT. Or it may be other terminals for transmitting data in a PON system, which is not specifically limited in this application.

在介绍了本公开实施例的应用场景和实施环境之后,下面结合上述实施环境,对本公开实施例提供的数据传输方法进行详细介绍。After introducing the application scenario and implementation environment of the embodiment of the present disclosure, the data transmission method provided by the embodiment of the present disclosure is described in detail below in combination with the above implementation environment.

本公开实施例提供一种数据传输方法,应用于数据发送端,如图2所示,该数据传输方法可以包括:S201-S202。The embodiment of the present disclosure provides a data transmission method, which is applied to a data sending end. As shown in FIG. 2 , the data transmission method may include: S201 - S202 .

S201、数据发送端将待传输的多个第一数据帧进行聚合处理,得到第二数据帧。S201. A data transmitting end aggregates a plurality of first data frames to be transmitted to obtain a second data frame.

其中,第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The second data frame includes a second payload portion, and the second payload portion includes a first payload portion in each of the plurality of first data frames.

可以理解,上述待传输的多个第一数据帧为数据发送端(例如ONU)需要向数据接收端(例如OLT)发送的数据,第一数据帧中可以包括第一净荷部分和多个其他字段。It can be understood that the multiple first data frames to be transmitted are data that a data transmitter (eg, ONU) needs to send to a data receiver (eg, OLT), and the first data frame may include a first payload portion and multiple other fields.

在本公开实施例中,数据发送端和数据接收端为PON系统中用于传输数据的终端。具体的,PON系统根据TC层的协议不同,可以细分为GPON系统、XGPON系统、XGSPON系统等。本公开实施例以GPON系统、XGPON系统、XGSPON系统为例进行示例性的说明,但本公开所提供的方法并不局限于实施例所述的系统,具体还可以为其他系统,本公开不做具体限定。In the embodiments of the present disclosure, the data transmitter and the data receiver are terminals for transmitting data in the PON system. Specifically, the PON system can be subdivided into GPON system, XGPON system, XGSPON system, etc. according to different protocols of the TC layer. The embodiments of the present disclosure are illustrative with the GPON system, XGPON system, and XGSPON system as examples, but the method provided by the present disclosure is not limited to the system described in the embodiments, and can also be other systems, which are not specifically limited by the present disclosure.

需要说明的是,GPON系统采用的是GPON封装方式,即千兆无源光网络设备封装方式(GPON Encapsulation Method,GEM帧),GEM帧是一种在GPON系统上封装数据的方式,是GPON技术中最小的业务承载单元,也是所有业务要封装在其中的数据结构;同理,XGPON系统,即10G无源光网络设备封装方式(XGPON Encapsulation Method,XGEM帧)和XGSPON系统的封装方式采用的是XGEM帧。It should be noted that the GPON system uses the GPON encapsulation method, that is, the Gigabit Passive Optical Network Equipment Encapsulation Method (GPON Encapsulation Method, GEM frame). The GEM frame is a method of encapsulating data on the GPON system. It is the smallest service bearing unit in GPON technology and the data structure in which all services are encapsulated. Similarly, the XGPON system, that is, the 10G Passive Optical Network Equipment Encapsulation Method (XGPON Encapsulation Method, XGEM frame) and the XGSPON system use the XGEM frame.

在本公开实施例中,第一数据帧为以太网数据包,第一数据帧的第一净荷部分包括以下至少一项:目标地址、源地址、类型、长度、数据主体、帧校验序列。In the disclosed embodiment, the first data frame is an Ethernet data packet, and the first payload portion of the first data frame includes at least one of the following: destination address, source address, type, length, data body, and frame check sequence.

示例性的,图3为本申请示例性实施例提供的一种第一数据帧的帧结构实例示意图。如图3所示,第一数据帧包括的多个其他字段可以为:包间间隙(Inter packet gap)、前导码(Preamble)、帧起始定界符(Start Frame Delimiter,SFD)和帧结束(End of Frame,EOF);第一数据帧包括的第一净荷部分包括:目标地址(Destination Address,DA)、源地址(Source Address,SA)、类型/长度(Length/Type)、数据主体(MAC Client Data)、帧校验序列(Frame Check Sequence,FCS)。Exemplarily, Figure 3 is a schematic diagram of an example frame structure of a first data frame provided by an exemplary embodiment of the present application. As shown in Figure 3, the first data frame includes multiple other fields such as: Inter packet gap, preamble, Start Frame Delimiter (SFD) and End of Frame (EOF); the first payload part of the first data frame includes: Destination Address (DA), Source Address (SA), Type/Length (Length/Type), Data Body (MAC Client Data), Frame Check Sequence (FCS).

在本公开实施例中,第二净荷部分还包括多个第一字段,每个第一字段对应一个第一净荷部分,第一字段用于指示对应的第一净荷部分的字节长度。In the embodiment of the present disclosure, the second payload part also includes multiple first fields, each first field corresponds to a first payload part, and the first field is used to indicate the byte length of the corresponding first payload part.

可选的,第二数据帧可以为GEM帧,第一字段为封装前的净荷长度指示(OPLI),OPLI的字节长度可以为Xbit,具体的,X可以为合理的数值,例如12bit或14bit,例如,14bit可以指示对应的第一净荷部分的字节长度为16383字节。Optionally, the second data frame may be a GEM frame, and the first field may be a payload length indication (OPLI) before encapsulation. The byte length of the OPLI may be X bits. Specifically, X may be a reasonable value, such as 12 bits or 14 bits. For example, 14 bits may indicate that the byte length of the corresponding first payload part is 16383 bytes.

在本公开实施例中,第二数据帧还包括帧头,第二数据帧的帧头包括第二字段,第二字段用于指示第二净荷部分由多个第一净荷部分聚合得到。In the embodiment of the present disclosure, the second data frame further includes a frame header, the frame header of the second data frame includes a second field, and the second field is used to indicate that the second payload part is aggregated from multiple first payload parts.

可选的,在第二数据帧为GEM帧的情况下,第二字段为GEM帧中的PTI字段。Optionally, when the second data frame is a GEM frame, the second field is a PTI field in the GEM frame.

示例性的,图4为本申请示例性实施例提供的一种第二数据帧的帧结构实例示意图。如图4所示,第二数据帧包括:帧头(header)和第二净荷部分。其中,第二净荷部分中包括有多组字段,每组字段包括一个第一字段和一个第一净荷部分。例如,第二净荷部分中包括2组字段,每组字段包括一个第一字段和一个第一净荷部分。可以理解,第二数据帧由多少个第一数据帧进行聚合处理得到,则第二净荷部分中包括多少组字段。Exemplarily, FIG4 is a schematic diagram of an example frame structure of a second data frame provided by an exemplary embodiment of the present application. As shown in FIG4, the second data frame includes: a frame header and a second payload portion. Among them, the second payload portion includes multiple groups of fields, each group of fields includes a first field and a first payload portion. For example, the second payload portion includes 2 groups of fields, each group of fields includes a first field and a first payload portion. It can be understood that the second data frame is obtained by aggregating the number of first data frames, and the second payload portion includes the same number of groups of fields.

可选的,在第二数据帧为GEM帧的情况下,第二数据帧的帧头可以包括:净荷长度指示(Payload Length Indicator,PLI)、端口标识(Port-ID)、有效载荷类型指示器(Payload Type Indicator,PTI)和循环冗余校验码(Cyclic Redundancy Check,CRC)等字段。Optionally, when the second data frame is a GEM frame, the frame header of the second data frame may include fields such as payload length indication (Payload Length Indicator, PLI), port identifier (Port-ID), payload type indicator (Payload Type Indicator, PTI) and cyclic redundancy check (Cyclic Redundancy Check, CRC).

需要说明的是,有效载荷类型指示器PTI通过不同的字段编码(code),指示不同的数据类型,如表一所示,为有效载荷类型指示器PTI的字段编码(code)不同时,指示的数据类型。其中,有效载荷类型指示器编码(PTI code)包括:000、001、010、011、100、101、110、111,每个有效载荷类型指示器编码的定义(Meaning)分别为:000被定义为“用户数据片段,而不是帧的末尾(User data fragment,not the end of a frame)”;001被定义为“用户数据片段,帧的末尾(User data fragment,end of a frame)”;100被定义为“千兆无源光网络设备封装方式的操作、管理与维护,而不是帧的末尾(GEM OAM,not the end of aframe)”;101被定义为“千兆无源光网络设备封装方式的操作、管理与维护,帧的末尾(GEMOAM,end of a frame)”;111被定义为“再次进行封装得到的聚合数据帧”;010、011和110未被定义,是预留(Reserved)的编码。其中,操作、管理与维护(Operations, Administrationand Maintenance,OAM)。It should be noted that the payload type indicator PTI indicates different data types through different field codes, as shown in Table 1, which shows the data types indicated when the field codes (codes) of the payload type indicator PTI are different. Among them, the payload type indicator codes (PTI code) include: 000, 001, 010, 011, 100, 101, 110, 111, and the meaning of each payload type indicator code is: 000 is defined as "user data fragment, not the end of a frame"; 001 is defined as "user data fragment, end of a frame"; 100 is defined as "GEM OAM, not the end of a frame"; 101 is defined as "GEMOAM, end of a frame"; 111 is defined as "aggregate data frame obtained by re-encapsulation"; 010, 011 and 110 are not defined and are reserved. Among them, operations, administration and maintenance (OAM).

表一Table 1

需要说明的是,在PTI为3bits的情况下,PTI的字段编码(code)共有8中情况的取值,在PTI的字段编码(code)的取值不同时,用于指示的信息不同。例如,PTI的字段编码(code)的取值为000的情况下,用于指示“User data fragment,not the end of aframe”,PTI的字段编码(code)的取值为001的情况下,用于指示“User data fragment,endof a frame”,PTI的字段编码(code)的取值为100的情况下,用于指示“GEM OAM,not theend of a frame”,PTI的字段编码(code)的取值为101的情况下,用于指示“GEM OAM,endof a frame”。其中,PTI的字段编码(code)的取值为010、011、110和111是还没有被定义的编码,因此本公开实施例可以通过定义PTI的字段编码(code)的取值(例如取值为111),指示第二数据帧的第二净荷部分由多个第一净荷部分聚合得到(即第二数据帧为再次进行封装得到的聚合数据帧)。It should be noted that, when the PTI is 3 bits, the PTI field code has 8 values. When the PTI field code has different values, the information used for indication is different. For example, when the PTI field code is 000, it is used to indicate "User data fragment, not the end of a frame", when the PTI field code is 001, it is used to indicate "User data fragment, end of a frame", when the PTI field code is 100, it is used to indicate "GEM OAM, not the end of a frame", and when the PTI field code is 101, it is used to indicate "GEM OAM, end of a frame". Among them, the values of the PTI field code (code) 010, 011, 110 and 111 are codes that have not yet been defined. Therefore, the embodiment of the present disclosure can indicate that the second payload part of the second data frame is aggregated from multiple first payload parts (that is, the second data frame is an aggregated data frame obtained by encapsulating again) by defining the value of the PTI field code (code) (for example, the value is 111).

可选的,第二数据帧还可以为XGEM帧,第一字段为XOPLI。XOPLI的字节长度可以为Ybit,具体的,Y可以为合理的数值,例如12bit或14bit,例如,14bit可以指示对应的第一净荷部分的字节长度为16383字节。Optionally, the second data frame may also be an XGEM frame, and the first field is XOPLI. The byte length of XOPLI may be Y bits, and specifically, Y may be a reasonable value, such as 12 bits or 14 bits. For example, 14 bits may indicate that the byte length of the corresponding first payload part is 16383 bytes.

可选的,在第二数据帧为XGEM帧的情况下,第二字段为XGEM帧中的选项(OPTIONs字段)。Optionally, when the second data frame is an XGEM frame, the second field is an option (OPTIONs field) in the XGEM frame.

可选的,在第二数据帧为XGEM帧的情况下,第二数据帧的帧头可以包括:净荷长度指示(PLI)、密钥索引(Key index,KI)、XGEM端口标识(Port-ID)、选项(Options)、最后指示(LF)和信头差错校验(Header Error Check,HEC)等字段。Optionally, when the second data frame is an XGEM frame, the frame header of the second data frame may include fields such as payload length indication (PLI), key index (Key index, KI), XGEM port identifier (Port-ID), options (Options), last indication (LF) and header error check (Header Error Check, HEC).

S202、数据发送端传输第二数据帧。S202: The data sending end transmits a second data frame.

在本公开实施例中,如图5所示,数据传输方法具体可以包括:S501-S503,上述S202,具体可以通过S502和S503实现。In the embodiment of the present disclosure, as shown in FIG. 5 , the data transmission method may specifically include: S501 - S503 , and the above S202 may specifically be implemented through S502 and S503 .

S501、数据发送端将待传输的多个第一数据帧进行聚合处理,得到第二数据帧。S501. A data transmitting end aggregates a plurality of first data frames to be transmitted to obtain a second data frame.

具体的,对于S501的描述可以参考上述S201,此处不再赘述。Specifically, the description of S501 may refer to the above S201, which will not be repeated here.

S502、数据发送端对第二数据帧中的第二净荷部分进行压缩处理,得到压缩处理后的第二数据帧。S502: The data transmitting end compresses the second payload part in the second data frame to obtain a compressed second data frame.

S503、数据发送端传输压缩处理后的第二数据帧。S503: The data sending end transmits the compressed second data frame.

可以理解,在数据发送端得到聚合的第二数据帧之后,还可以进一步的对第二数据帧中的第二净荷部分进行压缩处理,以进一步的降低第二数据帧对带宽的占用量,提高对带宽资源的使用效率。It can be understood that after the data sending end obtains the aggregated second data frame, the second payload part in the second data frame can be further compressed to further reduce the bandwidth occupied by the second data frame and improve the efficiency of bandwidth resource utilization.

在本公开实施例中,第二净荷部分包括多个数据单元,每个数据单元包括k个比特,k为大于1的整数。如图6所示,数据传输方法具体可以包括:S601-S604,上述S502具体可以通过S602和S603实现。In the embodiment of the present disclosure, the second payload part includes multiple data units, each data unit includes k bits, and k is an integer greater than 1. As shown in Fig. 6, the data transmission method may specifically include: S601-S604, and the above S502 may specifically be implemented through S602 and S603.

S601、数据发送端将待传输的多个第一数据帧进行聚合处理,得到第二数据帧。S601. A data transmitting end aggregates a plurality of first data frames to be transmitted to obtain a second data frame.

具体的,对于S601的描述可以参考上述S201,此处不再赘述。Specifically, the description of S601 may refer to the above S201, which will not be repeated here.

S602、数据发送端对第二数据帧中的第二净荷部分中符合压缩条件的数据单元进行压缩处理,得到压缩处理后的数据单元。S602: The data transmitting end compresses the data units that meet the compression condition in the second payload part of the second data frame to obtain compressed data units.

S603、数据发送端基于压缩处理后的数据单元和第二净荷部分中不符合压缩条件的数据单元,得到压缩处理后的第二数据帧。S603: The data transmitting end obtains a compressed second data frame based on the compressed data unit and the data unit in the second payload part that does not meet the compression condition.

其中,压缩条件包括:数据单元中的前m位比特的取值为第一取值,且后n位比特的取值为第二取值,m大于预设数值,m与n之和等于k;压缩处理后的数据单元包括q个比特,q个比特中第一位比特的取值为第一取值,后q-1位比特用于指示m的取值。Among them, the compression conditions include: the value of the first m bits in the data unit is a first value, and the value of the last n bits is a second value, m is greater than a preset value, and the sum of m and n is equal to k; the compressed data unit includes q bits, the value of the first bit among the q bits is the first value, and the last q-1 bits are used to indicate the value of m.

S604、数据发送端传输压缩处理后的第二数据帧。S604: The data sending end transmits the compressed second data frame.

示例性的,无论在第二数据帧为GEM帧的情况下,或者,在第二数据帧为XGEM帧的情况下,对于GEM帧中的GEM payload和XGEM帧中的XGEM payload,均可以进行报文的压缩,这样可以进一步降低对带宽的占用量,提到带宽的利用率。Exemplarily, whether the second data frame is a GEM frame or an XGEM frame, messages can be compressed for both the GEM payload in the GEM frame and the XGEM payload in the XGEM frame, which can further reduce bandwidth occupancy and improve bandwidth utilization.

如表二所示,对于符合压缩条件的字节(例如前m位比特的取值为1,后n位比特的取值为0),例如对一个字节中的8个bit进行压缩处理,得到5个bit的压缩字节。这5个bit中的第1个bit代表是1,后面的bit代表的是1的个数,以此类推。对于前m位比特的取值为0,后n位比特的取值为1的压缩方式采用相同的方法,这样1个字节就可以减少3个bit。As shown in Table 2, for bytes that meet the compression conditions (for example, the first m bits are 1 and the last n bits are 0), for example, 8 bits in a byte are compressed to obtain a 5-bit compressed byte. The first bit of the 5 bits represents 1, and the following bits represent the number of 1s, and so on. The same method is used for the compression method where the first m bits are 0 and the last n bits are 1, so that 1 byte can reduce 3 bits.

表二Table 2

可以理解,对1000 0000进行压缩,得到的1 0001,可以通过1 0001中的第一位1指示压缩前的字节的第一位为1,通过1 0001中的后四位0001指示压缩前的字节的前1位为1,后7位为0;对1100 0000进行压缩,得到的1 0010,可以通过1 0010中的第一位1指示压缩前的字节的第一位为1,通过1 0010中的后四位0010指示压缩前的字节的前2位为1,后6位为0。同理,对于1110 0000和1 0011、1111 0000和1 0100、1111 1000和1 0101、1111 1100和10110、1111 1110和1 1110、1111 1111和1 1000的理解方式相同,此处不再赘述。It can be understood that when 1000 0000 is compressed, the resulting 1 0001 can be indicated by the first bit 1 in 1 0001, indicating that the first bit of the byte before compression is 1, and the last four bits 0001 in 1 0001 can indicate that the first bit of the byte before compression is 1, and the last 7 bits are 0; when 1100 0000 is compressed, the resulting 1 0010 can be indicated by the first bit 1 in 1 0010, indicating that the first bit of the byte before compression is 1, and the last four bits 0010 in 1 0010 can indicate that the first 2 bits of the byte before compression are 1, and the last 6 bits are 0. Similarly, the understanding of 1110 0000 and 1 0011, 1111 0000 and 1 0100, 1111 1000 and 1 0101, 1111 1100 and 10110, 1111 1110 and 1 1110, 1111 1111 and 1 1000 is the same and will not be repeated here.

在本公开实施例中,提供一种对数据单元进行压缩处理的方法,可以通过进一步的对第二数据帧中的第二净荷部分中符合压缩条件的数据单元进行压缩处理,得到压缩处理后的第二数据帧,从而进一步的减少降低压缩处理后的第二数据帧的比特数量,进一步的减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In an embodiment of the present disclosure, a method for compressing data units is provided, by further compressing data units in a second payload part of a second data frame that meet compression conditions to obtain a compressed second data frame, thereby further reducing the number of bits in the compressed second data frame, further reducing the amount of bandwidth occupied during data transmission, and thus improving the efficiency of bandwidth resource utilization.

在本公开实施例中,通过将多个第一数据帧进行聚合处理,得到第二数据帧,可以使得第二数据帧包括的第二净荷部分中,包括多个第一数据帧中每个第一数据帧中的第一净荷部分。如此可以通过传输第二数据帧,实现传输每个第一数据帧中的第一净荷部分的效果,并且将多个第一数据帧进行聚合处理得到第二数据帧,可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In the embodiment of the present disclosure, by aggregating multiple first data frames to obtain a second data frame, the second payload portion included in the second data frame can include the first payload portion in each of the multiple first data frames. In this way, the effect of transmitting the first payload portion in each first data frame can be achieved by transmitting the second data frame, and aggregating multiple first data frames to obtain the second data frame can reduce the bandwidth occupied during data transmission, thereby improving the efficiency of using bandwidth resources.

在第一种可能的实现方式中,如图7所示,数据传输方法具体可以包括:S701-S703,上述S201,具体可以通过S701和S702实现。In a first possible implementation manner, as shown in FIG. 7 , the data transmission method may specifically include: S701 - S703 , and the above S201 may specifically be implemented through S701 and S702 .

S701、数据发送端将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个第三数据帧。S701. A data transmitting end encapsulates each first data frame among a plurality of first data frames to obtain a plurality of third data frames.

其中,第一数据帧封装处理得到的第三数据帧包括第一数据帧中的第一净荷部分。The third data frame obtained by encapsulating the first data frame includes the first payload part in the first data frame.

S702、数据发送端将多个第三数据帧进行聚合处理,得到第二数据帧。S702: The data transmitting end aggregates multiple third data frames to obtain a second data frame.

S703、数据发送端传输第二数据帧。S703: The data sending end transmits a second data frame.

需要说明的是,对于每个小字节的以太网数据包中的净荷部分(即从目标地址DA到帧校验序列FCS)进行封装得到GEM帧(或XGEM帧),在封装的过程中,大量的小字节的以太网数据包,封装得到的大量的GEM帧中,由于每个GEM帧中均包括帧头,就会有大量的帧头,这样在传输大量的GEM帧时对带宽的占用量是较大的。因此,对于GEM帧中相同Port-ID的GEM帧,可以再次的进行统一的封装,以减少帧头对带宽的占用量。It should be noted that the payload part (i.e., from the destination address DA to the frame check sequence FCS) in each small-byte Ethernet data packet is encapsulated to obtain a GEM frame (or XGEM frame). In the encapsulation process, a large number of small-byte Ethernet data packets are encapsulated into a large number of GEM frames. Since each GEM frame includes a frame header, there will be a large number of frame headers, so the bandwidth occupied when transmitting a large number of GEM frames is large. Therefore, for GEM frames with the same Port-ID in the GEM frame, a unified encapsulation can be performed again to reduce the bandwidth occupied by the frame header.

可以理解,上述多个第一数据帧中的每个第一数据帧对应了同一个端口标识(Port-ID),即为多个第一数据帧中的每个第一数据帧配置的Port-ID是相同的。从而在对每个第一数据帧分别进行封装时,可以使得得到的封装数据帧的帧头中包括相同的Port-ID。It can be understood that each of the above-mentioned multiple first data frames corresponds to the same port identifier (Port-ID), that is, the Port-ID configured for each of the multiple first data frames is the same. Therefore, when each first data frame is encapsulated separately, the frame header of the obtained encapsulated data frame can include the same Port-ID.

在第一种可能的示例中,在PON系统具体为GPON系统的情况下,第二数据帧为GEM帧,首先需要先将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个GEM帧(即第三数据帧)。然后,将多个GEM帧进行聚合处理,得到聚合的GEM帧(即第二数据帧)。In a first possible example, when the PON system is specifically a GPON system, the second data frame is a GEM frame, and each of the multiple first data frames needs to be encapsulated to obtain multiple GEM frames (i.e., third data frames). Then, the multiple GEM frames are aggregated to obtain an aggregated GEM frame (i.e., second data frame).

示例性的,图8为本申请示例性实施例提供的一种GEM帧的帧结构实例示意图。如图8所示,为对多个第一数据帧(例如太网数据包)进行聚合处理,得到的千兆无源光网络设备封装方式帧(GEM帧)的帧结构,GEM帧包括:千兆无源光网络设备封装方式帧的帧头(GEMheader)(5bytes)和千兆无源光网络设备封装方式帧的净荷部分(GEM payload)(即第二净荷部分)。其中,GEM payload包括有多组字段,每组字段包括一个封装前的净荷长度指示(OPLI)(Xbit)和一个封装前的GEM payload(即一个第一数据帧中的第一净荷部分)。例如,GEM payload包括2组字段,第一组字段包括一个OPLI和一个GEM payload1;第二组字段包括一个OPLI和一个GEM payload2。Exemplarily, FIG8 is a schematic diagram of an example of a frame structure of a GEM frame provided by an exemplary embodiment of the present application. As shown in FIG8, a plurality of first data frames (such as Ethernet data packets) are aggregated to obtain a frame structure of a Gigabit passive optical network device encapsulation mode frame (GEM frame), and the GEM frame includes: a frame header (GEMheader) (5 bytes) of a Gigabit passive optical network device encapsulation mode frame and a payload portion (GEM payload) of a Gigabit passive optical network device encapsulation mode frame (i.e., the second payload portion). Among them, the GEM payload includes multiple groups of fields, each group of fields includes a pre-encapsulation payload length indication (OPLI) (Xbit) and a pre-encapsulation GEM payload (i.e., the first payload portion in a first data frame). For example, the GEM payload includes 2 groups of fields, the first group of fields includes an OPLI and a GEM payload1; the second group of fields includes an OPLI and a GEM payload2.

具体的,图9为本申请示例性实施例提供的一种数据帧聚合处理的实例示意图。如图9所示,对第一数据帧进行封装得到GEM帧,需要首先针对多个第一数据帧分别进行封装处理,将一个第一数据帧中的目标地址(DA)、源地址(SA)、类型/长度(Length/Type)、数据主体(MAC Client Data)、帧校验序列(FCS)进行封装,得到一个第一数据帧对应的一个GEM帧的GEM payload(可以称为第三数据帧的第三净荷部分),并且生成对应的帧头,从的得到一个第一数据帧对应的GEM帧,并且GEM帧还包括:净荷长度指示(PLI)、端口标识(Port-ID)、有效载荷类型指示器(PTI)和循环冗余校验码(CRC)。Specifically, Figure 9 is a schematic diagram of an example of data frame aggregation processing provided by an exemplary embodiment of the present application. As shown in Figure 9, to encapsulate the first data frame to obtain a GEM frame, it is necessary to first perform encapsulation processing on multiple first data frames respectively, encapsulate the destination address (DA), source address (SA), type/length (Length/Type), data body (MAC Client Data), and frame check sequence (FCS) in a first data frame, and obtain a GEM payload of a GEM frame corresponding to a first data frame (which can be called the third payload part of the third data frame), and generate a corresponding frame header, and obtain a GEM frame corresponding to the first data frame, and the GEM frame also includes: payload length indication (PLI), port identifier (Port-ID), payload type indicator (PTI) and cyclic redundancy check code (CRC).

然后,将每个第一数据帧对应的GEM帧,进行聚合处理,以将每个第一数据帧对应的GEM帧中的GEM payload进行聚合,即可得到聚合的GEM帧(即第二数据帧)。Then, the GEM frames corresponding to each first data frame are aggregated to aggregate the GEM payloads in the GEM frames corresponding to each first data frame, thereby obtaining an aggregated GEM frame (ie, the second data frame).

示例性的,图10为本申请示例性实施例提供的一种数据帧的帧结构实例示意图。如图10所示,一种GEM帧的帧头结构,GEM帧的帧头包括:净荷长度指示(PLI)、端口标识(Port-ID)、有效载荷类型指示器(PTI)和信头差错校验(HEC)。其中,净荷长度指示PLI用于指示GEM payload的字节长度,可以为12 bits;端口标识(Port-ID)可以为12 bits;有效载荷类型指示器(PTI)用于指示第三净荷部分的数据类型,可以为3 bits;信头差错校验(HEC)可以为13 bits。Exemplarily, FIG10 is a schematic diagram of a frame structure example of a data frame provided by an exemplary embodiment of the present application. As shown in FIG10, a frame header structure of a GEM frame, the frame header of the GEM frame includes: a payload length indication (PLI), a port identifier (Port-ID), a payload type indicator (PTI) and a header error check (HEC). Among them, the payload length indication PLI is used to indicate the byte length of the GEM payload, which can be 12 bits; the port identifier (Port-ID) can be 12 bits; the payload type indicator (PTI) is used to indicate the data type of the third payload part, which can be 3 bits; the header error check (HEC) can be 13 bits.

例如,数据发送端发送64字节的报文(即多个第一数据帧),GPON系统的上行最大带宽是19438字节,其中PLI字段的长度是12 bit,GEM payload的最大长度是4095字节。因此,有19438/(64+5)(约等于282)个GEM 帧。如果基于本申请实施例,可以将相同Port-ID的GEM帧再进行统一的封装,那么就只有19438/(4095+5)(约等于5)个GEM,即减少了277个GEM帧,也就减少了277个GEM帧的帧头,相当于减少了277*5=1385个字节。而对于再进行统一的封装,假如使用的OPLI为14bit,则每个GEM帧要占用14bit,即要占用282*14/8=494字节,因此可以减少1385-494=891字节,从而在传输数据时,减少了带宽的占用量,提高了对带宽的利用率。For example, the data transmitter sends a 64-byte message (i.e., multiple first data frames), and the maximum upstream bandwidth of the GPON system is 19438 bytes, of which the length of the PLI field is 12 bits, and the maximum length of the GEM payload is 4095 bytes. Therefore, there are 19438/(64+5) (approximately equal to 282) GEM frames. If, based on the embodiment of the present application, the GEM frames with the same Port-ID can be uniformly encapsulated, then there are only 19438/(4095+5) (approximately equal to 5) GEMs, which means that 277 GEM frames are reduced, and the frame headers of 277 GEM frames are reduced, which is equivalent to reducing 277*5=1385 bytes. For unified encapsulation, if the OPLI used is 14 bits, each GEM frame will occupy 14 bits, that is, 282*14/8=494 bytes, so 1385-494=891 bytes can be reduced, thereby reducing the bandwidth occupancy and improving the bandwidth utilization when transmitting data.

并且,由于现有PTI的字段编码还有4个编码没有被定义(即010、011、110和111),因此可以增加对字段编码的定义如表三所示:比如010代表净荷长度指示(PLI)的字段长度增加1个bit,即GEM payload的长度最长为13比特bit(即8191字节);或者,比如011代表PLI的字段长度增加2个bit,即GEM payload的长度最长为14比特bit(即16383字节);或者,比如110代表PLI的字段长度增加3个bit,即GEM payload的长度最长为15 bit(即32767字节),但是GPON系统的上行最大带宽是19438字节,所以110用来代表GEM payload的长度最长为19438-5=19433字节。Furthermore, since there are 4 undefined codes (i.e., 010, 011, 110, and 111) in the existing PTI field codes, the definition of field codes can be increased as shown in Table 3: for example, 010 represents that the field length of the payload length indication (PLI) is increased by 1 bit, i.e., the maximum length of the GEM payload is 13 bits (i.e., 8191 bytes); or, for example, 011 represents that the field length of the PLI is increased by 2 bits, i.e., the maximum length of the GEM payload is 14 bits (i.e., 16383 bytes); or, for example, 110 represents that the field length of the PLI is increased by 3 bits, i.e., the maximum length of the GEM payload is 15 bits (i.e., 32767 bytes), but the maximum upstream bandwidth of the GPON system is 19438 bytes, so 110 is used to represent that the maximum length of the GEM payload is 19438-5=19433 bytes.

再例如,发送16383字节的数据包,之前需要封装为5个GEM帧,现在只需要封装为1个GEM帧,1个GEM帧的帧头占用5个字节,即节省了20字节的带宽占用。For another example, a 16383-byte data packet that previously needed to be encapsulated into 5 GEM frames now only needs to be encapsulated into 1 GEM frame. The frame header of 1 GEM frame occupies 5 bytes, which saves 20 bytes of bandwidth.

再例如,当GEM payload的长度最长为14 bit时,对于发送64字节的报文,GEMpayload可以是19433字节,通过对相同Port-ID的GEM帧再进行统一的封装,就可以通过一个GEM帧发送64字节的报文。即减少了281个GEM帧的帧头,因此减少了占用281*5=1405字节。而每个GEM帧的GEM payload要占用14bit,即要占用282*14/8=494字节,因此可以减少1405-494=911字节的占用。For another example, when the maximum length of the GEM payload is 14 bits, for a 64-byte message, the GEM payload can be 19433 bytes. By uniformly encapsulating the GEM frames with the same Port-ID, a 64-byte message can be sent through one GEM frame. That is, the frame headers of 281 GEM frames are reduced, thus reducing the occupied 281*5=1405 bytes. The GEM payload of each GEM frame occupies 14 bits, that is, 282*14/8=494 bytes, so the occupied 1405-494=911 bytes can be reduced.

表三Table 3

在第二种可能的示例中,在PON系统具体为XGPON系统或XGSPON系统的情况下,第二数据帧可以为XGEM帧。首先需要先将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个XGEM帧(即第三数据帧)。然后,将多个XGEM帧进行聚合处理,得到聚合的XGEM帧(即第二数据帧)。In a second possible example, when the PON system is specifically an XGPON system or an XGSPON system, the second data frame may be an XGEM frame. First, each of the multiple first data frames needs to be encapsulated to obtain multiple XGEM frames (i.e., the third data frame). Then, the multiple XGEM frames are aggregated to obtain an aggregated XGEM frame (i.e., the second data frame).

示例性的,图11为本申请示例性实施例提供的一种数据帧的帧结构实例示意图。如图11所示,一种XGEM帧的帧结构,为对多个第一数据帧(例如太网数据包)进行聚合处理,得到的10G无源光网络设备封装方式帧(XGEM帧)的帧结构,XGEM帧包括:10G无源光网络设备封装方式帧的帧头(XGEM header)(8bytes)和10G无源光网络设备封装方式帧的净荷部分(XGEM payload)(即第二净荷部分)。其中,XGEM payload包括有多组字段,每组字段包括一个封装前的净荷长度指示(XOPLI)(Ybit)和一个XGEM payload(即一个第一数据帧中的第一净荷部分)。例如,XGEM payload包括2组字段,第一组字段包括一个XOPLI和一个XGEMpayload1;第二组字段包括一个XOPLI和一个XGEM payload2。Exemplarily, FIG11 is a schematic diagram of an example of a frame structure of a data frame provided by an exemplary embodiment of the present application. As shown in FIG11, a frame structure of an XGEM frame is a frame structure of a 10G passive optical network device encapsulation mode frame (XGEM frame) obtained by aggregating multiple first data frames (such as Ethernet data packets). The XGEM frame includes: a frame header (XGEM header) (8 bytes) of a 10G passive optical network device encapsulation mode frame and a payload portion (XGEM payload) (i.e., a second payload portion) of a 10G passive optical network device encapsulation mode frame. Among them, the XGEM payload includes multiple groups of fields, each group of fields includes a pre-encapsulation payload length indication (XOPLI) (Ybit) and an XGEM payload (i.e., a first payload portion in a first data frame). For example, the XGEM payload includes 2 groups of fields, the first group of fields includes an XOPLI and an XGEMpayload1; the second group of fields includes an XOPLI and an XGEM payload2.

可选的,对于XGEM header中的Options字段,现有18bit没有使用,如表四所示,选项字段(Options code)可以增加定义(Meaning):例如某个bit位置1了,或者是多个bit组合某种数值,代表XGEM帧为再次封装得到的。Optionally, for the Options field in the XGEM header, the existing 18 bits are not used. As shown in Table 4, the Options field (Options code) can be defined (Meaning): for example, a bit position is 1, or multiple bits are combined to form a certain value, indicating that the XGEM frame is re-encapsulated.

表四Table 4

具体的,图12为本申请示例性实施例提供的一种数据帧聚合处理的实例示意图。如图12所示,对第一数据帧进行封装得到XGEM帧,需要首先针对多个第一数据帧分别进行封装处理,将一个第一数据帧中的目标地址(DA)、源地址(SA)、类型/长度(Length/Type)、数据主体(MAC Client Data)、帧校验序列(FCS)进行封装,得到一个第一数据帧对应的一个XGEM帧的XGEM payload(可以称为第三数据帧的第三净荷部分),并且生成对应的帧头,从的得到一个第一数据帧对应的XGEM帧,并且XGEM帧还包括:净荷长度指示(PLI)、密钥索引(KI)、端口标识(Port-ID)、选项(Options)、最后指示(LF)和信头差错校验(HEC)。Specifically, Figure 12 is a schematic diagram of an example of data frame aggregation processing provided by an exemplary embodiment of the present application. As shown in Figure 12, the first data frame is encapsulated to obtain an XGEM frame. It is necessary to first perform encapsulation processing on multiple first data frames respectively, encapsulate the destination address (DA), source address (SA), type/length (Length/Type), data body (MAC Client Data), and frame check sequence (FCS) in a first data frame, and obtain an XGEM payload of an XGEM frame corresponding to a first data frame (which can be called the third payload part of the third data frame), and generate a corresponding frame header, and obtain an XGEM frame corresponding to the first data frame, and the XGEM frame also includes: payload length indication (PLI), key index (KI), port identifier (Port-ID), options (Options), last indication (LF) and header error check (HEC).

然后,将每个第一数据帧对应的XGEM帧,进行聚合处理,以将每个第一数据帧对应的XGEM帧中的XGEM payload进行聚合,即可得到聚合的XGEM帧(即第二数据帧)。Then, the XGEM frame corresponding to each first data frame is aggregated to aggregate the XGEM payload in the XGEM frame corresponding to each first data frame, so as to obtain an aggregated XGEM frame (ie, the second data frame).

示例性的,图13为本申请示例性实施例提供的一种数据帧的帧结构实例示意图。如图13所示,一种XGEM帧的帧头结构,XGEM帧的帧头包括:净荷长度指示(PLI)、密钥索引(KI)、XGEM端口标识(Port-ID)、选项(Options)、最后指示(LF)和信头差错校验(HEC)。其中,净荷长度指示PLI用于指示XGEM payload的字节长度,可以为14 bits;密钥索引(KI)可以为2 bits;XGEM端口标识(Port-ID)可以为16 bits;选项(Options)用于指示XGEMpayload的数据类型,可以为18 bits;最后指示(LF)可以为1 bit;信头差错校验(HEC)可以为13 bits。Exemplarily, FIG13 is a schematic diagram of a frame structure example of a data frame provided by an exemplary embodiment of the present application. As shown in FIG13, a frame header structure of an XGEM frame, the frame header of the XGEM frame includes: payload length indication (PLI), key index (KI), XGEM port identifier (Port-ID), options (Options), last indication (LF) and header error check (HEC). Among them, the payload length indication PLI is used to indicate the byte length of the XGEM payload, which can be 14 bits; the key index (KI) can be 2 bits; the XGEM port identifier (Port-ID) can be 16 bits; options (Options) are used to indicate the data type of the XGEM payload, which can be 18 bits; the last indication (LF) can be 1 bit; the header error check (HEC) can be 13 bits.

在本公开实施例中,提供一种具体的实现方式,可以通过先将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个对应的数据帧之后,再对封装得到的数据帧进行聚合处理,得到聚合的数据帧。可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In an embodiment of the present disclosure, a specific implementation method is provided, which can reduce the bandwidth occupied during data transmission, thereby improving the efficiency of bandwidth resource utilization, by first encapsulating each of the multiple first data frames to obtain multiple corresponding data frames, and then aggregating the encapsulated data frames to obtain aggregated data frames.

在本公开实施例中,如图14所示,数据传输方法具体可以包括:S1401-S1403,上述S201具体可以通过S1401和S1402实现。In the embodiment of the present disclosure, as shown in FIG. 14 , the data transmission method may specifically include: S1401 - S1403 , and the above S201 may specifically be implemented through S1401 and S1402 .

S1401、数据发送端基于多个第一数据帧,获取多个第一净荷部分。S1401. A data transmitter obtains multiple first payload parts based on multiple first data frames.

S1402、数据发送端将多个第一净荷部分进行拼接处理,得到第二数据帧。S1402: The data transmitting end concatenates the multiple first payload parts to obtain a second data frame.

S1403、数据发送端传输第二数据帧。S1403: The data sending end transmits a second data frame.

在第一种可能的实现方式中,在PON系统具体为GPON系统的情况下,第二数据帧为GEM帧,图15为本申请示例性实施例提供的一种数据帧聚合处理的实例示意图。如图15所示,对第一数据帧进行聚合得到GEM帧,可以直接从多个第一数据帧中获取多个第一净荷部分,然后将多个第一净荷部分进行首尾相接,拼接得到聚合的GEM帧(即第二数据帧)。In a first possible implementation, when the PON system is specifically a GPON system, the second data frame is a GEM frame, and Figure 15 is a schematic diagram of an example of data frame aggregation processing provided by an exemplary embodiment of the present application. As shown in Figure 15, the first data frame is aggregated to obtain a GEM frame, and multiple first payload parts can be directly obtained from multiple first data frames, and then the multiple first payload parts are connected end to end to obtain an aggregated GEM frame (i.e., the second data frame).

在第二种可能的实现方式中,在PON系统具体为XGPON系统或XGSPON系统的情况下,第二数据帧为XGEM帧,图16为本申请示例性实施例提供的一种数据帧聚合处理的实例示意图。如图16所示,对第一数据帧进行聚合得到XGEM帧,可以直接从多个第一数据帧中获取多个第一净荷部分,然后将多个第一净荷部分进行首尾相接,拼接得到聚合的XGEM帧(即第二数据帧)。In a second possible implementation, when the PON system is specifically an XGPON system or an XGSPON system, the second data frame is an XGEM frame, and FIG16 is a schematic diagram of an example of data frame aggregation processing provided by an exemplary embodiment of the present application. As shown in FIG16, the first data frame is aggregated to obtain an XGEM frame, and multiple first payload parts can be directly obtained from multiple first data frames, and then the multiple first payload parts are connected end to end to obtain an aggregated XGEM frame (i.e., the second data frame).

在本公开实施例中,提供了另一种具体的实现方式,可以通过直接从多个第一数据帧中获取对应的多个第一净荷部分,然后将多个第一净荷部分直接进行拼接处理,即可得到聚合的数据帧。可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In the embodiment of the present disclosure, another specific implementation method is provided, which can obtain the corresponding multiple first payload parts directly from the multiple first data frames, and then directly splice the multiple first payload parts to obtain an aggregated data frame. This can reduce the bandwidth occupied during data transmission, thereby improving the efficiency of bandwidth resource use.

本公开实施例还提供一种数据传输方法,应用于数据接收端,如图17所示,该数据传输方法可以包括:S1701-S1702。The embodiment of the present disclosure also provides a data transmission method, which is applied to a data receiving end. As shown in FIG. 17 , the data transmission method may include: S1701 - S1702.

S1701、数据接收端接收第二数据帧。S1701. The data receiving end receives a second data frame.

其中,第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The second data frame includes a second payload portion, and the second payload portion includes a first payload portion in each of the plurality of first data frames.

可选的,第一数据帧为以太网数据包,第一数据帧的第一净荷部分包括以下至少一项:目标地址、源地址、类型、长度、数据主体、帧校验序列。Optionally, the first data frame is an Ethernet data packet, and the first payload part of the first data frame includes at least one of the following: a destination address, a source address, a type, a length, a data body, and a frame check sequence.

可选的,第二净荷部分还包括多个第一字段,每个第一字段对应一个第一净荷部分,第一字段用于指示对应的第一净荷部分的字节长度。Optionally, the second payload part further includes multiple first fields, each first field corresponds to a first payload part, and the first field is used to indicate the byte length of the corresponding first payload part.

可选的,第二数据帧还包括帧头,第二数据帧的帧头包括第二字段,第二字段用于指示第二净荷部分由多个第一净荷部分聚合得到。Optionally, the second data frame further includes a frame header, the frame header of the second data frame includes a second field, and the second field is used to indicate that the second payload part is aggregated from multiple first payload parts.

可选的,第二数据帧可以为GEM帧,第二字段为GEM帧中的PTI字段。Optionally, the second data frame may be a GEM frame, and the second field may be a PTI field in the GEM frame.

或者,第二数据帧可以为XGEM帧,第二字段为XGEM帧中的OPTIONs字段。Alternatively, the second data frame may be an XGEM frame, and the second field may be an OPTIONs field in the XGEM frame.

S1702、数据接收端基于第二数据帧,得到多个第一数据帧。S1702: The data receiving end obtains multiple first data frames based on the second data frame.

在本公开实施例中,数据接收端在接收到第二数据帧之后,可以通过与聚合处理和压缩处理对应的解析方法,对第二数据帧进行解析,以得到多个第一数据帧。In the embodiment of the present disclosure, after receiving the second data frame, the data receiving end may parse the second data frame by a parsing method corresponding to the aggregation processing and the compression processing to obtain multiple first data frames.

具体的,数据接收端可以先对第二数据帧中的第二净荷部分中符合解压缩条件的数据单元进行解压缩处理,得到解压缩处理后的第二数据帧,然后再对解压缩处理后的第二数据帧进行解析处理,得到多个第一数据帧。Specifically, the data receiving end may first decompress the data units that meet the decompression conditions in the second payload part of the second data frame to obtain the decompressed second data frame, and then parse the decompressed second data frame to obtain multiple first data frames.

或者,数据接收端可以先对第二数据帧进行解析处理,得到多个第一数据帧,然后再对解析得到的每个第一数据帧中的净荷部分中符合解压缩条件的数据单元进行解压缩处理,得到解压缩处理后的第一数据帧。Alternatively, the data receiving end may first parse the second data frame to obtain multiple first data frames, and then decompress the data units that meet the decompression conditions in the payload part of each parsed first data frame to obtain the decompressed first data frame.

需要说明的是,对于本实施例具体的描述内容,可以参照上述数据发送端相关的内容,此处不再赘述。It should be noted that, for the specific description of this embodiment, reference may be made to the above-mentioned contents related to the data sending end, which will not be repeated here.

在本公开实施例中,在数据接收端接收到第二数据帧之后,可以基于与数据发送端中的聚合处理和压缩处理对应的解析方法,对第二数据帧进行解析,从而得到对应的多个第一数据帧。如此可以通过传输第二数据帧,实现传输每个第一数据帧中的第一净荷部分的效果,并且可以减少数据传输时对带宽的占用量,从而提高对带宽资源的使用效率。In the embodiment of the present disclosure, after the data receiving end receives the second data frame, the second data frame can be parsed based on the parsing method corresponding to the aggregation processing and compression processing in the data sending end, thereby obtaining corresponding multiple first data frames. In this way, the effect of transmitting the first payload part in each first data frame can be achieved by transmitting the second data frame, and the bandwidth occupied during data transmission can be reduced, thereby improving the efficiency of using bandwidth resources.

可以理解的是,数据发送端和数据接收端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本公开实施例描述的各示例的算法步骤,本公开能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。It is understandable that, in order to realize the above functions, the data transmitting end and the data receiving end include hardware structures and/or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps of each example described in the embodiments of the present disclosure, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

本公开实施例可以根据上述方法实施例对数据发送端和数据接收端进行功能模块的划分,例如,可以对应每一个功能划分每一个功能模块,也可以将两个或两个以上的功能集成在一个功能模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件的形式实现。需要说明的是,本公开实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。下面以采用对应每一个功能划分每一个功能模块为例进行说明。The disclosed embodiment can divide the data sending end and the data receiving end into functional modules according to the above method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the disclosed embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.

图18是本公开实施例提供的一种数据传输装置的结构示意图,应用于数据发送端,第一数据传输装置1800可以执行上述方法实施例中图2所示的数据传输方法。如图18所示,第一数据传输装置1800包括:第一处理模块1801和第一传输模块1802。FIG18 is a schematic diagram of the structure of a data transmission device provided by an embodiment of the present disclosure, which is applied to a data sending end. The first data transmission device 1800 can execute the data transmission method shown in FIG2 of the above method embodiment. As shown in FIG18 , the first data transmission device 1800 includes: a first processing module 1801 and a first transmission module 1802.

第一处理模块1801,用于将待传输的多个第一数据帧进行聚合处理,得到第二数据帧;第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The first processing module 1801 is used to aggregate multiple first data frames to be transmitted to obtain a second data frame; the second data frame includes a second payload part, and the second payload part includes the first payload part in each first data frame in the multiple first data frames.

第一传输模块1802,用于传输第二数据帧。The first transmission module 1802 is configured to transmit a second data frame.

可选的,第二净荷部分还包括多个第一字段,每个第一字段对应一个第一净荷部分,第一字段用于指示对应的第一净荷部分的字节长度。Optionally, the second payload part further includes multiple first fields, each first field corresponds to a first payload part, and the first field is used to indicate the byte length of the corresponding first payload part.

可选的,第二数据帧还包括帧头,第二数据帧的帧头包括第二字段,第二字段用于指示第二净荷部分由多个第一净荷部分聚合得到。Optionally, the second data frame further includes a frame header, the frame header of the second data frame includes a second field, and the second field is used to indicate that the second payload part is aggregated from multiple first payload parts.

可选的,第二数据帧为GEM帧,第二字段为GEM帧中的PTI字段;或者,第二数据帧为XGEM帧,第二字段为XGEM帧中的OPTIONs字段。Optionally, the second data frame is a GEM frame, and the second field is a PTI field in the GEM frame; or, the second data frame is an XGEM frame, and the second field is an OPTIONs field in the XGEM frame.

可选的,第一处理模块1801,具体用于将多个第一数据帧中的每个第一数据帧分别进行封装处理,得到多个第三数据帧;第一数据帧封装处理得到的第三数据帧包括第一数据帧中的第一净荷部分。Optionally, the first processing module 1801 is specifically used to encapsulate each first data frame in the multiple first data frames to obtain multiple third data frames; the third data frames obtained by encapsulating the first data frames include the first payload part in the first data frames.

第一处理模块1801,具体还用于将多个第三数据帧进行聚合处理,得到第二数据帧。The first processing module 1801 is further specifically configured to aggregate multiple third data frames to obtain a second data frame.

可选的,第一处理模块1801,具体用于基于多个第一数据帧,获取多个第一净荷部分。Optionally, the first processing module 1801 is specifically configured to obtain multiple first payload parts based on multiple first data frames.

第一处理模块1801,具体还用于将多个第一净荷部分进行拼接处理,得到第二数据帧。The first processing module 1801 is further configured to perform splicing processing on the multiple first payload parts to obtain a second data frame.

可选的,第一数据帧为以太网数据包,第一数据帧的第一净荷部分包括以下至少一项:目标地址、源地址、类型、长度、数据主体、帧校验序列。Optionally, the first data frame is an Ethernet data packet, and the first payload part of the first data frame includes at least one of the following: a destination address, a source address, a type, a length, a data body, and a frame check sequence.

可选的,第一处理模块1801,具体还用于对第二数据帧中的第二净荷部分进行压缩处理,得到压缩处理后的第二数据帧。Optionally, the first processing module 1801 is further configured to compress the second payload portion in the second data frame to obtain a compressed second data frame.

第一传输模块1802,具体用于传输压缩处理后的第二数据帧。The first transmission module 1802 is specifically configured to transmit the compressed second data frame.

可选的,第二净荷部分包括多个数据单元,每个数据单元包括k个比特,k为大于1的整数;第一处理模块1801,具体用于对第二数据帧中的第二净荷部分中符合压缩条件的数据单元进行压缩处理,得到压缩处理后的数据单元;其中,压缩条件包括:数据单元中的前m位比特的取值为第一取值,且后n位比特的取值为第二取值,m大于预设数值,m与n之和等于k;压缩处理后的数据单元包括q个比特,q个比特中第一位比特的取值为第一取值,后q-1位比特用于指示m的取值。Optionally, the second payload part includes multiple data units, each data unit includes k bits, k is an integer greater than 1; the first processing module 1801 is specifically used to compress the data units that meet the compression conditions in the second payload part of the second data frame to obtain compressed data units; wherein the compression conditions include: the values of the first m bits in the data unit are the first value, and the values of the last n bits are the second value, m is greater than a preset value, and the sum of m and n is equal to k; the compressed data unit includes q bits, the value of the first bit of the q bits is the first value, and the last q-1 bits are used to indicate the value of m.

第一处理模块1801,具体还用于基于压缩处理后的数据单元和第二净荷部分中不符合压缩条件的数据单元,得到压缩处理后的第二数据帧。The first processing module 1801 is further specifically configured to obtain a compressed second data frame based on the compressed data unit and the data unit in the second payload part that does not meet the compression condition.

图19是本公开实施例提供的一种数据传输装置的结构示意图,应用于数据接收端,第二数据传输装置1900可以执行上述方法实施例中图17所示的数据传输方法。如图19所示,第二数据传输装置1900包括:第二传输模块1901和第二处理模块1902。FIG19 is a schematic diagram of the structure of a data transmission device provided by an embodiment of the present disclosure. When applied to a data receiving end, the second data transmission device 1900 can execute the data transmission method shown in FIG17 in the above method embodiment. As shown in FIG19 , the second data transmission device 1900 includes: a second transmission module 1901 and a second processing module 1902.

第二传输模块1901,用于接收第二数据帧,第二数据帧包括第二净荷部分,第二净荷部分包括多个第一数据帧中每个第一数据帧中的第一净荷部分。The second transmission module 1901 is used to receive a second data frame, where the second data frame includes a second payload part, and the second payload part includes a first payload part in each of the multiple first data frames.

第二处理模块1902,用于基于第二数据帧,得到多个第一数据帧。The second processing module 1902 is configured to obtain a plurality of first data frames based on the second data frame.

可选的,第二净荷部分还包括多个第一字段,每个第一字段对应一个第一净荷部分,第一字段用于指示对应的第一净荷部分的字节长度。Optionally, the second payload part further includes multiple first fields, each first field corresponds to a first payload part, and the first field is used to indicate the byte length of the corresponding first payload part.

可选的,第二数据帧还包括帧头,第二数据帧的帧头包括第二字段,第二字段用于指示第二净荷部分由多个第一净荷部分聚合得到。Optionally, the second data frame further includes a frame header, the frame header of the second data frame includes a second field, and the second field is used to indicate that the second payload part is aggregated from multiple first payload parts.

可选的,第二数据帧为GEM帧,第二字段为GEM帧中的PTI字段;或者,第二数据帧为XGEM帧,第二字段为XGEM帧中的OPTIONs字段。Optionally, the second data frame is a GEM frame, and the second field is a PTI field in the GEM frame; or, the second data frame is an XGEM frame, and the second field is an OPTIONs field in the XGEM frame.

可选的,第一数据帧为以太网数据包,第一数据帧的第一净荷部分包括以下至少一项:目标地址、源地址、类型、长度、数据主体、帧校验序列。Optionally, the first data frame is an Ethernet data packet, and the first payload part of the first data frame includes at least one of the following: a destination address, a source address, a type, a length, a data body, and a frame check sequence.

在采用硬件的形式实现上述集成的模块的功能的情况下,本公开实施例提供了上述实施例中所涉及的数据传输设备(具体为数据发送端或数据接收端)的另一种可能的网络设备结构。如图20所示,该数据传输设备2000包括:处理器2002,总线2004。可选的,该数据传输设备2000还可以包括存储器2001;可选地,该数据传输设备2000还可以包括通信接口2003。In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present disclosure provides another possible network device structure of the data transmission device (specifically a data sending end or a data receiving end) involved in the above-mentioned embodiment. As shown in FIG20 , the data transmission device 2000 includes: a processor 2002 and a bus 2004. Optionally, the data transmission device 2000 may also include a memory 2001; optionally, the data transmission device 2000 may also include a communication interface 2003.

处理器2002,可以是实现或执行结合本公开实施例所描述的各种示例性的逻辑方框,模块和电路。该处理器2002可以是中央处理器,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本公开实施例所描述的各种示例性的逻辑方框,模块和电路。处理器2002也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The processor 2002 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. The processor 2002 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. The processor 2002 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

通信接口2003,用于与其他设备通过通信网络连接。该通信网络可以是以太网,无线接入网,无线局域网(wireless local area networks,WLAN)等。The communication interface 2003 is used to connect with other devices via a communication network, which may be Ethernet, wireless access network, wireless local area network (WLAN), etc.

存储器2001,可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 2001 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

作为一种可能的实现方式,存储器2001可以独立于处理器2002存在,存储器2001可以通过总线2004与处理器2002相连接,用于存储指令或者程序代码。处理器2002调用并执行存储器2001中存储的指令或程序代码时,能够实现本公开实施例提供的数据传输方法。As a possible implementation, the memory 2001 may exist independently of the processor 2002, and the memory 2001 may be connected to the processor 2002 via a bus 2004 to store instructions or program codes. When the processor 2002 calls and executes the instructions or program codes stored in the memory 2001, the data transmission method provided in the embodiment of the present disclosure can be implemented.

另一种可能的实现方式中,存储器2001也可以和处理器2002集成在一起。In another possible implementation, the memory 2001 may also be integrated with the processor 2002 .

总线2004,可以是扩展工业标准结构(extended industry standardarchitecture,EISA)总线等。总线2004可以分为地址总线、数据总线、控制总线等。为便于表示,图20中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 2004 may be an extended industry standard architecture (EISA) bus, etc. The bus 2004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG20 only uses one thick line, but does not mean that there is only one bus or one type of bus.

本公开的一些实施例提供了一种计算机可读存储介质(例如,非暂态计算机可读存储介质),该计算机可读存储介质中存储有计算机程序指令,计算机程序指令在计算机上运行时,使得计算机执行如上述实施例中任一实施例所述的数据传输方法。Some embodiments of the present disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the data transmission method described in any of the above embodiments.

示例性的,上述计算机可读存储介质可以包括,但不限于:磁存储器件(例如,硬盘、软盘或磁带等),光盘(例如,压缩盘(Compact Disk,CD)、数字通用盘(DigitalVersatile Disk,DVD)等),智能卡和闪存器件(例如,可擦写可编程只读存储器(ErasableProgrammable Read-Only Memory,EPROM)、卡、棒或钥匙驱动器等)。本公开描述的各种计算机可读存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读存储介质。术语“机器可读存储介质”可包括但不限于,无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks, or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and/or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and/or carrying instructions and/or data.

本公开实施例提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行上述实施例中任一实施例所述的数据传输方法。An embodiment of the present disclosure provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the data transmission method described in any one of the above embodiments.

以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何在本公开揭露的技术范围内的变化或替换,都应涵盖在本公开的保护范围之内。The above description is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure.

Claims (13)

1. A data transmission method, applied to a data transmitting end, the method comprising:
aggregating a first payload part in each first data frame in a plurality of first data frames to be transmitted to obtain a second data frame; the first data frame is an ethernet data packet, and the first payload portion of the first data frame includes at least one of: a destination address, a source address, a type, a length, a data body, a frame check sequence, the second data frame being a GEM frame or an XGEM frame, the second data frame comprising a second payload portion comprising a first payload portion in each of the plurality of first data frames, the second payload portion comprising a plurality of data units, each data unit comprising k bits, k being an integer greater than 1;
compressing the data unit meeting the compression condition in the second payload part in the second data frame to obtain a compressed data unit; the compression conditions include: the value of the first m bits in the data unit is a first value, the value of the last n bits is a second value, m is larger than a preset value, and the sum of m and n is equal to k; the compressed data unit comprises q bits, wherein the value of the first bit in the q bits is the first value, and the q-1 bits are used for indicating the value of m;
Obtaining a second data frame after the compression processing based on the data unit after the compression processing and the data unit which does not meet the compression condition in the second payload part;
and transmitting the compressed second data frame.
2. The method of claim 1, wherein the second payload portion further comprises a plurality of first fields, each first field corresponding to one of the first payload portions, the first field indicating a byte length of the corresponding first payload portion.
3. The method of claim 1, wherein the second data frame further comprises a frame header, the frame header of the second data frame comprising a second field for indicating that the second payload portion is aggregated from a plurality of the first payload portions.
4. The method of claim 3, wherein the second field is a PTI field in the GEM frame; or the second field is OPTIONs fields in the XGEM frame.
5. The method of claim 1, wherein aggregating the plurality of first data frames to be transmitted to obtain a second data frame comprises:
respectively encapsulating each first data frame in the plurality of first data frames to obtain a plurality of third data frames; the third data frame obtained by the encapsulation processing of the first data frame comprises a first payload part in the first data frame;
and carrying out aggregation processing on the plurality of third data frames to obtain the second data frames.
6. The method of claim 1, wherein aggregating the plurality of first data frames to be transmitted to obtain a second data frame comprises:
Acquiring a plurality of first payload portions based on the plurality of first data frames;
And splicing the plurality of first payload parts to obtain the second data frame.
7. A data transmission method, applied to a data receiving end, the method comprising:
Receiving a compressed second data frame, wherein the compressed second data frame is obtained by aggregating a first payload part in each first data frame in a plurality of first data frames to be transmitted by a data sending terminal, compressing a data unit meeting a compression condition in the second payload part in the second data frame to obtain a compressed data unit, and obtaining the data unit based on the compressed data unit and the data unit not meeting the compression condition in the second payload part, the first data frame is an Ethernet data packet, and the first payload part of the first data frame comprises at least one of the following: a destination address, a source address, a type, a length, a data body, a frame check sequence, the second data frame being a GEM frame or an XGEM frame, the second data frame comprising a second payload portion comprising a first payload portion in each of the plurality of first data frames, the second payload portion comprising a plurality of data units, each data unit comprising k bits, k being an integer greater than 1, the compression condition comprising: the value of the first m bits in the data unit is a first value, the value of the last n bits is a second value, m is larger than a preset value, and the sum of m and n is equal to k; the compressed data unit comprises q bits, wherein the value of the first bit in the q bits is the first value, and the q-1 bits are used for indicating the value of m;
and obtaining the plurality of first data frames based on the compressed second data frames.
8. The method of claim 7, wherein the second payload portion further comprises a plurality of first fields, each first field corresponding to a first payload portion, the first fields being used to indicate a byte length of the corresponding first payload portion.
9. The method of claim 7, wherein the second data frame further comprises a frame header, the frame header of the second data frame comprising a second field for indicating that the second payload portion is aggregated from a plurality of the first payload portions.
10. The method of claim 9, wherein the second field is a PTI field in the GEM frame; or the second field is OPTIONs fields in the XGEM frame.
11. An electronic device, comprising: a memory and a processor; the memory is coupled to the processor; the memory is used for storing instructions executable by the processor; the processor, when executing the instructions, performs the method of any one of claims 1-6, or the method of any one of claims 7-10.
12. A computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-6 or the method of any of claims 7-10.
13. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the method according to any one of claims 1-6 or the method according to any one of claims 7-10.
CN202410443147.1A 2024-04-12 2024-04-12 Data transmission method, device, equipment and storage medium Active CN118041492B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202410443147.1A CN118041492B (en) 2024-04-12 2024-04-12 Data transmission method, device, equipment and storage medium
PCT/CN2025/083114 WO2025214093A1 (en) 2024-04-12 2025-03-18 Data transmission method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410443147.1A CN118041492B (en) 2024-04-12 2024-04-12 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN118041492A CN118041492A (en) 2024-05-14
CN118041492B true CN118041492B (en) 2024-08-13

Family

ID=90991866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410443147.1A Active CN118041492B (en) 2024-04-12 2024-04-12 Data transmission method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN118041492B (en)
WO (1) WO2025214093A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118041492B (en) * 2024-04-12 2024-08-13 中兴通讯股份有限公司 Data transmission method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671462A (en) * 2019-10-15 2021-04-16 华为技术有限公司 Service data transmission method, related equipment and digital processing chip

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552931B (en) * 2008-04-03 2011-09-21 中兴通讯股份有限公司 A system and method for implementing frame reassembly in gigabit passive optical network encapsulation mode
US8351785B2 (en) * 2008-04-21 2013-01-08 Futurewei Technologies, Inc. Gigabit passive optical network transmission convergence extension for next generation access
EP2314002B1 (en) * 2008-07-30 2013-07-24 Nokia Siemens Networks Oy Upstream efficiency improvement method for passive optical networks
CN101656660A (en) * 2008-08-19 2010-02-24 华为技术有限公司 Method, device and system for carrying MPLS messages in PON
CN101867849A (en) * 2009-04-18 2010-10-20 中兴通讯股份有限公司 Gigabit passive optical network system multiple protocols bearing method and encapsulation mode frame thereof
CN109861801B (en) * 2018-10-15 2022-12-09 北京新岸线移动通信技术有限公司 Data transmission method and device
CN111740801B (en) * 2019-03-25 2021-12-10 华为技术有限公司 Service data processing method and device
CN112713960B (en) * 2019-10-25 2024-10-29 中兴通讯股份有限公司 Data transmission method, data reception device, communication node, and storage medium
US11202273B2 (en) * 2019-11-08 2021-12-14 Blackberry Limited Aggregating messages into a single transmission
CN118041492B (en) * 2024-04-12 2024-08-13 中兴通讯股份有限公司 Data transmission method, device, equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671462A (en) * 2019-10-15 2021-04-16 华为技术有限公司 Service data transmission method, related equipment and digital processing chip

Also Published As

Publication number Publication date
CN118041492A (en) 2024-05-14
WO2025214093A1 (en) 2025-10-16

Similar Documents

Publication Publication Date Title
KR101236903B1 (en) Upstream efficiency improvement method for passive optical networks
CN102523119B (en) EPON network management system data transmission method based on SNMP protocol
WO2019128664A1 (en) Data transmission method, communication apparatus, and storage medium
US12418829B2 (en) Service data processing, exchange and extraction methods, devices, and computer-readable medium
EP4216566B1 (en) Multi-level pon management method
EP3832914A1 (en) Oam message transmission method, sending device, receiving device, and readable storage device
CN102090001A (en) Ethernet-based optical network terminal management and control interface
US8249107B2 (en) Method and apparatus for frame relay
CN104734998A (en) Network device and information transmission method
US11444874B2 (en) Packet transmission method, and communications apparatus and system
CN118041492B (en) Data transmission method, device, equipment and storage medium
CN110214439B (en) Data transmission method, device, transmitter, receiver and system
CN112003816B (en) Data transmission method, device, equipment and storage medium
US20120294307A1 (en) Apparatus and Method for Identifier Management
WO2023246416A1 (en) Data transmission method and apparatus
CN120378777A (en) Message transmission method, main equipment, OLT and optical communication system
CN111342929A (en) Information sending and receiving method and device and information processing system
CN112713960B (en) Data transmission method, data reception device, communication node, and storage medium
US11895448B2 (en) Communication apparatus and communication method
CN116112452B (en) Message transmission method and communication device
CN101127759B (en) A receiving and transmission method, device and system for passive optical network data
JP6929436B2 (en) Methods and devices for processing bit block streams, methods and devices for rate matching of bit block streams, and methods and devices for switching bit block streams.
WO2020114084A1 (en) Message forwarding method and apparatus
CN114024650B (en) Method and system for transmitting information
CN120263286A (en) Optical network communication method and communication device

Legal Events

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