CN107154861B - A kind of data transmission method and device of stacking system - Google Patents

A kind of data transmission method and device of stacking system Download PDF

Info

Publication number
CN107154861B
CN107154861B CN201610122418.9A CN201610122418A CN107154861B CN 107154861 B CN107154861 B CN 107154861B CN 201610122418 A CN201610122418 A CN 201610122418A CN 107154861 B CN107154861 B CN 107154861B
Authority
CN
China
Prior art keywords
uplink
interchanger
local forwarding
forwarding group
switch
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610122418.9A
Other languages
Chinese (zh)
Other versions
CN107154861A (en
Inventor
李德军
李明星
史亚梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610122418.9A priority Critical patent/CN107154861B/en
Publication of CN107154861A publication Critical patent/CN107154861A/en
Application granted granted Critical
Publication of CN107154861B publication Critical patent/CN107154861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • 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
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The embodiment of the invention discloses a kind of data transmission method of stacking system and devices, are related to field of communication technology, are able to solve the problem of stacking system performance is greatly lowered because of the overabundance of data by stacking cable.The method of the embodiment of the present invention includes: when at least one uplink failure in the first local forwarding group, and first local forwarding group the effective total bandwidth of uplink effective less than the downlink of the first interchanger total bandwidth when, the first interchanger deletes the uplink of failure from the first local forwarding group;First interchanger sends the message of request backup link to second switch, and transmission data backup link is at least one uplink in the second local forwarding group;The first local forwarding group is added in backup link by the first interchanger;While first interchanger preferentially passes through the uplink transmission data of the first interchanger in the first local forwarding group, data are transmitted by backup link.

Description

A kind of data transmission method and device of stacking system
Technical field
The present invention relates to field of communication technology more particularly to the data transmission methods and device of a kind of stacking system.
Background technique
With the development of communication technology, especially interchanger is universal, generally use stacking system as shown in Figure 1 come to Upstream switches sends data.Wherein, interchanger 1 and interchanger 2 pass through the link aggregation group (English including a plurality of uplink Text: Link Aggregation Group, referred to as: LAG) communicated with upstream switches, while interchanger 1 and interchanger 2 Between can pass through stack cable transmission data.Also, interchanger 1 and interchanger 2 can also be with corresponding upstream devices Transmit data.
In order to guarantee effective transmission of data, interchanger 1 and the respective uplink total bandwidth of interchanger 2 need to be greater than each From downlink total bandwidth.When any interchanger and leads to this because of itself uplink failure in interchanger 1 and interchanger 2 When the effective total bandwidth of the uplink of interchanger is less than the downlink effective total bandwidth of the interchanger, packet loss can be generated.It is above-mentioned in order to solve Problem, after any one in interchanger 1 and interchanger 2 is because of itself uplink failure, in interchanger 1 and interchanger 2 When determining the uplink of transmission data according to the calculation method of load balancing between all normal uplinks, it will usually by institute 50% or more data are by stacking cable between interchanger 1 and interchanger 2 in the data to be transmitted, from another interchanger to Upstream switches is sent.
But the transmission of data is realized using the calculation method of above-mentioned load balancing, the number by stacking cable can be made The performance of stacking system is greatly lowered to cause data delay excessively high in the load for increasing stacking cable according to excessive.
Summary of the invention
The embodiment of the present invention provides the data transmission method and device of a kind of stacking system, is able to solve because passing through heap superimposing thread The overabundance of data of cable and the problem of stacking system performance is greatly lowered.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of data transmission method of stacking system, which comprises
When at least one uplink failure in the first local forwarding group, and the uplink of the described first local forwarding group is effective When effective less than the downlink of the first interchanger total bandwidth of total bandwidth, first interchanger is deleted from the described first local forwarding group Except the uplink of failure, the described first local forwarding group includes all uplinks of first interchanger, the uplink Effective total bandwidth is the total bandwidth of all normal uplinks in uplink, and the effective total bandwidth of downlink is in downlink The total bandwidth of all normal downlinks;
First interchanger sends the message of request backup link to second switch, and the backup link is second At least one uplink in ground forwarding group, the described second local forwarding group include all uplinks of the second switch Road;First interchanger receives the response message that the second switch is sent, and the response message instruction described second is handed over Changing planes allows first interchanger to use the backup link;
The described first local forwarding group is added in the backup link by first interchanger;
First interchanger is preferentially passed by the uplink of the first interchanger described in the described first local forwarding group Transmission of data is not passed through by the data of the uplink transmission of the first interchanger described in the described first local forwarding group described standby Part link transmission data.
With reference to first aspect, in a first possible implementation of that first aspect, first interchanger will be described Backup link is added after the described first local forwarding group, which comprises
When the uplink of the failure is restored, the first is added in the uplink by first interchanger Ground forwarding group;
First interchanger deletes the backup link from the described first local forwarding group, and exchanges to described second Machine sends the message for discharging the backup link, in order to which the second switch discharges disappearing for the backup link according to described The described second local forwarding group is added in the backup link by breath.
With reference to first aspect, in a second possible implementation of that first aspect, in first interchanger to second Before interchanger sends the message of request backup link, the method also includes:
The effective total bandwidth of uplink of first local forwarding group described in the first exchange machine testing, and obtain described second The effective total bandwidth of uplink of ground forwarding group;
When the uplink that the effective total bandwidth of uplink of the described first local forwarding group is less than the described second local forwarding group is effective When total bandwidth, the step of first interchanger sends the message of request backup link to second switch is executed.
With reference to first aspect and any one realization side in first and second kinds of possible implementations of first aspect Formula, in first aspect in the third possible implementation, in the described second local forwarding group in addition to the backup link The total bandwidth of all uplinks is greater than or equal to the effective total bandwidth of downlink of the second switch.
Second aspect, the embodiment of the present invention provide a kind of data transmission method of stacking system, which comprises
Second switch receives the message for the request backup link that the first interchanger is sent, and the request backup link disappears Breath is works as at least one uplink failure in the first local forwarding group, and the uplink of the described first local forwarding group is effectively total When bandwidth is less than the downlink effective total bandwidth of first interchanger, first interchanger is from the described first local forwarding group After the uplink for deleting failure, the message that Xiang Suoshu second switch is sent, the described first local forwarding group includes described All uplinks of first interchanger;The effective total bandwidth of uplink is the total of all normal uplinks in uplink Bandwidth, the effective total bandwidth of downlink are the total bandwidth of all normal uplinks in downlink;
The second switch is deleted from the second local forwarding group described standby according to the message of the request backup link Part link, the described second local forwarding group include all uplinks of the second switch, and the backup link is described At least one uplink in second local forwarding group;
The second switch sends response message to first interchanger, in order to which first interchanger will be described The described first local forwarding group is added in backup link, and in first interchanger preferentially by the described first local forwarding group The uplink transmission data of first interchanger does not pass through the upper of the first interchanger described in the described first local forwarding group The data of uplink transmission transmit data by the backup link.
In conjunction with second aspect, in second aspect in the first possible implementation, in the second switch to described First interchanger is sent after response message, which comprises
When the second switch receives the message for the release backup link that first interchanger is sent, institute It states second switch and the described second local forwarding group is added in the backup link.
In conjunction with second aspect, in second of second aspect possible implementation, institute is received in the second switch Before the message for stating the request backup link of the first interchanger transmission, the method also includes:
The second switch detects the effective total bandwidth of uplink of the described second local forwarding group, and exchanges to described first Machine sends the effective total bandwidth of uplink of the described second local forwarding group, in order to which the uplink for working as the described first local forwarding group is effective When total bandwidth is less than the uplink effective total bandwidth of the described second local forwarding group, first interchanger is to the second switch Send the message of the request backup link.
In conjunction with any one realization side in first and second kinds of possible implementations of second aspect and second aspect Formula, in second aspect in the third possible implementation, in the described second local forwarding group in addition to the backup link The total bandwidth of all uplinks is greater than or equal to the effective total bandwidth of downlink of the second switch.
The third aspect, the embodiment of the present invention provide a kind of data transmission device of stacking system, and described device includes:
Removing module, for working as at least one uplink failure in the first local forwarding group, and described first is local When effective less than the downlink of the first interchanger total bandwidth of the effective total bandwidth of the uplink of forwarding group, from the described first local forwarding group The uplink of failure is deleted, the described first local forwarding group includes all uplinks of the first interchanger, and the uplink has The total bandwidth that total bandwidth is all normal uplinks in uplink is imitated, the effective total bandwidth of downlink is in downlink All normal downlinks total bandwidth;
Sending module, for sending the message of request backup link to second switch, the backup link is second At least one uplink in ground forwarding group, the described second local forwarding group include all uplinks of the second switch Road;
Receiving module, the response message sent for receiving the second switch, the response message instruction described the Two interchangers allow first interchanger to use the backup link;
Adding module, for the described first local forwarding group to be added in the backup link;
Transmission module, for preferentially being transmitted by the uplink of the first interchanger described in the described first local forwarding group Data do not pass through the backup by the data of the uplink transmission of the first interchanger described in the described first local forwarding group Link transmission data.
In conjunction with the third aspect, in the third aspect in the first possible implementation, the adding module is also used to work as institute When stating the uplink recovery of failure, the described first local forwarding group is added in the uplink;
The removing module is also used to delete the backup link from the described first local forwarding group, and by described Sending module sends the message for discharging the backup link to the second switch, in order to which the second switch is according to institute The message for discharging the backup link is stated, the described second local forwarding group is added in the backup link.
In conjunction with the third aspect, in second of the third aspect possible implementation, described device further include:
Detection module for detecting the effective total bandwidth of uplink of the described first local forwarding group, and obtains described second The effective total bandwidth of uplink of ground forwarding group;
The sending module is also used to be less than described second when the effective total bandwidth of uplink of the described first local forwarding group When the effective total bandwidth of the uplink of ground forwarding group, the step of sending the message of request backup link to second switch is executed.
In conjunction with any one realization side in first and second kinds of possible implementations of the third aspect and the third aspect Formula, in the third aspect in the third possible implementation, in the described second local forwarding group in addition to the backup link The total bandwidth of all uplinks is greater than or equal to the effective total bandwidth of downlink of the second switch.
Fourth aspect, the embodiment of the present invention provide a kind of data transmission device of stacking system, and described device includes:
Receiving module, the message of the request backup link for receiving the transmission of the first interchanger, the request backup link Message be when at least one uplink failure in the first local forwarding group, and the uplink of the described first local forwarding group has When imitating total bandwidth and being less than the effective total bandwidth of downlink of first interchanger, first interchanger is from the described first local forwarding After the uplink for deleting failure in group, the message sent to second switch, the described first local forwarding group includes described All uplinks of first interchanger;The effective total bandwidth of uplink is the total of all normal uplinks in uplink Bandwidth, the effective total bandwidth of downlink are the total bandwidth of all normal uplinks in downlink;
Removing module, for deleting the backup from the second local forwarding group according to the message of the request backup link Link, the second local forwarding group include all uplinks of the second switch, and the backup link is described the At least one uplink in two local forwarding groups;
Sending module, for sending response message to first interchanger, in order to which first interchanger will be described The described first local forwarding group is added in backup link, and in first interchanger preferentially by the described first local forwarding group The uplink transmission data of first interchanger does not pass through the upper of the first interchanger described in the described first local forwarding group The data of uplink transmission transmit data by the backup link.
In conjunction with fourth aspect, in fourth aspect in the first possible implementation, described device includes:
Adding module, for receiving the release backup chain that first interchanger is sent when the second switch When the message on road, the described second local forwarding group is added in the backup link.
In conjunction with fourth aspect, in second of fourth aspect possible implementation, described device further include:
Detection module for detecting the effective total bandwidth of uplink of the described second local forwarding group, and passes through the transmission mould Block sends the effective total bandwidth of uplink of the described second local forwarding group to first interchanger, local in order to work as described first When the effective total bandwidth of the uplink of forwarding group is less than the uplink effective total bandwidth of the described second local forwarding group, first interchanger The message of the request backup link is sent to the second switch.
In conjunction with any one realization side in first and second kinds of possible implementations of fourth aspect and fourth aspect Formula, in fourth aspect in the third possible implementation, in the described second local forwarding group in addition to the backup link The total bandwidth of all uplinks is greater than or equal to the effective total bandwidth of downlink of the second switch.
Fifth aspect present invention provides a kind of data transmission set of stacking system, and the equipment includes processor and storage Device, the memory is for storing program code, and the processor is used to call the program code in memory 43, on realizing State method described in each implementation of first aspect and first aspect.
Sixth aspect present invention provides a kind of data transmission set of stacking system, and the equipment includes processor and storage Device, the memory is for storing program code, and the processor is used to call the program code in memory 43, on realizing State method described in each implementation of second aspect and second aspect.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will to embodiment or in the prior art institute Attached drawing to be used is needed to be briefly described.
Fig. 1 is the schematic diagram that a kind of stacking system that the prior art provides transmits data;
Fig. 2 is a kind of information exchange figure of the data transmission method of stacking system provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of stacking system provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another stacking system provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram that a kind of stacking system provided in an embodiment of the present invention transmits data;
Fig. 6 is the information exchange figure of the data transmission method of another stacking system provided in an embodiment of the present invention;
Fig. 7 is the information exchange figure of the data transmission method of another stacking system provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the data transmission device of stacking system provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the data transmission device of another stacking system provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of the data transmission set of stacking system provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of the data transmission set of another stacking system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
The embodiment of the present invention can be used for a kind of stacking system, include at least two interchangers in the stacking system, specifically It can be the first interchanger and second switch.First interchanger and the connection relationship of second switch and exchanging in Fig. 1 Machine 1 and interchanger 2 are identical, first interchanger and second switch be by Fig. 1 interchanger 1 and interchanger 2 carry out It improves obtained.
A kind of data transmission method of stacking system provided in an embodiment of the present invention, as shown in Fig. 2, this method comprises:
101, when at least one uplink failure in the first local forwarding group, and the uplink of the first local forwarding group has When imitating effective less than the downlink of the first interchanger total bandwidth of total bandwidth, the first interchanger deletes failure from the first local forwarding group Uplink.
Wherein, the first local forwarding group includes all uplinks of the first interchanger, and the effective total bandwidth of uplink is uplink The total bandwidth of all normal uplinks in link, the effective total bandwidth of downlink are all normal downlinks in downlink Total bandwidth.
It in embodiments of the present invention, can in advance be each switch configuration local forwarding group, that is, by each exchange Group composed by all uplinks of machine is set as the local forwarding group of the interchanger.In embodiments of the present invention, it can incite somebody to action Group composed by all uplinks of first interchanger is set as the first local forwarding group, the i.e. corresponding local of the first interchanger Forwarding group.Meanwhile can group composed by all uplinks by second switch be set as the second local forwarding group, i.e., the The corresponding local forwarding group of two interchangers.
When at least one uplink failure in the corresponding local forwarding group of interchanger any in stacking system, such as: When at least one uplink failure in the corresponding first local forwarding group of the first interchanger, the first interchanger can will All uplinks of failure are deleted from the first local forwarding group.It should be noted that if second switch is second corresponding There are the uplink of failure in ground forwarding group, then second switch can be by the uplink of failure from the second local forwarding group It deletes, that is to say, that for any interchanger, as long as there are the uplinks of failure in the corresponding local forwarding group of the interchanger Link, then the interchanger can delete the uplink of failure from the corresponding local forwarding group of the interchanger.
As shown in figure 3, the first local forwarding group includes all uplinks of the first interchanger, the second local forwarding group packet Include all uplinks of second switch.When in the first local forwarding group there are when at least one uplink failure, such as: As shown in figure 4, the link of failure is link 1 and link 2, the first interchanger deletes the link of failure from the first local forwarding group It removes, that is, link 1 and link 2 is deleted from the first local forwarding group.
It should be noted that uplink whether failure, can be by the corresponding interchanger of the uplink by real time examining It surveys to determine.Wherein, the reason of uplink failure can be specially port DOWM (closing) or Link Aggregation Control Protocol (English: Link Aggregation Control Protocol, referred to as: LACP) message time-out etc..In the embodiment of the present invention In, the reason of uplink failure, is not especially limited.
102, the first interchanger sends the message of request backup link to second switch.
Wherein, backup link is at least one uplink in the second local forwarding group, and the second local forwarding group includes All uplinks of second switch.
In order to guarantee that second switch is corresponding when the data that backup link is used to that the first interchanger to be forwarded to need to forward Other uplinks in addition to backup link still are able to the data forwarding for supporting to complete second switch, in the embodiment of the present invention In, the total bandwidth of all uplinks is greater than or equal under second switch in addition to backup link in the second local forwarding group The effective total bandwidth of row.Namely in order to avoid data packetloss, when backup link is not belonging to the second local forwarding group, if second hands over It changes planes when needing to complete data forwarding, all uplinks in the second local forwarding group still are able to support the number of second switch According to repeating process.
In the present invention, each interchanger requires to preset backup link.That is, in embodiments of the present invention, Not only in the corresponding uplink of second switch there are backup link, there is also standby in the corresponding uplink of the first interchanger Part link, in order to when in the uplink of second switch there are when the uplink of failure, the uplink of the first interchanger Backup link in road can provide the service of data forwarding also for second switch.
As shown in figure 4, by taking second switch as an example, in embodiments of the present invention, the backup link of second switch can be with Specially link 3.It should be noted that backup link specifically can according to the size of port numbers or the priority of LACP, by Staff presets, the occupied bandwidth of data that can also be forwarded within a certain period of time according to respective switch come into Row setting.In embodiments of the present invention, the set-up mode of backup link is not especially limited.
103, second switch receives the message for the request backup link that the first interchanger is sent, and according to request backup chain The message on road deletes backup link from the second local forwarding group.
It should be noted that the total bandwidth of all uplinks in the second local forwarding group in addition to backup link is greater than Or equal to the effective total bandwidth of the downlink of second switch.
104, second switch sends response message to the first interchanger.
Wherein, response message instruction second switch allows the first interchanger to use backup link.
105, after the first interchanger receives the response message of second switch transmission, the first interchanger is by backup link The first local forwarding group is added.
106, the first interchanger preferentially passes through the uplink transmission data of the first interchanger in the first local forwarding group, not Number is transmitted by backup link by the data of the uplink transmission of the first interchanger described in the described first local forwarding group According to.
As shown in figure 5, the response message includes chain when the first interchanger receives the response message of second switch transmission The link information on road 3, i.e. second switch allow the first interchanger to use link 3, and the first interchanger can disappear according to the response The first local forwarding group is added in link 3 by breath.Later, when the first interchanger carry out data forwarding during, can preferentially by Data are forwarded by the uplink directly communicated between the first interchanger and upstream switches.Also, when and upstream When the uplink directly communicated between interchanger is not enough to that the first interchanger is supported to complete data forwarding, the first interchanger Data forwarding can will not be forwarded extremely via link 3 by the stacking cable between the first interchanger and second switch Upstream switches.It not only ensures in this way and makes full use of the corresponding uplink of the first interchanger, and ensure that and do not influencing While second switch completes data forwarding, occupancy as few as possible stacks cable to complete the data of the first interchanger and turn Hair.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
In order to ensure the uplink of occupancy second switch as few as possible, in a realization side of the embodiment of the present invention In formula, when the uplink of failure is restored, the uplink of recovery can be rejoined first in time by the first interchanger Ground exchange group, while backup link being discharged, in order to which again the second local forwarding group is added in backup link by second switch, To preferably complete the data forwarding of second switch.It therefore, can be on the basis of implementation as shown in Figure 2 It is embodied as implementation as shown in FIG. 6.That is, after the first local forwarding group is added in backup link by the first interchanger, also Step 107 can be executed to step 110.
107, when the uplink of failure is restored, the first local forwarding is added in the uplink by the first interchanger Group.
During in order to ensure the local forwarding group of adjustment first, it will not influence the data of ongoing first interchanger Therefore repeating process in embodiments of the present invention, needs that the first local forwarding group first is added in the uplink of recovery, later Backup link is discharged again.
It should be noted that whether failure uplink is restored, reality can be passed through by the corresponding interchanger of the uplink When detection to determine.Wherein, the uplink recovery of failure can specifically show as port UP (unlatching) or LACP is selected Deng.In embodiments of the present invention, the reason of restoring for the uplink of failure is not especially limited.
108, the first interchanger deletes backup link from the first local forwarding group.
109, the first interchanger sends the message of release backup link to second switch.
It should be noted that the first interchanger sends the message of release backup link to second switch, in order to second According to the message of release backup link the second local forwarding group is added in backup link by interchanger.
110, the second local forwarding group is added in backup link by second switch.
When second switch receives the message of the release backup link of the first interchanger transmission, and second switch will be standby Part link rejoins after the second local forwarding group, and the first local forwarding group and the second local forwarding group are restored to such as Fig. 3 Shown in state.
It should be noted that step 107 not only can execute sequence according to as shown in FIG. 6 to step 110, step is being executed Rapid 106 execute, and only can also be carried out step after executing the step 105 in the case where current application scene needs 107 to step 110.
It is compared in the prior art when interchanger any in the first interchanger and second switch is because of itself uplink When failure, according to the calculation method of load balancing, usually in the data to be transmitted 50% or more data are handed over by first The stacking cable changed planes between second switch, by another interchanger, upstream interchanger is sent, and the present invention can not only lead to Setting backup link is crossed, on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding, by a part of number According to the backup link via peer switches, upstream interchanger is sent, can also be when the uplink of failure is restored, by the The uplink of recovery is rejoined the first local exchange group in time by one interchanger, while backup link being discharged, in order to Again the second local forwarding group is added in backup link by second switch.Thus it is guaranteed that the uplink quilt of local switch It makes full use of, the data by stacking cable is greatly reduced, to reduce the load for stacking cable, and then solve because of warp The problem of crossing the overabundance of data for stacking cable and stacking system performance be greatly lowered.Also, by by recovered uplink Link rejoins the first local exchange group, and backup link is rejoined the second local exchange group, as few as possible to realize Occupancy second switch uplink, so that it is guaranteed that preferably complete second switch data forwarding.
In order to ensure the forward efficiency of each interchanger in stacking system simultaneously, in a realization side of the embodiment of the present invention In formula, only when the effective total bandwidth of uplink of the first local forwarding group is different from the effective total bandwidth of uplink of the second local forwarding group When, it just triggers the first interchanger and is deleted from the first local forwarding group from the first local forwarding group deletion, and backup link is added Enter the first local forwarding group.Therefore, on the basis of implementation as shown in Figure 2, it is also implemented as reality as shown in Figure 7 Existing mode.Wherein, before executing the message that first interchanger of step 102 sends request backup link to second switch, may be used also To execute step 111 to step 114:
111, the effective total bandwidth of uplink of group is forwarded to the first exchange machine testing first.
112, the effective total bandwidth of uplink of the local forwarding group of second switch detection second.
It should be noted that the first exchange machine testing first while forward the uplink effective total bandwidth of group, second Interchanger can detecte the effective total bandwidth of uplink of the second local forwarding group, or execute first according to certain sequencing The detection process of the effective total bandwidth of uplink of ground forwarding group and the second local forwarding group.
113, the first interchanger obtains the effective total bandwidth of uplink of the second local forwarding group.That is, second switch is by second The effective total bandwidth of uplink of local forwarding group is sent to the first interchanger.
Simply by the presence of the uplink failure of at least one interchanger in stacking system, then the uplink of failure is corresponding Interchanger not only needs to monitor the uplink effective bandwidth of the corresponding local forwarding group of the interchanger, meanwhile, which also needs Obtain the effective total bandwidth of uplink of other interchangers in stacking system.In embodiments of the present invention, to include the in stacking system For one interchanger and second switch, when there are at least one uplinks in the corresponding first local forwarding group of the first interchanger When the failure of road, the first interchanger needs to monitor total band of all uplinks that can transmit data in the first local forwarding group Width, it is also desirable to obtain all uplinks that can transmit data in the corresponding second local forwarding group of second switch The total bandwidth on road.
It should be noted that each interchanger can obtain corresponding local forwarding group by way of real-time detection The effective total bandwidth of uplink.Also, when the corresponding uplink failure of local switch, local switch can by with extremely Data interaction is carried out between few peer switches, the effective total bandwidth of the uplink to obtain at least one peer switches.
114, when uplink effectively total band of the effective total bandwidth of uplink of the first local forwarding group less than the second local forwarding group When wide, the message that step the first interchanger sends request backup link to second switch is executed.That is, being equivalent to when first is local When effective less than the uplink of the second local forwarding group total bandwidth of the effective total bandwidth of the uplink of forwarding group, step 102 is executed.
In embodiments of the present invention, in order to guarantee in stacking system as far as possible at the uplink bandwidth of respective switch In balanced state, it is generally the case that only when the effective total bandwidth of uplink of the first local forwarding group is less than the second local forwarding group Uplink effective total bandwidth when, just trigger the first interchanger and delete backup link from the first local forwarding group, and by backup chain The first local forwarding group is added in road.
It should be noted that in embodiments of the present invention, it is corresponding by local switch real-time detection local switch The effective total bandwidth of uplink of local forwarding group then may be used when the effective total bandwidth of the uplink of local switch varies widely Directly the uplink of failure is deleted from local forwarding group with triggering the local switch, such as: the first interchanger is by failure Uplink to the out first local forwarding group.
It is compared in the prior art when interchanger any in the first interchanger and second switch is because of itself uplink When failure, according to the calculation method of load balancing, usually in the data to be transmitted 50% or more data are handed over by first The stacking cable changed planes between second switch, by another interchanger, upstream interchanger is sent, and the present invention can be by setting Backup link is set, to ensure when the uplink failure of any interchanger, and it is local to work as the first interchanger detects first When effective less than the uplink for the second local forwarding group that the first interchanger the is got total bandwidth of the effective total bandwidth of the uplink of forwarding group, The sub-fraction data in the data to be transmitted only are passed through into the stacking cable between the first interchanger and second switch, by Upstream interchanger is sent another interchanger.Namely data forwarding is preferentially carried out in the uplink of guarantee local switch On the basis of, by a part of data via the uplink upstream interchanger transmission of peer switches.Therefore, because ensure that this The uplink of ground interchanger is fully utilized, and the data by stacking cable is greatly reduced, to reduce heap superimposing thread The load of cable, and then solve the problems, such as that stacking system performance is greatly lowered because of the overabundance of data by stacking cable.
The embodiment of the present invention provides a kind of data transmission device 20 of stacking system, as shown in figure 8, the device 20 is for holding Row such as Fig. 2, Fig. 6 or method flow shown in Fig. 7, the device 20 include:
Removing module 21, for working as at least one uplink failure in the first local forwarding group, and first local turn When effective less than the downlink of the first interchanger total bandwidth of the effective total bandwidth of the uplink of hair group, deleted from the first local forwarding group therefore The uplink of barrier, the first local forwarding group include all uplinks of the first interchanger, and the effective total bandwidth of uplink is uplink The total bandwidth of all normal uplinks in link, the effective total bandwidth of downlink are all normal downlinks in downlink Total bandwidth.
Sending module 22, for sending the message of request backup link to second switch, backup link is second local At least one uplink in forwarding group, the second local forwarding group include all uplinks of second switch.
Receiving module 23, for receiving the response message of second switch transmission, response message indicates that second switch permits Perhaps the first interchanger uses backup link.
Adding module 24, for the first local forwarding group to be added in backup link.
Transmission module 25, for preferentially passing through the uplink transmission data of the first interchanger in the first local forwarding group, It is not transmitted by the data of the uplink transmission of the first interchanger described in the described first local forwarding group by backup link Data.
In an implementation of the embodiment of the present invention, adding module 24 is also used to restore when the uplink of failure When, the first local forwarding group is added in uplink.
Removing module 21, is also used to delete backup link from the first local forwarding group, and by sending module 22 to the Two interchangers send the message of release backup link, in order to which second switch is according to the message of release backup link, will back up The second local forwarding group is added in link.
In an implementation of the embodiment of the present invention, the device 20 further include:
Detection module 26 for detecting the effective total bandwidth of uplink of the first local forwarding group, and obtains the second local forwarding The effective total bandwidth of uplink of group.
Sending module 22 is also used to the effective total bandwidth of uplink when the first local forwarding group less than the second local forwarding group When the effective total bandwidth of uplink, the step of sending the message of request backup link to second switch is executed.
It should be noted that the total bandwidth of all uplinks in the second local forwarding group in addition to backup link is greater than Or equal to the effective total bandwidth of the downlink of second switch.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
The embodiment of the present invention provides a kind of data transmission device 30 of stacking system, as shown in figure 9, the device 30 is for holding Row such as Fig. 2, Fig. 6 or method flow shown in Fig. 7, the device 30 include:
Receiving module 31, the message of the request backup link for receiving the transmission of the first interchanger, requests backup link Message is when at least one uplink failure in the first local forwarding group, and the effectively total band of uplink of the first local forwarding group When the effective total bandwidth of the wide downlink less than the first interchanger, the first interchanger deletes the uplink of failure from the first local forwarding group After link, the message sent to second switch, the first local forwarding group includes all uplinks of the first interchanger;On The effective total bandwidth of row is the total bandwidth of all normal uplinks in uplink, and the effective total bandwidth of downlink is in downlink All normal uplinks total bandwidth.
Removing module 32, for deleting backup link from the second local forwarding group according to the message of request backup link, Second local forwarding group includes all uplinks of second switch, and backup link is at least one in the second local forwarding group Uplink.
Sending module 33, for sending response message to the first interchanger, in order to which the first interchanger adds backup link Enter the first local forwarding group, and is passed in the uplink that the first interchanger preferentially passes through the first interchanger in the first local forwarding group Transmission of data does not pass through backup chain by the data of the uplink transmission of the first interchanger described in the described first local forwarding group Transmit data in road.
In an implementation of the embodiment of the present invention, the device 20 further include:
Adding module 34, the message of the release backup link for receiving the transmission of the first interchanger when second switch When, the second local forwarding group is added in backup link.
In an implementation of the embodiment of the present invention, the device 20 further include:
Detection module 35, for detecting the effective total bandwidth of uplink of the second local forwarding group, and by sending module 33 to First interchanger sends the effective total bandwidth of uplink of the second local forwarding group, in order to which the uplink for working as the first local forwarding group is effective When effective less than the uplink of the second local forwarding group total bandwidth of total bandwidth, the first interchanger sends request backup to second switch The message of link.
It should be noted that the total bandwidth of all uplinks in the second local forwarding group in addition to backup link is greater than Or equal to the effective total bandwidth of the downlink of second switch.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
The embodiment of the present invention provides a kind of data transmission set 40 of stacking system, and as shown in Figure 10, which is used for Executing such as Fig. 2, Fig. 6 or method flow shown in Fig. 7, the equipment 40 includes processor 41 and interface circuit 42, is also shown in figure Memory 43 and bus 44, the processor 41, interface circuit 42 and memory 43 are connected by bus 44 and are realized each other Communication.
It should be noted that processor 41 here can be a processing element, it is also possible to multiple processing elements It is referred to as.For example, the processing element can be central processing unit (English: Central Processing Unit, abbreviation: CPU), It is also possible to specific integrated circuit (English: Application Specific Integrated Circuit, abbreviation: ASIC), Or be arranged to implement one or more integrated circuits of the embodiment of the present invention, such as: one or more microprocessors (English Text: digital singnal processor, referred to as: DSP), or, one or more field programmable gate array (English: Field Programmable Gate Array, referred to as: FPGA).
Memory 43 can be a storage device, be also possible to the general designation of multiple memory elements, and for storing and can hold Parameter, data required for line program code or access net management equipment are run etc..Memory 43 may include random access memory It (RAM), also may include nonvolatile memory (non-volatile memory), such as magnetic disk storage, flash memory (Flash) etc..
Bus 44 can be industry standard architecture (English: Industry Standard Architecture, letter Claim: ISA) bus, external equipment interconnection (English: Peripheral Component, abbreviation: PCI) bus or extension industry mark Quasi- architecture (English: Extended Industry Standard Architecture, abbreviation: EISA) bus etc..This is total Line 44 can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Figure 10 convenient for indicating, but It is not offered as only a bus or a type of bus.
The equipment 40 can also include input/output unit, be connected to bus 44, to pass through bus 44 and processor 41 etc. Other parts connection.
Wherein, processor 41 calls the program code in memory 43, for executing equipment 40 in above method embodiment The operation of execution.E.g., including:
At least one uplink failure in the first local forwarding group, and the uplink of the first local forwarding group is effectively total When effective less than the downlink of the first interchanger total bandwidth of bandwidth, failure is deleted from the first local forwarding group by processor 41 Uplink, the first local forwarding group include all uplinks of the first interchanger, and the effective total bandwidth of uplink is uplink In all normal uplinks total bandwidth, the effective total bandwidth of downlink be downlink in all normal downlinks it is total Bandwidth.
The message of request backup link is sent to second switch by interface circuit 42, backup link is second local turn At least one uplink in hair group, the second local forwarding group include all uplinks of second switch;First exchange Machine receives the response message that second switch is sent, and response message indicates that second switch allows the first interchanger to use backup chain Road.
The first local forwarding group is added in backup link by processor 41.
By interface circuit 42 preferentially by the uplink transmission data of the first interchanger in the first local forwarding group, not Number is transmitted by backup link by the data of the uplink transmission of the first interchanger described in the described first local forwarding group According to.
In an implementation of the embodiment of the present invention, the first local forwarding is added in backup link in the first interchanger After group, when the uplink of failure is restored, uplink is added by the first local forwarding group by processor 41.
Backup link is deleted from the first local forwarding group by processor 41, and is exchanged by interface circuit 42 to second Machine sends the message of release backup link, in order to which second switch is according to the message of release backup link, by backup link plus Enter the second local forwarding group.
In an implementation of the embodiment of the present invention, request backup chain is sent to second switch in the first interchanger Before the message on road, by the effective total bandwidth of uplink of the local forwarding group of the detection of processor 41 first, and second local turn is obtained The effective total bandwidth of the uplink of hair group.
When the effective total bandwidth of uplink of the first local forwarding group total bandwidth effective less than the uplink of the second local forwarding group, The step of sending the message of request backup link to second switch is executed by interface circuit 42.
It should be noted that the total bandwidth of all uplinks in the second local forwarding group in addition to backup link is greater than Or equal to the effective total bandwidth of the downlink of second switch.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
The embodiment of the present invention provides a kind of data transmission set 50 of stacking system, and as shown in figure 11, which is used for Executing such as Fig. 2, Fig. 6 or method flow shown in Fig. 7, the equipment 50 includes processor 51 and interface circuit 52, is also shown in figure Memory 53 and bus 54, the processor 51, interface circuit 52 and memory 53 are connected by bus 54 and are realized each other Communication.
It should be noted that processor 51 here can be a processing element, it is also possible to multiple processing elements It is referred to as.For example, the processing element can be central processing unit, it is also possible to specific integrated circuit, or is arranged to implement One or more integrated circuits of the embodiment of the present invention, such as: one or more microprocessors, or, one or more is live Programmable gate array.
Memory 53 can be a storage device, be also possible to the general designation of multiple memory elements, and for storing and can hold Parameter, data required for line program code or access net management equipment are run etc..And memory 53 may include random access memory, It also may include nonvolatile memory, such as magnetic disk storage, flash memory etc..
Bus 54 can be industry standard architecture bus, external equipment interconnection bus or extension Industry Standard Architecture knot Structure bus etc..The bus 54 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with one in Figure 11 Bar thick line indicates, it is not intended that an only bus or a type of bus.
The equipment 50 can also include input/output unit, be connected to bus 54, to pass through bus 54 and processor 51 etc. Other parts connection.
Wherein, processor 51 calls the program code in memory 53, for executing equipment 50 in above method embodiment The operation of execution.E.g., including:
The message that the request backup link that the first interchanger is sent is received by interface circuit 52, requests disappearing for backup link Breath is when at least one uplink failure in the first local forwarding group, and the effective total bandwidth of uplink of the first local forwarding group When total bandwidth effective less than the downlink of the first interchanger, the first interchanger deletes the uplink of failure from the first local forwarding group After road, the message sent to second switch, the first local forwarding group includes all uplinks of the first interchanger;Uplink Effective total bandwidth is the total bandwidth of all normal uplinks in uplink, and the effective total bandwidth of downlink is in downlink The total bandwidth of all normal uplinks.
Backup link is deleted from the second local forwarding group according to the message of request backup link by processor 51, second Local forwarding group includes all uplinks of second switch, and backup link is at least one in the second local forwarding group Line link.
Response message is sent to the first interchanger by interface circuit 52, in order to which backup link is added the first interchanger First local forwarding group, and preferentially pass through the uplink transmission of the first interchanger in the first local forwarding group in the first interchanger Data do not pass through backup link by the data of the uplink transmission of the first interchanger described in the described first local forwarding group Transmit data.
In an implementation of the embodiment of the present invention, second switch to the first interchanger send response message it Afterwards, it when second switch receives the message of release backup link of the first interchanger transmission, will be backed up by processor 51 The second local forwarding group is added in link.
In an implementation of the embodiment of the present invention, it is standby that the request that the first interchanger is sent is received in second switch Before the message of part link, by the effective total bandwidth of uplink of the local forwarding group of the detection of processor 51 second, and pass through interface electricity Road 52 sends the effective total bandwidth of uplink of the second local forwarding group to the first interchanger, in order to work as the upper of the first local forwarding group When effective less than the uplink of the second local forwarding group total bandwidth of the effective total bandwidth of row, the first interchanger is asked to second switch transmission Seek the message of backup link.
It should be noted that the total bandwidth of all uplinks in the second local forwarding group in addition to backup link is greater than Or equal to the effective total bandwidth of the downlink of second switch.
Be compared in the prior art when any one in the first interchanger and second switch because of itself uplink therefore When barrier, according to the calculation method of load balancing, usually by the data to be transmitted 50% or more data by the first exchange Stacking cable between machine and second switch, by another interchanger, upstream interchanger is sent, and the present invention can pass through setting Backup link, to ensure when the uplink failure of any interchanger, only by the sub-fraction number in the data to be transmitted According to by the stacking cable between the first interchanger and second switch, by another interchanger, upstream interchanger is sent.Also It is to exchange a part of data via opposite end on the basis of guaranteeing that the uplink of local switch preferentially carries out data forwarding Upstream interchanger is sent the uplink of machine.Thus it is guaranteed that the uplink of local switch is fully utilized, make by The data for stacking cable are greatly reduced, to reduce the load for stacking cable, and then solve because of the number by stacking cable The problem of stacking system performance is greatly lowered according to excessive.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English: Random access memory, referred to as: RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (16)

1. a kind of data transmission method of stacking system, which is characterized in that the described method includes:
At least one uplink failure in the first local forwarding group, and the uplink of the described first local forwarding group is effectively total When effective less than the downlink of the first interchanger total bandwidth of bandwidth, first interchanger is deleted from the described first local forwarding group The uplink of failure, the described first local forwarding group include all uplinks of first interchanger, and the uplink has The total bandwidth that total bandwidth is all normal uplinks in uplink is imitated, the effective total bandwidth of downlink is in downlink All normal downlinks total bandwidth;
First interchanger sends the message of request backup link to second switch, and the backup link is second local turn At least one uplink in hair group, the described second local forwarding group include all uplinks of the second switch; First interchanger receives the response message that the second switch is sent, and the response message indicates the second switch First interchanger is allowed to use the backup link;
The described first local forwarding group is added in the backup link by first interchanger;
First interchanger preferentially transmits number by the uplink of the first interchanger described in the described first local forwarding group According to not passing through the backup chain by the data of the uplink transmission of the first interchanger described in the described first local forwarding group Transmit data in road.
2. the method according to claim 1, wherein institute is added in the backup link in first interchanger After stating the first local forwarding group, which comprises
When the uplink of the failure is restored, the uplink is added described first local turn by first interchanger Hair group;
First interchanger deletes the backup link from the described first local forwarding group, and sends out to the second switch The message for discharging the backup link is sent, in order to which the second switch is according to the message of the release backup link, The described second local forwarding group is added in the backup link.
3. being requested the method according to claim 1, wherein being sent in first interchanger to second switch Before the message of backup link, the method also includes:
The effective total bandwidth of uplink of first local forwarding group described in the first exchange machine testing, and obtain described second local turn The effective total bandwidth of the uplink of hair group;
When the effective total bandwidth of uplink of the described first local forwarding group is less than the effectively total band of uplink of the described second local forwarding group When wide, the step of first interchanger sends the message of request backup link to second switch is executed.
4. according to the method in any one of claims 1 to 3, which is characterized in that remove institute in the described second local forwarding group The total bandwidth for stating all uplinks other than backup link is greater than or equal to the effective total bandwidth of downlink of the second switch.
5. a kind of data transmission method of stacking system, which is characterized in that the described method includes:
Second switch receives the message for the request backup link that the first interchanger is sent, and the message of the request backup link is At least one uplink failure in the first local forwarding group, and the effective total bandwidth of uplink of the described first local forwarding group When total bandwidth effective less than the downlink of first interchanger, first interchanger is deleted from the described first local forwarding group After the uplink of failure, the message that Xiang Suoshu second switch is sent, the described first local forwarding group includes described first All uplinks of interchanger;The effective total bandwidth of uplink is total band of all normal uplinks in uplink Width, the effective total bandwidth of downlink are the total bandwidth of all normal uplinks in downlink;
The second switch deletes the backup chain from the second local forwarding group according to the message of the request backup link Road, the described second local forwarding group include all uplinks of the second switch, and the backup link is described second At least one uplink in local forwarding group;
The second switch sends response message to first interchanger, in order to which first interchanger is by the backup The described first local forwarding group is added in link, and in first interchanger preferentially by described in the described first local forwarding group The uplink transmission data of first interchanger does not pass through the uplink of the first interchanger described in the described first local forwarding group The data of road transmission transmit data by the backup link.
6. according to the method described in claim 5, it is characterized in that, being sent in the second switch to first interchanger After response message, which comprises
When the second switch receives the message for the release backup link that first interchanger is sent, described the The described second local forwarding group is added in the backup link by two interchangers.
7. according to the method described in claim 5, it is characterized in that, receiving the first interchanger hair in the second switch Before the message of the request backup link sent, the method also includes:
The second switch detects the effective total bandwidth of uplink of the described second local forwarding group, and sends out to first interchanger The effective total bandwidth of uplink of the described second local forwarding group is sent, in order to when the effectively total band of uplink of the described first local forwarding group When the effective total bandwidth of the wide uplink less than the described second local forwarding group, first interchanger is sent to the second switch The message of the request backup link.
8. method according to any one of claims 5 to 7, which is characterized in that remove institute in the described second local forwarding group The total bandwidth for stating all uplinks other than backup link is greater than or equal to the effective total bandwidth of downlink of the second switch.
9. a kind of data transmission device of stacking system, which is characterized in that described device includes:
Removing module, for working as at least one uplink failure in the first local forwarding group, and the described first local forwarding When effective less than the downlink of the first interchanger total bandwidth of the effective total bandwidth of uplink of group, deleted from the described first local forwarding group The uplink of failure, the described first local forwarding group include all uplinks of the first interchanger, and the uplink is effectively total Bandwidth is the total bandwidth of all normal uplinks in uplink, and the effective total bandwidth of downlink is the institute in downlink There is the total bandwidth of normal downlink;
Sending module, for sending the message of request backup link to second switch, the backup link is second local turn At least one uplink in hair group, the described second local forwarding group include all uplinks of the second switch;
Receiving module, the response message sent for receiving the second switch, the response message instruction described second are handed over Changing planes allows first interchanger to use the backup link;
Adding module, for the described first local forwarding group to be added in the backup link;
Transmission module, for preferentially transmitting number by the uplink of the first interchanger described in the described first local forwarding group According to not passing through the backup chain by the data of the uplink transmission of the first interchanger described in the described first local forwarding group Transmit data in road.
10. device according to claim 9, which is characterized in that the adding module is also used to the uplink when the failure When link-recovery, the described first local forwarding group is added in the uplink;
The removing module is also used to delete the backup link from the described first local forwarding group, and passes through the transmission Module sends the message for discharging the backup link to the second switch, in order to which the second switch is released according to The described second local forwarding group is added in the backup link by the message for putting the backup link.
11. device according to claim 9, which is characterized in that described device further include:
Detection module for detecting the effective total bandwidth of uplink of the described first local forwarding group, and obtains described second local turn The effective total bandwidth of the uplink of hair group;
The sending module is also used to be less than described second local turn when the effective total bandwidth of uplink of the described first local forwarding group When the effective total bandwidth of the uplink of hair group, the step of sending the message of request backup link to second switch is executed.
12. the device according to any one of claim 9 to 11, which is characterized in that removed in the described second local forwarding group The total bandwidth of all uplinks other than the backup link is greater than or equal to the effectively total band of downlink of the second switch It is wide.
13. a kind of data transmission device of stacking system, which is characterized in that described device includes:
Receiving module, the message of the request backup link for receiving the transmission of the first interchanger, the request backup link disappear Breath is works as at least one uplink failure in the first local forwarding group, and the uplink of the described first local forwarding group is effectively total When bandwidth is less than the downlink effective total bandwidth of first interchanger, first interchanger is from the described first local forwarding group After the uplink for deleting failure, the message sent to second switch, the described first local forwarding group includes described first All uplinks of interchanger;The effective total bandwidth of uplink is total band of all normal uplinks in uplink Width, the effective total bandwidth of downlink are the total bandwidth of all normal uplinks in downlink;
Removing module, for deleting the backup chain from the second local forwarding group according to the message of the request backup link Road, the described second local forwarding group include all uplinks of the second switch, and the backup link is described second At least one uplink in local forwarding group;
Sending module, for sending response message to first interchanger, in order to which first interchanger is by the backup The described first local forwarding group is added in link, and in first interchanger preferentially by described in the described first local forwarding group The uplink transmission data of first interchanger does not pass through the uplink of the first interchanger described in the described first local forwarding group The data of road transmission transmit data by the backup link.
14. device according to claim 13, which is characterized in that described device includes:
Adding module, for receiving the release backup link that first interchanger is sent when the second switch When message, the described second local forwarding group is added in the backup link.
15. device according to claim 13, which is characterized in that described device further include:
Detection module, for detecting the effective total bandwidth of uplink of the described second local forwarding group, and by the sending module to First interchanger sends the effective total bandwidth of uplink of the described second local forwarding group, in order to when the described first local forwarding When the effective total bandwidth of uplink of group is less than the uplink effective total bandwidth of the described second local forwarding group, first interchanger is to institute State the message that second switch sends the request backup link.
16. device described in any one of 3 to 15 according to claim 1, which is characterized in that removed in the described second local forwarding group The total bandwidth of all uplinks other than the backup link is greater than or equal to the effectively total band of downlink of the second switch It is wide.
CN201610122418.9A 2016-03-02 2016-03-02 A kind of data transmission method and device of stacking system Active CN107154861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610122418.9A CN107154861B (en) 2016-03-02 2016-03-02 A kind of data transmission method and device of stacking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610122418.9A CN107154861B (en) 2016-03-02 2016-03-02 A kind of data transmission method and device of stacking system

Publications (2)

Publication Number Publication Date
CN107154861A CN107154861A (en) 2017-09-12
CN107154861B true CN107154861B (en) 2019-11-29

Family

ID=59791326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610122418.9A Active CN107154861B (en) 2016-03-02 2016-03-02 A kind of data transmission method and device of stacking system

Country Status (1)

Country Link
CN (1) CN107154861B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286563B (en) * 2018-11-06 2021-04-16 中国联合网络通信集团有限公司 Data transmission control method and device
CN113613291B (en) * 2021-08-12 2024-02-02 中国联合网络通信集团有限公司 Method, terminal and flow control unit for transmitting downlink GBR service flow

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN101102222A (en) * 2007-06-05 2008-01-09 中兴通讯股份有限公司 A communication network connection method and its device
CN102761479A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Method for selecting link and device therefore
CN103067291A (en) * 2012-12-24 2013-04-24 杭州华三通信技术有限公司 Method and device of up-down link correlation

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8175078B2 (en) * 2005-07-11 2012-05-08 Cisco Technology, Inc. Redundant pseudowires between Ethernet access domains
CN102769568B (en) * 2012-07-19 2015-10-21 中兴通讯股份有限公司 A kind of flow forwarding method based on virtual switch cluster and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102222A (en) * 2007-06-05 2008-01-09 中兴通讯股份有限公司 A communication network connection method and its device
CN101094157A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
CN102761479A (en) * 2012-06-28 2012-10-31 华为技术有限公司 Method for selecting link and device therefore
CN103067291A (en) * 2012-12-24 2013-04-24 杭州华三通信技术有限公司 Method and device of up-down link correlation

Also Published As

Publication number Publication date
CN107154861A (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN102006188B (en) Path back switching method and device in transport network
CN104486128B (en) A kind of system and method for realizing redundancy heartbeat between dual controller node
CN204089874U (en) A kind of switch supporting packet storage
WO2011157145A2 (en) Main/backup switching method between communication device, communication device, system and service request device
CN102571492B (en) Method and device for detecting failure of routing equipment
CN107154861B (en) A kind of data transmission method and device of stacking system
WO2011157149A2 (en) Method, communication device and system, and service request device for main/standby switch between communication devices
CN106209619A (en) A kind of real-time automatic switching control equipment being applied to route interruption and method
CN103281720B (en) The hot standby changing method of wireless controller and device, wireless controller, connecting system
CN108804260A (en) A kind of method and apparatus that SRIO systems are switched
TW201308940A (en) Recovery method for ring-based network
CN101790110B (en) Device and method for coordinating and recovering automatic protection switching operation
WO2011157146A2 (en) Main/backup switching method between communication devices, communication device, system and service request device
WO2017000096A1 (en) Link recovery method and network device
JP2022084587A (en) Method for recovering faulty multi-layer link and controller
JP2011171980A (en) Path controller, communication system and path calculation method
EP2445118B1 (en) Method and device for protecting service based on automatic switched optical network
CN104994173A (en) Message processing method and system
CN106375212B (en) A kind of RSVP message treatment method and device
CN108900338B (en) Channel backup communication system and method
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN105450519B (en) The sending method and core switch of message
CN101986616A (en) Ethernet branching unit and branching method thereof
CN101695046B (en) Method and equipment for arranging RRPP block points
CN103414591A (en) Method and system for fast converging when port failure is recovered

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant