WO2015196653A1 - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
WO2015196653A1
WO2015196653A1 PCT/CN2014/088866 CN2014088866W WO2015196653A1 WO 2015196653 A1 WO2015196653 A1 WO 2015196653A1 CN 2014088866 W CN2014088866 W CN 2014088866W WO 2015196653 A1 WO2015196653 A1 WO 2015196653A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
packet
processing
message
chip
Prior art date
Application number
PCT/CN2014/088866
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 WO2015196653A1 publication Critical patent/WO2015196653A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications, and in particular to a data processing method and apparatus.
  • VDSL2 Very High-rate Digital Subscriber Loop
  • FEXT far end crosstalk
  • ITU-T In order to more completely eliminate the impact of FEXT on VDSL2, ITU-T has introduced a vector technology standard, namely Demand Side Management Level 3 (DSM Level 3). .
  • the vector solves the FEXT in the VDSL2 line by vectorization, and improves the performance of the multi-line VDSL2 line.
  • the device supports a board level vector (BLV) implementation.
  • the embodiments of the present invention provide a data processing method and apparatus to solve at least the problem caused by a large number of bursts in a short period of time in a vector technology.
  • a data processing method includes: configuring parameters of an interface between a switch chip and a processing chip according to a predetermined parameter, so that all error samples from the switch chip (Error Sample , the abbreviated as ES) message can reach the processing chip within a predetermined time; wherein the predetermined parameter includes at least: a total number of lines of a digital subscriber loop (DSL); The ES packet branch added to the receiving processing interface in the chip distributes the received ES packet.
  • ES error samples from the switch chip
  • Configuring the parameters of the interface between the switch chip and the processing chip according to the predetermined parameter includes: when the rate of the interface is a first threshold range, the predetermined parameter includes only: DSL And the total number of lines; and/or, in a case where the rate of the interface is a second threshold range, the predetermined parameter further includes: a capability of the processing chip.
  • Configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter includes: first-in-first-out of an interface between the switch chip and the processing chip according to the predetermined parameter
  • the queue (First input First Output, FIFO for short) is configured in depth.
  • the method further includes: estimating, according to the predetermined parameter, the ES message within a predetermined duration a maximum burst amount; adjusting, according to the burst amount, a rate limit value for transmitting the ES packet to the processing chip by using the interface.
  • the priority of the branch for processing the ES message is the highest priority.
  • the distribution of the received ES message by the branch of the ES packet includes: checking the received packet; and determining whether the packet is a valid packet, and determining whether the packet is the ES packet. If the result of the determination is yes, the ES message is distributed through the ES packet branch.
  • the method further includes: limiting a network packet to the uplink interface connected to the switch chip and the uplink daughter card.
  • Performing the network packet rate limit on the uplink interface of the switch chip and the uplink subcard includes: classifying the network packet from the uplink interface; and classifying according to the network packet The network packet is limited in speed.
  • a data processing apparatus comprising: a configuration module 22 configured to configure parameters of an interface between a switch chip and a processing chip according to predetermined parameters, such that all from the The ES packets of the switch chip can reach the processing chip within a predetermined time; wherein The predetermined parameter includes at least: a total number of lines of the DSL; and the distribution module 24 is configured to distribute the received ES message by using an ES message branch added in the receiving processing interface in the processing chip.
  • the predetermined parameter includes only: a total number of lines of the DSL; and/or, in a case where the rate of the interface is a second threshold range, the predetermined The parameters also include: the capacity of the CPU.
  • the configuration module is further configured to configure a FIFO depth of an interface between the switch chip and the processing chip according to the predetermined parameter.
  • the apparatus further includes: an adjustment module 26 configured to estimate a maximum burst amount of the ES message within a predetermined duration according to the predetermined parameter, and to pass the interface to the processing chip according to the burst amount Send the rate limit value of the ES packet to adjust.
  • the priority of the branch for processing the ES message is the highest priority.
  • the distribution module 24 includes: a verification unit 32 configured to check the received message; and a determination unit 34 configured to determine whether the message is the ES message for the message whose verification result is legal; 36. Set, in the case that the determination result is yes, distribute the ES message by using the branch for processing the ES message.
  • the device further includes a rate limiting module 28 configured to limit the network packet to the uplink interface connected to the switch chip and the uplink daughter card.
  • the rate limiting module 28 includes: a classifying unit 42 configured to classify the network packet from the uplink interface; and the rate limiting unit 44 is configured to limit the network packet according to the classification of the network packet speed.
  • the embodiment of the present invention configures parameters of an interface between a switch chip and a processing chip (CPU) according to a predetermined parameter, so that all ES messages from the switch chip can reach the processing chip within a predetermined time;
  • the predetermined parameter includes at least: the total number of lines of the DSL; and the received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip, and the precoding report in the vector technology in the prior art is solved.
  • the problem caused by a large number of bursts in a short period of time, which improves the distribution and processing priority of ES packets in the processing chip, and improves the processing of ES messages in the specified time of the protocol to some extent. possibility.
  • FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a block diagram 3 of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram 4 of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention
  • FIG. 9 is a flowchart of a CPU port parameter optimization method according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for adding an ES packet processing branch according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of a method for implementing network packet rate limiting on an interface connected to a switch and an uplink daughter card according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a data processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter, so that all ES messages from the switch chip can reach the processing chip within a predetermined time; wherein the predetermined parameters include at least: DSL Total number of lines;
  • Step S104 The received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip.
  • the parameters of the interface between the switch chip and the processing chip are configured according to predetermined parameters.
  • the parameters of the interface between the switch chip and the processing chip are fixed values, resulting in the vector technology.
  • the problem that the pre-coded message has a large number of bursts in a short time and must be processed within a specified time can enable all ES messages from the switch chip to reach the processing chip within a predetermined time and receive the chips through the processing chip.
  • the ES packets added to the interface are used to distribute the received ES packets. This improves the distribution and processing priorities of the ES packets on the processing chip. This improves the processing of ES packets in the time specified by the protocol. possibility.
  • step S102 the basis for configuring the parameters of the interface between the switch chip and the processing chip is described.
  • the basis for configuring the parameters of the interface between the switch chip and the processing chip may be various. This is illustrated below.
  • the predetermined parameter in the case that the rate of the interface is in the first threshold range, the predetermined parameter includes only: the total number of lines of the DSL; in another optional embodiment, the rate at the interface is the second threshold. In the case of the range, the predetermined parameters include not only the total number of DSL lines, but also the capability of the processing chip.
  • configuring the parameters of the interface between the switch chip and the processing chip includes configuring the FIFO depth of the interface between the switch chip and the processing chip. For example, it may be an almost_full parameter, but there may be differences in parameters of different types of switch chips.
  • the parameter estimates the maximum burst amount of the ES packet in the predetermined duration, and adjusts the rate limit value of the ES packet sent to the processing chip through the interface according to the burst amount.
  • the embodiment of the present invention relates to a technical solution for effectively processing an ES packet. Therefore, in an optional embodiment, the priority of the branch for processing the ES packet is the highest priority, so that the ES packet can be ensured. Get priority treatment.
  • distributing the received ES packets through the ES packet branch includes: checking the received packets. If the packet is a valid packet, the packet is judged to be an ES packet. If the result is YES, the ES packet is distributed through the ES packet branch.
  • the network packet rate limit is caused by the uplink interface of the switch chip and the uplink daughter card in an optional embodiment, because the network packet is over-processed and the processing load of the system is affected, thereby affecting the sending rate and processing capability of the ES packet. .
  • the network packets from the uplink interface are classified, and the network packets are rate-limited according to the classification of the network packets.
  • other methods for limiting the speed of the network packet can be used for the uplink interface that can be connected to the switch chip and the uplink daughter card, and details are not described herein.
  • the network packet is restricted by the existing rules of the switch chip, so that the ES packet is discarded or the processing timeout is caused by the network packet impact, and finally the validity of the vector function is ensured.
  • a data processing device is further provided, and the device is configured to implement the foregoing method.
  • the descriptions of the modules in the following devices are not described herein.
  • the functionality of the modules described below can be implemented by a processor.
  • the apparatus includes: a configuration module 22 configured to configure parameters of an interface between a switch chip and a processing chip according to predetermined parameters, So that all the ES messages from the switch chip can reach the processing chip within a predetermined time; wherein the predetermined parameters include at least: the total number of lines of the DSL; the distribution module 24 is connected to the configuration module 22, and is configured to pass through the processing chip.
  • the ES packet branch added to the receiving processing interface distributes the received ES packet.
  • the predetermined parameter includes only: the total number of lines of the DSL; and/or, if the rate of the interface is the second threshold, the predetermined parameter further includes: CPU's ability to withstand.
  • the configuration module 22 is further configured to configure the FIFO depth of the interface between the switch chip and the processing chip.
  • the apparatus further includes: an adjustment module 26 configured to estimate a maximum burst of the ES message within a predetermined duration according to a predetermined parameter. The amount is adjusted according to the burst amount to the rate limit value of sending the ES packet to the processing chip through the interface.
  • the priority of the branch for processing the ES packet is the highest priority.
  • the distribution module 24 includes: a checking unit 32 configured to check a received message; and a determining unit 34 configured to be Check The result of the test is a legal message to determine whether the message is an ES message; the distribution unit 36 is configured to distribute the ES message through the branch for processing the ES message if the judgment result is yes. .
  • FIG. 5 is a block diagram 3 of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus further includes: a rate limiting module 28 configured to network the uplink interface of the switch chip and the uplink daughter card. Package speed limit.
  • the speed limit module 28 includes: a classification unit 42 configured to classify the network packet from the uplink interface; 44, set to limit the network packet according to the classification of the network packet.
  • FIG. 7 is a schematic diagram of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention. As shown in FIG. 7, to implement BLV on an MDU-type VDSL2 access device, the following requirements should be met:
  • the processing chip (CPU) is used for both system control and ES operation to ensure that the ES packet is processed within the expected time;
  • an implementation scheme and system for supporting a board-level vector of an MDU-type VDSL2 access device are proposed in the preferred embodiment, and the interface parameters connected to the CPU are optimized by the switch chip to avoid ES packets.
  • Packet loss, and the priority of the distribution and processing of ES packets in the CPU ensuring that ES packets can be processed within the time specified by the protocol, and finally restricting network packets through the existing rules of the switch to avoid network packet impact.
  • the ES packet is discarded or the processing timeout expires, and finally the validity of the vector function is ensured.
  • VCE VECTORING Control Engine
  • an implementation scheme of an MDU-type VDSL2 access device supporting BLV is first provided, which specifically refers to a software optimization to solve the BLV ES packet large-flow fast processing requirement and the maximum speed limit reduction ES report.
  • FIG. 8 is a flowchart of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention. As shown in FIG. 8, the specific steps are as follows:
  • Step S802 By optimizing the parameters of the connection port between the switch and the CPU (hereinafter referred to as the CPU port), it is ensured that the transmission requirement of the ES message can be satisfied when the link rate is 100M/1000M. For example, all ES packets need to be sent and sent within 64 ms, and the ES packets are proportional to the total number of lines. The more lines, the more ES packets in 64 ms, so you need to optimize the parameters of the CPU port to ensure all the parameters. The ES message can be sent to the CPU within the specified time.
  • Step S804 After receiving the ES message sent by the switch, the CPU also needs to complete the processing within a certain period of time, for example, quickly distributes to the DSL driver for vector calculation for crosstalk cancellation within 64 ms.
  • the ES packet distribution branch In order to meet the requirements of the distribution of fast ES packets and the requirements of other services, we add the ES packet distribution branch to the receiving and processing interface of the CPU, and place this branch at the highest priority.
  • Step S806 For a system in which only one Media Independent Interface (MII) port is connected between the switch and the CPU, the ES message is interspersed throughout the life cycle of the link establishment and chain establishment, so the network is reduced. If the packet is too large and the system is burdened, which affects the sending rate and processing capacity of the ES packet, we need to apply the corresponding network packet rate limit on the interface connected to the uplink card to swicth, and reduce the impact of the network packet on the system. The smallest.
  • MII Media Independent Interface
  • FIG. 9 is a flowchart of a CPU port parameter optimization method according to an embodiment of the present invention. As shown in FIG. 9, the specific steps are as follows:
  • Step S902 Perform different branch processing according to the CPU port establishment rate
  • Step S904 When the CPU port construction rate in the above step S902 is 100 M, the FIFO parameters of the CPU port are optimized according to the total number of DSL lines, so that the CPU port can cope with the multi-line ES packet burst scenario, and the ES message can be ensured. All delivered to the CPU;
  • Step S906 When the CPU port establishment rate in the above step S902 is 1000M, the FIFO parameters of the CPU port are optimized according to the total number of lines of the DSL and the bearing capacity of the CPU, so that the CPU port can cope with the burst scenario of the multi-line ES packet. , to ensure that the ES message can be delivered to the CPU, and does not exceed the processing limit of the CPU;
  • Step S908 Estimate the maximum burst amount in the ES packet 1s according to the total number of lines of the DSL, thereby guiding the adjustment of the CPU port outbound speed limit value.
  • FIG. 10 is a flowchart of a method for adding an ES packet processing branch according to an embodiment of the present invention. As shown in FIG. 10, the specific steps are as follows:
  • Step S1002 The system CPU receives the packet forwarded by the CPU port of the switch;
  • Step S1004 Perform a legality check on the packet received in the above step S1002; mainly verify the hardware address (Media Access Control, MAC address) of the packet, the IP legality, the correctness of the corresponding checksum, and the like;
  • Step S1006 Perform a discarding action on the packet that is illegal in the above step S1004, and perform corresponding error reporting statistics;
  • Step S1008 For the packet with the normal inspection fee in the above step S1004, the packet is distributed according to the virtual eth port;
  • Step S1010 Perform corresponding processing on the packet belonging to the eth0 port in the above step S1008;
  • Step S1012 Perform corresponding processing on the packet belonging to the eth1 port in the above step S1008;
  • Step S1014 Perform corresponding processing on the packet belonging to the eth2 port in the above step S1008;
  • Step S1016 For the packet of the eth2 port in the foregoing step S1014, specifically, the ES packet is preferentially processed, and first, according to the destination MAC, whether it is an ES packet;
  • Step S1018 The original normal process is performed for the packet that is determined to be non-ES in the foregoing step S1016;
  • Step S1020 Perform a separate ES distribution process for the message determined to be ES in the above step S1016.
  • FIG. 11 is a flowchart of a method for implementing network packet rate limiting on an interface connected to a switch and an uplink daughter card according to an embodiment of the present invention. As shown in FIG. 11, the specific steps are as follows:
  • Step S1102 The switch on the switch receives the data packet sent by the network side.
  • Step S1104 classify network packets received by the uplink port in step S1102.
  • Step S1106 The rate limit of the ARP packet is determined according to the rate limit of the ARP packet, and the rate limit unit is pps, and the speed limit value can be matched.
  • Step S1108 The rate limit of the DHCP/IGMP packet is determined according to the rate limit of the DHCP/IGMP packet, and the rate limit unit is pps, and the rate limit value can be configured;
  • the rate limit is kbps and the rate limit value can be configured according to the special ACL rule applied by the uplink port for the other network packets that are determined to be non-ARP/DHCP/IGMP in the step S1104.
  • the present invention relates to the field of communications, and provides a data processing method and apparatus, wherein the method includes: configuring parameters of an interface between a switch chip and a processing chip according to a predetermined parameter, so that all ES messages from the switch chip can be configured.
  • the processing chip is reached within a predetermined time; wherein the predetermined parameter includes at least: a total number of lines of the DSL; and the received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

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

Abstract

Disclosed are a data processing method and device. The method comprises: configuring parameters of an interface between a switching chip and a processing chip according to predetermined parameters, so that all ES packets from the switching chip can reach the processing chip within a predetermined period of time, the predetermined parameters comprising at least the total number of DSLs; and delivering the received ES packets by using an ES packet branch added in a receiving and processing interface in the processing chip. Therefore, the problem in the prior art that a burst of precoded packets exist within a short period of time in the vector technology is solved, the delivering and processing priority of the ES packets in the processing chip is raised, and the possibility that the ES packets can be processed within a period of time specified in the protocol is increased to some extent.

Description

数据处理方法及装置Data processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种数据处理方法及装置。The present invention relates to the field of communications, and in particular to a data processing method and apparatus.
背景技术Background technique
随着宽带的逐渐发展,由于其在短距离的带宽优势(理想应用环境下可达100Mbps),第二代甚高速数字用户环路(Second Generation Very-high-rate Digital Subscriber loop,简称为VDSL2)成为当前“最后一段”铜线的主流接入方式。但由于VDSL2使用的频段较高,线间串扰的问题比较突出。与单线对VDSL2接入时的带宽相比,多线对VDSL2接入时的每线对带宽下降非常明显,串扰问题成为限制VDSL2性能的主要因素,而其中的远端串扰(Far End Cross-Talk,简称为FEXT)又是重中之重。With the gradual development of broadband, due to its short-distance bandwidth advantage (up to 100 Mbps in an ideal application environment), the second generation of Very High-rate Digital Subscriber Loop (VDSL2) Become the mainstream access method for the current "last segment" of copper wire. However, due to the higher frequency band used by VDSL2, the problem of crosstalk between lines is more prominent. Compared with the bandwidth of single-line VDSL2 access, the bandwidth drop of each pair when VDSL2 is connected is very obvious. The crosstalk problem becomes the main factor limiting the performance of VDSL2, and far end crosstalk (Far End Cross-Talk) , referred to as FEXT) is another top priority.
为了更彻底地从根本上消除FEXT对VDSL2的影响,ITU-T组织推出了矢量化(vector)技术标准,亦即需求侧管理阶段3,(Demand Side Management Level 3,简称为DSM Level 3)阶段。vector通过矢量化的方法,针对性地解决VDSL2线路中的FEXT,提升多线对VDSL2线路的性能。In order to more completely eliminate the impact of FEXT on VDSL2, ITU-T has introduced a vector technology standard, namely Demand Side Management Level 3 (DSM Level 3). . The vector solves the FEXT in the VDSL2 line by vectorization, and improves the performance of the multi-line VDSL2 line.
但是由于vector技术对于预编码报文的收发处理时间的高度敏感性,从而给系统的内部带宽提出了很高的要求。最终使许多多用户居住单元(Multiple Dwelling Unit,简称为MDU)型多用户VDSL2接入设备望而却步。如何“高可靠、易运维”地实现这些海量数据的传输和处理,是vector产品化的主要挑战。However, due to the high sensitivity of the vector technology to the processing time of the pre-encoding message, the internal bandwidth of the system is highly demanded. In the end, many multi-user VDSL2 access devices with multiple Dwelling Units (MDUs) are discouraged. How to achieve high-reliability and easy operation and maintenance of these massive data transmission and processing is the main challenge of vector productization.
为了解决vector技术中预编码报文的短时间内存在大量突发和必须在规定时间内处理完成的特点,使MDU型VDSL2接入设备能够实现板级vector功能,我们需要一种MDU型VDSL2接入设备支持板级vector(board level vector,简称为BLV)的实现方案。In order to solve the problem that a large number of bursts of precoding packets in the vector technology exist in a short period of time and must be processed within a specified time, so that the MDU type VDSL2 access device can implement the board level vector function, we need an MDU type VDSL2 connection. The device supports a board level vector (BLV) implementation.
针对相关技术中,vector技术中预编码报文在短时间内存在大量突发所导致的问题,还未提出有效的解决方案。In view of the related art, the problem that a pre-coded message in the vector technology has a large number of bursts in a short time has not yet proposed an effective solution.
发明内容Summary of the invention
本发明实施例提供了一种数据处理方法和装置,以至少解决vector技术中预编码报文的短时间内存在大量突发所导致的问题。 The embodiments of the present invention provide a data processing method and apparatus to solve at least the problem caused by a large number of bursts in a short period of time in a vector technology.
根据本发明实施例的一个方面,提供了一种数据处理方法,包括:根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自所述交换芯片的误差采样(Error Sample,简称为ES)报文均能够在预定时间内到达所述处理芯片;其中,所述预定参数至少包括:数字用户环路(Digital Subscriber loop,简称为DSL)的总线路数;通过所述处理芯片中的接收处理接口中添加的ES报文分支对接收到的所述ES报文进行分发。According to an aspect of an embodiment of the present invention, a data processing method includes: configuring parameters of an interface between a switch chip and a processing chip according to a predetermined parameter, so that all error samples from the switch chip (Error Sample , the abbreviated as ES) message can reach the processing chip within a predetermined time; wherein the predetermined parameter includes at least: a total number of lines of a digital subscriber loop (DSL); The ES packet branch added to the receiving processing interface in the chip distributes the received ES packet.
根据所述预定参数对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置包括:在所述接口的速率为第一阈值范围的情况下,所述预定参数仅包括:DSL的总线路数;和/或,在所述接口的速率为第二阈值范围的情况下,所述预定参数还包括:所述处理芯片的承受能力。Configuring the parameters of the interface between the switch chip and the processing chip according to the predetermined parameter includes: when the rate of the interface is a first threshold range, the predetermined parameter includes only: DSL And the total number of lines; and/or, in a case where the rate of the interface is a second threshold range, the predetermined parameter further includes: a capability of the processing chip.
根据所述预定参数对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置包括:根据所述预定参数对所述交换芯片和所述处理芯片之间的接口的先入先出队列(First input First Output,简称为FIFO)深度进行配置。Configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter includes: first-in-first-out of an interface between the switch chip and the processing chip according to the predetermined parameter The queue (First input First Output, FIFO for short) is configured in depth.
在根据所述预定参数对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置之后,所述方法还包括:根据所述预定参数估算所述ES报文在预定时长内的最大突发量;根据所述突发量对通过所述接口向所述处理芯片发送所述ES报文的限速值进行调整。After configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter, the method further includes: estimating, according to the predetermined parameter, the ES message within a predetermined duration a maximum burst amount; adjusting, according to the burst amount, a rate limit value for transmitting the ES packet to the processing chip by using the interface.
用于处理所述ES报文的分支的优先级为最高优先级。The priority of the branch for processing the ES message is the highest priority.
通过所述ES报文分支对接收到的所述ES报文进行分发包括:对接收到的报文进行检验;对检验结果为合法的报文进行该报文是否为所述ES报文的判断;在判断结果为是情况下,通过所述ES报文分支对所述ES报文进行分发。The distribution of the received ES message by the branch of the ES packet includes: checking the received packet; and determining whether the packet is a valid packet, and determining whether the packet is the ES packet. If the result of the determination is yes, the ES message is distributed through the ES packet branch.
所述方法还包括:对所述交换芯片与上联子卡连接的上联接口进行网络包限速。The method further includes: limiting a network packet to the uplink interface connected to the switch chip and the uplink daughter card.
对所述交换芯片与所述上联子卡连接的所述上联接口进行所述网络包限速包括:对来自所述上联接口的所述网络包进行分类;根据所述网络包的分类对所述网络包进行限速。Performing the network packet rate limit on the uplink interface of the switch chip and the uplink subcard includes: classifying the network packet from the uplink interface; and classifying according to the network packet The network packet is limited in speed.
根据本发明实施例的另一个方面,还提供了一种数据处理装置,包括:配置模块22,设置为根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自所述交换芯片的ES报文均能够在预定时间内到达所述处理芯片;其中,所述 预定参数至少包括:DSL的总线路数;分发模块24,设置为通过所述处理芯片中的接收处理接口中添加的ES报文分支对接收到的所述ES报文进行分发。According to another aspect of the present invention, there is further provided a data processing apparatus, comprising: a configuration module 22 configured to configure parameters of an interface between a switch chip and a processing chip according to predetermined parameters, such that all from the The ES packets of the switch chip can reach the processing chip within a predetermined time; wherein The predetermined parameter includes at least: a total number of lines of the DSL; and the distribution module 24 is configured to distribute the received ES message by using an ES message branch added in the receiving processing interface in the processing chip.
在所述接口的速率为第一阈值范围的情况下,所述预定参数仅包括:DSL的总线路数;和/或,在所述接口的速率为第二阈值范围的情况下,所述预定参数还包括:所述CPU的承受能力。In a case where the rate of the interface is a first threshold range, the predetermined parameter includes only: a total number of lines of the DSL; and/or, in a case where the rate of the interface is a second threshold range, the predetermined The parameters also include: the capacity of the CPU.
所述配置模块还设置为根据所述预定参数对所述交换芯片和所述处理芯片之间的接口的FIFO深度进行配置。The configuration module is further configured to configure a FIFO depth of an interface between the switch chip and the processing chip according to the predetermined parameter.
所述装置还包括:调整模块26,设置为根据所述预定参数估算所述ES报文在预定时长内的最大突发量,并根据所述突发量对通过所述接口向所述处理芯片发送所述ES报文的限速值进行调整。The apparatus further includes: an adjustment module 26 configured to estimate a maximum burst amount of the ES message within a predetermined duration according to the predetermined parameter, and to pass the interface to the processing chip according to the burst amount Send the rate limit value of the ES packet to adjust.
所述用于处理所述ES报文的分支的优先级为最高优先级。The priority of the branch for processing the ES message is the highest priority.
分发模块24包括:检验单元32,设置为对接收到的报文进行检验;判断单元34,设置为对检验结果为合法的报文进行该报文是否为所述ES报文的判断;分发单元36,设置为在判断结果为是情况下,通过所述用于处理所述ES报文的分支对所述ES报文进行分发。The distribution module 24 includes: a verification unit 32 configured to check the received message; and a determination unit 34 configured to determine whether the message is the ES message for the message whose verification result is legal; 36. Set, in the case that the determination result is yes, distribute the ES message by using the branch for processing the ES message.
所述装置还包括:限速模块28,设置为对所述交换芯片与上联子卡连接的上联接口进行网络包限速。The device further includes a rate limiting module 28 configured to limit the network packet to the uplink interface connected to the switch chip and the uplink daughter card.
所述限速模块28包括:分类单元42,设置为对来自所述上联接口的所述网络包进行分类;限速单元44,设置为根据所述网络包的分类对所述网络包进行限速。The rate limiting module 28 includes: a classifying unit 42 configured to classify the network packet from the uplink interface; and the rate limiting unit 44 is configured to limit the network packet according to the classification of the network packet speed.
通过本发明实施例,采用根据预定参数对交换芯片(switch)和处理芯片(CPU)之间的接口的参数进行配置,使得所有来自交换芯片的ES报文均能够在预定时间内到达处理芯片;其中,预定参数至少包括:DSL的总线路数;通过处理芯片中的接收处理接口中添加的ES报文分支对接收到的ES报文进行分发,解决了现有技术中vector技术中预编码报文在短时间内存在大量突发所导致的问题,进而提高了ES报文在处理芯片的分发和处理优先级,在某种程度上提高了ES报文能够在协议规定的时间内处理完成的可能性。 The embodiment of the present invention configures parameters of an interface between a switch chip and a processing chip (CPU) according to a predetermined parameter, so that all ES messages from the switch chip can reach the processing chip within a predetermined time; The predetermined parameter includes at least: the total number of lines of the DSL; and the received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip, and the precoding report in the vector technology in the prior art is solved. The problem caused by a large number of bursts in a short period of time, which improves the distribution and processing priority of ES packets in the processing chip, and improves the processing of ES messages in the specified time of the protocol to some extent. possibility.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的数据处理方法的流程图;1 is a flow chart of a data processing method according to an embodiment of the present invention;
图2是根据本发明实施例的数据处理装置的结构框图;2 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的数据处理装置的结构框图一;3 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的数据处理装置的结构框图二;4 is a block diagram 2 of a data processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的数据处理装置的结构框图三;FIG. 5 is a block diagram 3 of a data processing apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的数据处理装置的结构框图四;6 is a structural block diagram 4 of a data processing apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的MDU型VDSL2接入设备的一般系统架构及BLV实现原理图;7 is a schematic diagram of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention;
图8是根据本发明实施例的MDU型VDSL2接入设备的一般系统架构及BLV实现流程图;8 is a flowchart of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention;
图9是根据本发明实施例的一种CPU口参数优化方法流程图;FIG. 9 is a flowchart of a CPU port parameter optimization method according to an embodiment of the present invention; FIG.
图10是根据本发明实施例的一种添加ES报文处理分支的方法流程图;FIG. 10 is a flowchart of a method for adding an ES packet processing branch according to an embodiment of the present invention; FIG.
图11是根据本发明实施例的一种在switch与上联子卡相连的接口上实现网络包限速的方法的流程图。FIG. 11 is a flowchart of a method for implementing network packet rate limiting on an interface connected to a switch and an uplink daughter card according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种数据处理方法,图1是根据本发明实施例的数据处理方法的流程图,如图1所示,该流程包括如下步骤: A data processing method is provided in this embodiment. FIG. 1 is a flowchart of a data processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自交换芯片的ES报文均能够在预定时间内到达该处理芯片;其中,预定参数至少包括:DSL的总线路数;Step S102, configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter, so that all ES messages from the switch chip can reach the processing chip within a predetermined time; wherein the predetermined parameters include at least: DSL Total number of lines;
步骤S104,通过处理芯片中的接收处理接口中添加的ES报文分支对接收到的ES报文进行分发。Step S104: The received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip.
通过上述步骤,根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,相比于现有技术中因交换芯片和处理芯片之间的接口的参数为固定值,导致的vector技术中预编码报文在短时间内存在大量突发和必须在规定时间内处理完成的问题,能够使得所有来自交换芯片的ES报文均能够在预定时间内到达处理芯片,并且通过处理芯片中的接收处理接口中添加的ES报文分支对接收到的ES报文进行分发,进而提高了ES报文在处理芯片的分发和处理优先级,提高了ES报文能够在协议规定的时间内处理完成的可能性。Through the above steps, the parameters of the interface between the switch chip and the processing chip are configured according to predetermined parameters. Compared with the prior art, the parameters of the interface between the switch chip and the processing chip are fixed values, resulting in the vector technology. The problem that the pre-coded message has a large number of bursts in a short time and must be processed within a specified time can enable all ES messages from the switch chip to reach the processing chip within a predetermined time and receive the chips through the processing chip. The ES packets added to the interface are used to distribute the received ES packets. This improves the distribution and processing priorities of the ES packets on the processing chip. This improves the processing of ES packets in the time specified by the protocol. possibility.
在上述步骤S102中,涉及到对交换芯片和处理芯片之间的接口的参数进行配置的依据,需要说明的是,对交换芯片和处理芯片之间的接口的参数进行配置的依据可以有多种,下面对此进行举例说明。在一个可选实施例中,在接口的速率为第一阈值范围的情况下,预定参数仅包括:DSL的总线路数;在另外一个可选的实施例中,在接口的速率为第二阈值范围的情况下,预定参数不仅包括DSL总线路数,还可以包括:处理芯片的承受能力。这两种可选的实施例可以单独使用,也可以结合使用。In the above step S102, the basis for configuring the parameters of the interface between the switch chip and the processing chip is described. The basis for configuring the parameters of the interface between the switch chip and the processing chip may be various. This is illustrated below. In an optional embodiment, in the case that the rate of the interface is in the first threshold range, the predetermined parameter includes only: the total number of lines of the DSL; in another optional embodiment, the rate at the interface is the second threshold. In the case of the range, the predetermined parameters include not only the total number of DSL lines, but also the capability of the processing chip. These two alternative embodiments can be used alone or in combination.
在一个可选实施例中,对交换芯片和处理芯片之间的接口的参数进行配置包括:对交换芯片和处理芯片之间的接口的FIFO深度进行配置。例如具体可以是almost_full参数,但对于不同类型的交换芯片可能参数存在差异。In an alternative embodiment, configuring the parameters of the interface between the switch chip and the processing chip includes configuring the FIFO depth of the interface between the switch chip and the processing chip. For example, it may be an almost_full parameter, but there may be differences in parameters of different types of switch chips.
为了使得所有来自交换芯片的ES报文均能够在预定时间内到达处理芯片,在一个可选实施例中,在根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置之后,根据预定参数估算ES报文在预定时长内的最大突发量,根据突发量对通过接口向处理芯片发送ES报文的限速值进行调整。In order to enable all ES messages from the switch chip to reach the processing chip within a predetermined time, in an alternative embodiment, after the parameters of the interface between the switch chip and the processing chip are configured according to predetermined parameters, according to the reservation The parameter estimates the maximum burst amount of the ES packet in the predetermined duration, and adjusts the rate limit value of the ES packet sent to the processing chip through the interface according to the burst amount.
由于本发明实施例涉及的是如何对ES报文进行有效处理的技术方案,因此在一个可选实施例中用于处理ES报文的分支的优先级为最高优先级,这样可以确保ES报文得到优先处理。The embodiment of the present invention relates to a technical solution for effectively processing an ES packet. Therefore, in an optional embodiment, the priority of the branch for processing the ES packet is the highest priority, so that the ES packet can be ensured. Get priority treatment.
为了将ES报文快速分发给DSL驱动,保证业务的顺利进行,在一个可选实施例中,通过ES报文分支对接收到的ES报文进行分发包括:对接收到的报文进行检验, 对检验结果为合法的报文进行该报文是否为ES报文的判断,在判断结果为是情况下,通过ES报文分支对该ES报文进行分发。In order to quickly distribute the ES packets to the DSL driver and ensure the smooth running of the service, in an optional embodiment, distributing the received ES packets through the ES packet branch includes: checking the received packets. If the packet is a valid packet, the packet is judged to be an ES packet. If the result is YES, the ES packet is distributed through the ES packet branch.
由于网络杂包过大会造成系统的处理负担,从而影响ES报文的发送速率和处理能力,在一个可选实施例中,对交换芯片与上联子卡连接的上联接口进行网络包限速。具体的,在另一个可选实施例中,对来自上联接口的网络包进行分类,根据网络包的分类对网络包进行限速。当然也可以采用其他能够对交换芯片与上联子卡连接的上联接口进行网络包限速的处理方式,在此不再赘述。最后再通过交换芯片的现有规则限制网络杂包,避免因为网络杂包冲击导致ES报文被丢弃或者处理超时,最终确保vector功能的有效性。The network packet rate limit is caused by the uplink interface of the switch chip and the uplink daughter card in an optional embodiment, because the network packet is over-processed and the processing load of the system is affected, thereby affecting the sending rate and processing capability of the ES packet. . Specifically, in another optional embodiment, the network packets from the uplink interface are classified, and the network packets are rate-limited according to the classification of the network packets. Of course, other methods for limiting the speed of the network packet can be used for the uplink interface that can be connected to the switch chip and the uplink daughter card, and details are not described herein. Finally, the network packet is restricted by the existing rules of the switch chip, so that the ES packet is discarded or the processing timeout is caused by the network packet impact, and finally the validity of the vector function is ensured.
本实施例中还提供了一种数据处理装置,该装置设置为实现上述方法,在上述方法中已经进行过说明的在此不再赘述,以下装置中的模块的名称不应当理解为对该模块的限定,下面所描述的模块的功能可以通过处理器来实现。In this embodiment, a data processing device is further provided, and the device is configured to implement the foregoing method. The descriptions of the modules in the following devices are not described herein. The functionality of the modules described below can be implemented by a processor.
图2是根据本发明实施例的数据处理装置的结构框图,如图2所示,该装置包括:配置模块22,设置为根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自交换芯片的ES报文均能够在预定时间内到达处理芯片;其中,预定参数至少包括:DSL的总线路数;分发模块24,连接至上述配置模块22,设置为通过处理芯片中的接收处理接口中添加的ES报文分支对接收到的ES报文进行分发。2 is a structural block diagram of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a configuration module 22 configured to configure parameters of an interface between a switch chip and a processing chip according to predetermined parameters, So that all the ES messages from the switch chip can reach the processing chip within a predetermined time; wherein the predetermined parameters include at least: the total number of lines of the DSL; the distribution module 24 is connected to the configuration module 22, and is configured to pass through the processing chip. The ES packet branch added to the receiving processing interface distributes the received ES packet.
可选地,在接口的速率为第一阈值范围的情况下,预定参数仅包括:DSL的总线路数;和/或,在接口的速率为第二阈值范围的情况下,预定参数还包括:CPU的承受能力。Optionally, if the rate of the interface is the first threshold, the predetermined parameter includes only: the total number of lines of the DSL; and/or, if the rate of the interface is the second threshold, the predetermined parameter further includes: CPU's ability to withstand.
可选地,配置模块22还设置为对交换芯片和处理芯片之间的接口的FIFO深度进行配置。Optionally, the configuration module 22 is further configured to configure the FIFO depth of the interface between the switch chip and the processing chip.
图3是根据本发明实施例的数据处理装置的结构框图一,如图3所示,该装置还包括:调整模块26,设置为根据预定参数估算该ES报文在预定时长内的最大突发量,并根据突发量对通过接口向处理芯片发送ES报文的限速值进行调整。3 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus further includes: an adjustment module 26 configured to estimate a maximum burst of the ES message within a predetermined duration according to a predetermined parameter. The amount is adjusted according to the burst amount to the rate limit value of sending the ES packet to the processing chip through the interface.
可选地,用于处理该ES报文的分支的优先级为最高优先级。Optionally, the priority of the branch for processing the ES packet is the highest priority.
图4是根据本发明实施例的数据处理装置的结构框图二,如图4所示,分发模块24包括:检验单元32,设置为对接收到的报文进行检验;判断单元34,设置为对检 验结果为合法的报文进行该报文是否为ES报文的判断;分发单元36,设置为在判断结果为是情况下,通过用于处理该ES报文的分支对该ES报文进行分发。4 is a block diagram showing the structure of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the distribution module 24 includes: a checking unit 32 configured to check a received message; and a determining unit 34 configured to be Check The result of the test is a legal message to determine whether the message is an ES message; the distribution unit 36 is configured to distribute the ES message through the branch for processing the ES message if the judgment result is yes. .
图5是根据本发明实施例的数据处理装置的结构框图三,如图5所示,该装置还包括:限速模块28,设置为对交换芯片与上联子卡连接的上联接口进行网络包限速。FIG. 5 is a block diagram 3 of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus further includes: a rate limiting module 28 configured to network the uplink interface of the switch chip and the uplink daughter card. Package speed limit.
图6是根据本发明实施例的数据处理装置的结构框图四,如图6所示,限速模块28包括:分类单元42,设置为对来自上联接口的该网络包进行分类;限速单元44,设置为根据网络包的分类对网络包进行限速。6 is a structural block diagram of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 6, the speed limit module 28 includes: a classification unit 42 configured to classify the network packet from the uplink interface; 44, set to limit the network packet according to the classification of the network packet.
为了在MDU型的小型多用户接入设备实现BLV,提出了如下方法来满足MDU型接入设备实现BLV的目标。图7是根据本发明实施例的MDU型VDSL2接入设备的一般系统架构及BLV实现原理图,如图7所示,要在MDU型VDSL2接入设备上实现BLV,应满足如下要求:In order to implement BLV in a small multi-user access device of the MDU type, the following method is proposed to satisfy the goal of implementing the BLV by the MDU type access device. FIG. 7 is a schematic diagram of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention. As shown in FIG. 7, to implement BLV on an MDU-type VDSL2 access device, the following requirements should be met:
1)处理芯片(CPU)同时用于系统控制和ES运算,保证ES包在期望时间内处理完成;1) The processing chip (CPU) is used for both system control and ES operation to ensure that the ES packet is processed within the expected time;
2)尽可能的减小因大流量的ES报文冲击处理芯片,对正常业务功能的影响;2) Minimize the impact of large-flow ES packet impact processing chips on normal business functions;
根据如上要求,本优选实施例中提出了一种MDU型VDSL2接入设备支持板级vector的实现方案和系统,具体是通过优化交换芯片(switch)与CPU相连的接口参数来避免ES报文的丢包,以及提高ES报文在CPU的分发和处理优先级,确保ES报文能够在协议规定的时间内处理完成,最后再通过switch的现有规则限制网络杂包,避免因为网络杂包冲击导致ES报文被丢弃或者处理超时,最终确保vector功能的有效性。According to the above requirements, an implementation scheme and system for supporting a board-level vector of an MDU-type VDSL2 access device are proposed in the preferred embodiment, and the interface parameters connected to the CPU are optimized by the switch chip to avoid ES packets. Packet loss, and the priority of the distribution and processing of ES packets in the CPU, ensuring that ES packets can be processed within the time specified by the protocol, and finally restricting network packets through the existing rules of the switch to avoid network packet impact. The ES packet is discarded or the processing timeout expires, and finally the validity of the vector function is ensured.
本可选实施例的主要优势:The main advantages of this alternative embodiment:
1)利用现有器件实现,无需增加VECTORING控制引擎(Vectoring Control Engine,简称为VCE)子卡,也无需硬件改板;1) Using the existing device implementation, there is no need to add a VECTORING Control Engine (VCE) sub-card, and no hardware modification is required;
2)对系统的其他业务的基本无影响;2) Basically no impact on other services of the system;
下面结合附图对该优选实施例进行如下说明:The preferred embodiment will be described below with reference to the accompanying drawings:
在本可选实施例中首先提供了一种MDU型VDSL2接入设备支持BLV的实现方案,具体指一种是通过软件优化来解决BLV的ES包大流量快速处理需要和最大限速降低ES报文的冲击对系统其他业务的影响。 In this alternative embodiment, an implementation scheme of an MDU-type VDSL2 access device supporting BLV is first provided, which specifically refers to a software optimization to solve the BLV ES packet large-flow fast processing requirement and the maximum speed limit reduction ES report. The impact of the impact of the text on other businesses of the system.
图8是根据本发明实施例的MDU型VDSL2接入设备的一般系统架构及BLV实现流程图,如图8所述,具体步骤如下:FIG. 8 is a flowchart of a general system architecture and a BLV implementation of an MDU-type VDSL2 access device according to an embodiment of the present invention. As shown in FIG. 8, the specific steps are as follows:
步骤S802:通过优化switch与CPU的连接端口(后续简称为CPU口)的参数,确保在100M/1000M建链速率的情况下,能够满足ES报文的发送要求。例如,64ms内需要发送发所有的ES报文,而ES报文与总的线路数成正比,线路越多,64ms内的ES报文数目越多,所以需要优化CPU口的参数来确保所有的ES报文能够在规定的时间内发送给CPU。Step S802: By optimizing the parameters of the connection port between the switch and the CPU (hereinafter referred to as the CPU port), it is ensured that the transmission requirement of the ES message can be satisfied when the link rate is 100M/1000M. For example, all ES packets need to be sent and sent within 64 ms, and the ES packets are proportional to the total number of lines. The more lines, the more ES packets in 64 ms, so you need to optimize the parameters of the CPU port to ensure all the parameters. The ES message can be sent to the CPU within the specified time.
步骤S804:CPU接收到switch发送上来的ES报文后,也需要在一定时间内处理完成,例如,在64ms内快速分发给DSL驱动用于串扰消除的矢量计算。为了满足快速ES报文的分发以及不影响其他业务的要求,我们在CPU的收报处理接口中添加ES报文分发分支,且将此分支置于最高优先级。Step S804: After receiving the ES message sent by the switch, the CPU also needs to complete the processing within a certain period of time, for example, quickly distributes to the DSL driver for vector calculation for crosstalk cancellation within 64 ms. In order to meet the requirements of the distribution of fast ES packets and the requirements of other services, we add the ES packet distribution branch to the receiving and processing interface of the CPU, and place this branch at the highest priority.
步骤S806:对于switch与CPU之间只有一个媒体独立接口(Media Independent Interface,简称为MII)口相连的系统,由于ES报文穿插在线路建链和建链后的整个生命周期,所以为了减少网络杂包过大造成系统负担,从而影响ES报文的发送速率和处理能力,我们需要在swicth与上联子卡相连的接口应用相应的网络包限速,将网络杂包对于系统的影响降到最小。Step S806: For a system in which only one Media Independent Interface (MII) port is connected between the switch and the CPU, the ES message is interspersed throughout the life cycle of the link establishment and chain establishment, so the network is reduced. If the packet is too large and the system is burdened, which affects the sending rate and processing capacity of the ES packet, we need to apply the corresponding network packet rate limit on the interface connected to the uplink card to swicth, and reduce the impact of the network packet on the system. The smallest.
为了使switch与CPU口的参数得以优化配置,本可选实施例提供了一种优选地方式。图9是根据本发明实施例的一种CPU口参数优化方法流程图,如图9所示,具体步骤如下:In order to optimize the configuration of the switch and CPU port parameters, the present alternative embodiment provides a preferred manner. FIG. 9 is a flowchart of a CPU port parameter optimization method according to an embodiment of the present invention. As shown in FIG. 9, the specific steps are as follows:
步骤S902:根据CPU口建链速率走不同的分支处理;Step S902: Perform different branch processing according to the CPU port establishment rate;
步骤S904:当上述步骤S902中的CPU口建链速率为100M时,根据DSL总的线路数,优化CPU口的FIFO参数,使得CPU口能够应付多线路ES包突发场景,保证ES报文能够全部送达CPU;Step S904: When the CPU port construction rate in the above step S902 is 100 M, the FIFO parameters of the CPU port are optimized according to the total number of DSL lines, so that the CPU port can cope with the multi-line ES packet burst scenario, and the ES message can be ensured. All delivered to the CPU;
步骤S906:当上述步骤S902中的CPU口建链速率为1000M时,根据DSL的总线路数和CPU的承受能力,优化CPU口的FIFO参数,使得CPU口能够应付多线路ES包的突发场景,保证ES报文能够全部送达CPU,且不超过CPU的处理极限;Step S906: When the CPU port establishment rate in the above step S902 is 1000M, the FIFO parameters of the CPU port are optimized according to the total number of lines of the DSL and the bearing capacity of the CPU, so that the CPU port can cope with the burst scenario of the multi-line ES packet. , to ensure that the ES message can be delivered to the CPU, and does not exceed the processing limit of the CPU;
步骤S908:根据DSL的总线路数估算ES报文1s内的最大突发量,从而指导CPU口出向限速值的调整。 Step S908: Estimate the maximum burst amount in the ES packet 1s according to the total number of lines of the DSL, thereby guiding the adjustment of the CPU port outbound speed limit value.
为了快速分发ES报文,使各种业务得到顺利进行,本可选实施例提供了一种优选地方式。图10是根据本发明实施例的一种添加ES报文处理分支的方法流程图,如图10所示,具体步骤如下:In order to quickly distribute ES messages and make various services go smoothly, this alternative embodiment provides a preferred manner. FIG. 10 is a flowchart of a method for adding an ES packet processing branch according to an embodiment of the present invention. As shown in FIG. 10, the specific steps are as follows:
步骤S1002:系统CPU收到switch的CPU口转发的报文;Step S1002: The system CPU receives the packet forwarded by the CPU port of the switch;
步骤S1004:对上述步骤S1002收到的报文进行合法性检验;主要校验报文的硬件地址(Media Access Control,简称:MAC地址)、IP合法性以及相应校验和的正确性等等;Step S1004: Perform a legality check on the packet received in the above step S1002; mainly verify the hardware address (Media Access Control, MAC address) of the packet, the IP legality, the correctness of the corresponding checksum, and the like;
步骤S1006:对于上述步骤S1004中检验为非法的报文,执行丢弃动作,并进行对应错误收报统计;Step S1006: Perform a discarding action on the packet that is illegal in the above step S1004, and perform corresponding error reporting statistics;
步骤S1008:对于上述步骤S1004中检验费合法的报文,根据所述虚拟eth口进行分发;Step S1008: For the packet with the normal inspection fee in the above step S1004, the packet is distributed according to the virtual eth port;
步骤S1010:对上述步骤S1008中属于eth0口的报文进行相应的处理;Step S1010: Perform corresponding processing on the packet belonging to the eth0 port in the above step S1008;
步骤S1012:对上述步骤S1008中属于eth1口的报文进行相应的处理;Step S1012: Perform corresponding processing on the packet belonging to the eth1 port in the above step S1008;
步骤S1014:对上述步骤S1008中属于eth2口的报文进行相应的处理;Step S1014: Perform corresponding processing on the packet belonging to the eth2 port in the above step S1008;
步骤S1016:对于上述步骤S1014的eth2口的报文,具体为,优先处理ES报文,首先根据目的MAC判断是否为ES报文;Step S1016: For the packet of the eth2 port in the foregoing step S1014, specifically, the ES packet is preferentially processed, and first, according to the destination MAC, whether it is an ES packet;
步骤S1018:对于上述步骤S1016中判断为非ES的报文走原有正常流程;Step S1018: The original normal process is performed for the packet that is determined to be non-ES in the foregoing step S1016;
步骤S1020:对于上述步骤S1016中判断为ES的报文走单独的ES分发处理。Step S1020: Perform a separate ES distribution process for the message determined to be ES in the above step S1016.
为了减少网络杂包过大造成系统负担,从而影响ES报文的发送速率和处理能力,本可选实施例提供了一种优选地方式。图11是根据本发明实施例的一种在switch与上联子卡相连的接口上实现网络包限速的方法的流程图,如图11所示,具体步骤如下:In order to reduce the system burden caused by excessive network packets, thereby affecting the transmission rate and processing capability of the ES packets, the optional embodiment provides a preferred manner. FIG. 11 is a flowchart of a method for implementing network packet rate limiting on an interface connected to a switch and an uplink daughter card according to an embodiment of the present invention. As shown in FIG. 11, the specific steps are as follows:
步骤S1102:switch上联口收到网络侧发来的数据包;Step S1102: The switch on the switch receives the data packet sent by the network side.
步骤S1104:对步骤S1102中上联口收到的网络包进行分类;Step S1104: classify network packets received by the uplink port in step S1102.
步骤S1106:对于步骤S1104中判定为ARP类的报文,按照ARP包的限速值进行限速,限速单位为pps,且限速值可配; Step S1106: The rate limit of the ARP packet is determined according to the rate limit of the ARP packet, and the rate limit unit is pps, and the speed limit value can be matched.
步骤S1108:对于步骤S1104中判定为DHCP/IGMP类的协议报文,按照DHCP/IGMP包的限速值进行限速,限速单位为pps,且限速值可配;Step S1108: The rate limit of the DHCP/IGMP packet is determined according to the rate limit of the DHCP/IGMP packet, and the rate limit unit is pps, and the rate limit value can be configured;
步骤S1110:对于步骤S1104中判定为非ARP/DHCP/IGMP类的其他网络报文,按照上联口应用的特殊ACL规则进行限速,限速单位为kbps,且限速值可配。In the step S1110, the rate limit is kbps and the rate limit value can be configured according to the special ACL rule applied by the uplink port for the other network packets that are determined to be non-ARP/DHCP/IGMP in the step S1104.
工业实用性:Industrial applicability:
本发明涉及通信领域,提供了数据处理方法及装置,其中,该方法包括:采用根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自交换芯片的ES报文均能够在预定时间内到达处理芯片;其中,预定参数至少包括:DSL的总线路数;通过处理芯片中的接收处理接口中添加的ES报文分支对接收到的ES报文进行分发。解决了现有技术中vector技术中预编码报文在短时间内存在大量突发所导致的问题,进而提高了ES报文在处理芯片的分发和处理优先级,在某种程度上提高了ES报文能够在协议规定的时间内处理完成的可能性。The present invention relates to the field of communications, and provides a data processing method and apparatus, wherein the method includes: configuring parameters of an interface between a switch chip and a processing chip according to a predetermined parameter, so that all ES messages from the switch chip can be configured. The processing chip is reached within a predetermined time; wherein the predetermined parameter includes at least: a total number of lines of the DSL; and the received ES message is distributed by the ES packet branch added in the receiving processing interface in the processing chip. The problem that the pre-coded message in the vector technology in the prior art has a large number of bursts in a short time is solved, thereby improving the distribution and processing priority of the ES packet in the processing chip, and improving the ES to some extent. The message can handle the possibility of completion within the time specified in the agreement.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims (16)

  1. 一种数据处理方法,包括:A data processing method comprising:
    根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自所述交换芯片的误差采样ES报文均能够在预定时间内到达所述处理芯片;其中,所述预定参数至少包括:数字用户环路DSL的总线路数;Arranging parameters of the interface between the switch chip and the processing chip according to predetermined parameters, so that all error sampling ES messages from the switch chip can reach the processing chip within a predetermined time; wherein the predetermined parameter is at least Including: the total number of lines of the digital subscriber loop DSL;
    通过所述处理芯片中的接收处理接口中添加的ES报文分支对接收到的所述ES报文进行分发。The received ES message is distributed by the ES packet branch added to the receiving processing interface in the processing chip.
  2. 根据权利要求1所述的方法,其中,根据所述预定参数对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置包括:The method of claim 1, wherein configuring parameters of the interface between the switch chip and the processing chip according to the predetermined parameter comprises:
    在所述接口的速率为第一阈值范围的情况下,所述预定参数仅包括:DSL的总线路数;和/或,Where the rate of the interface is a first threshold range, the predetermined parameter includes only: the total number of lines of the DSL; and/or,
    在所述接口的速率为第二阈值范围的情况下,所述预定参数还包括:所述处理芯片的承受能力。In a case where the rate of the interface is a second threshold range, the predetermined parameter further includes: a capability of the processing chip.
  3. 根据权利要求1所述的方法,其中,对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置包括:The method of claim 1, wherein configuring parameters of the interface between the switch chip and the processing chip comprises:
    对所述交换芯片和所述处理芯片之间的接口的先入先出队列FIFO深度进行配置。The first in first out queue FIFO depth of the interface between the switch chip and the processing chip is configured.
  4. 根据权利要求1或2所述的方法,其中,在根据所述预定参数对所述交换芯片和所述处理芯片之间的所述接口的参数进行配置之后,所述方法还包括:The method according to claim 1 or 2, wherein after the parameter of the interface between the switch chip and the processing chip is configured according to the predetermined parameter, the method further comprises:
    根据所述预定参数估算所述ES报文在预定时长内的最大突发量;Estimating, according to the predetermined parameter, a maximum burst amount of the ES message within a predetermined duration;
    根据所述突发量对通过所述接口向所述处理芯片发送所述ES报文的限速值进行调整。And adjusting, according to the burst quantity, a rate limit value for sending the ES message to the processing chip by using the interface.
  5. 根据权利要求1所述的方法,其中,用于处理所述ES报文的分支的优先级为最高优先级。The method of claim 1, wherein the priority of the branch for processing the ES message is the highest priority.
  6. 根据权利要求1所述的方法,其中,通过所述ES报文分支对接收到的所述ES报文进行分发包括:The method of claim 1, wherein distributing the received ES message by using the ES packet branch comprises:
    对接收到的报文进行检验; Check the received message;
    对检验结果为合法的报文进行该报文是否为所述ES报文的判断;Determining whether the message is the ES message of the packet whose test result is legal;
    在判断结果为是情况下,通过所述ES报文分支对所述ES报文进行分发。If the result of the determination is yes, the ES message is distributed by the ES packet branch.
  7. 根据权利要求1至6中任一项所述的方法,其中,所述方法还包括:The method of any of claims 1 to 6, wherein the method further comprises:
    对所述交换芯片与上联子卡连接的上联接口进行网络包限速。The network packet is limited to the uplink interface connected to the switch chip and the uplink daughter card.
  8. 根据权利要求7所述的方法,其中,对所述交换芯片与所述上联子卡连接的所述上联接口进行所述网络包限速包括:The method of claim 7, wherein the performing network packet rate limiting on the uplink interface of the switch chip and the uplink subcard comprises:
    对来自所述上联接口的所述网络包进行分类;Classifying the network packets from the uplink interface;
    根据所述网络包的分类对所述网络包进行限速。The network packet is limited in speed according to the classification of the network packet.
  9. 一种数据处理装置,包括:A data processing device comprising:
    配置模块,设置为根据预定参数对交换芯片和处理芯片之间的接口的参数进行配置,使得所有来自所述交换芯片的ES报文均能够在预定时间内到达所述处理芯片;其中,所述预定参数至少包括:DSL的总线路数;a configuration module configured to configure parameters of an interface between the switch chip and the processing chip according to a predetermined parameter, so that all ES messages from the switch chip can reach the processing chip within a predetermined time; The predetermined parameters include at least: the total number of lines of the DSL;
    分发模块,设置为通过所述处理芯片中的接收处理接口中添加的ES报文分支对接收到的所述ES报文进行分发。The distribution module is configured to distribute the received ES message by using an ES packet branch added in the receiving processing interface in the processing chip.
  10. 根据权利要求9所述的装置,其特征在于,所述配置模块还设置为在所述接口的速率为第一阈值范围的情况下,所述预定参数仅包括:DSL的总线路数;和/或,在所述接口的速率为第二阈值范围的情况下,所述预定参数还包括:所述CPU的承受能力。The apparatus according to claim 9, wherein the configuration module is further configured to: if the rate of the interface is a first threshold range, the predetermined parameter only includes: a total number of lines of the DSL; and / Or, in a case that the rate of the interface is a second threshold range, the predetermined parameter further includes: a capability of the CPU.
  11. 根据权利要求9所述的装置,其特征在于,所述配置模块还设置为对所述交换芯片和所述处理芯片之间的接口的FIFO深度进行配置。The apparatus of claim 9, wherein the configuration module is further configured to configure a FIFO depth of an interface between the switch chip and the processing chip.
  12. 根据权利要求9或10所述的装置,其中,所述装置还包括:The device according to claim 9 or 10, wherein the device further comprises:
    调整模块,设置为根据所述预定参数估算所述ES报文在预定时长内的最大突发量,并根据所述突发量对通过所述接口向所述处理芯片发送所述ES报文的限速值进行调整。And an adjusting module, configured to estimate, according to the predetermined parameter, a maximum burst amount of the ES packet within a predetermined duration, and send the ES packet to the processing chip by using the interface according to the burst amount The speed limit value is adjusted.
  13. 根据权利要求9所述的装置,其中,所述用于处理所述ES报文的分支的优先级为最高优先级。The apparatus of claim 9, wherein the priority of the branch for processing the ES message is the highest priority.
  14. 根据权利要求9所述的装置,其中,所述分发模块包括: The apparatus of claim 9 wherein said distribution module comprises:
    检验单元,设置为对接收到的报文进行检验;The verification unit is configured to check the received message;
    判断单元,设置为对检验结果为合法的报文进行该报文是否为所述ES报文的判断;a judging unit, configured to determine whether the packet is a valid packet, and whether the packet is the ES packet;
    分发单元,设置为在判断结果为是情况下,通过所述用于处理所述ES报文的分支对所述ES报文进行分发。The distribution unit is configured to distribute the ES message by using the branch for processing the ES message if the determination result is yes.
  15. 根据权利要求9至14中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 9 to 14, wherein the device further comprises:
    限速模块,设置为对所述交换芯片与上联子卡连接的上联接口进行网络包限速。The speed limit module is configured to limit the network packet to the uplink interface connected to the switch chip and the uplink daughter card.
  16. 根据权利要求15所述的装置,其中,所述限速模块包括:The apparatus of claim 15 wherein said rate limiting module comprises:
    分类单元,设置为对来自所述上联接口的所述网络包进行分类;a classifying unit configured to classify the network packet from the uplink interface;
    限速单元,设置为根据所述网络包的分类对所述网络包进行限速。 The speed limit unit is configured to limit the network packet according to the classification of the network packet.
PCT/CN2014/088866 2014-06-25 2014-10-17 Data processing method and device WO2015196653A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410291467.6 2014-06-25
CN201410291467.6A CN105306389B (en) 2014-06-25 2014-06-25 Data processing method and device

Publications (1)

Publication Number Publication Date
WO2015196653A1 true WO2015196653A1 (en) 2015-12-30

Family

ID=54936606

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088866 WO2015196653A1 (en) 2014-06-25 2014-10-17 Data processing method and device

Country Status (2)

Country Link
CN (1) CN105306389B (en)
WO (1) WO2015196653A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325856B (en) * 2016-08-10 2019-08-20 杭州玳数科技有限公司 A kind of method and system for realizing Elasticsearch Dsl rule visual edit and data exhibiting

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138775A1 (en) * 2006-09-13 2009-05-28 Broadcom Corporation Method for communicating data in xDSL using data retransmission
CN102217294A (en) * 2009-01-30 2011-10-12 华为技术有限公司 Method and apparatus for reducing feedback overhead during crosstalk precoder initialization
CN102907009A (en) * 2010-06-01 2013-01-30 瑞典爱立信有限公司 Method and arrangement in a DSL vectoring system
CN103181092A (en) * 2010-10-15 2013-06-26 伊卡诺斯通讯公司 Dsl alien noise reduction
CN103875212A (en) * 2011-09-23 2014-06-18 伊卡诺斯通讯公司 Diagnostics primitives on L2/ERB normalized error samples

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138775A1 (en) * 2006-09-13 2009-05-28 Broadcom Corporation Method for communicating data in xDSL using data retransmission
CN102217294A (en) * 2009-01-30 2011-10-12 华为技术有限公司 Method and apparatus for reducing feedback overhead during crosstalk precoder initialization
CN102907009A (en) * 2010-06-01 2013-01-30 瑞典爱立信有限公司 Method and arrangement in a DSL vectoring system
CN103181092A (en) * 2010-10-15 2013-06-26 伊卡诺斯通讯公司 Dsl alien noise reduction
CN103875212A (en) * 2011-09-23 2014-06-18 伊卡诺斯通讯公司 Diagnostics primitives on L2/ERB normalized error samples

Also Published As

Publication number Publication date
CN105306389B (en) 2019-03-22
CN105306389A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US10659563B2 (en) Bandwidth reservation for authenticated applications
US8862732B2 (en) Methods and devices for regulating traffic on a network
US7697522B2 (en) Systems and methods for aggregation of packets for transmission through a communications network
JP5026502B2 (en) Access control method and system
US8908522B2 (en) Transmission rate control
US8842527B2 (en) High speed multiple user multiple loop DSL system
US20100008248A1 (en) Network tester for real-time measuring of tcp throughput
US20090116489A1 (en) Method and apparatus to reduce data loss within a link-aggregating and resequencing broadband transceiver
US20110080834A1 (en) Communication apparatus and communication control method
EP3941005A1 (en) Dynamic prediction and management of application service level agreements
KR20130023094A (en) Dynamic bandwidth re-allocation
US20120207197A1 (en) Signal processing methods, devices and systems in bonding-dsl
WO2012022227A1 (en) Method and device for sending messages
US20090141823A1 (en) Power Reduction For Digital Subscriber Line
US20180367290A1 (en) Selective proxy to alleviate adjacent channel interference in full duplex cable network environments
EP3695518B1 (en) Identifying interfering links in local area networks
US20150381508A1 (en) Link biased data transmission
CN108234350B (en) Scheduling method and customer premises equipment
CN105072053A (en) Flow control method for Ethernet switch
WO2015196653A1 (en) Data processing method and device
US8854967B2 (en) Per-class scheduling with rate limiting
EP3688878B1 (en) Controlling communications in respect of local area networks
Cota et al. New technologies for improvement of characteristics in DSL access networks
CN104363216A (en) Data processing method and train network system
Peach et al. Performance of a 10 Gbps QoS-based buffer in a FSO/RF IP network

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

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

Country of ref document: EP

Kind code of ref document: A1