WO2016095412A1 - Wire speed processing method and device - Google Patents

Wire speed processing method and device Download PDF

Info

Publication number
WO2016095412A1
WO2016095412A1 PCT/CN2015/078693 CN2015078693W WO2016095412A1 WO 2016095412 A1 WO2016095412 A1 WO 2016095412A1 CN 2015078693 W CN2015078693 W CN 2015078693W WO 2016095412 A1 WO2016095412 A1 WO 2016095412A1
Authority
WO
WIPO (PCT)
Prior art keywords
hdlc
frame
dequeue
frames
cache module
Prior art date
Application number
PCT/CN2015/078693
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 WO2016095412A1 publication Critical patent/WO2016095412A1/en

Links

Images

Definitions

  • This paper relates to the field of data communication, especially a method and device for implementing line rate processing.
  • Packet over SONET (SD) technology enables high-performance routers to adopt SONET/SDH frames on the backbone network.
  • IP Internet Protocol
  • An important indicator in the switching and forwarding of backbone network equipment is called line speed.
  • the line speed refers to the maximum number of frames that the cable can pass in unit time.
  • the POS technology uses the Point-to-Point Protocol (PPP) encapsulation format of the High-Level Data Link Control (HDLC) at the data link layer.
  • PPP Point-to-Point Protocol
  • HDLC frame protocol specifies the start of the HDLC frame. The end and the end are identified by the hexadecimal identifier 0x7E.
  • FIG. 1 is a schematic structural diagram of a related art POS framer.
  • the POS framer includes a POS mapping (Mapper) module (PPP/HDLC protocol frame framing module) and a POS framing (Framer) module (POS frame framing module).
  • the POS Mapper module is configured to perform PPP/HDLC encapsulation on the data packet to obtain an HDLC frame, and then the POS Mapper module performs non-line rate processing on the HDLC frame according to the POS protocol (that is, to ensure continuity between HDLC frames).
  • the POS Framer module is used to encapsulate the POS frame of the HDLC frame after the non-linear rate processing.
  • the non-line rate processing of the HDLC frame introduces a multi-byte 0x7E overhead, and the cost of the POS interface fails to reach the line rate, thereby reducing the forwarding performance of the POS interface.
  • the embodiment of the invention provides a method and a device for implementing line rate processing, which can improve the forwarding performance of the POS interface.
  • the embodiment of the invention provides a method for implementing line rate processing, including:
  • the packet POS mapping module on the synchronous optical network performs a point-to-point protocol PPP/class advanced data link control HDLC frame encapsulation of the HDLC protocol for enqueue buffering;
  • the size of all the HDLC frames in the outbound cache is greater than or equal to a preset threshold, and the HDLC frame in the enqueue buffer is subjected to line rate processing, and the HDLC frame processed by the line rate is dequeued.
  • the dequeue buffer when it is determined that the size of all the HDLC frames in the dequeue buffer is less than a preset threshold, performing non-linear processing on the HDLC frame in the enqueue buffer, and saving the non-linear velocity processed HDLC frame. Go to the dequeue cache.
  • the performing non-line rate processing on the HDLC frame in the enqueue buffer includes:
  • a frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  • performing line-speed processing on the HDLC frame in the enqueue buffer includes:
  • An embodiment of the present invention further provides an apparatus for implementing line rate processing, including:
  • the enqueue cache module is configured to save the data packet POS mapping module on the synchronous optical network to perform a point-to-point protocol PPP/class advanced data link to control the HDLC frame encapsulated by the HDLC protocol;
  • the dequeue cache module is configured to determine whether the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold; and set to save the HDLC frame after the line rate processing;
  • the line rate processing module is configured to perform line rate processing on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold.
  • the dequeue cache module is further configured to:
  • the device further includes: a non-line rate processing module, configured to: when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is less than a preset threshold, The HDLC frame in the memory module is subjected to non-line rate processing.
  • a non-line rate processing module configured to: when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is less than a preset threshold, The HDLC frame in the memory module is subjected to non-line rate processing.
  • the non-linear processing module is configured to:
  • the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is less than a preset threshold, a frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  • the line speed processing module is configured to:
  • the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is greater than or equal to a preset threshold, determine that the number of frame intervals between two adjacent HDLC frames is greater than one, and delete two adjacent frames.
  • the frame interval between HDLC frames is such that the number of frame intervals between two adjacent HDLC frames is equal to one.
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • the embodiment of the present invention includes: performing a point-to-point protocol PPP/class-type advanced data link control HDLC frame encapsulation of the HDLC frame on the synchronous optical fiber network to enter the queue buffer;
  • the HDLC frame in the enqueue buffer is processed by the line rate of the HDLC frame in the enqueue buffer, and the HDLC frame processed by the line rate is dequeued.
  • the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS interface speed is increased. Forwarding performance of the POS interface.
  • FIG. 1 is a schematic structural diagram of a POS framer in the related art
  • FIG. 2 is a flowchart of a method for implementing line speed processing according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a device for implementing line speed processing according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a method for implementing line speed processing according to an example of the present invention.
  • an embodiment of the present invention provides a method for implementing line rate processing, including:
  • Step 200 Enroll the HDLC frame encapsulated by the POS Mapper module into the PPP/HDLC protocol into the queue;
  • Step 201 Determine that the size of all the HDLC frames in the outbound cache is greater than or equal to a preset threshold, perform line rate processing on the HDLC frame in the enqueue buffer, and dequeue the HDLC frame processed by the line rate.
  • the preset threshold may be half the size of the dequeue cache.
  • the line rate processing of the HDLC frame in the enqueue buffer includes:
  • the frame interval between HDLC frames may be 0x7E, and the size of each frame interval is one byte.
  • the frame interval between HDLC frames can be deleted in multiple ways, so that the number of frame intervals between two adjacent HDLC frames is equal to one.
  • the number of frame intervals between two adjacent HDLC frames can be obtained, the difference between the obtained number of frame intervals and one is calculated, and the calculated difference frame interval between two adjacent HDLC frames is deleted.
  • the number of frame intervals between two adjacent HDLC frames is obtained. If it is determined that the number of obtained frame intervals is greater than one, the number of frame intervals between two adjacent HDLC frames is continuously performed; if it is determined that the obtained If the number of frame intervals is equal to one, the process of deleting the number of frame intervals between two adjacent HDLC frames is ended.
  • the HDLC frame in the enqueue buffer is subjected to non-line rate processing, and the non-line-speed processed HDLC frame is dequeued.
  • the non-line rate processing of the HDLC frame in the enqueue buffer includes:
  • a frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  • the POS Framer module performs POS encapsulation on the HDLC frame after the line rate processing in the dequeue cache or the HDLC frame after the non-line rate processing.
  • the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS is improved. Forwarding performance of the interface.
  • an embodiment of the present invention further provides an apparatus for implementing line rate processing, including at least:
  • the enqueue cache module is configured to save the HDLC frame encapsulated by the POS Mapper module after PPP/HDLC protocol encapsulation;
  • the dequeue cache module is configured to determine whether the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold; and, is configured to save the HDLC frame after the line rate processing;
  • the line rate processing module is configured to perform line rate processing on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold.
  • the line speed processing module is set to:
  • the dequeue cache module determines that the size of all HDLC frames in the outbound cache module is greater than or equal to a preset threshold, determining that the number of frame intervals between two adjacent HDLC frames is greater than one, and deleting between HDLC frames
  • the frame interval is such that the number of frame intervals between two adjacent HDLC frames is equal to one.
  • the dequeue cache module is further configured to:
  • the device further includes: a non-line rate processing module, configured to perform a non-line on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue buffer module is less than a preset threshold Speed processing.
  • a non-line rate processing module configured to perform a non-line on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue buffer module is less than a preset threshold Speed processing.
  • the non-line rate processing module is set to:
  • the dequeue cache module determines that the size of all the HDLC frames in the outbound cache module is less than the preset threshold, a frame interval is added between the two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  • the method includes:
  • Step 400 In the downlink transmission, the POS Mapper module performs PPP/HDLC association on the data packet. Encapsulate the HDLC frame;
  • Step 401 The POS Mapper module saves the encapsulated HDLC frame to the enqueue cache module.
  • Step 402 The dequeue cache module determines whether the size of all HDLC frames in the queue buffer module is greater than or equal to a preset threshold, and if so, step 403 is performed, and if no, step 404 is performed;
  • Step 403 The line rate processing module performs line rate processing on the HDLC frame in the enqueue buffer module, and saves the line rate processed HDLC frame to the dequeue cache module.
  • Step 404 The non-line rate processing module performs non-line rate processing on the HDLC frame in the enqueue buffer module, and saves the non-line rate processed HDLC frame to the dequeue cache module.
  • the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS interface speed is increased. Forwarding performance of the POS interface.

Abstract

Disclosed in an embodiment of the present invention are a wire speed processing method and device. The method comprises: performing enqueue buffering on a high-level data link control (HDLC) frame packaged via a point-to-point protocol (PPP)/HDLC protocol performed by a packet over synchronous optical network (POS) mapper module; if sizes of all HDLC frames in a dequeue buffer are determined to be greater than or equal to a preset threshold, then performing wire speed processing on the HDLC frame in an enqueue buffer and saving the processed HDLC frame into the dequeue buffer.

Description

一种实现线速处理的方法和装置Method and device for realizing line speed processing 技术领域Technical field
本文涉及数据通信领域,尤指一种实现线速处理的方法和装置。This paper relates to the field of data communication, especially a method and device for implementing line rate processing.
背景技术Background technique
在同步光纤网络(SONET,Synchronous Optical Network)/同步数字体系(SDH,Synchronous Digital Hierarchy),SONET上的数据包(POS,Packet over SONET/SDH)技术使高性能路由器在骨干网上采用SONET/SDH帧发送互联网协议(IP,Internet Protocol)报文。骨干网络设备交换转发中有个重要指标叫线速,线速是指理论上线缆单位时间内通过的最大帧数。POS技术在数据链路层使用类高级数据链路控制(HDLC,High-Level Data Link Control)的点到点协议(PPP,Point-to-Point Protocol)封装格式,HDLC帧协议规定HDLC帧的开始和结尾以十六进制标识符0x7E标识,HDLC帧在线路上以线速传输时相邻两个HDLC帧之间的间隔要求至少有一个字节的0x7E。图1为相关技术的POS成帧器的结构组成示意图。如图1所示,POS成帧器包括POS映射(Mapper)模块(PPP/HDLC协议帧成帧模块)和POS成帧(Framer)模块(POS帧成帧模块)。其中,在下行传输中,POS Mapper模块用于对数据包进行PPP/HDLC协议封装得到HDLC帧,然后POS Mapper模块按照POS协议对HDLC帧进行非线速处理(即为了保证HDLC帧之间的连续性,在HDLC帧之间增加帧间隔0x7E),POS Framer模块用于对非线速处理后的HDLC帧进行POS帧封装。由于对HDLC帧进行非线速处理后引入了多个字节的0x7E开销,而多个字节的开销会造成POS接口的速率无法达到线速,从而降低了POS接口的转发性能。In Synchronous Optical Network (SONET)/Synchronous Digital Hierarchy (SDH), Packet over SONET (SD) technology enables high-performance routers to adopt SONET/SDH frames on the backbone network. Send Internet Protocol (IP) packets. An important indicator in the switching and forwarding of backbone network equipment is called line speed. The line speed refers to the maximum number of frames that the cable can pass in unit time. The POS technology uses the Point-to-Point Protocol (PPP) encapsulation format of the High-Level Data Link Control (HDLC) at the data link layer. The HDLC frame protocol specifies the start of the HDLC frame. The end and the end are identified by the hexadecimal identifier 0x7E. When the HDLC frame is transmitted at the line rate on the line, the interval between two adjacent HDLC frames requires at least one byte of 0x7E. FIG. 1 is a schematic structural diagram of a related art POS framer. As shown in FIG. 1, the POS framer includes a POS mapping (Mapper) module (PPP/HDLC protocol frame framing module) and a POS framing (Framer) module (POS frame framing module). In the downlink transmission, the POS Mapper module is configured to perform PPP/HDLC encapsulation on the data packet to obtain an HDLC frame, and then the POS Mapper module performs non-line rate processing on the HDLC frame according to the POS protocol (that is, to ensure continuity between HDLC frames). The POS Framer module is used to encapsulate the POS frame of the HDLC frame after the non-linear rate processing. The non-line rate processing of the HDLC frame introduces a multi-byte 0x7E overhead, and the cost of the POS interface fails to reach the line rate, thereby reducing the forwarding performance of the POS interface.
发明内容Summary of the invention
本发明实施例提出了一种实现线速处理的方法和装置,能够提高POS接口的转发性能。 The embodiment of the invention provides a method and a device for implementing line rate processing, which can improve the forwarding performance of the POS interface.
本发明实施例提出了一种实现线速处理的方法,包括:The embodiment of the invention provides a method for implementing line rate processing, including:
将同步光纤网络上的数据包POS映射模块进行点到点协议PPP/类高级数据链路控制HDLC协议封装后的HDLC帧进行入队缓存;The packet POS mapping module on the synchronous optical network performs a point-to-point protocol PPP/class advanced data link control HDLC frame encapsulation of the HDLC protocol for enqueue buffering;
判断出出队缓存中所有HDLC帧的大小大于或等于预设阈值,对入队缓存中的HDLC帧进行线速处理,将线速处理后的HDLC帧进行出队缓存。It is determined that the size of all the HDLC frames in the outbound cache is greater than or equal to a preset threshold, and the HDLC frame in the enqueue buffer is subjected to line rate processing, and the HDLC frame processed by the line rate is dequeued.
可选地,当判断出所述出队缓存中所有HDLC帧的大小小于预设阈值时,对所述入队缓存中的HDLC帧进行非线速处理,将非线速处理后的HDLC帧保存到所述出队缓存中。Optionally, when it is determined that the size of all the HDLC frames in the dequeue buffer is less than a preset threshold, performing non-linear processing on the HDLC frame in the enqueue buffer, and saving the non-linear velocity processed HDLC frame. Go to the dequeue cache.
可选地,所述对入队缓存中的HDLC帧进行非线速处理包括:Optionally, the performing non-line rate processing on the HDLC frame in the enqueue buffer includes:
在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。A frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
可选地,所述对入队缓存中的HDLC帧进行线速处理包括:Optionally, performing line-speed processing on the HDLC frame in the enqueue buffer includes:
判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除相邻两个HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。It is determined that the number of frame intervals between two adjacent HDLC frames is greater than one, and the frame interval between two adjacent HDLC frames is deleted, so that the number of frame intervals between two adjacent HDLC frames is equal to one.
本发明实施例还提出了一种实现线速处理的装置,包括:An embodiment of the present invention further provides an apparatus for implementing line rate processing, including:
入队缓存模块,设置为保存同步光纤网络上的数据包POS映射模块进行点到点协议PPP/类高级数据链路控制HDLC协议封装后的HDLC帧;The enqueue cache module is configured to save the data packet POS mapping module on the synchronous optical network to perform a point-to-point protocol PPP/class advanced data link to control the HDLC frame encapsulated by the HDLC protocol;
出队缓存模块,设置为判断出队缓存模块中所有HDLC帧的大小是否大于或等于预设阈值;以及设置为保存线速处理后的HDLC帧;以及The dequeue cache module is configured to determine whether the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold; and set to save the HDLC frame after the line rate processing;
线速处理模块,设置为在所述出队缓存模块判断出出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存模块中的HDLC帧进行线速处理。The line rate processing module is configured to perform line rate processing on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold.
可选地,所述出队缓存模块还设置为:Optionally, the dequeue cache module is further configured to:
判断出出队缓存模块中所有HDLC帧的大小是否小于预设阈值;以及设置为将非线速处理后的HDLC帧保存到所述出队缓存模块中;Determining whether the size of all HDLC frames in the outbound cache module is less than a preset threshold; and setting the non-linear velocity processed HDLC frame to the dequeue cache module;
所述装置还包括:非线速处理模块,其设置为在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小小于预设阈值时,对所述入队缓 存模块中的HDLC帧进行非线速处理。The device further includes: a non-line rate processing module, configured to: when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is less than a preset threshold, The HDLC frame in the memory module is subjected to non-line rate processing.
可选地,所述非线速处理模块是设置为:Optionally, the non-linear processing module is configured to:
在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小小于预设阈值时,在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。When the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is less than a preset threshold, a frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
可选地,所述线速处理模块是设置为:Optionally, the line speed processing module is configured to:
在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除相邻两个HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。When the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is greater than or equal to a preset threshold, determine that the number of frame intervals between two adjacent HDLC frames is greater than one, and delete two adjacent frames. The frame interval between HDLC frames is such that the number of frame intervals between two adjacent HDLC frames is equal to one.
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上述方法。The embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
与相关技术相比,本发明实施例包括:将同步光纤网络上的数据包POS映射模块进行点到点协议PPP/类高级数据链路控制HDLC协议封装后的HDLC帧进行入队缓存;判断出出队缓存中所有HDLC帧的大小大于或等于预设阈值,对入队缓存中的HDLC帧进行线速处理,将线速处理后的HDLC帧进行出队缓存。通过本发明实施例的方案,在出队缓存中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存中的HDLC帧进行线速处理,使得POS接口的速率达到线速,提高了POS接口的转发性能。Compared with the related art, the embodiment of the present invention includes: performing a point-to-point protocol PPP/class-type advanced data link control HDLC frame encapsulation of the HDLC frame on the synchronous optical fiber network to enter the queue buffer; The HDLC frame in the enqueue buffer is processed by the line rate of the HDLC frame in the enqueue buffer, and the HDLC frame processed by the line rate is dequeued. With the solution of the embodiment of the present invention, when the size of all the HDLC frames in the dequeue cache is greater than or equal to the preset threshold, the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS interface speed is increased. Forwarding performance of the POS interface.
附图概述BRIEF abstract
图1为相关技术中的POS成帧器的结构组成示意图;1 is a schematic structural diagram of a POS framer in the related art;
图2为本发明实施例实现线速处理的方法流程图;2 is a flowchart of a method for implementing line speed processing according to an embodiment of the present invention;
图3为本发明实施例实现线速处理的装置结构组成示意图;3 is a schematic structural diagram of a device for implementing line speed processing according to an embodiment of the present invention;
图4为本发明示例实现线速处理的方法流程图。 4 is a flow chart of a method for implementing line speed processing according to an example of the present invention.
本发明的实施方式Embodiments of the invention
需要说明的是,在不冲突的情况下,本文中实施例及实施例中的各种方式可以相互组合。It should be noted that the various embodiments in the embodiments and the embodiments herein may be combined with each other without conflict.
参见图2,本发明实施例提出了一种实现线速处理的方法,包括:Referring to FIG. 2, an embodiment of the present invention provides a method for implementing line rate processing, including:
步骤200、将POS Mapper模块进行PPP/HDLC协议封装后的HDLC帧进行入队缓存;Step 200: Enroll the HDLC frame encapsulated by the POS Mapper module into the PPP/HDLC protocol into the queue;
步骤201、判断出出队缓存中所有HDLC帧的大小大于或等于预设阈值,对入队缓存中的HDLC帧进行线速处理,将线速处理后的HDLC帧进行出队缓存。Step 201: Determine that the size of all the HDLC frames in the outbound cache is greater than or equal to a preset threshold, perform line rate processing on the HDLC frame in the enqueue buffer, and dequeue the HDLC frame processed by the line rate.
本步骤中,预设阈值可以是出队缓存的大小的一半。In this step, the preset threshold may be half the size of the dequeue cache.
本步骤中,对入队缓存中的HDLC帧进行线速处理包括:In this step, the line rate processing of the HDLC frame in the enqueue buffer includes:
判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除相邻两个HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。It is determined that the number of frame intervals between two adjacent HDLC frames is greater than one, and the frame interval between two adjacent HDLC frames is deleted, so that the number of frame intervals between two adjacent HDLC frames is equal to one.
其中,HDLC帧之间的帧间隔可以是0x7E,每一个帧间隔的大小为一个字节。The frame interval between HDLC frames may be 0x7E, and the size of each frame interval is one byte.
其中,可以采用多种方法删除HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。例如,可以获取相邻两个HDLC帧之间的帧间隔数量,计算获得的帧间隔数量与一之间的差值,删除相邻两个HDLC帧之间的计算得到的差值个帧间隔。或者,获取相邻两个HDLC帧之间的帧间隔数量,如果判断出获得的帧间隔数量大于一,则继续执行获取相邻两个HDLC帧之间的帧间隔的数量;如果判断出获得的帧间隔数量等于一,则结束删除相邻两个HDLC帧之间的帧间隔数量的流程。The frame interval between HDLC frames can be deleted in multiple ways, so that the number of frame intervals between two adjacent HDLC frames is equal to one. For example, the number of frame intervals between two adjacent HDLC frames can be obtained, the difference between the obtained number of frame intervals and one is calculated, and the calculated difference frame interval between two adjacent HDLC frames is deleted. Or, the number of frame intervals between two adjacent HDLC frames is obtained. If it is determined that the number of obtained frame intervals is greater than one, the number of frame intervals between two adjacent HDLC frames is continuously performed; if it is determined that the obtained If the number of frame intervals is equal to one, the process of deleting the number of frame intervals between two adjacent HDLC frames is ended.
当判断出出队缓存中所有HDLC帧的大小小于预设阈值时,对入队缓存中的HDLC帧进行非线速处理,将非线速处理后的HDLC帧进行出队缓存。When it is determined that the size of all the HDLC frames in the queue buffer is less than the preset threshold, the HDLC frame in the enqueue buffer is subjected to non-line rate processing, and the non-line-speed processed HDLC frame is dequeued.
其中,对入队缓存中的HDLC帧进行非线速处理包括:The non-line rate processing of the HDLC frame in the enqueue buffer includes:
在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。本实施例方法中,POS Framer模块对出队缓存中线速处理后的HDLC帧或非线速处理后的HDLC帧进行POS封装。 A frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate. In the method of this embodiment, the POS Framer module performs POS encapsulation on the HDLC frame after the line rate processing in the dequeue cache or the HDLC frame after the non-line rate processing.
通过本实施例的方案,在出队缓存中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存中的HDLC帧进行线速处理,使得POS接口的速率达到线速,提高了POS接口的转发性能。With the solution of the embodiment, when the size of all the HDLC frames in the dequeue buffer is greater than or equal to the preset threshold, the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS is improved. Forwarding performance of the interface.
参见图3,本发明实施例还提出了一种实现线速处理的装置,至少包括:Referring to FIG. 3, an embodiment of the present invention further provides an apparatus for implementing line rate processing, including at least:
入队缓存模块,设置为保存POS Mapper模块进行PPP/HDLC协议封装后的HDLC帧;The enqueue cache module is configured to save the HDLC frame encapsulated by the POS Mapper module after PPP/HDLC protocol encapsulation;
出队缓存模块,设置为判断出队缓存模块中所有HDLC帧的大小是否大于或等于预设阈值;以及,设置为保存线速处理后的HDLC帧;以及The dequeue cache module is configured to determine whether the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold; and, is configured to save the HDLC frame after the line rate processing;
线速处理模块,设置为在所述出队缓存模块判断出出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存模块中的HDLC帧进行线速处理。The line rate processing module is configured to perform line rate processing on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold.
本实施例的装置中,线速处理模块是设置为:In the apparatus of this embodiment, the line speed processing module is set to:
在所述出队缓存模块判断出出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。When the dequeue cache module determines that the size of all HDLC frames in the outbound cache module is greater than or equal to a preset threshold, determining that the number of frame intervals between two adjacent HDLC frames is greater than one, and deleting between HDLC frames The frame interval is such that the number of frame intervals between two adjacent HDLC frames is equal to one.
本实施例的装置中,出队缓存模块还设置为:In the apparatus of this embodiment, the dequeue cache module is further configured to:
判断出出队缓存模块中所有HDLC帧的大小是否小于预设阈值;以及设置为将非线速处理后的HDLC帧存保存到出队缓存模块中;Determining whether the size of all HDLC frames in the outbound cache module is less than a preset threshold; and setting the saved HDLC frame storage to the dequeue cache module;
所述装置还包括:非线速处理模块,其设置为在出队缓存模块判断出出队缓存模块中所有HDLC帧的大小小于预设阈值时,对入队缓存模块中的HDLC帧进行非线速处理。The device further includes: a non-line rate processing module, configured to perform a non-line on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue buffer module is less than a preset threshold Speed processing.
本实施例的装置中,非线速处理模块是设置为:In the apparatus of this embodiment, the non-line rate processing module is set to:
在出队缓存模块判断出出队缓存模块中所有HDLC帧的大小小于预设阈值时,在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。When the dequeue cache module determines that the size of all the HDLC frames in the outbound cache module is less than the preset threshold, a frame interval is added between the two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
下面介绍一示例。An example is described below.
参见图4,该方法包括:Referring to Figure 4, the method includes:
步骤400、在下行传输中,POS Mapper模块对数据包进行PPP/HDLC协 议封装得到HDLC帧;Step 400: In the downlink transmission, the POS Mapper module performs PPP/HDLC association on the data packet. Encapsulate the HDLC frame;
步骤401、POS Mapper模块将封装后的HDLC帧保存到入队缓存模块中;Step 401: The POS Mapper module saves the encapsulated HDLC frame to the enqueue cache module.
步骤402、出队缓存模块判断出队缓存模块中所有HDLC帧的大小是否大于或等于预设阈值,如果是,则执行步骤403,如果否,则执行步骤404;Step 402: The dequeue cache module determines whether the size of all HDLC frames in the queue buffer module is greater than or equal to a preset threshold, and if so, step 403 is performed, and if no, step 404 is performed;
步骤403、线速处理模块对入队缓存模块中的HDLC帧进行线速处理,将线速处理后的HDLC帧保存到出队缓存模块中;Step 403: The line rate processing module performs line rate processing on the HDLC frame in the enqueue buffer module, and saves the line rate processed HDLC frame to the dequeue cache module.
步骤404、非线速处理模块对入队缓存模块中的HDLC帧进行非线速处理,将非线速处理后的HDLC帧保存到出队缓存模块中。Step 404: The non-line rate processing module performs non-line rate processing on the HDLC frame in the enqueue buffer module, and saves the non-line rate processed HDLC frame to the dequeue cache module.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
工业实用性Industrial applicability
通过本发明实施例的方案,在出队缓存中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存中的HDLC帧进行线速处理,使得POS接口的速率达到线速,提高了POS接口的转发性能。 With the solution of the embodiment of the present invention, when the size of all the HDLC frames in the dequeue cache is greater than or equal to the preset threshold, the line rate of the HDLC frame in the enqueue buffer is processed, so that the rate of the POS interface reaches the line speed, and the POS interface speed is increased. Forwarding performance of the POS interface.

Claims (9)

  1. 一种实现线速处理的方法,包括:A method of implementing wire speed processing, comprising:
    将同步光纤网络上的数据包POS映射模块进行点到点协议PPP/类高级数据链路控制HDLC协议封装后的HDLC帧进行入队缓存;The packet POS mapping module on the synchronous optical network performs a point-to-point protocol PPP/class advanced data link control HDLC frame encapsulation of the HDLC protocol for enqueue buffering;
    判断出出队缓存中所有HDLC帧的大小大于或等于预设阈值,对入队缓存中的HDLC帧进行线速处理,将线速处理后的HDLC帧进行出队缓存。It is determined that the size of all the HDLC frames in the outbound cache is greater than or equal to a preset threshold, and the HDLC frame in the enqueue buffer is subjected to line rate processing, and the HDLC frame processed by the line rate is dequeued.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    当判断出所述出队缓存中所有HDLC帧的大小小于预设阈值时,对所述入队缓存中的HDLC帧进行非线速处理,将非线速处理后的HDLC帧保存到所述出队缓存中。When it is determined that the size of all the HDLC frames in the dequeue buffer is less than a preset threshold, performing non-line rate processing on the HDLC frame in the enqueue buffer, and saving the non-line-speed processed HDLC frame to the out In the queue.
  3. 根据权利要求2所述的方法,其中,所述对入队缓存中的HDLC帧进行非线速处理包括:The method of claim 2 wherein said non-linear processing of HDLC frames in the enqueue buffer comprises:
    在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。A frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  4. 根据权利要求1或2所述的方法,其中,所述对入队缓存中的HDLC帧进行线速处理包括:The method according to claim 1 or 2, wherein said performing line rate processing on the HDLC frame in the enqueue buffer comprises:
    判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除相邻两个HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。It is determined that the number of frame intervals between two adjacent HDLC frames is greater than one, and the frame interval between two adjacent HDLC frames is deleted, so that the number of frame intervals between two adjacent HDLC frames is equal to one.
  5. 一种实现线速处理的装置,包括:A device for implementing wire speed processing, comprising:
    入队缓存模块,设置为保存同步光纤网络上的数据包POS映射模块进行点到点协议PPP/类高级数据链路控制HDLC协议封装后的HDLC帧;The enqueue cache module is configured to save the data packet POS mapping module on the synchronous optical network to perform a point-to-point protocol PPP/class advanced data link to control the HDLC frame encapsulated by the HDLC protocol;
    出队缓存模块,设置为判断出队缓存模块中所有HDLC帧的大小是否大于或等于预设阈值;以及,设置为保存线速处理后的HDLC帧;以及The dequeue cache module is configured to determine whether the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold; and, is configured to save the HDLC frame after the line rate processing;
    线速处理模块,设置为在所述出队缓存模块判断出出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,对入队缓存模块中的HDLC帧进行线速处理。The line rate processing module is configured to perform line rate processing on the HDLC frame in the enqueue buffer module when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is greater than or equal to a preset threshold.
  6. 根据权利要求5所述的装置,The device according to claim 5,
    所述出队缓存模块还设置为:判断出队缓存模块中所有HDLC帧的大小 是否小于预设阈值;以及设置为将非线速处理后的HDLC帧保存到所述出队缓存模块中;The dequeue cache module is further configured to: determine the size of all HDLC frames in the queue cache module Whether it is less than a preset threshold; and is configured to save the non-line-speed processed HDLC frame to the dequeue cache module;
    所述装置还包括:非线速处理模块,其设置为在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小小于预设阈值时,对所述入队缓存模块中的HDLC帧进行非线速处理。The device further includes: a non-line rate processing module, configured to: when the dequeue cache module determines that the size of all HDLC frames in the dequeue cache module is less than a preset threshold, in the enqueue cache module The HDLC frame is subjected to non-line rate processing.
  7. 根据权利要求6所述的装置,所述非线速处理模块是设置为:The apparatus of claim 6 wherein said non-linear rate processing module is configured to:
    在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小小于预设阈值时,在相邻两个HDLC帧之间添加帧间隔,使得POS接口的速率达到线速。When the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is less than a preset threshold, a frame interval is added between two adjacent HDLC frames, so that the rate of the POS interface reaches the line rate.
  8. 根据权利要求5或6所述的装置,所述线速处理模块是设置为:The apparatus according to claim 5 or 6, wherein the line speed processing module is configured to:
    在所述出队缓存模块判断出所述出队缓存模块中所有HDLC帧的大小大于或等于预设阈值时,判断出相邻两个HDLC帧之间的帧间隔数量大于一,删除相邻两个HDLC帧之间的帧间隔,使得相邻两个HDLC帧之间的帧间隔数量等于一。When the dequeue cache module determines that the size of all the HDLC frames in the dequeue cache module is greater than or equal to a preset threshold, determine that the number of frame intervals between two adjacent HDLC frames is greater than one, and delete two adjacent frames. The frame interval between HDLC frames is such that the number of frame intervals between two adjacent HDLC frames is equal to one.
  9. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-4任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, can implement the method of any of claims 1-4.
PCT/CN2015/078693 2014-12-17 2015-05-11 Wire speed processing method and device WO2016095412A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410789757.3 2014-12-17
CN201410789757.3A CN105791158B (en) 2014-12-17 2014-12-17 Method and device for realizing linear speed processing

Publications (1)

Publication Number Publication Date
WO2016095412A1 true WO2016095412A1 (en) 2016-06-23

Family

ID=56125765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078693 WO2016095412A1 (en) 2014-12-17 2015-05-11 Wire speed processing method and device

Country Status (2)

Country Link
CN (1) CN105791158B (en)
WO (1) WO2016095412A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090175278A1 (en) * 2003-03-24 2009-07-09 Corrigent Systems Ltd. Efficient transport of tdm services over packet networks
US20090207861A1 (en) * 2008-02-15 2009-08-20 Ibiquity Digital Corporation Method and Apparatus For Formatting Data Signals in a Digital Audio Broadcasting System
US20090290587A1 (en) * 2008-05-23 2009-11-26 Fujitsu Limited Method and apparatus for transmitting data from asynchronous network via synchronous network
CN101640615A (en) * 2009-09-08 2010-02-03 杭州华三通信技术有限公司 Method and equipment for detecting POS port code disturbing configuration
CN102487330A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 Method and device for sending operation, administration and maintenance messages
CN102647243A (en) * 2012-03-23 2012-08-22 华为技术有限公司 Message interpolating method, site and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090175278A1 (en) * 2003-03-24 2009-07-09 Corrigent Systems Ltd. Efficient transport of tdm services over packet networks
US20090207861A1 (en) * 2008-02-15 2009-08-20 Ibiquity Digital Corporation Method and Apparatus For Formatting Data Signals in a Digital Audio Broadcasting System
US20090290587A1 (en) * 2008-05-23 2009-11-26 Fujitsu Limited Method and apparatus for transmitting data from asynchronous network via synchronous network
CN101640615A (en) * 2009-09-08 2010-02-03 杭州华三通信技术有限公司 Method and equipment for detecting POS port code disturbing configuration
CN102487330A (en) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 Method and device for sending operation, administration and maintenance messages
CN102647243A (en) * 2012-03-23 2012-08-22 华为技术有限公司 Message interpolating method, site and system

Also Published As

Publication number Publication date
CN105791158B (en) 2020-06-26
CN105791158A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
JP6318453B2 (en) Multiplexing client streams on a single connection
WO2017215392A1 (en) Network congestion control method, device, and system
WO2019134383A1 (en) Method for controlling network congestion, access device, and computer readable storage medium
WO2017088557A1 (en) Processing method and apparatus for sending and receiving data packet
EP1768321B1 (en) Interworking, circuit emulation service over packet and IP/MPLS packet processing
WO2010097035A1 (en) Clock message tunnel transmission method, network node and communication system thereof
WO2015172668A1 (en) Method and device for determining congestion window in network
WO2015149620A1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
WO2018161672A1 (en) Packet processing method, apparatus and system
WO2016206432A1 (en) Time-division multiplexed data transmission method and device, and network-side edge device
JP2002368803A (en) Transmitter and its flow control method
WO2011160517A1 (en) Tunnel switching method and system for multi-protocol label switching services
WO2016201943A1 (en) Packet traffic monitoring method, device and mobile communication gateway
WO2017161967A1 (en) Method of monitoring data traffic in packets per second, device, and computer storage medium
JP2020510339A (en) Method and apparatus for maintaining the relative timing and order of data packets in a network
WO2017114378A1 (en) Forwarding of ip data packet
WO2016192402A1 (en) Method and apparatus for adjusting maximum transmission unit of ipv6 tunnel
WO2014127517A1 (en) Packet processing method, forwarder, packet processing device and packet processing system
WO2010025628A1 (en) Method, equipment and system for data transmission on physical layer.
WO2022028342A1 (en) Method for processing congestion flow and device
WO2018165866A1 (en) Sdn and packet forwarding method and apparatus thereof
JP2006114973A (en) Radio base station and radio terminal equipment
WO2019102257A1 (en) Methods and systems for transmitting and receiving data packets through a bonded connection
WO2016095412A1 (en) Wire speed processing method and device
WO2015154557A1 (en) Data packet transmission processing method and device

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: 15868925

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: 15868925

Country of ref document: EP

Kind code of ref document: A1