WO2021063279A1 - Method and apparatus for processing routing information used for switching system, and packet switching device - Google Patents

Method and apparatus for processing routing information used for switching system, and packet switching device Download PDF

Info

Publication number
WO2021063279A1
WO2021063279A1 PCT/CN2020/118059 CN2020118059W WO2021063279A1 WO 2021063279 A1 WO2021063279 A1 WO 2021063279A1 CN 2020118059 W CN2020118059 W CN 2020118059W WO 2021063279 A1 WO2021063279 A1 WO 2021063279A1
Authority
WO
WIPO (PCT)
Prior art keywords
source
access unit
link
switching
destination
Prior art date
Application number
PCT/CN2020/118059
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 WO2021063279A1 publication Critical patent/WO2021063279A1/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
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/247Multipath using M:N active or standby paths
    • 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

Definitions

  • the present disclosure relates to the field of packet data switching technology, for example, to a routing information processing method, device and packet switching equipment used in a switching system.
  • FIG. 1 is a schematic structural diagram of a switching system in a single-stage switching network.
  • the switching system shown in Fig. 1 includes a service unit A, a service unit C, and a switching unit B.
  • the connection between the three nodes A/B/C can be understood as a communication channel, which is also called a link.
  • the network shown in Fig. 1 is a topological network in the form of full crossover.
  • SA switch access
  • SF switching fabric
  • each switching access unit since the communication between the switching unit and the switching access unit is two-way duplex, each switching access unit has both the active role of the switching access unit and the purpose of switching the role of the access unit, according to the information
  • the flow direction logically divides the source switching access unit into service unit A, and logically divides the destination switching access unit into service unit C. Therefore, the division of service unit A and service unit C here is not Refers to physically different business equipment.
  • FIG. 2 is a schematic diagram of the asymmetric structure between the switching unit and the switching access unit.
  • the 0#, 1#, and 2# switching units are designed to be compatible with the switching access units 0#, 1#, 2# is a mutually symmetrical structure, but in the actual product application process, the link may fail, which is indicated by a black cross in the figure.
  • the link fails, there will be more congestion in the switching unit system, that is to say, the actual link bandwidth entering the switching unit (that is, the source bandwidth) is higher than the actual link bandwidth (that is, the outgoing switching unit). Destination bandwidth), which will cause data packet congestion at the switching unit.
  • the congestion of a single-chip switching unit or a multi-chip switching unit will cause the system's switching performance to drop significantly.
  • downstream link fails, other conditions (for example, the change of the connection relationship of the switching unit, including the downstream link closure, the reduction of the bandwidth of the downstream link, etc.) may also cause the bandwidth of the upstream and downstream links of the switching unit The balance state is broken, resulting in asymmetric bandwidth problems, leading to local congestion in the switching unit.
  • the present disclosure provides a routing information processing method, device, and packet switching equipment for a switching system to at least solve the problem that the source bandwidth of the switching unit and the destination bandwidth do not match, resulting in data packet congestion at the switching unit .
  • a routing information processing method for a switching system includes: for each source switching access unit, determining the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the slave Whether there is asymmetry between the bandwidth of the SF and the destination end of the destination switching access unit; in the case of asymmetry, according to a preset strategy, multiple lines from the source switching access unit to the SF At least one source link is selected from the source links, and routing information from the selected at least one source link to the destination switching access unit is changed to unreachable, wherein the preset strategy includes: In the case where the destination switching access units are different, the selected at least one source link is at least partially different.
  • a routing information processing device for an exchange system which includes: a loop control module configured to call the asymmetry processing module; the asymmetry processing module includes: an asymmetry evaluation unit configured to The source switching access unit determines whether there is a difference between the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit.
  • an asymmetry processing unit configured to switch multiple source-end chains from the source switching access unit to the SF according to a preset strategy when the asymmetry evaluation unit determines that there is asymmetry At least one source link is selected in the path, and the routing information from the selected at least one source link to the destination switching access unit is changed to unreachable, wherein the preset strategy includes: switching at the destination In the case of different access units, the selected at least one source link is at least partially different.
  • a storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the method described in any one of the above-mentioned embodiments when the computer program is run.
  • a packet switching device including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the method described in any of the foregoing embodiments.
  • Figure 1 is a schematic structural diagram of a switching system under a single-stage switching network
  • Figure 2 is a schematic diagram of an asymmetric structure between a switching unit and a switching access unit
  • Fig. 3 is a schematic diagram of the application of an asymmetric processing method according to an embodiment of the present invention.
  • Fig. 4 is a flowchart of a routing information processing method for a switching system according to an embodiment of the present invention
  • Fig. 5 is a structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention.
  • Fig. 6 is an exemplary structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention.
  • FIG. 7 is an implementation flowchart of a routing information processing method for a switching system according to Embodiment 4 of the present invention.
  • Fig. 8 is an application schematic diagram of a routing information processing method for a switching system according to Embodiment 4 of the present invention.
  • the source bandwidth of the switching unit and the destination bandwidth do not match, which will cause data packet congestion at the switching unit. For example, as shown in Figure 2, a downstream link failure will cause the destination to be congested. The bandwidth is reduced, which leads to a situation where the switching unit is overrun and the switching unit is congested.
  • FIG. 3 is an application schematic diagram of an asymmetric processing method according to an embodiment of the present invention.
  • Figure 3 shows a networking situation.
  • SA_2# outlets have Link_0, Link_1, Link_2 Link_3 and Link_3 are all connected to the intermediate SF unit, and the SF chips have valid links connected to SA_0#/SA_1#, so the 2-0/2-1/2-2 routing and forwarding process can be realized with the help of SF.
  • the number of SA egress links (that is, the number of destination links) represents the bandwidth of SA egress to SF.
  • SF is forwarded, such as forwarding to SA_0#
  • the forwarding ability to SA_0# needs to be evaluated, because SF is In the intermediate stage, there is an asymmetric processing, and the SF needs to tell the upstream SA_2# the bandwidth of the downstream destination.
  • the route SA_2# indicates for each dst_id, whether the link on SA_2# can reach the destination switching access unit indicated by the dst_id via the SF.
  • the SA_2# routing table Before performing asymmetric processing, it can be seen from the SA_2# routing table that for each dst_id, all Link_0, Link_1, Link_2, Link_3 links on SA_2# can pass through SF to each dst_id.
  • the first two downstream links from SF to SA_0# and SA_1# fail, asymmetric processing is required, otherwise there will be a problem of SF congestion caused by different numbers of upstream and downstream links.
  • the closing of a link in this application is not a physical shutdown, but refers to the deletion of the route corresponding to the source link, and the route corresponding to the source link only refers to when the link is used as an upstream link.
  • the route does not include the route when the link is used as a downstream link.
  • the embodiment of the present invention also provides a routing information processing method for the switching system, which is used to solve the problem of secondary congestion caused by multiple destination asymmetric algorithms closing the same source link.
  • This method considers from the perspective of the global algorithm, when performing asymmetric processing on the destination switching access unit, it can consider the asymmetric processing of other destination switching access units that have completed asymmetric processing, so as to select the appropriate closing link number, so that When implementing asymmetry between switching access units for different purposes, it is possible to consider evaluating their respective situations and making the optimal choice for load balancing to avoid recurring congestion problems.
  • routing information processing method for the switching system will be described below through a number of embodiments.
  • FIG. 4 is a flowchart of a routing information processing method for a switching system according to an embodiment of the present invention. As shown in FIG. 4, the process includes For each destination switching access unit of the switching system, the following asymmetry processing is performed:
  • Step S402 For each source switching access unit, determine the source end bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination end from the SF to the destination switching access unit Is there any asymmetry between the bandwidths?
  • Step S404 In the case of asymmetry, at least one source link is selected from the multiple source links from the source switching access unit to the SF according to a preset strategy, and the selected The routing information of at least one source link to the destination switching access unit is changed to be unreachable, wherein the preset strategy includes: when the destination switching access unit is different, the selected at least one source The links are at least partially different.
  • the source bandwidth from the source switching access unit to the switching unit SF of the switching system there is an asymmetry between determining the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit.
  • at least one source link is selected from the multiple source links from the source switching access unit to the SF according to a preset strategy, and the selected at least one source link is connected to the
  • the routing information of the destination switching access unit is changed to unreachable, which can make the source bandwidth and the destination bandwidth tend to match. Therefore, it can solve the mismatch between the source bandwidth and the destination bandwidth of the switching unit, resulting in the switching unit.
  • the problem of data packet congestion occurs, and the effect of preventing congestion at the switching unit is achieved.
  • the selected routing information is changed to the unreachable source link due to the different destination switching access units, which are at least partially different, and can be exchanged at different destinations.
  • step S402 may include the following processing:
  • For each source switching access unit compare the source bandwidth from the source switching access unit to the SF with the destination bandwidth from the SF to the destination switching access unit, where the source bandwidth is The total bandwidth of all source links from the source switching access unit to the SF, and the destination bandwidth is the total bandwidth of all destination links from the SF to the destination switching access unit;
  • the source bandwidth is greater than the destination bandwidth
  • step S404 may include the following processing:
  • At least one source link is selected from the multiple source links from the source switching access unit to the SF.
  • the source link selection result of the destination switching access unit that has completed the asymmetric processing can be used as the basis for processing to avoid (or at least partially avoid) The source end link selection result of the destination exchange access unit that has completed the asymmetric processing.
  • the switch access units correspond to different starting links, which can be achieved by setting a starting link table.
  • Finding the starting link corresponding to the current target switching access unit according to the identifier dst_id of the current target switching access unit includes: searching the initial link table according to the identifier dst_id of the current target switching access unit to determine the current target switching access unit corresponding The first transmission link number, wherein the first transmission link table includes the corresponding relationship between the first transmission link numbers of different destination switching access units and the different destination switching access units; the first transmission link number is determined according to the first transmission link number.
  • the starting link includes: searching the initial link table according to the identifier dst_id of the current target switching access unit to determine the current target switching access unit corresponding The first transmission link number, wherein the first transmission link table includes the corresponding relationship between the first transmission link numbers of different destination switching access units and the different destination switching access units; the first transmission link number is determined according to the first transmission link number.
  • the starting link includes: searching the initial link table
  • the determination of the initial link according to the initial link number includes one of the following: a source link whose link number is consistent with the initial link number is used as the initial link; The total number of multiple source links from the incoming unit to the SF is used as the divisor, the first link number is modulated, and the source link whose link number is consistent with the remainder obtained from the modulo is used as the starting link. Start link.
  • the difference between the initial transmission link numbers corresponding to adjacent destination switching access units can be set to be greater than or equal to the destination end chain from the switching unit to the destination switching access unit
  • the maximum number of failed links of the road is not necessarily an absolute maximum number of failed links, but can be a preset value or a statistical value, that is, when the statistics
  • the probability that the number of link failures is higher than m is lower than a predetermined probability threshold
  • the minimum value of all m values that meet the condition can be used as the maximum number of failed links. In this way, it can be ensured with a greater probability that when asymmetric processing is performed on different destination switching access units, the source links that are finally closed are different.
  • the asymmetric processing can be performed in sequence according to a predetermined source switching access unit. That is to say, when performing asymmetric processing for the current destination switching access unit, since it is necessary to calculate the reachability information for each source switching access unit separately, the calculation is performed according to which source switching access unit order, It is a question that can be considered.
  • the sequence can be configured, and the configuration method can be to set a link table of the source switching access unit.
  • Performing the asymmetric processing according to a predetermined source switching access unit sequence may include: reading a source switching access unit link table to determine a predetermined source switching access unit sequence, wherein the source switching access unit link table It contains the link relationship between multiple source switching access units; the asymmetric processing is performed in sequence according to a predetermined source switching access unit.
  • the routing information of the selected at least one source link to the destination switching access unit can be changed to incapable.
  • the source switching access unit is notified to change the routing information of the at least one source link to the destination switching access unit to be unreachable, so that the source switching access unit changes the link for sending the data packet accordingly.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, or can be implemented by hardware.
  • the present disclosure can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes at least one instruction to enable a terminal device (which can be a mobile phone, a computer , A server, or a network device, etc.) execute the methods described in the multiple embodiments of the present invention.
  • a routing information processing device for a switching system which is used to implement the above-mentioned embodiments and optional implementation manners, and those that have been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
  • FIG. 5 is a structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention. As shown in FIG. 5, the device includes a loop control module 52 and an asymmetric processing module 54.
  • the cycle control module 52 is configured to call the asymmetry processing module 54 for each destination switching access unit of the switching system;
  • the asymmetry processing module 54 includes:
  • the asymmetry evaluation unit 542 is configured to determine, for each source switching access unit, the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the exchange from the SF to the destination Whether there is asymmetry between the destination bandwidth of the access unit;
  • the asymmetry processing unit 544 is configured to switch multiple source-end links from the source switching access unit to the SF according to a preset strategy when the asymmetry evaluating unit 542 determines that asymmetry exists Select at least one source link in the selected link, and change the routing information from the selected at least one source link to the destination switching access unit to be unreachable, wherein the preset strategy includes: In the case of different incoming units, the selected at least one source link is at least partially different.
  • the asymmetry processing unit 544 is configured to search for the start link corresponding to the current target switch access unit according to the identifier dst_id of the current target switch access unit, where different target switch access units correspond to the start link Different; using the found starting link as the starting point of selection, and selecting at least one source link from the multiple source links from the source switching access unit to the SF.
  • the asymmetry processing unit 544 is configured to look up the initial transmission link table according to the identifier dst_id of the current destination switching access unit to determine the initial transmission link number corresponding to the current destination switching access unit, wherein the initial transmission link table The corresponding relationship between different destination switching access units and their corresponding initial link numbers is included; the initial link is determined according to the initial link number.
  • Fig. 6 is an exemplary structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention.
  • the device may further include a notification module 62 coupled to the asymmetric processing module 54, Configured to notify the source switching access unit that the routing information of the at least one source link to the destination switching access unit is changed to be unreachable.
  • the above-mentioned multiple modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned multiple modules are respectively in the form of any combination. Located in different processors.
  • An embodiment of the present invention also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the foregoing method embodiments when running.
  • the aforementioned storage medium may be configured to store a computer program for executing the following steps:
  • S2 In the case of asymmetry, select at least one source link from the multiple source links from the source switch access unit to the SF according to a preset strategy, and set the selected at least one source link The routing information of a source link to the destination switching access unit is changed to be unreachable, where the preset strategy includes: when the destination switching access unit is different, the selected at least one source link The roads are at least partly different.
  • the above-mentioned storage medium may include: Universal Serial Bus flash disk (USB flash disk), Read-Only Memory (ROM), random access memory ( Random Access Memory, RAM), mobile hard drives, magnetic disks or optical discs and other media that can store computer programs.
  • USB flash disk Universal Serial Bus flash disk
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • mobile hard drives magnetic disks or optical discs and other media that can store computer programs.
  • An embodiment of the present invention also provides a packet switching device, including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the foregoing method embodiments.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S2 In the case of asymmetry, select at least one source link from the multiple source links from the source switch access unit to the SF according to a preset strategy, and set the selected at least one source link The routing information of a source link to the destination switching access unit is changed to be unreachable, where the preset strategy includes: when the destination switching access unit is different, the selected at least one source link The roads are at least partly different.
  • the configuration of the initial link table (referred to as the initial link table) is added.
  • Table 1 is the unicast forwarding table, indicating the connection relationship to the destination switching unit.
  • the row coordinate is SA_ID, 0, 1, 2 correspond to SA_0#, SA_1#, SA_2#, the ordinate represents the port number connecting SF and SA, SA_0#, SA_1#, SA_2# correspond to four elements respectively , 1 means that there are four links connected between SF and SA_0#, SA_1#, SA_2# respectively.
  • the element value is 0, it means that there is a link failure.
  • Table 2 below is the SRC link table, indicating the calculation sequence of src_id.
  • the SRC linked list is similar to a singly linked list. Take the SRC linked list in Table 2 as an example:
  • the link sequence can be configured as required, and is not limited to the order from small to large.
  • the first sending route Link_ID table (abbreviated as the first sending Link table, which corresponds to the first sending link table in the foregoing embodiment).
  • Table 3 below is the first link table, which indicates the link number that should be selected first when performing asymmetric processing on each dst_id, which is also called the first link number hereinafter.
  • MOD operation modulo 4
  • the remainder also known as the first effective link number
  • Fig. 7 is an implementation flowchart of a routing information processing method for a switching system according to Embodiment 4 of the present invention. As shown in Fig. 7, it includes the following steps:
  • S701 Read the unicast forwarding table corresponding to the first dst_id, and calculate the egress bandwidth by obtaining the number of egress ports and the rate corresponding to the port.
  • S702 Read the SRC link table to obtain the src_id to be calculated, and read the unicast forwarding table again according to the src_id; at the same time, read the first link table with the current dst_id as the address to obtain the first link number to be calculated.
  • S703 Query the export link number information according to the src_id, and start with the first effective link number, traverse the link number to complete a round of reachability information (Destination Reachable, DR) calculation.
  • S704 If it is determined that it is not a tail node according to the information of the SRC link table bit[3], skip to the next node and continue to complete the calculation of src_id. If it is judged to be the tail node according to the information of the SRC link table bit[3], skip to the next dst_id node calculation.
  • Fig. 8 is an application schematic diagram of a routing information processing method for a switching system according to Embodiment 4 of the present invention.
  • different SAs can choose to close the upstream link to be executed cooperatively.
  • SA_2# is closed at the source
  • the links are Link_3, Link_2 and Link_1, Link_0, there is no overlap, so it is not easy to cause secondary congestion.
  • the above-mentioned multiple modules or multiple steps of the present disclosure can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be It is implemented by the program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, Or they can be made into multiple integrated circuit modules respectively, or multiple modules or steps of them can be made into a single integrated circuit module to achieve. In this way, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

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

Abstract

Provided in the present disclosure are a method and apparatus for processing routing information used for a switching system, and a packet switching device. The method for processing routing information used for a switching system comprises: for each source switch access unit, determining whether asymmetry exists between the source end bandwidth from the source switch access unit to a switch fabric (SF) of a switching system and the destination end bandwidth from the SF to a destination switch access unit; and when asymmetry exists, according to a preset policy, selecting at least one source end link from among multiple source end links from the source switch access unit to the SF, and changing routing information of the selected at least one source end link to the destination switch access unit to unreachable, the preset policy comprising: when the destination switch access unit is different, at least part of the selected at least one source end link being different.

Description

用于交换系统的路由信息处理方法、装置及分组交换设备Routing information processing method, device and packet switching equipment for switching system
本申请要求在2019年09月30日提交中国专利局、申请号为201910944637.9的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910944637.9 on September 30, 2019, and the entire content of the application is incorporated into this application by reference.
技术领域Technical field
本公开涉及分组数据交换技术领域,例如涉及一种用于交换系统的路由信息处理方法、装置及分组交换设备。The present disclosure relates to the field of packet data switching technology, for example, to a routing information processing method, device and packet switching equipment used in a switching system.
背景技术Background technique
交换系统是分组交换设备的组成部分。图1是单级交换组网下的交换系统的结构示意图。图1所示的交换系统包括业务单元A、业务单元C和交换单元B,A/B/C三个节点间连线可以理解为通信的通道,也被称为链路。图1所示的网络是全交叉形式的拓扑网络,业务单元A上的源交换接入单元发出的信元,经过交换单元B达到业务单元C上的多个目的交换接入单元。在下文中,交换接入单元简称SA(switch access),交换单元简称SF(switch fabric)。在一实施例中,鉴于交换单元和交换接入单元之间的通信为双向双工,因此每个交换接入单元既有源交换接入单元的角色也有目的交换接入单元的角色,按照信息流的方向将源交换接入单元从逻辑上划分到业务单元A,而将目的交换接入单元从逻辑上划分到业务单元C,因此,此处业务单元A和业务单元C的划分,并不是指物理上的不同业务设备。The switching system is an integral part of packet switching equipment. Figure 1 is a schematic structural diagram of a switching system in a single-stage switching network. The switching system shown in Fig. 1 includes a service unit A, a service unit C, and a switching unit B. The connection between the three nodes A/B/C can be understood as a communication channel, which is also called a link. The network shown in Fig. 1 is a topological network in the form of full crossover. The cells sent by the source switching access unit on service unit A pass through switching unit B to reach multiple destination switching access units on service unit C. In the following, the switching access unit is referred to as SA (switch access), and the switching unit is referred to as SF (switch fabric). In one embodiment, since the communication between the switching unit and the switching access unit is two-way duplex, each switching access unit has both the active role of the switching access unit and the purpose of switching the role of the access unit, according to the information The flow direction logically divides the source switching access unit into service unit A, and logically divides the destination switching access unit into service unit C. Therefore, the division of service unit A and service unit C here is not Refers to physically different business equipment.
在源交换接入单元到交换单元和交换单元到目的交换接入单元之间,存在带宽不一致的情况,即进入交换单元的链路(也称为源端链路、上游链路)的带宽(也称为源端带宽、上游带宽)和出交换单元的链路(也称为目的端链路、下游链路)的带宽(也称为目的端带宽、下游带宽)不一致。例如,图2是交换单元和交换接入单元之间的非对称结构的示意图,如图2所示,0#、1#、2#交换单元设计上与交换接入单元0#、1#、2#是相互对称性结构,但实际产品应用过程中,链路存在失效可能性,失效在图中用黑色叉表示。一旦链路有失效,则交换单元系统中会出现多打少的拥塞状态,也就是说,进入交换单元的实际链路带宽(即源端带宽)高于出交换单元的实际链路带宽(即目的端带宽),这会导致在交换单元处出现数据包的拥塞。在分布式系统中,单片交换单元或者多片交换单元拥塞会导致系统交换性能大幅下降。Between the source switching access unit to the switching unit and the switching unit to the destination switching access unit, there is a situation of inconsistent bandwidth, that is, the bandwidth of the link entering the switching unit (also called the source link, the upstream link) ( The bandwidth (also called the source bandwidth and the upstream bandwidth) and the bandwidth (also called the destination bandwidth and downstream bandwidth) of the link out of the switching unit (also called the destination link and the downstream link) are inconsistent. For example, Figure 2 is a schematic diagram of the asymmetric structure between the switching unit and the switching access unit. As shown in Figure 2, the 0#, 1#, and 2# switching units are designed to be compatible with the switching access units 0#, 1#, 2# is a mutually symmetrical structure, but in the actual product application process, the link may fail, which is indicated by a black cross in the figure. Once the link fails, there will be more congestion in the switching unit system, that is to say, the actual link bandwidth entering the switching unit (that is, the source bandwidth) is higher than the actual link bandwidth (that is, the outgoing switching unit). Destination bandwidth), which will cause data packet congestion at the switching unit. In a distributed system, the congestion of a single-chip switching unit or a multi-chip switching unit will cause the system's switching performance to drop significantly.
不仅仅是下游链路失效,其他情况(例如,交换单元连接关系改变,包括下游链路关闭、下游链路带宽能力减小等情况)也可能使得交换单元的上游链 路和下游链路的带宽平衡状态被打破,从而产生带宽的非对称问题,导致交换单元局部出现拥塞。Not only the downstream link fails, other conditions (for example, the change of the connection relationship of the switching unit, including the downstream link closure, the reduction of the bandwidth of the downstream link, etc.) may also cause the bandwidth of the upstream and downstream links of the switching unit The balance state is broken, resulting in asymmetric bandwidth problems, leading to local congestion in the switching unit.
发明内容Summary of the invention
本公开提供了一种用于交换系统的路由信息处理方法、装置及分组交换设备,以至少解决交换单元的源端带宽和目的端带宽不匹配,导致在交换单元处出现数据包的拥塞的问题。The present disclosure provides a routing information processing method, device, and packet switching equipment for a switching system to at least solve the problem that the source bandwidth of the switching unit and the destination bandwidth do not match, resulting in data packet congestion at the switching unit .
提供了一种用于交换系统的路由信息处理方法,包括:对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性;在存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。A routing information processing method for a switching system is provided, which includes: for each source switching access unit, determining the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the slave Whether there is asymmetry between the bandwidth of the SF and the destination end of the destination switching access unit; in the case of asymmetry, according to a preset strategy, multiple lines from the source switching access unit to the SF At least one source link is selected from the source links, and routing information from the selected at least one source link to the destination switching access unit is changed to unreachable, wherein the preset strategy includes: In the case where the destination switching access units are different, the selected at least one source link is at least partially different.
还提供了一种用于交换系统的路由信息处理装置,包括:循环控制模块,设置为调用非对称性处理模块;所述非对称性处理模块包括:非对称性评估单元,设置为对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性;非对称性处理单元,设置为在所述非对称性评估单元确定存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。A routing information processing device for an exchange system is also provided, which includes: a loop control module configured to call the asymmetry processing module; the asymmetry processing module includes: an asymmetry evaluation unit configured to The source switching access unit determines whether there is a difference between the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit. Symmetry; an asymmetry processing unit configured to switch multiple source-end chains from the source switching access unit to the SF according to a preset strategy when the asymmetry evaluation unit determines that there is asymmetry At least one source link is selected in the path, and the routing information from the selected at least one source link to the destination switching access unit is changed to unreachable, wherein the preset strategy includes: switching at the destination In the case of different access units, the selected at least one source link is at least partially different.
还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一实施例中所述的方法。A storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the method described in any one of the above-mentioned embodiments when the computer program is run.
还提供了一种分组交换设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一实施例中所述的方法。A packet switching device is also provided, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the method described in any of the foregoing embodiments.
附图说明Description of the drawings
图1是单级交换组网下的交换系统的结构示意图;Figure 1 is a schematic structural diagram of a switching system under a single-stage switching network;
图2是交换单元和交换接入单元之间的非对称结构的示意图;Figure 2 is a schematic diagram of an asymmetric structure between a switching unit and a switching access unit;
图3是根据本发明实施例的一种非对称处理方法的应用示意图;Fig. 3 is a schematic diagram of the application of an asymmetric processing method according to an embodiment of the present invention;
图4是根据本发明实施例的用于交换系统的路由信息处理方法的流程图;Fig. 4 is a flowchart of a routing information processing method for a switching system according to an embodiment of the present invention;
图5是根据本发明实施例的用于交换系统的路由信息处理装置的结构框图;Fig. 5 is a structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention;
图6是根据本发明实施例的用于交换系统的路由信息处理装置的示例性结构框图;Fig. 6 is an exemplary structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention;
图7是根据本发明实施例4的用于交换系统的路由信息处理方法的实现流程图;FIG. 7 is an implementation flowchart of a routing information processing method for a switching system according to Embodiment 4 of the present invention;
图8是根据本发明实施例4的用于交换系统的路由信息处理方法的应用示意图。Fig. 8 is an application schematic diagram of a routing information processing method for a switching system according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来说明本公开。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present disclosure will be described with reference to the drawings and in conjunction with embodiments. In the case of no conflict, the embodiments in the application and the features in the embodiments can be combined with each other.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。The terms “first”, “second”, etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
在一实施例中,交换单元的源端带宽和目的端带宽不匹配,就会导致在交换单元处出现数据包的拥塞,例如,如图2所示的情况,下游链路失效会导致目的端带宽减小,从而导致交换单元处出现多打少的情况,引起交换单元的拥塞。In an embodiment, the source bandwidth of the switching unit and the destination bandwidth do not match, which will cause data packet congestion at the switching unit. For example, as shown in Figure 2, a downstream link failure will cause the destination to be congested. The bandwidth is reduced, which leads to a situation where the switching unit is overrun and the switching unit is congested.
针对该问题,一种解决方案是关闭上游链路,改变交换单元由多打少的局面。图3是根据本发明实施例的一种非对称处理方法的应用示意图。图3中示出了一种组网情况,多个交换接入单元SA之间要实现通信,必须有有效通路,每个通路有相应的链路号,如SA_2#出口有Link_0、Link_1、Link_2、Link_3,都连接中间级SF单元,SF芯片均有有效链路连接SA_0#/SA_1#,因此可以借助SF实现2-0/2-1/2-2的路由转发过程。实际过程中,SA出口的链路数(即目的端链路数)代表SA出口到达SF的带宽,当SF转发时比如转发给SA_0#,则需要评估去往SA_0#的转发能力,因为SF是中间级,因此存在一个非对称处理,SF需告诉上游SA_2#,下游目的端的带宽情况。举个例子:在一个流量传输过程中,SA_2#流量打往SA_0#,这就存在一个源和目的的问题,这个情况中,SA_2#->SA_0#,那么目的ID应当是dst_id=0,源ID应当是src_id=2。反之, SA_0#->SA_2#,那么目的ID应当是dst_id=2,源ID应当是src_id=0。由此可见,本申请中,对于每个SA,其作为目的SA还是源SA在组网结构中是相对概念,而ID是绝对概念,即组网结构中接入单元SA的识别码。To solve this problem, one solution is to close the upstream link and change the situation of switching units from more to less. Fig. 3 is an application schematic diagram of an asymmetric processing method according to an embodiment of the present invention. Figure 3 shows a networking situation. To achieve communication between multiple switching access units SA, there must be an effective path, and each path has a corresponding link number, such as SA_2# outlets have Link_0, Link_1, Link_2 Link_3 and Link_3 are all connected to the intermediate SF unit, and the SF chips have valid links connected to SA_0#/SA_1#, so the 2-0/2-1/2-2 routing and forwarding process can be realized with the help of SF. In the actual process, the number of SA egress links (that is, the number of destination links) represents the bandwidth of SA egress to SF. When SF is forwarded, such as forwarding to SA_0#, the forwarding ability to SA_0# needs to be evaluated, because SF is In the intermediate stage, there is an asymmetric processing, and the SF needs to tell the upstream SA_2# the bandwidth of the downstream destination. For example: during a traffic transmission process, SA_2# traffic goes to SA_0#, there is a problem of source and destination. In this case, SA_2#->SA_0#, then the destination ID should be dst_id=0, the source The ID should be src_id=2. On the contrary, SA_0#->SA_2#, then the destination ID should be dst_id=2, and the source ID should be src_id=0. It can be seen that, in this application, for each SA, whether it is a destination SA or a source SA is a relative concept in the networking structure, and ID is an absolute concept, that is, the identification code of the access unit SA in the networking structure.
如图3所示的场景中,SA_2#路由表示出了针对于每个dst_id,SA_2#上的链路是否能够经由SF通往dst_id所指示的目的交换接入单元。进行非对称处理之前SA_2#路由表可以看到,对于每个dst_id,SA_2#上的全部Link_0、Link_1、Link_2、Link_3链路均可以经过SF通往每个dst_id。而在SF通往SA_0#和SA_1#的前两条下游链路失效的情况下,需要进行非对称处理,否则就会存在上下游链路数量不同导致SF拥塞的问题。对于dst_id=0,因为通往dst_id=0的链路有两条失效,需要将SA_2#和SF之间能够路由到dst_id=0的所有上游链路中的前两条进行关闭,使得SF的源端带宽也相应减小,从而实现与减小的目的端带宽的匹配。对于dst_id=1,因为通往dst_id=1的下游链路也有两条失效,所以基于针对dst_id=0所进行的非对称处理的相同的逻辑,需要将SA_2#和SF之间能够路由到dst_id=1的所有上游链路中的前两条也进行关闭。在这个过程中,不管是针对于dst_id=0还是dst_id=1,对于SA_2#关闭哪两条上游链路是基于相同的选取原则,且非对称处理相互独立,不会考虑针对其他dst_id已进行的非对称处理的结果。因此,当通往dst_id=0和通往dst_id=1的链路中均有两条失效的时候,从SA_2#角度来说,选取SA_2#和SF之间的多条源端链路中的哪两条链路进行关闭,这个选取原则都是相同的,因此,就会存在选择结果一致性过高的问题,例如,图3中非对称处理后SA_2#路由表显示,对于dst_id=0和dst_id=1,都是Link_3和Link_2被关闭了(路由表中指示值从1变为0),这就导致了该Link_3和Link_2的使用效率大大下降,不仅如此,多交换单元组网情况下,多个目的端同时关闭相同的源端链路又会导致二次拥塞。In the scenario shown in Figure 3, the route SA_2# indicates for each dst_id, whether the link on SA_2# can reach the destination switching access unit indicated by the dst_id via the SF. Before performing asymmetric processing, it can be seen from the SA_2# routing table that for each dst_id, all Link_0, Link_1, Link_2, Link_3 links on SA_2# can pass through SF to each dst_id. In the case where the first two downstream links from SF to SA_0# and SA_1# fail, asymmetric processing is required, otherwise there will be a problem of SF congestion caused by different numbers of upstream and downstream links. For dst_id=0, because two links to dst_id=0 fail, the first two of all upstream links that can be routed to dst_id=0 between SA_2# and SF need to be closed to make the source of SF The end bandwidth is also reduced accordingly, so as to achieve matching with the reduced destination end bandwidth. For dst_id=1, because there are also two failures in the downstream links to dst_id=1, based on the same logic of the asymmetric processing for dst_id=0, it is necessary to route between SA_2# and SF to dst_id= The first two of all upstream links of 1 are also closed. In this process, regardless of whether it is for dst_id=0 or dst_id=1, which two upstream links are closed for SA_2# are based on the same selection principle, and the asymmetric processing is independent of each other, and will not be considered for other dst_id. The result of asymmetric processing. Therefore, when there are two failures in the links leading to dst_id=0 and dst_id=1, from the perspective of SA_2#, which of the multiple source links between SA_2# and SF is selected When the two links are closed, this selection principle is the same. Therefore, there will be a problem of high consistency of the selection results. For example, after the asymmetric processing in Figure 3, the SA_2# routing table shows that for dst_id=0 and dst_id =1, both Link_3 and Link_2 are closed (the indicated value in the routing table changes from 1 to 0), which leads to a significant drop in the efficiency of the use of Link_3 and Link_2. Not only that, in the case of multi-switching unit networking, more Closing the same source link at the same time at the destination end will cause secondary congestion.
本申请中的关闭链路并非物理意义上的关闭,而是指对应于该源端链路的路由的删除,对应于该源端链路的路由仅指链路被用作上游链路时的路由,而不包含该链路被用作下游链路时的路由。The closing of a link in this application is not a physical shutdown, but refers to the deletion of the route corresponding to the source link, and the route corresponding to the source link only refers to when the link is used as an upstream link. The route does not include the route when the link is used as a downstream link.
基于以上因素考虑,本发明的实施例还提供了一种用于交换系统的路由信息处理方法,用于解决多个目的端非对称算法关闭同一源端链路,造成的二次拥塞的问题。该方法通过从全局算法角度考虑,对目的交换接入单元进行非对称处理时,可以考虑其他已经完成非对称的目的交换接入单元的非对称处理情况,从而选择合适的关闭链路号,使得在不同目的交换接入单元之间实施非对称时,能考虑评估各自情况,做出负载均衡最优选择,避免再次造成拥塞问题。Based on the above considerations, the embodiment of the present invention also provides a routing information processing method for the switching system, which is used to solve the problem of secondary congestion caused by multiple destination asymmetric algorithms closing the same source link. This method considers from the perspective of the global algorithm, when performing asymmetric processing on the destination switching access unit, it can consider the asymmetric processing of other destination switching access units that have completed asymmetric processing, so as to select the appropriate closing link number, so that When implementing asymmetry between switching access units for different purposes, it is possible to consider evaluating their respective situations and making the optimal choice for load balancing to avoid recurring congestion problems.
以下通过多个实施例对该用于交换系统的路由信息处理方法进行描述。The routing information processing method for the switching system will be described below through a number of embodiments.
实施例1Example 1
在本实施例中提供了一种用于交换系统的路由信息处理方法,图4是根据本发明实施例的用于交换系统的路由信息处理方法的流程图,如图4所示,该流程包括对于所述交换系统的每个目的交换接入单元,执行以下非对称性处理:In this embodiment, a routing information processing method for a switching system is provided. FIG. 4 is a flowchart of a routing information processing method for a switching system according to an embodiment of the present invention. As shown in FIG. 4, the process includes For each destination switching access unit of the switching system, the following asymmetry processing is performed:
步骤S402,对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性。Step S402: For each source switching access unit, determine the source end bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination end from the SF to the destination switching access unit Is there any asymmetry between the bandwidths?
步骤S404,在存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。Step S404: In the case of asymmetry, at least one source link is selected from the multiple source links from the source switching access unit to the SF according to a preset strategy, and the selected The routing information of at least one source link to the destination switching access unit is changed to be unreachable, wherein the preset strategy includes: when the destination switching access unit is different, the selected at least one source The links are at least partially different.
通过上述步骤,由于在确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间存在非对称性时,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,可以使得源端带宽和目的端带宽之间趋于匹配,因此,可以解决交换单元的源端带宽和目的端带宽不匹配,导致在交换单元处出现数据包的拥塞的问题,达到防止交换单元处出现拥塞的效果。此外,由于对不同的目的交换接入单元进行非对称性处理时,选择的路由信息变更为不可达的源端链路因目的交换接入单元的不同而至少部分不相同,可以在不同目的交换接入单元之间实施非对称处理时,能考虑评估不同目的交换接入单元的非对称处理情况,做出负载均衡最优选择,避免再次造成拥塞问题。Through the above steps, there is an asymmetry between determining the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit. In the case of performance, at least one source link is selected from the multiple source links from the source switching access unit to the SF according to a preset strategy, and the selected at least one source link is connected to the The routing information of the destination switching access unit is changed to unreachable, which can make the source bandwidth and the destination bandwidth tend to match. Therefore, it can solve the mismatch between the source bandwidth and the destination bandwidth of the switching unit, resulting in the switching unit. The problem of data packet congestion occurs, and the effect of preventing congestion at the switching unit is achieved. In addition, due to the asymmetric processing of different destination switching access units, the selected routing information is changed to the unreachable source link due to the different destination switching access units, which are at least partially different, and can be exchanged at different destinations. When implementing asymmetric processing between access units, you can consider evaluating the asymmetric processing conditions of switching access units for different purposes, making the optimal choice for load balancing, and avoiding congestion problems again.
在至少一个示例性实施方式中,步骤S402可以包括以下处理:In at least one exemplary embodiment, step S402 may include the following processing:
对于每个源交换接入单元,比较从所述源交换接入单元到所述SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽,其中,源端带宽为从所述源交换接入单元到所述SF的所有源端链路的总带宽,目的端带宽为从所述SF到所述目的交换接入单元的所有目的端链路的总带宽;For each source switching access unit, compare the source bandwidth from the source switching access unit to the SF with the destination bandwidth from the SF to the destination switching access unit, where the source bandwidth is The total bandwidth of all source links from the source switching access unit to the SF, and the destination bandwidth is the total bandwidth of all destination links from the SF to the destination switching access unit;
在所述源端带宽大于所述目的端带宽的情况下,确定从所述源交换接入单元到所述SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间存在非对称性。In the case that the source bandwidth is greater than the destination bandwidth, determine the source bandwidth from the source switching access unit to the SF and the destination bandwidth from the SF to the destination switching access unit There is asymmetry between.
为了实现在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同,在至少一个示例性实施方式中,步骤S404可以包括以下处理:In order to realize that when the destination switching access units are different, the selected at least one source link is at least partially different, in at least one exemplary embodiment, step S404 may include the following processing:
按照当前目的交换接入单元的标识dst_id查找当前目的交换接入单元对应的起始链路,其中,不同的目的交换接入单元对应的起始链路不同;According to the identifier dst_id of the current destination switch access unit, search for the start link corresponding to the current destination switch access unit, where different destination switch access units correspond to different start links;
以查找到的所述起始链路作为选择的起始点,从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路。Using the found starting link as the starting point of selection, at least one source link is selected from the multiple source links from the source switching access unit to the SF.
对于不同的目的交换接入单元,在选择要关闭的源端链路时使用不同的起始链路作为起始点,就能保证对于不同的目的交换接入单元进行非对称处理时,最终关闭的源端链路不同(或起码部分不同)。除了对应不同的目的交换接入单元设置不同的起始链路,还有其他方法能够保证在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同,例如,可以在对于不同的目的交换接入单元进行非对称处理时,将已完成非对称处理的目的交换接入单元的源端链路选择结果作为处理的依据,避开(或至少部分避开)已完成非对称处理的目的交换接入单元的源端链路选择结果。For different destination switching access units, when selecting the source link to be closed, different starting links are used as the starting point to ensure that when the different destination switching access units are processed asymmetrically, the final closed The source link is different (or at least partly different). In addition to setting different starting links for different destination switching access units, there are other methods to ensure that the selected at least one source link is at least partially different when the destination switching access units are different, for example, When performing asymmetric processing on different destination switching access units, the source link selection result of the destination switching access unit that has completed the asymmetric processing can be used as the basis for processing to avoid (or at least partially avoid) The source end link selection result of the destination exchange access unit that has completed the asymmetric processing.
针对于不同的目的交换接入单元对应的起始链路不同,可以通过设置一个首发链路表来实现。按照当前目的交换接入单元的标识dst_id查找当前目的交换接入单元对应的起始链路包括:按照当前目的交换接入单元的标识dst_id查找首发链路表,以确定当前目的交换接入单元对应的首发链路号,其中,所述首发链路表包括不同的目的交换接入单元与不同的目的交换接入单元各自对应的首发链路号的对应关系;根据所述首发链路号确定所述起始链路。For different purposes, the switch access units correspond to different starting links, which can be achieved by setting a starting link table. Finding the starting link corresponding to the current target switching access unit according to the identifier dst_id of the current target switching access unit includes: searching the initial link table according to the identifier dst_id of the current target switching access unit to determine the current target switching access unit corresponding The first transmission link number, wherein the first transmission link table includes the corresponding relationship between the first transmission link numbers of different destination switching access units and the different destination switching access units; the first transmission link number is determined according to the first transmission link number. The starting link.
根据所述首发链路号确定所述起始链路包括以下之一:将链路号与所述首发链路号一致的源端链路作为所述起始链路;以所述源交换接入单元到所述SF的多条源端链路的总条数作为除数,对所述首发链路号取模,将链路号与取模得到的余数一致的源端链路作为所述起始链路。The determination of the initial link according to the initial link number includes one of the following: a source link whose link number is consistent with the initial link number is used as the initial link; The total number of multiple source links from the incoming unit to the SF is used as the divisor, the first link number is modulated, and the source link whose link number is consistent with the remainder obtained from the modulo is used as the starting link. Start link.
在该首发链路表中,相邻目的交换接入单元对应的首发链路号之间的差值,可设置为大于或等于从所述交换单元到所述目的交换接入单元的目的端链路的最大失效链路条数,该最大失效链路条数并不一定是一个绝对的最大失效链路的数量,而可以是一个预设值,或是一个统计值,也就是说,当统计链路失效的条数高于m的概率低于一个预定概率阈值的时候,就可以将所有满足该条件的m值中的最小值作为最大失效链路条数。这样做,能够较大概率保证对于不同的目的交换接入单元进行非对称处理时,最终关闭的源端链路不同。In the initial transmission link table, the difference between the initial transmission link numbers corresponding to adjacent destination switching access units can be set to be greater than or equal to the destination end chain from the switching unit to the destination switching access unit The maximum number of failed links of the road. The maximum number of failed links is not necessarily an absolute maximum number of failed links, but can be a preset value or a statistical value, that is, when the statistics When the probability that the number of link failures is higher than m is lower than a predetermined probability threshold, the minimum value of all m values that meet the condition can be used as the maximum number of failed links. In this way, it can be ensured with a greater probability that when asymmetric processing is performed on different destination switching access units, the source links that are finally closed are different.
在执行实施例1中所述的方法时,对于所述交换系统的每个目的交换接入单元,可以按照预定的源交换接入单元顺序执行所述非对称性处理。也就是说,在针对当前目的交换接入单元进行非对称处理时,由于需要分别对每个源交换接入单元进行可达信息的计算,所以按照什么样的源交换接入单元顺序进行计算,是一个可以考虑的问题。在实际应用中,该顺序是可以配置的,配置方式 可以是设置一个源交换接入单元链接表。按照预定的源交换接入单元顺序执行所述非对称性处理可以包括:读取源交换接入单元链接表以确定预定的源交换接入单元顺序,其中,所述源交换接入单元链接表中包含多个源交换接入单元之间的链接关系;按照预定的源交换接入单元顺序执行所述非对称性处理。When the method described in Embodiment 1 is executed, for each destination switching access unit of the switching system, the asymmetric processing can be performed in sequence according to a predetermined source switching access unit. That is to say, when performing asymmetric processing for the current destination switching access unit, since it is necessary to calculate the reachability information for each source switching access unit separately, the calculation is performed according to which source switching access unit order, It is a question that can be considered. In practical applications, the sequence can be configured, and the configuration method can be to set a link table of the source switching access unit. Performing the asymmetric processing according to a predetermined source switching access unit sequence may include: reading a source switching access unit link table to determine a predetermined source switching access unit sequence, wherein the source switching access unit link table It contains the link relationship between multiple source switching access units; the asymmetric processing is performed in sequence according to a predetermined source switching access unit.
为了在执行完非对称处理之后,让源交换接入单元也能够了解路由信息的变更,可以在将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达之后,通知所述源交换接入单元所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,以便源交换接入单元相应变更发送数据包的链路。In order to allow the source switching access unit to understand the change of routing information after the asymmetric processing is performed, the routing information of the selected at least one source link to the destination switching access unit can be changed to incapable. After that, the source switching access unit is notified to change the routing information of the at least one source link to the destination switching access unit to be unreachable, so that the source switching access unit changes the link for sending the data packet accordingly.
通过以上的实施方式的描述,上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,也可以通过硬件实现。本公开可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括至少一个指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明多个实施例所述的方法。Through the description of the above embodiments, the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, or can be implemented by hardware. The present disclosure can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes at least one instruction to enable a terminal device (which can be a mobile phone, a computer , A server, or a network device, etc.) execute the methods described in the multiple embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种用于交换系统的路由信息处理装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, there is also provided a routing information processing device for a switching system, which is used to implement the above-mentioned embodiments and optional implementation manners, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
图5是根据本发明实施例的用于交换系统的路由信息处理装置的结构框图,如图5所示,该装置包括循环控制模块52和非对称性处理模块54。FIG. 5 is a structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention. As shown in FIG. 5, the device includes a loop control module 52 and an asymmetric processing module 54.
所述循环控制模块52,设置为对于所述交换系统的每个目的交换接入单元,调用非对称性处理模块54;The cycle control module 52 is configured to call the asymmetry processing module 54 for each destination switching access unit of the switching system;
所述非对称性处理模块54包括:The asymmetry processing module 54 includes:
非对称性评估单元542,设置为对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性;The asymmetry evaluation unit 542 is configured to determine, for each source switching access unit, the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the exchange from the SF to the destination Whether there is asymmetry between the destination bandwidth of the access unit;
非对称性处理单元544,设置为在所述非对称性评估单元542确定存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。The asymmetry processing unit 544 is configured to switch multiple source-end links from the source switching access unit to the SF according to a preset strategy when the asymmetry evaluating unit 542 determines that asymmetry exists Select at least one source link in the selected link, and change the routing information from the selected at least one source link to the destination switching access unit to be unreachable, wherein the preset strategy includes: In the case of different incoming units, the selected at least one source link is at least partially different.
所述非对称性处理单元544设置为:按照当前目的交换接入单元的标识dst_id查找当前目的交换接入单元对应的起始链路,其中,不同的目的交换接入单元对应的起始链路不同;以查找到的所述起始链路作为选择的起始点,从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路。The asymmetry processing unit 544 is configured to search for the start link corresponding to the current target switch access unit according to the identifier dst_id of the current target switch access unit, where different target switch access units correspond to the start link Different; using the found starting link as the starting point of selection, and selecting at least one source link from the multiple source links from the source switching access unit to the SF.
所述非对称性处理单元544设置为:按照当前目的交换接入单元的标识dst_id查找首发链路表,以确定当前目的交换接入单元对应的首发链路号,其中,所述首发链路表包括不同的目的交换接入单元与其各自对应的首发链路号的对应关系;根据所述首发链路号确定所述起始链路。The asymmetry processing unit 544 is configured to look up the initial transmission link table according to the identifier dst_id of the current destination switching access unit to determine the initial transmission link number corresponding to the current destination switching access unit, wherein the initial transmission link table The corresponding relationship between different destination switching access units and their corresponding initial link numbers is included; the initial link is determined according to the initial link number.
图6是根据本发明实施例的用于交换系统的路由信息处理装置的示例性结构框图,如图6所示,该装置还可以包括通知模块62,耦合至所述非对称性处理模块54,设置为通知所述源交换接入单元所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达。Fig. 6 is an exemplary structural block diagram of a routing information processing device for a switching system according to an embodiment of the present invention. As shown in Fig. 6, the device may further include a notification module 62 coupled to the asymmetric processing module 54, Configured to notify the source switching access unit that the routing information of the at least one source link to the destination switching access unit is changed to be unreachable.
上述多个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述多个模块以任意组合的形式分别位于不同的处理器中。The above-mentioned multiple modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned multiple modules are respectively in the form of any combination. Located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例。An embodiment of the present invention also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the foregoing method embodiments when running.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the aforementioned storage medium may be configured to store a computer program for executing the following steps:
S1,对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性。S1. For each source switching access unit, determine the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit Is there any asymmetry between them?
S2,在存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。S2: In the case of asymmetry, select at least one source link from the multiple source links from the source switch access unit to the SF according to a preset strategy, and set the selected at least one source link The routing information of a source link to the destination switching access unit is changed to be unreachable, where the preset strategy includes: when the destination switching access unit is different, the selected at least one source link The roads are at least partly different.
可选地,在本实施例中,上述存储介质可以包括:通用串行总线闪存盘(Universal Serial Bus flash disk,U盘)、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等多种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned storage medium may include: Universal Serial Bus flash disk (USB flash disk), Read-Only Memory (ROM), random access memory ( Random Access Memory, RAM), mobile hard drives, magnetic disks or optical discs and other media that can store computer programs.
本发明的实施例还提供了一种分组交换设备,包括存储器和处理器,该存 储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例。An embodiment of the present invention also provides a packet switching device, including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the foregoing method embodiments.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to execute the following steps through a computer program:
S1,对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性。S1. For each source switching access unit, determine the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit Is there any asymmetry between them?
S2,在存在非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。S2: In the case of asymmetry, select at least one source link from the multiple source links from the source switch access unit to the SF according to a preset strategy, and set the selected at least one source link The routing information of a source link to the destination switching access unit is changed to be unreachable, where the preset strategy includes: when the destination switching access unit is different, the selected at least one source link The roads are at least partly different.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for the examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and alternative implementations, and this embodiment will not be repeated here.
实施例4Example 4
本实施例中给出了一个用于交换系统的路由信息处理方法的应用实例。在该实例中,从实现角度描述了算法的处理过程。In this embodiment, an application example of the routing information processing method for the switching system is given. In this example, the process of the algorithm is described from the perspective of implementation.
为完成源带宽不能大于目的带宽的计算,首先需要从单播转发表中,得到目的dst_id带宽总和。在对源dst_id的遍历计算过程中,如果不考虑针对不同目的dst_id计算相同源src_id时候,链路计算选择的相关性,不同dst_id计算相同源src_id对于链路计算的关断效果则会趋近于相同。因此在本实施例的算法过程中,增加配置首发链路表(简称为首发Link表),对不同目的dst_id计算相同源src_id时候,对链路选择的起始位置进行算法处理,可以根据实际连接关系配置决定,通过本实施例的处理后,对于不同目的的相同源不对称计算的时候,可以有效避免选择链路趋于相同的算法缺陷问题,有效改善不对称的拥塞处理效果。In order to complete the calculation that the source bandwidth cannot be greater than the destination bandwidth, it is first necessary to obtain the total bandwidth of the destination dst_id from the unicast forwarding table. In the traversal calculation of the source dst_id, if the calculation of the same source src_id for different purposes dst_id is not considered, the correlation of the link calculation selection, the shutdown effect of the same source src_id calculated by different dst_id on the link calculation will be close to the same. Therefore, in the algorithm process of this embodiment, the configuration of the initial link table (referred to as the initial link table) is added. When calculating the same source src_id for different destination dst_id, algorithm processing is performed on the starting position of the link selection, which can be based on the actual connection The relationship configuration determines that after processing in this embodiment, when asymmetric calculations are performed for the same source of different purposes, the problem of algorithmic defects that select links tend to be the same can be effectively avoided, and the asymmetric congestion processing effect can be effectively improved.
输入表项的改进Improvement of input table entries
以图3所示组网为例,对输入表项说明如下:Taking the networking shown in Figure 3 as an example, the input table items are described as follows:
1、单播转发表,下表1是单播转发表,表示到达目的交换单元的连接关系。1. Unicast forwarding table. Table 1 below is the unicast forwarding table, indicating the connection relationship to the destination switching unit.
表1:单播转发表Table 1: Unicast forwarding table
Figure PCTCN2020118059-appb-000001
Figure PCTCN2020118059-appb-000001
Figure PCTCN2020118059-appb-000002
Figure PCTCN2020118059-appb-000002
该表中,行坐标是SA_ID,0、1、2分别对应SA_0#、SA_1#、SA_2#,纵坐标代表SF与SA相连接的端口号,SA_0#、SA_1#、SA_2#分别对应四个元素,为1代表SF与SA_0#、SA_1#、SA_2#之间分别有四条链路相连接。当元素值为0,则代表有链路失效。In this table, the row coordinate is SA_ID, 0, 1, 2 correspond to SA_0#, SA_1#, SA_2#, the ordinate represents the port number connecting SF and SA, SA_0#, SA_1#, SA_2# correspond to four elements respectively , 1 means that there are four links connected between SF and SA_0#, SA_1#, SA_2# respectively. When the element value is 0, it means that there is a link failure.
2、同槽位src_id连接关系表(简称:SRC链接表,对应于前述实施例中的目的交换接入单元链接表)。2. The same slot src_id connection relationship table (abbreviation: SRC link table, corresponding to the destination exchange access unit link table in the foregoing embodiment).
下表2是SRC链接表,表示src_id的计算顺序。Table 2 below is the SRC link table, indicating the calculation sequence of src_id.
表2:SRC链接表Table 2: SRC link table
Figure PCTCN2020118059-appb-000003
Figure PCTCN2020118059-appb-000003
行坐标:src_id。Row coordinates: src_id.
纵坐标:bit[3]=1表示当前行src_id是连接关系的最后一个节点,bit[2:0]为当bit[3]=0时有效,表示链接到下一个节点的src_id号。The ordinate: bit[3]=1 indicates that the src_id of the current row is the last node of the connection relationship, and bit[2:0] is valid when bit[3]=0, which indicates the src_id number linked to the next node.
实际上,该SRC链接表类似于一种单链表,以表2中的SRC链接表为例:In fact, the SRC linked list is similar to a singly linked list. Take the SRC linked list in Table 2 as an example:
本例中第一行的行坐标为0,表明第一个要计算的src_id=0,第一行的bit[3]=0,表明其不是最后一个节点,此时bit[2:0]有效,bit[2:0]所指示的值为001,该值即为下一个要计算的src_id值(其他实施例中也可以为其地址)。因为第一行bit[2:0]的值为001,所以继src_id=0之后,下一个要计算的src_id=1,第二行的行坐标为1,应进入第二行。In this example, the row coordinate of the first row is 0, indicating that the first src_id to be calculated=0, and the bit[3]=0 of the first row, indicating that it is not the last node, and bit[2:0] is valid at this time , The value indicated by bit[2:0] is 001, which is the next src_id value to be calculated (it can also be its address in other embodiments). Because the value of bit[2:0] of the first row is 001, after src_id=0, the next src_id=1 to be calculated, the row coordinate of the second row is 1, and the second row should be entered.
第二行的bit[3]=0,表明src_id=1不是最后一个节点,此时bit[2:0]有效,bit[2:0]所指示的值为010,该值即为下一个要计算的src_id值。因为第二行bit[2:0]的值为010,所以继src_id=1之后,下一个要计算的src_id=2,第三行的行坐标为2,应进入第三行。The bit[3]=0 in the second row indicates that src_id=1 is not the last node. At this time, bit[2:0] is valid, and the value indicated by bit[2:0] is 010, which is the next requirement. The calculated src_id value. Because the value of bit[2:0] in the second row is 010, after src_id=1, the next src_id=2 to be calculated, the row coordinate of the third row is 2, and the third row should be entered.
第三行的bit[3]=1,表明src_id=2是最后一个节点。The bit[3]=1 in the third row indicates that src_id=2 is the last node.
综上,基于表2中的SRC链接表,可以看出src_id的计算顺序是0->1->2, 同一槽位的src_id从小到大链接。In summary, based on the SRC link table in Table 2, it can be seen that the calculation order of src_id is 0->1->2, and the src_id of the same slot is linked from small to large.
在实际应用中,链接顺序可以随需求配置,而不限于从小到大的顺序。In practical applications, the link sequence can be configured as required, and is not limited to the order from small to large.
3、首条发送路由Link_ID表(简称:首发Link表,对应于前述实施例中的首发链路表)。3. The first sending route Link_ID table (abbreviated as the first sending Link table, which corresponds to the first sending link table in the foregoing embodiment).
下表3是首发Link表,表示对每个dst_id进行非对称处理时,应当首先选择的链路号,以下也称首发Link号。Table 3 below is the first link table, which indicates the link number that should be selected first when performing asymmetric processing on each dst_id, which is also called the first link number hereinafter.
表3:首发Link表Table 3: First Link Table
Figure PCTCN2020118059-appb-000004
Figure PCTCN2020118059-appb-000004
行坐标:dst_id。Row coordinates: dst_id.
纵坐标:针对当前dst_id应该首先选择的链接号Link_ID,例如,对于dst_id=0,其所在行的值为0001,表明首发链路号是1,对于dst_id=1,其所在行的值为0111,表明首发链路号是7,对于dst_id=2,其所在行的值为1100,表明首发链路号是12。在本例中,假定在源端有四条链路,则需要对首发链路号以4为除数取模(MOD运算),以余数(也称为首发有效Link号)对应的链路作为首发链路。Y-coordinate: The link number Link_ID that should be selected first for the current dst_id, for example, for dst_id=0, the value of its row is 0001, indicating that the initial link number is 1, for dst_id=1, the value of its row is 0111, It indicates that the initial link number is 7. For dst_id=2, the value of its row is 1100, which indicates that the initial link number is 12. In this example, assuming that there are four links at the source end, the first link number needs to be modulo 4 (MOD operation), and the remainder (also known as the first effective link number) corresponds to the link as the first link road.
非对称处理流程Asymmetric processing flow
图7是根据本发明实施例4的用于交换系统的路由信息处理方法的实现流程图,如图7所示,包括以下步骤:Fig. 7 is an implementation flowchart of a routing information processing method for a switching system according to Embodiment 4 of the present invention. As shown in Fig. 7, it includes the following steps:
S701,读取第一个dst_id对应的单播转发表,通过得到出口port数量以及port对应的速率,计算出口带宽。S701: Read the unicast forwarding table corresponding to the first dst_id, and calculate the egress bandwidth by obtaining the number of egress ports and the rate corresponding to the port.
S702,读取SRC链接表,得到要计算的src_id,并根据src_id再次读取单播转发表;与此同时以当前dst_id为地址读取首发Link表,获得要计算的首发Link号。S702: Read the SRC link table to obtain the src_id to be calculated, and read the unicast forwarding table again according to the src_id; at the same time, read the first link table with the current dst_id as the address to obtain the first link number to be calculated.
S703,根据src_id查询出口Link号信息,同时以首发有效Link号为起始,遍历Link号完成一轮可达信息(Destination Reachable,DR)的计算。S703: Query the export link number information according to the src_id, and start with the first effective link number, traverse the link number to complete a round of reachability information (Destination Reachable, DR) calculation.
S704,如果根据SRC链接表bit[3]信息判断不是尾部节点,则跳到下一节点,继续完成src_id的计算。如果根据SRC链接表bit[3]信息判断是尾部节点, 跳到下一个dst_id节点计算。S704: If it is determined that it is not a tail node according to the information of the SRC link table bit[3], skip to the next node and continue to complete the calculation of src_id. If it is judged to be the tail node according to the information of the SRC link table bit[3], skip to the next dst_id node calculation.
S705,确认当前dst_id是否为最后一个节点,如果是,当前全部dst_id计算完成,整个流程结束。S705: Confirm whether the current dst_id is the last node. If it is, all current dst_id calculations are completed, and the entire process ends.
图8是根据本发明实施例4的用于交换系统的路由信息处理方法的应用示意图。如图8所示,采用上述改进型非对称算法执行后,可以达到不同SA选择关闭上游链路能够协同执行,对于dst_id=0和dst_id=1分别进行非对称处理后,SA_2#在源端关闭的链路分别为Link_3、Link_2和Link_1、Link_0,不存在重叠,因而不容易产生二次拥塞的问题。Fig. 8 is an application schematic diagram of a routing information processing method for a switching system according to Embodiment 4 of the present invention. As shown in Figure 8, after the implementation of the above-mentioned improved asymmetric algorithm, different SAs can choose to close the upstream link to be executed cooperatively. After asymmetric processing is performed on dst_id=0 and dst_id=1, SA_2# is closed at the source The links are Link_3, Link_2 and Link_1, Link_0, there is no overlap, so it is not easy to cause secondary congestion.
上述的本公开的多个模块或多个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。The above-mentioned multiple modules or multiple steps of the present disclosure can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be It is implemented by the program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, Or they can be made into multiple integrated circuit modules respectively, or multiple modules or steps of them can be made into a single integrated circuit module to achieve. In this way, the present disclosure is not limited to any specific combination of hardware and software.

Claims (14)

  1. 一种用于交换系统的路由信息处理方法,包括:A routing information processing method for a switching system, including:
    对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性;For each source switching access unit, determine between the source bandwidth from the source switching access unit to the switching unit SF of the switching system and the destination bandwidth from the SF to the destination switching access unit Whether there is asymmetry;
    在存在所述非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。In the case of the asymmetry, at least one source link is selected from the multiple source links from the source switching access unit to the SF according to a preset strategy, and the selected at least The routing information of a source link to the destination switching access unit is changed to be unreachable, where the preset strategy includes: when the destination switching access unit is different, the selected at least one source link The roads are at least partly different.
  2. 根据权利要求1所述的方法,其中,所述对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性包括:The method according to claim 1, wherein, for each source switching access unit, the source bandwidth from the source switching access unit to the switching unit SF of the switching system is determined to be different from the source bandwidth from the SF to the switching unit SF of the switching system. Whether there is asymmetry between the destination end bandwidths of the destination switching access unit includes:
    对于每个源交换接入单元,比较从所述源交换接入单元到所述SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽;For each source switching access unit, compare the source bandwidth from the source switching access unit to the SF with the destination bandwidth from the SF to the destination switching access unit;
    在所述源端带宽大于所述目的端带宽的情况下,确定从所述源交换接入单元到所述SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间存在所述非对称性。In the case that the source bandwidth is greater than the destination bandwidth, determine the source bandwidth from the source switching access unit to the SF and the destination bandwidth from the SF to the destination switching access unit The asymmetry exists between.
  3. 根据权利要求1所述的方法,其中,所述按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路包括:The method according to claim 1, wherein the selecting at least one source link from the multiple source links from the source switching access unit to the SF according to a preset policy comprises:
    按照当前目的交换接入单元的标识dst_id查找所述当前目的交换接入单元对应的起始链路,其中,不同的目的交换接入单元对应的起始链路不同;Searching for the starting link corresponding to the current target switching access unit according to the identifier dst_id of the current target switching access unit, where different target switching access units correspond to different starting links;
    以查找到的所述起始链路作为选择的起始点,从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路。Using the found starting link as the starting point of selection, at least one source link is selected from the multiple source links from the source switching access unit to the SF.
  4. 根据权利要求3所述的方法,其中,所述按照当前目的交换接入单元的标识dst_id查找所述当前目的交换接入单元对应的起始链路包括:The method according to claim 3, wherein the searching for the starting link corresponding to the current destination switching access unit according to the identifier dst_id of the current destination switching access unit comprises:
    按照所述当前目的交换接入单元的标识dst_id查找首发链路表,以确定所述当前目的交换接入单元对应的首发链路号,其中,所述首发链路表包括不同的目的交换接入单元与不同的目的交换接入单元各自对应的首发链路号的对应关系;According to the identifier dst_id of the current destination switch access unit, the initial link table is searched to determine the initial link number corresponding to the current destination switch access unit, wherein the initial link table includes different destination switch accesses. The corresponding relationship between the unit and the different purpose exchange access unit corresponding to the initial link number;
    根据所述首发链路号确定所述起始链路。The starting link is determined according to the starting link number.
  5. 根据权利要求4所述的方法,其中,所述根据所述首发链路号确定所述起始链路包括以下之一:The method according to claim 4, wherein the determining the starting link according to the initial link number comprises one of the following:
    将链路号与所述首发链路号一致的源端链路作为所述起始链路;Taking a source link whose link number is consistent with the initial link number as the starting link;
    以所述源交换接入单元到所述SF的多条源端链路的总条数作为除数,对所述首发链路号取模,将链路号与取模得到的余数一致的源端链路作为所述起始链路。Taking the total number of multiple source links from the source switching access unit to the SF as the divisor, modulo the initial link number, and the source end whose link number is the same as the remainder obtained by modulating the link number The link serves as the starting link.
  6. 根据权利要求1所述的方法,其中,对于所述交换系统的每个目的交换接入单元,按照预定的源交换接入单元顺序执行所述用于交换系统的路由信息处理方法。The method according to claim 1, wherein, for each destination switching access unit of the switching system, the routing information processing method for the switching system is executed in sequence according to a predetermined source switching access unit.
  7. 根据权利要求6所述的方法,其中,所述按照预定的源交换接入单元顺序执行所述用于交换系统的路由信息处理方法包括:7. The method according to claim 6, wherein the executing the routing information processing method for the switching system according to a predetermined source switching access unit sequence comprises:
    读取源交换接入单元链接表以确定所述预定的源交换接入单元顺序,其中,所述源交换接入单元链接表中包含多个源交换接入单元之间的链接关系;Reading the source switching access unit link table to determine the predetermined sequence of the source switching access units, wherein the source switching access unit link table contains a plurality of link relationships between the source switching access units;
    按照所述预定的源交换接入单元顺序执行所述用于交换系统的路由信息处理方法。The routing information processing method for the switching system is executed sequentially according to the predetermined source switching access unit.
  8. 根据权利要求1至7中任一项所述的方法,其中,在所述将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达之后,还包括:The method according to any one of claims 1 to 7, wherein, after the routing information of the selected at least one source link to the destination switching access unit is changed to unreachable, the method further comprises :
    通知所述源交换接入单元所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达。Notifying the source switching access unit that the routing information of the at least one source link to the destination switching access unit is changed to be unreachable.
  9. 一种用于交换系统的路由信息处理装置,包括:循环控制模块和非对称性处理模块,其中,A routing information processing device used in a switching system, comprising: a circulation control module and an asymmetric processing module, wherein,
    所述循环控制模块,设置为调用所述非对称性处理模块;The cycle control module is configured to call the asymmetry processing module;
    所述非对称性处理模块包括非对称性评估单元和非对称性处理单元,其中,The asymmetry processing module includes an asymmetry evaluation unit and an asymmetry processing unit, wherein,
    所述非对称性评估单元,设置为对于每个源交换接入单元,确定从所述源交换接入单元到所述交换系统的交换单元SF的源端带宽与从所述SF到所述目的交换接入单元的目的端带宽之间是否存在非对称性;The asymmetry evaluation unit is configured to determine, for each source switching access unit, the source bandwidth from the source switching access unit to the switching unit SF of the switching system and from the SF to the destination Whether there is asymmetry between the destination bandwidths of the switching access unit;
    所述非对称性处理单元,设置为在所述非对称性评估单元确定存在所述非对称性的情况下,按照预设策略从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路,并将选择的所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达,其中,所述预设策略包括:在目的交换接入单元不同的情况下,选择的所述至少一条源端链路至少部分不相同。The asymmetry processing unit is configured to switch the access unit from the source to the multiple source ends of the SF according to a preset strategy when the asymmetry evaluation unit determines that the asymmetry exists At least one source link is selected from the links, and the routing information from the selected at least one source link to the destination switching access unit is changed to unreachable, wherein the preset strategy includes: In the case of different switching access units, the selected at least one source link is at least partially different.
  10. 根据权利要求9所述的装置,其中,所述非对称性处理单元是设置为:The device according to claim 9, wherein the asymmetry processing unit is configured to:
    按照当前目的交换接入单元的标识dst_id查找所述当前目的交换接入单元 对应的起始链路,其中,不同的目的交换接入单元对应的起始链路不同;Searching for the start link corresponding to the current target switch access unit according to the identifier dst_id of the current target switch access unit, where different target switch access units correspond to different start links;
    以查找到的所述起始链路作为选择的起始点,从所述源交换接入单元到所述SF的多条源端链路中选择至少一条源端链路。Using the found starting link as the starting point of selection, at least one source link is selected from the multiple source links from the source switching access unit to the SF.
  11. 根据权利要求10所述的装置,其中,所述非对称性处理单元是设置为:The device according to claim 10, wherein the asymmetry processing unit is configured to:
    按照所述当前目的交换接入单元的标识dst_id查找首发链路表,以确定所述当前目的交换接入单元对应的首发链路号,其中,所述首发链路表包括不同的目的交换接入单元与不同的目的交换接入单元各自对应的首发链路号的对应关系;According to the identifier dst_id of the current destination switch access unit, the initial link table is searched to determine the initial link number corresponding to the current destination switch access unit, wherein the initial link table includes different destination switch accesses. The corresponding relationship between the unit and the different purpose exchange access unit corresponding to the initial link number;
    根据所述首发链路号确定所述起始链路。The starting link is determined according to the starting link number.
  12. 根据权利要求9至11中任一项所述的装置,还包括:The device according to any one of claims 9 to 11, further comprising:
    通知模块,设置为通知所述源交换接入单元所述至少一条源端链路到所述目的交换接入单元的路由信息变更为不可达。The notification module is configured to notify the source switching access unit that the routing information of the at least one source link to the destination switching access unit is changed to be unreachable.
  13. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至8中任一项所述的用于交换系统的路由信息处理方法。A storage medium in which a computer program is stored, wherein the computer program is configured to execute the routing information processing method for an exchange system according to any one of claims 1 to 8 when the computer program is running .
  14. 一种分组交换设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至8中任一项所述的用于交换系统的路由信息处理方法。A packet switching device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the application described in any one of claims 1 to 8. The routing information processing method used in the switching system.
PCT/CN2020/118059 2019-09-30 2020-09-27 Method and apparatus for processing routing information used for switching system, and packet switching device WO2021063279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910944637.9 2019-09-30
CN201910944637.9A CN112583730A (en) 2019-09-30 2019-09-30 Routing information processing method and device for switching system and packet switching equipment

Publications (1)

Publication Number Publication Date
WO2021063279A1 true WO2021063279A1 (en) 2021-04-08

Family

ID=75116736

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118059 WO2021063279A1 (en) 2019-09-30 2020-09-27 Method and apparatus for processing routing information used for switching system, and packet switching device

Country Status (2)

Country Link
CN (1) CN112583730A (en)
WO (1) WO2021063279A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1150456A1 (en) * 2000-04-25 2001-10-31 Nortel Matra Cellular Radio telecommunications system with reduced delays for data transmission
CN101442490A (en) * 2008-12-30 2009-05-27 北京畅讯信通科技有限公司 Method for processing flux load equilibrium
KR20140131148A (en) * 2013-05-03 2014-11-12 (주) 시스메이트 Apparatus and Method of Subscriber Traffic Control in The Non-Symmetric Traffic Environment
CN107276908A (en) * 2016-04-07 2017-10-20 深圳市中兴微电子技术有限公司 A kind of RI-Pro method and packet switching equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941453A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 Data transmission method for uplink and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1150456A1 (en) * 2000-04-25 2001-10-31 Nortel Matra Cellular Radio telecommunications system with reduced delays for data transmission
CN101442490A (en) * 2008-12-30 2009-05-27 北京畅讯信通科技有限公司 Method for processing flux load equilibrium
KR20140131148A (en) * 2013-05-03 2014-11-12 (주) 시스메이트 Apparatus and Method of Subscriber Traffic Control in The Non-Symmetric Traffic Environment
CN107276908A (en) * 2016-04-07 2017-10-20 深圳市中兴微电子技术有限公司 A kind of RI-Pro method and packet switching equipment

Also Published As

Publication number Publication date
CN112583730A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US9887917B2 (en) Port extender
US9667431B2 (en) Method and system for constructing a loop free multicast tree in a data-center fabric
US9379971B2 (en) Method and apparatus for determining paths between source/destination pairs
US20110270979A1 (en) Reducing Propagation Of Message Floods In Computer Networks
CN107547243B (en) Message forwarding method and device
US8094584B2 (en) Node, network system, frame transfer method, and frame transfer program
US9130858B2 (en) System and method for supporting discovery and routing degraded fat-trees in a middleware machine environment
US9473360B2 (en) System and method for primary switch election in peer groups
US20160036688A1 (en) Preventing a loop in a vertical stack network
CN114257540B (en) Deadlock free rerouting using detour paths to resolve local link failure
US12003409B2 (en) Hierarchical ECMP control plane for dense topologies
US11997025B2 (en) Selection of member ports in a link aggregation group
US9736068B2 (en) Switching layer 2 (L2) flows to a correct node in a link aggregation domain
US9762433B2 (en) Fault tolerant folded CLOS networks
WO2016070010A1 (en) Redundancy for port extender chains
US20220311702A1 (en) Efficient propagation of fault routing notifications
WO2017174019A1 (en) Route information processing method, packet switching equipment, and storage medium
WO2021063279A1 (en) Method and apparatus for processing routing information used for switching system, and packet switching device
CN112187635A (en) Message forwarding method and device
WO2020156355A1 (en) Load sharing method, device, system, single board and storage medium
WO2024040959A1 (en) Packet forwarding processing method and apparatus, storage medium, and electronic device
CN111385182B (en) Traffic transmission method, device and system

Legal Events

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

Ref document number: 20872490

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

Country of ref document: EP

Kind code of ref document: A1