WO2018166482A1 - Congestion management method and device for switched network, and computer storage medium - Google Patents

Congestion management method and device for switched network, and computer storage medium Download PDF

Info

Publication number
WO2018166482A1
WO2018166482A1 PCT/CN2018/079048 CN2018079048W WO2018166482A1 WO 2018166482 A1 WO2018166482 A1 WO 2018166482A1 CN 2018079048 W CN2018079048 W CN 2018079048W WO 2018166482 A1 WO2018166482 A1 WO 2018166482A1
Authority
WO
WIPO (PCT)
Prior art keywords
bandwidth
link
links
value
rack
Prior art date
Application number
PCT/CN2018/079048
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 WO2018166482A1 publication Critical patent/WO2018166482A1/en

Links

Images

Classifications

    • 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
    • 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/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • H04L49/1507Distribute and route fabrics, e.g. sorting-routing or Batcher-Banyan
    • 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

  • each SU In a switched network, each SU is connected to each other, and according to its connection mode, it can be divided into a single-level networking structure and a three-level non-blocking (CLOS) networking structure.
  • the third-level CLOS network is shown in Figure 1. It consists of three-level SUs. There are service chassis 1, service chassis 2, and central chassis 65. The packets from the source switching access device on service chassis 1 are sent. The element passes through the SU on the service chassis 1 to reach the central chassis 65, and the SU through the central chassis 65 exchanges the SU to the SU on the service chassis 2, and then exchanges with the SU on the service chassis 2 to finally reach the service chassis. 2 SAU for each purpose.
  • An asymmetric switching network means that there is a bandwidth inconsistency between two levels adjacent to the switching network, that is, the bandwidth of all the nodes in any one level is inconsistent.
  • the third-level CLOS asymmetric switching network can be divided into asymmetry between the source switching access device on the service chassis and the first-level switching device, and the first-level switching device and the second-level switching device are asymmetric, and the second level
  • the switching device is asymmetric with the third-level switching device and the third-level switching device and the destination switching access device on the service chassis are asymmetric; here, one service chassis can place multiple switching devices, and each switching device A plurality of SUs may be included, and therefore, the first stage SU described above is also referred to as a first stage switching device SU.
  • An embodiment of the present invention further provides a congestion management apparatus for a switching network, where the apparatus includes:
  • a first accumulating module configured to: after the first selection module selects L links from the K links, accumulating bandwidths of the L links successively, and accumulating results of two adjacent connections
  • the first bandwidth accumulated value and the second bandwidth accumulated value are respectively included, wherein the first bandwidth accumulated value is a bandwidth accumulated value of the a links, and the second bandwidth accumulated value is a bandwidth accumulated value of the b links,
  • the embodiment of the invention further provides a computer storage medium storing computer executable instructions, which can implement a congestion management method of a switched network after the computer executable instructions are executed.
  • FIG. 1 is a schematic structural diagram of a three-stage CLOS switching network
  • FIG. 3 is a schematic flowchart of implementing a congestion management method for a switching network according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic structural diagram of another three-level CLOS asymmetric switching network according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a congestion management apparatus according to Embodiment 1 of the present invention.
  • the link is likely to belong to the same first-level switching device; in the general networking structure, the second-level switching device is fully reachable, and it is impossible for all the links between the first-level switching device and the second-level switching device to be closed.
  • the first-stage switching device after the link is closed is still reachable to the destination switching access. Therefore, the traffic of the source switching access is still equally distributed to each first-level switching device, and if a certain first level
  • the plurality of transmission links of the switching device are turned off, and congestion will occur on the first-stage switching device.
  • the links of the first-level switching devices SU1# and SU2# are not evenly distributed. In the extreme case, only the link of the first-stage switching device SU1# is turned off.
  • the original switching access devices SAU1# and SAU2# of the service box 1 cannot perceive the first level connected thereto. If the links of the switching devices SU1# and SU2# change, they will still send the traffic evenly to the first-stage switching devices SU1# and SU2#, and the first-stage switching device SU1# will have more output links.
  • the schematic diagram of a three-stage CLOS asymmetric switching network includes four service chassis, namely, service chassis 1 to service chassis 4, and two central chassis, namely, the central chassis 65 and the central chassis. 66, and each service chassis has 4 source switching access devices 401 and 4 first level switching devices 402, or 4 destination switching access devices 405 and 4 third level switching devices 404, and each There are four second-level switching devices 403 on the center chassis.
  • the chassis may also be referred to as a chassis.
  • a switching device includes a plurality of switching units. For convenience of drawing and description, in FIG.
  • the asymmetric switching network refers to a situation in which bandwidths are inconsistent between two levels adjacent to the switching network, that is, the bandwidth of all the nodes in any one level is inconsistent with the other node.
  • the congestion management device is a second-level switching device placed on the central chassis.
  • a second-level switching device is present, which refers to the congestion management device.
  • the method further includes: the Nth column data of the exchange state table is used to identify the rack identification information of the first level switching device, as shown in Table 1.
  • the row numbers 1 to 144 in the exchange state table represent the first-stage switching device numbers numbered 1 to 144; secondly, the data identifiers in the 145th column of the exchange state table are placed in the first-stage switching device.
  • the rack identification information for example, the data in column 145 shows the number "1", indicating that the first-stage switching device corresponding to the next row of the row of the number "1" is the first-stage switching device in the other rack.
  • the method before the reading the exchange state table, the method further includes: detecting whether a bandwidth of an input link in the congestion management device is greater than a bandwidth of an output link; and determining a bandwidth of the input link When the bandwidth of the output link is greater than, the exchange state table is read.
  • each service machine frame two links are respectively connected between the switching access unit and the switching unit, and the switching unit on the service chassis and the switching unit on the central chassis are also respectively There are two links connected. At this time, there is a link disconnected between the switching unit 2# on the service chassis 3 and the destination switching access unit 1#. As shown in FIG. 4, the dotted arrow line indicates the link. If the disconnection occurs, then the switching network has a third-level switching unit and the destination switching access unit is asymmetric. On the service box 3, the input bandwidth of the third-pole switching unit 2# is larger than the output bandwidth, which may be generated here. Local congestion, resulting in system packet loss, the entire network traffic decreased.
  • the processing manner is to close the output link of the second-level switching unit (the central chassis 66), and after the output link of the second-level is closed,
  • the second-stage switching unit has a problem that the input bandwidth is larger than the output bandwidth, which also causes congestion of the second-stage switching unit, and needs to be a non-pairing process of the second-stage switching device. At this time, the switching state is read. table.
  • Step 102 Select all L first-level switching devices belonging to the rack J according to the exchange state table, and acquire K links corresponding to the L first-level switching devices.
  • the first bandwidth accumulation value is a bandwidth accumulation value of a link
  • the second bandwidth accumulation value is a bandwidth accumulation value of the b links
  • the a link and the b link are both
  • the a and b are both positive integers less than or equal to L
  • b a+1.
  • rack_link(z1,d2), rack_link(z2,d3), rack_link(z3,d7), and rack_link(z4,d11) two of the links rack_link(z1,d2) and rack_link are used.
  • the bandwidth accumulation value L1 of the link rack_link (z1, d2) and rack_link (z2, d3) is less than w
  • the bandwidth accumulation value L2 of rack_link(z3, d7) is greater than w.
  • the bandwidth of the L links is accumulated, that is, whether b is equal to L, and when b is equal to L, the L links are The bandwidth has been accumulated; when b is less than L, it indicates that the L links have not been fully accumulated.
  • Step 109 Determine whether K-L is greater than L.
  • Step 112 Determine whether the third bandwidth accumulated value is smaller than the preset bandwidth, and whether the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth.
  • the first embodiment of the present invention further provides a congestion management apparatus.
  • the congestion management apparatus includes: a reading module 501, a first selection module 502, a first accumulation module 503, and a a shutdown module 504; wherein
  • the first selection module 502 is further configured to select L links from the K links;
  • the determining module 506 is configured to determine whether the K-L is greater than the L;
  • the second closing module 508 is configured to: when it is determined that the third bandwidth accumulated value is less than the preset bandwidth, and the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth, shutting down the KL link a link other than the c links;
  • the first processing module 509 is configured to: when the d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, add one to the J, and use the calculated sum value as a new one. J value, and the next operation of selecting all L first-level switching devices belonging to the rack J according to the exchange state table;
  • the Nth column data of the exchange state table is used to identify the rack identification information of the first level switching device.
  • the device further includes: a third processing module 512, configured to perform pre-zero detection on the read data for the link information after the reading module reads the exchange state table LZD, and rearrange, to generate a link data set.
  • a third processing module 512 configured to perform pre-zero detection on the read data for the link information after the reading module reads the exchange state table LZD, and rearrange, to generate a link data set.
  • the device further includes: a third selecting module 513, configured to: after the first selecting module 502 selects all the L first-level switching devices belonging to the rack J according to the switching state table, Obtaining data belonging to the L first-level switching devices in the link data set;
  • the merging module 514 is configured to merge the data attributed to the L first-level switching devices
  • the first selection module 502 is specifically configured to acquire K links corresponding to the L first-level switching devices according to the merged result.
  • Table 1 is an exchange state table, which may also be referred to as an extended rack table, wherein the exchange state table is an M row, an N column state table, and the switching state table is 1 to M rows.
  • the row order indicates the number of the different first-level switching devices
  • the data of the first to N-th columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the representation and the The link information in the congestion management device connected to the first-level switching device, wherein M and N are positive integers.
  • the schematic diagram of a three-stage CLOS asymmetric switching network includes four service chassis, namely, service chassis 1 to service chassis 4, and two central chassis, namely, the central chassis 65 and the central chassis. 66, and each service chassis has 4 source switching access devices 401 and 4 first level switching devices 402, or 4 destination switching access devices 405 and 4 third level switching devices 404, and each There are four second-level switching devices 403 on the center chassis.
  • the chassis may also be referred to as a chassis.
  • a switching device includes a plurality of switching units. For convenience of drawing and description, in FIG.
  • one switching unit can be regarded as one switching device, and one source switching access unit can be regarded as a source switching access device and A destination switching access unit can be considered as a destination switching access device.
  • the switching unit connected to the source switching access unit on the service chassis is called the first-level switching unit, and the switching unit on the central chassis is called the second-level switching unit.
  • the switching unit to which the destination switching access unit is connected is called a third-level switching unit.
  • the switching device that configures the first-level switching unit is the first-level switching device, and other devices are similar, and details are not described herein again.
  • each service machine frame two links are respectively connected between the switching access unit and the switching unit, and the switching unit on the service chassis and the switching unit on the central chassis are also respectively There are two links connected. At this time, there is a link disconnected between the switching unit 2# on the service chassis 3 and the destination switching access unit 1#. As shown in FIG. 4, the dotted arrow line indicates the link. Disconnected, then the third-level switching unit-destination switching access unit is asymmetric in the switching network. On the service box 3, the input bandwidth of the third-pole switching unit 2# is larger than the output bandwidth, which may be generated here. Local congestion, resulting in system packet loss, the entire network traffic decreased.
  • the processing manner is to close the output link of the second-level switching unit (the central chassis 66), and after the output link of the second-level is closed,
  • the second-stage switching unit has a problem that the input bandwidth is larger than the output bandwidth, which also causes congestion of the second-level switching unit, and needs to be processed by the second-stage switching device.
  • the reading module 501 reads The exchange status table.
  • the method further includes: the third processing module 512 performs LZD and rearranges the read data for the link information to generate a link. data set.
  • the first selection module 502 selects all the L first-level switching devices belonging to the rack J according to the exchange state table, and acquires K links corresponding to the L first-level switching devices.
  • the L and J are positive integers smaller than M, and the K is a positive integer smaller than the product of L and N.
  • the merging module 514 merges the data attributed to the L first-level switching devices
  • the first selection module 502 selects L links from the K links.
  • the first accumulation module 503 accumulates the bandwidths of the L links one by one, and uses the two adjacent accumulation results as the first bandwidth accumulated value and the second bandwidth accumulated value, respectively.
  • the first shutdown module 504 closes links other than the a links among the K links.
  • the first closing module 504 closes the K links.
  • the decision module 506 determines whether b is equal to L.
  • the second selection module 505 selects K-L links other than the L links from the K links.
  • the second selecting module 505 selects K-L links other than the L links from the K links.
  • K-L links other than the L links from the K links.
  • 7 links rack_link ⁇ (z4,d11), (z3,d10), (z3,d9), (z3,d7), (z2,d5),(z2,d3),(z1, In d2) ⁇
  • four links of rack_link (z1, d2), rack_link (z2, d3), rack_link (z3, d7) and rack_link (z4, d11) have been selected, and the bandwidth of the four links is accumulated. Both are smaller than the preset bandwidth. Therefore, the four links are reserved, and the remaining three links are reacquired, that is, the link rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9). ).
  • the judgment module 506 determines whether K-L is greater than L.
  • each selection generally one link is selected in the link corresponding to each first-level switching device, that is, L switching devices generally select L links.
  • L switching devices generally select L links.
  • the second processing module 510 takes the KL as a new K value, and then returns to step (3), that is, the bandwidth of the L links.
  • the accumulating is performed successively, and the two adjacent accumulated results are respectively used as the first bandwidth accumulated value and the second bandwidth accumulated value, and the first bandwidth accumulated value and the second bandwidth accumulated value are respectively the bandwidth accumulated values of the a and b links respectively.
  • the second accumulation module 507 accumulates the bandwidths of the K-L links one by one, and uses the two adjacent accumulation results as the third bandwidth accumulated value and the fourth bandwidth accumulated value, respectively.
  • the second shutdown module 508 turns off links other than the c links in the K-L link.
  • the second closing module 508 turns off the KL link.
  • a link other than the c links For example, if the preset bandwidth is w, if the third bandwidth accumulated value L3 of the link rack_link (z4, d11) and rack_link (z3, d10) is less than w, and the link rack_link (z4, d11), The fourth bandwidth accumulated value L4 of rack_link(z3, d10) and rack_link(z3, d9) is greater than w.
  • the second closing module 508 will rack_link (z4, d11), rack_link (z3, d10) and the three links. The rack_link(z3, d9) of rack_link(z3, d9) is closed.
  • the decision module 506 determines if d is equal to K-L.
  • the third bandwidth accumulated value and the fourth bandwidth accumulated value are both smaller than the preset bandwidth, it is necessary to determine whether the bandwidth of the KL link is accumulated, that is, whether d is equal to L, and when d is equal to KL, the KL link is The bandwidth has been accumulated; when d is less than L, it indicates that the KL link has not been fully accumulated.
  • This step, the value of a here, is shown in Figure 3.
  • the first processing module 509 increments J, takes the calculated sum value as a new J value, and then performs The operation of all L first-stage switching devices belonging to the rack J is selected next according to the exchange state table.
  • the link connection relationship between the second-level switching device and the first-level switching device can be determined by searching the switching state table, and then The bandwidth of the corresponding link is selected and accumulated.
  • the bandwidth accumulated value is just equal to or greater than the threshold bandwidth value, the link that has been accumulated currently is retained, and other links are closed. Therefore, it is ensured that the closed links are evenly distributed on different first-level switching devices, thereby solving the imbalance of the first-level switching device links that are closed when the second-level switching devices are asymmetric, resulting in the first-level switching.
  • the congestion of the device ensures the traffic level of the entire network, and also ensures that no bandwidth is wasted and the performance of the system is improved.
  • the second shutdown module 508, the first processing module 509, the second processing module 510, the detection module 511, the third processing module 512, the third selection module 513, and the merging module 514 may each be a central processing unit (CPU) located in the congestion management device. ), microprocessor (MPU), digital signal processor (DSP), or field programmable gate array (FPGA) implementation.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the embodiment further provides an embodiment of the present invention, further, a congestion management apparatus for a switching network, including: a memory and a processor connected to the memory; the memory stores computer executable instructions; and the processor is configured to execute The computer executable instructions perform one or more of the aforementioned congestion management methods of the switched network, for example, the method illustrated in FIG. 3 may be performed.
  • the memory can be various types of memory, such as various memories such as random access memory, read only memory, flash memory, and the like.
  • the processor may be connected to a memory through a bus such as a computer integrated bus, and the processor may be a CPU, an MPU, a DSP, an FPGA, or the like.
  • the embodiment of the invention further provides a computer storage medium storing computer executable instructions, which can implement a congestion management method of a switched network after the computer executable instructions are executed.
  • the storage medium may be any type of storage medium, optionally a non-transitory storage medium such as a flash memory or a read only memory, an optical disk or a USB flash drive, or the like.
  • the link that has been accumulated is retained, and the other links are closed, thereby ensuring that the closed links are evenly distributed on different first-level switching devices, thereby solving the second
  • the link of the first-level switching device that is closed is unbalanced, causing congestion of the first-level switching device, ensuring the traffic level of the entire network, and ensuring that no bandwidth is wasted, and the system is improved. performance. Therefore, the technical solution provided by the embodiment of the invention has a positive industrial effect, and at the same time has the characteristics of being simple and convenient, so that it can be widely used in industry.

Abstract

Disclosed is a congestion management method for a switched network, comprising: reading a switching state table; selecting all first-order switching devices in a rack J according to the switching state table, and obtaining K links corresponding to the devices; selecting L links from the K links, gradually accumulating bandwidths of the L links, and using two adjacent accumulation results as a first bandwidth accumulation value and a second bandwidth accumulation value, the first bandwidth accumulation value being a bandwidth accumulation value of a links, and the second bandwidth accumulation value being a bandwidth accumulation value of b links; and closing links in the K links except for the a links when it is determined that the first bandwidth accumulation value is less than a preset bandwidth, and the second bandwidth accumulation value is greater than or equal to the preset bandwidth. Also disclosed are a congestion management device and a computer storage medium.

Description

交换网络的拥塞管理方法及装置、计算机存储介质Congestion management method and device for switching network, computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201710151510.2、申请日为2017年03月14日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 14, 2017, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及交换网络的拥塞管理技术,尤其涉及一种交换网络的拥塞管理方法及装置、计算机存储介质。The present invention relates to congestion management technologies for switching networks, and in particular, to a congestion management method and apparatus for a switching network, and a computer storage medium.
背景技术Background technique
交换系统是分组交换设备的核心部件,它由交换接入部分和交换网络组成,其中,交换接入部分包括源交换接入单元(Switch Access Unit,SAU)和目的SAU,交换网是由多个交换单元(Switching Unit,SU)相互连接组成。源SAU通过高速链路与SU互联,SU之间通过高速链路互联,SU再通过高速链路与目的SAU互联。The switching system is a core component of the packet switching device, and is composed of a switching access part and a switching network. The switching access part includes a source switching access unit (SAU) and a destination SAU, and the switching network is composed of multiple Switching Units (SUs) are connected to each other. The source SAU is interconnected with the SU through a high-speed link, and the SUs are interconnected by a high-speed link, and the SU is interconnected with the destination SAU through a high-speed link.
在交换网络中,各个SU相互连接,根据其连接方式,可以分为单级组网结构和三级无阻塞(CLOS)组网结构。三级CLOS组网如图1所示,它由三级SU组成,图中有业务机框1、业务机框2和中心机框65,业务机框1上的源交换接入装置发出的信元,依次经过业务机框1上的SU达到中心机框65,经过中心机框65的SU交换到达业务机框2上的SU,经过业务机框2上的SU的交换,最终达到业务机框2上的各个目的SAU。为了区分,这里把业务机框上与源SAU相连的SU叫做第一级SU,中心机框上的SU叫做第二级SU,业务机框上与目的SAU相连的SU叫做第三级SU。In a switched network, each SU is connected to each other, and according to its connection mode, it can be divided into a single-level networking structure and a three-level non-blocking (CLOS) networking structure. The third-level CLOS network is shown in Figure 1. It consists of three-level SUs. There are service chassis 1, service chassis 2, and central chassis 65. The packets from the source switching access device on service chassis 1 are sent. The element passes through the SU on the service chassis 1 to reach the central chassis 65, and the SU through the central chassis 65 exchanges the SU to the SU on the service chassis 2, and then exchanges with the SU on the service chassis 2 to finally reach the service chassis. 2 SAU for each purpose. For the sake of distinction, the SU connected to the source SAU on the service chassis is called the first-level SU, the SU on the central chassis is called the second-level SU, and the SU connected to the destination SAU on the service chassis is called the third-level SU.
非对称交换网络是指,在交换网络相邻的两个级别之间,存在带宽不一致的情况,即在任意一个级别的节点到另一个级别所有的节点链路带宽不一致。三级CLOS非对称交换网络可以分为业务机框上的源交换接入装 置与第一级交换装置之间非对称,第一级交换装置与第二级交换装置之间非对称,第二级交换装置与第三级交换装置非对称以及业务机框上的第三级交换装置与目的交换接入装置之间非对称;这里,一个业务机框可以放置多个交换装置,每个交换装置中可以包含多个SU,因此,上述第一级SU也称之为第一级交换装置SU。如图2所示,业务机框和中心机框上的各个第一级SU和第二级SU的输入和输出带宽是一致的,但是在业务机框3上的第三级SU2#处,其输入带宽大于输出带宽,其中虚线箭头线表示带宽较低或链路被断开,在其输入流量足够的情况下,业务机框3上的第三级SU2#中会产生局部拥塞。当交换网络中一个或多个SU出现局部拥塞后,其信元交换速度会落后于其他SU,最终将导致整网流量下降,在拥塞程度严重时则有可能导致丢包,系统性能降低。An asymmetric switching network means that there is a bandwidth inconsistency between two levels adjacent to the switching network, that is, the bandwidth of all the nodes in any one level is inconsistent. The third-level CLOS asymmetric switching network can be divided into asymmetry between the source switching access device on the service chassis and the first-level switching device, and the first-level switching device and the second-level switching device are asymmetric, and the second level The switching device is asymmetric with the third-level switching device and the third-level switching device and the destination switching access device on the service chassis are asymmetric; here, one service chassis can place multiple switching devices, and each switching device A plurality of SUs may be included, and therefore, the first stage SU described above is also referred to as a first stage switching device SU. As shown in FIG. 2, the input and output bandwidths of the first-stage SU and the second-stage SU on the service chassis and the central chassis are the same, but at the third-level SU2# on the service chassis 3, The input bandwidth is greater than the output bandwidth, where the dotted arrow line indicates that the bandwidth is low or the link is disconnected, and in the case where the input traffic is sufficient, local congestion occurs in the third-level SU2# on the service chassis 3. When one or more SUs in the switching network are partially congested, the cell switching speed will lag behind other SUs, which will eventually cause the entire network traffic to drop. When the congestion is severe, packet loss may occur, and system performance may be degraded.
发明内容Summary of the invention
本发明实施例期望提供一种交换网络的拥塞管理方法及装置,能够有效的解决了交换网络拥塞或丢包问题。The embodiment of the present invention is to provide a congestion management method and device for a switching network, which can effectively solve the congestion or packet loss problem of the switching network.
本发明实施例提供了一种交换网络的拥塞管理方法,所述方法包括:读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;An embodiment of the present invention provides a congestion management method for a switching network, where the method includes: reading a switching state table, where the switching state table is an M row and an N column state table; wherein the switching state table is 1 to The row order of the M rows represents the number of the different first-level switching devices, and the data of the first to Nth columns of the switching state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the representation and Link information in the congestion management apparatus connected to the first-stage switching device, where M and N are positive integers;
根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;Selecting, according to the exchange state table, all L first-level switching devices belonging to the rack J, and acquiring K links corresponding to the L first-level switching devices; wherein, L and J are a positive integer less than M, the K being a positive integer less than the product of L and N;
从所述K条链路中选取L条链路,并将所述L条链路的带宽逐次进行 累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;Selecting L links from the K links, and accumulating the bandwidths of the L links one by one, and using the two adjacent accumulated results as the first bandwidth accumulated value and the second bandwidth accumulated value respectively; The first bandwidth accumulation value is a bandwidth accumulation value of a link, and the second bandwidth accumulation value is a bandwidth accumulation value of the b links, where the a link and the b link are both a link in the L links, wherein a and b are both positive integers less than or equal to L, and b=a+1;
确定所述第一带宽累加值小于预设带宽、且所述第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。When it is determined that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, closing a chain other than the a links in the K links road.
本发明实施例还提供了一种交换网络的拥塞管理装置,其中,所述装置包括:An embodiment of the present invention further provides a congestion management apparatus for a switching network, where the apparatus includes:
读取模块,配置为读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;a reading module configured to read the exchange status table, wherein the exchange status table is an M row and an N column state table; wherein the row order of the first to M rows of the exchange state table indicates a different first level switching device The data of the first to the Nth columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the congestion management device indicating the connection with the first-stage switching device. Link information, where M and N are positive integers;
第一选择模块,配置为根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;a first selection module, configured to select all L first-level switching devices belonging to the rack J according to the exchange state table, and acquire K links corresponding to the L first-level switching devices; , L and J are positive integers less than M, and the K is a positive integer less than the product of L and N;
所述第一选择模块,还配置为从所述K条链路中选取L条链路;The first selection module is further configured to select L links from the K links;
第一累加模块,配置为在所述第一选择模块从所述K条链路中选取L条链路之后,将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;a first accumulating module, configured to: after the first selection module selects L links from the K links, accumulating bandwidths of the L links successively, and accumulating results of two adjacent connections The first bandwidth accumulated value and the second bandwidth accumulated value are respectively included, wherein the first bandwidth accumulated value is a bandwidth accumulated value of the a links, and the second bandwidth accumulated value is a bandwidth accumulated value of the b links, The a link and the b link are all links in the L links, and the a and b are both positive integers less than or equal to L, and b=a+1;
第一关闭模块,配置为在确定所述第一带宽累加值小于预设带宽、且 第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。The first shutdown module is configured to: when it is determined that the first bandwidth accumulation value is less than a preset bandwidth, and the second bandwidth accumulation value is greater than or equal to the preset bandwidth, shutting down the K links in the K links A link outside the link.
本发明实施例还提供一种交换网络的拥塞管理装置,包括:存储器及所述存储器连接的处理器;所述存储器存储有计算机可执行指令;所述处理器配置为通过执行所述计算机可执行指令,执行前述的交换网络的拥塞管理方法。An embodiment of the present invention further provides a congestion management apparatus for a switching network, including: a memory and a processor connected to the memory; the memory stores computer executable instructions; and the processor is configured to execute the computer executable The instruction executes the congestion management method of the foregoing switching network.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令被执行后,能够实现交换网络的拥塞管理方法。The embodiment of the invention further provides a computer storage medium storing computer executable instructions, which can implement a congestion management method of a switched network after the computer executable instructions are executed.
本发明实施例提供的交换网络的拥塞管理方法及装置、计算机存储介质,读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;从所述K条链路中选取L条链路,并将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;确定所述第一带宽累加值小于预设带宽、且所述第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。可见,本发明实施例可以将关闭的链路均匀的分布在不同的第一级交换单元 上,从而解决了在第二级交换单元非对称时关闭的第一级交换单元链路不均衡而导致第一级交换单元拥塞的问题,保证了整网的流量水平,提高了系统的性能。The congestion management method and apparatus for the switching network and the computer storage medium provided by the embodiment of the present invention read the exchange state table, and the exchange state table is an M row and an N column state table; wherein the exchange state table is 1 to M The row order of the rows indicates the number of the different first-level switching devices, and the data of the first to Nth columns of the switching state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the indication Link information in the congestion management device connected to the first-stage switching device, wherein the M and N are positive integers; and all L first-level switching devices belonging to the rack J are selected according to the exchange state table, And acquiring K links corresponding to the L first-level switching devices; wherein, L and J are positive integers smaller than M, and the K is a positive integer smaller than a product of L and N; The L links are selected in the K links, and the bandwidths of the L links are successively accumulated, and the two adjacent accumulated results are respectively used as the first bandwidth accumulated value and the second bandwidth accumulated value; The first bandwidth accumulation value is a bandwidth accumulation value of a link, The second bandwidth accumulation value is a bandwidth accumulation value of the b links, and the a link and the b links are links in the L links, and the a and b are both less than or a positive integer equal to L, and b=a+1; determining that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, turning off the K chain A link other than the a link in the road. It can be seen that the embodiment of the present invention can evenly distribute the closed links on different first-level switching units, thereby solving the imbalance of the first-level switching unit links that are closed when the second-level switching units are asymmetric. The problem of congestion of the first-level switching unit ensures the traffic level of the entire network and improves the performance of the system.
附图说明DRAWINGS
图1为一种三级CLOS交换网络的结构示意图;1 is a schematic structural diagram of a three-stage CLOS switching network;
图2为一种三级CLOS非对称交换网络的结构示意图;2 is a schematic structural diagram of a three-stage CLOS asymmetric switching network;
图3为本发明实施例一提供的一种交换网络的拥塞管理方法的实现流程示意图;3 is a schematic flowchart of implementing a congestion management method for a switching network according to Embodiment 1 of the present invention;
图4为本发明实施例提供的另一种三级CLOS非对称交换网络的结构示意图;4 is a schematic structural diagram of another three-level CLOS asymmetric switching network according to an embodiment of the present invention;
图5为本发明实施例一提供的一种拥塞管理装置的组成结构示意图。FIG. 5 is a schematic structural diagram of a congestion management apparatus according to Embodiment 1 of the present invention.
具体实施方式detailed description
研究发现交换网络非对称可能产生拥塞和丢包的现象。例如,当第二级交换装置与第三级交换装置之间的非对称时,即第二级交换装置的输入端和输出端带宽不匹配时,关闭第一级交换装置的发送链路来保证第二级交换装置输入和输出带宽一致,从而解决因第二级交换装置输入和输出带宽一致而造成网络拥塞和丢包的问题。但是此时三级组网第二级交换装置做非对称,源带宽是以机框号为单位,关闭某源机框中与目的交换接入损失带宽相当的几条链路,被关闭的几条链路很可能属于同一个第一级交换装置;而一般组网结构下,第二级交换装置全可达,第一级交换装置和第二级交换装置之间也不可能全部链路关闭,关闭几条链路后的第一级交换装置仍然对目的交换接入可达,因此,源交换接入的流量会依旧均分到各个第一级交换装置上,而如果某一第一级交换装置的多条发送链路被关闭,那么在该第一级交换装置上将产生拥塞。如图2所示的非对称网络,第三 级交换装置SU2#发生非对称,在进行非对称处理时,会关闭中心机框66对应的链路,这样很可能造成第二级交换装置SU3#或SU4#的非对称。这里以第二级交换装置SU3#为例,处理第二级交换装置的非对称的结果,会关闭业务机框1和业务机框2的链路。在关闭业务机框1的链路时,是按照第二级交换装置SU3#所在的机框表上配置的链路号连续关断的,不同的产品应用时,机框表中的链路分布不是均匀分布的,对应的第一级交换装置是不同的,那么在多数的场景下,在关闭业务机框1的链路时,第一级交换装置SU1#和SU2#的链路不是被均匀关闭的,极端的情况下,只有第一级交换装置SU1#的链路被关闭。当第一级交换装置SU1#的有多条链路被关闭且未被完全关闭的情况下,业务机框1的原交换接入装置SAU1#和SAU2#是不能感知到与其连接的第一级交换装置SU1#和SU2#的链路变化情况的,他们依然会将流量均匀的发送到第一级交换装置SU1#和SU2#上,而在第一级交换装置SU1#上由于输出链路多条被关闭,就造成了第一级交换装置SU1#的非对称,进而造成整个交换网络拥塞,甚至丢包的问题。故在本发明实施例中提供了一种在第二级交换单元非对称时实现第一级交换单元关闭后链路均匀的方法,以减少关闭链路不均衡导致的网络拥塞及丢包现象。下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The study found that asymmetric switching networks may cause congestion and packet loss. For example, when the asymmetry between the second-stage switching device and the third-level switching device, that is, the input end and the output bandwidth of the second-stage switching device do not match, the transmission link of the first-stage switching device is turned off to ensure The input and output bandwidths of the second-stage switching device are the same, thereby solving the problem of network congestion and packet loss caused by the consistent input and output bandwidth of the second-stage switching device. However, at this time, the second-level switching device of the tertiary network is asymmetric. The source bandwidth is the number of the chassis number. The number of links in the source chassis that are equivalent to the bandwidth loss of the destination switching access is closed. The link is likely to belong to the same first-level switching device; in the general networking structure, the second-level switching device is fully reachable, and it is impossible for all the links between the first-level switching device and the second-level switching device to be closed. The first-stage switching device after the link is closed is still reachable to the destination switching access. Therefore, the traffic of the source switching access is still equally distributed to each first-level switching device, and if a certain first level The plurality of transmission links of the switching device are turned off, and congestion will occur on the first-stage switching device. In the asymmetric network shown in FIG. 2, the third-stage switching device SU2# is asymmetric, and when the asymmetric processing is performed, the link corresponding to the central chassis 66 is closed, which may cause the second-level switching device SU3#. Or the asymmetry of SU4#. Here, taking the second-stage switching device SU3# as an example, the asymmetric result of the second-level switching device is processed, and the link between the service chassis 1 and the service chassis 2 is closed. When the link of the service chassis 1 is closed, the link number configured on the chassis table where the second-level switching device SU3# is located is continuously turned off. When different products are applied, the link distribution in the chassis table is If the first-stage switching devices are not evenly distributed, the corresponding first-level switching devices are different. In most scenarios, when the link of the service chassis 1 is closed, the links of the first-level switching devices SU1# and SU2# are not evenly distributed. In the extreme case, only the link of the first-stage switching device SU1# is turned off. When multiple links of the first-stage switching device SU1# are closed and not completely closed, the original switching access devices SAU1# and SAU2# of the service box 1 cannot perceive the first level connected thereto. If the links of the switching devices SU1# and SU2# change, they will still send the traffic evenly to the first-stage switching devices SU1# and SU2#, and the first-stage switching device SU1# will have more output links. When the strip is closed, the asymmetry of the first-stage switching device SU1# is caused, which causes the entire switching network to be congested or even lost. Therefore, in the embodiment of the present invention, a method for achieving a uniform link after the first-stage switching unit is closed is provided when the second-stage switching unit is asymmetric, so as to reduce network congestion and packet loss caused by the unbalanced link. The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
实施例一 Embodiment 1
图3为本发明实施例一提供的一种交换网络的拥塞管理方法的实现流程示意图,如图3所示,本实施例的拥塞管理方法包括以下步骤:FIG. 3 is a schematic flowchart of a method for implementing congestion management in a switching network according to Embodiment 1 of the present invention. As shown in FIG. 3, the congestion management method in this embodiment includes the following steps:
步骤101:读取交换状态表。Step 101: Read the exchange status table.
这里,表1为交换状态表,所述交换状态表也可称之为扩展机架表,其中,所述交换状态表为M行、N列状态表,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列 的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数。Here, Table 1 is an exchange state table, which may also be referred to as an extended rack table, wherein the exchange state table is an M row, an N column state table, and the switching state table is 1 to M rows. The row order indicates the number of the different first-level switching devices, and the data of the first to N-th columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the representation and the The link information in the congestion management device connected to the first-level switching device, wherein M and N are positive integers.
如图4所示,三级CLOS非对称交换网络的结构示意图,包括四个业务机框,即业务机框1至业务机框4,两个中心机框,即中心机框65和中心机框66,且每个业务机框上有4个源交换接入装置401和4个第一级交换装置402,或4个目的交换接入装置405和4个第三级交换装置404,且每个中心机框上有4个第二级交换装置403。本发明实施例中,所述机框也可以称之为机架。一般来说,一个交换装置包含多个交换单元,为了绘图和描述方便,在图4中,一个交换单元可视为一个交换装置、一个源交换接入单元可视为一个源交换接入装置和一个目的交换接入单元可视为一个目的交换接入装置。值得注意的是,为了区分,这里把业务机框上与源交换接入单元相连的交换单元叫做第一级交换单元,中心机框上的交换单元叫做第二级交换单元,业务机框上与目的交换接入单元相连的交换单元叫做第三级交换单元。相应的,配置第一级交换单元的交换装置为第一级交换装置,其它装置也类似,此处不再赘述。As shown in Figure 4, the schematic diagram of a three-stage CLOS asymmetric switching network includes four service chassis, namely, service chassis 1 to service chassis 4, and two central chassis, namely, the central chassis 65 and the central chassis. 66, and each service chassis has 4 source switching access devices 401 and 4 first level switching devices 402, or 4 destination switching access devices 405 and 4 third level switching devices 404, and each There are four second-level switching devices 403 on the center chassis. In the embodiment of the present invention, the chassis may also be referred to as a chassis. In general, a switching device includes a plurality of switching units. For convenience of drawing and description, in FIG. 4, one switching unit can be regarded as one switching device, and one source switching access unit can be regarded as a source switching access device and A destination switching access unit can be considered as a destination switching access device. It is worth noting that, in order to distinguish, the switching unit connected to the source switching access unit on the service chassis is called the first-level switching unit, and the switching unit on the central chassis is called the second-level switching unit. The switching unit to which the destination switching access unit is connected is called a third-level switching unit. Correspondingly, the switching device that configures the first-level switching unit is the first-level switching device, and other devices are similar, and details are not described herein again.
这里,所述非对称交换网络是指:在交换网络相邻的两个级别之间,存在带宽不一致的情况,即在任意一个级别的节点到另一个级别所有的节点链路带宽不一致。Here, the asymmetric switching network refers to a situation in which bandwidths are inconsistent between two levels adjacent to the switching network, that is, the bandwidth of all the nodes in any one level is inconsistent with the other node.
这里,所述拥塞管理装置为放置于中心机框上的第二级交换装置,本发明实施例中,出现第二级交换装置,指的是所述拥塞管理装置。Here, the congestion management device is a second-level switching device placed on the central chassis. In the embodiment of the present invention, a second-level switching device is present, which refers to the congestion management device.
序号 Serial number 11 22 33 44 55 66 77 88 99 1010 1111 1212 ... 144144 145145
11 00 11 00 00 00 00 00 00 00 00 00 00 ... 00 00
22 00 00 11 00 11 00 00 00 00 00 00 00 ... 00 00
33 00 00 00 00 00 00 11 00 11 11 00 00 ... 00 00
44 00 00 00 00 00 00 00 00 00 00 11 00 ... 00 11
55 00 00 00 00 00 00 00 11 00 00 00 00 ... 00 00
66 00 00 00 00 00 11 00 00 00 00 00 00 ... 00 00
77 11 00 00 00 00 00 00 00 00 00 00 11 ... 00 11
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
144144 00 00 00 00 00 00 00 00 00 00 00 11 ... 00 11
表1Table 1
可选地,所述方法还包括:所述交换状态表的第N列数据用于标识放置所述第一级交换装置的机架标识信息,如表1所示。举例来说,首先,交换状态表中的行序号1至144表示编号为1至144的第一级交换装置号;其次,交换状态表第145列的数据标识放置所述第一级交换装置的机架标识信息,例如,第145列中的数据出现数字“1”,表示该数字“1”所在行的下一行所对应的第一级交换装置为另一个机架内的第一级交换装置,如第145列的第1至第4行中的数据为{0,0,0,1},第145列的第5至第7行中的数据为{0,0,1},说明第1至第4行对应的第一级交换装置放置在同一个机架内,而从第5行至第7行对应的第一级交换装置在另外一个机架内;最后,第1列至第144列中的数据表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,0表示所述第一级交换装置与拥塞管理装置中无链路连接,1表示所述第一级交换装置与拥塞管理装置中有链路连接,例如,第1行第1列的数据为0,说明编号为1的第一级交换装置与拥塞管理装置有链路连接,而第1行第2列的数据为1,说明编号为1的第一级交换装置与拥塞管理装置有链路连接。值得注意的是,表1中的第1行是行序号为1的那一行,第一列为列序号为1的那一列。Optionally, the method further includes: the Nth column data of the exchange state table is used to identify the rack identification information of the first level switching device, as shown in Table 1. For example, first, the row numbers 1 to 144 in the exchange state table represent the first-stage switching device numbers numbered 1 to 144; secondly, the data identifiers in the 145th column of the exchange state table are placed in the first-stage switching device. The rack identification information, for example, the data in column 145 shows the number "1", indicating that the first-stage switching device corresponding to the next row of the row of the number "1" is the first-stage switching device in the other rack. , the data in the 1st to 4th rows of the 145th column is {0, 0, 0, 1}, and the data in the 5th to 7th rows of the 145th column is {0, 0, 1}, indicating The first-stage switching devices corresponding to the 1st to 4th rows are placed in the same rack, and the first-stage switching devices corresponding to the 5th to 7th rows are in another rack; finally, the first to the first The data in column 144 represents link information in the congestion management device connected to the first-stage switching device, 0 represents no link connection in the first-level switching device and the congestion management device, and 1 represents the first The level switching device is connected to the congestion management device by a link. For example, the data in the first row and the first column is 0, indicating that the number is 1. Level switching means and congestion management means has link connections, the data row 1, column 2 is 1, a number of the first stage switching means and congestion management apparatus 1 is connected with a link. It is worth noting that the first row in Table 1 is the row with row number 1, and the first column is the column with column number 1.
总之,在交换状态表包括:第一级交换装置的编号、第一级交换装置的机架标识信息、及所述第一级交换装置连接的拥塞管理装置中的链路信息,如此在,在通过关闭级交换装置的链路解决第一解决第二级交换装置的非对称问题时,可以根据该交换状态表中的信息,可以使的关闭一个或 多个第一级交换装置的链路均衡,从而消除因关闭的链路不均衡导致的网络拥塞及丢包现象频发的问题。In summary, the exchange status table includes: a number of the first-level switching device, rack identification information of the first-stage switching device, and link information in the congestion management device connected to the first-stage switching device, so that When the first problem of the second-level switching device is solved by the link of the switching-level switching device, the link balancing of one or more first-level switching devices can be closed according to the information in the switching state table. Therefore, the problem of frequent network congestion and packet loss caused by closed link imbalance is eliminated.
可选地,所述读取所述交换状态表之前,所述方法还包括:检测所述拥塞管理装置中输入链路的带宽是否大于输出链路的带宽;当确定所述输入链路的带宽大于所述输出链路的带宽时,读取所述交换状态表。Optionally, before the reading the exchange state table, the method further includes: detecting whether a bandwidth of an input link in the congestion management device is greater than a bandwidth of an output link; and determining a bandwidth of the input link When the bandwidth of the output link is greater than, the exchange state table is read.
可选地,在每个业务机框中,交换接入单元和交换单元之间分别各有两条链路相连接,业务机框上交换单元和中心机框上的交换单元之间也分别各有两条链路相连,此时,在业务机框3上的交换单元2#和目的交换接入单元1#之间有一条链路断开,如图4所示,虚线箭头线表示链路断开,那么此时交换网络出现第三级交换单元与目的交换接入单元间非对称,在业务机框3上,第三极交换单元2#的输入带宽大于输出带宽,在此处可能产生局部拥塞,从而导致系统丢包,整网流量下降。Optionally, in each service machine frame, two links are respectively connected between the switching access unit and the switching unit, and the switching unit on the service chassis and the switching unit on the central chassis are also respectively There are two links connected. At this time, there is a link disconnected between the switching unit 2# on the service chassis 3 and the destination switching access unit 1#. As shown in FIG. 4, the dotted arrow line indicates the link. If the disconnection occurs, then the switching network has a third-level switching unit and the destination switching access unit is asymmetric. On the service box 3, the input bandwidth of the third-pole switching unit 2# is larger than the output bandwidth, which may be generated here. Local congestion, resulting in system packet loss, the entire network traffic decreased.
当第三级交换单元-目的交换接入单元间非对称时,所以其处理方式是关闭第二级交换单元(中心机框66)的输出链路,关闭第二级的输出链路后,在第二级交换单元就出现了输入带宽大于输出带宽的问题,这同样会造成第二级交换单元的拥塞,需要做第二级交换装置的非对成处理,此时,读取所述交换状态表。When the third-level switching unit-destination switching access unit is asymmetric, the processing manner is to close the output link of the second-level switching unit (the central chassis 66), and after the output link of the second-level is closed, The second-stage switching unit has a problem that the input bandwidth is larger than the output bandwidth, which also causes congestion of the second-stage switching unit, and needs to be a non-pairing process of the second-stage switching device. At this time, the switching state is read. table.
可选地,所述读取所述交换状态表之后,所述方法还包括:将所读取的针对所述链路信息的数据进行前导零检测(Leading Zero Detection,LZD)、并重排,生成链路数据集。Optionally, after the reading the exchange status table, the method further includes: performing a Leading Zero Detection (LZD) and rearranging the read data for the link information, and generating Link data set.
步骤102:根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路。Step 102: Select all L first-level switching devices belonging to the rack J according to the exchange state table, and acquire K links corresponding to the L first-level switching devices.
这里,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数。Here, the L and J are positive integers smaller than M, and the K is a positive integer smaller than the product of L and N.
可选地,所述根据所述交换状态表选取归属于机架J内的所有L个第 一级交换装置之后,所述方法还包括:从所述链路数据集中获取归属于所述L个第一级交换装置的数据;Optionally, after the selecting, according to the exchange state table, all the L first-level switching devices that belong to the rack J, the method further includes: obtaining, from the link data set, the belonging to the L Data of the first level switching device;
将所述归属于所述L个第一级交换装置的数据进行合并;Merging the data attributed to the L first-stage switching devices;
所述获取与所述L个第一级交换装置对应的K条链路,包括:根据所合并的结果获取与所述L个第一级交换装置对应的K条链路。And the acquiring the K links corresponding to the L first-level switching devices includes: acquiring K links corresponding to the L first-level switching devices according to the merged result.
这里,归属于所述L个第一级交换装置的数据指的是:由于行序号表示第一级交换装置,在交换状态表中,归属于同一个机架或机框中的L个第一级交换装置对应的数据,即交换状态表中的L行N列数据,所述L行的行序号表示所述L个第一级交换装置的编号。Here, the data attributed to the L first-level switching devices refers to: L first numbers belonging to the same rack or chassis in the exchange state table because the row number indicates the first-level switching device The data corresponding to the level switching device, that is, the L row and N column data in the exchange state table, the row number of the L row indicates the number of the L first level switching devices.
可选地,根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,把归属于机架J内的第一级交换装置对应交换状态表(即L行N列交换状态表)的信息按行进行合并,获取与所述L个第一级交换装置对应的K条链路,得到关于链路的信息。举例来说,如表1所示,将第1行至第4行中的信息和并,得到机架-链路信息(rack_link),且rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)},这里(z4,d11)表示与第一级交换装置4连接的拥塞管理装置中的第11号链路。前导零检测后,与第一级交换装置对应的链路数量LZDcnt结果合并为{1,3,2,1},即与第一级交换装置4对应的链路有1条,与第一级交换装置3对应的链路有3条,与第一级交换装置2对应的链路有2条,与第一级交换装置1对应的链路有1条。这里,z表示交换状态表的行,d表示交换状态表的列。Optionally, all L first-level switching devices belonging to the rack J are selected according to the exchange state table, and the first-level switching devices belonging to the rack J are corresponding to the exchange state table (ie, L rows and N columns). The information of the exchange state table is merged in rows, and K links corresponding to the L first-level switching devices are obtained, and information about the link is obtained. For example, as shown in Table 1, the information in the first row to the fourth row is merged to obtain rack-link information (rack_link), and rack_link={(z4, d11), (z3, d10) , (z3, d9), (z3, d7), (z2, d5), (z2, d3), (z1, d2)}, where (z4, d11) represents congestion management connected to the first-stage switching device 4. Link 11 in the device. After the leading zero detection, the number of links corresponding to the first-stage switching device LZDcnt is combined into {1, 3, 2, 1}, that is, one link corresponding to the first-stage switching device 4, and the first level There are three links corresponding to the switching device 3, two links corresponding to the first-stage switching device 2, and one link corresponding to the first-stage switching device 1. Here, z denotes a row of the exchange state table, and d denotes a column of the exchange state table.
步骤103:从所述K条链路中选取L条链路。Step 103: Select L links from the K links.
举例来说,对于链路数为7条的链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)},选取链路时,在每个第一级交换装置对应的链路中选择一条链路,得到rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)。一般来说,选择链路时,可选择链路 带宽较小的链路。For example, for a link with 7 links, rack_link={(z4, d11), (z3, d10), (z3, d9), (z3, d7), (z2, d5), (z2, D3), (z1, d2)}, when selecting a link, select a link in the link corresponding to each first-level switching device, and obtain rack_link (z1, d2), rack_link (z2, d3), rack_link ( Z3, d7) and rack_link (z4, d11). In general, when a link is selected, a link with a smaller link bandwidth can be selected.
步骤104:将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值。Step 104: Accumulate the bandwidths of the L links one by one, and use the two adjacent accumulated results as the first bandwidth accumulated value and the second bandwidth accumulated value, respectively.
这里,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1。举例来说,四条链路rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)中,将其中两条链路rack_link(z1,d2)和rack_link(z2,d3)的带宽进行相加,得到第一带宽累加结果为L1,将三条链路rack_link(z1,d2)、rack_link(z2,d3)和rack_link(z3,d7)的带宽进行相加,得到第二带宽累加结果为L2。Here, the first bandwidth accumulation value is a bandwidth accumulation value of a link, and the second bandwidth accumulation value is a bandwidth accumulation value of the b links, where the a link and the b link are both For the links in the L links, the a and b are both positive integers less than or equal to L, and b=a+1. For example, in the four links rack_link(z1,d2), rack_link(z2,d3), rack_link(z3,d7), and rack_link(z4,d11), two of the links rack_link(z1,d2) and rack_link are used. The bandwidths of (z2, d3) are added, and the first bandwidth accumulation result is L1, and the bandwidths of the three links rack_link (z1, d2), rack_link (z2, d3), and rack_link (z3, d7) are added. The second bandwidth accumulation result is obtained as L2.
步骤105:判断所述第一带宽累加值、第二带宽累加值与所述预设带宽的大小。Step 105: Determine the first bandwidth accumulated value, the second bandwidth accumulated value, and the size of the preset bandwidth.
这里,所述预设带宽的确定方法为:通过轮询某个交换单元与其它交换单元相连的所有链路状态,并将所有链路的带宽累加,当所有的有效链路轮询结束后,累加结果即为输出带宽,将输出带宽作为所述预设带宽值。值得注意的是,所述预设带宽是拥塞管理装置或其它带宽测试器件可通过上述方法确定,但不限于上述方法。Here, the method for determining the preset bandwidth is: polling all link states connected to other switching units by a switching unit, and accumulating bandwidths of all links, when all valid link polling ends, The accumulated result is the output bandwidth, and the output bandwidth is taken as the preset bandwidth value. It should be noted that the preset bandwidth is a congestion management device or other bandwidth test device can be determined by the above method, but is not limited to the above method.
步骤106:关闭所述K条链路中除所述a条链路之外的链路。Step 106: Close the links of the K links except the a links.
可选地,当判断出所述第一带宽累加值小于预设带宽、且第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。举例来说,令所述预设带宽为w,链路rack_link(z1,d2)和rack_link(z2,d3)的带宽累加值L1小于w、rack_link(z1,d2)、rack_link(z2,d3)和rack_link(z3,d7)的带宽累加值L2大于w,此时,7条链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)}中,保 留链路rack_link(z1,d2)和rack_link(z2,d3),将链路rack_link(z3,d7)、rack_link(z3,d9)、rack_link(z3,d10)和rack_link(z4,d11)关闭,从而保证该第二集交换装置的输入带宽与输出带宽保持一致,进而避免网络拥塞的发生。Optionally, when it is determined that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, turning off the a link in the K links A link other than that. For example, if the preset bandwidth is w, the bandwidth accumulation value L1 of the link rack_link (z1, d2) and rack_link (z2, d3) is less than w, rack_link (z1, d2), rack_link (z2, d3), and The bandwidth accumulation value L2 of rack_link(z3, d7) is greater than w. At this time, 7 links rack_link={(z4, d11), (z3, d10), (z3, d9), (z3, d7), (z2) , d5), (z2, d3), (z1, d2)}, keep the link rack_link(z1, d2) and rack_link(z2, d3), link link_link(z3, d7), rack_link(z3, d9) ), rack_link (z3, d10) and rack_link (z4, d11) are closed, thereby ensuring that the input bandwidth of the second set switching device is consistent with the output bandwidth, thereby avoiding network congestion.
步骤107:判断b是否等于L。Step 107: Determine whether b is equal to L.
当第一带宽累加值和第二带宽累加值均小于预设带宽时,需要判断L条链路的带宽是否累加完,即判断b是否等于L,当b等于L时,说明L条链路的带宽已经累加完;当b小于L时,说明L条链路还未完全累加完,此时,令a=a+1,b=b+1,然后需要返回执行步骤104,即所述将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值,如图3所示。When the first bandwidth accumulated value and the second bandwidth accumulated value are both smaller than the preset bandwidth, it is determined whether the bandwidth of the L links is accumulated, that is, whether b is equal to L, and when b is equal to L, the L links are The bandwidth has been accumulated; when b is less than L, it indicates that the L links have not been fully accumulated. At this time, let a=a+1, b=b+1, and then return to step 104, that is, the The bandwidths of the L links are successively accumulated, and the two adjacent accumulated results are respectively used as the first bandwidth accumulated value and the second bandwidth accumulated value, as shown in FIG. 3 .
步骤108:从所述K条链路中选取除所述L条链路之外的K-L条链路。Step 108: Select K-L links other than the L links from the K links.
可选地,当判断出b等于L时,则从所述K条链路中选取除所述L条链路之外的K-L条链路。举例来说,7条链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)}中,已经选取了rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)4条链路出来,该4条链路的带宽累加值均小于所述预设带宽,因此,该4条链路均保留,重新获取剩下的3条链路,即链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)。Optionally, when it is determined that b is equal to L, a K-L link other than the L links is selected from the K links. For example, 7 links rack_link={(z4,d11), (z3,d10), (z3,d9), (z3,d7), (z2,d5),(z2,d3),(z1, In d2)}, four links of rack_link (z1, d2), rack_link (z2, d3), rack_link (z3, d7) and rack_link (z4, d11) have been selected, and the bandwidth of the four links is accumulated. Both are smaller than the preset bandwidth. Therefore, the four links are reserved, and the remaining three links are reacquired, that is, the link rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9). ).
步骤109:判断K-L是否大于L。Step 109: Determine whether K-L is greater than L.
这里,对于每次选取,一般是在每个第一级交换装置对应的链路中选取一条链路,即由L个交换装置,一般会选取L条链路。当K-L大于L时,进入步骤110;当K-L小于L时,则K-L条链路全被选取。Here, for each selection, generally one link is selected in the link corresponding to each first-level switching device, that is, L switching devices generally select L links. When K-L is greater than L, the process proceeds to step 110; when K-L is less than L, then the K-L links are all selected.
步骤110:令K=K-L,并进行下一次从所述K条链路中选取L条链路的操作。Step 110: Let K=K-L, and perform the next operation of selecting L links from the K links.
可选地,当判断出K-L大于L时,将所述K-L作为新的K值,然后重 新返回步骤103,即所述将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值,第一带宽累加值和第二带宽累加值分别为a、b条链路的带宽累加值的步骤Optionally, when it is determined that KL is greater than L, the KL is taken as a new K value, and then returns to step 103, that is, the bandwidth of the L links is successively accumulated, and the two adjacent ones are adjacent. The accumulated result is used as the first bandwidth accumulated value and the second bandwidth accumulated value respectively, and the first bandwidth accumulated value and the second bandwidth accumulated value are respectively the bandwidth accumulated values of the a and b links, respectively.
步骤111:将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值。Step 111: Accumulate the bandwidths of the K-L links one by one, and use the two adjacent accumulated results as the third bandwidth accumulated value and the fourth bandwidth accumulated value, respectively.
可选地,当判断出K-L小于或等于L时,将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值。Optionally, when it is determined that K-L is less than or equal to L, the bandwidth of the K-L link is successively accumulated, and the two adjacent accumulated results are respectively used as the third bandwidth accumulated value and the fourth bandwidth accumulated value.
这里,所述第三带宽累加值为c条链路的带宽累加值,所述第四带宽累加值为d条链路的带宽累加值,所述c条链路和d条链路均为所述K-L条链路中的链路,所述c和d为小于或等于K-L的正整数,且d=c+1。举例来说,在剩下的3条链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)中,对该3条链路的带宽依次进行累加,得到链路rack_link(z4,d11)和rack_link(z3,d10)的第三带宽累加值L3,以及链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的第四带宽累加值L4。Here, the third bandwidth accumulation value is a bandwidth accumulation value of the c links, and the fourth bandwidth accumulation value is a bandwidth accumulation value of the d links, where the c links and the d links are both A link in a KL link, the c and d being positive integers less than or equal to KL, and d=c+1. For example, in the remaining three links rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9), the bandwidths of the three links are sequentially accumulated to obtain a link rack_link. The third bandwidth accumulated value L3 of (z4, d11) and rack_link (z3, d10), and the fourth bandwidth accumulated value L4 of the link rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9) .
步骤112:判断所述第三带宽累加值是否小于所述预设带宽、且所述第四带宽累加值是否大于或等于所述预设带宽。Step 112: Determine whether the third bandwidth accumulated value is smaller than the preset bandwidth, and whether the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth.
步骤113:关闭除所述K-L条链路中除所述c条链路之外的链路。Step 113: Close links other than the c links except the K-L link.
可选地,确定所述第三带宽累加值小于所述预设带宽、且所述第四带宽累加值大于或等于所述预设带宽时,关闭除所述K-L条链路中除所述c条链路之外的链路。举例来说,假设所述预设带宽为w,若得到链路rack_link(z4,d11)和rack_link(z3,d10)的第三带宽累加值L3小于w,以及链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的第四带宽累加值L4大于w,此时,将三条链路中rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的rack_link(z3,d9)进行关闭。Optionally, when it is determined that the third bandwidth accumulated value is smaller than the preset bandwidth, and the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth, shutting down the KL link except the c A link outside the link. For example, if the preset bandwidth is w, if the third bandwidth accumulated value L3 of the link rack_link (z4, d11) and rack_link (z3, d10) is less than w, and the link rack_link (z4, d11), The fourth bandwidth accumulated value L4 of rack_link(z3, d10) and rack_link(z3, d9) is greater than w. At this time, rack_link(z4, d11), rack_link(z3, d10), and rack_link(z3, d9) are three links. The rack_link (z3, d9) is closed.
步骤114:判断d是否等于K-L。Step 114: Determine if d is equal to K-L.
当第三带宽累加值和第四带宽累加值均小于预设带宽时,需要判断K-L条链路的带宽是否累加完,即判断d是否等于L,当d等于K-L时,说明K-L条链路的带宽已经累加完;当d小于L时,说明K-L条链路还未完全累加完,此时,令K=K-L,然后需要返回执行步骤111,即所述将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值,第一带宽累加值和第二带宽累加值分别为a、b条链路的带宽累加值的这个步骤,这里的a值,如图3所示。When the third bandwidth accumulated value and the fourth bandwidth accumulated value are both smaller than the preset bandwidth, it is necessary to determine whether the bandwidth of the KL link is accumulated, that is, whether d is equal to L, and when d is equal to KL, the KL link is The bandwidth has been accumulated; when d is less than L, it indicates that the KL link has not been completely accumulated. At this time, let K=KL, and then need to return to step 111, that is, the bandwidth of the KL link is successively performed. Performing the accumulation, the two adjacent accumulated results are respectively used as the third bandwidth accumulated value and the fourth bandwidth accumulated value, and the first bandwidth accumulated value and the second bandwidth accumulated value are the bandwidth accumulated values of the a and b links, respectively. Step, the value of a here, as shown in Figure 3.
步骤115:令J=J+1,然后进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作。Step 115: Let J=J+1, and then perform the next operation of selecting all L first-level switching devices belonging to the rack J according to the exchange state table.
确定所述d等于所述K-L、且所述第四带宽累加值小于所述预设带宽时,将J进行加一,将所计算的和值作为新的J值,然后进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作。Determining that the d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, adding J to the calculated value and taking the calculated sum value as a new J value, and then performing the next according to the The exchange status table selects the operations of all L first-level switching devices belonging to the rack J.
为实现上述方法,本发明实施例一还提供了一种拥塞管理装置,如图5所示,所述拥塞管理装置包括:读取模块501、第一选择模块502、第一累加模块503和第一关闭模块504;其中,In order to implement the foregoing method, the first embodiment of the present invention further provides a congestion management apparatus. As shown in FIG. 5, the congestion management apparatus includes: a reading module 501, a first selection module 502, a first accumulation module 503, and a a shutdown module 504; wherein
读取模块501,配置为读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;The reading module 501 is configured to read the exchange status table, where the exchange status table is an M row and an N column state table; wherein the row order of the first to M rows of the exchange state table indicates different first level switching devices The data of the first to the Nth columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the congestion management device indicating the connection with the first-stage switching device. Link information, where M and N are positive integers;
第一选择模块502,配置为根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;The first selection module 502 is configured to select all L first-level switching devices belonging to the rack J according to the exchange state table, and acquire K links corresponding to the L first-level switching devices; Wherein L and J are positive integers smaller than M, and the K is a positive integer smaller than a product of L and N;
第一选择模块502,还配置为从所述K条链路中选取L条链路;The first selection module 502 is further configured to select L links from the K links;
第一累加模块503,配置为在第一选择模块502从所述K条链路中选取L条链路之后,将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;The first accumulation module 503 is configured to, after the first selection module 502 selects L links from the K links, accumulate the bandwidths of the L links one by one, and add the two adjacent accumulation results. The first bandwidth accumulated value and the second bandwidth accumulated value are respectively included, wherein the first bandwidth accumulated value is a bandwidth accumulated value of the a links, and the second bandwidth accumulated value is a bandwidth accumulated value of the b links, The a link and the b link are all links in the L links, and the a and b are both positive integers less than or equal to L, and b=a+1;
第一关闭模块504,配置为在确定所述第一带宽累加值小于预设带宽、且第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。The first closing module 504 is configured to: when it is determined that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, shutting down the K links except the a A link outside the link.
可选地,所述装置还包括:第二选择模块505,配置为在确定所述b等于所述L、且所述第二带宽累加值小于所述预设带宽时,从所述K条链路中选取除所述L条链路之外的K-L条链路;Optionally, the device further includes: a second selecting module 505, configured to: when the b is equal to the L, and the second bandwidth accumulated value is less than the preset bandwidth, from the K chain Selecting a KL link other than the L links in the path;
判断模块506,配置为判断所述K-L是否大于所述L;The determining module 506 is configured to determine whether the K-L is greater than the L;
第二累加模块507,配置为在判断模块506判断出所述K-L小于或等于所述L时,将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值;其中,所述第三带宽累加值为c条链路的带宽累加值,所述第四带宽累加值为d条链路的带宽累加值,所述c条链路和d条链路均为所述K-L条链路中的链路,所述c和d为小于或等于K-L的正整数,且d=c+1;The second accumulating module 507 is configured to accumulate the bandwidth of the KL link one by one when the determining module 506 determines that the KL is less than or equal to the L, and respectively use the two adjacent accumulated results as the third a bandwidth accumulated value and a fourth bandwidth accumulated value; wherein the third bandwidth accumulated value is a bandwidth accumulated value of the c links, and the fourth bandwidth accumulated value is a bandwidth accumulated value of the d links, the c pieces The link and the d link are links in the KL link, and the c and d are positive integers less than or equal to KL, and d=c+1;
第二关闭模块508,配置为在确定所述第三带宽累加值小于所述预设带宽、且所述第四带宽累加值大于或等于所述预设带宽时,关闭除所述K-L条链路中除所述c条链路之外的链路;The second closing module 508 is configured to: when it is determined that the third bandwidth accumulated value is less than the preset bandwidth, and the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth, shutting down the KL link a link other than the c links;
第一处理模块509,用于在确定所述d等于所述K-L、且所述第四带宽累加值小于所述预设带宽时,对所述J加一,将所计算的和值作为新的J 值,并进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作;The first processing module 509 is configured to: when the d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, add one to the J, and use the calculated sum value as a new one. J value, and the next operation of selecting all L first-level switching devices belonging to the rack J according to the exchange state table;
第二处理模块510,配置为在所述判断模块判断所述K-L大于所述L时,将所述K-L作为新的K值,并进行下一次从所述K条链路中选取L条链路的操作。The second processing module 510 is configured to: when the determining module determines that the KL is greater than the L, use the KL as a new K value, and perform the next time selecting L links from the K links. Operation.
可选地,所述交换状态表的第N列数据用于标识放置所述第一级交换装置的机架标识信息。Optionally, the Nth column data of the exchange state table is used to identify the rack identification information of the first level switching device.
可选地,所述装置还包括:检测模块511,配置为检测所述拥塞管理装置中输入链路的带宽是否大于输出链路的带宽;Optionally, the device further includes: a detecting module 511, configured to detect whether a bandwidth of the input link in the congestion management device is greater than a bandwidth of the output link;
读取模块501,还用于在确定所述输入链路的带宽大于所述输出链路的带宽时,读取所述交换状态表。The reading module 501 is further configured to read the exchange state table when determining that the bandwidth of the input link is greater than the bandwidth of the output link.
可选地,所述装置还包括:第三处理模块512,配置为在所述读取模块读取所述交换状态表之后,将所读取的针对所述链路信息的数据进行前导零检测LZD、并重排,生成链路数据集。Optionally, the device further includes: a third processing module 512, configured to perform pre-zero detection on the read data for the link information after the reading module reads the exchange state table LZD, and rearrange, to generate a link data set.
可选地,所述装置还包括:第三选择模块513,配置为在第一选择模块502根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置之后,从所述链路数据集中获取归属于所述L个第一级交换装置的数据;Optionally, the device further includes: a third selecting module 513, configured to: after the first selecting module 502 selects all the L first-level switching devices belonging to the rack J according to the switching state table, Obtaining data belonging to the L first-level switching devices in the link data set;
合并模块514,配置为将所述归属于所述L个第一级交换装置的数据进行合并;The merging module 514 is configured to merge the data attributed to the L first-level switching devices;
第一选择模块502,具体用于根据所合并的结果获取与所述L个第一级交换装置对应的K条链路。The first selection module 502 is specifically configured to acquire K links corresponding to the L first-level switching devices according to the merged result.
由上述结构组成的拥塞管理装置,可以执行以下方法步骤:The congestion management device composed of the above structure can perform the following method steps:
(1)读取模块501读取交换状态表。(1) The reading module 501 reads the exchange status table.
这里,表1为交换状态表,所述交换状态表也可称之为扩展机架表,其中,所述交换状态表为M行、N列状态表,所述交换状态表第1至M行 的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数。Here, Table 1 is an exchange state table, which may also be referred to as an extended rack table, wherein the exchange state table is an M row, an N column state table, and the switching state table is 1 to M rows. The row order indicates the number of the different first-level switching devices, and the data of the first to N-th columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the representation and the The link information in the congestion management device connected to the first-level switching device, wherein M and N are positive integers.
如图4所示,三级CLOS非对称交换网络的结构示意图,包括四个业务机框,即业务机框1至业务机框4,两个中心机框,即中心机框65和中心机框66,且每个业务机框上有4个源交换接入装置401和4个第一级交换装置402,或4个目的交换接入装置405和4个第三级交换装置404,且每个中心机框上有4个第二级交换装置403。本发明实施例中,所述机框也可以称之为机架。一般来说,一个交换装置包含多个交换单元,为了绘图和描述方便,在图4中,一个交换单元可视为一个交换装置、一个源交换接入单元可视为一个源交换接入装置和一个目的交换接入单元可视为一个目的交换接入装置。值得注意的是,为了区分,这里把业务机框上与源交换接入单元相连的交换单元叫做第一级交换单元,中心机框上的交换单元叫做第二级交换单元,业务机框上与目的交换接入单元相连的交换单元叫做第三级交换单元。相应的,配置第一级交换单元的交换装置为第一级交换装置,其它装置也类似,此处不再赘述。As shown in Figure 4, the schematic diagram of a three-stage CLOS asymmetric switching network includes four service chassis, namely, service chassis 1 to service chassis 4, and two central chassis, namely, the central chassis 65 and the central chassis. 66, and each service chassis has 4 source switching access devices 401 and 4 first level switching devices 402, or 4 destination switching access devices 405 and 4 third level switching devices 404, and each There are four second-level switching devices 403 on the center chassis. In the embodiment of the present invention, the chassis may also be referred to as a chassis. In general, a switching device includes a plurality of switching units. For convenience of drawing and description, in FIG. 4, one switching unit can be regarded as one switching device, and one source switching access unit can be regarded as a source switching access device and A destination switching access unit can be considered as a destination switching access device. It is worth noting that, in order to distinguish, the switching unit connected to the source switching access unit on the service chassis is called the first-level switching unit, and the switching unit on the central chassis is called the second-level switching unit. The switching unit to which the destination switching access unit is connected is called a third-level switching unit. Correspondingly, the switching device that configures the first-level switching unit is the first-level switching device, and other devices are similar, and details are not described herein again.
这里,所述非对称交换网络是指:在交换网络相邻的两个级别之间,存在带宽不一致的情况,即在任意一个级别的节点到另一个级别所有的节点链路带宽不一致。Here, the asymmetric switching network refers to a situation in which bandwidths are inconsistent between two levels adjacent to the switching network, that is, the bandwidth of all the nodes in any one level is inconsistent with the other node.
这里,所述拥塞管理装置为放置于中心机框上的第二级交换装置,本发明实施例中,出现第二级交换装置,指的是所述拥塞管理装置。Here, the congestion management device is a second-level switching device placed on the central chassis. In the embodiment of the present invention, a second-level switching device is present, which refers to the congestion management device.
序号 Serial number 11 22 33 44 55 66 77 88 99 1010 1111 1212 ... 144144 145145
11 00 11 00 00 00 00 00 00 00 00 00 00 ... 00 00
22 00 00 11 00 11 00 00 00 00 00 00 00 ... 00 00
33 00 00 00 00 00 00 11 00 11 11 00 00 ... 00 00
44 00 00 00 00 00 00 00 00 00 00 11 00 ... 00 11
55 00 00 00 00 00 00 00 11 00 00 00 00 ... 00 00
66 00 00 00 00 00 11 00 00 00 00 00 00 ... 00 00
77 11 00 00 00 00 00 00 00 00 00 00 11 ... 00 11
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
144144 00 00 00 00 00 00 00 00 00 00 00 11 ... 00 11
表1Table 1
可选地,所述方法还包括:所述交换状态表的第N列数据用于标识放置所述第一级交换装置的机架标识信息,如表1所示。举例来说,首先,交换状态表中的行序号1至144表示编号为1至144的第一级交换装置号;其次,交换状态表第145列的数据标识放置所述第一级交换装置的机架标识信息,例如,第145列中的数据出现数字“1”,表示该数字“1”所在行的下一行所对应的第一级交换装置为另一个机架内的第一级交换装置,如第145列的第1至第4行中的数据为{0,0,0,1},第145列的第5至第7行中的数据为{0,0,1},说明第1至第4行对应的第一级交换装置放置在同一个机架内,而从第5行至第7行对应的第一级交换装置在另外一个机架内;最后,第1列至第144列中的数据表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,0表示所述第一级交换装置与拥塞管理装置中无链路连接,1表示所述第一级交换装置与拥塞管理装置中有链路连接,例如,第1行第1列的数据为0,说明编号为1的第一级交换装置与拥塞管理装置有链路连接,而第1行第2列的数据为1,说明编号为1的第一级交换装置与拥塞管理装置有链路连接。值得注意的是,表1中的第1行是行序号为1的那一行,第一列为列序号为1的那一列。Optionally, the method further includes: the Nth column data of the exchange state table is used to identify the rack identification information of the first level switching device, as shown in Table 1. For example, first, the row numbers 1 to 144 in the exchange state table represent the first-stage switching device numbers numbered 1 to 144; secondly, the data identifiers in the 145th column of the exchange state table are placed in the first-stage switching device. The rack identification information, for example, the data in column 145 shows the number "1", indicating that the first-stage switching device corresponding to the next row of the row of the number "1" is the first-stage switching device in the other rack. , the data in the 1st to 4th rows of the 145th column is {0, 0, 0, 1}, and the data in the 5th to 7th rows of the 145th column is {0, 0, 1}, indicating The first-stage switching devices corresponding to the 1st to 4th rows are placed in the same rack, and the first-stage switching devices corresponding to the 5th to 7th rows are in another rack; finally, the first to the first The data in column 144 represents link information in the congestion management device connected to the first-stage switching device, 0 represents no link connection in the first-level switching device and the congestion management device, and 1 represents the first The level switching device is connected to the congestion management device by a link. For example, the data in the first row and the first column is 0, indicating that the number is 1. Level switching means and congestion management means has link connections, the data row 1, column 2 is 1, a number of the first stage switching means and congestion management apparatus 1 is connected with a link. It is worth noting that the first row in Table 1 is the row with row number 1, and the first column is the column with column number 1.
可选地,读取模块501读取所述交换状态表之前,所述方法还包括:检测模块511检测所述拥塞管理装置中输入链路的带宽是否大于输出链路的带宽;当确定所述输入链路的带宽大于所述输出链路的带宽时,读取模块501读取所述交换状态表。Optionally, before the reading module 501 reads the exchange state table, the method further includes: detecting, by the detecting module 511, whether a bandwidth of the input link in the congestion management device is greater than a bandwidth of the output link; When the bandwidth of the input link is greater than the bandwidth of the output link, the reading module 501 reads the exchange status table.
可选地,在每个业务机框中,交换接入单元和交换单元之间分别各有两条链路相连接,业务机框上交换单元和中心机框上的交换单元之间也分别各有两条链路相连,此时,在业务机框3上的交换单元2#和目的交换接入单元1#之间有一条链路断开,如图4所示,虚线箭头线表示链路断开,那么此时交换网络出现第三级交换单元-目的交换接入单元间非对称,在业务机框3上,第三极交换单元2#的输入带宽大于输出带宽,在此处可能产生局部拥塞,从而导致系统丢包,整网流量下降。Optionally, in each service machine frame, two links are respectively connected between the switching access unit and the switching unit, and the switching unit on the service chassis and the switching unit on the central chassis are also respectively There are two links connected. At this time, there is a link disconnected between the switching unit 2# on the service chassis 3 and the destination switching access unit 1#. As shown in FIG. 4, the dotted arrow line indicates the link. Disconnected, then the third-level switching unit-destination switching access unit is asymmetric in the switching network. On the service box 3, the input bandwidth of the third-pole switching unit 2# is larger than the output bandwidth, which may be generated here. Local congestion, resulting in system packet loss, the entire network traffic decreased.
当第三级交换单元-目的交换接入单元间非对称时,所以其处理方式是关闭第二级交换单元(中心机框66)的输出链路,关闭第二级的输出链路后,在第二级交换单元就出现了输入带宽大于输出带宽的问题,这同样会造成第二级交换单元的拥塞,需要做第二级交换装置的非对成处理,此时,读取模块501读取所述交换状态表。When the third-level switching unit-destination switching access unit is asymmetric, the processing manner is to close the output link of the second-level switching unit (the central chassis 66), and after the output link of the second-level is closed, The second-stage switching unit has a problem that the input bandwidth is larger than the output bandwidth, which also causes congestion of the second-level switching unit, and needs to be processed by the second-stage switching device. At this time, the reading module 501 reads The exchange status table.
可选地,读取模块501读取所述交换状态表之后,所述方法还包括:第三处理模块512将所读取的针对所述链路信息的数据进行LZD、并重排,生成链路数据集。Optionally, after the reading module 501 reads the exchange status table, the method further includes: the third processing module 512 performs LZD and rearranges the read data for the link information to generate a link. data set.
(2)第一选择模块502根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路。(2) The first selection module 502 selects all the L first-level switching devices belonging to the rack J according to the exchange state table, and acquires K links corresponding to the L first-level switching devices.
这里,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数。Here, the L and J are positive integers smaller than M, and the K is a positive integer smaller than the product of L and N.
可选地,第一选择模块502根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置之后,所述方法还包括:第三选择模块513从所述链路数据集中获取归属于所述L个第一级交换装置的数据;Optionally, after the first selection module 502 selects all the L first-level switching devices that belong to the chassis J according to the exchange state table, the method further includes: the third selection module 513 from the link data. Collecting data belonging to the L first-level switching devices in a centralized manner;
合并模块514将所述归属于所述L个第一级交换装置的数据进行合并;The merging module 514 merges the data attributed to the L first-level switching devices;
第一选择模块502获取与所述L个第一级交换装置对应的K条链路包 括:第一选择模块502根据所合并的结果获取与所述L个第一级交换装置对应的K条链路。The first selection module 502 acquires the K links corresponding to the L first-level switching devices, and the first selection module 502 acquires the K-chains corresponding to the L first-level switching devices according to the merged result. road.
这里,归属于所述L个第一级交换装置的数据指的是:由于行序号表示第一级交换装置,在交换状态表中,归属于同一个机架或机框中的L个第一级交换装置对应的数据,即交换状态表中的L行N列数据,所述L行的行序号表示所述L个第一级交换装置的编号。Here, the data attributed to the L first-level switching devices refers to: L first numbers belonging to the same rack or chassis in the exchange state table because the row number indicates the first-level switching device The data corresponding to the level switching device, that is, the L row and N column data in the exchange state table, the row number of the L row indicates the number of the L first level switching devices.
可选地,第三选择模块513根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,合并模块514把归属于机架J内的第一级交换装置对应交换状态表(即L行N列交换状态表)的信息按行进行合并,第一选择模块502获取与所述L个第一级交换装置对应的K条链路,得到关于链路的信息。举例来说,如表1所示,将第1行至第4行中的信息和并,得到rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)},这里(z4,d11)表示与第一级交换装置4连接的拥塞管理装置中的第11号链路。进行前导零检测后,与第一级交换装置对应的链路数量LZDcnt结果合并为{1,3,2,1},即与第一级交换装置4对应的链路有1条,与第一级交换装置3对应的链路有3条,与第一级交换装置2对应的链路有2条,与第一级交换装置1对应的链路有1条。这里,z表示交换状态表的行,d表示交换状态表的列。Optionally, the third selecting module 513 selects all L first-level switching devices belonging to the rack J according to the switching state table, and the combining module 514 exchanges the first-level switching devices belonging to the rack J. The information of the state table (ie, the L row and the N column exchange state table) is merged by the row, and the first selection module 502 acquires K links corresponding to the L first-level switching devices to obtain information about the link. For example, as shown in Table 1, the information in the first row to the fourth row is summed to obtain rack_link={(z4, d11), (z3, d10), (z3, d9), (z3, d7). (z2, d5), (z2, d3), (z1, d2)}, where (z4, d11) represents the 11th link in the congestion management apparatus connected to the first-stage switching device 4. After performing the leading zero detection, the number of links corresponding to the first-stage switching device LZDcnt is combined into {1, 3, 2, 1}, that is, one link corresponding to the first-stage switching device 4, and the first The level switching device 3 has three links, two links corresponding to the first-stage switching device 2, and one link corresponding to the first-stage switching device 1. Here, z denotes a row of the exchange state table, and d denotes a column of the exchange state table.
(3)第一选择模块502从所述K条链路中选取L条链路。(3) The first selection module 502 selects L links from the K links.
举例来说,对于链路数为7条的链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)},第一选择模块502选取链路时,在每个第一级交换装置对应的链路中选择一条链路,得到rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)。一般来说,第一选择模块502选择链路时,优选链路带宽较小的链路。For example, for a link with 7 links, rack_link={(z4, d11), (z3, d10), (z3, d9), (z3, d7), (z2, d5), (z2, D3), (z1, d2)}, when the first selection module 502 selects a link, selects one link in the link corresponding to each first-level switching device, and obtains rack_link (z1, d2) and rack_link (z2, D3), rack_link (z3, d7) and rack_link (z4, d11). In general, when the first selection module 502 selects a link, a link with a smaller link bandwidth is preferred.
(4)第一累加模块503将所述L条链路的带宽逐次进行累加,将两次 相邻的累加结果分别作为第一带宽累加值和第二带宽累加值。(4) The first accumulation module 503 accumulates the bandwidths of the L links one by one, and uses the two adjacent accumulation results as the first bandwidth accumulated value and the second bandwidth accumulated value, respectively.
这里,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1。举例来说,四条链路rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)中,第一累加模块503将其中两条链路rack_link(z1,d2)和链路rack_link(z2,d3)的带宽进行相加,得到第一带宽累加结果为L1,将三条链路rack_link(z1,d2)、链路rack_link(z2,d3)和链路rack_link(z3,d7)的带宽进行相加,得到第二带宽累加结果为L2。Here, the first bandwidth accumulation value is a bandwidth accumulation value of a link, and the second bandwidth accumulation value is a bandwidth accumulation value of the b links, where the a link and the b link are both For the links in the L links, the a and b are both positive integers less than or equal to L, and b=a+1. For example, in the four links rack_link (z1, d2), rack_link (z2, d3), rack_link (z3, d7), and rack_link (z4, d11), the first accumulation module 503 will have two links rack_link (z1). , d2) and the link rack_link (z2, d3) bandwidth are added, the first bandwidth accumulation result is L1, three links rack_link (z1, d2), link rack_link (z2, d3) and link rack_link The bandwidths of (z3, d7) are added, and the second bandwidth accumulation result is L2.
(5)判断模块506判断所述第一带宽累加值、第二带宽累加值与所述预设带宽的大小。(5) The determining module 506 determines the first bandwidth accumulated value, the second bandwidth accumulated value, and the size of the preset bandwidth.
这里,所述预设带宽的确定方法为:通过轮询某个交换单元与其它交换单元相连的所有链路状态,并将所有链路的带宽累加,当所有的有效链路轮询结束后,累加结果即为输出带宽,将输出带宽作为所述预设带宽值。值得注意的是,所述预设带宽是拥塞管理装置或其它带宽测试器件通过上述方法确定的。Here, the method for determining the preset bandwidth is: polling all link states connected to other switching units by a switching unit, and accumulating bandwidths of all links, when all valid link polling ends, The accumulated result is the output bandwidth, and the output bandwidth is taken as the preset bandwidth value. It should be noted that the preset bandwidth is determined by the above method by a congestion management device or other bandwidth test device.
(6)第一关闭模块504关闭所述K条链路中除所述a条链路之外的链路。(6) The first shutdown module 504 closes links other than the a links among the K links.
可选地,当判断模块506判断出所述第一带宽累加值小于预设带宽、且第二带宽累加值大于或等于所述预设带宽时,第一关闭模块504关闭所述K条链路中除所述a条链路之外的链路。举例来说,令所述预设带宽为w,链路rack_link(z1,d2)和rack_link(z2,d3)的带宽累加值L1小于w、且链路rack_link(z1,d2)、rack_link(z2,d3)和rack_link(z3,d7)的带宽累加值L2大于w,此时,7条链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)}中,保留链路rack_link(z1,d2)和rack_link(z2,d3),将链路 rack_link(z3,d7)、rack_link(z3,d9)、rack_link(z3,d10)和rack_link(z4,d11)关闭,从而保证该第二集交换装置的输入带宽与输出带宽保持一致,进而避免网络拥塞的发生。Optionally, when the determining module 506 determines that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, the first closing module 504 closes the K links. A link other than the a link. For example, if the preset bandwidth is w, the bandwidth accumulation value L1 of the link rack_link (z1, d2) and rack_link (z2, d3) is less than w, and the link rack_link (z1, d2), rack_link (z2, D3) and rack_link (z3, d7) bandwidth accumulation value L2 is greater than w, at this time, 7 links rack_link = {(z4, d11), (z3, d10), (z3, d9), (z3, d7) , (z2, d5), (z2, d3), (z1, d2)}, retain the link rack_link (z1, d2) and rack_link (z2, d3), the link rack_link (z3, d7), rack_link ( Z3, d9), rack_link (z3, d10) and rack_link (z4, d11) are closed, thereby ensuring that the input bandwidth of the second set switching device is consistent with the output bandwidth, thereby avoiding network congestion.
(7)判断模块506判断b是否等于L。(7) The decision module 506 determines whether b is equal to L.
当第一带宽累加值和第二带宽累加值均小于预设带宽时,需要判断L条链路的带宽是否累加完,即判断b是否等于L,当b等于L时,说明L条链路的带宽已经累加完;当b小于L时,说明L条链路还未完全累加完,此时,令a=a+1,b=b+1,然后需要返回执行步骤(4),即所述将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值,如图3所示。When the first bandwidth accumulated value and the second bandwidth accumulated value are both smaller than the preset bandwidth, it is determined whether the bandwidth of the L links is accumulated, that is, whether b is equal to L, and when b is equal to L, the L links are The bandwidth has been accumulated; when b is less than L, it indicates that the L links have not been fully accumulated. At this time, let a=a+1, b=b+1, and then return to the execution step (4), that is, the The bandwidths of the L links are successively accumulated, and the two adjacent accumulated results are respectively used as the first bandwidth accumulated value and the second bandwidth accumulated value, as shown in FIG. 3 .
(8)第二选择模块505从所述K条链路中选取除所述L条链路之外的K-L条链路。(8) The second selection module 505 selects K-L links other than the L links from the K links.
可选地,当判断模块506判断出b等于L时,第二选择模块505从所述K条链路中选取除所述L条链路之外的K-L条链路。举例来说,7条链路rack_link={(z4,d11),(z3,d10),(z3,d9),(z3,d7),(z2,d5),(z2,d3),(z1,d2)}中,已经选取了rack_link(z1,d2)、rack_link(z2,d3)、rack_link(z3,d7)和rack_link(z4,d11)4条链路出来,该4条链路的带宽累加值均小于所述预设带宽,因此,该4条链路均保留,重新获取剩下的3条链路,即链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)。Optionally, when the determining module 506 determines that b is equal to L, the second selecting module 505 selects K-L links other than the L links from the K links. For example, 7 links rack_link={(z4,d11), (z3,d10), (z3,d9), (z3,d7), (z2,d5),(z2,d3),(z1, In d2)}, four links of rack_link (z1, d2), rack_link (z2, d3), rack_link (z3, d7) and rack_link (z4, d11) have been selected, and the bandwidth of the four links is accumulated. Both are smaller than the preset bandwidth. Therefore, the four links are reserved, and the remaining three links are reacquired, that is, the link rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9). ).
(9)判断模块506判断K-L是否大于L。(9) The judgment module 506 determines whether K-L is greater than L.
这里,对于每次选取,一般是在每个第一级交换装置对应的链路中选取一条链路,即由L个交换装置,一般会选取L条链路。当K-L大于L时,进入步骤(10);当K-L小于L时,则K-L条链路全被选取。Here, for each selection, generally one link is selected in the link corresponding to each first-level switching device, that is, L switching devices generally select L links. When K-L is greater than L, the process proceeds to step (10); when K-L is less than L, then the K-L links are all selected.
(10)第二处理模块510令K=K-L,并进行下一次从所述K条链路中选取L条链路的操作。(10) The second processing module 510 makes K = K-L and performs the next operation of selecting L links from the K links.
可选地,当判断模块506判断出K-L大于L时,第二处理模块510将所述K-L作为新的K值,然后重新返回步骤(3),即所述将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值,第一带宽累加值和第二带宽累加值分别为a、b条链路的带宽累加值的步骤Optionally, when the determining module 506 determines that KL is greater than L, the second processing module 510 takes the KL as a new K value, and then returns to step (3), that is, the bandwidth of the L links. The accumulating is performed successively, and the two adjacent accumulated results are respectively used as the first bandwidth accumulated value and the second bandwidth accumulated value, and the first bandwidth accumulated value and the second bandwidth accumulated value are respectively the bandwidth accumulated values of the a and b links respectively. step
(11)第二累加模块507将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值。(11) The second accumulation module 507 accumulates the bandwidths of the K-L links one by one, and uses the two adjacent accumulation results as the third bandwidth accumulated value and the fourth bandwidth accumulated value, respectively.
可选地,当判断模块506判断出K-L小于或等于L时,第二累加模块507将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值。Optionally, when the determining module 506 determines that the KL is less than or equal to L, the second accumulating module 507 sequentially accumulates the bandwidth of the KL link, and uses the two adjacent accumulated results as the third bandwidth accumulated value. And the fourth bandwidth accumulated value.
这里,所述第三带宽累加值为c条链路的带宽累加值,所述第四带宽累加值为d条链路的带宽累加值,所述c条链路和d条链路均为所述K-L条链路中的链路,所述c和d为小于或等于K-L的正整数,且d=c+1。举例来说,在剩下的3条链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)中,对该3条链路的带宽依次进行累加,得到链路rack_link(z4,d11)和rack_link(z3,d10)的第三带宽累加值L3,以及链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的第四带宽累加值L4。Here, the third bandwidth accumulation value is a bandwidth accumulation value of the c links, and the fourth bandwidth accumulation value is a bandwidth accumulation value of the d links, where the c links and the d links are both A link in a KL link, the c and d being positive integers less than or equal to KL, and d=c+1. For example, in the remaining three links rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9), the bandwidths of the three links are sequentially accumulated to obtain a link rack_link. The third bandwidth accumulated value L3 of (z4, d11) and rack_link (z3, d10), and the fourth bandwidth accumulated value L4 of the link rack_link (z4, d11), rack_link (z3, d10), and rack_link (z3, d9) .
(12)判断模块506判断所述第三带宽累加值是否小于所述预设带宽、且所述第四带宽累加值是否大于或等于所述预设带宽。(12) The determining module 506 determines whether the third bandwidth accumulated value is smaller than the preset bandwidth, and whether the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth.
(13)第二关闭模块508关闭除所述K-L条链路中除所述c条链路之外的链路。(13) The second shutdown module 508 turns off links other than the c links in the K-L link.
可选地,确定所述第三带宽累加值小于所述预设带宽、且所述第四带宽累加值大于或等于所述预设带宽时,第二关闭模块508关闭除所述K-L条链路中除所述c条链路之外的链路。举例来说,假设所述预设带宽为w,若得到链路rack_link(z4,d11)和rack_link(z3,d10)的第三带宽累加值L3小于 w,以及链路rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的第四带宽累加值L4大于w,此时,第二关闭模块508将三条链路中rack_link(z4,d11)、rack_link(z3,d10)和rack_link(z3,d9)的rack_link(z3,d9)进行关闭。Optionally, when it is determined that the third bandwidth accumulated value is smaller than the preset bandwidth, and the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth, the second closing module 508 turns off the KL link. A link other than the c links. For example, if the preset bandwidth is w, if the third bandwidth accumulated value L3 of the link rack_link (z4, d11) and rack_link (z3, d10) is less than w, and the link rack_link (z4, d11), The fourth bandwidth accumulated value L4 of rack_link(z3, d10) and rack_link(z3, d9) is greater than w. At this time, the second closing module 508 will rack_link (z4, d11), rack_link (z3, d10) and the three links. The rack_link(z3, d9) of rack_link(z3, d9) is closed.
(14)判断模块506判断d是否等于K-L。(14) The decision module 506 determines if d is equal to K-L.
当第三带宽累加值和第四带宽累加值均小于预设带宽时,需要判断K-L条链路的带宽是否累加完,即判断d是否等于L,当d等于K-L时,说明K-L条链路的带宽已经累加完;当d小于L时,说明K-L条链路还未完全累加完,此时,令K=K-L,然后需要返回执行步骤(11),即所述将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值,第一带宽累加值和第二带宽累加值分别为a、b条链路的带宽累加值的这个步骤,这里的a值,如图3所示。When the third bandwidth accumulated value and the fourth bandwidth accumulated value are both smaller than the preset bandwidth, it is necessary to determine whether the bandwidth of the KL link is accumulated, that is, whether d is equal to L, and when d is equal to KL, the KL link is The bandwidth has been accumulated; when d is less than L, it indicates that the KL link has not been fully accumulated. At this time, let K=KL, and then need to return to the execution step (11), that is, the KL link is The bandwidth is successively accumulated, and the two adjacent accumulated results are respectively used as the third bandwidth accumulated value and the fourth bandwidth accumulated value, and the first bandwidth accumulated value and the second bandwidth accumulated value are the bandwidth accumulated values of the a and b links, respectively. This step, the value of a here, is shown in Figure 3.
(15)第一处理模块509令J=J+1,然后进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作。(15) The first processing module 509 makes J=J+1, and then performs the next operation of selecting all of the L first-stage switching devices belonging to the rack J according to the exchange state table.
确定所述d等于所述K-L、且所述第四带宽累加值小于所述预设带宽时,第一处理模块509将J进行加一,将所计算的和值作为新的J值,然后进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作。When it is determined that the d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, the first processing module 509 increments J, takes the calculated sum value as a new J value, and then performs The operation of all L first-stage switching devices belonging to the rack J is selected next according to the exchange state table.
通过本发明实施例的方案,当某个第二级交换装置发生非对称时,可以通过查找交换状态表,确定该第二级交换装置与第一级交换装置之间的链路连接关系,然后选取相应链路的带宽进行累加,带宽累加值刚好等于或大于门限带宽值时,保留当前已经进行累加的链路,其它链路关闭。从而保证了将关闭的链路均匀的分布在不同的第一级交换装置上,从而解决了在第二级交换装置非对称时关闭的第一级交换装置链路不均衡而导致第一级交换装置拥塞的问题,保证了整网的流量水平,同时也保证了不造成 带宽的浪费,提高了系统的性能。With the solution of the embodiment of the present invention, when a certain second-level switching device is asymmetric, the link connection relationship between the second-level switching device and the first-level switching device can be determined by searching the switching state table, and then The bandwidth of the corresponding link is selected and accumulated. When the bandwidth accumulated value is just equal to or greater than the threshold bandwidth value, the link that has been accumulated currently is retained, and other links are closed. Therefore, it is ensured that the closed links are evenly distributed on different first-level switching devices, thereby solving the imbalance of the first-level switching device links that are closed when the second-level switching devices are asymmetric, resulting in the first-level switching. The congestion of the device ensures the traffic level of the entire network, and also ensures that no bandwidth is wasted and the performance of the system is improved.
在实际应用中,所述拥塞管理装置的读取模块501、第一选择模块502、第一累加模块503、第一关闭模块504、第二选择模块505、判断模块506、第二累加模块507、第二关闭模块508、第一处理模块509、第二处理模块510、检测模块511、第三处理模块512、第三选择模块513和合并模块514均可由位于拥塞管理装置中的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)等实现。In a practical application, the reading module 501, the first selecting module 502, the first accumulating module 503, the first closing module 504, the second selecting module 505, the judging module 506, and the second accumulating module 507 of the congestion management apparatus, The second shutdown module 508, the first processing module 509, the second processing module 510, the detection module 511, the third processing module 512, the third selection module 513, and the merging module 514 may each be a central processing unit (CPU) located in the congestion management device. ), microprocessor (MPU), digital signal processor (DSP), or field programmable gate array (FPGA) implementation.
本实施例还提供本发明实施例还提供一种交换网络的拥塞管理装置,包括:存储器及所述存储器连接的处理器;所述存储器存储有计算机可执行指令;所述处理器配置为通过执行所述计算机可执行指令,执行前述的交换网络的拥塞管理方法中的一个或多个,例如,可执行如图3所示的方法。The embodiment further provides an embodiment of the present invention, further, a congestion management apparatus for a switching network, including: a memory and a processor connected to the memory; the memory stores computer executable instructions; and the processor is configured to execute The computer executable instructions perform one or more of the aforementioned congestion management methods of the switched network, for example, the method illustrated in FIG. 3 may be performed.
所述存储器可为各种类型的存储器,例如,随机存储器、只读存储器、闪存等各种存储器。所述处理器可以通过计算机集成总线等总线与存储器连接,所述处理器可为CPU、MPU、DSP、或FPGA等。The memory can be various types of memory, such as various memories such as random access memory, read only memory, flash memory, and the like. The processor may be connected to a memory through a bus such as a computer integrated bus, and the processor may be a CPU, an MPU, a DSP, an FPGA, or the like.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令被执行后,能够实现交换网络的拥塞管理方法。The embodiment of the invention further provides a computer storage medium storing computer executable instructions, which can implement a congestion management method of a switched network after the computer executable instructions are executed.
该存储介质可为各种类型的存储介质,可选为非瞬间存储介质,例如,闪存或者只读存储器、光盘或U盘等。The storage medium may be any type of storage medium, optionally a non-transitory storage medium such as a flash memory or a read only memory, an optical disk or a USB flash drive, or the like.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present invention are included in the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的技术方案,在通过关闭第一级交换装置的链路来解决非交换网络的而非对称问题时,会根据交换状态表中的第一级交换装置的标识、所在的机架标识信息及连接的链路信息,通过带宽计算选择出关闭的链路,从而可以实现根据第二级交换装置与第一级交换装置之间的链路连接关系选取相应链路的带宽累加值刚好等于或大于门限带宽值时,保留当前已经进行累加的链路,其它链路关闭,从而保证了将关闭的链路均匀的分布在不同的第一级交换装置上,从而解决了在第二级交换装置非对称时关闭的第一级交换装置链路不均衡而导致第一级交换装置拥塞的问题,保证了整网的流量水平,同时也保证了不造成带宽的浪费,提高了系统的性能。故本发明实施例提供的技术方案具有积极的工业效果,与此同时具有实现简便的特点,从而可在工业上广泛运用。The technical solution provided by the embodiment of the present invention, when the non-symmetric problem of the non-switched network is solved by closing the link of the first-level switching device, according to the identifier of the first-level switching device in the exchange state table, The frame identification information and the link information of the connection are selected by the bandwidth calculation, so that the bandwidth accumulation value of the corresponding link can be selected according to the link connection relationship between the second-level switching device and the first-level switching device. When the value is equal to or greater than the threshold bandwidth, the link that has been accumulated is retained, and the other links are closed, thereby ensuring that the closed links are evenly distributed on different first-level switching devices, thereby solving the second When the level switching device is asymmetric, the link of the first-level switching device that is closed is unbalanced, causing congestion of the first-level switching device, ensuring the traffic level of the entire network, and ensuring that no bandwidth is wasted, and the system is improved. performance. Therefore, the technical solution provided by the embodiment of the invention has a positive industrial effect, and at the same time has the characteristics of being simple and convenient, so that it can be widely used in industry.

Claims (14)

  1. 一种交换网络的拥塞管理方法,所述方法包括:A congestion management method for a switching network, the method comprising:
    读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;Reading the exchange state table, the exchange state table is an M row, N column state table; wherein the row order of the first to M rows of the exchange state table indicates the number of the different first level switching device, the switching state The data of the first to Nth columns of the table includes at least rack identification information indicating that the first-stage switching device is placed, and link information indicating a congestion management device connected to the first-stage switching device, M and N are both positive integers;
    根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;Selecting, according to the exchange state table, all L first-level switching devices belonging to the rack J, and acquiring K links corresponding to the L first-level switching devices; wherein, L and J are a positive integer less than M, the K being a positive integer less than the product of L and N;
    从所述K条链路中选取L条链路,并将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;Selecting L links from the K links, and accumulating the bandwidths of the L links one by one, and using the two adjacent accumulated results as the first bandwidth accumulated value and the second bandwidth accumulated value respectively; The first bandwidth accumulation value is a bandwidth accumulation value of a link, and the second bandwidth accumulation value is a bandwidth accumulation value of the b links, where the a link and the b link are both a link in the L links, wherein a and b are both positive integers less than or equal to L, and b=a+1;
    确定所述第一带宽累加值小于预设带宽、且所述第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。When it is determined that the first bandwidth accumulated value is less than a preset bandwidth, and the second bandwidth accumulated value is greater than or equal to the preset bandwidth, closing a chain other than the a links in the K links road.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    确定所述b等于所述L、且所述第二带宽累加值小于所述预设带宽时,从所述K条链路中选取除所述L条链路之外的K-L条链路;Determining, when the b is equal to the L, and the second bandwidth accumulated value is less than the preset bandwidth, selecting a K-L link other than the L links from the K links;
    判断所述K-L是否大于所述L;Determining whether the K-L is greater than the L;
    若所述K-L小于或等于所述L时,将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值;其中,所述第三带宽累加值为c条链路的带宽累加值,所述第四带宽累加值为d条链路的带宽累加值,所述c条链路和d条链路均为所述K-L条链 路中的链路,所述c和d为小于或等于K-L的正整数,且d=c+1;If the KL is less than or equal to the L, the bandwidth of the KL link is successively accumulated, and the two adjacent accumulated results are respectively used as the third bandwidth accumulated value and the fourth bandwidth accumulated value; The third bandwidth accumulating value is a bandwidth accumulating value of the c links, and the fourth bandwidth accumulating value is a bandwidth accumulating value of the d links, and the c links and the d links are all the KL strips. a link in the link, the c and d being positive integers less than or equal to KL, and d=c+1;
    确定所述第三带宽累加值小于所述预设带宽、且所述第四带宽累加值大于或等于所述预设带宽时,关闭除所述K-L条链路中除所述c条链路之外的链路;When it is determined that the third bandwidth accumulated value is smaller than the preset bandwidth, and the fourth bandwidth accumulated value is greater than or equal to the preset bandwidth, turning off the c link except the KL link Outer link
    确定所述d等于所述K-L、且所述第四带宽累加值小于所述预设带宽时,对所述J加一,将所计算的和值作为新的J值,并进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作;Determining that the d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, adding one to the J, using the calculated sum value as a new J value, and performing the next basis The exchange state table selects operations of all L first-level switching devices belonging to the rack J;
    若所述K-L大于所述L时,将所述K-L作为新的K值,并进行下一次从所述K条链路中选取L条链路的操作。If the K-L is greater than the L, the K-L is taken as a new K value, and the next operation of selecting L links from the K links is performed.
  3. 根据权利要求2所述的方法,其中,所述方法还包括:所述交换状态表的第N列数据用于标识放置所述第一级交换装置的机架标识信息。The method of claim 2, wherein the method further comprises: the Nth column of data of the exchange state table is used to identify rack identification information for placing the first level switching device.
  4. 根据权利要求1至3任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    检测所述拥塞管理装置中输入链路的带宽是否大于输出链路的带宽;Detecting whether a bandwidth of the input link in the congestion management device is greater than a bandwidth of the output link;
    确定所述输入链路的带宽大于所述输出链路的带宽时,读取所述交换状态表。The exchange state table is read when it is determined that the bandwidth of the input link is greater than the bandwidth of the output link.
  5. 根据权利要求4所述的方法,其中,所述读取所述交换状态表之后,所述方法还包括:The method of claim 4, wherein after the reading the exchange status table, the method further comprises:
    将所读取的针对所述链路信息的数据进行前导零检测LZD、并重排,生成链路数据集。The read data for the link information is subjected to leading zero detection LZD and rearranged to generate a link data set.
  6. 根据权利要求5所述的方法,其中,所述根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置之后,所述方法还包括:The method of claim 5, wherein the method further comprises: after selecting all of the L first-level switching devices belonging to the rack J according to the exchange state table, the method further comprising:
    从所述链路数据集中获取归属于所述L个第一级交换装置的数据;Obtaining data belonging to the L first-level switching devices from the link data set;
    将所述归属于所述L个第一级交换装置的数据进行合并;Merging the data attributed to the L first-stage switching devices;
    所述获取与所述L个第一级交换装置对应的K条链路,包括:Obtaining K links corresponding to the L first-level switching devices, including:
    根据所合并的结果获取与所述L个第一级交换装置对应的K条链路。Obtaining K links corresponding to the L first-level switching devices according to the merged result.
  7. 一种交换网络的拥塞管理装置,所述装置包括:A congestion management device for a switching network, the device comprising:
    读取模块,配置为读取交换状态表,所述交换状态表为M行、N列状态表;其中,所述交换状态表第1至M行的行序表示不同的第一级交换装置的编号,所述交换状态表第1至第N列的数据中至少包括标识放置所述第一级交换装置的机架标识信息,以及表示与所述第一级交换装置连接的拥塞管理装置中的链路信息,所述M和N均为正整数;a reading module configured to read the exchange status table, wherein the exchange status table is an M row and an N column state table; wherein the row order of the first to M rows of the exchange state table indicates a different first level switching device The data of the first to the Nth columns of the exchange state table includes at least the rack identification information indicating the placement of the first-stage switching device, and the congestion management device indicating the connection with the first-stage switching device. Link information, where M and N are positive integers;
    第一选择模块,配置为根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置,并获取与所述L个第一级交换装置对应的K条链路;其中,所述L和J为小于M的正整数,所述K为小于L与N之积的正整数;a first selection module, configured to select all L first-level switching devices belonging to the rack J according to the exchange state table, and acquire K links corresponding to the L first-level switching devices; , L and J are positive integers less than M, and the K is a positive integer less than the product of L and N;
    所述第一选择模块,还配置为从所述K条链路中选取L条链路;The first selection module is further configured to select L links from the K links;
    第一累加模块,配置为在所述第一选择模块从所述K条链路中选取L条链路之后,将所述L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第一带宽累加值和第二带宽累加值;其中,所述第一带宽累加值为a条链路的带宽累加值,所述第二带宽累加值为b条链路的带宽累加值,所述a条链路和b条链路均为所述L条链路中的链路,所述a和b均为小于或等于L的正整数,且b=a+1;a first accumulating module, configured to: after the first selection module selects L links from the K links, accumulating bandwidths of the L links successively, and accumulating results of two adjacent connections The first bandwidth accumulated value and the second bandwidth accumulated value are respectively included, wherein the first bandwidth accumulated value is a bandwidth accumulated value of the a links, and the second bandwidth accumulated value is a bandwidth accumulated value of the b links, The a link and the b link are all links in the L links, and the a and b are both positive integers less than or equal to L, and b=a+1;
    第一关闭模块,配置为在确定所述第一带宽累加值小于预设带宽、且第二带宽累加值大于或等于所述预设带宽时,关闭所述K条链路中除所述a条链路之外的链路。The first shutdown module is configured to: when it is determined that the first bandwidth accumulation value is less than a preset bandwidth, and the second bandwidth accumulation value is greater than or equal to the preset bandwidth, shutting down the K links in the K links A link outside the link.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:
    第二选择模块,配置为在确定所述b等于所述L、且所述第二带宽累加值小于所述预设带宽时,从所述K条链路中选取除所述L条链路之外的K-L条链路;a second selection module, configured to: after determining that the b is equal to the L, and the second bandwidth accumulated value is less than the preset bandwidth, select the L links from the K links External KL link;
    判断模块,配置为判断所述K-L是否大于所述L;a determining module, configured to determine whether the K-L is greater than the L;
    第二累加模块,配置为在所述判断模块判断出所述K-L小于或等于所述L时,将所述K-L条链路的带宽逐次进行累加,将两次相邻的累加结果分别作为第三带宽累加值和第四带宽累加值;其中,所述第三带宽累加值为c条链路的带宽累加值,所述第四带宽累加值为d条链路的带宽累加值,所述c条链路和d条链路均为所述K-L条链路中的链路,所述c和d为小于或等于K-L的正整数,且d=c+1;The second accumulating module is configured to accumulate the bandwidth of the KL link one by one when the determining module determines that the KL is less than or equal to the L, and use the two adjacent accumulated results as the third a bandwidth accumulated value and a fourth bandwidth accumulated value; wherein the third bandwidth accumulated value is a bandwidth accumulated value of the c links, and the fourth bandwidth accumulated value is a bandwidth accumulated value of the d links, the c pieces The link and the d link are links in the KL link, and the c and d are positive integers less than or equal to KL, and d=c+1;
    第二关闭模块,配置为在确定所述第三带宽累加值小于所述预设带宽、且所述第四带宽累加值大于或等于所述预设带宽时,关闭除所述K-L条链路中除所述c条链路之外的链路;a second shutdown module, configured to: when it is determined that the third bandwidth accumulation value is less than the preset bandwidth, and the fourth bandwidth accumulation value is greater than or equal to the preset bandwidth, shutting down the KL link a link other than the c links;
    第一处理模块,配置为在确定所述d等于所述K-L、且所述第四带宽累加值小于所述预设带宽时,对所述J加一,将所计算的和值作为新的J值,并进行下一次根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置的操作;a first processing module, configured to: when determining that d is equal to the KL, and the fourth bandwidth accumulated value is less than the preset bandwidth, add one to the J, and use the calculated sum value as a new J Value, and the next operation of selecting all L first-level switching devices belonging to the rack J according to the exchange state table;
    第二处理模块,配置为在所述判断模块判断所述K-L大于所述L时,将所述K-L作为新的K值,并进行下一次从所述K条链路中选取L条链路的操作。a second processing module, configured to: when the determining module determines that the KL is greater than the L, the KL is used as a new K value, and the next time the L links are selected from the K links operating.
  9. 根据权利要求8所述的装置,其中,所述交换状态表的第N列数据用于标识放置所述第一级交换装置的机架标识信息。The apparatus of claim 8, wherein the column N data of the exchange state table is used to identify rack identification information for placing the first level switching device.
  10. 根据权利要求7至9任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 7 to 9, wherein the device further comprises:
    检测模块,配置为检测所述拥塞管理装置中输入链路的带宽是否大于输出链路的带宽;a detecting module, configured to detect whether a bandwidth of the input link in the congestion management device is greater than a bandwidth of the output link;
    所述读取模块,还配置为在确定所述输入链路的带宽大于所述输出链路的带宽时,读取所述交换状态表。The reading module is further configured to read the exchange status table when determining that the bandwidth of the input link is greater than the bandwidth of the output link.
  11. 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:
    第三处理模块,配置为在所述读取模块读取所述交换状态表之后,将 所读取的针对所述链路信息的数据进行前导零检测LZD、并重排,生成链路数据集。The third processing module is configured to: after the reading module reads the exchange state table, perform the leading zero detection LZD on the read data for the link information, and rearrange the data to generate a link data set.
  12. 根据权利要求11所述的装置,其中,所述装置还包括:The apparatus of claim 11 wherein said apparatus further comprises:
    第三选择模块,配置为在所述第一选择模块根据所述交换状态表选取归属于机架J内的所有L个第一级交换装置之后,从所述链路数据集中获取归属于所述L个第一级交换装置的数据;a third selection module, configured to: after the first selection module selects all the L first-level switching devices belonging to the rack J according to the exchange state table, obtain the attribution from the link data set Data of L first-stage switching devices;
    合并模块,配置为将所述归属于所述L个第一级交换装置的数据进行合并;a merging module configured to merge the data attributed to the L first-level switching devices;
    所述第一选择模块,配置为根据所合并的结果获取与所述L个第一级交换装置对应的K条链路。The first selection module is configured to acquire K links corresponding to the L first-level switching devices according to the merged result.
  13. 一种交换网络的拥塞管理装置,包括:存储器及所述存储器连接的处理器;所述存储器存储有计算机可执行指令;所述处理器配置为通过执行所述计算机可执行指令,执行权利要求1至6任一项提供的方法。A congestion management apparatus for a switching network, comprising: a memory and a processor coupled to the memory; the memory storing computer executable instructions; the processor being configured to execute claim 1 by executing the computer executable instructions To any of the methods provided in 6.
  14. 一种计算机存储介质,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令被执行后,能够实现权利要求1至6任一项提供的方法。A computer storage medium storing computer executable instructions capable of implementing the method of any one of claims 1 to 6 after the computer executable instructions are executed.
PCT/CN2018/079048 2017-03-14 2018-03-14 Congestion management method and device for switched network, and computer storage medium WO2018166482A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710151510.2A CN108574642B (en) 2017-03-14 2017-03-14 Congestion management method and device for switching network
CN201710151510.2 2017-03-14

Publications (1)

Publication Number Publication Date
WO2018166482A1 true WO2018166482A1 (en) 2018-09-20

Family

ID=63523713

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/079048 WO2018166482A1 (en) 2017-03-14 2018-03-14 Congestion management method and device for switched network, and computer storage medium

Country Status (2)

Country Link
CN (1) CN108574642B (en)
WO (1) WO2018166482A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751771A (en) * 2019-10-29 2021-05-04 深圳市中兴微电子技术有限公司 Method and device for realizing congestion control and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111433A1 (en) * 2003-11-25 2005-05-26 Stewart Mark A.W. Method of operating a Clos network
CN102835081A (en) * 2012-05-21 2012-12-19 华为技术有限公司 Scheduling method, device and system based on three-level interaction and interchange network
CN104243354A (en) * 2014-10-09 2014-12-24 福建星网锐捷网络有限公司 CLOS network link distribution method and device
CN105337883A (en) * 2015-08-20 2016-02-17 电子科技大学 Multi-business supporting network switching device and implementation method therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111433A1 (en) * 2003-11-25 2005-05-26 Stewart Mark A.W. Method of operating a Clos network
CN102835081A (en) * 2012-05-21 2012-12-19 华为技术有限公司 Scheduling method, device and system based on three-level interaction and interchange network
CN104243354A (en) * 2014-10-09 2014-12-24 福建星网锐捷网络有限公司 CLOS network link distribution method and device
CN105337883A (en) * 2015-08-20 2016-02-17 电子科技大学 Multi-business supporting network switching device and implementation method therefor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIEW, SOUNG Y.: "Bandwidth Assignment with QoS Guarantee in a Class of Scalable ATM Switches", IEEE TRANSACTIONS ON COMMUNICATIONS, vol. 48, no. 3, 31 March 2000 (2000-03-31), pages 377 - 380, XP011009619 *

Also Published As

Publication number Publication date
CN108574642A (en) 2018-09-25
CN108574642B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
Sreenivasan et al. Structural bottlenecks for communication in networks
CN105745870B (en) Extend operation from for detecting the serial multistage filter flowed greatly removal nose filter to remove stream to realize
CN109710981B (en) FPGA wiring method and system
CN102480433B (en) Network server and load balancing routing method for networks thereof
CN108833271B (en) Power grid wide area control service communication path selection method and server
CN108259328B (en) Message forwarding method and device
US20190058655A1 (en) Routing packets in dimensional order in multidimensional networks
US9419887B1 (en) Minimum latency routing
WO2018166482A1 (en) Congestion management method and device for switched network, and computer storage medium
US9934272B2 (en) Processing a database query in a database system
US20140032731A1 (en) Recursive, All-to-All Network Topologies
US9374303B1 (en) Method and apparatus for processing multicast packets
CN107276908B (en) Routing information processing method and packet switching equipment
CN109120539B (en) Method and device for realizing data transmission processing
Ammar et al. Dynamic SDN controllers-switches mapping for load balancing and controller failure handling
JP4331174B2 (en) Traffic data relay system, traffic data distributed arrangement system, and traffic data distributed arrangement method
CN108337181B (en) Method and device for managing congestion of switching network
CN115941530A (en) Method, device and equipment for detecting loop of two-layer network
CN112637053B (en) Method and device for determining backup forwarding path of route
CN113806204B (en) Method, device, system and storage medium for evaluating message segment correlation
CN106130800B (en) Data frame processing method and device
WO2023124915A1 (en) Method and apparatus for generating data screening topological structure
Gliksberg et al. Node-type-based load-balancing routing for Parallel Generalized Fat-Trees
US9900207B2 (en) Network control protocol
Forghani-elahabad et al. An algorithm to search for all minimal cuts in a flow 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: 18767659

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

Country of ref document: EP

Kind code of ref document: A1