WO2016197729A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2016197729A1
WO2016197729A1 PCT/CN2016/080264 CN2016080264W WO2016197729A1 WO 2016197729 A1 WO2016197729 A1 WO 2016197729A1 CN 2016080264 W CN2016080264 W CN 2016080264W WO 2016197729 A1 WO2016197729 A1 WO 2016197729A1
Authority
WO
WIPO (PCT)
Prior art keywords
chip
link
value
source
notification message
Prior art date
Application number
PCT/CN2016/080264
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 WO2016197729A1 publication Critical patent/WO2016197729A1/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

Definitions

  • This document relates to the field of communications, and in particular, to a data transmission method and apparatus.
  • bandwidth capacity When a traditional router performs bandwidth upgrade, it is necessary to change the core switching fabric of the router, that is, to replace a new router, and the replaced old equipment cannot be utilized or cannot be effectively utilized. In order to meet the cost reduction requirements of operators compatible with old and new devices, the switching network system needs to be compatible with both new and old link rate boards.
  • System stability In order to meet the various needs of users, different boards will be designed. The links of various board hardware designs will often be unequal. In addition, due to the loss of the board and the external environment, some links will be worse due to the signal.
  • the switching network system generally consists of multiple switching boards and multiple line cards or service boards (hereinafter referred to as boards).
  • the traffic between the two boards needs to be converted by means of access on the board (A switch access (referred to as SA) chip and a plurality of switch fabrics (SF) chips on a plurality of switch boards are used for switching.
  • SA switch access
  • SF switch fabrics
  • FIG. 1 is a schematic diagram of a switching network system according to the related art.
  • SA0 to SA1 flows through four SFs, and each SF has five links with each SA, assuming each The maximum forwarding performance of a link is 10 G.
  • the traffic entering SF0 is 45G.
  • the outbound direction of SA1 and SF0 has three links, and the maximum outbound forwarding capability is up to 30G. Therefore, the traffic destined for 45G cannot be forwarded from three links to SA1, causing congestion of SF0, causing information loss and network quality degradation.
  • the above-mentioned traditional authorization scheduling scheme only adjusts the total traffic entering all switching network chips, and cannot control the traffic entering each switching network chip.
  • the switching network may be congested.
  • the defect of information loss can not realize the traffic adaptive load balancing between the old and new multiple link rate boards at the same time.
  • Disclosed herein is a notification message and data transmission method and apparatus to address at least the problem of data traffic congestion of a switching network chip in a switching network system in the related art.
  • the method for transmitting a notification message disclosed in the present disclosure includes: the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip; and the SF chip determines according to the obtained link information of each SA chip.
  • the link of the notification message of the destination SA chip is sent to the source SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link.
  • the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip, where the link information includes: total number of physical links, link number, link status, link rate.
  • the SF chip determines, according to the obtained link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the SF chip is configured according to the link.
  • Information update SA effective link number SAVL table and SA chip weight SAW table, and update link The LW value of the corresponding link of the SA chip in the weight LW table, wherein the SAVL table records the effective link number of the SA chip connected to the SF chip, and the SAW table records the weights of all the SA chips.
  • the LW table records the weights of all the links of each SA chip; the SF chip queries the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, respectively, and queries the LW table to obtain the Determining an LW value of a link of the source SA chip according to the SAW value, the SAVL value, and the LW value, and determining, by calculation, a notification message for sending the destination SA chip reachable to the source SA chip Link.
  • the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip by using the SAW value, the SAVL value, and the LW value includes: Multiplying a SAW value of the target SA chip by the SAVL value to obtain a product of the SAW value and the SAVL value; and performing a product of the SAW value and the SAVL value and an LW value of the source SA chip Comparing; in the case where the LW value of the link of the source SA chip is less than or equal to the product of the SAW value of the destination SA chip and the SAVL value, the SF chip determines the link transmission through the source SA chip The notification message of the destination SA chip is described to the source SA chip.
  • the present invention also discloses a data sending method, comprising: a source switching access SA chip receives a notification message sent by a switching network SF chip, wherein the notification message is that the SF chip acquires each of the SF chips connected After the link information of the SA chip is sent by the link determined according to the obtained link information of each SA chip, the source SA chip sends the link to the destination SA chip through the link according to the notification message. data.
  • the method further includes: the source SA chip updating the stored forwarding table of the destination SA chip according to the notification message, where The correspondence between the destination SA chip and the available link is recorded in the forwarding table.
  • the source SA chip sends data to the destination SA chip by using the link according to the notification message, where the source SA chip determines to send data to the destination SA chip by searching the forwarding table.
  • the invention also discloses a notification message sending device, which is applied to a switching network SF chip, comprising: an obtaining module, configured to acquire link information of each switched access SA chip connected to the SF chip; and a determining module, configured to Determining for the source according to the obtained link information of each SA chip
  • the SA chip sends a link of the notification message reachable by the destination SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link.
  • the determining module includes: an updating unit, configured to update the SA effective link number SAVL table and the weighted SAW table of the SA chip according to the link information, and update the corresponding link of the SA chip in the link weight LW table
  • the LW value wherein the SAVL table records the effective link number of the SA chip connected to the SF chip, the SAW table records the weights of all the SA chips, and the LW table records each SA chip.
  • the query unit is configured to query the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the destination SA chip, respectively, and query the LW table to obtain the link of the source SA chip.
  • An LW value determining unit configured to determine, by the calculation, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip according to the SAW value, the SAVL value, and the LW value.
  • the invention also discloses a data sending device, which is applied to a source switching access SA chip, comprising: a receiving module, configured to receive a notification message sent by a switching network SF chip, wherein the notification message is that the SF chip is acquiring and After the link information of each SA chip connected to the SF chip is sent by the link determined according to the acquired link information of each SA chip, the sending module is configured to pass the chain according to the notification message.
  • the road sends data to the destination SA chip.
  • the technical solution of the embodiment of the present invention uses the switching network SF chip to obtain link information of each exchange access SA chip connected to the SF chip; the SF chip is determined according to the acquired link information of one SA chip of two meters. a link for sending a notification message of the destination SA chip reachable to the source SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link, and the related information is resolved.
  • the problem of data traffic congestion of the switching network chip in the switching network system avoids data congestion in the switching network and improves the success rate of data forwarding.
  • FIG. 1 is a schematic diagram of a switching network system in the related art
  • Embodiment 2 is a first flowchart of a data transmission method in Embodiment 1 of the present invention
  • Embodiment 3 is a second flowchart of a data transmission method in Embodiment 2 of the present invention.
  • FIG. 4 is a block diagram 1 of a data transmitting apparatus in Embodiment 3 of the present invention.
  • FIG. 5 is a block diagram of a data transmitting apparatus in Embodiment 4 of the present invention.
  • FIG. 6 is a second block diagram of a data transmitting apparatus in Embodiment 5 of the present invention.
  • FIG. 7 is a first schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention.
  • FIG. 8 is a second schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention.
  • FIG. 9 is a third schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention.
  • FIG. 2 is a flowchart 1 of a method for sending a notification message according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step S202 the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip;
  • step S204 the SF chip determines, according to the acquired link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the notification message is used to notify the source SA chip to pass.
  • the determined link sends data to the destination SA chip.
  • step S204 the problem of data traffic congestion of the switching network chip in the switching network system in the related art is solved, the data is congested in the switching network, and the success rate of data forwarding is improved.
  • the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip according to the obtained link information of each SA chip may include: updating, by the SF chip, the obtained link information.
  • the SAW value and the SAVL value are obtained by querying the LW table to obtain the LW value of the link connected to the source SA chip; the SF chip is determined by calculation to be used for the source SA chip according to the queried SAW value, the SAVL value, and the LW value. Send the link of the notification message reachable by the destination SA chip.
  • the determined link for sending the notification message reachable by the destination SA chip to the source SA chip includes one or more links.
  • the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip according to the SAW value, the SAVL value, and the LW value may include: The SAW value is multiplied by the SAVL value to obtain a product of the SAW value and the SAVL value; the product of the SAW value and the SAVL value is compared with the LW value of the source SA chip; the LW of the link of the source SA chip If the value is less than or equal to the product of the SAW value of the destination SA chip and the SAVL value, the SF chip determines that the notification message reachable by the destination SA chip is sent to the source SA chip through the link of the source SA chip.
  • the above link information may include the total number of physical links, link number, link status, and link rate.
  • FIG. 3 is a flowchart 2 of the data transmission method according to the embodiment of the present invention, as shown in FIG. 3, including:
  • the source switching access SA chip receives the notification message sent by the switching network SF chip, where the notification message is that the SF chip passes the link information of each SA chip connected to the SF chip, and then passes the Transmitted according to the link determined by the acquired link information of each SA chip;
  • Step S304 the source SA chip sends the number to the destination SA chip through the link according to the notification message. according to.
  • the source SA chip After the source SA chip receives the notification message sent by the SF chip, the source SA chip updates the stored forwarding table of the destination SA chip according to the notification message, where the forwarding table records Correspondence between the destination SA chip and the available link.
  • the source SA chip sends data to the destination SA chip through the link according to the notification message, where the source SA chip determines a link for sending data to the destination SA chip by searching the forwarding table.
  • the source SA chip transmits data to the destination SA chip through the determined link.
  • FIG. 4 is a block diagram 1 of a notification message sending apparatus according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • the obtaining module 42 is configured to acquire link information of each switched access SA chip connected to the SF chip;
  • the determining module 44 is configured to determine, according to the acquired link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the notification message is used to notify the source SA chip to pass The determined link sends data to the destination SA chip.
  • FIG. 5 is a block diagram of a data transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 5, the determining module 44 includes:
  • the updating unit 52 is configured to update the SA chip effective link number SAVL table and the SA chip weight SAW table according to the link information, and update the record value of the corresponding link of the SA chip in the link weight LW table, wherein the SAVL table Recording the effective link number of the SA chip connected to the SF chip, the SAW table records the weights of all the SA chips, and the LW table records the weights of all the links of each SA chip;
  • the query unit 54 is configured to query the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, and query the LW table to obtain the LW value of the link connected to the source SA chip.
  • the determining unit 56 is configured to determine, by calculation, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip according to the queried SAW value, the SAVL value, and the LW value.
  • FIG. 6 is a block diagram 2 of the data sending apparatus according to the embodiment of the present invention. As shown in FIG. 6, the method includes:
  • the receiving module 62 is configured to receive a notification message sent by the switching network SF chip, where the notification message is that the SF chip obtains the SA information of each SA chip connected to the SF chip, The link determined by the link information of the chip is sent;
  • the sending module 64 is configured to send data to the destination SA chip through the link according to the notification message.
  • the embodiment of the invention provides an effective switching network load-adaptive load balancing scheduling method, which comprises: adaptively controlling whether the switching network chip sends the destination link to the SA link on the source end card through real-time monitoring.
  • the reachable cell of the SA the reachable cell is used to notify the source SA chip that the target SA is reachable, to achieve the actual control of the packets on the source card SA from which links are forwarded to the destination board through the switch fabric chip.
  • the SA balances the incoming and outgoing traffic of the switching network chip to avoid congestion of the switching network chip and improve system stability.
  • This program includes the following modules:
  • the notification recording module including the recording unit, receives and records all remote online card information (including slot number, board type, and board link rate, etc.) notified by the master.
  • the recorded online remote board information can be queried by the link collection and detection module.
  • Link information collection and detection module including statistical unit: This module has two functions. One is to query the record SF to each SA on the remote board according to the remote board information recorded by the notification record module. Information about the physical link (including the total number of physical links, link number, link status, link rate, etc.). The second is to monitor all the link changes of the SF in real time to decide whether to start the table update module and the table lookup processing module.
  • a table update module comprising a first update unit and a second update unit, updating the SAW value of each corresponding SA in the SAW table according to all remote online card information recorded by the notification record module; collecting according to the link information Physical link of the SA on all remote online boards recorded by the detection module The information update sets the SAVL value of the corresponding SA in the SAVL table. Finally, according to the link information, the SAVL and the SAW table values connected to the SA on all the online boards obtained by the link collection and detection module, the LW table is updated by calculation. The LW value of all links.
  • the SAW table records the weights of all SAs, and assigns a value to each SA in the system. If there are at most m SAs in the system, the table includes m records.
  • the rules for setting this table are as follows: If the lowest link rate supported by the SF is L, the value of the record in the SAW table corresponding to the SA is: the SA link rate/L.
  • the SAVL table records the number of valid links between the SF and all SAs, and assigns a value to each SA in the system. If there are m SAs in the system, the table includes m records.
  • the rules for setting this table are as follows: Assume that the SF has N physical links with a certain SA, and among the N physical links, P is a valid link, and if the NP is an invalid link, the SA corresponding to the SA is SAVL. The value of the record in the table is the number of valid links P.
  • the LW table records the weights of all physical links of the SF, and assigns a value to all physical links of the SF. If the SF has k physical links, the LW table of the SF includes k records.
  • the rules for setting this table are as follows: Assume that the highest link rate supported by the SF is H, the lowest link rate is L, and the maximum number of links in the SF is k.
  • the value of the record in the corresponding LW table is fixed to H*k/N for the physical link that is invalid for the NP strip;
  • a valid physical link the value of the record in the corresponding LW table is set in the order of the value t of the SA in the SAW table, and is set from the smallest to the largest, that is, the P effective physical links correspond to the LW table.
  • the value of the record in this is: 1*t/2*t/ Weg/P*t.
  • the table lookup processing module includes: querying the value of the corresponding record of the SA in the SAW table and the SAVL table, and the multiplied value corresponds to all the physical links of the SF to the source SA in the LW table. The recorded values are compared to determine which physical links of the destination SA's reachable cells are sent to the source SA.
  • the determined link may include one or more.
  • the call cooperation relationship between the above modules and the table is as follows: the notification record module records the master to deliver the remote online card information for the link collection detection module to query; the link information collection module queries the remote online board recorded by the notification record module. Card information, collects and records the physical link information of the SA on all remote online boards. At the same time, the physical status of all the physical link states of the SAs is detected in real time by using the polling detection mode. When the status of the physical link is changed, the link status changes are caused by the power-on or the link of the peer card.
  • the table update module updates the SAW table and the SAVL table according to the physical link information of the SA on all the current boards, the highest/link rate supported by the SF, and the lowest link rate.
  • the LW table is updated together.
  • the table lookup processing module is started; the table search processing module queries The values of the SAW table, the SAVL table, and the LW table control the transmission or stop transmission of the reachable cells according to the above judgment rules.
  • FIG. 7 is a first schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
  • the notification record module After the initialization of the SF chip is completed, the notification record module records the information of the remote board that is sent by the master (including the type of the peer card, the board rate, and so on).
  • the SF chip starts the polling scan thread, and the link information collection and detection module polls and records all the physical link information of the SAs on all the online boards according to the remote board information recorded in the first step.
  • the link state change condition is detected in real time, and when the link state changes, the table update module is started.
  • the table update module sets the update SAW and the SAVL table according to the above setting rules according to the physical link information of the SA on all the current boards, the highest/link rate supported by the SF, and the lowest link rate. Value. Then, according to the value of the updated SAW table and the physical link information of the SA on all the current boards, the record values corresponding to the physical links of the SF in the LW table are reset according to the setting rules of the LW table. After the LW table update is completed, the table lookup processing module is started.
  • the table lookup processing module queries the updated values of the three SAW, SAVL, and LW tables, and determines, according to the foregoing judgment rules, which links of the destination SA reachable to the source SA.
  • the source SA updates its routing table according to the reachable cell received from each link.
  • the source SA sends the traffic to each SF through the link that receives the reachable cell and then sends the traffic to the destination SA in load balancing mode.
  • FIG. 8 is a second schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention.
  • one SF is connected to four SAs (SA0/SA1/SA2/SA3), and the highest chain supported by SF.
  • the path rate is 12.5G
  • the lowest link rate is 6.25G
  • the SA0/SA2/SA3 SAs flow to SA1.
  • the SF records the board information (slot number, board type, and rate) of the corresponding boards of the four SAs delivered by the master.
  • the SF starts the polling scan thread and obtains the physical link information of the four SAs according to the board information recorded in the previous step.
  • the four SA link rates are 6.25G/6.25G/12.5G/12.5G, respectively.
  • the number of physical links is 4/4/4/2.
  • the SF detects all link state changes of the four SAs in real time. In this case, the four physical links of the SA1 (a/b/c/d) and the a/c links are down as invalid links.
  • the table update module is started at this time.
  • the third step is to update the SAW table: the lowest link rate supported by the SF is 6.25G, and the four SA link rates are 6.25G/6.25G/12.5G/12.5G, respectively. According to the setting rules, the four SAs correspond to the SAW table. The value is 1/1/2/2;
  • the number of physical links corresponding to the four SAs is 4/4/4/2.
  • the two links in the four links of SA1 are down.
  • the number of active links of the four SAs is 4/2/4/2, according to the setting rule, the value of the SAVL table corresponding to the four SAs is 4/2/4/2.
  • the highest link rate supported by the SF is 12.5G, and the lowest link rate is 6.25G.
  • the value of the two links of the a/c of the SA1 is fixed to 288.
  • the LW of the four physical links of the SA0 is 1/2/3/4.
  • the LW of the four physical links of SA1 is 288/1/288/2, the LW of the four physical links of SA2 is 2/4/6/8, and the LW of the two physical links of SA3 is 2/4. .
  • FIG. 9 is a schematic diagram 3 of the traffic network chip adaptive load balancing scheduling method according to the embodiment of the present invention.
  • the values of the SAW and SAVL tables of the SA1 are first searched for 1 and 2, respectively.
  • the product is 2, and then the value of the LW table of all the physical links of the SA0/SA2/SA3 is traversed and compared with 2.
  • only the link with the LW value less than or equal to 2 can send the SA1 reachable letter. yuan.
  • SA0 has only two links to send SA1 reachable cells, and SA2 and SA3 have only one reachable cell that can send SA1.
  • SA0/SA2/SA3 updates its each according to the reachable cell received by its physical link. Self routing table.
  • the SA0/SA2/SA3 sends the data stream from the link that can receive the SA1 reachable cell to the SF and the SF to the SA1 according to the updated routing table. That is, the uplink of the SA1/SA2/SA3 to the SA1 data flow is as shown by the thick line in Figure 8.
  • the SA0 has only two links to send the SA1 data stream to the SF, and the SA2 and SA3 only one link sends the SA1 data stream. To SF.
  • the traffic network chip adaptive equalization scheduling method solves the problem that the traditional authorization scheduling mode cannot distinguish the chip from being load balanced and the network quality is caused by the congestion of the switching network. Degraded defects, while being effectively compatible with various types of new boss cards, while avoiding the problem of system stability reduction caused by link loss caused by loss and other reasons, saving users the cost of equipment replacement, and at the same time Greatly improve the stability of the entire system.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the technical solution of the embodiment of the present invention uses the switching network SF chip to obtain link information of each switched access SA chip connected to the SF chip; the SF chip determines according to the acquired link information of each SA chip.
  • the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link, which can solve the problem of data traffic congestion of the switching network chip in the switching network system, and avoid data exchange. Congestion of the network improves the success rate of data forwarding.

Landscapes

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

Abstract

Disclosed are a notification message and data transmission method and device. The notification message transmission method comprises: a switched fabric (SF) network chip of a switching network obtains the link information of the access switch (SA) chip of each switch access connected to the SF chip; the SF chip determines, according to the obtained link information of each SA chip, a link for transmitting to a source SA chip a notification message indicating that a target SA chip is reachable, the notification message being used to notify the source SA chip to transmit data to the target SA chip by means of the determined link. The present invention solves the problem in the prior art of data traffic congestion of switching network chips in a switching network system, thereby avoiding data congestion in the switching network and improving data forwarding success rate.

Description

数据发送方法及装置Data transmission method and device 技术领域Technical field
本文涉及通信领域,具体而言,涉及数据发送方法及装置。This document relates to the field of communications, and in particular, to a data transmission method and apparatus.
背景技术Background technique
随着网络技术的飞速发展,用户对网络质量与网络速度的要求越来越高,因此运营商对承载网的带宽容量和系统稳定性也提出了更高的要求。带宽容量方面:传统的路由器进行带宽升级时,大都需要改变路由器的核心交换架构,即换一台新的路由器,而被替换下的来的旧设备无法利用或者是无法有效的利用。为满足运营商兼容新旧设备降低成本要求,交换网系统需要兼容新老两种链路速率的板卡。系统稳定性方面:为满足用户各种需求会设计不同的板卡,各种板卡硬件设计上链路往往也会不对等;另外由于板材损耗以及外界环境影响,有些链路会因为信号变差而被关掉,这样就也会造成一个交换板上芯片到两个板卡的芯片链路不对等。以上所描述的新旧板卡链路速率不对等或链路数不对等的板卡之间发流,容易引起交换板上芯片拥塞,造成信息丢失而引起网络质量下降。为满足运营商兼容新旧设备降低成本要求,同时提高系统的稳定性,不同的设备厂商对系统稳定性与兼容性都有各自的解决方案。With the rapid development of network technology, users have higher and higher requirements on network quality and network speed. Therefore, operators have put forward higher requirements on the bandwidth capacity and system stability of the bearer network. In terms of bandwidth capacity: When a traditional router performs bandwidth upgrade, it is necessary to change the core switching fabric of the router, that is, to replace a new router, and the replaced old equipment cannot be utilized or cannot be effectively utilized. In order to meet the cost reduction requirements of operators compatible with old and new devices, the switching network system needs to be compatible with both new and old link rate boards. System stability: In order to meet the various needs of users, different boards will be designed. The links of various board hardware designs will often be unequal. In addition, due to the loss of the board and the external environment, some links will be worse due to the signal. It is turned off, which will also cause the chip link of the chip on the switchboard to the two boards to be unequal. The above-mentioned new and old boards have a link rate that is not equal to or equal to the number of links. This can easily cause chip congestion on the switch board, causing information loss and network quality degradation. In order to meet the cost reduction requirements of operators and new and old equipment, and to improve the stability of the system, different equipment manufacturers have their own solutions to system stability and compatibility.
交换网系统一般都是由多个交换板以及多个线卡板或业务板(下文两种都简称板卡)组成,两个板卡之间的流量需要借助于板卡上的接入转换(switch access,简称为SA)芯片和多个交换板上的多片转换网(switch fabric,简称为SF)芯片来进行转接。目前大多数设备商大多采用传统的权调度机制来实现板间流量调度,采用流量授权调度机制虽然能通过授权调度的方式调整源端板卡进入所有SF的总流量,但无法区分控制进入每一片SF的流量,当某一片SF到源端板卡上的SA0芯片与目的板卡SA1芯片链路根数不均衡或链路速率不同的情况下,此片SF容易出现拥塞,造成信息丢失。图1是根据相关技术中的交换网系统的示意图,如图1所示,SA0往SA1发流是通过四片SF进行转接,每片SF与每个SA有5条链路,假设每条链路的最大转发性能是10G,则每个SA的最大转发性能为5*4*10G=200G。只采用传统的 授权调度机制下,当SF0与SA1链路由5根down为3根时,SA0到SA1的总流量会由200G降低为180G。由于入向SA0采用链路负荷分担式进行流量分配,则SA0每条链路的流量变为180G/20=9G,SA0到SF0有五条链路,则进入SF0的流量是45G。出向SA1与SF0有3根链路,其最大出向转发能力最大为30G,因此入向45G的流量无法从3条链路转发到SA1,会引起SF0产生拥塞,造成信息丢失而引起网络质量下降。The switching network system generally consists of multiple switching boards and multiple line cards or service boards (hereinafter referred to as boards). The traffic between the two boards needs to be converted by means of access on the board ( A switch access (referred to as SA) chip and a plurality of switch fabrics (SF) chips on a plurality of switch boards are used for switching. At present, most equipment vendors use the traditional rights scheduling mechanism to implement inter-board traffic scheduling. Although the traffic authorization scheduling mechanism can adjust the total traffic of the source board to all SFs through authorization scheduling, it cannot distinguish the control from entering each piece. When the SF traffic is unbalanced or the link rate is different between the SA0 chip on the source SF card and the destination card SA1 chip, the SF is prone to congestion and information loss. 1 is a schematic diagram of a switching network system according to the related art. As shown in FIG. 1, SA0 to SA1 flows through four SFs, and each SF has five links with each SA, assuming each The maximum forwarding performance of a link is 10 G. The maximum forwarding performance of each SA is 5*4*10G=200G. Only traditional When the SF0 and SA1 links are down from three to three, the total traffic of SA0 to SA1 is reduced from 200G to 180G. The traffic of each link of SA0 becomes 180G/20=9G, and the traffic of SA0 to SF0 has five links. The traffic entering SF0 is 45G. The outbound direction of SA1 and SF0 has three links, and the maximum outbound forwarding capability is up to 30G. Therefore, the traffic destined for 45G cannot be forwarded from three links to SA1, causing congestion of SF0, causing information loss and network quality degradation.
上述的传统授权调度方案只是调整进入所有交换网芯片的总流量,无法区分控制进入每一个交换网芯片的流量,当某一片交换网芯片入向和出向流量不对等时,会引起交换网出现拥塞,造成信息丢失的缺陷,无法同时实现新旧多种链路速率板卡之间的流量自适应负载均衡。The above-mentioned traditional authorization scheduling scheme only adjusts the total traffic entering all switching network chips, and cannot control the traffic entering each switching network chip. When the incoming and outgoing traffic of a certain switching network chip is not equal, the switching network may be congested. The defect of information loss can not realize the traffic adaptive load balancing between the old and new multiple link rate boards at the same time.
针对相关技术中当交换网芯片入向和出向数据流量不对等时引起交换网出现拥塞,造成信息丢失的问题,还未提出有效的解决方案。In the related art, when the inbound and outbound data traffic of the switching network chip is not equal, the switching network is congested and the information is lost, and an effective solution has not been proposed.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述,本概述并非是为了限制权利要求的保护范围。The following is a summary of the subject matter described in detail herein, and is not intended to limit the scope of the claims.
本文公开了一种通知消息和数据发送方法及装置,以至少解决相关技术中交换网系统中交换网芯片的数据流量拥塞的问题。Disclosed herein is a notification message and data transmission method and apparatus to address at least the problem of data traffic congestion of a switching network chip in a switching network system in the related art.
本文公开的一种通知消息发送方法,包括:交换网SF芯片获取与所述SF芯片相连的各个交换接入SA芯片的链路信息;所述SF芯片根据获取的各个SA芯片的链路信息确定向源SA芯片发送目的SA芯片的通知消息的链路,其中,所述通知消息用于通知所述源SA芯片通过确定的链路向所述目的SA芯片发送数据。The method for transmitting a notification message disclosed in the present disclosure includes: the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip; and the SF chip determines according to the obtained link information of each SA chip. The link of the notification message of the destination SA chip is sent to the source SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link.
可选地,交换网SF芯片获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息,所述链路信息包括:物理链路总数,链路编号,链路状态,链路速率。Optionally, the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip, where the link information includes: total number of physical links, link number, link status, link rate.
可选地地,所述SF芯片根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路包括:所述SF芯片根据所述链路信息更新SA有效链路数SAVL表和SA芯片权重SAW表,并更新链路 权重LW表中SA芯片相应链路的LW值,其中,所述SAVL表中记录了所述SF芯片相连的SA芯片的有效链路数,所述SAW表中记录了所有SA芯片的权重,所述LW表记录了每一个SA芯片的所有链路的权重;所述SF芯片查询所述SAW表和SAVL表分别获取所述目的SA芯片的SAW值和SAVL值,并查询所述LW表得到所述源SA芯片的链路的LW值;所述SF芯片根据所述SAW值、所述SAVL值以及所述LW值通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路。Optionally, the SF chip determines, according to the obtained link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the SF chip is configured according to the link. Information update SA effective link number SAVL table and SA chip weight SAW table, and update link The LW value of the corresponding link of the SA chip in the weight LW table, wherein the SAVL table records the effective link number of the SA chip connected to the SF chip, and the SAW table records the weights of all the SA chips. The LW table records the weights of all the links of each SA chip; the SF chip queries the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, respectively, and queries the LW table to obtain the Determining an LW value of a link of the source SA chip according to the SAW value, the SAVL value, and the LW value, and determining, by calculation, a notification message for sending the destination SA chip reachable to the source SA chip Link.
可选地地,所述SF芯片根据所述SAW值、所述SAVL值以及所述LW值通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路包括:将所述目的SA芯片的SAW值与所述SAVL值相乘得到所述SAW值与所述SAVL值的乘积;将所述SAW值与所述SAVL值的乘积与所述源SA芯片的LW值进行比较;在所述源SA芯片的链路的LW值小于等于所述目的SA芯片的SAW值和所述SAVL值的乘积情况下,所述SF芯片确定通过所述源SA芯片的链路发送所述目的SA芯片的通知消息到所述源SA芯片。Optionally, the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip by using the SAW value, the SAVL value, and the LW value includes: Multiplying a SAW value of the target SA chip by the SAVL value to obtain a product of the SAW value and the SAVL value; and performing a product of the SAW value and the SAVL value and an LW value of the source SA chip Comparing; in the case where the LW value of the link of the source SA chip is less than or equal to the product of the SAW value of the destination SA chip and the SAVL value, the SF chip determines the link transmission through the source SA chip The notification message of the destination SA chip is described to the source SA chip.
本文还公开了一种数据发送方法,包括:源交换接入SA芯片接收交换网SF芯片发送的通知消息,其中,所述通知消息是所述SF芯片在获取与所述SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息确定的链路发送的;所述源SA芯片根据所述通知消息,通过所述链路向所述目的SA芯片发送数据。The present invention also discloses a data sending method, comprising: a source switching access SA chip receives a notification message sent by a switching network SF chip, wherein the notification message is that the SF chip acquires each of the SF chips connected After the link information of the SA chip is sent by the link determined according to the obtained link information of each SA chip, the source SA chip sends the link to the destination SA chip through the link according to the notification message. data.
可选地,在所述源SA芯片接收所述SF芯片发送的通知消息之后,所述方法还包括:所述源SA芯片根据所述通知消息更新存储的所述目的SA芯片的转发表,其中,所述转发表中记录了所述目的SA芯片与可用链路的对应关系。Optionally, after the source SA chip receives the notification message sent by the SF chip, the method further includes: the source SA chip updating the stored forwarding table of the destination SA chip according to the notification message, where The correspondence between the destination SA chip and the available link is recorded in the forwarding table.
可选地地,所述源SA芯片根据所述通知消息通过所述链路向所述目的SA芯片发送数据包括:所述源SA芯片通过查找所述转发表确定向所述目的SA芯片发送数据的链路;所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据。Optionally, the source SA chip sends data to the destination SA chip by using the link according to the notification message, where the source SA chip determines to send data to the destination SA chip by searching the forwarding table. The link of the source SA chip to the destination SA chip through the determined link.
本文还公开了一种通知消息发送装置,应用于交换网SF芯片,包括:获取模块,设置为获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息;确定模块,设置为根据获取的每一个SA芯片的链路信息确定用于向源 SA芯片发送目的SA芯片可达的通知消息的链路,其中,所述通知消息用于通知所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据。The invention also discloses a notification message sending device, which is applied to a switching network SF chip, comprising: an obtaining module, configured to acquire link information of each switched access SA chip connected to the SF chip; and a determining module, configured to Determining for the source according to the obtained link information of each SA chip The SA chip sends a link of the notification message reachable by the destination SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link.
可选地,所述确定模块包括:更新单元,设置为根据所述链路信息更新SA有效链路数SAVL表和SA芯片的权重SAW表,并更新链路权重LW表中SA芯片相应链路的LW值,其中,所述SAVL表中记录了所述SF芯片相连的SA芯片的有效链路数,所述SAW表中记录了所有SA芯片的权重,所述LW表记录了每一个SA芯片的所有链路的权重;查询单元,设置为查询所述SAW表和SAVL表分别获取所述目的SA芯片的SAW值和SAVL值,并查询所述LW表得到所述源SA芯片的链路的LW值;确定单元,设置为根据所述SAW值、所述SAVL值以及所述LW值,通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路。Optionally, the determining module includes: an updating unit, configured to update the SA effective link number SAVL table and the weighted SAW table of the SA chip according to the link information, and update the corresponding link of the SA chip in the link weight LW table The LW value, wherein the SAVL table records the effective link number of the SA chip connected to the SF chip, the SAW table records the weights of all the SA chips, and the LW table records each SA chip. The weight of all the links; the query unit is configured to query the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the destination SA chip, respectively, and query the LW table to obtain the link of the source SA chip. An LW value determining unit configured to determine, by the calculation, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip according to the SAW value, the SAVL value, and the LW value.
本文还公开了一种数据发送装置,应用于源交换接入SA芯片,包括:接收模块,设置为接收交换网SF芯片发送的通知消息,其中,所述通知消息是所述SF芯片在获取与所述SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息所确定的链路发送的;发送模块,设置为根据所述通知消息通过所述链路向所述目的SA芯片发送数据。The invention also discloses a data sending device, which is applied to a source switching access SA chip, comprising: a receiving module, configured to receive a notification message sent by a switching network SF chip, wherein the notification message is that the SF chip is acquiring and After the link information of each SA chip connected to the SF chip is sent by the link determined according to the acquired link information of each SA chip, the sending module is configured to pass the chain according to the notification message. The road sends data to the destination SA chip.
本发明实施例的技术方案,采用交换网SF芯片获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息;所述SF芯片根据获取的二米一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路,其中,所述通知消息用于通知所述源SA芯片通过确定的链路向所述目的SA芯片发送数据,解决了相关技术中交换网系统中交换网芯片的数据流量拥塞的问题,避免了数据在交换网拥塞,提高了数据转发的成功率。The technical solution of the embodiment of the present invention uses the switching network SF chip to obtain link information of each exchange access SA chip connected to the SF chip; the SF chip is determined according to the acquired link information of one SA chip of two meters. a link for sending a notification message of the destination SA chip reachable to the source SA chip, where the notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link, and the related information is resolved. In the technology, the problem of data traffic congestion of the switching network chip in the switching network system avoids data congestion in the switching network and improves the success rate of data forwarding.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings are intended to provide a further understanding of the embodiments of the present invention, and are intended to be a part of the present invention, and the description of the present invention is not intended to limit the invention. In the drawing:
图1是相关技术中的交换网系统的示意图; 1 is a schematic diagram of a switching network system in the related art;
图2是本发明实施例一中的数据发送方法的流程图一;2 is a first flowchart of a data transmission method in Embodiment 1 of the present invention;
图3是本发明实施例二中的数据发送方法的流程图二;3 is a second flowchart of a data transmission method in Embodiment 2 of the present invention;
图4是本发明实施例三中的数据发送装置的框图一;4 is a block diagram 1 of a data transmitting apparatus in Embodiment 3 of the present invention;
图5是本发明实施例四中的数据发送装置的框图;Figure 5 is a block diagram of a data transmitting apparatus in Embodiment 4 of the present invention;
图6是本发明实施例五中的数据发送装置的框图二;6 is a second block diagram of a data transmitting apparatus in Embodiment 5 of the present invention;
图7是本发明实施例中的交换网芯片流量自适应负载均衡调度方法的示意图一;7 is a first schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention;
图8是本发明实施例中的交换网芯片流量自适应负载均衡调度方法的示意图二;8 is a second schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention;
图9是本发明实施例中的交换网芯片流量自适应负载均衡调度方法的示意图三。FIG. 9 is a third schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将参考附图并结合实施例来详细说明本发明的技术方案。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the technical solution of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
实施例一 Embodiment 1
一种通知消息发送方法,图2是本发明实施例的通知消息发送方法的流程图一,如图2所示,包括:A method for sending a notification message, FIG. 2 is a flowchart 1 of a method for sending a notification message according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
步骤S202,交换网SF芯片获取与该SF芯片相连的每一个交换接入SA芯片的链路信息;Step S202, the switching network SF chip acquires link information of each switched access SA chip connected to the SF chip;
步骤S204,SF芯片根据获取的每一个SA芯片的链路信息,确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路,其中,该通知消息用于通知该源SA芯片通过所确定的链路向该目的SA芯片发送数据。In step S204, the SF chip determines, according to the acquired link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the notification message is used to notify the source SA chip to pass. The determined link sends data to the destination SA chip.
通过上述步骤S204,解决了相关技术中交换网系统中交换网芯片的数据流量拥塞的问题,避免了数据在交换网拥塞,提高了数据转发的成功率。 Through the foregoing step S204, the problem of data traffic congestion of the switching network chip in the switching network system in the related art is solved, the data is congested in the switching network, and the success rate of data forwarding is improved.
可选地,该SF芯片根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路可以包括:该SF芯片根据获得的链路信息更新SA芯片有效链路数SAVL表和SA芯片权重表SAW表,并更新相应与SA芯片相连链路的链路权重LW表,其中,该SAVL表中记录了与该SF芯片相连SA芯片的有效链路数,该SA权重表中记录了所有SA芯片的权重,该LW表记录了与每一个SA芯片相连的所有链路的权重;该SF芯片查询SAW表和SAVL表分别获取该目的SA芯片的SAW值和SAVL值,查询LW表得到与该源SA芯片相连的链路的LW值;该SF芯片根据所查询到的SAW值、SAVL值以及LW值,通过计算确定用于向该源SA芯片发送目的SA芯片可达的通知消息的链路。Optionally, the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip according to the obtained link information of each SA chip may include: updating, by the SF chip, the obtained link information. The SA chip effective link number SAVL table and the SA chip weight table SAW table, and update the link weight LW table corresponding to the SA chip connection link, wherein the SAVL table records the effective chain of the SA chip connected to the SF chip. Number of paths, the weight of all SA chips is recorded in the SA weight table, and the LW table records the weights of all the links connected to each SA chip; the SF chip queries the SAW table and the SAVL table to obtain the SA chips of the destination respectively. The SAW value and the SAVL value are obtained by querying the LW table to obtain the LW value of the link connected to the source SA chip; the SF chip is determined by calculation to be used for the source SA chip according to the queried SAW value, the SAVL value, and the LW value. Send the link of the notification message reachable by the destination SA chip.
其中,所确定的用于向源SA芯片发送目的SA芯片可达的通知消息的链路包括一条或多条。The determined link for sending the notification message reachable by the destination SA chip to the source SA chip includes one or more links.
可选地,该SF芯片根据该SAW值、该SAVL值以及该LW值通过计算确定用于向该源SA芯片发送目的SA芯片可达的通知消息的链路可以包括:将该目的SA芯片的SAW值与该SAVL值相乘得到该SAW值与该SAVL值的乘积;将该SAW值与该SAVL值的乘积与该源SA芯片的LW值进行比较;在该源SA芯片的链路的LW值小于等于该目的SA芯片的SAW值和该SAVL值的乘积情况下,该SF芯片确定通过该源SA芯片的链路发送该目的SA芯片可达的通知消息到该源SA芯片。Optionally, the determining, by the SF chip, the link for sending the notification message reachable by the destination SA chip to the source SA chip according to the SAW value, the SAVL value, and the LW value may include: The SAW value is multiplied by the SAVL value to obtain a product of the SAW value and the SAVL value; the product of the SAW value and the SAVL value is compared with the LW value of the source SA chip; the LW of the link of the source SA chip If the value is less than or equal to the product of the SAW value of the destination SA chip and the SAVL value, the SF chip determines that the notification message reachable by the destination SA chip is sent to the source SA chip through the link of the source SA chip.
上述的链路信息可以包括物理链路总数,链路编号,链路状态和链路速率。The above link information may include the total number of physical links, link number, link status, and link rate.
实施例二 Embodiment 2
一种数据发送方法,图3是本发明实施例的数据发送方法的流程图二,如图3所示,包括:A data transmission method, FIG. 3 is a flowchart 2 of the data transmission method according to the embodiment of the present invention, as shown in FIG. 3, including:
步骤S302,源交换接入SA芯片接收交换网SF芯片发送的通知消息,其中,所述通知消息是所述SF芯片在获取与所述SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息所确定的链路发送的;In step S302, the source switching access SA chip receives the notification message sent by the switching network SF chip, where the notification message is that the SF chip passes the link information of each SA chip connected to the SF chip, and then passes the Transmitted according to the link determined by the acquired link information of each SA chip;
步骤S304,源SA芯片根据该通知消息通过该链路向目的SA芯片发送数 据。Step S304, the source SA chip sends the number to the destination SA chip through the link according to the notification message. according to.
可选地,在所述源SA芯片接收所述SF芯片发送的通知消息之后,所述源SA芯片根据该通知消息更新存储的所述目的SA芯片的转发表,其中,该转发表中记录了该目的SA芯片与可用链路的对应关系。Optionally, after the source SA chip receives the notification message sent by the SF chip, the source SA chip updates the stored forwarding table of the destination SA chip according to the notification message, where the forwarding table records Correspondence between the destination SA chip and the available link.
可选地,所述源SA芯片根据该通知消息通过该链路向所述目的SA芯片发送数据,包括:所述源SA芯片通过查找该转发表确定向所述目的SA芯片发送数据的链路;所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据。Optionally, the source SA chip sends data to the destination SA chip through the link according to the notification message, where the source SA chip determines a link for sending data to the destination SA chip by searching the forwarding table. The source SA chip transmits data to the destination SA chip through the determined link.
实施例三 Embodiment 3
本发明实施例提供了一种通知消息发送装置,应用于交换网SF芯片,图4是本发明实施例的通知消息发送装置的框图一,如图4所示,包括:The embodiment of the present invention provides a notification message sending apparatus, which is applied to a switching network SF chip. FIG. 4 is a block diagram 1 of a notification message sending apparatus according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
获取模块42,设置为获取与该SF芯片相连的每一个交换接入SA芯片的链路信息;The obtaining module 42 is configured to acquire link information of each switched access SA chip connected to the SF chip;
确定模块44,设置为根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路,其中,该通知消息用于通知该源SA芯片通过所确定的链路向该目的SA芯片发送数据。The determining module 44 is configured to determine, according to the acquired link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the notification message is used to notify the source SA chip to pass The determined link sends data to the destination SA chip.
实施例四 Embodiment 4
图5是本发明实施例的数据发送装置的框图,如图5所示,确定模块44包括:FIG. 5 is a block diagram of a data transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 5, the determining module 44 includes:
更新单元52,设置为根据该链路信息更新SA芯片有效链路数SAVL表和SA芯片权重SAW表,并更新链路权重LW表中SA芯片相应链路的记录的值,其中,该SAVL表中记录了该SF芯片相连的SA芯片的有效链路数,该SAW表中记录了所有SA芯片的权重,该LW表记录了每一个SA芯片的所有链路的权重;The updating unit 52 is configured to update the SA chip effective link number SAVL table and the SA chip weight SAW table according to the link information, and update the record value of the corresponding link of the SA chip in the link weight LW table, wherein the SAVL table Recording the effective link number of the SA chip connected to the SF chip, the SAW table records the weights of all the SA chips, and the LW table records the weights of all the links of each SA chip;
查询单元54,设置为查询该SAW表和SAVL表分别获取该目的SA芯片的SAW值和SAVL值,并查询LW表得到该源SA芯片相连的链路的LW值;The query unit 54 is configured to query the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, and query the LW table to obtain the LW value of the link connected to the source SA chip.
确定单元56,设置为根据查询到的SAW值、SAVL值以及LW值通过计算确定用于向该源SA芯片发送目的SA芯片可达的通知消息的链路。 The determining unit 56 is configured to determine, by calculation, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip according to the queried SAW value, the SAVL value, and the LW value.
实施例五Embodiment 5
本发明实施例还提供了一种数据发送装置,应用于源交换接入SA芯片,图6是本发明实施例的数据发送装置的框图二,如图6所示,包括:The embodiment of the present invention further provides a data transmitting apparatus, which is applied to a source switching access SA chip. FIG. 6 is a block diagram 2 of the data sending apparatus according to the embodiment of the present invention. As shown in FIG. 6, the method includes:
接收模块62,设置为接收交换网SF芯片发送的通知消息,其中,该通知消息是该SF芯片在获取与该SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息所确定的链路发送的;The receiving module 62 is configured to receive a notification message sent by the switching network SF chip, where the notification message is that the SF chip obtains the SA information of each SA chip connected to the SF chip, The link determined by the link information of the chip is sent;
发送模块64,设置为根据该通知消息通过该链路向该目的SA芯片发送数据。The sending module 64 is configured to send data to the destination SA chip through the link according to the notification message.
实施例六 Embodiment 6
下面结合具体实施例对本发明实施例进行进一步说明。The embodiments of the present invention are further described below in conjunction with specific embodiments.
本发明实施例提供了一种有效的交换网芯片流量自适应负载均衡调度方法,包括:通过实时监控,自适应的控制交换网芯片是否向源端板卡上SA的链路发送目的板卡上SA的可达信元,该可达信元用于通知源SA芯片该目标SA可达,来达到实际控制源端板卡SA上的报文从哪些链路经过交换网芯片转发到目的板卡SA,使交换网芯片入向和出向流量均衡,达到避免交换网芯片拥塞,提高系统稳定性的目的。The embodiment of the invention provides an effective switching network load-adaptive load balancing scheduling method, which comprises: adaptively controlling whether the switching network chip sends the destination link to the SA link on the source end card through real-time monitoring. The reachable cell of the SA, the reachable cell is used to notify the source SA chip that the target SA is reachable, to achieve the actual control of the packets on the source card SA from which links are forwarded to the destination board through the switch fabric chip. The SA balances the incoming and outgoing traffic of the switching network chip to avoid congestion of the switching network chip and improve system stability.
本方案包括以下模块:This program includes the following modules:
1)通知记录模块,包括记录单元:接收并记录主控通知下来的所有远端在线板卡信息(包括槽位号、板卡类型和板卡链路速率等)。记录的在线远端板卡信息可供链路收集与检测模块查询。1) The notification recording module, including the recording unit, receives and records all remote online card information (including slot number, board type, and board link rate, etc.) notified by the master. The recorded online remote board information can be queried by the link collection and detection module.
2)链路信息收集与检测模块,包括统计单元:此模块有两个功能,一是根据通知记录模块记录的远端板卡信息,查询记录本SF到此远端板卡上每个SA所有物理链路的信息(包括物理链路总数,链路编号,链路状态和链路速率等)。二是实时监测SF所有链路变化情况,来决定是否启动表更新模块和查表处理模块。2) Link information collection and detection module, including statistical unit: This module has two functions. One is to query the record SF to each SA on the remote board according to the remote board information recorded by the notification record module. Information about the physical link (including the total number of physical links, link number, link status, link rate, etc.). The second is to monitor all the link changes of the SF in real time to decide whether to start the table update module and the table lookup processing module.
3)表更新模块,包括第一更新单元和第二更新单元,根据通知记录模块记录的所有远端在线板卡信息更新设置SAW表中其对应的每一个SA的SAW值;根据链路信息收集与检测模块记录的所有远端在线板卡上SA的物理链路 信息更新设置SAVL表中对应SA的SAVL值;最后根据链路收集与检测模块获得的所有在线板卡上的与SA相连的链路信息、SAVL和SAW表的值,通过计算更新设置LW表中所有链路的LW值。3) a table update module, comprising a first update unit and a second update unit, updating the SAW value of each corresponding SA in the SAW table according to all remote online card information recorded by the notification record module; collecting according to the link information Physical link of the SA on all remote online boards recorded by the detection module The information update sets the SAVL value of the corresponding SA in the SAVL table. Finally, according to the link information, the SAVL and the SAW table values connected to the SA on all the online boards obtained by the link collection and detection module, the LW table is updated by calculation. The LW value of all links.
其中,SAW表记录所有SA的权重,为系统中每个SA各分配一个值,如系统中设计最多有m个SA,则此表包括m条记录。此表设置规则如下:假设本SF支持的最低链路速率为L,则此SA对应的SAW表中的记录的值为:此SA链路速率/L。The SAW table records the weights of all SAs, and assigns a value to each SA in the system. If there are at most m SAs in the system, the table includes m records. The rules for setting this table are as follows: If the lowest link rate supported by the SF is L, the value of the record in the SAW table corresponding to the SA is: the SA link rate/L.
SAVL表记录SF与所有SA的有效链路数,为系统中每个SA各分配一个值,如系统中有m个SA,则此表包括m条记录。此表设置规则如下:假设本SF与某一个SA有N条物理链路,其中N条物理链路中有P条是有效链路,则有N-P条是无效链路,则此SA对应的SAVL表中的记录的值为有效连路数P。The SAVL table records the number of valid links between the SF and all SAs, and assigns a value to each SA in the system. If there are m SAs in the system, the table includes m records. The rules for setting this table are as follows: Assume that the SF has N physical links with a certain SA, and among the N physical links, P is a valid link, and if the NP is an invalid link, the SA corresponding to the SA is SAVL. The value of the record in the table is the number of valid links P.
LW表记录SF所有物理链路的权重,为SF所有物理链路都分配一个值,如本SF有k条物理链路,则本SF的LW表包括k条记录。此表设置规则如下:假设本SF支持的最高链路速率为H,最低链路速率为L,本SF最大链路数为k,若本SF到某SA物理链路数N,N条物理链路中有P条是有效链路,则N-P条是无效链路,则对于这N-P条无效的物理链路,其对应LW表中的记录的值固定设置为H*k/N;对于P条有效的物理链路,其对应LW表中的记录的值以此SA的对应在SAW表中的记录的值t为间隔,从小到大依次设置,即这P条有效物理链路对应在LW表中的记录的值依此为:1*t/2*t/…../P*t。当某条有效链路变为无效链路时,其LW的值固定设置为H*k/N,其剩余的有效链路重新按以上间隔从小到大依次重新设置。The LW table records the weights of all physical links of the SF, and assigns a value to all physical links of the SF. If the SF has k physical links, the LW table of the SF includes k records. The rules for setting this table are as follows: Assume that the highest link rate supported by the SF is H, the lowest link rate is L, and the maximum number of links in the SF is k. If the number of physical links of the SF to a certain SA is N, N physical chains If the P strip is a valid link and the NP strip is an invalid link, the value of the record in the corresponding LW table is fixed to H*k/N for the physical link that is invalid for the NP strip; A valid physical link, the value of the record in the corresponding LW table is set in the order of the value t of the SA in the SAW table, and is set from the smallest to the largest, that is, the P effective physical links correspond to the LW table. The value of the record in this is: 1*t/2*t/...../P*t. When a valid link becomes an invalid link, the value of its LW is fixed to H*k/N, and the remaining effective links are re-set in order from small to large.
4)查表处理模块,其功能包括,查询目的SA在SAW表、SAVL表中对应的记录的值,两者相乘的值与本SF到源端SA的所有物理链路对应在LW表中的记录的值做比较,来决定将目的SA的可达信元通过哪些物理链路发送给源端SA。判断规则如下:假设目的SA的SAW以及SAVL表的值分别为X和Y,源端SA某条物理链路的LW表的值Z,则当Z<=X*Y时,可以从该条链路发送目的SA的可达信元。当Z>X*Y时,停止从该链路发送目的SA的可达信元。其中,目的SA的可达信元用于通知源SA芯片该目标SA可达。4) The table lookup processing module, the function includes: querying the value of the corresponding record of the SA in the SAW table and the SAVL table, and the multiplied value corresponds to all the physical links of the SF to the source SA in the LW table. The recorded values are compared to determine which physical links of the destination SA's reachable cells are sent to the source SA. The judgment rule is as follows: Assume that the values of the SAW and SAVL tables of the destination SA are X and Y respectively, and the value Z of the LW table of a physical link of the source SA is Z, and when Z<=X*Y, the chain can be The road sends the reachable cell of the destination SA. When Z>X*Y, the reachable cell of the destination SA is stopped from the link. The reachable cell of the destination SA is used to notify the source SA chip that the target SA is reachable.
其中,所确定的链路可以包括一条或多条。 Wherein, the determined link may include one or more.
上述各模块与表之间的调用协作关系如下:通知记录模块记录主控下发远端在线板卡信息供链路收集检测模块查询;链路信息收集模块查询通知记录模块记录的远端在线板卡信息,收集记录所有远端在线板卡上SA的物理链路信息。同时采用轮询检测的方式实时检测所有在线板卡SA的所有物理链路状态,当检测到有物理链路状态发生改变时(对端板卡上下电或链路出问题都会引起链路状态变化),启动表更新模块;表更新模块根据当前的所有在线板卡上SA的物理链路信息、本SF支持的最高/链路速率和最低链路速率等信息,更新SAW表和SAVL表。并根据更新后的SAW表的值与当前的所有在线板卡上SA的物理链路信息,共同更新LW表,表更新模块更新完三个表以后,启动表查找处理模块;表查找处理模块查询SAW表、SAVL表和LW表的值,按照以上的判断规则,控制可达信元的发送或停止发送。The call cooperation relationship between the above modules and the table is as follows: the notification record module records the master to deliver the remote online card information for the link collection detection module to query; the link information collection module queries the remote online board recorded by the notification record module. Card information, collects and records the physical link information of the SA on all remote online boards. At the same time, the physical status of all the physical link states of the SAs is detected in real time by using the polling detection mode. When the status of the physical link is changed, the link status changes are caused by the power-on or the link of the peer card. The table update module updates the SAW table and the SAVL table according to the physical link information of the SA on all the current boards, the highest/link rate supported by the SF, and the lowest link rate. And according to the updated SAW table value and the current physical link information of the SA on all the online boards, the LW table is updated together. After the table update module updates the three tables, the table lookup processing module is started; the table search processing module queries The values of the SAW table, the SAVL table, and the LW table control the transmission or stop transmission of the reachable cells according to the above judgment rules.
图7是本发明实施例的交换网芯片流量自适应负载均衡调度方法的示意图一,如图7所示,包括以下步骤:FIG. 7 is a first schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
第一步,SF芯片初始化完成后,通知记录模块记录更新主控下发的远端板卡信息(包括对端板卡类型、板卡速率等)。After the initialization of the SF chip is completed, the notification record module records the information of the remote board that is sent by the master (including the type of the peer card, the board rate, and so on).
第二步,SF芯片启动轮询扫描线程,链路信息收集与检测模块根据第一步中记录的远端板卡信息,轮询扫描记录所有在线板卡上SA的所有的物理链路信息,同时实时检测其链路状态变化情况,当有链路状态发生变化时,启动表更新模块。In the second step, the SF chip starts the polling scan thread, and the link information collection and detection module polls and records all the physical link information of the SAs on all the online boards according to the remote board information recorded in the first step. At the same time, the link state change condition is detected in real time, and when the link state changes, the table update module is started.
第三步,表更新模块根据当前的所有在线板卡上SA的物理链路信息、本SF支持的最高/链路速率和最低链路速率等信息,按照上述的设置规则设置更新SAW以及SAVL表的值。然后根据更新后的SAW表的值以及当前的所有在线板卡上SA的物理链路信息,根据LW表的设置规则重新设置本SF所有物理链路对应在LW表中的记录值。LW表更新完成后,启动表查找处理模块。In the third step, the table update module sets the update SAW and the SAVL table according to the above setting rules according to the physical link information of the SA on all the current boards, the highest/link rate supported by the SF, and the lowest link rate. Value. Then, according to the value of the updated SAW table and the physical link information of the SA on all the current boards, the record values corresponding to the physical links of the SF in the LW table are reset according to the setting rules of the LW table. After the LW table update is completed, the table lookup processing module is started.
第四步,表查找处理模块查询以上SAW、SAVL和LW三个表的更新后值,根据上述的判断规则,来决定将目的SA的可达信元从哪些链路发往源端SA。In the fourth step, the table lookup processing module queries the updated values of the three SAW, SAVL, and LW tables, and determines, according to the foregoing judgment rules, which links of the destination SA reachable to the source SA.
第五步,源端SA根据从各链路收到的可达信元情况,更新其路由表。In the fifth step, the source SA updates its routing table according to the reachable cell received from each link.
第六步,源端SA根据新的路由表,以负荷分担方式将流量通过收到可达信元的链路发往各个SF,最后发到目的SA。 In the sixth step, the source SA sends the traffic to each SF through the link that receives the reachable cell and then sends the traffic to the destination SA in load balancing mode.
图8是本发明实施例的交换网芯片流量自适应负载均衡调度方法的示意图二,如图8所示,一片SF与四个SA相连(SA0/SA1/SA2/SA3),SF支持的最高链路速率为12.5G,最低链路速率为6.25G,SA0/SA2/SA3三个SA往SA1发流。FIG. 8 is a second schematic diagram of a traffic network adaptive load balancing scheduling method for a switching network chip according to an embodiment of the present invention. As shown in FIG. 8, one SF is connected to four SAs (SA0/SA1/SA2/SA3), and the highest chain supported by SF. The path rate is 12.5G, the lowest link rate is 6.25G, and the SA0/SA2/SA3 SAs flow to SA1.
第一步,SF记录主控下发的四个SA的对应板卡的单板信息(槽位号、单板类型与速率等信息)。In the first step, the SF records the board information (slot number, board type, and rate) of the corresponding boards of the four SAs delivered by the master.
第二步,SF启动轮询扫描线程,根据上一步记录的板卡信息,获取4个SA的物理链路信息,如四个SA链路速率分别为6.25G/6.25G/12.5G/12.5G,其物理连路数为4/4/4/2等。同时SF实时检测四个SA的所有链路状态变化情况,如此时SA1的四条物理链路中(a/b/c/d),a/c两条链路down掉了成为无效链路,则此时启动表更新模块。In the second step, the SF starts the polling scan thread and obtains the physical link information of the four SAs according to the board information recorded in the previous step. For example, the four SA link rates are 6.25G/6.25G/12.5G/12.5G, respectively. The number of physical links is 4/4/4/2. At the same time, the SF detects all link state changes of the four SAs in real time. In this case, the four physical links of the SA1 (a/b/c/d) and the a/c links are down as invalid links. The table update module is started at this time.
第三步,更新SAW表:本SF支持的最低链路速率为6.25G,四个SA链路速率分别为6.25G/6.25G/12.5G/12.5G,则按照设置规则四个SA对应SAW表为的值为1/1/2/2;The third step is to update the SAW table: the lowest link rate supported by the SF is 6.25G, and the four SA link rates are 6.25G/6.25G/12.5G/12.5G, respectively. According to the setting rules, the four SAs correspond to the SAW table. The value is 1/1/2/2;
更新SAVL表,四个SA对应的物理链路数为4/4/4/2,其中SA1四条链路中a/c两条链路down掉了,此时四个SA的有效链路数为4/2/4/2,则根据设置规则四个SA对应的SAVL表的值为4/2/4/2。Update the SAVL table. The number of physical links corresponding to the four SAs is 4/4/4/2. The two links in the four links of SA1 are down. The number of active links of the four SAs is 4/2/4/2, according to the setting rule, the value of the SAVL table corresponding to the four SAs is 4/2/4/2.
更新LW表,SF支持的最高链路速率为12.5G,最低链路速率为6.25G,Update the LW table. The highest link rate supported by the SF is 12.5G, and the lowest link rate is 6.25G.
SF最大链路数为144,则根据设置规则SA1的a/c两条链路对应的值固定设置为288,则此时SA0的四条物理链路的LW值为1/2/3/4,SA1的四条物理链路的LW值为288/1/288/2,SA2的四条物理链路的LW值为2/4/6/8,SA3的两条物理链路的LW值为2/4。更新完LW表后启动表查找处理模快。If the maximum number of links of the SF is 144, the value of the two links of the a/c of the SA1 is fixed to 288. The LW of the four physical links of the SA0 is 1/2/3/4. The LW of the four physical links of SA1 is 288/1/288/2, the LW of the four physical links of SA2 is 2/4/6/8, and the LW of the two physical links of SA3 is 2/4. . After updating the LW table, start the table to find the processing mode.
第四步,图9是根据本发明实施例的交换网芯片流量自适应负载均衡调度方法的示意图三,如图9所示,首先查找SA1的SAW以及SAVL表的值分别为1和2,两者乘积为2,然后遍历查找SA0/SA2/SA3所有物理链路的LW表的值与2做比较,按照以上所述的判断规则只有LW值小于等于2的链路才能发送SA1的可达信元。如SA0只有两条链路发送SA1可达信元,SA2与SA3只有一条能发送SA1的可达信元。The fourth step, FIG. 9 is a schematic diagram 3 of the traffic network chip adaptive load balancing scheduling method according to the embodiment of the present invention. As shown in FIG. 9 , the values of the SAW and SAVL tables of the SA1 are first searched for 1 and 2, respectively. The product is 2, and then the value of the LW table of all the physical links of the SA0/SA2/SA3 is traversed and compared with 2. According to the above-mentioned judgment rule, only the link with the LW value less than or equal to 2 can send the SA1 reachable letter. yuan. For example, SA0 has only two links to send SA1 reachable cells, and SA2 and SA3 have only one reachable cell that can send SA1.
第五步,SA0/SA2/SA3根据其物理链路收到的可达信元情况,更新其各 自的路由表。In the fifth step, SA0/SA2/SA3 updates its each according to the reachable cell received by its physical link. Self routing table.
第六步,SA0/SA2/SA3根据其更新后的路由表,采用链路负载均衡的方式,将数据流从能收到SA1可达信元的链路发往SF,通过SF转发到达SA1。即SA0/SA2/SA3发往SA1数据流上行走向如图8中粗线所示:SA0只有两条链路将SA1的数据流发往SF,SA2和SA3只有一条链路将SA1的数据流发往SF。In the sixth step, the SA0/SA2/SA3 sends the data stream from the link that can receive the SA1 reachable cell to the SF and the SF to the SA1 according to the updated routing table. That is, the uplink of the SA1/SA2/SA3 to the SA1 data flow is as shown by the thick line in Figure 8. The SA0 has only two links to send the SA1 data stream to the SF, and the SA2 and SA3 only one link sends the SA1 data stream. To SF.
通过本发明实施例提供的交换网芯片流量自适应均衡调度方法,通过自适应负载均衡进入交换网芯片的流量,解决了传统授权调度方式无法区分芯片进行负载均衡的而造成交换网拥塞造成网络质量下降的缺陷,同时其能有效的兼容各种类型新老板卡,同时避免了由于损耗以及其他原因引起的链路关闭所造成的系统稳定性降低问题,为用户节省了设备更新换代的成本,同时极大提高了整个系统的稳定性。The traffic network chip adaptive equalization scheduling method provided by the embodiment of the present invention solves the problem that the traditional authorization scheduling mode cannot distinguish the chip from being load balanced and the network quality is caused by the congestion of the switching network. Degraded defects, while being effectively compatible with various types of new boss cards, while avoiding the problem of system stability reduction caused by link loss caused by loss and other reasons, saving users the cost of equipment replacement, and at the same time Greatly improve the stability of the entire system.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention.
工业实用性Industrial applicability
本发明实施例的技术方案,采用交换网SF芯片获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息;所述SF芯片根据获取的每一个SA芯片的链路信息,确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路。其中,所述通知消息用于通知所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据,能够解决交换网系统中交换网芯片的数据流量拥塞的问题,避免了数据在交换网拥塞,提高了数据转发的成功率。 The technical solution of the embodiment of the present invention uses the switching network SF chip to obtain link information of each switched access SA chip connected to the SF chip; the SF chip determines according to the acquired link information of each SA chip. A link for transmitting a notification message reachable by the destination SA chip to the source SA chip. The notification message is used to notify the source SA chip to send data to the destination SA chip through the determined link, which can solve the problem of data traffic congestion of the switching network chip in the switching network system, and avoid data exchange. Congestion of the network improves the success rate of data forwarding.

Claims (10)

  1. 一种通知消息发送方法,包括:A method for sending a notification message, comprising:
    交换网SF芯片获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息;The switching network SF chip acquires link information of each switched access SA chip connected to the SF chip;
    所述SF芯片根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路,其中,所述通知消息用于通知所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据。Determining, by the SF chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip according to the obtained link information of each SA chip, where the notification message is used to notify the source SA chip to pass The determined link transmits data to the destination SA chip.
  2. 根据权利要求1所述的方法,其中,所述SF芯片根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路包括:The method according to claim 1, wherein the SF chip determines, according to the acquired link information of each SA chip, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip, including:
    所述SF芯片根据所述链路信息更新SA有效链路数SAVL表和SA芯片权重SAW表,并更新链路权重LW表中SA芯片相应链路的LW值,其中,所述SAVL表中记录了所述SF芯片相连的SA芯片的有效链路数,所述SAW表中记录了所有SA芯片的权重,所述LW表记录了每一个SA芯片的所有链路的权重;Updating, by the SF chip, the SA effective link number SAVL table and the SA chip weight SAW table according to the link information, and updating the LW value of the corresponding link of the SA chip in the link weight LW table, where the SAVL table records The number of effective links of the SA chips connected to the SF chip, the SAW table records the weights of all the SA chips, and the LW table records the weights of all the links of each SA chip;
    所述SF芯片查询所述SAW表和SAVL表分别获取所述目的SA芯片的SAW值和SAVL值,并查询所述LW表得到所述源SA芯片的链路的LW值;The SF chip queries the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, and queries the LW table to obtain the LW value of the link of the source SA chip.
    所述SF芯片根据所述SAW值、所述SAVL值以及所述LW值,通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路。The SF chip determines, by calculation, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip according to the SAW value, the SAVL value, and the LW value.
  3. 根据权利要求2所述的方法,其中,所述SF芯片根据所述SAW值、所述SAVL值以及所述LW值,通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路包括:The method according to claim 2, wherein the SF chip determines, by calculation, a notification for transmitting a destination SA chip reachable to the source SA chip according to the SAW value, the SAVL value, and the LW value. The link of the message includes:
    将所述目的SA芯片的SAW值与所述SAVL值相乘得到所述SAW值与所述SAVL值的乘积;Multiplying a SAW value of the target SA chip by the SAVL value to obtain a product of the SAW value and the SAVL value;
    将所述SAW值与所述SAVL值的乘积与所述源SA芯片的链路的LW值进行比较;Comparing a product of the SAW value and the SAVL value with an LW value of a link of the source SA chip;
    在所述源SA芯片的链路的LW值小于等于所述目的SA芯片的SAW值 和所述SAVL值的乘积情况下,所述SF芯片确定通过所述源SA芯片的链路发送所述目的SA芯片可达的通知消息到所述源SA芯片。The LW value of the link of the source SA chip is less than or equal to the SAW value of the destination SA chip. In the case of the product of the SAVL value, the SF chip determines to send a notification message reachable by the destination SA chip to the source SA chip through the link of the source SA chip.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述链路信息包括物理链路总数,链路编号,链路状态和链路速率。The method according to any one of claims 1 to 3, wherein the link information comprises a total number of physical links, a link number, a link state, and a link rate.
  5. 一种数据发送方法,包括:A data transmission method includes:
    源交换接入SA芯片接收交换网SF芯片发送的通知消息,其中,所述通知消息是所述SF芯片在获取与所述SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息所确定的链路发送的;The source switching access SA chip receives the notification message sent by the switching network SF chip, where the notification message is obtained by the SF chip after acquiring the link information of each SA chip connected to the SF chip. The link determined by the link information of each SA chip is sent;
    所述源SA芯片根据所述通知消息,通过所述链路向目的SA芯片发送数据。The source SA chip transmits data to the destination SA chip through the link according to the notification message.
  6. 根据权利要求5所述的方法,其中,在所述源SA芯片接收所述SF芯片发送的通知消息之后,所述方法还包括:The method of claim 5, wherein after the source SA chip receives the notification message sent by the SF chip, the method further includes:
    所述源SA芯片根据所述通知消息,更新存储的所述目的SA芯片的转发表,其中,所述转发表中记录了所述目的SA芯片与可用链路的对应关系。And the source SA chip updates the stored forwarding table of the destination SA chip according to the notification message, where the mapping between the destination SA chip and the available link is recorded in the forwarding table.
  7. 根据权利要求6所述的方法,其中,所述源SA芯片根据所述通知消息通过所述链路向所述目的SA芯片发送数据包括:The method according to claim 6, wherein the source SA chip sends data to the destination SA chip through the link according to the notification message, including:
    所述源SA芯片通过查找所述转发表确定向所述目的SA芯片发送数据的链路;Determining, by the source SA chip, a link for transmitting data to the destination SA chip by searching the forwarding table;
    所述源SA芯片通过所确定的链路向所述目的SA芯片发送数据。The source SA chip transmits data to the destination SA chip through the determined link.
  8. 一种通知消息发送装置,应用于交换网SF芯片,包括:A notification message sending device is applied to a switching network SF chip, including:
    获取模块,设置为获取与所述SF芯片相连的每一个交换接入SA芯片的链路信息;An acquiring module, configured to acquire link information of each switched access SA chip connected to the SF chip;
    确定模块,设置为根据获取的每一个SA芯片的链路信息确定用于向源SA芯片发送目的SA芯片可达的通知消息的链路,其中,所述通知消息用于通知所述源SA芯片通过所确定的链路向所述目的SA芯片发送数 据。a determining module, configured to determine, according to the obtained link information of each SA chip, a link for sending a notification message reachable by the destination SA chip to the source SA chip, where the notification message is used to notify the source SA chip Sending the number to the destination SA chip through the determined link according to.
  9. 根据权利要求8所述的装置,其中,所述确定模块包括:The apparatus of claim 8 wherein said determining module comprises:
    更新单元,设置为根据所述链路信息更新SA芯片有效链路数SAVL表和SA芯片权重SAW表,并更新链路权重LW表中SA芯片相应链路的LW值,其中,所述SAVL表中记录了所述SF芯片相连SA芯片的有效链路数,所述SAW表中记录了所有SA芯片的权重,所述LW表记录了每一个SA芯片的所有链路的权重;And an updating unit, configured to update the SA chip effective link number SAVL table and the SA chip weight SAW table according to the link information, and update the LW value of the corresponding link of the SA chip in the link weight LW table, wherein the SAVL table Recording the effective link number of the SF chip-connected SA chip, wherein the SAW table records the weights of all the SA chips, and the LW table records the weights of all the links of each SA chip;
    查询单元,设置为查询所述SAW表和所述SAVL表分别获取所述目的SA芯片的SAW值和SAVL值,并查询所述LW表得到所述源SA芯片的链路的LW值;The query unit is configured to query the SAW table and the SAVL table to obtain the SAW value and the SAVL value of the target SA chip, and query the LW table to obtain the LW value of the link of the source SA chip;
    确定单元,设置为根据所述SAW值、所述SAVL值以及所述LW值,通过计算确定用于向所述源SA芯片发送目的SA芯片可达的通知消息的链路。The determining unit is configured to determine, according to the SAW value, the SAVL value, and the LW value, a link for transmitting a notification message reachable by the destination SA chip to the source SA chip.
  10. 一种数据发送装置,应用于源交换接入SA芯片,包括:A data sending device is applied to a source switching access SA chip, including:
    接收模块,设置为接收交换网SF芯片发送的通知消息,其中,所述通知消息是所述SF芯片在获取与所述SF芯片相连的每一个SA芯片的链路信息之后,通过根据获取的每一个SA芯片的链路信息确定的链路发送的;a receiving module, configured to receive a notification message sent by the switching network SF chip, where the notification message is that after the SF chip acquires link information of each SA chip connected to the SF chip, The link information determined by the link information of one SA chip is sent;
    发送模块,设置为根据所述通知消息通过所述链路向目的SA芯片发送数据。 The sending module is configured to send data to the destination SA chip through the link according to the notification message.
PCT/CN2016/080264 2016-01-04 2016-04-26 Data transmission method and device WO2016197729A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610005168.0A CN106941453A (en) 2016-01-04 2016-01-04 Data transmission method for uplink and device
CN201610005168.0 2016-01-04

Publications (1)

Publication Number Publication Date
WO2016197729A1 true WO2016197729A1 (en) 2016-12-15

Family

ID=57502852

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080264 WO2016197729A1 (en) 2016-01-04 2016-04-26 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN106941453A (en)
WO (1) WO2016197729A1 (en)

Cited By (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032931B2 (en) * 2002-10-30 2011-10-04 Brocade Communications Systems, Inc. Fabric manager multiple device login
CN102387084A (en) * 2011-11-29 2012-03-21 中国航空工业集团公司第六三一研究所 System structure based on Rapid IO (Input Output) protocol packet exchange
CN103763135A (en) * 2014-01-06 2014-04-30 杭州华三通信技术有限公司 PE traffic scheduling method and device
CN104135447A (en) * 2014-08-06 2014-11-05 曙光信息产业(北京)有限公司 Data packet transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8032931B2 (en) * 2002-10-30 2011-10-04 Brocade Communications Systems, Inc. Fabric manager multiple device login
CN102387084A (en) * 2011-11-29 2012-03-21 中国航空工业集团公司第六三一研究所 System structure based on Rapid IO (Input Output) protocol packet exchange
CN103763135A (en) * 2014-01-06 2014-04-30 杭州华三通信技术有限公司 PE traffic scheduling method and device
CN104135447A (en) * 2014-08-06 2014-11-05 曙光信息产业(北京)有限公司 Data packet transmission method and device

Cited By (2)

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

Also Published As

Publication number Publication date
CN106941453A (en) 2017-07-11

Similar Documents

Publication Publication Date Title
US8995277B2 (en) Method for dynamic load balancing of network flows on LAG interfaces
US8427958B2 (en) Dynamic latency-based rerouting
CN101640644B (en) Method and equipment for flow equilibrium based on flexible link group
CN109756421B (en) Congestion control system and method based on OpenFlow technology
US9059922B2 (en) Network traffic distribution
US20130003549A1 (en) Resilient Hashing for Load Balancing of Traffic Flows
WO2012029422A1 (en) Communication quality monitoring system, communication quality monitoring method, and storage medium
US20200358692A1 (en) Routing and forwarding method for multi-homed network based on programmable network technology
US20170207994A1 (en) Network communication system, software-defined network controller and routing method thereof
CN107888492A (en) A kind of method and apparatus of VRRP load balancing
CN102098224A (en) Method and device for sharing data stream loads
US11863322B2 (en) Communication method and apparatus
US9118592B2 (en) Switch and/or router node advertising
CN110784373A (en) Virtual network convergence method and device
US20150003291A1 (en) Control apparatus, communication system, communication method, and program
WO2016197729A1 (en) Data transmission method and device
US9832066B2 (en) Port number extension method and switch
US10305811B2 (en) Control apparatus, communication system, communication node control method, and program
CN106209633B (en) Message forwarding method and device
CN116668374A (en) Communication method and device
US10044671B2 (en) Control apparatus, communication system, communication method, and program
US9497296B2 (en) Communication method, information processing apparatus, communication system, program, node, and communication terminal for identifying packet flows as a group and adding identifier to a packet belonging to packet flows and setting rules for forwarding the packet
Nithin et al. Efficient load balancing for multicast traffic in data center networks using SDN
CN112910795B (en) Edge load balancing method and system based on many sources
CN107113244B (en) Data forwarding 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: 16806627

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

Country of ref document: EP

Kind code of ref document: A1