WO2016095758A1 - 一种跨板转发的方法和装置 - Google Patents

一种跨板转发的方法和装置 Download PDF

Info

Publication number
WO2016095758A1
WO2016095758A1 PCT/CN2015/097152 CN2015097152W WO2016095758A1 WO 2016095758 A1 WO2016095758 A1 WO 2016095758A1 CN 2015097152 W CN2015097152 W CN 2015097152W WO 2016095758 A1 WO2016095758 A1 WO 2016095758A1
Authority
WO
WIPO (PCT)
Prior art keywords
ports
board
traffic
service card
card
Prior art date
Application number
PCT/CN2015/097152
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Priority to EP15869265.7A priority Critical patent/EP3236624B1/en
Priority to JP2017532150A priority patent/JP2017539173A/ja
Priority to KR1020177019316A priority patent/KR20170094399A/ko
Publication of WO2016095758A1 publication Critical patent/WO2016095758A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/50Overload detection or protection within a single switching element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/101Packet switching elements characterised by the switching fabric construction using crossbar or matrix
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Definitions

  • This application relates to, but is not limited to, the field of data communications.
  • Cross-board forwarding is a common forwarding behavior in the communication field.
  • a switch or router device of a multi-service card data traffic enters from the service card 1 and exits from the service card 2, and the process is cross-board forwarding.
  • the traffic forwarded across the board also needs to go through a switch board, that is, the data traffic enters from the entrance of the service card 1, and then exits from the cross-board exit of the service card 1, and the cross-board exit of the service card 1 is connected with the switch board, so the traffic Will enter the switch board, then the switch board transfers the traffic to the service card 2, and finally the traffic is sent out from the exit of the service card 2, which is a complete cross-board forwarding process.
  • the communication device in the network needs to distribute the ingress traffic evenly to the cross-board egress of the service card for the traffic that is forwarded across the board. In this way, the maximum usage rate of the service card cross-board outlet can be achieved, and the cross-board of the communication device can be improved. Forwarding ability.
  • This paper provides a cross-board forwarding method and device to solve the problem that the equalization cannot be achieved when the large traffic or the traffic itself is irregular in the related art.
  • a method for cross-board forwarding comprising:
  • the traffic of the ingress port of the service card is evenly distributed to all the inter-board egress ports of the service card.
  • the traffic of the inbound and outbound ports of the incoming service card is forwarded through the switch board and the outbound service board.
  • the process of forwarding the traffic of the inbound and outbound ports of the inbound service card through the switching card and the outgoing service card in sequence includes:
  • the traffic of each ingress port of the switchboard card is forwarded to the outbound service card through the egress port of the corresponding switchboard card.
  • the outgoing service card forwards the traffic forwarded by the switch board according to the forwarding information of the traffic
  • the ingress port of the switch board is in one-to-one correspondence with the egress port of the switch board.
  • the process of uniformly allocating the traffic of the ingress port of the service card to all the inter-board egress ports of the service card includes:
  • the traffic of each group of inbound ports is allocated to each of the inter-board egress ports of the incoming service card.
  • the process of uniformly dividing the X ingress ports into the Y group includes:
  • Each Z ports of the X ports are divided into one group.
  • dividing each of the X ports into a group includes:
  • the specified Z ports are divided into one group.
  • a device for cross-board forwarding includes:
  • the forwarding flow control unit is configured to forward the traffic of the inbound and outbound ports of the inbound service card through the switching board and the outgoing service board.
  • the forwarding flow control unit includes:
  • the switch board flow control module is configured to: transmit the traffic of each of the cross-board egress ports of the incoming service card to each ingress port of the switch board, and insert each of the switch boards into the switch The traffic of the port is forwarded to the outbound service card through the egress port of the corresponding switch card.
  • the ingress port of the switch card corresponds to the egress port of the switch card.
  • the service board flow control module is configured to: forward the traffic forwarded by the switch board according to the forwarding information of the traffic.
  • the incoming service card flow control unit includes:
  • the division module is configured to: count the number X of the ingress ports of the service card, and the number Y of the inter-board out ports of the service card, and divide the X ingress ports into Y groups evenly;
  • the traffic control module is configured to allocate the traffic of each of the ingress ports to be allocated to each of the inter-board egress ports of the service card.
  • the dividing module is configured to:
  • the dividing module is configured to:
  • the specified Z ports are divided into one group.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the technical solution of the present application does not have any special requirements on the flow size or the flow itself, and can achieve balanced forwarding.
  • FIG. 1 is a flowchart of a method for cross-board forwarding according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of traffic forwarding of a communication device across boards in the embodiment
  • FIG. 3 is a flowchart of forwarding traffic of a communication device across boards in the embodiment
  • FIG. 4 is a schematic diagram of an apparatus for cross-board forwarding according to an embodiment of the present invention.
  • the inbound traffic service board can divide the traffic by using the ingress port, and distribute the traffic balance to the inter-board egress port of the service card.
  • the traffic is evenly forwarded through the one-to-one correspondence between the ingress and the egress. This ensures that the cross-board egress traffic is load-balanced.
  • the traffic is not packetized across the board. This allows the cross-board egress bandwidth to be maximized. Cross-board forwarding capability of the device.
  • this embodiment provides a method for performing cross-board forwarding based on load balancing on an ingress port, which mainly includes the following operations:
  • step 101 the traffic of the ingress port of the service card is evenly distributed to all the inter-board egress ports of the service card.
  • step 102 the traffic of the inbound and outbound ports of the service board is forwarded through the switch board and the outbound service board.
  • the traffic of the inter-board egress port of the service card when the traffic of the inter-board egress port of the service card is forwarded through the switch card, the traffic of each inter-board egress port of the service card can be transmitted to each ingress port of the switch card. on;
  • the traffic of each ingress port of the switchboard card is forwarded to the outbound service card through the egress port of the corresponding switchboard card.
  • the outgoing service board forwards the traffic forwarded by the switch board according to the forwarding information of the traffic
  • the ingress port of the switch board corresponds to the egress port of the switch board to ensure that the traffic on the switch board is evenly forwarded.
  • the traffic of each group of inbound ports is allocated to each of the inter-board egress ports of the incoming service card.
  • each of the adjacent Z ports may be divided into a group according to the port number; or the specified Z ports are divided into one group according to the configuration instruction, as long as the guarantee is The ingress port can be evenly divided.
  • the ingress port a of the incoming traffic service card (referred to as the incoming service card) 21 enters the ingress port of the service card 21, and the traffic enters from here.
  • the inter-board egress port b of the incoming service card 21 is connected to the inter-board egress port of the service card 21, and is connected to the ingress port of the switchboard card 22.
  • the ingress port c of the switch board 22 the ingress port of the switch board 22 is connected to the inter-board out port of the service board 21 one by one.
  • the egress port d of the switch board 22 the egress port of the switch board 22 is connected to the inter-board entry port of the service board 23 one by one.
  • the ingress port e of the outgoing traffic service card (referred to as the service card) 23 is the inbound port of the outgoing service card 23, and is connected to the outgoing port of the switchboard card 22 one by one.
  • the outbound port f of the service card 23 is out of the outgoing port of the service board 23, and the traffic goes out.
  • the cross-board forwarding process shown in FIG. 2 is as shown in FIG. 3, and includes the following operations of steps 301 to 304:
  • Step 301 counting the number of ingress ports X of the service card
  • Step 302 Count the number Y of the cross-board out ports of the service board
  • step 303 the inbound ports of the incoming service cards are evenly divided into Y groups, and the traffic of each group of ports is allocated to each of the inter-board egress ports of the service card.
  • the number of inbound ports of the incoming service card on the network device and the number of inbound and outbound ports are generally: X>Y.
  • the number of inbound ports included in each group is Z, Z is an integer. Since the bandwidth of a single ingress port and the bandwidth of the inbound and outbound ports are inconsistent, the bandwidth of a single ingress port *Z is required to be less than or equal to the bandwidth of a single inter-board outbound port. ;
  • the above method of grouping is only one of many ways, but the application is not limited to this method, and it is required to divide the traffic of the X ingress ports into Y cross-board outlets. That is, the inbound traffic of the Z ingress ports needs to be forwarded from a cross-board outbound port. Because the bandwidth of a single ingress port *Z is less than or equal to the bandwidth of a single inter-board outbound port, no packet loss occurs on the service card forwarding.
  • step 304 the traffic of the inbound and outbound ports of the service card is forwarded through the switch board and the outbound service card.
  • the inbound port of the switch board is connected to the inbound and outbound ports of the service card. Therefore, the number of ports is the same, that is, Y.
  • the number of the ingress port of the switch board and the number of egress ports of the switch board are the same, and it is also Y.
  • the switch board needs to ensure that the traffic is in the one-to-one correspondence between the entry and the exit during the forwarding process, that is, the traffic is from an entrance. Incoming, all of this traffic needs to go out from the other exit, so that the switch board can evenly forward the ingress traffic. Because the bandwidth of the switch board is the same, you can ensure that traffic forwarding does not lose packets.
  • the traffic card After the traffic is sent from the egress port of the switch board, the traffic card enters the service card.
  • the service card forwards the traffic from the egress port of the service card based on the forwarding information of the traffic.
  • this embodiment provides a device for forwarding across boards, including:
  • the incoming service card flow control unit 41 is configured to: uniformly distribute the traffic of the ingress port of the incoming service card to each of the cross-board egress ports of the incoming service card;
  • the forwarding flow control unit 42 is configured to: forward the traffic of the inbound and outbound ports of the inbound service card through the switching board and the outgoing service card in sequence.
  • the forwarding flow control unit 42 is at least divided into a switch board flow control module and an outgoing service card flow control module.
  • the switch board traffic control module transmits the traffic of each of the cross-board egress ports of the service card to each ingress port of the switch board, and respectively passes the traffic of each ingress port of the switch board through corresponding The egress port of the switch card is forwarded to the egress card.
  • the ingress port of the switch card corresponds to the egress port of the switch card.
  • the service board traffic control module forwards the traffic forwarded by the switch board according to the forwarding information of the traffic.
  • the incoming service card flow control unit 41 can be further divided into a dividing module and a flow control module.
  • the module is used to count the number of inbound ports of the service card and the number of the inbound and outbound ports of the service card. According to X and Y, the ingress ports of the X service cards are even. Divided into Y groups;
  • the traffic control module allocates the traffic of each group of inbound ports to each of the inter-board egress ports of the incoming service card.
  • each of the adjacent Z ports may be divided into a group according to the port number.
  • the ingress ports of the sequence numbers 1 to Z-1 are divided into the first group, and the serial number Z is The ingress port of 2*Z-1 is divided into the second group, and so on, and the ingress port of the sequence number ((Y-1)*Z+1) to Y*Z is divided into the Yth group.
  • the device provided in this embodiment can implement the method in the foregoing Embodiment 1, and other details of the device can be referred to the corresponding content in Embodiment 1, and details are not described herein again.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the traffic that needs to be forwarded across the board is evenly distributed to different out-of-board egress ports, ensuring that the cross-board egress traffic reaches load balancing, and the traffic does not lose packets across the board.
  • the cross-board egress bandwidth is maximized, thereby improving the cross-board forwarding capability of the entire device.

Landscapes

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

Abstract

本文公布一种跨板转发的方法和装置,所述方法包括:将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上;将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去。

Description

一种跨板转发的方法和装置 技术领域
本申请涉及但不限于数据通信领域。
背景技术
跨板转发是通信领域中的一个普遍转发行为,比如多业务卡的交换机或路由器设备,数据流量从业务卡1进入,从业务卡2出去,这个过程就是跨板转发。跨板转发的流量还需要经过一个交换板卡,即数据流量从业务卡1的入口进入,然后从业务卡1的跨板出口出去,业务卡1的跨板出口和交换板卡连接,所以流量会进入交换板卡,然后交换板卡把流量转给业务卡2,最后流量从业务卡2的出口发出去,这是一个完整的跨板转发流程。
网络中的通信设备,对于跨板转发的流量,需要把入口流量均匀的分担到本业务卡的跨板出口上,这样才能达到业务板卡跨板出口的最大使用率,提高通信设备的跨板转发能力。
由于业务卡进来的流量很无规律,使用普通的hash方式很难将入口流量均衡的分担到本业务板卡的跨板出口上,即有些跨板出口流量大,有些跨板出口流量小,甚至有些出口流量超出了单个跨板出端口的最大带宽,这样就会造成丢包,同时降低了跨板出口的使用率,也就降低了整个设备的跨板转发能力。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种跨板转发的方法和装置,以解决相关技术中大流量或流量本身无规律时无法达到均衡转发的问题。
一种跨板转发的方法,该方法包括:
将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上;
将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去。
可选地,上述方法中,将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去的过程包括:
将所述入业务板卡的每个跨板出端口的流量分别传送到交换板卡的每个入端口上;
将所述交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到所述出业务板卡上;
所述出业务板卡根据流量的转发信息将所述交换板卡转发的流量转发出去;
其中,所述交换板卡的入端口与交换板卡的出端口一一对应。
可选地,上述方法中,将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上的过程包括:
统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,将X个入端口均匀划分为Y组;
将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
可选地,上述方法中,将X个入端口均匀划分为Y组的过程包括:
确定X个入端口均匀划分为Y组时,每组包含的端口的个数Z,其中,Z=X/Y,Z为整数;
将X个端口中每Z个端口划分为一组。
可选地,上述方法中,将X个端口中每Z个端口划分为一组包括:
按照端口序号将相邻的每Z个端口划分为一组;或者
按照配置指令,将指定的Z个端口划分为一组。
一种跨板转发的装置,包括包括:
入业务板卡流量控制单元,设置为:将入业务板卡的入端口的流量均匀 的分配到入业务板卡的所有跨板出端口上;
转发流量控制单元,设置为:将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡将流量转发出去。
可选地,上述装置中,所述转发流量控制单元,包括:
交换板卡流量控制模块,设置为:将所述入业务板卡的每个跨板出端口的流量分别传送到交换板卡的每个入端口上,并将所述交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到所述出业务板卡上,其中,所述交换板卡的入端口与交换板卡的出端口一一对应;
出业务板卡流量控制模块,设置为:根据流量的转发信息将所述交换板卡转发的流量转发出去。
可选地,上述装置中,所述入业务板卡流量控制单元包括:
划分模块,设置为:统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,并将X个入端口均匀划分为Y组;
流量控制模块,设置为:将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
可选地,上述装置中,所述划分模块是设置为:
确定X个入端口均匀划分为Y组时,每组包含的端口的个数Z,将X个端口中每Z个端口划分为一组,其中,Z=X/Y,Z为整数。
可选地,上述装置中,所述划分模块是设置为:
按照端口序号将相邻的每Z个端口划分为一组;或者
按照配置指令,将指定的Z个端口划分为一组。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
与相关技术相比,本申请技术方案对流量大小或流量本身的规律没有任何特殊要求,都可以达到均衡转发有效果。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例的跨板转发的方法的流程图;
图2为本实施例中通信设备流量跨板转发的示意图;
图3为本实施例中通信设备流量跨板转发的流程图;
图4为本发明实施例的跨板转发的装置示意图。
本发明的实施方式
下文将结合附图对本发明的实施方式进行说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。
实施例1
本申请发明人提出:入流量业务板可以以入端口来划分流量,将流量均衡的分配到入业务板卡的跨板出端口。在交换板上,通过一一对应入口和出口关系,保证流量均匀转发,从而保证跨板出口流量达到负载均衡,流量跨板转发不丢包,使跨板出口带宽得到最大的利用,从而提高整个设备的跨板转发能力。
如图1所示,本实施例提供一种基于入端口进行负载均衡的跨板转发的方法,主要包括如下操作:
步骤101,将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上;
步骤102,将入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去。
可选地,入业务板卡的跨板出端口的流量依次通过交换板卡转发流量时,可以将入业务板卡的每个跨板出端口的流量分别传送到交换板卡的每个入端口上;
再将交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到所述出业务板卡上;
最后,出业务板卡根据流量的转发信息将交换板卡转发的流量转发出去;
其中,交换板卡的入端口与交换板卡的出端口一一对应,以保证交换板卡上的流量也是均匀转发的。
其中,将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上的过程如下:
统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,将X个入端口均匀划分为Y组;
将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
其中,将X个入端口均匀划分为Y组时,需要先确定每组包含的端口的个数Z,再将X个端口中每Z个端口划分为一组。Z=X/Y,Z为整数。
在将每Z个端口划分为一组的过程中,可以按照端口序号将相邻的每Z个端口划分为一组;或者按照配置指令,将指定的Z个端口划分为一组,只要保证将入端口均匀划分即可。
下面通过附图及实施例对上述方法做进一步的详细说明。
首先,结合图2介绍一些端口名称的定义。
入流量业务板卡(简称入业务板卡)21的入端口a:入业务板卡21的入端口,流量从此进入。
入业务板卡21的跨板出端口b:入业务板卡21的跨板出端口,和交换板卡22的入端口一一连接。
交换板卡22的入端口c:交换板卡22的入端口,和入业务板卡21的跨板出端口一一连接。
交换板卡22的出端口d:交换板卡22的出端口,和出业务板卡23的跨板入端口一一连接。
出流量业务板卡(简称出业务板卡)23的入端口e:出业务板卡23的入端口,和交换板卡22的出端口一一连接。
出业务板卡23的出端口f:出业务板卡23的出端口,流量从此出去。
图2所示的跨板转发过程如图3所示,包括如下步骤301至304的操作:
步骤301,统计入业务板卡的入端口个数X;
步骤302,统计入业务板卡的跨板出端口的个数Y;
步骤303,将入业务板卡的入端口均匀划分为Y组,将每组端口的流量分别分配到入业务板卡的每个跨板出端口上;
该步骤中,网络设备上的入业务板卡的入端口的个数和跨板出端口的个数的大小情况一般会是:X>Y,
划分为Y组的过程中,要进行如下计算:
Z=X/Y;
即为每组包含的入端口的个数Z,Z为整数,由于单个入端口的带宽和跨板出端口的带宽是不一致的,还要求单个入端口带宽*Z小于等于单个跨板出端口带宽;
确定Z后,还要进行如下配置:
将入业务板卡入端口为1~Z的流量分配到入业务板卡的第一个跨板出端口上,将入业务板卡入端口为(Z+1)~2*Z的流量分配到入业务板卡第二个跨板出端口上,以此类推,将入业务板卡入端口为((Y-1)*Z+1)~Y*Z的流量分配到入业务板卡第Y个跨板出端口上。
其中,Z不为整数时,可以考虑采用本申请以外的其他方案实现。
还要说明的是,上述划分组的方法只是很多方式中的一种,但本申请不局限于这种方法,需要做的是,将X个入端口的流量平均的分到Y个跨板出口即可,即Z个入端口的入流量需从一个跨板出端口转发出去,因为单个入端口带宽*Z小于等于单个跨板出端口带宽,所以在业务板卡转发不会丢包。
步骤304,将入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去。
该步骤在跨板转发时,流量进入交换板卡后,交换板卡的入端口和入业务板卡的跨板出端口一一连接,因此端口数也相同,即为Y个。
交换板卡的入端口和交换板卡的出端口个数也是相同的,也是Y个,交换板卡需要保证流量在转发过程中入口和出口一一对应,即流量从一个入口 进来,此流量全部都需从另一个出口出去,这样交换板卡就可以均匀的转发入口流量。因为交换板卡端口带宽都是一样的,所以可以保证流量转发不丢包。
流量从交换板卡的出端口发出去后,进入出业务板卡,出业务板卡根据流量的转发信息把流量从出业务板卡的出端口转发出去。
实施例2
如图4所示,本实施例提供一种跨板转发的装置,包括:
入业务板卡流量控制单元41,设置为:将入业务板卡的入端口的流量均匀的分配到入业务板卡的每个所有跨板出端口上;
转发流量控制单元42,设置为:将入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡将流量转发出去。
可选地,转发流量控制单元42至少分为交换板卡流量控制模块和出业务板卡流量控制模块。其中,交换板卡流量控制模块,将入业务板卡的各个跨板出端口的流量分别传送到交换板卡的各入端口上,并将交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到出业务板卡上,其中,交换板卡的入端口与交换板卡的出端口一一对应。此时,出业务板卡流量控制模块,根据流量的转发信息将交换板卡转发的流量转发出去即可。
另外,入业务板卡流量控制单元41又可以分为划分模块和流量控制模块。
划分模块,主要用于统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,并根据X和Y,将X个业务板卡的入端口均匀划分为Y组;
流量控制模块,则将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
划分模块划分组时,要确定X个入端口均匀划分为Y组时,每组包含的端口的个数Z,并将X个端口中每Z个端口划分为一组。其中,Z=X/Y,Z为整数。还要说明的是,实际划分中,可以按照端口序号将相邻的每Z个端口划分为一组,例如,将序号1至Z-1的入端口划分为第一组,将序号Z至 2*Z-1的入端口划分为第二组,依次类推,将序号((Y-1)*Z+1)~Y*Z的入端口划分为第Y组即可。也可以按照配置指令,将指定的Z个端口划分为一组,例如,将指定的序号1、3、4、5、7、8等Z个入端口划分为第一组,再从剩余的入端口中指定Z个入端口划分为第二组,依次类推,将剩余的最后Z个入端口划分为第Y组。即只要将X个端口均匀划分为Y组即可。
由于本实施例提供的装置可实现上述实施例1的方法,故此装置的其他详细介绍可参见实施例1的相应内容,在此不再赘述。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例针对需要跨板转发的流量,基于流量的入端口,将流量均匀的分配到不同的跨板出端口上,保证跨板出口流量达到负载均衡,流量跨板转发不丢包,使跨板出口带宽得到最大的利用,从而提高整个设备的跨板转发能力。

Claims (11)

  1. 一种跨板转发的方法,该方法包括:
    将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上;
    将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去。
  2. 如权利要求1所述的方法,其中,将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡转发出去的过程包括:
    将所述入业务板卡的每个跨板出端口的流量分别传送到交换板卡的每个入端口上;
    将所述交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到所述出业务板卡上;
    所述出业务板卡根据流量的转发信息将所述交换板卡转发的流量转发出去;
    其中,所述交换板卡的入端口与交换板卡的出端口一一对应。
  3. 如权利要求1或2所述的方法,其中,将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上的过程包括:
    统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,将X个入端口均匀划分为Y组;
    将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
  4. 如权利要求3所述的方法,其中,将X个入端口均匀划分为Y组的过程包括:
    确定X个入端口均匀划分为Y组时,每组包含的端口的个数Z,其中,Z=X/Y,Z为整数;
    将X个端口中每Z个端口划分为一组。
  5. 如权利要求4所述的方法,其中,将X个端口中每Z个端口划分为一组包括:
    按照端口序号将相邻的每Z个端口划分为一组;或者
    按照配置指令,将指定的Z个端口划分为一组。
  6. 一种跨板转发的装置,包括包括:
    入业务板卡流量控制单元,设置为:将入业务板卡的入端口的流量均匀的分配到入业务板卡的所有跨板出端口上;
    转发流量控制单元,设置为:将所述入业务板卡的跨板出端口的流量依次通过交换板卡和出业务板卡将流量转发出去。
  7. 如权利要求6所述的装置,其中,所述转发流量控制单元,包括:
    交换板卡流量控制模块,设置为:将所述入业务板卡的每个跨板出端口的流量分别传送到交换板卡的每个入端口上,并将所述交换板卡的每个入端口的流量分别通过对应的交换板卡的出端口转发到所述出业务板卡上,其中,所述交换板卡的入端口与交换板卡的出端口一一对应;
    出业务板卡流量控制模块,设置为:根据流量的转发信息将所述交换板卡转发的流量转发出去。
  8. 如权利要求6或7所述的装置,其中,所述入业务板卡流量控制单元包括:
    划分模块,设置为:统计入业务板卡的入端口的个数X,以及入业务板卡的跨板出端口的个数Y,并将X个入端口均匀划分为Y组;
    流量控制模块,设置为:将所划分的每组入端口的流量分别分配到入业务板卡的每个跨板出端口上。
  9. 如权利要求8所述的装置,其中,所述划分模块是设置为:
    确定X个入端口均匀划分为Y组时,每组包含的端口的个数Z,将X个端口中每Z个端口划分为一组,其中,Z=X/Y,Z为整数。
  10. 如权利要求9所述的装置,其中,所述划分模块是设置为:
    按照端口序号将相邻的每Z个端口划分为一组;或者
    按照配置指令,将指定的Z个端口划分为一组。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。
PCT/CN2015/097152 2014-12-18 2015-12-11 一种跨板转发的方法和装置 WO2016095758A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP15869265.7A EP3236624B1 (en) 2014-12-18 2015-12-11 Cross-board forwarding method and apparatus
JP2017532150A JP2017539173A (ja) 2014-12-18 2015-12-11 クロスボード転送方法及び装置、プログラム、並びに記録媒体
KR1020177019316A KR20170094399A (ko) 2014-12-18 2015-12-11 크로스 보드 전송 방법 및 장치, 프로그램 및 기록매체

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410797626.X 2014-12-18
CN201410797626.XA CN105763472B (zh) 2014-12-18 2014-12-18 一种跨板转发的方法和装置

Publications (1)

Publication Number Publication Date
WO2016095758A1 true WO2016095758A1 (zh) 2016-06-23

Family

ID=56125917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/097152 WO2016095758A1 (zh) 2014-12-18 2015-12-11 一种跨板转发的方法和装置

Country Status (5)

Country Link
EP (1) EP3236624B1 (zh)
JP (1) JP2017539173A (zh)
KR (1) KR20170094399A (zh)
CN (1) CN105763472B (zh)
WO (1) WO2016095758A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110391994A (zh) * 2019-07-24 2019-10-29 杭州迪普科技股份有限公司 网络流量转发方法、装置、电子设备
CN110875881A (zh) * 2018-08-31 2020-03-10 中兴通讯股份有限公司 一种路由管理方法及分布式设备
CN111030938A (zh) * 2019-12-20 2020-04-17 锐捷网络股份有限公司 基于clos架构的网络设备负载均衡方法及装置
CN113824720A (zh) * 2021-09-18 2021-12-21 恒安嘉新(北京)科技股份公司 报文处理方法、装置、设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379297B (zh) * 2018-11-26 2023-01-10 锐捷网络股份有限公司 一种实现流量负载均衡的方法和装置
CN109379300B (zh) * 2018-12-20 2022-05-20 北京锐安科技有限公司 一种数据均衡分流方法、装置、分流设备及存储介质
CN109873776B (zh) * 2019-01-30 2021-06-29 新华三技术有限公司 一种组播报文负载分担的均衡方法及装置
CN112751756B (zh) * 2020-12-25 2023-02-28 杭州迪普信息技术有限公司 数据转发方法、装置、设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002237A1 (en) * 2002-06-28 2004-01-01 Doblar Drew G. Circuit board orientation in a computer system
CN1859175A (zh) * 2005-12-06 2006-11-08 华为技术有限公司 内部可靠互连的通信设备
CN101267435A (zh) * 2008-04-17 2008-09-17 中兴通讯股份有限公司 一种地址解析协议实现方法
EP2081398A1 (en) * 2006-12-31 2009-07-22 Huawei Technologies Co Ltd Communication apparatus, method and exchange plate for uniform exchanges for various services
CN102118305A (zh) * 2010-01-06 2011-07-06 上海贝尔股份有限公司 一种通信设备的业务板及包含该业务板的通信设备

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3079068B2 (ja) * 1997-07-29 2000-08-21 日本電信電話株式会社 Atmスイッチ
US7260102B2 (en) * 2002-02-22 2007-08-21 Nortel Networks Limited Traffic switching using multi-dimensional packet classification
KR100523359B1 (ko) * 2003-09-01 2005-10-24 한국전자통신연구원 비대칭 트래픽 스위칭 시스템
US7706302B2 (en) * 2004-09-14 2010-04-27 Alcatel Lucent Optimization of routing forwarding database in a network processor
JP4623010B2 (ja) * 2004-11-18 2011-02-02 日本電気株式会社 スイッチ装置、スイッチ方法及びスイッチ制御用プログラム
CN101262436B (zh) * 2008-04-08 2011-04-13 华为技术有限公司 组播复制方法、装置及线卡
CN101299721B (zh) * 2008-06-19 2012-04-18 杭州华三通信技术有限公司 交换网报文交换方法和交换装置
CN101605091B (zh) * 2009-02-13 2012-02-22 华为技术有限公司 一种多端口负载分担方法、装置和网络系统
CN101938406B (zh) * 2009-07-02 2012-07-04 华为技术有限公司 微波多通道报文发送方法和装置及传送系统
US8320399B2 (en) * 2010-02-26 2012-11-27 Net Optics, Inc. Add-on module and methods thereof
US9667570B2 (en) * 2010-03-11 2017-05-30 Ciena Corporation Fabric extra traffic
US8756424B2 (en) * 2010-11-30 2014-06-17 Marvell Israel (M.I.S.L) Ltd. Load balancing hash computation for network switches
US9100203B2 (en) * 2012-01-12 2015-08-04 Brocade Communications Systems, Inc. IP multicast over multi-chassis trunk
US9565113B2 (en) * 2013-01-15 2017-02-07 Brocade Communications Systems, Inc. Adaptive link aggregation and virtual link aggregation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002237A1 (en) * 2002-06-28 2004-01-01 Doblar Drew G. Circuit board orientation in a computer system
CN1859175A (zh) * 2005-12-06 2006-11-08 华为技术有限公司 内部可靠互连的通信设备
EP2081398A1 (en) * 2006-12-31 2009-07-22 Huawei Technologies Co Ltd Communication apparatus, method and exchange plate for uniform exchanges for various services
CN101267435A (zh) * 2008-04-17 2008-09-17 中兴通讯股份有限公司 一种地址解析协议实现方法
CN102118305A (zh) * 2010-01-06 2011-07-06 上海贝尔股份有限公司 一种通信设备的业务板及包含该业务板的通信设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875881A (zh) * 2018-08-31 2020-03-10 中兴通讯股份有限公司 一种路由管理方法及分布式设备
CN110391994A (zh) * 2019-07-24 2019-10-29 杭州迪普科技股份有限公司 网络流量转发方法、装置、电子设备
CN111030938A (zh) * 2019-12-20 2020-04-17 锐捷网络股份有限公司 基于clos架构的网络设备负载均衡方法及装置
CN113824720A (zh) * 2021-09-18 2021-12-21 恒安嘉新(北京)科技股份公司 报文处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
JP2017539173A (ja) 2017-12-28
EP3236624A4 (en) 2018-01-24
EP3236624B1 (en) 2019-07-31
EP3236624A1 (en) 2017-10-25
KR20170094399A (ko) 2017-08-17
CN105763472A (zh) 2016-07-13
CN105763472B (zh) 2020-08-11

Similar Documents

Publication Publication Date Title
WO2016095758A1 (zh) 一种跨板转发的方法和装置
US8855116B2 (en) Virtual local area network state processing in a layer 2 ethernet switch
US20180241696A1 (en) Network server having hardware-based virtual router integrated circuit for virtual networking
US9294304B2 (en) Host network accelerator for data center overlay network
US20150278148A1 (en) PCIe-BASED HOST NETWORK ACCELERATORS (HNAS) FOR DATA CENTER OVERLAY NETWORK
CN103581042B (zh) 一种数据包发送的方法和设备
CN103238301A (zh) 用于在路由器处管理话务的技术
Zahavi et al. Links as a service (LaaS) Guaranteed tenant isolation in the shared cloud
Liu et al. Subways: A case for redundant, inexpensive data center edge links
US11165711B2 (en) Methods and apparatuses for transparent embedding of photonic switching into electronic chassis for scaling data center cloud system
US10547539B2 (en) Data distribution method, data aggregation method, and related apparatuses
US11108594B2 (en) Implementing three-layer communication
EP3202111B1 (en) Allocating capacity of a network connection to data steams based on type
US10728171B2 (en) Governing bare metal guests
Jackson et al. COSIGN: A complete SDN enabled all-optical architecture for data centre virtualisation with time and space multiplexing
CN106209634B (zh) 地址映射关系的学习方法及装置
US20180026864A1 (en) Communication apparatus, communication system, and communication method
CN108259329B (zh) 一种报文转发方法及装置
US9166886B1 (en) Systems and methods for determining physical network topology
US10917707B2 (en) Network and method for a data center
JP5876954B1 (ja) 端局装置及び端局装置の受信方法
CN107896199B (zh) 传输报文的方法和装置
CN107566278B (zh) 传输方法、装置及系统
JP5757540B2 (ja) 通信システム、ネットワーク制御装置およびそのプログラム、並びに通信方法
EP2939382B1 (en) Distributed data processing system

Legal Events

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

Ref document number: 15869265

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017532150

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20177019316

Country of ref document: KR

Kind code of ref document: A

REEP Request for entry into the european phase

Ref document number: 2015869265

Country of ref document: EP