CN112910794A - Load balancing system for multi-path E1 networking - Google Patents
Load balancing system for multi-path E1 networking Download PDFInfo
- Publication number
- CN112910794A CN112910794A CN202110022218.7A CN202110022218A CN112910794A CN 112910794 A CN112910794 A CN 112910794A CN 202110022218 A CN202110022218 A CN 202110022218A CN 112910794 A CN112910794 A CN 112910794A
- Authority
- CN
- China
- Prior art keywords
- networking
- module
- data
- load balancing
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4604—LAN interconnection over a backbone network, e.g. Internet, Frame Relay
- H04L12/462—LAN interconnection over a bridge based backbone
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种多路E1组网的负载均衡系统。The present invention relates to the field of communication technologies, in particular to a load balancing system for multi-channel E1 networking.
背景技术Background technique
在基于E1链路的2M组网中,多路E1链路复用的使用场景十分常见,例如省级核心网的二级设备与市级局向进行组网,市级核心网再与地方局向进行组网。通过IPOE数据通道进行多路E1链路复用的2M组网,不可避免地会出现多路业务并发的场景。In the 2M networking based on E1 links, the use scenarios of multiplexing E1 links are very common. For example, the secondary equipment of the provincial core network is connected to the municipal office, and the municipal core network is connected with the local office. to network. In a 2M network where multiple E1 links are multiplexed through the IPOE data channel, there will inevitably be scenarios in which multiple services are concurrent.
在多局向业务负载较高的情况下,如果不对核心网IPOE接收处进行负载均衡设计,容易出现某一局向负载占用满的情况下,核心网接收汇接处一直处理负载占用高的局向的请求。如果此时其他局向发送请求,容易造成其他局向的请求一直被搁置无法处理。In the case of high multi-office service load, if the load balancing design is not carried out at the IPOE receiving point of the core network, it is easy to occur that a certain office direction is fully occupied, and the core network receiving tandem always processes the office with high load occupancy. request to. If other offices send requests at this time, it is easy to cause the requests of other offices to be put on hold and cannot be processed.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的是提供一种多路E1组网的负载均衡系统,通过对核心网IPOE接口的桥接模块进行负载均衡设计,采用基于快速跳转的无阻塞状态机,避免了在业务并发的场景下核心网汇接处出现IPOE数据包拥塞的问题。The purpose of the embodiments of the present invention is to provide a load balancing system for multi-channel E1 networking. By carrying out a load balancing design on the bridge module of the IPOE interface of the core network, and adopting a non-blocking state machine based on fast jumping, it avoids the need for business concurrency In the scenario of , IPOE packet congestion occurs at the core network junction.
为实现上述目的,本发明一实施例提供了一种多路E1组网的负载均衡系统,包括下层以太网组网、FPGA芯片、以太网芯片和上层以太网组网,其中,所述FPGA芯片的下行端口与所述下层以太网组网连接,所述FPGA芯片的上行端口通过所述以太网芯片与所述上层以太网组网连接;所述FPGA芯片被配置有总线桥接模块;其中,To achieve the above object, an embodiment of the present invention provides a load balancing system for multi-channel E1 networking, including a lower-layer Ethernet networking, an FPGA chip, an Ethernet chip, and an upper-layer Ethernet networking, wherein the FPGA chip The downlink port of the FPGA chip is connected to the lower-layer Ethernet networking, and the uplink port of the FPGA chip is connected to the upper-layer Ethernet networking through the Ethernet chip; the FPGA chip is configured with a bus bridge module; wherein,
所述总线桥接模块,用于采用预设的处理策略处理多路E1链路的数据请求;所述处理策略为在处理完一路E1链路的数据接收请求后,继续跳转至处理下一路E1链路的数据接收请求,直至遍历每一路E1链路的数据接收请求。The bus bridging module is used to process data requests of multiple E1 links by using a preset processing strategy; the processing strategy is to continue to jump to processing the next E1 link after processing the data reception request of one E1 link The data receiving request of the link is traversed until the data receiving request of each E1 link.
优选地,所述FPGA芯片还被配置有编解码模块、解析转换模块和缓冲模块;其中,Preferably, the FPGA chip is further configured with a codec module, a parsing conversion module and a buffer module; wherein,
所述编解码模块,用于接收所述下层以太网组网发送的差分信号,并解码为二进制码流和发送至所述解析转换模块;The encoding and decoding module is used to receive the differential signal sent by the lower-layer Ethernet networking, decode it into a binary code stream, and send it to the analysis and conversion module;
所述解析转换模块,用于对接收到的二进制码流进行串并转换和解析为Avalon-ST总线协议的数据,并发送至所述缓冲模块;The analysis and conversion module is used for serial-to-parallel conversion and analysis of the received binary code stream to be the data of the Avalon-ST bus protocol, and sent to the buffer module;
所述缓冲模块,用于读取所述Avalon-ST总线协议的数据,并以数据包的格式进行汇集桥接。The buffer module is used to read the data of the Avalon-ST bus protocol, and perform aggregation and bridging in the format of data packets.
优选地,还包括:Preferably, it also includes:
所述缓冲模块,还用于接收所述上层以太网组网发送的Avalon-ST总线协议的数据,并发送至所述解析转换模块;The buffer module is also used to receive the data of the Avalon-ST bus protocol sent by the upper-layer Ethernet networking, and send it to the analysis and conversion module;
所述解析转换模块,还用于根据HDLC协议对接收到的所述Avalon-ST总线协议的数据进行重组,并通过串行转换为串行二进制码流,发送至所述编解码模块;The analysis and conversion module is also used to reorganize the received data of the Avalon-ST bus protocol according to the HDLC protocol, and serially convert it into a serial binary code stream, and send it to the codec module;
所述编解码模块,还用于对接收到的串行二进制码流进行编码,并发送至所述下层以太网组网。The encoding and decoding module is further configured to encode the received serial binary code stream and send it to the lower-layer Ethernet networking.
优选地,还包括Buffer芯片,所述下层以太网组网中的每一路E1链路均通过一个所述Buffer芯片与所述FPGA芯片连接。Preferably, it also includes a Buffer chip, and each E1 link in the lower-layer Ethernet networking is connected to the FPGA chip through one of the Buffer chips.
优选地,所述编解码模块采用的编解码规则为HDB3编解码规则。Preferably, the encoding and decoding rules adopted by the encoding and decoding modules are HDB3 encoding and decoding rules.
优选地,所述解析转换模块采用的解析协议为HDLC协议。Preferably, the parsing protocol adopted by the parsing conversion module is the HDLC protocol.
优选地,所述缓冲模块的缓存方式为整包缓存,在确认下行的E1链路发送的数据已缓存为一个完整的数据包时,以预设的读取速率对所述数据包进行读取。Preferably, the buffering mode of the buffer module is whole packet buffering, and when it is confirmed that the data sent by the downlink E1 link has been buffered as a complete data packet, the data packet is read at a preset reading rate .
优选地,所述缓冲模块的缓存速率为2Mbps。Preferably, the buffering rate of the buffering module is 2 Mbps.
优选地,所述预设的读取速率为50Mbps。Preferably, the preset read rate is 50Mbps.
优选地,所述总线桥接模块处理每一路E1链路的数据请求的等待时间为1个时钟周期。Preferably, the waiting time for the bus bridge module to process the data request of each E1 link is 1 clock cycle.
与现有技术相比,本发明实施例所提供的一种多路E1组网的负载均衡系统,通过将快速跳转策略应用在E1组网中的Avalon-ST总线桥的设计上,对请求处理状态机进行快速跳转设计,达到多路业务并发时进行负载均衡处理的目的,解决多路业务并发阻塞问题,而且重新设计的状态机仅需要额外增加极小的处理时间资源、FPGA逻辑资源消耗。Compared with the prior art, the load balancing system of the multi-channel E1 networking provided by the embodiment of the present invention, by applying the fast jumping strategy to the design of the Avalon-ST bus bridge in the E1 networking, the request The processing state machine is designed for fast jumping, so as to achieve the purpose of load balancing processing when multiple services are concurrent, and solve the problem of concurrent blocking of multiple services. Moreover, the redesigned state machine only needs to add extra processing time resources and FPGA logic resources. consume.
附图说明Description of drawings
图1是本发明一实施例提供的一种多路E1组网的负载均衡系统的结构示意图;FIG. 1 is a schematic structural diagram of a load balancing system for multi-channel E1 networking according to an embodiment of the present invention;
图2是本发明一实施例提供的一种基于快速跳转的无阻塞状态机的数据处理示意图;2 is a schematic diagram of data processing of a fast jump-based non-blocking state machine provided by an embodiment of the present invention;
图3是本发明一实施例提供的一种基于优先级的桥接策略的数据处理示意图;3 is a schematic diagram of data processing of a priority-based bridging policy according to an embodiment of the present invention;
图4是本发明一实施例提供的基于快速跳转设计的状态机在处理各路E1链路的数据请求时花费时间的示意图;4 is a schematic diagram of the time taken by a state machine based on a fast jump design provided by an embodiment of the present invention when processing data requests of various E1 links;
图5是本发明一实施例提供的一种FPGA芯片的结构示意图;5 is a schematic structural diagram of an FPGA chip provided by an embodiment of the present invention;
图6是本发明一实施例提供的一种FPGA芯片对接收到上层以太网组网和下层以太网组网的数据请求时对应的处理流程示意图。6 is a schematic diagram of a processing flow corresponding to an FPGA chip pair when it receives a data request from an upper-layer Ethernet networking and a lower-layer Ethernet networking according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1,是本发明实施例1提供的一种多路E1组网的负载均衡系统的结构示意图,所述系统包括下层以太网组网、FPGA芯片、以太网芯片和上层以太网组网,其中,所述FPGA芯片的下行端口与所述下层以太网组网连接,所述FPGA芯片的上行端口通过所述以太网芯片与所述上层以太网组网连接;所述FPGA芯片被配置有总线桥接模块;其中,Referring to FIG. 1 , it is a schematic structural diagram of a load balancing system for multi-channel E1 networking according to
所述总线桥接模块,用于采用预设的处理策略处理多路E1链路的数据请求;所述处理策略为在处理完一路E1链路的数据接收请求后,继续跳转至处理下一路E1链路的数据接收请求,直至遍历每一路E1链路的数据接收请求。The bus bridging module is used to process data requests of multiple E1 links by using a preset processing strategy; the processing strategy is to continue to jump to processing the next E1 link after processing the data reception request of one E1 link The data receiving request of the link is traversed until the data receiving request of each E1 link.
具体地,多路E1组网的负载均衡系统包括下层以太网组网、FPGA(FieldProgrammable Gate Array,现场可编程逻辑门阵列)芯片、以太网芯片和上层以太网组网,其中,FPGA芯片的下行端口与下层以太网组网连接,FPGA芯片的上行端口通过以太网芯片与上层以太网组网连接。一般地,下层以太网组网和上层以太网组网均由多路E1链路组成。以上为一套完整的2M系统,在上电后即可实现本发明的方案。Specifically, the load balancing system for multi-channel E1 networking includes a lower-layer Ethernet network, an FPGA (FieldProgrammable Gate Array, Field Programmable Gate Array) chip, an Ethernet chip, and an upper-layer Ethernet network. The port is connected to the lower-layer Ethernet network, and the upstream port of the FPGA chip is connected to the upper-layer Ethernet network through the Ethernet chip. Generally, both the lower-layer Ethernet networking and the upper-layer Ethernet networking consist of multiple E1 links. The above is a complete 2M system, and the solution of the present invention can be implemented after power-on.
其中,FPGA芯片被配置有所述总线桥接模块。所述总线桥接模块主要是为了实现负载均衡功能。实现过程如下:Wherein, the FPGA chip is configured with the bus bridge module. The main purpose of the bus bridge module is to realize the load balancing function. The implementation process is as follows:
所述总线桥接模块,用于采用预设的处理策略处理多路E1链路的数据请求;处理策略为在处理完一路E1链路的数据接收请求后,继续跳转至处理下一路E1链路的数据接收请求,直至遍历每一路E1链路的数据接收请求。当所述总线桥接模块工作在50Mhz的时钟速率下,可以处理最多25路2M链路的数据而保证不会出现阻塞。所以当在该模块处理完某一路E1链路的数据接收请求后,直接利用50Mhz时钟跳转至下一路判断E1接收请求的状态,即使下一路E1链路没有请求接收数据,利用这种策略能够在一次数据接收过程中遍历判断每一路的接收请求,避免了某一路E1负载较高而导致后续的其他路E1被阻塞,该策略可以称为基于快速跳转的无阻塞状态机。参加图2,是本发明该实施例提供的一种基于快速跳转的无阻塞状态机的数据处理示意图。为了更加突出本发明的优势,本发明该实施例还对现有技术中的多路并发数据的处理进行说明,现有技术中对多路并发数据处理一般采用基于优先级的桥接策略,即当桥接处一直在处理负载占用高的请求时,容易造成其他请求被搁置无法处理。参加图3,是本发明该实施例提供的一种基于优先级的桥接策略的数据处理示意图。The bus bridge module is used to process data requests of multiple E1 links by using a preset processing strategy; the processing strategy is to continue to jump to the next E1 link after processing the data reception request of one E1 link until the data receiving request of each E1 link is traversed. When the bus bridge module works at a clock rate of 50Mhz, it can process data of up to 25 2M links without blocking. Therefore, after the module has processed the data receiving request of a certain E1 link, it directly uses the 50Mhz clock to jump to the next channel to judge the status of the E1 receiving request, even if the next E1 link does not request to receive data, this strategy can be used to In the process of one data reception, traversing and judging the receiving request of each channel avoids the blocking of other channels E1 due to the high load of one channel E1. This strategy can be called a non-blocking state machine based on fast jumping. Referring to FIG. 2 , it is a schematic diagram of data processing of a fast jump-based non-blocking state machine provided by this embodiment of the present invention. In order to highlight the advantages of the present invention, this embodiment of the present invention also describes the processing of multi-channel concurrent data in the prior art. In the prior art, a priority-based bridging strategy is generally used for multi-channel concurrent data processing, that is, when When the bridge has been processing requests with high load, it is easy to cause other requests to be put on hold and cannot be processed. Referring to FIG. 3 , it is a schematic diagram of data processing of a priority-based bridging strategy provided by this embodiment of the present invention.
虽然本发明重新设计的状态机需要额外增加处理时间资源,但时间成本很低,可以忽略不计。参见图4,是本发明该实施例提供的基于快速跳转设计的状态机在处理各路E1链路的数据请求时花费时间的示意图。由图4可知,即使只有一路E1链路在满负荷接收,其额外增加的状态机跳转时间为n-1路个50Mhz时钟周期。以2M系统为例,一片FPGA芯片处理16路E1链路的接收请求,状态机中间跳转时间为20ns*15=300ns,相当于在一路满负荷的E1链路下仅增加了120bps的带宽消耗,相对于2Mbps的E1链路带宽几乎可以忽略不计。所以,所述总线桥接模块能够在增加很少的处理时间成本下进行每一路E1链路的接收请求判断。Although the redesigned state machine of the present invention requires additional processing time resources, the time cost is very low and can be ignored. Referring to FIG. 4 , it is a schematic diagram of the time spent by the state machine based on the fast jump design provided by this embodiment of the present invention when processing data requests of various E1 links. It can be seen from Figure 4 that even if only one E1 link is receiving at full load, the additional jumping time of the state machine is n-1 50Mhz clock cycles. Taking the 2M system as an example, one FPGA chip handles the receiving requests of 16 E1 links, and the intermediate jump time of the state machine is 20ns*15=300ns, which is equivalent to only increasing the bandwidth consumption of 120bps under one full-load E1 link. , which is almost negligible relative to the 2Mbps E1 link bandwidth. Therefore, the bus bridge module can judge the reception request of each E1 link with little increase in processing time cost.
本发明实施例1通过提供一种多路E1组网的负载均衡系统,通过对核心网IPOE接口的桥接模块进行负载均衡设计,采用基于快速跳转的无阻赛状态机,避免了在业务并发的场景下核心网汇接处出现IPOE数据包拥塞的问题。
作为上述方案的改进,所述FPGA芯片还被配置有编解码模块、解析转换模块和缓冲模块;其中,As an improvement of the above solution, the FPGA chip is further configured with an encoding/decoding module, a parsing conversion module and a buffering module; wherein,
所述编解码模块,用于接收所述下层以太网组网发送的差分信号,并解码为二进制码流和发送至所述解析转换模块;The encoding and decoding module is used to receive the differential signal sent by the lower-layer Ethernet networking, decode it into a binary code stream, and send it to the analysis and conversion module;
所述解析转换模块,用于对接收到的二进制码流进行串并转换和解析为Avalon-ST总线协议的数据,并发送至所述缓冲模块;The analysis and conversion module is used for serial-to-parallel conversion and analysis of the received binary code stream to be the data of the Avalon-ST bus protocol, and sent to the buffer module;
所述缓冲模块,用于读取所述Avalon-ST总线协议的数据,并以数据包的格式进行汇集桥接。The buffer module is used to read the data of the Avalon-ST bus protocol, and perform aggregation and bridging in the format of data packets.
具体地,参见图5,是本发明该实施例提供的一种FPGA芯片的结构示意图。由图5可知,FPGA芯片还被配置有所述编解码模块、所述解析转换模块和所述缓冲模块;其中,Specifically, referring to FIG. 5 , it is a schematic structural diagram of an FPGA chip provided by this embodiment of the present invention. It can be seen from FIG. 5 that the FPGA chip is further configured with the codec module, the parsing and conversion module, and the buffer module; wherein,
所述编解码模块,用于接收下层以太网组网发送的差分信号,并解码为二进制码流和发送至所述解析转换模块。该差分信号指的是HDB3差分信号,E1链路的HDB3原始差分信号在外部经过正负判决整形后,通过所述Buffer芯片连接至FPGA管脚。所述编解码模块在对差分信号进行解码后,还得到对端设备的时钟。The encoding and decoding module is used to receive the differential signal sent by the lower-layer Ethernet networking, decode it into a binary code stream, and send it to the parsing and converting module. The differential signal refers to the HDB3 differential signal. The HDB3 original differential signal of the E1 link is connected to the FPGA pins through the Buffer chip after being shaped by positive and negative judgments externally. After the codec module decodes the differential signal, it also obtains the clock of the peer device.
所述解析转换模块,用于对接收到的二进制码流进行串并转换和解析为Avalon-ST总线协议的数据,并发送至所述缓冲模块。也就是说,当所述解析转换模块接收到所述编解码模块发送的二进制码流时,先对二进制码流进行串并转换,再解析为Avalon-ST总线协议的数据。The analysis and conversion module is used for serial-to-parallel conversion and analysis of the received binary code stream into data of the Avalon-ST bus protocol, and sends the data to the buffer module. That is to say, when the parsing and converting module receives the binary code stream sent by the encoding and decoding module, it first performs serial-to-parallel conversion on the binary code stream, and then parses it into data of the Avalon-ST bus protocol.
所述缓冲模块,用于读取Avalon-ST总线协议的数据,并以数据包的格式进行汇集桥接。一般地,E1链路工作在2M的速率下,在进入FPGA片内数据处理前需要将2Mbps速率下的数据包转化为50Mbps的速率来进行处理。所述缓冲模块将E1链路接收到的数据包进行整包缓存,在2Mbps的速率下确认缓存一个完整包后再从50Mbps的速率下读出该数据包进行汇集桥接。The buffer module is used to read the data of the Avalon-ST bus protocol, and perform aggregation and bridging in the format of data packets. Generally, the E1 link works at the rate of 2M, and before entering the data processing on the FPGA chip, the data packets at the rate of 2Mbps need to be converted into the rate of 50Mbps for processing. The buffer module buffers the whole packet of the data packet received by the E1 link, confirms the buffering of a complete packet at a rate of 2 Mbps, and then reads the data packet at a rate of 50 Mbps for aggregation and bridging.
上述过程为FPGA芯片对接收到下层以太网组网的数据请求进行处理的过程。参见图6,是本发明该实施例提供的一种FPGA芯片对接收到上层以太网组网和下层以太网组网的数据请求时对应的处理流程示意图。其中,上半部分为接收到下层以太网组网的数据请求时对应的处理流程,下半部分为接收到上层以太网组网的数据请求时对应的处理流程。The above process is a process in which the FPGA chip processes the data request received from the lower-layer Ethernet networking. Referring to FIG. 6 , it is a schematic diagram of a corresponding processing flow when an FPGA chip pair according to this embodiment of the present invention receives a data request from an upper-layer Ethernet networking and a lower-layer Ethernet networking. Among them, the upper part is the corresponding processing flow when receiving the data request of the lower-layer Ethernet networking, and the lower half is the corresponding processing flow when receiving the data request of the upper-layer Ethernet networking.
本发明该实施例先通过利用编解码模块对E1链路的HDB3原始差分信号进行解码,得到二进制码流,再通过解析转换模块对二进制码流进行串并转换,再解析为Avalon-ST总线协议的数据,然后利用缓冲模块读取Avalon-ST总线协议的数据,并以数据包的格式进行汇集桥接,实现对下层以太网组网的数据请求进行处理。In this embodiment of the present invention, the HDB3 original differential signal of the E1 link is decoded by the encoding and decoding module to obtain a binary code stream, and then the binary code stream is serial-to-parallel conversion by the parsing and conversion module, and then parsed into the Avalon-ST bus protocol Then use the buffer module to read the data of the Avalon-ST bus protocol, and perform aggregation and bridging in the format of data packets to process the data request of the lower-layer Ethernet networking.
作为上述方案的改进,还包括:As an improvement of the above scheme, it also includes:
所述缓冲模块,还用于接收所述上层以太网组网发送的Avalon-ST总线协议的数据,并发送至所述解析转换模块;The buffer module is also used to receive the data of the Avalon-ST bus protocol sent by the upper-layer Ethernet networking, and send it to the analysis and conversion module;
所述解析转换模块,还用于根据HDLC协议对接收到的所述Avalon-ST总线协议的数据进行重组,并通过串行转换为串行二进制码流,发送至所述编解码模块;The analysis and conversion module is also used to reorganize the received data of the Avalon-ST bus protocol according to the HDLC protocol, and serially convert it into a serial binary code stream, and send it to the codec module;
所述编解码模块,还用于对接收到的串行二进制码流进行编码,并发送至所述下层以太网组网。The encoding and decoding module is further configured to encode the received serial binary code stream and send it to the lower-layer Ethernet networking.
具体地,参见图6的下半部分流程,当FPGA芯片对接收到上层以太网组网的数据请求时,需要进行反向传输,对应的处理流程如下:Specifically, referring to the lower half of the flow in Figure 6, when the FPGA chip pair receives a data request from the upper-layer Ethernet networking, it needs to perform reverse transmission, and the corresponding processing flow is as follows:
所述缓冲模块,还用于接收上层以太网组网发送的Avalon-ST总线协议的数据,并发送至所述解析转换模块。同样地,接收过程也需要整包缓存,当一个完整的数据包完成缓存后,所述缓冲模块就将该数据包通过Avalon-ST总线发送至所述解析转换模块。The buffer module is further configured to receive the data of the Avalon-ST bus protocol sent by the upper-layer Ethernet networking, and send it to the analysis and conversion module. Similarly, the receiving process also needs to buffer the entire packet. After a complete data packet is buffered, the buffering module sends the data packet to the parsing and converting module through the Avalon-ST bus.
所述解析转换模块,还用于根据HDLC协议对接收到的Avalon-ST总线协议的数据进行重组,重组又称封装,封装完成后,通过串行转换为串行二进制码流,发送至所述编解码模块。The analysis and conversion module is also used to reorganize the received data of the Avalon-ST bus protocol according to the HDLC protocol, which is also called encapsulation. Codec module.
所述编解码模块,还用于对接收到的串行二进制码流进行编码,并发送至下层以太网组网。在到达每一路E1链路前,先将编码后的信号发送至所述Buffer芯片转换为正负电平。The encoding and decoding module is also used for encoding the received serial binary code stream and sending it to the lower-layer Ethernet networking. Before reaching each E1 link, the encoded signal is sent to the Buffer chip and converted to positive and negative levels.
本发明该实施例先利用缓冲模块接收上层以太网组网发送的Avalon-ST总线协议的数据,再通过解析转换模块根据HDLC协议对接收到的Avalon-ST总线协议的数据进行重组,通过串行转换为串行二进制码流,然后通过编解码模块串行二进制码流进行编码,并发送至下层以太网组网,以实现上层以太网组网的数据请求的处理。In this embodiment of the present invention, the buffer module is used to receive the data of the Avalon-ST bus protocol sent by the upper-layer Ethernet networking, and then the data of the received Avalon-ST bus protocol is reorganized by the analysis and conversion module according to the HDLC protocol. Convert it into a serial binary code stream, then encode it through the serial binary code stream of the codec module, and send it to the lower-layer Ethernet network to process the data request of the upper-layer Ethernet network.
作为上述方案的改进,还包括Buffer芯片,所述下层以太网组网中的每一路E1链路均通过一个所述Buffer芯片与所述FPGA芯片连接。As an improvement of the above solution, a Buffer chip is also included, and each E1 link in the lower-layer Ethernet networking is connected to the FPGA chip through one of the Buffer chips.
具体地,多路E1组网的负载均衡系统还包括所述Buffer芯片,下层以太网组网中的每一路E1链路均通过一个所述Buffer芯片与所述FPGA芯片连接。也就是说,下层以太网组网中的每一路E1链路通过所述Buffer芯片连接至FPGA芯片的管脚。Specifically, the load balancing system for multi-channel E1 networking further includes the Buffer chip, and each E1 link in the lower-layer Ethernet networking is connected to the FPGA chip through one of the Buffer chips. That is to say, each E1 link in the lower-layer Ethernet networking is connected to the pins of the FPGA chip through the Buffer chip.
本发明该实施例通过在每一路E1链路与FPGA芯片之间加设Buffer芯片,以减少每一路E1链路的正负电平失真。In this embodiment of the present invention, a Buffer chip is added between each E1 link and the FPGA chip to reduce the positive and negative level distortion of each E1 link.
作为上述方案的改进,所述编解码模块采用的编解码规则为HDB3编解码规则。As an improvement of the above solution, the encoding and decoding rules adopted by the encoding and decoding modules are HDB3 encoding and decoding rules.
具体地,所述编解码模块采用的编解码规则为HDB3编解码规则。即所述编解码模块根据HDB3解码规则对接收到的差分信号解码为二进制码流,根据HDB3编码规则对接收到的二进制码流编码为差分信号。Specifically, the encoding and decoding rules adopted by the encoding and decoding modules are HDB3 encoding and decoding rules. That is, the encoding and decoding module decodes the received differential signal into a binary code stream according to the HDB3 decoding rule, and encodes the received binary code stream into a differential signal according to the HDB3 encoding rule.
作为上述方案的改进,所述解析转换模块采用的解析协议为HDLC协议。As an improvement of the above solution, the parsing protocol adopted by the parsing conversion module is the HDLC protocol.
具体地,所述解析转换模块采用的解析协议为HDLC协议。优选地,HDLC协议采用并行HDLC协议,相对于标准HDLC协议对空闲码进行了转译,保证原始数据中出现和空闲码相同的数据时不会解错数据包。Specifically, the parsing protocol adopted by the parsing conversion module is the HDLC protocol. Preferably, the HDLC protocol adopts the parallel HDLC protocol, and the idle code is translated relative to the standard HDLC protocol, so as to ensure that the data packet will not be debugged when the same data as the idle code appears in the original data.
作为上述方案的改进,所述缓冲模块的缓存方式为整包缓存,在确认下行的E1链路发送的数据已缓存为一个完整的数据包时,以预设的读取速率对所述数据包进行读取。As an improvement of the above solution, the buffering mode of the buffer module is whole packet buffering. When confirming that the data sent by the downlink E1 link has been buffered as a complete data packet, the data packet is stored at a preset reading rate. to read.
具体地,所述缓冲模块的缓存方式为整包缓存,在确认下行的E1链路发送的数据已缓存为一个完整的数据包时,以预设的读取速率对所述数据包进行读取。例如,在2Mbps的速率下确认缓存一个完整包后再从50Mbps的速率下读出该数据包进行汇集桥接。Specifically, the buffering mode of the buffer module is whole packet buffering, and when it is confirmed that the data sent by the downlink E1 link has been buffered as a complete data packet, the data packet is read at a preset reading rate . For example, it is confirmed that a complete packet is buffered at a rate of 2Mbps, and then the data packet is read out at a rate of 50Mbps for aggregation bridging.
作为上述方案的改进,所述缓冲模块的缓存速率为2Mbps。As an improvement of the above solution, the buffering rate of the buffering module is 2 Mbps.
具体地,所述缓冲模块的缓存速率为2Mbps。所述缓冲模块将E1链路接收到的数据包进行整包缓存,在2Mbps的速率下确认缓存一个完整包后,再进行读取,避免数据包的数据不全或出现错漏。Specifically, the buffering rate of the buffering module is 2 Mbps. The buffer module buffers the whole packet of the data packets received by the E1 link, and then reads the data packets after confirming that a complete packet is buffered at a rate of 2 Mbps, so as to avoid incomplete data or errors or omissions in the data packets.
作为上述方案的改进,所述预设的读取速率为50Mbps。As an improvement of the above solution, the preset read rate is 50Mbps.
具体地,所述预设的读取速率为50Mbps。在数据包缓存完整后,再进行读取,且读取速率大于缓存速率,有利于快速获取数据包的内容,并对数据请求进行处理,减少链路阻塞。Specifically, the preset read rate is 50 Mbps. After the data packet is completely cached, read it again, and the read rate is greater than the cache rate, which is beneficial to quickly obtain the content of the data packet, process the data request, and reduce link congestion.
作为上述方案的改进,所述总线桥接模块处理每一路E1链路的数据请求的等待时间为1个时钟周期。As an improvement of the above solution, the waiting time for the bus bridge module to process the data request of each E1 link is 1 clock cycle.
具体地,所述总线桥接模块处理每一路E1链路的数据请求的等待时间为1个时钟周期。也就是说,所述总线桥接模块能够在增加很少的处理时间成本下进行每一路E1的接收请求判断。即使只有一路E1在满负荷接收,其额外增加的状态机跳转时间为n-1路个50Mhz时钟周期。以2M系统为例一片FPGA处理16路E1链路的接收请求,状态机中间跳转时间为20ns*15=300ns,相当于在一路满负荷的E1链路下仅增加了120bps的带宽消耗,相对于2Mbps的E1链路带宽几乎可以忽略不记。Specifically, the waiting time for the bus bridge module to process the data request of each E1 link is 1 clock cycle. That is to say, the bus bridge module can judge the reception request of each channel E1 with little increase in processing time cost. Even if only one channel of E1 is receiving at full load, the additional jumping time of the state machine is n-1 channels of 50Mhz clock cycles. Taking the 2M system as an example, an FPGA handles the receiving requests of 16 E1 links, and the intermediate jump time of the state machine is 20ns*15=300ns, which is equivalent to only increasing the bandwidth consumption of 120bps under a full-load E1 link. The E1 link bandwidth of 2Mbps is almost negligible.
综上,本发明实施例所提供的一种多路E1组网的负载均衡系统,通过将快速跳转策略应用在E1组网中的Avalon-ST总线桥的设计上,对请求处理状态机进行快速跳转设计,达到多路业务并发时进行负载均衡处理的目的,解决多路业务并发阻塞问题,而且重新设计的状态机仅需要额外增加极小的处理时间资源、FPGA逻辑资源消耗,处理接收请求的等待时间仅为1个时钟周期,带宽消耗几乎可以忽略,总线桥的资源消耗没有增加。本发明能够兼容多种多路E1组网方式,且都能保证组网环境下不会出现单路局向导致阻塞的问题。To sum up, the load balancing system of the multi-channel E1 networking provided by the embodiment of the present invention, by applying the fast jump strategy to the design of the Avalon-ST bus bridge in the E1 networking, the request processing state machine is processed. The fast jump design achieves the purpose of load balancing processing when multiple services are concurrent, and solves the problem of concurrent blocking of multiple services. Moreover, the redesigned state machine only needs to add extra processing time resources, FPGA logic resource consumption, and processing reception. The request latency is only 1 clock cycle, the bandwidth consumption is almost negligible, and the resource consumption of the bus bridge is not increased. The invention can be compatible with various multi-channel E1 networking modes, and can ensure that the problem of blocking caused by a single-channel office direction does not occur in the networking environment.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can also be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110022218.7A CN112910794B (en) | 2021-01-07 | 2021-01-07 | Load balancing system for multi-path E1 networking |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110022218.7A CN112910794B (en) | 2021-01-07 | 2021-01-07 | Load balancing system for multi-path E1 networking |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112910794A true CN112910794A (en) | 2021-06-04 |
CN112910794B CN112910794B (en) | 2023-04-07 |
Family
ID=76112275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110022218.7A Active CN112910794B (en) | 2021-01-07 | 2021-01-07 | Load balancing system for multi-path E1 networking |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112910794B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810945A (en) * | 2021-09-22 | 2021-12-17 | 广州通则康威智能科技有限公司 | Multi-path uplink load balancing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997745A (en) * | 2010-11-23 | 2011-03-30 | 珠海市佳讯实业有限公司 | FPGA-based E1 insertion time slot and E1_IP data aggregation hybrid access device and method |
CN103701715A (en) * | 2012-09-27 | 2014-04-02 | 京信通信系统(中国)有限公司 | Method and device for sending and receiving Ethernet data packet based on multiple E1 channels |
CN104660360A (en) * | 2015-02-03 | 2015-05-27 | 电信科学技术第五研究所 | Ethernet data and multi-channel E1 data processing method and system |
US20160246643A1 (en) * | 2013-11-29 | 2016-08-25 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for scheduling blocking tasks |
CN110113374A (en) * | 2019-03-15 | 2019-08-09 | 平安科技(深圳)有限公司 | Streaming media server executes multitask method, device and storage medium, terminal device |
-
2021
- 2021-01-07 CN CN202110022218.7A patent/CN112910794B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997745A (en) * | 2010-11-23 | 2011-03-30 | 珠海市佳讯实业有限公司 | FPGA-based E1 insertion time slot and E1_IP data aggregation hybrid access device and method |
CN103701715A (en) * | 2012-09-27 | 2014-04-02 | 京信通信系统(中国)有限公司 | Method and device for sending and receiving Ethernet data packet based on multiple E1 channels |
US20160246643A1 (en) * | 2013-11-29 | 2016-08-25 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for scheduling blocking tasks |
CN104660360A (en) * | 2015-02-03 | 2015-05-27 | 电信科学技术第五研究所 | Ethernet data and multi-channel E1 data processing method and system |
CN110113374A (en) * | 2019-03-15 | 2019-08-09 | 平安科技(深圳)有限公司 | Streaming media server executes multitask method, device and storage medium, terminal device |
WO2020186792A1 (en) * | 2019-03-15 | 2020-09-24 | 平安科技(深圳)有限公司 | Streaming media server task execution method and apparatus, and storage medium and terminal device |
Non-Patent Citations (2)
Title |
---|
王肃: "基于FPGA的E1与以太网适配器的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
贺剑等: "多网卡bonding技术在无线广告系统中的应用", 《计算机系统应用》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113810945A (en) * | 2021-09-22 | 2021-12-17 | 广州通则康威智能科技有限公司 | Multi-path uplink load balancing method and device, computer equipment and storage medium |
CN113810945B (en) * | 2021-09-22 | 2023-06-20 | 广州通则康威智能科技有限公司 | Multi-path uplink load balancing method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112910794B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4727952B2 (en) | Packet aggregation for real-time services over packet data networks | |
CN106664290B (en) | data transmission method and device of photoelectric hybrid network | |
CN102916880B (en) | The method and device that packet sends and receives in a kind of packet switching network | |
JP2021534618A (en) | Traffic transmission methods, equipment and computer storage media | |
CN110875796B (en) | Method and apparatus for physical layer port channelization | |
CN101014017A (en) | Switching apparatus having universal transport of data packet frames | |
CN110300431A (en) | A kind of data traffic processing method and related network device | |
US11425050B2 (en) | Method and apparatus for correcting a packet delay variation | |
CN102316516A (en) | LTE uplink data transmission structure and control method | |
CN101035143B (en) | Physical layer chip, signal transmission method and switch | |
CN111597141B (en) | Hierarchical exchange structure and deadlock avoidance method for ultrahigh-order interconnection chip | |
US10448455B2 (en) | Radio communications gateway and radio communications terminal | |
CN112910794B (en) | Load balancing system for multi-path E1 networking | |
CN105516109B (en) | A kind of transmission dispatching method ensureing wireless multi-hop network transmission of video service quality | |
WO2022001166A1 (en) | Interface, electronic device, and communication system | |
CN101562498B (en) | Coding and decoding transmission method, equipment and system for multi-connection data stream cracking | |
TWI357754B (en) | Apparatus and method of 3g mobile communication ca | |
WO2020048508A1 (en) | Bit block generating method and device, bit block receiving method and device | |
CN110365579A (en) | Congestion and fault-aware wireless router and its routing method in wireless network-on-chip | |
CN116248758A (en) | An Efficient Core-Network-on-Chip Bridge Connection Structure | |
CN110830153A (en) | Method for receiving code block stream, method for transmitting code block stream, and communication device | |
CN103346862A (en) | On-chip network data transmission device and method with cascade protection function | |
CN117041378A (en) | Data processing method, device and equipment | |
CN114500692A (en) | A time-sensitive network frame preemption optimization method | |
CN116346720A (en) | Information transmission device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 050000 No.10 Fuqiang street, Yuhua District, Shijiazhuang City, Hebei Province Applicant after: STATE GRID HEBEI INFORMATION & TELECOMMUNICATION BRANCH Applicant after: GHT Co.,Ltd. Applicant after: STATE GRID CORPORATION OF CHINA Address before: 510663, Guangdong, Guangzhou hi tech Industrial Development Zone, science, South Road, No. 16, No. Applicant before: GHT Co.,Ltd. Applicant before: STATE GRID HEBEI INFORMATION & TELECOMMUNICATION BRANCH Applicant before: STATE GRID CORPORATION OF CHINA |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |