WO2021037220A1 - Message processing method and computer storage medium - Google Patents

Message processing method and computer storage medium Download PDF

Info

Publication number
WO2021037220A1
WO2021037220A1 PCT/CN2020/112179 CN2020112179W WO2021037220A1 WO 2021037220 A1 WO2021037220 A1 WO 2021037220A1 CN 2020112179 W CN2020112179 W CN 2020112179W WO 2021037220 A1 WO2021037220 A1 WO 2021037220A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
dic
ipg
length
current
Prior art date
Application number
PCT/CN2020/112179
Other languages
French (fr)
Chinese (zh)
Inventor
臧高勇
谢小龙
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2021037220A1 publication Critical patent/WO2021037220A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • This application relates to the field of information processing, for example, to a message processing method and a computer storage medium.
  • the upstream Medium Access Control (MAC) interface in the 10G EPON symmetrical mode is a 10G media independent interface (10Gigabit Medium Independent Interface, XGMII), according to the Institute of Electrical and Electronics Engineers 802.3 (Institute of Electrical and Electronics Engineers 802.3, IEEE802.3) protocol, it is necessary to increase and delete idle (IDLE) data to ensure that the start control character is aligned with lane 0 (lane0).
  • IDLE idle
  • the addition or deletion of IDLE can be determined according to the Deficit Idle Count (DIC).
  • DIC is a mechanism that specifies the number of Ethernet frame intervals between Ethernet data packets in the IEEE 802.3 protocol.
  • IPG Inter-Packet Gap
  • the value of the IPG length is 12 bytes.
  • the message will carry more invalid data. Therefore, how to improve the data transmission efficiency is an urgent problem to be solved.
  • This application provides a message processing method and computer storage medium.
  • This application provides a message processing method, including:
  • the received message is processed.
  • a computer storage medium includes a processor and a memory, the memory stores a computer program, and the processor is configured to call the computer program in the memory to implement any one of the methods described above.
  • Figure 1 is a block diagram of the 10G EPON symmetric ONU
  • Figure 2 is a schematic diagram of the data relationship of the XGMII interface
  • FIG. 3 is a flowchart of a message processing method provided by an embodiment of the application.
  • Fig. 4 is a flowchart of another message processing method provided by an embodiment of the application.
  • FIG. 1 is a block diagram of the 10G EPON symmetric ONU. As shown in Figure 1, the 10G EPON symmetric mode inherits the 10G Ethernet technology, and the MAC interface is XGMII.
  • Figure 2 is a schematic diagram of the data relationship of the XGMII interface. As shown in Figure 2, according to the IEEE802.3 protocol, it is ensured that the Start control character is aligned with lane0. In order to achieve the above goals, it is necessary to add appropriate IDLE data at the end of the frame and the header.
  • the DIC mechanism in the related technology only provides a solution where the average minimum IPG value is 12 bytes, and the solution where the average minimum IPG value is 12 bytes can realize the dynamic change of the IPG value between 9-15.
  • the default requirement is that the average minimum IPG value is 12 bytes; in the 802.3 protocol, Chapter 4, section 46.2.1, the minimum IPG that the 10G receiving side needs to support is 5 bytes, so the optical line
  • the terminal Optical Line Terminal, OLT
  • OLT Optical Line Terminal
  • the embodiments of the present application provide a DIC algorithm that supports the average minimum IPG value of 8, 9, 10, or 11 bytes.
  • the average minimum IPG is a value obtained by averaging the values of at least two minimum IPG lengths.
  • FIG. 3 is a flowchart of a message processing method provided by an embodiment of the application. The method shown in Figure 3 includes:
  • Step 310 In the symmetric mode of 10G EPON, obtain the configuration information of the IPG length in the upstream transmission operation, where the average minimum IPG length in the configuration information is an integer from 8 to 11.
  • the value of the average minimum IPG length in the uplink transmission operation may be 8, 9, 10, and 11. Compared with the value of 12 in the related art, the average minimum IPG length is reduced. The value of the minimum IPG reduces the number of invalid data that needs to be filled in the gaps in the packet to reduce the number of invalid data.
  • Step 320 Obtain the DIC strategy corresponding to the IPG length according to the configuration information.
  • the DIC strategy corresponding to each value of the IPG length is pre-stored.
  • the IPG length information corresponding to the message can be determined.
  • Step 330 Process the received message according to the DIC policy.
  • the processing of the message may execute the processing strategy corresponding to the DIC strategy according to the length of the message.
  • the processing of the received message according to the DIC policy includes: obtaining the length of the message after receiving the message; using the value of the length of the message as the dividend, and The value of the divisor is 4 to perform the division operation to obtain the remainder value; using the pre-acquired current DIC value and the remainder value, in the DIC strategy, find the current DIC value corresponding to the remainder value The value of the length of the IPG; according to the obtained value of the length of the IPG, IDLE data is added at the end of the message.
  • the length value is divided by 4 to obtain the remainder value, and the IPG length is calculated based on the remainder value and the current DIC value to maintain the consistency with the used communication protocol and ensure the solution Versatility.
  • the pre-acquired current DIC value and the remainder value are used to find the IPG length corresponding to the current DIC value and the remainder value in the DIC strategy.
  • the value further includes: in the DIC strategy, searching for a new DIC value corresponding to the current DIC value and the remainder value, and using the obtained new DIC value as the current DIC value; Use the updated value of the current DIC to process the message of the next frame.
  • the DIC strategy also includes new DIC values. By assigning the new DIC value to the current DIC, the continuity of method application is guaranteed and it has been used. The consistency of the communication protocol ensures the versatility of the program.
  • the method further includes: if the message is not received within a preset period of time, sending IDLE data.
  • IDLE data is sent to ensure the continuity of data transmission.
  • the value of the average minimum IPG length further includes 12.
  • the configuration information of the IPG length in the upstream transmission operation is obtained, wherein the average minimum IPG length in the configuration information is one of 8 to 11.
  • Integer and obtain the DIC strategy corresponding to the IPG length according to the configuration information, and then process the received message according to the DIC strategy to realize the configuration where the average minimum IPG length in the uplink is 8 to 11
  • Data transmission is carried out under the following conditions to reduce the number of invalid data filling and improve transmission efficiency.
  • the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC
  • the sequence includes: ⁇ 0, 8, 3 ⁇ , ⁇ 1, 12, 0 ⁇ , ⁇ 2, 12, 1 ⁇ , ⁇ 3, 12, 2 ⁇ ; when the remainder value is 1, the current DIC value and IPG length
  • the sequence of the value of and the value of the new DIC includes: ⁇ 0, 11, 0 ⁇ , ⁇ 1, 11, 1 ⁇ , ⁇ 2, 11, 2 ⁇ , ⁇ 3, 11, 3 ⁇ ; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: ⁇ 0, 10, 1 ⁇ , ⁇ 1, 10, 2 ⁇ , ⁇ 2, 10, 3 ⁇ , ⁇ 3,14,0 ⁇ ; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC include: ⁇ 0,9
  • the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC
  • the sequence includes: ⁇ 0, 8, 2 ⁇ , ⁇ 1, 8, 3 ⁇ , ⁇ 2, 12, 0 ⁇ , ⁇ 3, 12, 1 ⁇ ; when the remainder value is 1, the current DIC value and IPG length
  • the sequence of the value of and the value of the new DIC includes: ⁇ 0, 7, 3 ⁇ , ⁇ 1, 11, 0 ⁇ , ⁇ 2, 11, 1 ⁇ , ⁇ 3, 11, 2 ⁇ ; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: ⁇ 0, 10, 0 ⁇ , ⁇ 1, 10, 1 ⁇ , ⁇ 2, 10, 2 ⁇ , ⁇ 3, 10, 3 ⁇ ; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC include: ⁇ 0,9
  • the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC
  • the sequence includes: ⁇ 0, 8, 1 ⁇ , ⁇ 1, 8, 2 ⁇ , ⁇ 2, 8, 3 ⁇ , ⁇ 3, 12, 0 ⁇ ; when the remainder value is 1, the current DIC value and IPG length
  • the sequence of the value of and the value of the new DIC includes: ⁇ 0, 7, 2 ⁇ , ⁇ 1, 7, 3 ⁇ , ⁇ 2, 11, 0 ⁇ , ⁇ 3, 11, 1 ⁇ ; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: ⁇ 0, 6, 3 ⁇ , ⁇ 1, 10, 0 ⁇ , ⁇ 2, 10, 1 ⁇ , ⁇ 3, 10, 2 ⁇ ; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC includes: ⁇ 0,9
  • the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC
  • the sequence includes: ⁇ 0, 8, 0 ⁇ , ⁇ 1, 8, 1 ⁇ , ⁇ 2, 8, 2 ⁇ , ⁇ 3, 8, 3 ⁇ ; when the remainder value is 1, the current DIC value and IPG length
  • the sequence of the value of and the value of the new DIC includes: ⁇ 0, 7, 1 ⁇ , ⁇ 1, 7, 2 ⁇ , ⁇ 2, 7, 3 ⁇ , ⁇ 3, 11, 0 ⁇ ; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: ⁇ 0, 6, 2 ⁇ , ⁇ 1, 6, 3 ⁇ , ⁇ 2, 10, 0 ⁇ , ⁇ 3, 10, 1 ⁇ ; when the remainder value is 3, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: ⁇ 0, 5,
  • This embodiment of the application proposes a DIC solution with a minimum average upstream IPG of 8 to 12 in the 10G EPON symmetric mode.
  • the corresponding DIC algorithm is selected to provide users with more ways to improve transmission efficiency.
  • Table 1 shows the DIC algorithm with an average minimum IPG value of 12 bytes. Taking the average minimum IPG value of 12 as an example, in order to align lane0, the frame spacing needs to increase or decrease the IDLE character on the basis of 12 bytes.
  • the DIC algorithm maintains a count value. Each time an IDLE is added, the count value is subtracted by 1. Decrease 1 IDLE, increase the count value by 1, and keep the count value between 0 and 3.
  • the frame spacing calculated by the DIC algorithm will vary between 9-15 bytes, but the average minimum IPG will be 12 bytes.
  • This application proposes a DIC algorithm with an average minimum IPG value of 8, 9, 10, and 11 bytes.
  • Table 2 shows the DIC algorithm corresponding to the average minimum IPG value of 11 bytes. See the table below for details:
  • Table 3 shows the DIC algorithm corresponding to the average minimum IPG value of 10 bytes. See the table below for details:
  • Table 4 shows the DIC algorithm corresponding to the average minimum IPG value of 9 bytes. See the table below for details:
  • Table 5 shows the DIC algorithm corresponding to the average minimum IPG value of 8 bytes. See the table below for details:
  • the message processing method provided in this application includes: in the symmetric mode of the 10G Ethernet passive optical network EPON, obtaining the configuration information of the packet gap IPG length in the upstream transmission operation, wherein the configuration information
  • the average minimum IPG length in is an integer from 8 to 11; the idle character count DIC strategy corresponding to the IPG length is obtained according to the configuration information; the received message is processed according to the DIC strategy .
  • the value of the average minimum IPG has the same meaning as the value of the average minimum IPG length.
  • Fig. 4 is a flowchart of another message processing method provided by an embodiment of the application. The method shown in Figure 4 includes:
  • Step 410 Complete the configuration of the DIC algorithm based on the IPG configuration information, and set the value of CurrentDIC.
  • the value of the average minimum IPG length is 8, 9, 10, 11, or 12; the configuration information of the IPG is obtained, and the corresponding DIC algorithm table is selected to be loaded, and Current DIC is initialized to 0.
  • Step 420 Perform a message receiving operation, and obtain the length of the message after the completion of the message reception is detected.
  • Step 430 Use the value of the length of the message as the dividend, and use the value of the divisor to perform a division operation to obtain a remainder value.
  • the value of the remainder is 2.
  • Step 440 According to the value of Current DIC and the remainder value, in the DIC algorithm table, the values of IPG and New DIC are obtained.
  • Step 450 According to the obtained IPG value, a corresponding amount of IDLE data is sent at the end of the packet, and the value of New DIC is assigned to Current DIC.
  • Step 460 Wait for the arrival of the next frame of data, and judge whether there is a new message.
  • step 420 If there is a new message, perform step 420 to step 460; if there is no new message, perform step 470.
  • Step 470 Send IDLE data, and continue to perform step 460 after the IDLE data is sent.
  • the method provided in the embodiments of the present application realizes that the average minimum IPG value is any integer from 8 to 12, which maximizes the transmission efficiency.
  • An embodiment of the present application provides a computer storage medium, including a processor and a memory, the memory stores a computer program, and the processor is configured to call the computer program in the memory to implement any of the methods described above.
  • the computer storage medium provided by the embodiment of the present application obtains the configuration information of the IPG length in the upstream transmission operation in the symmetric mode of 10G EPON, where the average minimum IPG length in the configuration information takes a value of 8 to 11.
  • the configuration information the DIC strategy corresponding to the IPG length is obtained, and then the received message is processed according to the DIC strategy to realize that the average minimum IPG length in the uplink is 8 to Data transmission is carried out under the configuration of 11, which reduces the amount of filling of invalid data and improves transmission efficiency.
  • Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium).
  • the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
  • Computer storage media include but are not limited to random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory Or other memory technologies, Compact Disc Read-Only Memory (CD-ROM), Digital versatile disc (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other A magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in embodiments of the present application are a message processing method and a computer storage medium. The method comprises: in a symmetric mode of a 10G Ethernet Passive Optical Network (EPON), acquiring configuration information of an Inter-Packet Gap (IPG) length in uplink transmission operation, wherein a value of an averaged minimum IPG length in the configuration information is an integer from 8-11; acquiring a Deficit Idle Count (DIC) policy corresponding to the IPG length according to the configuration information; and processing a received message according to the DIC policy.

Description

报文处理方法和计算机存储介质Message processing method and computer storage medium
本申请要求在2019年08月28日提交中国专利局、申请号为201910803342.X的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910803342.X on August 28, 2019, and the entire content of the application is incorporated into this application by reference.
技术领域Technical field
本申请涉及信息处理领域,例如涉及一种报文处理方法和计算机存储介质。This application relates to the field of information processing, for example, to a message processing method and a computer storage medium.
背景技术Background technique
铜线宽带正逐步走向市场边缘,随着4K电视、虚拟现实(Virtual Reality,VR)/增强现实(Augmented Reality,AR)等视频应用的爆发,对优质视频体验的要求急剧增长,同时,智慧生活和智慧应用的大量使用,人们对宽带的要求急速增长。用户对带宽的需求将以每3年一个数量级的趋势增长,10G以太网无源光网络(Ethernet Passive Optical Network,EPON)也受到运营商及厂商的青睐,国内外运营商纷纷锁定并积极推广。10G EPON继承了EPON和以太网技术简洁、廉价和产业链成熟的优点,随着标准和产业链的快速成熟,10G EPON规模商用日趋临近。Copper wire broadband is gradually moving towards the edge of the market. With the explosion of 4K TV, Virtual Reality (VR)/Augmented Reality (AR) and other video applications, the demand for high-quality video experience has increased sharply. At the same time, smart living With the massive use of smart applications, people’s requirements for broadband are growing rapidly. User demand for bandwidth will increase by an order of magnitude every three years. 10G Ethernet Passive Optical Network (EPON) is also favored by operators and manufacturers, and domestic and foreign operators have locked in and actively promoted. 10G EPON inherits the advantages of simplicity, low cost, and mature industrial chain of EPON and Ethernet technologies. With the rapid maturity of standards and industrial chains, the commercial scale of 10G EPON is approaching.
10G EPON对称模式里的上行介质访问控制(Medium Access Control,MAC)接口是10G独立于媒体的接口(10Gigabit Medium Independent Interface,XGMII),根据电气和电子工程师协会802.3(Institute of Electrical and Electronics Engineers 802.3,IEEE802.3)协议,需要通过增加和删减空闲(IDLE)数据,保证起始(start)控制符对齐通道0(lane0)。对IDLE的增加或删减可以根据空闲字符计数(Deficit Idle Count,DIC)来确定,DIC是IEEE802.3协议中规定以太网数据包之间插入以太网帧间隔数目的一种机制。为了满足带宽要求,需要在传输的数据包与数据包之间根据DIC机制有规律地插入一定数量的包间隙(Inter-Packet Gap,IPG),IPG是数据包与数据包之间的间隔,间隔用IDLE数据填充。The upstream Medium Access Control (MAC) interface in the 10G EPON symmetrical mode is a 10G media independent interface (10Gigabit Medium Independent Interface, XGMII), according to the Institute of Electrical and Electronics Engineers 802.3 (Institute of Electrical and Electronics Engineers 802.3, IEEE802.3) protocol, it is necessary to increase and delete idle (IDLE) data to ensure that the start control character is aligned with lane 0 (lane0). The addition or deletion of IDLE can be determined according to the Deficit Idle Count (DIC). DIC is a mechanism that specifies the number of Ethernet frame intervals between Ethernet data packets in the IEEE 802.3 protocol. In order to meet the bandwidth requirements, it is necessary to regularly insert a certain number of packet gaps (Inter-Packet Gap, IPG) between the transmitted data packet and the data packet according to the DIC mechanism. IPG is the interval between the data packet and the data packet. Fill it with IDLE data.
在相关技术中,IPG长度的取值为12个字节,在上述IPG的配置下,报文将携带较多无效数据,因此,如何提高数据传输效率是亟待解决的问题。In the related art, the value of the IPG length is 12 bytes. Under the above-mentioned IPG configuration, the message will carry more invalid data. Therefore, how to improve the data transmission efficiency is an urgent problem to be solved.
发明内容Summary of the invention
本申请提供了一种报文处理方法和计算机存储介质。This application provides a message processing method and computer storage medium.
本申请提供了一种报文处理方法,包括:This application provides a message processing method, including:
在10G以太网无源光网络EPON的对称模式下,获取上行传输操作中的包间隙IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数;Under the symmetric mode of the 10G Ethernet passive optical network EPON, obtain the configuration information of the packet gap IPG length in the upstream transmission operation, wherein the average minimum IPG length in the configuration information is one of 8 to 11 Integer
根据所述配置信息,获取所述IPG长度对应的空闲字符计数DIC策略;Obtaining the idle character count DIC strategy corresponding to the IPG length according to the configuration information;
按照所述DIC策略,对接收的报文进行处理。According to the DIC strategy, the received message is processed.
一种计算机存储介质,包括处理器和存储器,所述存储器存储有计算机程序,所述处理器设置为调用所述存储器中的计算机程序以实现上文任一所述的方法。A computer storage medium includes a processor and a memory, the memory stores a computer program, and the processor is configured to call the computer program in the memory to implement any one of the methods described above.
附图说明Description of the drawings
附图用来提供对本申请技术方案的理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide an understanding of the technical solution of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1为10G EPON对称ONU的结构框图;Figure 1 is a block diagram of the 10G EPON symmetric ONU;
图2为XGMII接口的数据关系示意图;Figure 2 is a schematic diagram of the data relationship of the XGMII interface;
图3为本申请实施例提供的一种报文处理方法的流程图;FIG. 3 is a flowchart of a message processing method provided by an embodiment of the application;
图4为本申请实施例提供的另一种报文处理方法的流程图。Fig. 4 is a flowchart of another message processing method provided by an embodiment of the application.
具体实施方式detailed description
下文中将结合附图对本申请的实施例进行说明。Hereinafter, embodiments of the present application will be described with reference to the drawings.
图1为10G EPON对称ONU的结构框图。如图1所示,10G EPON对称模式继承了10G以太网技术,MAC接口是XGMII。Figure 1 is a block diagram of the 10G EPON symmetric ONU. As shown in Figure 1, the 10G EPON symmetric mode inherits the 10G Ethernet technology, and the MAC interface is XGMII.
图2为XGMII接口的数据关系示意图。如图2所示,按照IEEE802.3协议 规定,保证Start控制字符对齐lane0。为达成上述目标,需要在帧尾和帧头添加适当的IDLE数据。Figure 2 is a schematic diagram of the data relationship of the XGMII interface. As shown in Figure 2, according to the IEEE802.3 protocol, it is ensured that the Start control character is aligned with lane0. In order to achieve the above goals, it is necessary to add appropriate IDLE data at the end of the frame and the header.
相关技术中的DIC机制,只提供了平均最小IPG取值为12字节的方案,平均最小IPG取值为12字节的方案可以实现IPG的取值在9-15之间动态变化。在10G以太网的标准中,默认要求是平均最小IPG取值为12字节;在802.3协议第4章46.2.1节规定,10G接收侧需要能支持的最小IPG为5字节,因此光线路终端(Optical Line Terminal,OLT)一般都支持处理最小IPG取值为5字节的情况。如果光网络单元(Optical Network Unit,ONU)采用最小平均最小IPG取值为12字节的DIC算法发送数据,就没有充分发挥系统的性能。The DIC mechanism in the related technology only provides a solution where the average minimum IPG value is 12 bytes, and the solution where the average minimum IPG value is 12 bytes can realize the dynamic change of the IPG value between 9-15. In the 10G Ethernet standard, the default requirement is that the average minimum IPG value is 12 bytes; in the 802.3 protocol, Chapter 4, section 46.2.1, the minimum IPG that the 10G receiving side needs to support is 5 bytes, so the optical line The terminal (Optical Line Terminal, OLT) generally supports handling the case where the minimum IPG value is 5 bytes. If the Optical Network Unit (ONU) uses the DIC algorithm with a minimum average minimum IPG value of 12 bytes to send data, the system performance will not be fully utilized.
为了最大程度提高10G EPON上行传输效率,本申请实施例提供支持平均最小IPG取值为8、9、10或11字节的DIC算法。平均最小IPG是将至少两个最小IPG长度的取值进行取平均处理后得到的数值。In order to maximize the 10G EPON upstream transmission efficiency, the embodiments of the present application provide a DIC algorithm that supports the average minimum IPG value of 8, 9, 10, or 11 bytes. The average minimum IPG is a value obtained by averaging the values of at least two minimum IPG lengths.
下面对本申请实施例提供的解决方案进行说明:The following describes the solutions provided by the embodiments of the present application:
图3为本申请实施例提供的报文处理方法的流程图。图3所示方法包括:Fig. 3 is a flowchart of a message processing method provided by an embodiment of the application. The method shown in Figure 3 includes:
步骤310、在10G EPON的对称模式下,获取上行传输操作中的IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数。Step 310: In the symmetric mode of 10G EPON, obtain the configuration information of the IPG length in the upstream transmission operation, where the average minimum IPG length in the configuration information is an integer from 8 to 11.
在一个示例性实施例中,在上行传输操作中的平均最小IPG长度的取值可以为8、9、10、11,与相关技术中平均最小IPG的取值为12相比,减小了平均最小IPG的取值,使得包间隙内需要填空的无效数据相应地减少,达到减少无效数据填空数量的目的。In an exemplary embodiment, the value of the average minimum IPG length in the uplink transmission operation may be 8, 9, 10, and 11. Compared with the value of 12 in the related art, the average minimum IPG length is reduced. The value of the minimum IPG reduces the number of invalid data that needs to be filled in the gaps in the packet to reduce the number of invalid data.
步骤320、根据所述配置信息,获取所述IPG长度对应的DIC策略。Step 320: Obtain the DIC strategy corresponding to the IPG length according to the configuration information.
在一个示例性实施例中,预先存储IPG长度的每个取值对应的DIC策略,该DIC策略中基于报文的长度以及当前DIC的取值,可以确定该报文对应的IPG长度信息。In an exemplary embodiment, the DIC strategy corresponding to each value of the IPG length is pre-stored. In the DIC strategy, based on the length of the message and the value of the current DIC, the IPG length information corresponding to the message can be determined.
步骤330、按照所述DIC策略,对接收的报文进行处理。Step 330: Process the received message according to the DIC policy.
在一个示例性实施例中,对报文的处理可以根据该报文的长度,执行DIC策略对应的处理策略。In an exemplary embodiment, the processing of the message may execute the processing strategy corresponding to the DIC strategy according to the length of the message.
在一个示例性实施例中,所述按照所述DIC策略,对接收的报文进行处理,包括:在接收到报文后,获取报文的长度;将报文的长度的数值作为被除数,以除数的取值为4进行除法运算,获取余数值;利用预先获取的当前DIC的取值和所述余数值,在所述DIC策略中,查找所述当前DIC的取值和所述余数值对应的IPG长度的取值;根据得到的IPG长度的取值,在所述报文的尾部增加IDLE数据。In an exemplary embodiment, the processing of the received message according to the DIC policy includes: obtaining the length of the message after receiving the message; using the value of the length of the message as the dividend, and The value of the divisor is 4 to perform the division operation to obtain the remainder value; using the pre-acquired current DIC value and the remainder value, in the DIC strategy, find the current DIC value corresponding to the remainder value The value of the length of the IPG; according to the obtained value of the length of the IPG, IDLE data is added at the end of the message.
通过获取报文的长度,将长度数值与4进行除法运算,得到余数值,基于该余数值和当前DIC的取值进行IPG长度的运算,保持与已使用的通信协议的一致性,保证方案的通用性。By obtaining the length of the message, the length value is divided by 4 to obtain the remainder value, and the IPG length is calculated based on the remainder value and the current DIC value to maintain the consistency with the used communication protocol and ensure the solution Versatility.
在一个示例性实施例中,所述利用预先获取的当前DIC的取值和所述余数值,在所述DIC策略中,查找所述当前DIC取值和所述余数值对应的IPG长度的取值,还包括:在所述DIC策略中,查找所述当前DIC取值和所述余数值对应的新的DIC的取值,并将得到的新的DIC的取值作为当前DIC的取值;利用更新取值后的当前DIC的取值,对下一帧的报文进行处理。In an exemplary embodiment, the pre-acquired current DIC value and the remainder value are used to find the IPG length corresponding to the current DIC value and the remainder value in the DIC strategy. The value further includes: in the DIC strategy, searching for a new DIC value corresponding to the current DIC value and the remainder value, and using the obtained new DIC value as the current DIC value; Use the updated value of the current DIC to process the message of the next frame.
在实际应用中,报文的处理是连续操作的,基于上述应用需要,DIC策略中还包括新的DIC数值,通过将新的DIC值赋值给当前DIC,保证方法应用的连续性,且已使用的通信协议的一致性,保证方案的通用性。In practical applications, message processing is continuous operation. Based on the above application needs, the DIC strategy also includes new DIC values. By assigning the new DIC value to the current DIC, the continuity of method application is guaranteed and it has been used. The consistency of the communication protocol ensures the versatility of the program.
在一个示例性实施例中,所述按照所述DIC策略,对接收的报文进行处理之后,所述方法还包括:如果在预先设置的时长内未收到报文,则发送IDLE数据。In an exemplary embodiment, after the received message is processed according to the DIC policy, the method further includes: if the message is not received within a preset period of time, sending IDLE data.
在处理完报文后,等待下一帧报文,如果在一段时间内未收到报文,则发送IDLE数据,以保证数据传输的连续性。After processing the message, wait for the next frame of message. If the message is not received within a period of time, IDLE data is sent to ensure the continuity of data transmission.
在一个示例性实施例中,所述平均最小IPG长度的取值还包括12。In an exemplary embodiment, the value of the average minimum IPG length further includes 12.
在实际应用中,通过将平均最小IPG长度的取值配置为12,实现与相关技术中的配置的兼容。In practical applications, by configuring the value of the average minimum IPG length as 12, compatibility with the configuration in related technologies is achieved.
本申请实施例提供的方法,在10G EPON的对称模式下,获取上行传输操作中的IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数,并根据所述配置信息,获取所述IPG长度对应的DIC策略,再按照所述DIC策略,对接收的报文进行处理,实现在上行平均最 小IPG长度的取值为8到11的配置下进行数据传输,减少无效数据的填充数量,提高传输效率。In the method provided by the embodiment of the present application, in the symmetric mode of 10G EPON, the configuration information of the IPG length in the upstream transmission operation is obtained, wherein the average minimum IPG length in the configuration information is one of 8 to 11. Integer, and obtain the DIC strategy corresponding to the IPG length according to the configuration information, and then process the received message according to the DIC strategy to realize the configuration where the average minimum IPG length in the uplink is 8 to 11 Data transmission is carried out under the following conditions to reduce the number of invalid data filling and improve transmission efficiency.
下面对所述平均最小IPG长度的取值对应的DIC策略进行说明:The following describes the DIC strategy corresponding to the value of the average minimum IPG length:
当所述平均最小IPG长度的取值为11时,所述IPG长度对应的DIC策略包括:当余数值为0时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,3},{1,12,0},{2,12,1},{3,12,2};当余数值为1时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,11,0},{1,11,1},{2,11,2},{3,11,3};当余数值为2时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,10,1},{1,10,2},{2,10,3},{3,14,0};当余数值为3时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,2},{1,9,3},{2,13,0},{3,13,1}。When the average minimum IPG length is 11, the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC The sequence includes: {0, 8, 3}, {1, 12, 0}, {2, 12, 1}, {3, 12, 2}; when the remainder value is 1, the current DIC value and IPG length The sequence of the value of and the value of the new DIC includes: {0, 11, 0}, {1, 11, 1}, {2, 11, 2}, {3, 11, 3}; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 10, 1}, {1, 10, 2}, {2, 10, 3}, { 3,14,0}; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC include: {0,9,2},{1,9,3 }, {2, 13, 0}, {3, 13, 1}.
当所述平均最小IPG长度的取值为10时,所述IPG长度对应的DIC策略包括:当余数值为0时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,2},{1,8,3},{2,12,0},{3,12,1};当余数值为1时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,3},{1,11,0},{2,11,1},{3,11,2};当余数值为2时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,10,0},{1,10,1},{2,10,2},{3,10,3};当余数值为3时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,1},{1,9,2},{2,9,3},{3,13,0}。When the average minimum IPG length is 10, the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC The sequence includes: {0, 8, 2}, {1, 8, 3}, {2, 12, 0}, {3, 12, 1}; when the remainder value is 1, the current DIC value and IPG length The sequence of the value of and the value of the new DIC includes: {0, 7, 3}, {1, 11, 0}, {2, 11, 1}, {3, 11, 2}; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 10, 0}, {1, 10, 1}, {2, 10, 2}, { 3, 10, 3}; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC include: {0,9,1},{1,9,2 }, {2, 9, 3}, {3, 13, 0}.
当所述平均最小IPG长度的取值为9时,所述IPG长度对应的DIC策略包括:当余数值为0时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,1},{1,8,2},{2,8,3},{3,12,0};当余数值为1时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,2},{1,7,3},{2,11,0},{3,11,1};当余数值为2时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,6,3},{1,10,0},{2,10,1},{3,10,2};当余数值为3时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,0},{1,9,1},{2,9,2},{3,9,3}。When the average minimum IPG length is 9, the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC The sequence includes: {0, 8, 1}, {1, 8, 2}, {2, 8, 3}, {3, 12, 0}; when the remainder value is 1, the current DIC value and IPG length The sequence of the value of and the value of the new DIC includes: {0, 7, 2}, {1, 7, 3}, {2, 11, 0}, {3, 11, 1}; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 6, 3}, {1, 10, 0}, {2, 10, 1}, { 3, 10, 2}; when the remainder value is 3, the sequence of the current value of DIC, the value of IPG length, and the value of new DIC includes: {0,9,0},{1,9,1 }, {2, 9, 2}, {3, 9, 3}.
当所述平均最小IPG长度的取值为8时,所述IPG长度对应的DIC策略包括:当余数值为0时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,0},{1,8,1},{2,8,2},{3,8,3};当余数值为1时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,1},{1,7,2},{2,7,3},{3,11,0};当余数值为2时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,6,2},{1,6,3},{2,10,0},{3,10,1};当余数值为3时,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,5,3},{1,9,0},{2,9,1},{3,9,2}。When the value of the average minimum IPG length is 8, the DIC strategy corresponding to the IPG length includes: when the remainder value is 0, the value of the current DIC, the value of the IPG length, and the value of the new DIC The sequence includes: {0, 8, 0}, {1, 8, 1}, {2, 8, 2}, {3, 8, 3}; when the remainder value is 1, the current DIC value and IPG length The sequence of the value of and the value of the new DIC includes: {0, 7, 1}, {1, 7, 2}, {2, 7, 3}, {3, 11, 0}; when the remainder value is At 2 o'clock, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 6, 2}, {1, 6, 3}, {2, 10, 0}, { 3, 10, 1}; when the remainder value is 3, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: {0, 5, 3}, {1, 9, 0 }, {2, 9, 1}, {3, 9, 2}.
下面对本申请实施例提供的方法进行说明:The following describes the method provided by the embodiment of the present application:
本申请实施例提出了10G EPON对称模式下,上行平均最小IPG8到12的DIC方案,根据配置的IPG值,选择相应的DIC算法,为用户提供更多提高传输效率的方法。This embodiment of the application proposes a DIC solution with a minimum average upstream IPG of 8 to 12 in the 10G EPON symmetric mode. According to the configured IPG value, the corresponding DIC algorithm is selected to provide users with more ways to improve transmission efficiency.
表1为平均最小IPG取值为12字节的DIC算法。以平均最小IPG取值为12为例,为了对齐lane0,帧间距需要在12字节的基础上增加或减少IDLE字符,DIC算法维持一个计数值,每增加1个IDLE,计数值减1,每减少1个IDLE,计数值增加1,计数值维持在0到3之间。DIC算法算出的帧间距会在9-15字节之间变化,但平均最小IPG会在12字节。Table 1 shows the DIC algorithm with an average minimum IPG value of 12 bytes. Taking the average minimum IPG value of 12 as an example, in order to align lane0, the frame spacing needs to increase or decrease the IDLE character on the basis of 12 bytes. The DIC algorithm maintains a count value. Each time an IDLE is added, the count value is subtracted by 1. Decrease 1 IDLE, increase the count value by 1, and keep the count value between 0 and 3. The frame spacing calculated by the DIC algorithm will vary between 9-15 bytes, but the average minimum IPG will be 12 bytes.
表1Table 1
Figure PCTCN2020112179-appb-000001
Figure PCTCN2020112179-appb-000001
本申请提出了平均最小IPG取值为8、9、10、11字节的DIC算法。This application proposes a DIC algorithm with an average minimum IPG value of 8, 9, 10, and 11 bytes.
表2为平均最小IPG取值为11字节对应的DIC算法。具体参见下表:Table 2 shows the DIC algorithm corresponding to the average minimum IPG value of 11 bytes. See the table below for details:
表2Table 2
Figure PCTCN2020112179-appb-000002
Figure PCTCN2020112179-appb-000002
表3为平均最小IPG取值为10字节对应的DIC算法。具体参见下表:Table 3 shows the DIC algorithm corresponding to the average minimum IPG value of 10 bytes. See the table below for details:
表3table 3
Figure PCTCN2020112179-appb-000003
Figure PCTCN2020112179-appb-000003
表4为平均最小IPG取值为9字节对应的DIC算法。具体参见下表:Table 4 shows the DIC algorithm corresponding to the average minimum IPG value of 9 bytes. See the table below for details:
表4Table 4
Figure PCTCN2020112179-appb-000004
Figure PCTCN2020112179-appb-000004
表5为平均最小IPG取值为8字节对应的DIC算法。具体参见下表:Table 5 shows the DIC algorithm corresponding to the average minimum IPG value of 8 bytes. See the table below for details:
表5table 5
Figure PCTCN2020112179-appb-000005
Figure PCTCN2020112179-appb-000005
基于上述DIC算法,本申请提供的报文处理方法,包括:在10G以太网无源光网络EPON的对称模式下,获取上行传输操作中的包间隙IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数;根据所述配置信息,获取所述IPG长度对应的空闲字符计数DIC策略;按照所述DIC策略,对接收的报文进行处理。Based on the above DIC algorithm, the message processing method provided in this application includes: in the symmetric mode of the 10G Ethernet passive optical network EPON, obtaining the configuration information of the packet gap IPG length in the upstream transmission operation, wherein the configuration information The average minimum IPG length in is an integer from 8 to 11; the idle character count DIC strategy corresponding to the IPG length is obtained according to the configuration information; the received message is processed according to the DIC strategy .
本实施例中,平均最小IPG的取值与平均最小IPG长度的取值的含义相同。In this embodiment, the value of the average minimum IPG has the same meaning as the value of the average minimum IPG length.
图4为本申请实施例提供的另一种报文处理方法的流程图。图4所示方法包括:Fig. 4 is a flowchart of another message processing method provided by an embodiment of the application. The method shown in Figure 4 includes:
步骤410、基于IPG配置信息完成DIC算法的配置,并设置CurrentDIC的取值。Step 410: Complete the configuration of the DIC algorithm based on the IPG configuration information, and set the value of CurrentDIC.
在一个示例性实施例中,平均最小IPG长度的取值为8、9、10、11或12;获取IPG的配置信息,并选择加载相应的DIC算法表,Current DIC初始化为0。In an exemplary embodiment, the value of the average minimum IPG length is 8, 9, 10, 11, or 12; the configuration information of the IPG is obtained, and the corresponding DIC algorithm table is selected to be loaded, and Current DIC is initialized to 0.
例如,平均最小IPG长度的取值为8,则获取上文表5的DIC算法表。For example, if the value of the average minimum IPG length is 8, then the DIC algorithm table in Table 5 above is obtained.
步骤420、执行报文接收操作,在检测到报文接收完成后,获取报文的长度。Step 420: Perform a message receiving operation, and obtain the length of the message after the completion of the message reception is detected.
在一个示例性实施例中,可以通过判断接收到的报文的数据是否携带该报文的数据包的包尾,来确定报文是否接收完成。In an exemplary embodiment, it is possible to determine whether the message is received by determining whether the data of the received message carries the end of the data packet of the message.
步骤430、以报文的长度的数值为被除数,以除数的取值为4进行除法运算, 获取余数值。Step 430: Use the value of the length of the message as the dividend, and use the value of the divisor to perform a division operation to obtain a remainder value.
在一个示例实施例中,余数的取值为2。In an exemplary embodiment, the value of the remainder is 2.
步骤440、根据Current DIC的取值和余数值,在DIC算法表,得到IPG和New DIC的值。Step 440: According to the value of Current DIC and the remainder value, in the DIC algorithm table, the values of IPG and New DIC are obtained.
在一个示例性实施例中,从表5中查找余数的取值为2所在行的信息,再根据Current DIC取值为0,可以得到IPG长度的取值为6,New DIC的取值为2。In an exemplary embodiment, look up the information in the row where the value of the remainder is 2 from Table 5, and then according to the value of Current DIC to be 0, it can be obtained that the value of IPG length is 6 and the value of New DIC is 2. .
步骤450、根据得到的IPG值,在包尾发送相应数量的IDLE数据,把New DIC的取值赋值给Current DIC。Step 450: According to the obtained IPG value, a corresponding amount of IDLE data is sent at the end of the packet, and the value of New DIC is assigned to Current DIC.
步骤460、等待下一帧的数据到来,判断是否有新的报文。Step 460: Wait for the arrival of the next frame of data, and judge whether there is a new message.
如果有新的报文,则执行步骤420至步骤460;如果没有新的报文,执行步骤470。If there is a new message, perform step 420 to step 460; if there is no new message, perform step 470.
步骤470,发送IDLE数据,并在IDLE数据发送完后继续执行步骤460。Step 470: Send IDLE data, and continue to perform step 460 after the IDLE data is sent.
本申请实施例提供的方法,实现平均最小IPG的取值为8到12中任一整数,最大限度提高传输效率。The method provided in the embodiments of the present application realizes that the average minimum IPG value is any integer from 8 to 12, which maximizes the transmission efficiency.
本申请实施例提供一种计算机存储介质,包括处理器和存储器,所述存储器存储有计算机程序,所述处理器设置为调用所述存储器中的计算机程序以实现上文任一所述的方法。An embodiment of the present application provides a computer storage medium, including a processor and a memory, the memory stores a computer program, and the processor is configured to call the computer program in the memory to implement any of the methods described above.
本申请实施例提供的计算机存储介质,在10G EPON的对称模式下,获取上行传输操作中的IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数,并根据所述配置信息,获取所述IPG长度对应的DIC策略,再按照所述DIC策略,对接收到的报文进行处理,实现在上行平均最小IPG长度的取值为8到11的配置下进行数据传输,减少无效数据的填充数量,提高传输效率。The computer storage medium provided by the embodiment of the present application obtains the configuration information of the IPG length in the upstream transmission operation in the symmetric mode of 10G EPON, where the average minimum IPG length in the configuration information takes a value of 8 to 11. According to the configuration information, the DIC strategy corresponding to the IPG length is obtained, and then the received message is processed according to the DIC strategy to realize that the average minimum IPG length in the uplink is 8 to Data transmission is carried out under the configuration of 11, which reduces the amount of filling of invalid data and improves transmission efficiency.
本领域普通技术人员可以理解,上文中所公开方法中的全部或一些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或 步骤可以由多个物理组件合作执行。一些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机访问存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、带电可擦可编程只读存储器(Electrically Erasable Programmable read only memory,EEPROM)、闪存或其他存储器技术、紧凑型光盘只读储存器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital versatile disc,DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps, functional modules/units in the system, and apparatus in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In the hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of multiple The physical components are executed cooperatively. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media. Computer storage media include but are not limited to random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory Or other memory technologies, Compact Disc Read-Only Memory (CD-ROM), Digital versatile disc (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other A magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

Claims (10)

  1. 一种报文处理方法,包括:A message processing method includes:
    在10G以太网无源光网络EPON的对称模式下,获取上行传输操作中的包间隙IPG长度的配置信息,其中,所述配置信息中的平均最小IPG长度的取值为8至11中的一个整数,所述平均最小IPG长度的取值为将多个IPG长度中至少两个最小IPG长度的取值进行取平均处理后得到的数值;Under the symmetric mode of the 10G Ethernet passive optical network EPON, obtain the configuration information of the packet gap IPG length in the upstream transmission operation, wherein the average minimum IPG length in the configuration information is one of 8 to 11 An integer, the value of the average minimum IPG length is a value obtained by averaging the values of at least two minimum IPG lengths among the multiple IPG lengths;
    根据所述配置信息,获取所述平均最小IPG长度对应的空闲字符计数DIC策略;Obtaining the idle character count DIC strategy corresponding to the average minimum IPG length according to the configuration information;
    按照所述DIC策略,对接收的报文进行处理。According to the DIC strategy, the received message is processed.
  2. 根据权利要求1所述的方法,其中,所述按照所述DIC策略,对接收的报文进行处理,包括:The method according to claim 1, wherein the processing the received message according to the DIC policy comprises:
    在接收到报文后,获取报文的长度;After receiving the message, get the length of the message;
    将报文的长度的数值作为被除数,以除数的取值为4进行除法运算,获取余数值;Use the value of the length of the message as the dividend, and divide by the value of the divisor to 4 to obtain the remainder value;
    利用预先获取的当前DIC的取值和所述余数值,在所述DIC策略中,查找所述当前DIC的取值和所述余数值对应的IPG长度的取值;Using the pre-acquired current DIC value and the remainder value, in the DIC strategy, search for the value of the IPG length corresponding to the current DIC value and the remainder value;
    根据得到的IPG长度的取值,在所述报文的尾部增加空闲IDLE数据。According to the obtained value of the IPG length, idle IDLE data is added at the end of the message.
  3. 根据权利要求2所述的方法,所述利用预先获取的当前DIC的取值和所述余数值,在所述DIC策略中,查找所述当前DIC取值和所述余数值对应的IPG长度的取值,还包括:The method according to claim 2, said using the pre-acquired current DIC value and the remainder value, in the DIC strategy, searching for the IPG length corresponding to the current DIC value and the remainder value Value, also includes:
    在所述DIC策略中,查找所述当前DIC的取值和所述余数值对应的新的DIC的取值,并将得到的新的DIC的取值作为当前DIC的取值;In the DIC strategy, search for a new DIC value corresponding to the current DIC value and the remainder value, and use the obtained new DIC value as the current DIC value;
    利用更新取值后的当前DIC的取值,对下一帧的报文进行处理。Use the updated value of the current DIC to process the message of the next frame.
  4. 根据权利要求2或3所述的方法,其中,在所述平均最小IPG长度的取值为11的情况下,所述平均最小IPG长度对应的DIC策略包括:The method according to claim 2 or 3, wherein, when the average minimum IPG length takes a value of 11, the DIC strategy corresponding to the average minimum IPG length comprises:
    在余数值为0的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,3},{1,12,0},{2,12,1},{3,12,2};When the remainder value is 0, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 8, 3}, {1, 12, 0}, {2, 12, 1}, {3, 12, 2};
    在余数值为1的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,11,0},{1,11,1},{2,11,2},{3,11,3};When the remainder value is 1, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 11, 0}, {1, 11, 1}, {2, 11, 2}, {3, 11, 3};
    在余数值为2的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,10,1},{1,10,2},{2,10,3},{3,14,0};When the remainder value is 2, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 10, 1}, {1, 10, 2}, {2, 10, 3}, {3, 14, 0};
    在余数值为3的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,2},{1,9,3},{2,13,0},{3,13,1}。When the remainder value is 3, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: {0, 9, 2}, {1, 9, 3}, {2, 13, 0}, {3, 13, 1}.
  5. 根据权利要求2或3所述的方法,其中,在所述平均最小IPG长度的取值为10的情况下,所述平均最小IPG长度对应的DIC策略包括:The method according to claim 2 or 3, wherein, when the average minimum IPG length takes a value of 10, the DIC strategy corresponding to the average minimum IPG length comprises:
    在余数值为0的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,2},{1,8,3},{2,12,0},{3,12,1};When the remainder value is 0, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: {0, 8, 2}, {1, 8, 3}, {2, 12, 0}, {3, 12, 1};
    在余数值为1的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,3},{1,11,0},{2,11,1},{3,11,2};When the remainder value is 1, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 7, 3}, {1, 11, 0}, {2, 11, 1}, {3, 11, 2};
    在余数值为2的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,10,0},{1,10,1},{2,10,2},{3,10,3};When the remainder value is 2, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 10, 0}, {1, 10, 1}, {2, 10, 2}, {3, 10, 3};
    在余数值为3的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,1},{1,9,2},{2,9,3},{3,13,0}。When the remainder value is 3, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 9, 1}, {1, 9, 2}, {2, 9, 3}, {3, 13, 0}.
  6. 根据权利要求2或3所述的方法,其中,在所述平均最小IPG长度的取值为9的情况下,所述平均最小IPG长度对应的DIC策略包括:The method according to claim 2 or 3, wherein, when the average minimum IPG length takes a value of 9, the DIC strategy corresponding to the average minimum IPG length comprises:
    在余数值为0的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,1},{1,8,2},{2,8,3},{3,12,0};When the remainder value is 0, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 8, 1}, {1, 8, 2}, {2, 8, 3}, {3, 12, 0};
    在余数值为1的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,2},{1,7,3},{2,11,0},{3,11,1};When the remainder value is 1, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 7, 2}, {1, 7, 3}, {2, 11, 0}, {3, 11, 1};
    在余数值为2的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,6,3},{1,10,0},{2,10,1},{3,10,2};When the remainder value is 2, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 6, 3}, {1, 10, 0}, {2, 10, 1}, {3, 10, 2};
    在余数值为3的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,9,0},{1,9,1},{2,9,2},{3,9,3}。When the remainder value is 3, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: {0, 9, 0}, {1, 9, 1}, {2, 9, 2}, {3, 9, 3}.
  7. 根据权利要求2或3所述的方法,其中,在所述平均最小IPG长度的取值为8的情况下,所述平均最小IPG长度对应的DIC策略包括:The method according to claim 2 or 3, wherein, when the average minimum IPG length takes a value of 8, the DIC strategy corresponding to the average minimum IPG length comprises:
    在余数值为0的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,8,0},{1,8,1},{2,8,2},{3,8,3};When the remainder value is 0, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 8, 0}, {1, 8, 1}, {2, 8, 2}, {3, 8, 3};
    在余数值为1的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,7,1},{1,7,2},{2,7,3},{3,11,0};When the remainder value is 1, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 7, 1}, {1, 7, 2}, {2, 7, 3}, {3, 11, 0};
    在余数值为2的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,6,2},{1,6,3},{2,10,0},{3,10,1};When the remainder value is 2, the sequence of the current DIC value, the IPG length value, and the new DIC value includes: {0, 6, 2}, {1, 6, 3}, {2, 10, 0}, {3, 10, 1};
    在余数值为3的情况下,当前DIC的取值、IPG长度的取值、新的DIC的取值的序列包括:{0,5,3},{1,9,0},{2,9,1},{3,9,2}。When the remainder value is 3, the sequence of the value of the current DIC, the value of the IPG length, and the value of the new DIC includes: {0, 5, 3}, {1, 9, 0}, {2, 9, 1}, {3, 9, 2}.
  8. 根据权利要求2或3所述的方法,所述按照所述DIC策略,对接收的报文进行处理之后,还包括:The method according to claim 2 or 3, after processing the received message according to the DIC policy, the method further comprises:
    在预先设置的时长内未收到报文的情况下,发送IDLE数据。If no message is received within the preset time period, IDLE data is sent.
  9. 根据权利要求1所述的方法,其中,所述平均最小IPG长度的取值还包括12。The method according to claim 1, wherein the value of the average minimum IPG length further includes 12.
  10. 一种计算机存储介质,包括处理器和存储器,所述存储器存储有计算机程序,所述处理器设置为调用所述存储器中的计算机程序以实现如权利要求1至9中任一所述的方法。A computer storage medium comprising a processor and a memory, the memory storing a computer program, and the processor is configured to call the computer program in the memory to implement the method according to any one of claims 1-9.
PCT/CN2020/112179 2019-08-28 2020-08-28 Message processing method and computer storage medium WO2021037220A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910803342.XA CN112449255B (en) 2019-08-28 2019-08-28 Message processing method and computer storage medium
CN201910803342.X 2019-08-28

Publications (1)

Publication Number Publication Date
WO2021037220A1 true WO2021037220A1 (en) 2021-03-04

Family

ID=74683477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112179 WO2021037220A1 (en) 2019-08-28 2020-08-28 Message processing method and computer storage medium

Country Status (2)

Country Link
CN (1) CN112449255B (en)
WO (1) WO2021037220A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098658A (en) * 2021-03-11 2021-07-09 鹏城实验室 Ethernet frame interval mean value adjusting method and device, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701053A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Method and device for transmitting and receiving serial data
US20160380647A1 (en) * 2015-06-25 2016-12-29 Broadcom Corporation Apparatus and method for wired data communication
US9544237B1 (en) * 2013-10-23 2017-01-10 Marvell International Ltd. Method and apparatus for inserting idle bytes in a data stream
CN106533779A (en) * 2016-11-30 2017-03-22 盛科网络(苏州)有限公司 Method and system for verifying IPG compensation of 40G/100G/USXGMII interface

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512150B2 (en) * 2003-03-24 2009-03-31 Applied Micro Circuits Corporation 10 GbE LAN signal mapping to OTU2 signal
US8649398B2 (en) * 2011-03-14 2014-02-11 Xilinx, Inc. Packet network interface apparatus and method
CN103916217B (en) * 2014-03-25 2017-06-13 烽火通信科技股份有限公司 The implementation method and device of XLGMII interface multichannel frequency reducing DIC mechanism

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9544237B1 (en) * 2013-10-23 2017-01-10 Marvell International Ltd. Method and apparatus for inserting idle bytes in a data stream
CN105701053A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Method and device for transmitting and receiving serial data
US20160380647A1 (en) * 2015-06-25 2016-12-29 Broadcom Corporation Apparatus and method for wired data communication
CN106533779A (en) * 2016-11-30 2017-03-22 盛科网络(苏州)有限公司 Method and system for verifying IPG compensation of 40G/100G/USXGMII interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Intel Stratix 10 H-Tile Hard IP for Ethernet IP Core User Guide", 8 December 2020 (2020-12-08), pages 1 - 206, XP055787344, Retrieved from the Internet <URL:https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug-s10-htile-hip-ethernet.pdf> *

Also Published As

Publication number Publication date
CN112449255B (en) 2023-06-02
CN112449255A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN106412628B (en) Bandwidth adjusting method and related equipment
US10135740B2 (en) Method and apparatus for limiting rate by means of token bucket, and computer storage medium
WO2019007379A1 (en) Data processing method and device
US20210359931A1 (en) Packet Scheduling Method, Scheduler, Network Device, and Network System
CN110943933A (en) Method, device and system for realizing data transmission
US9432999B1 (en) Optimization of airtime among Wi-Fi clients connected to an access point
WO2009120332A1 (en) Relaxed deterministic back-off method for medium access control
CN110506403A (en) Flow control for wireless device
US20200228633A1 (en) Method and Apparatus for Determining Quality of Service, and Storage Medium
WO2021037220A1 (en) Message processing method and computer storage medium
EP2445142A1 (en) Dynamic bandwidth adjustment for multiple service support
CN109428842A (en) A kind of QoS information transfer approach and device
EP4250607A1 (en) Packet forwarding method, packet sending method, device, and computer-readable medium
EP2874361A1 (en) Method and device for transmitting enhanced transmission selection standard configuration information
US9839042B2 (en) Method, apparatus, and system for resource scheduling
WO2021097803A1 (en) Resource switching method and apparatus and storage medium
EP3041285A1 (en) Data frame sending method and apparatus
US8953473B2 (en) Communication device
WO2020134415A1 (en) Method and system for fast message forwarding by means of hardware and software
US9072079B2 (en) Method for controlling channel access, access point and user equipment
CN109905327B (en) Wireless network data transmission method, sending end and receiving end
CN112350957B (en) Method and device for sending network message and network processor
KR20210005249A (en) Service signal transmission method and apparatus
WO2024022448A1 (en) Data transmission method and related apparatus
EP3373577B1 (en) Multicast profile switching method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20856212

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20856212

Country of ref document: EP

Kind code of ref document: A1