CN101714932B - MAD testing method and device for IRF stacker - Google Patents
MAD testing method and device for IRF stacker Download PDFInfo
- Publication number
- CN101714932B CN101714932B CN2009102503038A CN200910250303A CN101714932B CN 101714932 B CN101714932 B CN 101714932B CN 2009102503038 A CN2009102503038 A CN 2009102503038A CN 200910250303 A CN200910250303 A CN 200910250303A CN 101714932 B CN101714932 B CN 101714932B
- Authority
- CN
- China
- Prior art keywords
- mad
- information
- message
- territory
- self
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses an MAD testing method for an IRF stacker, comprising the following steps: establishing an MAD region by an opposite terminal device according to MAD information distribution messages; and judging whether stacking fission occurs or not according to the MAD information distribution messages, if so, sending the MAD information reflection messages to member devices by the opposite terminal device, and closing the own device ports or maintaining the own device ports to be in an Active state by the member devices according to the MAD information reflection messages. In the invention, the MAD testing process is more efficient and the application range is not limited by networking.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of MAD detection method and device of the IRF of being used for stack equipment.
Background technology
IRF (Intelligent Resilient Framework, intelligent resilient infrastructure letter) is that multiple devices are linked together through the IRF port, closes equipment thereby form an All-China Federation of Taiwan Compatriots; And the user manages through equipment is closed in this All-China Federation of Taiwan Compatriots, can realize all devices among the IRF is managed.Can find out; IRF can easily increase port number, bandwidth and the message processing capability of system through increasing the number of devices of internal system, and promptly IRF is through the polymerization between the multiple devices; More stable multilink backup can be provided, realize the high reliability of link.
When the piling up link and break off of IRF, original IRF can split into identical two (perhaps many) IRF of global configuration, and when splitting into the identical IRF of global configuration and in network, moving simultaneously, may cause network failure.
In order to improve the availability of system; Avoid the network failure that may cause; When IRF divides, can adopt MAD (Multi-Active Detection, multi-Active detects) mechanism to handle; When in detecting network, having a plurality of IRF simultaneously, handle accordingly to guarantee that network can normally move.
Concrete, when IRF divides, use MAD to guarantee that the function of the normal operation of network comprises:
(1) measuring ability; Promptly through using LACP (Link Aggregation Control Protocol; Link Aggregation Control Protocol), BFD (Bidirectional Forwarding Detection, two-way forwarding detect) agreement, perhaps, gratuitous ARP (Address Resolution Protocol; Address resolution protocol) detects whether to exist in the network and a plurality ofly split off the IRF that global configuration is identical from same IRF system.
(2) conflict processing capacity; After being the IRF division; When the IRF system detects the IRF that has a plurality of Active of being in states in the network, (can detect through measuring ability and obtain), Master (master) member numbers the little IRF that is in the Active state can continue operate as normal; And the bigger IRF that is in the Active state of Master member numbering need be moved to Recovery (recovery) state, and closes among this IRF on all member devices other all of the ports except reserved port.
(3) fault recovery function, promptly the IRF link is repaired through daily record prompting user by the IRF system, and after the IRF link repair, the equipment of conflict will restart, and recover the IRF system then, and at this moment, pent port will recover professional again and transmit.
In the prior art; When the IRF system passes through the dynamic aggregation networking; Above-mentioned measuring ability can use LACP to detect whether to exist in the network a plurality of identical IRF of global configuration that split off from same IRF system, promptly can realize the MAD testing process through using LACP.
Concrete, use LACP to realize that the MAD testing process comprises: dynamic aggregation group membership equipment sends the LACP message, has write the member id of the master of current I RF in the reserved field of this LACP message.Wherein, can use the Active ID of this member id in the dynamic aggregation group as the IRF system; After opposite equip. receives this LACP message, through the reserved field of inspection LACP message, can know the Active ID of IRF system, confirm then whether the transmitting terminal of this LACP message is the dynamic aggregation group membership equipment in the IRF system.For example, when this reserved field was not 0, the transmitting terminal that then shows this LACP message was the member device in the IRF system, at this moment, needed this LACP message is forwarded from other member port.
As shown in Figure 1; Be a kind of dynamic LACP MAD networking diagram; In this LACP MAD networking; The PORT1 port of opposite equip. can receive and carry Active ID is 1 LACP message, same, and the PORT2 port of opposite equip. also can receive and to have carried Active ID is 1 LACP message.
When the piling up link and break down of IRF; Member device 2 (being the opposite equip. among Fig. 1) will become new master; At this moment; The PORT1 port of member device 1 (being the equipment that is positioned at dynamic aggregation left side among Fig. 1) will receive and carry Active ID is 2 LACP message (from member device 2); This member device 1 is 2 information through Active ID relatively and the Active ID that self keeps is 1 information, finds that the Active ID of self is more excellent (being that Active ID numerical value is little of excellent), and this member device 1 will not carry out any processing.
To have carried Active ID be 1 LACP message (from member device 1) and the PORT2 port of member's equipment 2 will receive; At this moment; This member device 2 is 1 information through Active ID relatively and the Active ID that self keeps is 2 information; The Active ID that finds opposite equip. (member device 1) is more excellent; This member device 2 is carried out MAD down operation with the functional area of self, makes self in the pairing IRF of member device 1 system, not move, thereby solved the network failure that IRF system splitter is caused during operation simultaneously in network.
But, in the prior art, if between IRF and the opposite equip. be non-dynamic aggregation link; For example; Static aggregated links, perhaps aggregated links such as MSTP (Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol) redundant link; LACP MAD detects and can't come into force, and the LACP MAD of a kind of non-dynamic aggregation link as shown in Figure 2 detects sketch map.Wherein, when being static aggregated links between IRF and the opposite equip., between IRF and opposite equip., will can not transmit the LACP message, can not come into force, influence the scope of application that LACP MAD detects then thereby cause LACP MAD to detect.
In addition, when using LACP MAD to detect, if when the dynamic aggregation two ends all are IRF equipment, can only have an end IRF equipment can carry out LACP MAD testing process, a kind of dynamic aggregation two ends as shown in Figure 3 all are the sketch mapes of IRF equipment.In Fig. 3, detect if two IRF equipment are carried out LACP MAD simultaneously, will cause the testing result that makes mistake.
For example; When member's equipment 1 is initiated LACP MAD detection; The PORT1 port of member device 2 can receive and carry Active ID is 1 LACP message, and when the piling up link and break down of IRF, member device 2 will become new master; At this moment, will to receive and carry Active ID be 2 LACP message for the PORT1 port of member device 1.
Corresponding; When member's equipment 2 is also initiated LACP MAD detection; The PORT1 port of member device 1 can receive and carry Active ID is 2 LACP message; And when the piling up link and break down of IRF, the PORT1 port of member device 2 will receive and carry Active ID is 1 LACP message.
To sum up can find out; When member's equipment 1 and member device 2 have all been initiated LACP MAD detection; If the PORT1 port of member device 2 receives and carried Active ID is 1 LACP message; Then member device 2 can't judge this reception LACP message process be IRF pile up link break down cause, still since member device 1 initiate LACP MAD and detect and caused; Same, if the PORT1 port of member device 1 receives to have carried when Active ID is 2 LACP message also same problem can appear, thereby cause LACP MAD detect the testing result that makes mistake.
In addition, when using LACP MAD to detect, only rely on Active ID (Active ID numerical value is little of excellent) the optimum member device of election in the prior art, may elect optimum member device.A kind of Active of dependence ID as shown in Figure 4 elects the sketch map of optimum member device.In Fig. 4; If the link that piles up between member1 and the member2 breaks down, after the IRF division is accomplished, then the minimum part of Active ID value will become the part of managing business among the IRF; And other parts need be carried out MAD down operation with the functional area of self; Promptly managed business by piling up of forming of member device 1, and member's equipment 2, member device 3 newly piles up and can fall by MAD down with member device 4 is formed.If the business of piling up processing that member device 2, member device 3 and member device 4 are formed, greater than member device 1 form pile up processing professional the time, can find out that the member device that relies on Active ID to elect will influence the application of most of business.
Summary of the invention
The present invention provides a kind of MAD detection method and device of the IRF of being used for stack equipment, with the efficient of raising MAD detection, and has guaranteed professional application.
In order to achieve the above object, the present invention proposes a kind of MAD detection method of the IRF of being used for stack equipment, be applied to comprise in the system of member device and the coupled opposite equip. of IRF in piling up, said method comprising the steps of:
Said opposite equip. receives the MAD information issue message that coupled member device sends, and issues the message establishment or add the MAD territory according to said MAD information; Wherein, carried the Active id information in the said MAD information issue message;
After the MAD territory was created or added completion, the MAD information table is created and safeguarded to the said opposite equip. in the MAD territory according to said MAD information issue message; Wherein, stored said Active id information in the said MAD information table;
Said opposite equip. judges whether the Active id information in the follow-up MAD information issue message that receives is identical with Active id information in the said MAD information table;
When the two was identical, said opposite equip. is judged not pile up division;
When the two not simultaneously, said opposite equip. is judged and is piled up division.
Also carried the Chassis id information in the said MAD information issue message,
Specifically comprise according to said MAD information issue message establishment or adding MAD territory:
Said opposite equip. obtains the Chassis id information from said MAD information issue message; And judge whether the MAD territory that said Chassis id information is corresponding;
When the corresponding MAD territory of said Chassis id information, said opposite equip. joins in the MAD territory of said correspondence;
When not having the MAD territory of said Chassis id information correspondence, said opposite equip. is created the MAD territory according to said Chassis id information.
Said method also comprises one or more in the following operation:
(1) after said opposite equip. was created or added the MAD territory, when said opposite equip. received said MAD information issue message, said opposite equip. need not obtain the Chassis id information from said MAD information issue message;
(2) when said member device is closed link layer MAD function, said opposite equip. will receive from said member device and withdraw from message to the MAD information that said opposite equip. sends, and opposite equip. self is rejected from said MAD territory;
(3) when said member device starts link layer MAD function; Said opposite equip. will receive from said member device and withdraw from message to the MAD information that said opposite equip. sends; Self belong to certain MAD territory if said opposite equip. gets access to, need opposite equip. self be rejected from said certain MAD territory.
When piling up division, said method also comprises:
Said opposite equip. sends MAD information reflection message to said member device;
Said member device is closed the device port of self or is kept the device port of self to be in the Active state according to said MAD information reflection message.
The UP physical port quantity of the corresponding member device of other ports institute and the statistical value of reception total flow have been carried in the said MAD information reflection message;
Said member device is closed the device port of self according to said MAD information reflection message or is kept self device port to be in the Active state and specifically comprises:
Said member device obtains the UP physical port quantity of other member devices from said MAD information reflection message, and the UP physical port quantity of comparison self UP physical port quantity and said other member devices;
When self UP physical port quantity during less than the UP physical port quantity of said other member devices, said member device is closed the device port of self;
When self UP physical port quantity during greater than the UP physical port quantity of said other member devices, said member device keeps the device port of self to be in the Active state.
When the UP physical port quantity of self UP physical port quantity and said other member devices is identical,
Said member device is closed the device port of self according to said MAD information reflection message or is kept self device port to be in the Active state and also comprises:
Said member device obtains the statistical value of the reception total flow of other member devices from said MAD information reflection message, and the statistical value of the reception total flow of the statistical value of comparison self reception total flow and said other member devices;
When the statistical value that self receives total flow during less than the statistical value of the reception total flow of said other member devices, said member device is closed the device port of self;
When the statistical value that self receives total flow during greater than the statistical value of the reception total flow of said other member devices, said member device keeps the device port of self to be in the Active state.
A kind of MAD checkout gear that is used for the IRF stack equipment is applied to comprise that said device comprises in the system of member device and the coupled opposite equip. of IRF in piling up:
Transceiver module is used to receive the MAD information issue message that coupled member device sends;
Processing module is connected with said transceiver module, is used for creating or adding MAD territory according to said MAD information issue message; Wherein, carried the Active id information in the said MAD information issue message; And after the MAD territory is created or added completion, create and safeguard the MAD information table according to said MAD information issue message; Wherein, stored said Active id information in the said MAD information table;
Judge module is connected with transceiver module with said processing module, is used for judging whether the Active id information of the follow-up MAD information issue message that receives is identical with Active id information in the said MAD information table; When the two is identical, judges and do not pile up division; When the two not simultaneously, judge and to pile up division.
Also carried the Chassis id information in the said MAD information issue message,
Said processing module specifically is used for, and from said MAD information issue message, obtains the Chassis id information; And judge whether the MAD territory that said Chassis id information is corresponding; When the corresponding MAD territory of said Chassis id information, join in the MAD territory of said correspondence; When not having the MAD territory of said Chassis id information correspondence, create the MAD territory according to said Chassis id information.
Said processing module also is used for, and after creating or adding the MAD territory, when receiving said MAD information issue message, from said MAD information issue message, does not obtain the Chassis id information;
When said member device is closed link layer MAD function, receive from said member device and withdraw from message, and said opposite equip. is rejected from said MAD territory to the MAD information that said opposite equip. sends;
When said member device starts link layer MAD function; Receive from said member device and withdraw from message to the MAD information that said opposite equip. sends; If get access to when self belonging to certain MAD territory, said opposite equip. self is rejected from said certain MAD territory.
Said transceiver module also is used for, and sends MAD information reflection message to said member device; And close the device port of self or keep the device port of self to be in the Active state according to said MAD information reflection message by said member device.
Compared with prior art, the present invention has the following advantages: through improving existing MAD detection method, make that the MAD testing process is more efficient, the scope of application is not limited by networking, and MAD handles the application that meets actual networking; And member device can be according to the active port number, and characteristics such as current device bearer traffic size are carried out IRF successor's election, makes that piling up the division fault drops to minimum to the influence of whole network.
Description of drawings
Fig. 1 is a dynamic LACP MAD networking sketch map in the prior art;
Fig. 2 is that the LACP MAD of non-dynamic aggregation link in the prior art detects sketch map;
Fig. 3 is the sketch map of IRF equipment for dynamic aggregation two ends in the prior art;
Fig. 4 elects the sketch map of optimum member device for relying on Active ID in the prior art;
A kind of MAD detection method flow chart that is used for the IRF stack equipment that Fig. 5 proposes for the present invention;
A kind of MAD detection method flow chart that is used for the IRF stack equipment that Fig. 6 proposes down for application scenarios of the present invention;
Fig. 7 is the MAD TLV form sketch map under the application scenarios of the present invention;
The link layer neighbor discovery protocol message sketch map of Fig. 8 after for the expansion under the application scenarios of the present invention;
Fig. 9 sets up sketch map for MAD territory under the application scenarios of the present invention;
Sketch map is handled in MAD territory when Figure 10 for piling up link under the application scenarios of the present invention fracture takes place;
Figure 11 is the sketch map of the optimum member device of election of corresponding diagram 4 under the application scenarios of the present invention;
A kind of MAD checkout gear structure chart that is used for the IRF stack equipment that Figure 12 proposes for the present invention.
Embodiment
Basic thought of the present invention is through establishment MAD territory in the port of opposite equip., and safeguards identical MAD information table by the port in the MAD territory (belonging to opposite equip.); In subsequent process; Member device among the IRF will periodically send MAD information issue message; And whether the Active ID that the port in the MAD territory will compare in the MAD information issue message is identical with ActiveID in the MAD information table of self storing; When the two is identical, can confirm to pile up division, can send MAD information reflection message to member device by port then.
Owing to carried the UP physical port quantity of the corresponding member device of other ports institute and the statistical value of reception total flow in the MAD information reflection message; After member's equipment receives this MAD information reflection message; Can take all factors into consideration the UP physical port quantity and the statistical value that receives total flow of other member devices, and UP physical port quantity of self and the statistical value that receives total flow; Then confirm to keep the device port of self to be in the Active state, still close the device port of self; Thereby make that member device can be according to the active port number, characteristics such as current device bearer traffic size are carried out IRF successor election, make that piling up the division fault drops to minimum to the influence of whole network.
A kind of MAD detection method that is used for the IRF stack equipment as shown in Figure 5, that the present invention proposes is applied to comprise in the system of member device and the coupled opposite equip. of IRF in piling up, and said method comprising the steps of:
Wherein, carried the Chassis id information in the said MAD information issue message, specifically comprised according to said MAD information issue message establishment or adding MAD territory: said opposite equip. obtains the Chassis id information from said MAD information issue message; And judge whether the MAD territory that said Chassis id information is corresponding; When the corresponding MAD territory of said Chassis id information, said opposite equip. joins in the MAD territory of said correspondence; When not having the MAD territory of said Chassis id information correspondence, said opposite equip. is created the MAD territory according to said Chassis id information.
Concrete; In the present invention; Through existing link layer Neighbor Discovery Protocol is expanded; Can obtain the MAD infomational message; Promptly realize carrying, carried subtype field, Active id field, total active port field (the active port sum that expression comprises in piling up) and total flow field (statistical value of the current reception total flow that expression is piled up) among this MAD TLV at least MAD information through in the information field of link layer Neighbor Discovery Protocol, adding MAD TLV.Wherein, can represent MAD information issue message and MAD information reflection message through this subtype field is carried out assignment.For example, when subtype field value is 1, expression MAD information issue message, when subtype field value is 0, expression MAD information reflection message.And for each member device among the same IRF, when sending MAD information issue message, the content of carrying in subtype field, Active id field, total activeport field and the total flow field is identical.
In addition, at member device when the opposite equip. of correspondence sends MAD information issue message, except carrying above-mentioned MAD TLV part; Also carried the Chassis id information at least, wherein, the bridge MAC that this Chassis id information is a system (Media Access Control; Media interviews control) information; And since each member device among the same IRF when sending MAD information issue message, Chassis ID is identical, promptly can create the MAD territory according to the Chassis id information.
Below in conjunction with a kind of concrete application scenarios, the MAD detection method that is used for the IRF stack equipment that the present invention is proposed is elaborated, and as shown in Figure 6, this MAD detection method that is used for the IRF stack equipment may further comprise the steps:
Step 601 is created the MAD territory through using the link layer Neighbor Discovery Protocol.
Because the link layer Neighbor Discovery Protocol operates in data link layer; Do not receive STP (Spanning TreeProtocol; Spanning-Tree Protocol), the influence of other agreement such as MSTP, link aggregation; And the link layer Neighbor Discovery Protocol itself has the characteristics that expense is little, do not influence upper-layer service, promptly can select the link layer Neighbor Discovery Protocol to carry MAD information, uses this link layer Neighbor Discovery Protocol to serve the MAD testing process then.
Concrete, this link layer Neighbor Discovery Protocol includes but not limited to LLDP (Link LayerDiscovery Protocol, Link Layer Discovery Protocol), LDP agreements such as (Label Distribution Protocol, tag distribution protocols); Among the present invention,, can use the link layer Neighbor Discovery Protocol after the expansion to carry MAD information then through the link layer Neighbor Discovery Protocol is expanded.
As shown in Figure 7, realize carrying through in the information field of link layer Neighbor Discovery Protocol, adding MAD TLV among the present invention to MAD information.Wherein, in order to unify with prior standard, need first field (TLV Type) of MAD TLV be accounted for a byte value 127 (certainly, in practical application, also can select other value, repeat no more at this), self-defined TLV is organized in expression; The length of TLV Length field (can select 1 byte) expression TLV information field, the i.e. shared length of fields; 00-0f-e2 field (can select 3 bytes) is represented incorporate title; Subtype field (can select 1 byte) expression subtype, for example, when subtype field value is 1; Expression MAD information issue message; When subtype field value was 2, expression MAD information reflection message was when subtype field value is 3; Expression MAD information withdraws from message, i.e. expression cancellation is also withdrawed from the MAD function; The information of Active id field (can select 1 byte) expression Active ID; The active port sum that total active port field (can select 1 byte) expression comprises in piling up, the active port is the UP physical port; The statistical value of the current reception total flow that total_flow field (can select 1 byte) expression is piled up.
Need to prove that the content among the above-mentioned MAD TLV is not limited thereto, also and be confined to above-mentioned byte number and represent corresponding field; And function corresponding also is not limited to corresponding field value; For example, can use 2 byte representation total flow fields, can be 3 expression MAD information issue messages etc. with subtype field value; Giving unnecessary details no longer in detail among the present invention, is that example is explained the processing procedure among the present invention with above-mentioned situation.
Among the present invention, so that the LLDP agreement is example Benq in the MAD of link layer Neighbor Discovery Protocol message encapsulation format, as shown in Figure 8; Be the link layer Neighbor Discovery Protocol after the expansion, in the MAD of this LLDP message, MAD TLV field is above-mentioned expansion shown in Figure 7; Be used for carrying, and other parts are the field in the existing LLDP agreement, for example to MAD information; Information among the Chassis ID TLV is the bridge MAC information of system, for other field, gives unnecessary details no longer in detail among the present invention.
Setting up sketch map with MAD territory shown in Figure 9 below is that example is explained the process of creating the MAD territory in this step, and this process of creating the MAD territory can be LLDP agreement (message format is as shown in Figure 8, and has carried expansion shown in Figure 7), LDP agreement etc.
In Fig. 9; IRF equipment is gone up at each member device (being respectively member device 1, member device 2, member device 3 and member device 4) and is selected a port to start link layer MAD function; And outwards send the link layer neighbours by this port and find message, and this link layer neighbours find to carry in the message MADTLV (being expansion shown in Figure 7).
Wherein, in this MAD TLV part, the subtype field value is 1, representes that this link layer neighbours find that message is MAD information issue message, is used to issue the MAD information of this IRF; Active ID is the ID that piles up master, and total active port field is the quantity of the port of UP physics in piling up, and the totalflow field is represented the current reception flow of IRF total bytes.Need to prove that current reception flow total bytes in this total flow field is this IRF equipment self real-time statistics, and be encapsulated in this link layer neighbours according to statistics and find in the message; The quantity of the UP physical port in this total active port field also is that the IRF equipment self is added up, and is encapsulated in this link layer neighbours and finds in the message.
Further; (promptly finding to get access to the message subtype field value from the link layer neighbours is 1 after opposite equip. receives first MAD information issue message; Can know that the link layer neighbours that receive find that message is MAD information issue message); Set up MAD and detect territory (being the MAD territory), and with this MAD territory of the sign of the Chasiss id information in the MAD IDTLV message.
After other follow-up port is received MAD information issue message; Judge whether the Chassis id information in the MAD information issue message that self receives is identical with the Chasiss id information in current MAD territory (the MAD territory of being created when promptly receiving first MAD information issue message); If the Chassis id information is identical with the Chasiss id information in current MAD territory; Then this port need join in the current MAD territory; And if the Chassis id information is different with the Chasiss id information in current MAD territory, then create new MAD territory by this port.In Fig. 9; The port1 of opposite equip., port2, port3 and port4 are with the MAD information issue message that receives corresponding port in member device 1, member device 2, member device 3 and the member device 4 respectively; And member device 1, member device 2, member device 3 and member device 4 are arranged in same IRF; The port1, port2, port3 and the port4 that are opposite equip. will be arranged in same MAD territory; In addition, above-mentioned port1, port2, port3 and port4 can be the ports of identical opposite equip., also can be the ports of different opposite equip.s.Be that above-mentioned port1, port2, port3 and port4 is the port that belongs to opposite equip., describe for ease, carry out the example that is operating as of corresponding opposite equip. with port1, port2, port3 and port4 and carry out follow-up explanation.
Need to prove, when piling up normal use, if carry out the masterslave switchover operation; The situation that bridge MAC changes then may appear; Then cause the Chassis ID of MAD information issue message to change, at this moment, may be connected to other IRF equipment when front port in the MAD territory after the networking change in topology; For example; After the port2 of opposite equip. joins the MAD territory, if after having received the MAD information issue message that Chassis ID changes, then this port2 will no longer belong to MAD territory shown in Figure 9.
In order to address the above problem, need to carry out following operation among the present invention:
(1) after port joins the MAD territory; Follow-up receive MAD information issue message again after; With the Chasiss ID characteristic of no longer being concerned about in the follow-up MAD information issue message; Be after Chasiss ID changes, this port need not be connected to the MAD territory of other IRF equipment according to this Chasiss ID.
(2) during the port shutdown link layer MAD function of IRF equipment; Need issue MAD information to withdraw from message and give opposite equip.; Promptly the MAD function need cancelled and withdraw to the port of this IRF equipment, and this MAD information withdraws from message through being 3 to represent subtype field value.When opposite equip. receives after this MAD information withdraws from message, need to receive the port that this MAD information withdraws from message and from the MAD territory, reject.
(3) during IRF device start link layer MAD function; Also need issue subtype and be 3 MAD information withdraws from message and gives opposite equip.; When opposite equip. receives after this MAD information withdraws from message; If know that receiving the port that this MAD information withdraws from message has belonged to certain MAD territory (for example, MAD territory 1), then needs this port is rejected from original MAD territory (MAD territory 1).
After the port in the opposite equip. receives MAD information issue message; To get access to the content Active id field, total active port field and the totalflow field from the MAD TLV field of MAD information issue message, and according to the MAD information table shown in the content maintenance table 1 in the respective field.
Table 1
Port name | ?Active?ID | total?active?port | total?flow |
Port1 | ?N | M | L |
Port2 | ?N | M | L |
Port3 | ?N | M | L |
Port4 | ?N | M | L |
In table 1; Port1 can get access to contents such as ActiveID, total active port quantity, total flow numerical value from the MAD information issue message that self receives; Same; Port2, Port3 and Port4 also can get access to corresponding content, and above-mentioned N, M and L are concrete numerical value.
In this step, because IRF equipment is timed sending MAD information issue message, promptly each port need be according to the real-time renewal MAD information table of MAD information issue message in the MAD territory.Wherein, after the port in the MAD territory is receiving MAD information issue message, will upgrade the MAD information table of port according to Active ID, Total active port, the Total flow field information in this MAD information issue message.For example, whether the port in the MAD territory need be according to having new Active ID (different Active ID is promptly arranged) to occur in the Active ID inspection MAD information table, if there is new Active ID to occur, then showing has new MAD to occur; Port in the MAD territory need be according to value corresponding in the content update MAD information table among Total active port, the Totalflow.
This MAD information reflection message and above-mentioned MAD information issue message are similar, in this MAD information reflection message, have also carried MAD TLV, and just the subtype field value is 2, and expression MAD reflection message repeats no more at this.
Be fractured into example and specify the MAD territory processing procedure of piling up under the division situation with the link that piles up between member1 equipment among Fig. 9 and the member2 equipment below, shown in figure 10.
Before piling up division, owing to Port1, Port2, Port3 are positioned at identical MAD territory with Port4, and do not pile up division, then the Active ID of each port is identical, as shown in table 2, for piling up the signal situation of the preceding a kind of MAD information table of division.
Table 2
Port name | ?Active?ID | total?active?port | total?flow |
Port1 | ?1 | 140 | 19848000 |
Port2 | ?1 | 140 | 19848000 |
Port3 | ?1 | 140 | 19848000 |
Port4 | ?1 | 140 | 19848000 |
Need to prove, the identical port of Active ID in the same MAD territory, the content in the MAD information table is identical; Therefore, the reception orbution of MAD information issue message nonsynchronous situation may occur in a period of time, at this moment; Need to wait for one section Preset Time, this Preset Time can be adjusted according to actual needs, after reaching this Preset Time; If during the inner port ActiveID condition of different of MAD territory, need to send MAD information reflection message.
Further; When piling up link fracture take place between member1 equipment and the member2 equipment; Then the Active ID of each port will change, owing to be that member1 equipment and member2 equipment pile up division, promptly the Active ID of Port1 will be different with the Active ID of Port2, Port3 and Port4; As shown in table 3, be the signal situation of piling up a kind of MAD information table after the division of correspondence table 2.
Table 3
Port name | ?Active?ID | total?active?port | total?flow |
Port1 | ?1 | 32 | 948000 |
Port2 | ?2 | 108 | 18900000 |
Port3 | ?2 | 108 | 18900000 |
Port4 | ?2 | 108 | 18900000 |
In this step, when IRF piled up the appearance division, the Port1 port in the MAD territory need send MAD information reflection message to the opposite end stack equipment, will carry the pairing information of Port2, Port3 and Port4 in the MAD information table in this MAD information reflection message; Be that the Active id information is 2, Total activeport field information is 108, and Total flow field information is 18900000.
Same, the Port2 in the MAD territory, Port3, Port4 port also need send MAD information reflection message to the opposite end stack equipment, will carry the pairing information of Port1 port in the MAD information table in this MAD information reflection message; Be that the Active id information is 1, Total active port field information is 32, and Total flow field information is 948000.
In this step; Member1 equipment among the IRF will receive the MAD information reflection message from Port1 port in the MAD territory, and from this MAD information reflection message, get access to Port2, Port3, the pairing Total active of Port4 port port field value and Total flow field value, through comparing the Total active port field value of self; The UP physical port of knowing opposite end (be member2 equipment, member3 equipment and member4 equipment are formed newly pile up) is more than self; Be more suitable for inheriting original task of piling up, at this moment, this member1 equipment will be moved to the Recovery state; And close self device port; Promptly close other all of the ports except reserved port in self the port, for example, close the service port of self etc.Need to prove; If know when UP physical port number is identical during this step comparison Total active port field value, then need further relatively Total flow field value, if the current reception total flow of opposite end is more than self; Then the opposite end is more suitable for inheriting original task of piling up; At this moment, this member1 equipment will be moved to the Recovery state, and close the device port of self.
Same; Member2 equipment among the IRF, member3 equipment and member4 equipment also will receive the MAD information reflection message from Port2, Port3 and Port4 in the MAD territory; And from this MAD information reflection message, get access to the pairing Total active of Port1 port port field value and Totalflow field value; Through comparing the Total active port field value of self; The UP physical port of knowing opposite end (be member1 form newly pile up) lacks than self, confirms self to be more suitable for inheriting original task of piling up, and then member2 equipment, member3 equipment and member4 equipment will continue to keep the Active state.
Can find out that under application scenarios shown in Figure 10, the IRF stack member apparatus that piles up after the division that finally obtains is member2 equipment, member3 equipment and member4.In addition; The technical scheme that the application of the invention provides is for pile system shown in Figure 4, when the link occurs fault between member1 equipment and the member2 equipment; That then finally obtains piles up IRF stack member apparatus after the division (through using UP physical port number and receiving total flow and obtain) and possibly be member2 equipment, member3 equipment and member4; And close the device port of member1 equipment, and shown in figure 11, then can optimum stack member apparatus; Then guarantee the application of most of business, significantly improved the serviceability of pile system.
Wherein, each step among the present invention can also be adjusted according to actual needs.
A kind of MAD checkout gear that is used for the IRF stack equipment shown in figure 12, that the present invention proposes is applied to comprise that said device comprises in the system of member device and the coupled opposite equip. of IRF in piling up:
Said transceiver module 121 also is used for, and sends MAD information reflection message to said member device; And close the device port of self or keep the device port of self to be in the Active state according to said MAD information reflection message by said member device.
Concrete; Said member device is closed the device port of self according to said MAD information reflection message or kept self device port to be in the Active state and comprises: said member device obtains the UP physical port quantity of other member devices from said MAD information reflection message, and the UP physical port quantity of self UP physical port quantity and said other member devices relatively; When self UP physical port quantity during less than the UP physical port quantity of said other member devices, said member device is closed the device port of self; When self UP physical port quantity during greater than the UP physical port quantity of said other member devices, said member device keeps the device port of self to be in the Active state.
When the UP physical port quantity of self UP physical port quantity and said other member devices is identical; Said member device obtains the statistical value of the reception total flow of other member devices from said MAD information reflection message, and the statistical value of the reception total flow of the statistical value of comparison self reception total flow and said other member devices; When the statistical value that self receives total flow during less than the statistical value of the reception total flow of said other member devices, said member device is closed the device port of self; When the statistical value that self receives total flow during greater than the statistical value of the reception total flow of said other member devices, said member device keeps the device port of self to be in the Active state.
Said processing module 122 specifically is used for, and from said MAD information issue message, obtains the Chassis id information; And judge whether the MAD territory that said Chassis id information is corresponding; When the corresponding MAD territory of said Chassis id information, join in the MAD territory of said correspondence; When not having the MAD territory of said Chassis id information correspondence, create the MAD territory according to said Chassis id information.
In addition, said processing module 122 also is used for, and after creating or adding the MAD territory, when receiving said MAD information issue message, from said MAD information issue message, does not obtain the Chassis id information; When said member device is closed link layer MAD function, receive from said member device and withdraw from message, and said opposite equip. is rejected from said MAD territory to the MAD information that said opposite equip. sends; When said member device starts link layer MAD function; Receive from said member device and withdraw from message to the MAD information that said opposite equip. sends; If get access to when self belonging to certain MAD territory, said opposite equip. self is rejected from said certain MAD territory.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (10)
1. a multi-Active that is used for intelligent resilient infrastructure IRF stack equipment detects the MAD detection method, it is characterized in that, is applied to comprise in the system of member device and the coupled opposite equip. of IRF in piling up, and said method comprising the steps of:
Said opposite equip. receives the MAD information issue message that coupled member device sends, and issues the message establishment or add the MAD territory according to said MAD information; Wherein, carried the Active id information in the said MAD information issue message;
After the MAD territory was created or added completion, the MAD information table is created and safeguarded to the said opposite equip. in the MAD territory according to said MAD information issue message; Wherein, stored said Active id information in the said MAD information table;
Said opposite equip. judges whether the Active id information in the follow-up MAD information issue message that receives is identical with Active id information in the said MAD information table;
When the two was identical, said opposite equip. is judged not pile up division;
When the two not simultaneously, said opposite equip. is judged and is piled up division.
2. the method for claim 1 is characterized in that, has also carried the Chassis id information in the said MAD information issue message,
Specifically comprise according to said MAD information issue message establishment or adding MAD territory:
Said opposite equip. obtains the Chassis id information from said MAD information issue message; And judge whether the MAD territory that said Chassis id information is corresponding;
When the corresponding MAD territory of said Chassis id information, said opposite equip. joins in the MAD territory of said correspondence;
When not having the MAD territory of said Chassis id information correspondence, said opposite equip. is created the MAD territory according to said Chassis id information.
3. method as claimed in claim 2 is characterized in that, said method also comprises one or more in the following operation:
(1) after said opposite equip. was created or added the MAD territory, when said opposite equip. received said MAD information issue message, said opposite equip. need not obtain the Chassis id information from said MAD information issue message;
(2) when said member device is closed link layer MAD function, said opposite equip. will receive from said member device and withdraw from message to the MAD information that said opposite equip. sends, and opposite equip. self is rejected from said MAD territory;
(3) when said member device starts link layer MAD function; Said opposite equip. will receive from said member device and withdraw from message to the MAD information that said opposite equip. sends; Self belong to certain MAD territory if said opposite equip. gets access to, need opposite equip. self be rejected from said certain MAD territory.
4. the method for claim 1 is characterized in that, when piling up division, said method also comprises:
Said opposite equip. sends MAD information reflection message to said member device;
Said member device is closed the device port of self or is kept the device port of self to be in the Active state according to said MAD information reflection message.
5. method as claimed in claim 4 is characterized in that, has carried the UP physical port quantity of the corresponding member device of other ports institute and the statistical value of reception total flow in the said MAD information reflection message;
Said member device is closed the device port of self according to said MAD information reflection message or is kept self device port to be in the Active state and specifically comprises:
Said member device obtains the UP physical port quantity of other member devices from said MAD information reflection message, and the UP physical port quantity of comparison self UP physical port quantity and said other member devices;
When self UP physical port quantity during less than the UP physical port quantity of said other member devices, said member device is closed the device port of self;
When self UP physical port quantity during greater than the UP physical port quantity of said other member devices, said member device keeps the device port of self to be in the Active state.
6. method as claimed in claim 5 is characterized in that, when the UP physical port quantity of self UP physical port quantity and said other member devices is identical,
Said member device is closed the device port of self according to said MAD information reflection message or is kept self device port to be in the Active state and also comprises:
Said member device obtains the statistical value of the reception total flow of other member devices from said MAD information reflection message, and the statistical value of the reception total flow of the statistical value of comparison self reception total flow and said other member devices;
When the statistical value that self receives total flow during less than the statistical value of the reception total flow of said other member devices, said member device is closed the device port of self;
When the statistical value that self receives total flow during greater than the statistical value of the reception total flow of said other member devices, said member device keeps the device port of self to be in the Active state.
7. a MAD checkout gear that is used for the IRF stack equipment is characterized in that, is applied to comprise that said device comprises in the system of member device and the coupled opposite equip. of IRF in piling up:
Transceiver module is used to receive the MAD information issue message that coupled member device sends;
Processing module is connected with said transceiver module, is used for creating or adding MAD territory according to said MAD information issue message; Wherein, carried the Active id information in the said MAD information issue message; And after the MAD territory is created or added completion, create and safeguard the MAD information table according to said MAD information issue message; Wherein, stored said Active id information in the said MAD information table;
Judge module is connected with transceiver module with said processing module, is used for judging whether the Active id information of the follow-up MAD information issue message that receives is identical with Active id information in the said MAD information table; When the two is identical, judges and do not pile up division; When the two not simultaneously, judge and to pile up division.
8. device as claimed in claim 7 is characterized in that, has also carried the Chassis id information in the said MAD information issue message,
Said processing module specifically is used for, and from said MAD information issue message, obtains the Chassis id information; And judge whether the MAD territory that said Chassis id information is corresponding; When the corresponding MAD territory of said Chassis id information, join in the MAD territory of said correspondence; When not having the MAD territory of said Chassis id information correspondence, create the MAD territory according to said Chassis id information.
9. device as claimed in claim 8 is characterized in that,
Said processing module also is used for, and after creating or adding the MAD territory, when receiving said MAD information issue message, from said MAD information issue message, does not obtain the Chassis id information;
When said member device is closed link layer MAD function, receive from said member device and withdraw from message, and said opposite equip. is rejected from said MAD territory to the MAD information that said opposite equip. sends;
When said member device starts link layer MAD function; Receive from said member device and withdraw from message to the MAD information that said opposite equip. sends; If get access to when self belonging to certain MAD territory, said opposite equip. self is rejected from said certain MAD territory.
10. device as claimed in claim 7 is characterized in that,
Said transceiver module also is used for, and sends MAD information reflection message to said member device; And close the device port of self or keep the device port of self to be in the Active state according to said MAD information reflection message by said member device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102503038A CN101714932B (en) | 2009-12-03 | 2009-12-03 | MAD testing method and device for IRF stacker |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102503038A CN101714932B (en) | 2009-12-03 | 2009-12-03 | MAD testing method and device for IRF stacker |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101714932A CN101714932A (en) | 2010-05-26 |
CN101714932B true CN101714932B (en) | 2012-01-04 |
Family
ID=42418224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102503038A Expired - Fee Related CN101714932B (en) | 2009-12-03 | 2009-12-03 | MAD testing method and device for IRF stacker |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101714932B (en) |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917287B (en) * | 2010-08-04 | 2012-03-14 | 杭州华三通信技术有限公司 | Fault processing method and fault detecting system of IRF (Intelligent Resilient Framework) |
CN102457402B (en) * | 2010-10-14 | 2014-07-16 | 杭州华三通信技术有限公司 | Method for detecting multiple active equipment conflict and apparatus thereof |
CN102209008A (en) * | 2011-05-18 | 2011-10-05 | 杭州华三通信技术有限公司 | Multi-activation detection method and device used for intelligent elastic framework |
CN102255751A (en) * | 2011-06-30 | 2011-11-23 | 杭州华三通信技术有限公司 | Stacking conflict resolution method and equipment |
CN102355366B (en) * | 2011-08-24 | 2014-12-10 | 杭州华三通信技术有限公司 | Member-stacking device and method for managing member-stacking device at split stacking moment |
CN102263678B (en) * | 2011-08-26 | 2014-04-02 | 杭州华三通信技术有限公司 | Method and device for predicting stack division |
CN102420716B (en) * | 2011-09-21 | 2014-12-24 | 福建星网锐捷网络有限公司 | Detection processing method and device for host computer confliction and network device |
CN102315975B (en) * | 2011-10-17 | 2014-03-19 | 杭州华三通信技术有限公司 | Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof |
CN102404172A (en) * | 2011-12-21 | 2012-04-04 | 迈普通信技术股份有限公司 | Multi-activity detection method and device |
CN102594610A (en) * | 2012-03-20 | 2012-07-18 | 福建星网锐捷网络有限公司 | Host election method after topology division as well as device and network equipment |
CN102970157B (en) * | 2012-10-31 | 2016-01-27 | 杭州华三通信技术有限公司 | Link failure processing method, IRF member device and data communication equipment |
CN106034038B (en) * | 2015-03-13 | 2019-04-12 | 新华三技术有限公司 | Prevent the method and apparatus stacked that more conflict |
CN106302205A (en) * | 2015-05-26 | 2017-01-04 | 杭州华三通信技术有限公司 | A kind of how main conflict processing method based on LLDP agreement and device |
CN105591952B (en) * | 2015-08-12 | 2018-12-11 | 新华三技术有限公司 | Flow switching method and apparatus applied to stacking splitting |
CN106657355B (en) * | 2016-12-29 | 2020-10-16 | 北京华为数字技术有限公司 | Cluster management method and device |
CN108337159B (en) * | 2018-01-31 | 2021-05-28 | 新华三技术有限公司 | Port operation control method and device |
CN109005111B (en) * | 2018-08-24 | 2021-07-23 | 新华三技术有限公司 | IRF splitting and merging method and device |
CN109547368B (en) * | 2018-11-19 | 2021-05-18 | 锐捷网络股份有限公司 | Data center-based de-stacking adaptation method and device |
CN111343040B (en) * | 2020-01-17 | 2022-12-16 | 新华三信息安全技术有限公司 | Port expander stacking and splitting detection method and device for expansion network bridge |
CN113938405B (en) * | 2020-07-10 | 2023-03-28 | 北京华为数字技术有限公司 | Data processing method and device |
CN112104712B (en) * | 2020-08-31 | 2022-08-30 | 新华三技术有限公司 | Stacking system member equipment and remote management method thereof |
CN113438105B (en) * | 2021-06-21 | 2022-07-29 | 新华三技术有限公司 | Method, device and equipment for assisting multi-IRF (inter-range radio frequency) splitting detection by MAD (multi-object detection) |
-
2009
- 2009-12-03 CN CN2009102503038A patent/CN101714932B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101714932A (en) | 2010-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101714932B (en) | MAD testing method and device for IRF stacker | |
US8135832B2 (en) | Method, system and apparatus for detecting multiple active devices in stack | |
CN102315975B (en) | Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof | |
CN102185718B (en) | System upgrading method and device | |
US9391877B2 (en) | System and method for reducing information loss in an aggregated information handling system | |
US10764119B2 (en) | Link handover method for service in storage system, and storage device | |
CN101478435B (en) | Topology collecting method for stacking system and dual control board equipment | |
CN102347867B (en) | Processing method and equipment for stacking splitting detection | |
CN102413046B (en) | Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment | |
CN101674208B (en) | LACP MAD detection method and device thereof | |
CN101110776B (en) | Backup method, backup device and backup system for data business | |
CN104104570A (en) | Aggregation processing method in IRF (Intelligent Resilient Framework) system and device | |
CN103166811A (en) | Multi-active detection (MAD) detection method and device | |
CN101610182A (en) | Multi-primary apparatus conflict detection method and stack member apparatus in piling up | |
CN101764751A (en) | Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN | |
CN101924699B (en) | Message forwarding method, system and provider edge equipment | |
US10666554B2 (en) | Inter-chassis link failure management system | |
CN102761479A (en) | Method for selecting link and device therefore | |
CN104660449A (en) | Method and equipment for preventing generation of multiple masters through IRF (intelligent resilient framework) splitting | |
CN102754390A (en) | Method, network device and system for ethernet ring protection switching | |
CN101588299A (en) | The veneer of the message forwarding method of distributed apparatus and distributed apparatus and this equipment | |
CN108737274B (en) | Message forwarding method and device | |
CN102984739A (en) | Breakdown information processing method and processing device | |
CN104579809B (en) | The detection method and equipment of a kind of stacking splitting | |
US20230142790A1 (en) | Loop detection method and loop break method for mesh network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120104 Termination date: 20191203 |