WO2012058888A1 - Method and device for monitoring multiple links - Google Patents

Method and device for monitoring multiple links Download PDF

Info

Publication number
WO2012058888A1
WO2012058888A1 PCT/CN2011/071561 CN2011071561W WO2012058888A1 WO 2012058888 A1 WO2012058888 A1 WO 2012058888A1 CN 2011071561 W CN2011071561 W CN 2011071561W WO 2012058888 A1 WO2012058888 A1 WO 2012058888A1
Authority
WO
WIPO (PCT)
Prior art keywords
chain
bandwidth
sub
available bandwidth
currently available
Prior art date
Application number
PCT/CN2011/071561
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 WO2012058888A1 publication Critical patent/WO2012058888A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Definitions

  • the present invention relates to the field of communications, and in particular, to a multi-chain monitoring method and apparatus. Background technique
  • MPPP PPP Multilink Protocol
  • PPP Point to Point Protocol
  • MPPP Multilink Protocol PPP Multilink Protocol
  • the typical networking of multi-chain is shown in Figure 1.
  • the maximum bandwidth of each sub-chain is 2M bit/s. If the three low-speed sub-chains are bundled into one multi-chain, the maximum bandwidth of the multi-chain is 2M*3 bit. /s, that is, the bandwidth of the multi-chain is the sum of the bandwidths of the sub-chains.
  • the minimum bandwidth of multi-chain aggregation cannot be guaranteed in the prior art. For example, when the data needs to be transmitted, the prediction is performed. If the minimum bandwidth of the multi-chain required during the transmission is 4 Mbit/s, the transmission of the multi-chain will be congested when the bandwidth is smaller than this bandwidth, resulting in delay and failure to satisfy the message.
  • the real-time requirement of the transmission where the data can be transmitted by a single user or multiple users.
  • the multi-chain is as shown in Figure 1, it consists of three sub-chains, each with a bandwidth of 2 M bit/s, a multi-chain bandwidth of 6 M bit/s, and the minimum multi-chain required during transmission. The bandwidth is 4 Mbit/s.
  • Embodiments of the present invention provide a multi-chain monitoring method for implementing monitoring of multiple chains, It is true that there is congestion in the multi-chain to ensure the normal transmission of information.
  • a multi-chain monitoring method includes the following steps:
  • the bandwidth protection measures are taken and an alarm message is sent.
  • a multi-chain monitoring device includes: a calculation module, a comparison module, and a protection module; wherein the calculation module is configured to obtain a current available bandwidth of the multi-chain;
  • the comparing module is configured to determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold
  • the protection module is configured to send an alarm message when the determination result is yes.
  • the embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth is not satisfactory, an alarm message is sent to know whether the multi-chain is faulty, which facilitates multi-chain maintenance and prevents information transmission delay due to multi-chain congestion.
  • FIG. 1 is a schematic diagram of a network structure of a multi-chain in the prior art
  • FIG. 2A is a main structural diagram of a multi-chain monitoring device according to an embodiment of the present invention.
  • 2B is a detailed structural diagram of a multi-chain monitoring device according to an embodiment of the present invention.
  • FIG. 3 is a main flowchart of a multi-chain monitoring method according to an embodiment of the present invention.
  • FIG. 4 is a detailed flowchart of a multi-chain monitoring method according to an embodiment of the present invention.
  • FIG. 5 is a detailed flowchart of recovering a multi-chain operating state according to an embodiment of the present invention.
  • FIG. 6 is a detailed flowchart of determining whether multi-chain protection processing is required in the embodiment of the present invention. detailed description
  • the embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth is not satisfactory, an alarm message is sent to know whether the multi-chain is faulty, which facilitates multi-chain maintenance and prevents information transmission delay due to multi-chain congestion.
  • the apparatus for multi-chain monitoring in the embodiment of the present invention includes a comparison module 201, a protection module 202, and a calculation module 203.
  • the device has one set at each end of the multi-chain, and the same operation process is performed at both ends simultaneously to avoid the following situation: If the device is only located at one end of the multi-chain, when the device detects the sub-chain in the multi-chain An exception occurs, the multi-chain is protected, its work is stopped, and the multi-chain peer is not aware of the message, and still sends data to the multi-chain end or waits to receive data, which may cause a failure.
  • the comparison module 201 is configured to determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold.
  • the comparison module 201 compares the currently available bandwidth of the multi-chain with the preset minimum bandwidth threshold, and determines whether the current available bandwidth of the multi-chain is less than the minimum bandwidth threshold. If the determination result is yes, the notification protection module 202 sends an alarm message to learn. This multi-chain is abnormal; if the judgment result is no, the multi-chain continues to work normally.
  • the protection module 202 is configured to: when the determination result is yes, take bandwidth protection measures and issue alarm information.
  • the protection module 202 is configured to protect the multiple chains when the current available bandwidth of the multi-chain is less than the minimum bandwidth threshold.
  • the protection measure may be to stop only the operation of the multi-chain, that is, to stop the current data forwarding of the multi-chain; or to stop the work of the multi-chain, and switch the multi-chain service to other alternate multi-chains. For example, in a switching manner, the protection module 202 switches the address of the received data to the standby multi-chain by the multi-chain, so that the service information sent by the sender is transmitted through the alternate multi-chain, and the multi-chain is no longer used.
  • a multi-chain can have one or more spare multi-chains, and the spare multi-chain is more When the chain fails, the bandwidth of the alternate multi-chain is at least equal to the maximum available bandwidth of the multi-chain.
  • the protection module 202 sends an alarm message to learn that the multi-chain is faulty, and the multi-chain that locates the fault when the maintenance is convenient.
  • the calculation module 203 is used to obtain the currently available bandwidth of the multi-chain.
  • some sub-chains may be abnormal, causing the sub-chain to be unavailable.
  • the sub-chain automatically jumps from the active state to the inactive state, and the working status bit in the state machine changes.
  • the calculation module 203 calculates the current available bandwidth of the multi-chain according to the bandwidth of the remaining activated sub-chains in the multi-chain, that is, calculates the current available bandwidth of the multi-chain according to the bandwidth of the currently activated sub-chain of the multi-chain, and the current available bandwidth of the multi-chain is more The bandwidth of the currently activated sub-chain in the chain is added.
  • the calculation module 203 is also used to calculate the maximum available bandwidth of the multi-chain.
  • the calculation module 203 calculates the total bandwidth of the activated sub-chains in the multi-chain when the multi-chain is initially activated, that is, adds the bandwidths of the activated sub-chains in the multi-chain to obtain the maximum available bandwidth of the multi-chain.
  • the multi-chain is activated initially, each sub-chain in the multi-chain is activated, but at this time, some sub-chains may have abnormalities and cannot be activated, and these abnormalities may be abnormalities that cannot be automatically recovered.
  • the bandwidths of all the sub-chains included in the multi-chain are not selected to be added, but the bandwidths of the activated sub-chains in the multi-chain are added after the multi-chain is initially activated.
  • FIG. 2B is a detailed structural diagram of a multi-chain monitoring apparatus according to an embodiment of the present invention.
  • the apparatus further includes a detecting module 204 and a negotiating module 205.
  • the device may further include a configuration module 206.
  • the detection module 204 is configured to detect multiple chains.
  • the detecting module 204 detects the multi-chain when the working status bit in the state machine changes, determines the sub-chain that is currently activated by the multi-chain, and detects the currently available bandwidth in the multi-chain, that is, the currently available bandwidth of the multi-chain.
  • the multi-chain currently available bandwidth is the sum of the bandwidths of the activated sub-chains in the multi-chain.
  • Each sub-chain in the multi-chain has a state machine for recording the state of the sub-chain.
  • the state machine contains a plurality of status bits, one of which is a working status bit, for example, if the sub-chain is active, then The working status bit is "1". If the sub-chain is inactive, the working status bit is "0".
  • the working status bits in the state machine of the sub-chain are judged, or other ways may be used to indicate activation and inactivity.
  • some sub-chains may be abnormal, causing the sub-chain to be unavailable.
  • the sub-chain automatically jumps from the active state to the inactive state, and the working status bit in the state machine changes, by "1". It becomes "0".
  • the detection module 204 finds that the working status bit in the sub-chain state machine changes, that is, when the detection module 204 finds that the status of the sub-chain has changed from active to inactive, or from inactive to active, the sub-function is started.
  • the multi-chain in which the chain is located is detected to determine the currently activated sub-chain in the multi-chain.
  • the inactive state of the sub-chain may be that the multi-chain has not been activated; or the sub-chain may be faulty; or the other sub-chains of the multi-chain where the sub-chain is located are faulty, and the protection module 202 performs protection processing. , all the sub-chains in the multi-chain are stopped.
  • the negotiation module 205 is configured to implement negotiation bundling of the sub-chain.
  • the negotiation module 205 is responsible for the negotiation work at both ends of each sub-chain.
  • the two ends of the sub-chain determine the maximum data that can be transmitted through negotiation. After the negotiation succeeds, the bandwidth of the sub-chain is obtained, and the sub-chain is activated.
  • This negotiation is implemented by sending packets to each other at both ends of the sub-chain.
  • the task of negotiation is to determine the maximum bandwidth that this sub-chain can transmit.
  • One end of the sub-chain sends a packet to the other end of the sub-chain.
  • the packet carries information about how much data can be sent by one end of the sub-chain.
  • the other end of the sub-chain returns a packet to one end of the sub-chain.
  • the packet carries the sub-chain.
  • one end of the sub-chain continues to send the second end to the other end of the sub-chain.
  • the size of the data that can be sent by one end of the second packet carrying the second packet is 800.
  • the data is the smaller value of the data carried in the packets sent from the first time to each other.
  • the terminal After receiving the packet, the terminal sends a second packet to the end of the sub-chain, and the packet carries the other end of the sub-chain.
  • the data size is 800, and the data carried in the two second packets is equal in size.
  • the negotiation module 205 changes the working status bit in the state machine of the sub-chain, and changes the working status bit from "0". Activate this subchain for "1".
  • the configuration module 206 is configured to configure a minimum bandwidth threshold.
  • the configuration module 206 configures the minimum bandwidth threshold according to the needs of the application, that is, according to the bandwidth configuration required for the transmission, for example, the minimum bandwidth threshold can be the minimum bandwidth required for transmission.
  • the configuration module 206 can also store the preset minimum bandwidth threshold. For example, the maximum available bandwidth of the multi-chain is 10, and the minimum bandwidth required for transmission is 6, the configuration module 206 sets the minimum bandwidth threshold to 6.
  • the two ends of the multi-chain are configured at the same time. The value of the configuration needs to be consistent, and the configured value needs to be no greater than the maximum available bandwidth of the multi-chain.
  • FIG. 3 is a main flowchart of a multi-chain monitoring method according to an embodiment of the present invention. Referring to FIG. 3, the main method flow of multi-chain monitoring in the embodiment of the present invention is as follows:
  • Step 301 Obtain the currently available bandwidth of the multi-chain.
  • Step 302 Determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold. When the result of the determination is yes, proceed to step 303, otherwise the multi-chain continues to operate normally.
  • the preset minimum bandwidth threshold is not greater than the maximum available bandwidth of the multi-chain and is not less than the bandwidth required for transmission.
  • Step 303 When the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent.
  • 4 is a detailed flowchart of a multi-chain monitoring method according to an embodiment of the present invention. Referring to FIG. 4, the detailed method of multi-chain monitoring in the embodiment of the present invention is as follows:
  • Step 401 Detect multiple chains.
  • Step 402 Determine if a sub-chain is unavailable. When the determination result is yes, step 403 is performed, otherwise step 406 is performed. The sub-chain in which the anomaly occurred is determined by the state machine that changed. Step 403: Calculate the currently available bandwidth of the multi-chain.
  • Step 404 Determine whether the currently available bandwidth of the multi-chain is less than a minimum bandwidth threshold. When the result of the determination is yes, proceed to step 405, otherwise proceed to step 406.
  • Step 405 Stop the work of the entire multi-chain and issue an alarm message. Or if the multi-chain has multiple links, the multi-chain service can also be switched to the alternate multi-chain. Alternatively, it is only possible to issue an alarm message without stopping the operation of the multi-chain, and the multi-chain can continue to transmit if the current available bandwidth is insufficient.
  • Step 406 Multi-chain operation is normal.
  • the operation of the multi-chain may be stopped. If the fault of the abnormal sub-chain in the multi-chain is released, and the available bandwidth of the multi-chain re-satisfies the transmission requirement, the normal operation state of the multi-chain needs to be restored. Referring to FIG. 5, the detailed process of recovering the multi-chain running state in the embodiment of the present invention is as follows:
  • the multi-chain stops working and the multi-chain service has been switched to its spare multi-chain.
  • Step 501 A sub-chain is released from the fault in the multi-chain, and the sub-chain that cancels the fault is activated. However, the multi-chain transmission data is not used at this time.
  • Step 502 Determine whether a state machine changes in the multi-chain.
  • the process proceeds to step 503, otherwise the process proceeds to step 501.
  • the change of the state machine mentioned in this step refers to the change of the working status bit in the state machine.
  • Step 503 Calculate the currently available bandwidth of the multi-chain.
  • Step 504 Determine whether the currently available bandwidth of the multi-chain is less than a minimum bandwidth threshold. When the result of the determination is no, the process proceeds to step 505, otherwise the process proceeds to step 501.
  • Step 505 Resume the normal service processing of the multi-chain, and the multi-chain operates normally. This step can be accomplished by switching the receive address from the alternate multi-chain to multiple chains. Among them, the multi-chain negotiation process and the process of configuring the minimum bandwidth threshold are not required, and the multi-chain can be directly operated. Referring to FIG. 6, in the embodiment of the present invention, a detailed method for determining whether multi-chain detection is required is performed:
  • Step 601 Start multi-chain negotiation and activate multi-chain.
  • Step 602 Calculate the maximum available bandwidth of the multi-chain according to the activated sub-chain in the multi-chain.
  • Step 603 Configure the minimum bandwidth threshold. Configure the minimum bandwidth threshold based on the needs of the application and the maximum available bandwidth of the multi-chain.
  • Step 604 Determine whether there is a change in the working status bit in the state machine in the multi-chain. When the answer is yes, proceed to step 605, otherwise continue to step 606.
  • Step 605 Detect multiple chains.
  • Step 606 Multi-chain operation is normal.
  • the embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth does not meet the requirements, the multi-chain is implemented with protection measures, and an alarm message is sent to know whether the multi-chain is faulty, facilitating multi-chain maintenance, preventing multi-chain congestion, and causing information transmission. There is a delay.
  • the multi-chain is detected when the working status bit in the state machine of the sub-chain changes, so that the detection process can be started when necessary to avoid unnecessary resource consumption.
  • the minimum bandwidth threshold is set.
  • the multi-chain When the current available bandwidth of the multi-chain is less than the minimum bandwidth, the multi-chain is protected, and the multi-chain can be protected at a relatively accurate time, so that the protection is more timely and necessary.
  • multi-chain protection When multi-chain protection is applied, the operation of multi-chain can be stopped, and the multi-chain congestion and delay can be prevented by continuing to use the multi-chain transmission data; the multi-chain task can also be switched to other alternate multi-chains, so that the task can be performed. Normal transmission, no delay; Send an alarm message to know whether the multi-chain is faulty and the time of failure, and it is convenient for the maintenance equipment to maintain the multi-chain.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can be implemented in an entirely hardware embodiment, fully software implemented For example, or in combination with an embodiment of software and hardware aspects. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • a computer usable storage medium including but not limited to disk storage and optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

Abstract

A method for monitoring multiple links is provided by the present invention, used to detect the multiple links, for accurately obtaining whether the multi-link congestion occurs or not, and ensuring normal transmission of information. The method includes: obtaining current usable bandwidth of the multiple links; judging whether the current usable bandwidth of the multiple links is less than a preset minimum bandwidth threshold; if yes, performing the bandwidth protection measures, and sending out alarm information. A device for detecting and monitoring multiple links is also provided by the present invention correspondingly. By applying the present invention, when the bandwidth does not satisfy the requirement because the partial sub-links break down, the alarm information is sent out to obtain whether the multiple links break down, and the multi-link maintenance is performed conveniently, the information transmission delay due to the multi-link congestion is prevented.

Description

一种多链监测方法及装置 技术领域  Multi-chain monitoring method and device
本发明涉及通信领域, 特别涉及一种多链监测方法及装置。 背景技术  The present invention relates to the field of communications, and in particular, to a multi-chain monitoring method and apparatus. Background technique
随着 PPP ( Point to Point Protocol, 点对点协议 ) 的广泛应用, MPPP ( PPP Multilink Protocol, 多重链路点对点协议)作为 PPP功能扩展协议也 应运而生。 它可以为用户提供更大的带宽, 实现数据的快速转发, 同时还 可以对子链资源进行动态分配, 有效利用子链资源, 将多条低速子链捆绑 到一起, 组成一个多链。 多链典型的组网如图 1 所示, 4叚设每条子链的最 大带宽为 2M bit/s, 如果将三条低速子链捆绑成一个多链, 则该多链最大带 宽为 2M*3 bit/s, 即多链的带宽是各子链的带宽之和。  With the widespread application of PPP (Point to Point Protocol), MPPP (PPP Multilink Protocol) has emerged as a PPP function extension protocol. It can provide users with more bandwidth, realize fast data forwarding, and can also dynamically allocate sub-chain resources, effectively utilize sub-chain resources, and bundle multiple low-speed sub-chains together to form a multi-chain. The typical networking of multi-chain is shown in Figure 1. The maximum bandwidth of each sub-chain is 2M bit/s. If the three low-speed sub-chains are bundled into one multi-chain, the maximum bandwidth of the multi-chain is 2M*3 bit. /s, that is, the bandwidth of the multi-chain is the sum of the bandwidths of the sub-chains.
然而, 在现有技术中无法保证多链聚合的最小带宽。 例如, 在需要传 输数据时进行预测, 如果在传送过程中所需的多链最小带宽为 4M bit/s, 小 于这个带宽时多链的传输会出现拥塞现象, 进而导致时延, 无法满足报文 发送的实时性要求, 其中, 可以是单用户或多用户传输数据。 当如图 1 中 所示的多链, 由三条子链组成, 每条子链的带宽为 2 M bit/s, 多链的带宽为 6 M bit/s, 在传送过程中所需的多链最小带宽为 4M bit/s, 如果该多链中有 两条子链发生故障, 只有一条子链正常工作时, 可用带宽只有 2M bit/s, 无 法满足传输需要的最小带宽的要求, 导致多链拥塞。 而现有技术中没有相 应的处理措施, 无法获知多链是否拥塞。 发明内容  However, the minimum bandwidth of multi-chain aggregation cannot be guaranteed in the prior art. For example, when the data needs to be transmitted, the prediction is performed. If the minimum bandwidth of the multi-chain required during the transmission is 4 Mbit/s, the transmission of the multi-chain will be congested when the bandwidth is smaller than this bandwidth, resulting in delay and failure to satisfy the message. The real-time requirement of the transmission, where the data can be transmitted by a single user or multiple users. When the multi-chain is as shown in Figure 1, it consists of three sub-chains, each with a bandwidth of 2 M bit/s, a multi-chain bandwidth of 6 M bit/s, and the minimum multi-chain required during transmission. The bandwidth is 4 Mbit/s. If two sub-chains in the multi-chain fail, only one sub-chain works normally. The available bandwidth is only 2 Mbit/s, which cannot meet the minimum bandwidth required for transmission, resulting in multi-chain congestion. However, there is no corresponding treatment in the prior art, and it is impossible to know whether the multi-chain is congested. Summary of the invention
本发明实施例提供一种多链监测方法, 用于实现对多链的监测, 以正 确获知多链是否出现拥塞现象, 保证信息的正常传输。 Embodiments of the present invention provide a multi-chain monitoring method for implementing monitoring of multiple chains, It is true that there is congestion in the multi-chain to ensure the normal transmission of information.
一种多链监测方法, 包括以下步骤:  A multi-chain monitoring method includes the following steps:
获得多链当前可用带宽;  Obtain the currently available bandwidth of the multi-chain;
判断所述多链当前可用带宽是否小于预设的最小带宽阔值;  Determining whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold;
所述多链当前可用带宽小于预设的最小带宽阔值, 则釆取带宽保护措 施, 并发出告警信息。  If the current available bandwidth of the multi-chain is less than the preset minimum bandwidth threshold, the bandwidth protection measures are taken and an alarm message is sent.
一种多链监测装置, 包括: 计算模块、 比较模块和保护模块; 其中, 所述计算模块, 用于获得多链当前可用带宽;  A multi-chain monitoring device includes: a calculation module, a comparison module, and a protection module; wherein the calculation module is configured to obtain a current available bandwidth of the multi-chain;
所述比较模块, 用于判断所述多链当前可用带宽是否小于预设的最小 带宽阔值;  The comparing module is configured to determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold;
所述保护模块, 用于当判断结果为是时, 发出告警信息。  The protection module is configured to send an alarm message when the determination result is yes.
本发明实施例获得多链当前可用带宽; 判断所述多链当前可用带宽是 否小于预设的最小带宽阔值; 当判断结果为是时, 釆取带宽保护措施, 并 发出告警信息。 从而当部分子链发生故障致使带宽不满足要求时, 发出告 警信息, 以获知多链是否发生故障, 便于进行多链维护, 防止因多链拥塞 而导致信息传输出现时延。 附图说明  The embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth is not satisfactory, an alarm message is sent to know whether the multi-chain is faulty, which facilitates multi-chain maintenance and prevents information transmission delay due to multi-chain congestion. DRAWINGS
图 1为现有技术中多链的网络结构示意图;  1 is a schematic diagram of a network structure of a multi-chain in the prior art;
图 2A为本发明实施例中多链监测装置的主要结构图;  2A is a main structural diagram of a multi-chain monitoring device according to an embodiment of the present invention;
图 2B为本发明实施例中多链监测装置的详细结构图;  2B is a detailed structural diagram of a multi-chain monitoring device according to an embodiment of the present invention;
图 3为本发明实施例中多链监测方法的主要流程图;  3 is a main flowchart of a multi-chain monitoring method according to an embodiment of the present invention;
图 4为本发明实施例中多链监测方法的详细流程图;  4 is a detailed flowchart of a multi-chain monitoring method according to an embodiment of the present invention;
图 5为本发明实施例中多链运行状态恢复的详细流程图;  FIG. 5 is a detailed flowchart of recovering a multi-chain operating state according to an embodiment of the present invention; FIG.
图 6为本发明实施例中确定是否需要进行多链保护处理的详细流程图。 具体实施方式 FIG. 6 is a detailed flowchart of determining whether multi-chain protection processing is required in the embodiment of the present invention. detailed description
本发明实施例获得多链当前可用带宽; 判断所述多链当前可用带宽是 否小于预设的最小带宽阔值; 当判断结果为是时, 釆取带宽保护措施, 并 发出告警信息。 从而当部分子链发生故障致使带宽不满足要求时, 发出告 警信息, 以获知多链是否发生故障, 便于进行多链维护, 防止因多链拥塞 而导致信息传输出现时延。  The embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth is not satisfactory, an alarm message is sent to know whether the multi-chain is faulty, which facilitates multi-chain maintenance and prevents information transmission delay due to multi-chain congestion.
图 2A为本发明实施例中多链监测装置的主要结构图, 如图 2A所示, 本发明实施例中多链监测的装置包括比较模块 201、保护模块 202及计算模 块 203。 所述装置在多链的两端各有一套, 两端同时进行相同的操作过程, 以避免以下情况发生: 如果所述装置只位于多链的一端, 当此装置检测到 多链中有子链发生异常, 对此多链进行保护, 停止其工作, 而多链对端并 不知悉此消息, 依然向多链此端发送数据或等待接收数据, 这样可能会导 致故障。  2A is a main structural diagram of a multi-chain monitoring apparatus according to an embodiment of the present invention. As shown in FIG. 2A, the apparatus for multi-chain monitoring in the embodiment of the present invention includes a comparison module 201, a protection module 202, and a calculation module 203. The device has one set at each end of the multi-chain, and the same operation process is performed at both ends simultaneously to avoid the following situation: If the device is only located at one end of the multi-chain, when the device detects the sub-chain in the multi-chain An exception occurs, the multi-chain is protected, its work is stopped, and the multi-chain peer is not aware of the message, and still sends data to the multi-chain end or waits to receive data, which may cause a failure.
比较模块 201 用于判断多链当前可用带宽是否小于预设的最小带宽阔 值。 比较模块 201 将多链当前可用带宽和预设的最小带宽阔值进行比较, 判断多链当前可用带宽是否小于最小带宽阔值, 如果判断结果为是, 则通 知保护模块 202发出告警信息, 以获知此多链发生异常; 如果判断结果为 否, 则此多链继续正常工作。  The comparison module 201 is configured to determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold. The comparison module 201 compares the currently available bandwidth of the multi-chain with the preset minimum bandwidth threshold, and determines whether the current available bandwidth of the multi-chain is less than the minimum bandwidth threshold. If the determination result is yes, the notification protection module 202 sends an alarm message to learn. This multi-chain is abnormal; if the judgment result is no, the multi-chain continues to work normally.
保护模块 202用于当判断结果为是时, 釆取带宽保护措施, 并发出告 警信息。 保护模块 202用于当多链当前可用带宽小于最小带宽阔值时, 保 护多链。 较佳的, 保护措施可以是仅停止此多链的工作, 即停止此多链当 前的数据转发; 或者停止此多链的工作, 并且将此多链的业务倒换到其它 备用多链上。 例如一种倒换方式可以是, 保护模块 202将接收数据的地址 由此多链切换到备用多链, 使发送端发送的业务信息经过备用多链传输, 而不再使用此多链。 一条多链可以有一条或多条备用多链, 备用多链在多 链发生故障时启用, 备用多链的带宽至少等于多链的最大可用带宽。 保护 模块 202发出告警信息, 用以获知此多链发生故障, 及便于维护时定位发 生故障的多链。 The protection module 202 is configured to: when the determination result is yes, take bandwidth protection measures and issue alarm information. The protection module 202 is configured to protect the multiple chains when the current available bandwidth of the multi-chain is less than the minimum bandwidth threshold. Preferably, the protection measure may be to stop only the operation of the multi-chain, that is, to stop the current data forwarding of the multi-chain; or to stop the work of the multi-chain, and switch the multi-chain service to other alternate multi-chains. For example, in a switching manner, the protection module 202 switches the address of the received data to the standby multi-chain by the multi-chain, so that the service information sent by the sender is transmitted through the alternate multi-chain, and the multi-chain is no longer used. A multi-chain can have one or more spare multi-chains, and the spare multi-chain is more When the chain fails, the bandwidth of the alternate multi-chain is at least equal to the maximum available bandwidth of the multi-chain. The protection module 202 sends an alarm message to learn that the multi-chain is faulty, and the multi-chain that locates the fault when the maintenance is convenient.
计算模块 203 用于获得多链当前可用带宽。 多链在运行时, 有的子链 可能出现异常, 导致该子链不可用, 该子链自动由激活状态跳转到未激活 状态, 其状态机中的工作状态位发生改变。 计算模块 203根据多链中剩余 的已激活子链的带宽计算多链当前可用带宽, 即根据多链当前已激活子链 的带宽计算多链当前可用带宽, 所述多链当前可用带宽为将多链中当前已 激活子链的带宽相加。 计算模块 203还用于计算多链最大可用带宽。 较佳 的, 计算模块 203 当多链最初被激活时, 计算多链中已激活的子链的总带 宽, 即将多链中已激活的子链的带宽相加, 得到多链最大可用带宽。 其中, 当最初激活多链时, 会将多链中每个子链均进行激活, 但此时有的子链可 能已经出现异常而导致不能被激活, 且这些异常可能是无法自动恢复的异 常。 因此计算多链的最大可用带宽时不选择将多链中包括的所有子链的带 宽相加, 而是在多链最初激活后将多链中已激活的子链的带宽相加。  The calculation module 203 is used to obtain the currently available bandwidth of the multi-chain. When the multi-chain is running, some sub-chains may be abnormal, causing the sub-chain to be unavailable. The sub-chain automatically jumps from the active state to the inactive state, and the working status bit in the state machine changes. The calculation module 203 calculates the current available bandwidth of the multi-chain according to the bandwidth of the remaining activated sub-chains in the multi-chain, that is, calculates the current available bandwidth of the multi-chain according to the bandwidth of the currently activated sub-chain of the multi-chain, and the current available bandwidth of the multi-chain is more The bandwidth of the currently activated sub-chain in the chain is added. The calculation module 203 is also used to calculate the maximum available bandwidth of the multi-chain. Preferably, the calculation module 203 calculates the total bandwidth of the activated sub-chains in the multi-chain when the multi-chain is initially activated, that is, adds the bandwidths of the activated sub-chains in the multi-chain to obtain the maximum available bandwidth of the multi-chain. Among them, when the multi-chain is activated initially, each sub-chain in the multi-chain is activated, but at this time, some sub-chains may have abnormalities and cannot be activated, and these abnormalities may be abnormalities that cannot be automatically recovered. Therefore, when calculating the maximum available bandwidth of the multi-chain, the bandwidths of all the sub-chains included in the multi-chain are not selected to be added, but the bandwidths of the activated sub-chains in the multi-chain are added after the multi-chain is initially activated.
图 2B为本发明实施例中多链监测装置的详细结构图, 参见图 2B, 所 述装置还包括检测模块 204、 协商模块 205 , 所述装置还可以包括配置模块 206。  2B is a detailed structural diagram of a multi-chain monitoring apparatus according to an embodiment of the present invention. Referring to FIG. 2B, the apparatus further includes a detecting module 204 and a negotiating module 205. The device may further include a configuration module 206.
检测模块 204用于对多链进行检测。 检测模块 204当状态机中的工作 状态位发生变化时, 对多链进行检测, 确定该多链当前已激活的子链, 检 测多链中当前可供使用的带宽, 即多链当前可用带宽, 该多链当前可用带 宽为多链中已激活的子链的带宽之和。 多链中的每条子链都有一个状态机, 用于记录子链的状态, 状态机中包含多个状态位, 其中一个状态位为工作 状态位, 例如, 如果子链为激活状态, 则该工作状态位为 " 1", 如果子链 为未激活状态, 则该工作状态位为 "0"。 判断某子链是否激活, 可以通过 该子链的状态机中的工作状态位来判断, 或者可以用其它方式来表示激活 与未激活。 多链在运行时, 有的子链可能出现异常, 导致该子链不可用, 该子链自动由激活状态跳转到未激活状态, 其状态机中的工作状态位发生 改变, 由 "1" 变为 "0"。 当检测模块 204发现有子链状态机中的工作状态 位发生改变时, 即当检测模块 204发现有子链的状态由激活变为未激活, 或者由未激活变为激活时, 开始对该子链所在的多链进行检测, 确定多链 中当前已激活的子链。 其中, 子链的未激活状态可能是该多链尚未被激活; 也可能是该子链发生了故障; 或者是该子链所在多链的其它子链发生故障, 经保护模块 202进行保护处理后, 将该多链中的所有子链均停止运行。 The detection module 204 is configured to detect multiple chains. The detecting module 204 detects the multi-chain when the working status bit in the state machine changes, determines the sub-chain that is currently activated by the multi-chain, and detects the currently available bandwidth in the multi-chain, that is, the currently available bandwidth of the multi-chain. The multi-chain currently available bandwidth is the sum of the bandwidths of the activated sub-chains in the multi-chain. Each sub-chain in the multi-chain has a state machine for recording the state of the sub-chain. The state machine contains a plurality of status bits, one of which is a working status bit, for example, if the sub-chain is active, then The working status bit is "1". If the sub-chain is inactive, the working status bit is "0". Determine whether a sub-chain is activated, you can pass The working status bits in the state machine of the sub-chain are judged, or other ways may be used to indicate activation and inactivity. When the multi-chain is running, some sub-chains may be abnormal, causing the sub-chain to be unavailable. The sub-chain automatically jumps from the active state to the inactive state, and the working status bit in the state machine changes, by "1". It becomes "0". When the detection module 204 finds that the working status bit in the sub-chain state machine changes, that is, when the detection module 204 finds that the status of the sub-chain has changed from active to inactive, or from inactive to active, the sub-function is started. The multi-chain in which the chain is located is detected to determine the currently activated sub-chain in the multi-chain. The inactive state of the sub-chain may be that the multi-chain has not been activated; or the sub-chain may be faulty; or the other sub-chains of the multi-chain where the sub-chain is located are faulty, and the protection module 202 performs protection processing. , all the sub-chains in the multi-chain are stopped.
协商模块 205用于实现子链的协商捆绑。 在多链中, 协商模块 205 负 责每条子链两端的协商工作, 子链两端通过协商确定可以传输的最大数据, 协商成功后获得此子链的带宽, 对此子链进行激活。 此协商通过在子链两 端互发报文来实现, 协商的任务是确定此子链可以传输的最大带宽。 子链 的一端向子链的另一端发送报文, 该报文携带子链的一端可以发送多少数 据的信息, 子链的另一端向子链的一端返回报文, 该报文携带子链的另一 端最多可以接收多少数据的信息。 如果两个报文中携带的数据大小相等, 则此子链的状态机将子链的状态设置为激活, 即将工作状态位设置为 " Γ , 如果两个报文中携带的数据大小不相等, 则需继续互发报文, 协商两端都 可以接受的数据大小。 例如, 子链的一端可以发送的数据大小为 1000, 子 链的另一端可以接收的数据大小为 800,则上述两个报文中携带的数据大小 不相等, 协商模块 205 需继续通过两端互发报文来确定此子链两端都可以 接受的数据大小, 例如子链的一端继续向子链的另一端发送第二个报文, 该第二个报文携带子链的一端可以发送的数据大小为 800,该数据为从第一 次相互发送的报文中所携带的数据中的较小值。 子链的另一端接收到该报 文后向子链的一端回复第二个报文, 该报文携带子链的另一端可以接收的 数据大小为 800, 上述两个第二个报文中所携带的数据大小相等, 则协商完 毕, 协商模块 205 更改此子链的状态机中的工作状态位, 将工作状态位由 "0" 更改为 "1" , 激活此子链。 The negotiation module 205 is configured to implement negotiation bundling of the sub-chain. In the multi-chain, the negotiation module 205 is responsible for the negotiation work at both ends of each sub-chain. The two ends of the sub-chain determine the maximum data that can be transmitted through negotiation. After the negotiation succeeds, the bandwidth of the sub-chain is obtained, and the sub-chain is activated. This negotiation is implemented by sending packets to each other at both ends of the sub-chain. The task of negotiation is to determine the maximum bandwidth that this sub-chain can transmit. One end of the sub-chain sends a packet to the other end of the sub-chain. The packet carries information about how much data can be sent by one end of the sub-chain. The other end of the sub-chain returns a packet to one end of the sub-chain. The packet carries the sub-chain. The maximum amount of data that can be received at the other end. If the data carried in the two packets is equal in size, the state machine of the sub-chain sets the state of the sub-chain to be activated, and the working status bit is set to " Γ , if the data carried in the two packets are not equal in size, You need to continue to send packets to each other and negotiate the size of the data that can be accepted by both ends. For example, the data size of one sub-chain can be 1000, and the other end of the sub-chain can receive 800. The data carried in the text is not equal in size. The negotiation module 205 needs to continue to send packets through the two ends to determine the size of the data that can be accepted at both ends of the sub-chain. For example, one end of the sub-chain continues to send the second end to the other end of the sub-chain. The size of the data that can be sent by one end of the second packet carrying the second packet is 800. The data is the smaller value of the data carried in the packets sent from the first time to each other. After receiving the packet, the terminal sends a second packet to the end of the sub-chain, and the packet carries the other end of the sub-chain. The data size is 800, and the data carried in the two second packets is equal in size. After the negotiation is completed, the negotiation module 205 changes the working status bit in the state machine of the sub-chain, and changes the working status bit from "0". Activate this subchain for "1".
配置模块 206用于配置最小带宽阔值。 配置模块 206根据应用的需要 配置最小带宽阔值, 即根据传输所需的带宽配置, 例如该最小带宽阔值可 以为传输所需的最小带宽。 为了便于比较模块 201 将最小带宽阔值与多链 当前可用带宽进行比较, 配置模块 206还可以将预设的最小带宽阔值进行 存储。 例如, 多链的最大可用带宽为 10, 传输时需要的最小带宽为 6, 则 配置模块 206将最小带宽阔值设置为 6。 其中, 多链的两端同时进行配置, 配置的值需要保持一致, 并且配置的值需不大于多链最大可用带宽。  The configuration module 206 is configured to configure a minimum bandwidth threshold. The configuration module 206 configures the minimum bandwidth threshold according to the needs of the application, that is, according to the bandwidth configuration required for the transmission, for example, the minimum bandwidth threshold can be the minimum bandwidth required for transmission. In order to facilitate the comparison module 201 to compare the minimum bandwidth threshold with the current available bandwidth of the multi-chain, the configuration module 206 can also store the preset minimum bandwidth threshold. For example, the maximum available bandwidth of the multi-chain is 10, and the minimum bandwidth required for transmission is 6, the configuration module 206 sets the minimum bandwidth threshold to 6. The two ends of the multi-chain are configured at the same time. The value of the configuration needs to be consistent, and the configured value needs to be no greater than the maximum available bandwidth of the multi-chain.
下面通过流程来介绍多链保护的方法, 图 3 为本发明实施例中多链监 测方法的主要流程图, 参见图 3 , 本发明实施例中多链监测的主要方法流程 下:  The following describes a method for multi-chain protection according to a flow. FIG. 3 is a main flowchart of a multi-chain monitoring method according to an embodiment of the present invention. Referring to FIG. 3, the main method flow of multi-chain monitoring in the embodiment of the present invention is as follows:
步骤 301 : 获得多链当前可用带宽。  Step 301: Obtain the currently available bandwidth of the multi-chain.
步骤 302: 判断所述多链当前可用带宽是否小于预设的最小带宽阔值。 当判断结果为是时, 继续步骤 303 , 否则多链继续正常运行。  Step 302: Determine whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold. When the result of the determination is yes, proceed to step 303, otherwise the multi-chain continues to operate normally.
需要说明的是, 所述预设的最小带宽阔值不大于多链最大可用带宽且 不小于传输所需的带宽。  It should be noted that the preset minimum bandwidth threshold is not greater than the maximum available bandwidth of the multi-chain and is not less than the bandwidth required for transmission.
步骤 303: 当判断结果为是时, 釆取带宽保护措施, 并发出告警信息。 图 4为本发明实施例中多链监测方法的详细流程图, 参见图 4, 本发明 实施例中多链监测的详细方法流程如下:  Step 303: When the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. 4 is a detailed flowchart of a multi-chain monitoring method according to an embodiment of the present invention. Referring to FIG. 4, the detailed method of multi-chain monitoring in the embodiment of the present invention is as follows:
确定多链中有子链的状态机的工作状态位发生改变。  It is determined that the working state bit of the state machine having the sub-chain in the multi-chain changes.
步骤 401 : 检测多链。  Step 401: Detect multiple chains.
步骤 402: 判断是否有子链不可用。 当判断结果为是时,执行步骤 403 , 否则执行步骤 406。 通过发生改变的状态机确定发生异常的子链。 步骤 403 : 计算多链当前可用带宽。 Step 402: Determine if a sub-chain is unavailable. When the determination result is yes, step 403 is performed, otherwise step 406 is performed. The sub-chain in which the anomaly occurred is determined by the state machine that changed. Step 403: Calculate the currently available bandwidth of the multi-chain.
步骤 404: 判断多链当前可用带宽是否小于最小带宽阔值。 当判断结果 为是时, 继续步骤 405 , 否则继续步骤 406。  Step 404: Determine whether the currently available bandwidth of the multi-chain is less than a minimum bandwidth threshold. When the result of the determination is yes, proceed to step 405, otherwise proceed to step 406.
步骤 405: 停止整个多链的工作, 发出告警信息。 或者如果该多链有备 用多链, 还可以将该多链的业务倒换到备用多链中。 或者, 也可以只是发 出告警信息, 而并不停止此多链的工作, 此多链可以继续在当前可用带宽 不够的情况下进行传输。  Step 405: Stop the work of the entire multi-chain and issue an alarm message. Or if the multi-chain has multiple links, the multi-chain service can also be switched to the alternate multi-chain. Alternatively, it is only possible to issue an alarm message without stopping the operation of the multi-chain, and the multi-chain can continue to transmit if the current available bandwidth is insufficient.
步骤 406: 多链正常运行。  Step 406: Multi-chain operation is normal.
当对多链釆取保护处理后, 可能停止了该多链的运行。 如果该多链中 发生异常的子链的故障解除, 该多链的可用带宽重新满足了传输需求, 则 需恢复此多链的正常运行状态。 参见图 5 , 本发明实施例中多链运行状态恢 复的详细流程如下:  After the multi-chain extraction protection process, the operation of the multi-chain may be stopped. If the fault of the abnormal sub-chain in the multi-chain is released, and the available bandwidth of the multi-chain re-satisfies the transmission requirement, the normal operation state of the multi-chain needs to be restored. Referring to FIG. 5, the detailed process of recovering the multi-chain running state in the embodiment of the present invention is as follows:
进行多链保护处理后, 该多链停止工作, 且已将该多链的业务倒换到 其备用多链中。  After the multi-chain protection process, the multi-chain stops working and the multi-chain service has been switched to its spare multi-chain.
步骤 501 : 多链中有子链解除故障, 激活解除故障的子链。 但此时未釆 用该多链传输数据。  Step 501: A sub-chain is released from the fault in the multi-chain, and the sub-chain that cancels the fault is activated. However, the multi-chain transmission data is not used at this time.
步骤 502: 判断多链中是否有状态机发生改变。 当判断结果为是时, 继 续步骤 503 , 否则继续步骤 501。 其中, 本步骤中所说的状态机发生改变是 指状态机中的工作状态位发生改变。  Step 502: Determine whether a state machine changes in the multi-chain. When the result of the determination is YES, the process proceeds to step 503, otherwise the process proceeds to step 501. Among them, the change of the state machine mentioned in this step refers to the change of the working status bit in the state machine.
步骤 503 : 计算多链当前可用带宽。  Step 503: Calculate the currently available bandwidth of the multi-chain.
步骤 504: 判断多链当前可用带宽是否小于最小带宽阔值。 当判断结果 为否时, 继续步骤 505 , 否则继续步骤 501。  Step 504: Determine whether the currently available bandwidth of the multi-chain is less than a minimum bandwidth threshold. When the result of the determination is no, the process proceeds to step 505, otherwise the process proceeds to step 501.
步骤 505: 恢复多链的正常业务处理, 多链正常运行。 可以通过将接收 地址由备用多链切换到多链来实现此步骤。 其中, 恢复时无需再进行多链 协商及配置最小带宽阔值的过程, 多链可以直接运行。 参见图 6,本发明实施例中确定是否需要进行多链检测的详细方法流程 下: Step 505: Resume the normal service processing of the multi-chain, and the multi-chain operates normally. This step can be accomplished by switching the receive address from the alternate multi-chain to multiple chains. Among them, the multi-chain negotiation process and the process of configuring the minimum bandwidth threshold are not required, and the multi-chain can be directly operated. Referring to FIG. 6, in the embodiment of the present invention, a detailed method for determining whether multi-chain detection is required is performed:
步骤 601 : 启动多链协商, 激活多链。  Step 601: Start multi-chain negotiation and activate multi-chain.
步骤 602: 根据多链中已激活的子链计算多链的最大可用带宽。  Step 602: Calculate the maximum available bandwidth of the multi-chain according to the activated sub-chain in the multi-chain.
步骤 603: 配置最小带宽阔值。根据应用的需要及多链最大可用带宽配 置最小带宽阔值。  Step 603: Configure the minimum bandwidth threshold. Configure the minimum bandwidth threshold based on the needs of the application and the maximum available bandwidth of the multi-chain.
步骤 604: 判断多链中是否有状态机中的工作状态位发生改变。 当判断 结果为是时, 继续步骤 605 , 否则继续步骤 606。  Step 604: Determine whether there is a change in the working status bit in the state machine in the multi-chain. When the answer is yes, proceed to step 605, otherwise continue to step 606.
步骤 605: 检测多链。  Step 605: Detect multiple chains.
步骤 606: 多链正常运行。  Step 606: Multi-chain operation is normal.
本发明实施例获得多链当前可用带宽; 判断所述多链当前可用带宽是 否小于预设的最小带宽阔值; 当判断结果为是时, 釆取带宽保护措施, 并 发出告警信息。 从而当部分子链发生故障致使带宽不满足要求时, 对多链 实行保护措施, 并发出告警信息, 以获知多链是否发生故障, 便于进行多 链维护, 防止造成多链的拥塞, 导致信息传输出现时延。 当子链的状态机 中的工作状态位发生改变时对多链进行检测, 从而可以在必要的时候启动 检测流程, 避免不必要的资源消耗。 设定了最小带宽阔值, 当多链的当前 可用带宽小于该最小带宽阔值时对多链进行保护, 能在比较准确的时间对 多链进行保护, 使保护更为及时且必要。 在对多链进行保护时可以停止多 链的工作, 防止继续用此多链传输数据导致多链拥塞及造成时延; 还可以 将此多链的任务倒换到其它备用多链中, 使任务得以正常传输, 不会延误; 发出告警信息, 便于获知此多链是否发生故障及发生故障的时间, 且便于 维护设备对该多链进行维护。  The embodiment of the present invention obtains the currently available bandwidth of the multi-chain; determines whether the current available bandwidth of the multi-chain is smaller than a preset minimum bandwidth; and when the judgment result is yes, the bandwidth protection measure is taken, and the alarm information is sent. Therefore, when a part of the sub-chain fails and the bandwidth does not meet the requirements, the multi-chain is implemented with protection measures, and an alarm message is sent to know whether the multi-chain is faulty, facilitating multi-chain maintenance, preventing multi-chain congestion, and causing information transmission. There is a delay. The multi-chain is detected when the working status bit in the state machine of the sub-chain changes, so that the detection process can be started when necessary to avoid unnecessary resource consumption. The minimum bandwidth threshold is set. When the current available bandwidth of the multi-chain is less than the minimum bandwidth, the multi-chain is protected, and the multi-chain can be protected at a relatively accurate time, so that the protection is more timely and necessary. When multi-chain protection is applied, the operation of multi-chain can be stopped, and the multi-chain congestion and delay can be prevented by continuing to use the multi-chain transmission data; the multi-chain task can also be switched to other alternate multi-chains, so that the task can be performed. Normal transmission, no delay; Send an alarm message to know whether the multi-chain is faulty and the time of failure, and it is convenient for the maintenance equipment to maintain the multi-chain.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施 例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个 或多个其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不 限于磁盘存储器和光学存储器等 )上实施的计算机程序产品的形式。 Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can be implemented in an entirely hardware embodiment, fully software implemented For example, or in combination with an embodiment of software and hardware aspects. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims

权利要求书 Claim
1、 一种多链监测方法, 其特征在于, 该方法包括以下步骤:  A multi-chain monitoring method, characterized in that the method comprises the following steps:
获得多链当前可用带宽;  Obtain the currently available bandwidth of the multi-chain;
判断所述多链当前可用带宽是否小于预设的最小带宽阔值;  Determining whether the currently available bandwidth of the multi-chain is less than a preset minimum bandwidth threshold;
所述多链当前可用带宽小于预设的最小带宽阔值, 则釆取带宽保护措 施, 并发出告警信息。  If the current available bandwidth of the multi-chain is less than the preset minimum bandwidth threshold, the bandwidth protection measures are taken and an alarm message is sent.
2、 如权利要求 1所述的方法, 其特征在于, 在获得多链当前可用带宽 之前, 该方法还包括: 当多链中有子链的状态由激活变为未激活, 或者由 未激活变为激活时, 对该子链所在的多链进行检测, 确定该多链中已激活 的子链;  2. The method according to claim 1, wherein before obtaining the multi-chain currently available bandwidth, the method further comprises: changing the state of the sub-chain in the multi-chain from activated to inactive, or from inactive. For activation, detecting the multi-chain in which the sub-chain is located, and determining the activated sub-chain in the multi-chain;
所述获得多链当前可用带宽为: 根据检测出的多链中已激活的子链的 带宽获得多链当前可用带宽。  The obtaining the currently available bandwidth of the multi-chain is: obtaining the multi-chain currently available bandwidth according to the detected bandwidth of the activated sub-chain in the multi-chain.
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述多链当前可用带 宽为多链中已激活的子链的带宽之和。  3. Method according to claim 1 or 2, characterized in that the multi-chain currently available bandwidth is the sum of the bandwidths of the activated sub-chains in the multi-chain.
4、 如权利要求 1所述的方法, 其特征在于, 所述预设的最小带宽阔值 不大于多链最大可用带宽且不小于传输所需的带宽。  4. The method according to claim 1, wherein the preset minimum bandwidth threshold is not greater than a maximum available bandwidth of the multi-chain and is not less than a bandwidth required for transmission.
5、 如权利要求 4所述的方法, 其特征在于, 所述多链最大可用带宽为 多链最初被激活时, 该多链中已激活的子链的带宽之和。  5. The method of claim 4, wherein the multi-chain maximum available bandwidth is the sum of bandwidths of the activated sub-chains in the multi-chain when the multi-chain is initially activated.
6、如权利要求 1所述的方法,其特征在于, 所述釆取带宽保护措施为: 仅停止多链的运行, 或者, 停止多链的运行, 并将多链的业务倒换到备用 多链中。  The method according to claim 1, wherein the buffering protection measures are: stopping only the operation of the multi-chain, or stopping the operation of the multi-chain, and switching the multi-chain service to the standby multi-chain in.
7、 一种多链监测装置, 其特征在于, 该装置包括: 计算模块、 比较模 块和保护模块; 其中,  A multi-chain monitoring device, comprising: a calculation module, a comparison module, and a protection module; wherein
所述计算模块, 用于获得多链当前可用带宽;  The calculating module is configured to obtain a currently available bandwidth of the multi-chain;
所述比较模块, 用于判断所述多链当前可用带宽是否小于预设的最小 带宽阔值; The comparing module is configured to determine whether the currently available bandwidth of the multi-chain is less than a preset minimum Broadband bandwidth;
所述保护模块, 用于当多链当前可用带宽小于预设的最小带宽阔值时, 釆取带宽保护措施, 并发出告警信息。  The protection module is configured to: when the current available bandwidth of the multi-chain is less than a preset minimum bandwidth, the bandwidth protection measure is taken, and the alarm information is sent.
8、 如权利要求 7所述的装置, 其特征在于, 该装置还包括检测模块, 用于当多链中有子链的状态由激活变为未激活, 或者由未激活变为激活时, 对该子链所在的多链进行检测, 确定该多链中已激活的子链;  The device according to claim 7, wherein the device further comprises a detecting module, configured to: when the state of the sub-chain in the multi-chain is changed from active to inactive, or from inactive to active, The multi-strand in which the sub-chain is located is detected to determine the activated sub-chain in the multi-strand;
所述计算模块获得多链当前可用带宽为: 根据检测出的多链中已激活 的子链的带宽获得多链当前可用带宽。  The computing module obtains the currently available bandwidth of the multi-chain: obtaining the multi-chain currently available bandwidth according to the detected bandwidth of the activated sub-chain in the multi-chain.
9、 如权利要求 7或 8所述的装置, 其特征在于, 所述多链当前可用带 宽为多链中已激活的子链的带宽之和。  9. Apparatus according to claim 7 or claim 8 wherein said multi-chain current available bandwidth is the sum of the bandwidths of the activated sub-chains in the multi-chain.
10、 根据权利要求 7所述的装置, 其特征在于, 所述预设的最小带宽 阔值不大于多链最大可用带宽且不小于传输所需的带宽。  10. The apparatus according to claim 7, wherein the preset minimum bandwidth threshold is not greater than a maximum available bandwidth of the multi-chain and is not less than a bandwidth required for transmission.
11、 根据权利要求 10所述的装置, 其特征在于, 所述多链最大可用带 宽为多链最初被激活时, 该多链中已激活的子链的带宽之和。  11. Apparatus according to claim 10 wherein said multi-chain maximum available bandwidth is the sum of the bandwidths of the activated sub-chains in the multi-chain when the multi-chain is initially activated.
12、 如权利要求 7所述的装置, 其特征在于, 所述保护模块釆取带宽 保护措施为: 仅停止多链的运行, 或者, 停止多链的运行, 并将多链的业 务倒换到备用多链中。  12. The device according to claim 7, wherein the protection module captures the bandwidth protection measures: stopping only the operation of the multi-chain, or stopping the operation of the multi-chain, and switching the multi-chain service to the standby In multiple chains.
PCT/CN2011/071561 2010-11-03 2011-03-07 Method and device for monitoring multiple links WO2012058888A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010531352.1 2010-11-03
CN2010105313521A CN101984586A (en) 2010-11-03 2010-11-03 Method and device for monitoring multiple links

Publications (1)

Publication Number Publication Date
WO2012058888A1 true WO2012058888A1 (en) 2012-05-10

Family

ID=43641758

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071561 WO2012058888A1 (en) 2010-11-03 2011-03-07 Method and device for monitoring multiple links

Country Status (2)

Country Link
CN (1) CN101984586A (en)
WO (1) WO2012058888A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661964A (en) * 2018-06-28 2020-01-07 佳能株式会社 Image pickup apparatus, accessory apparatus, communication control method therefor, and storage medium
CN116193247A (en) 2018-06-28 2023-05-30 佳能株式会社 Image pickup apparatus, accessory apparatus, communication control method thereof, and storage medium
US11412125B2 (en) 2018-06-29 2022-08-09 Canon Kabushiki Kaisha Imaging apparatus, accessory apparatus, and communication control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016624A1 (en) * 1998-05-04 2003-01-23 Bare Ballard C. Path recovery on failure in load balancing switch protocols
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN1863066A (en) * 2005-05-11 2006-11-15 华为技术有限公司 Method for dynamicaly regulating link bandwidth and stater
CN101651960A (en) * 2009-09-17 2010-02-17 中兴通讯股份有限公司 Protection method and device of link condensation bandwidth based on LACP
CN101777964A (en) * 2010-01-13 2010-07-14 华为技术有限公司 Self-adaptive coding modulation switching instruction method, microwave device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016624A1 (en) * 1998-05-04 2003-01-23 Bare Ballard C. Path recovery on failure in load balancing switch protocols
CN1863066A (en) * 2005-05-11 2006-11-15 华为技术有限公司 Method for dynamicaly regulating link bandwidth and stater
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN101651960A (en) * 2009-09-17 2010-02-17 中兴通讯股份有限公司 Protection method and device of link condensation bandwidth based on LACP
CN101777964A (en) * 2010-01-13 2010-07-14 华为技术有限公司 Self-adaptive coding modulation switching instruction method, microwave device and system

Also Published As

Publication number Publication date
CN101984586A (en) 2011-03-09

Similar Documents

Publication Publication Date Title
US9853874B2 (en) Flow-specific failure detection in SDN networks
JP4840236B2 (en) Network system and node device
KR100929573B1 (en) Ethernet protection switching method according to link change of Ethernet link aggregation sublayer
US9071513B2 (en) Path switch-back method and apparatus in transport network
WO2015101168A1 (en) Failure recovery method and controller
CN106603261B (en) Hot backup method, first main device, standby device and communication system
WO2012058895A1 (en) Method and device for switching aggregation links
EP2892274B1 (en) Fault recovery method of operation and maintenance channel and network management terminal
WO2013127164A1 (en) Method for triggering bypass equipment switching, and bypass equipment switching method and device
CN104283711A (en) Fault detection method based on BFD, nodes and system
WO2012058888A1 (en) Method and device for monitoring multiple links
EP3048761B1 (en) Control method and device for self-loopback of network data
WO2017000096A1 (en) Link recovery method and network device
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN106487696B (en) Link failure detection method and device
EP2613477B1 (en) Method for triggering route switching and service provider-end provider edge device
WO2015180265A1 (en) Multi-link protection switching method and device
WO2017206785A1 (en) Network element, protection switching method and system, and storage medium
CN103746856B (en) Prevent the method and the network equipment of service disconnection
WO2013131431A1 (en) Method and apparatus for managing link aggregation group of network equipment
JP4946902B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM
CN104639499B (en) A kind of fire wall monitoring method, device and network management platform
WO2016061943A1 (en) Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium
WO2016082343A1 (en) Fault detection method and device
JP6591828B2 (en) Relay device and relay 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: 11837418

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

Country of ref document: EP

Kind code of ref document: A1