CN106534399B - The detection method and device of VSM division - Google Patents
The detection method and device of VSM division Download PDFInfo
- Publication number
- CN106534399B CN106534399B CN201611041377.7A CN201611041377A CN106534399B CN 106534399 B CN106534399 B CN 106534399B CN 201611041377 A CN201611041377 A CN 201611041377A CN 106534399 B CN106534399 B CN 106534399B
- Authority
- CN
- China
- Prior art keywords
- vsm
- member device
- information
- instance
- division
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
Abstract
The application provides the detection method and device of a kind of VSM division, include: that the network equipment being connected with VSM instance receives the notification packet that the VSM member device in the VSM instance is sent, the address information and Role Information of the VSM member device are carried in the notification packet;The address information and Role Information of VSM member device described in the VSM information table of local are updated based on the notification packet;Being detected based on the VSM information table whether there is address conflict between main member device;When there are when address conflict, determine that VSM division occurs between the main member device.Technical scheme can detect that the VSM is divided when the events such as cascade port failure, which occur, causes VSM to divide in time, and VSM member device can be notified to alert VSM division, so that administrator is handled in time, maintenance VSM instance is stablized.
Description
Technical field
This application involves field of communication technology more particularly to a kind of VSM detection method divided and devices.
Background technique
VSM (Virtual Switch Matrix, virtual switch matrix) is a kind of the more network equipments to be invented one
The network equipment virtualization technology of the network equipment.In a VSM instance, VSM member device includes main member device (Master
Equipment) and it is standby member device (Slave equipment), main member device can manage the VSM instance belonging to it, and standby member device can be made
It is run for the alternate device of main member device.Grade on line can be used to be attached between two VSM member devices, when grade on line is disconnected
It splits or when the cascade port at grade on line both ends breaks down, communication disruption will occur between the two VSM member devices, by this
Kind situation is known as that VSM division occurs.
After VSM division occurs, it is based on VSM role's election strategy, the VSM member device at grade on line both ends can be belonging respectively to
Two VSM instances.However the configurations such as the MAC Address of the two VSM instances, IP address may be identical, therefore will cause MAC
Address or IP address conflict cause network communication abnormal.
Summary of the invention
In view of this, the application provides the detection method and device of a kind of VSM division, to solve not examining in the related technology
The problem of measuring VSM division.
Specifically, the application is achieved by the following technical solution:
In a first aspect, the application provides a kind of detection method of VSM division, the method is applied to and virtual switch matrix
The connected network equipment of VSM instance, comprising:
The notification packet that the VSM member device in the VSM instance is sent is received, is carried in the notification packet
State the address information and Role Information of VSM member device;
Address information and the role of VSM member device described in the VSM information table of local are updated based on the notification packet
Information;
Being detected based on the VSM information table whether there is address conflict between main member device;
When there are when address conflict, determine that VSM division occurs between the main member device.
Second aspect, the application provide a kind of detection method of VSM division, and the method is applied to the VSM in VSM instance
Member device, comprising:
When detecting cascade port event of failure, triggering VSM role's election;
After determining role of this equipment in VSM instance, notice is sent to the network equipment being connected with the VSM instance
Message carries the address information and Role Information of this equipment in the notification packet, so that the network equipment is based on institute
Address information and Role Information that notification packet updates this equipment in the VSM information table of local are stated, and is being based on the VSM information
Table detects that there are when address conflict, determine that VSM division occurs between main member device.
The third aspect, the application provide a kind of detection device of VSM division, and described device is applied to and virtual switch matrix
The connected network equipment of VSM instance, comprising:
Receiving unit, for receiving the notification packet of the transmission of the VSM member device in the VSM instance, the notice
The address information and Role Information of the VSM member device are carried in message;
Updating unit, for updating the address of VSM member device described in the VSM information table of local based on the notification packet
Information and Role Information;
Detection unit whether there is address conflict for detecting based on the VSM information table between main member device;
First determination unit, for when there are when address conflict, determine that VSM division occurs between the main member device.
Fourth aspect, the application provide a kind of detection device of VSM division, and described device is applied to the VSM in VSM instance
Member device, comprising:
Trigger unit, for when detecting cascade port event of failure, triggering VSM role to be elected;
Notification unit, for after determining role of this equipment in VSM instance, to the net being connected with the VSM instance
Network equipment sends notification packet, the address information and Role Information of this equipment is carried in the notification packet, so that described
Address information and Role Information of the network equipment based on this equipment in notification packet update local VSM information table, and
Detect that there are when address conflict, determine that VSM division occurs between main member device based on the VSM information table.
Above-mentioned technical proposal is analyzed it is found that when the VSM member device in VSM instance detects cascade port event of failure,
VSM role's election can be triggered, and after determining role of this equipment in VSM instance, to the network being connected with the VSM instance
Equipment sends notification packet, and the address information and Role Information of the VSM member device are carried in the notification packet.It is described
The network equipment can update the address letter of the VSM member device in the VSM information table of local based on the notification packet received
Breath and Role Information, and detected based on the VSM information table and whether there is address conflict between main member device.When the net
Network equipment detects that there are when address conflict, can determine that VSM division occurs between main member device.Meanwhile the network is set
It is standby to be alerted for VSM division, VSM division occurs to alert user.Using technical side provided by the present application
Case is carried out the detection of VSM division by the network equipment being connected with VSM instance, can be led the events such as cascade port failure occur
It causes to detect that the VSM is divided in time when VSM division, and VSM member device can be notified to alert VSM division, so as to pipe
Reason person is handled in time, and maintenance VSM instance is stablized.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the detection method of VSM division shown in one exemplary embodiment of the application;
Fig. 2 is the flow chart of the detection method of another VSM division shown in one exemplary embodiment of the application;
Fig. 3 is a kind of VSM group-network construction figure;
Fig. 4 is the hardware knot of equipment where a kind of detection device of VSM division shown in one exemplary embodiment of the application
Composition;
Fig. 5 is the hardware of equipment where the detection device of another VSM division shown in one exemplary embodiment of the application
Structure chart;
Fig. 6 is a kind of block diagram of the detection device of VSM division shown in one exemplary embodiment of the application;
Fig. 7 is the block diagram of the detection device of another VSM division shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
Referring to FIG. 1, the flow chart of the detection method for a kind of VSM division shown in one exemplary embodiment of the application,
This method can be applied to the network equipment being connected with VSM instance, comprising the following steps:
Step 101: the notification packet that VSM member device in the VSM instance is sent is received, in the notification packet
Carry the address information and Role Information of the VSM member device.
In the present embodiment, the network equipment can receive the notice of the transmission of each VSM member device in VSM instance
Message (Advertisement message) carries the address information and role's letter of the VSM member device in the notification packet
Breath.Wherein, the address information can be the MAC Address or IP address of the VSM member device, and the Role Information can be should
Role of the VSM member device in its affiliated VSM instance.
It should be noted that the address information of each VSM member device is usually identical in the same VSM instance.
Step 102: the address information of VSM member device described in the VSM information table of local is updated based on the notification packet
And Role Information.
In the present embodiment, the network equipment can locally save VSM information table, can wrap in the VSM information table
Include the address information and Role Information of each VSM member device in the VSM instance being connected with this equipment.The network equipment is connecing
It, can be based on the VSM member device carried in the notification packet when receiving the notification packet that the VSM member device is sent
Address information and Role Information, update the address information of the VSM member device saved in the VSM information table of local and angle
Color information.
Step 103: being detected based on the VSM information table whether there is address conflict between main member device.
In the present embodiment, the network equipment can based between the main member device of local VSM information table detection whether
There are address conflict, i.e., whether the address information of different main member devices is identical, when detecting two or more main members
When the address information of equipment is identical, it can determine that there are address conflicts between main member device.Wherein, the address information can be with
For IP address or MAC Address.
Step 104: when there are when address conflict, determine that VSM division occurs between the main member device.
In the present embodiment, the testing result based on abovementioned steps 103, if there are addresses between the main member device
Conflict, then the network equipment, which can determine, occurs VSM division.
It should be noted that the network equipment after determining that VSM, which occurs, to be divided, can be carried out for VSM division
Alarm, such as: alarm log is generated, or sends alarm email etc. to specified mailbox, VSM division occurs to alert user.
With embodiment shown in FIG. 1 correspondingly, referring to FIG. 2, for the another kind shown in one exemplary embodiment of the application
The flow chart of the detection method of VSM division, this method can be applied to the VSM member device in VSM instance, including following step
It is rapid:
Step 201: when detecting cascade port event of failure, triggering VSM role's election.
In the present embodiment, the VSM member device can trigger VSM role when detecting cascade port event of failure
Election, to determine role of the VSM member device in VSM instance.Wherein, the cascade port event of failure may include: this
VSM member device detects that physical fault occurs in cascade port, or cascade thread breakage causes cascade port to enter closed state etc..
Step 202: after determining role of this equipment in VSM instance, to the network equipment being connected with the VSM instance
Notification packet is sent, the address information and Role Information of this equipment are carried in the notification packet, so that the network is set
The standby address information and Role Information that this equipment in the VSM information table of local is updated based on the notification packet, and it is being based on institute
It states VSM information table and detects that there are when address conflict, determine that VSM division occurs between main member device.
In the present embodiment, the VSM member device is electing the VSM for determining this equipment belonging to it by VSM role
After role in example, notification packet can be sent to the network equipment being connected with the VSM instance, is taken in the notification packet
Address information and Role Information with the VSM member device.The network equipment, can after receiving the notification packet
With address information and Role Information based on the VSM member device carried in the notification packet, local VSM information is updated
The address information and Role Information of the VSM member device saved in table.
It as seen from the above-described embodiment, can be with when the VSM member device in VSM instance detects cascade port event of failure
VSM role's election is triggered, and after determining role of this equipment in VSM instance, to the network equipment being connected with the VSM instance
Notification packet is sent, the address information and Role Information of the VSM member device are carried in the notification packet.The network
Equipment can be updated based on the notification packet that receives the address information of the VSM member device in the VSM information table of local with
And Role Information, and detected based on the VSM information table and whether there is address conflict between main member device.When the network is set
It is standby to detect that there are when address conflict, determine that VSM division occurs between main member device.Meanwhile the network equipment is also
It can be alerted for VSM division, VSM division occurs to alert user.Using technical solution provided by the present application, by
The network equipment being connected with VSM instance carries out the detection of VSM division, can lead to VSM the events such as cascade port failure occur
Detect that the VSM is divided when division in time, and VSM member device can be notified to alert VSM division, so as to administrator and
Shi Jinhang processing, maintenance VSM instance are stablized.
Based on Fig. 1 and embodiment shown in Fig. 2, the VSM member device is sent to the notification packet of the network equipment
In can also carry the VSM member device uplink member device mark, downlink member device identification and business interface letter
Breath, the network equipment be also based on the notification packet update the uplink of the VSM member device in the VSM information table of local at
Member's device identification, downlink member device identification and business interface information.Uplink member device mark can for the VSM at
The VSMID of the uplink member device of member's equipment, similar, the downlink member device identification can be the VSM member device
The VSM ID of downlink member equipment;What the business interface information can be connected for the VSM member device with the network equipment
The information of business interface, such as: business interface number etc..
The network equipment, can be according to VSM member device in local VSM information table after determining that VSM, which occurs, to be divided
Uplink member device mark and downlink member device identification, determine VSM instance belonging to the main member device of address conflict, may be used also
It is set with according to the business interface information of VSM member device in local VSM information table, counting all VSM members in the VSM instance
Standby coupled business interface quantity.
It should be noted that each VSM member device may have one or more business being connected with the network equipment to connect
Mouthful, the network equipment can judge whether coupled business interface is in normal work shape according to link working state
State.When counting the business interface quantity, the network equipment can only count the business interface in normal operating conditions.
In general, the service feature of the few VSM instance of the business interface quantity is relatively poor, to avoid address from rushing
It is prominent, and reduce VSM division influence caused by customer service, the network equipment can be few to the business interface quantity
VSM instance in each VSM member device send disabling message (Disable message), the VSM member device is receiving
When stating disabling message, other than it can be directed to the VSM division and be alerted, it can also close and be connected with the network equipment
Business interface.In addition, the network equipment can also be to each VSM member in the VSM instance more than the business interface quantity
Equipment, which is sent, reminds message (Notice message), and the VSM member device can also be directed to when receiving the prompting message
The VSM division is alerted, such as: alarm log is generated, or sends alarm email etc. to specified mailbox.Using such
Mode, user can learn after logging in the administration page of the network equipment or any VSM member device and occur VSM points
It splits.
In an alternative embodiment, the VSM member device in the few VSM instance of the business interface quantity can be with
For the business interface setting division mark being connected with the network equipment, the division mark can be corresponding with VSM division.
It is subsequent, it, can be in case of member when the VSM member device detects recovery event corresponding with the cascade port event of failure
The role of equipment is added in the VSM instance more than the business interface quantity being connected after VSM division with the network equipment, described
Guarantee the continuous of customer service without re-starting VSM role's election in VSM instance to reduce the influence to the VSM instance
Property.Wherein, the recovery event may include: that the VSM member device detects that cascade port restores normal or grade on line is restored
Cascade port is caused to reenter open state etc..Meanwhile the VSM member device can also reopen and be provided with the division
The business interface of mark.The VSM member device can connect after reopening the business interface again through the business
Mouth sends notification packet to the network equipment.The network equipment, can be based on described after receiving the notification packet
Notification packet updates local VSM information table, may thereby determine that the VSM division is recovered.
Referring to FIG. 3, being a kind of VSM group-network construction figure.Wherein, network equipment A, B, C forms a VSM instance, this three
The platform network equipment is the VSM member device in the VSM instance, and network equipment D is the network equipment being connected with the VSM instance.
It can be connected respectively by grade on line between the network equipment A, B and between the network equipment B, C, the interface at grade on line both ends is grade
Join mouth, and network equipment D can be connected between A, B, C by cable.Based on VSM group-network construction figure shown in Fig. 3, to above-mentioned
The detection method of VSM division is described in detail:
Assuming that the VSM ID of network equipment A is 0, the VSM ID of network equipment B is 1, and the VSM ID of network equipment C is 2.?
In the VSM instance can according to the size of VSM ID carry out VSM role's election, by VSM role elect, network equipment A due to
Its VSM ID is minimum, and the main member device that can be elected as in the VSM instance, network equipment B and network equipment C can be chosen
It lifts as the standby member device in the VSM instance.
When the VSM instance runs well, member device A, B, C in VSM instance can periodically be set to network
Standby D sends notification packet.Wherein, the address letter of the member device can be carried in the notification packet that each member device is sent
Breath, Role Information, uplink member device mark, downlink member device identification and business interface information.In addition to this, described logical
Accuse the VSM ID that each member device can also be carried in message.
Network equipment D can safeguard local VSM information based on the notification packet after receiving the notification packet
Table please refers to the following table 1, when running well for the VSM instance, a kind of example for the local VSM information table that network equipment D is saved:
Table 1
Uplink member device is identified as the VSM ID of the uplink member device of each VSM member device, downlink member equipment mark
The VSM ID, null for knowing the downlink member equipment for each VSM member device indicate that the VSM member device is not connected with uplink member and sets
Standby or downlink member equipment.It is not connected with uplink member device in conjunction with Fig. 1, member device A, downlink member equipment is member device
B;The uplink member device of member device B is member device A, and downlink member equipment is member device C;The uplink of member device C
Member device is member device B, but is not connected with downlink member equipment.Therefore the uplink member device of member device A is identified as
Null, downlink member device identification are 1;The uplink member device of member device B is identified as 1, and downlink member device identification is 2;
The uplink member device of member device C is identified as 1, and downlink member device identification is null.
If the cascade thread breakage between member device A and member device B, the cascade port at this grade of on line both ends all can be into
Enter closed state, member device A and member device B may detect that cascade port event of failure, and trigger VSM role's election.
It is elected by VSM role, member device A can determine that it belongs to a VSM instance, referred to as VSM instance 1, and in VSM instance 1
Middle member device A is main member device;Member device B and member device C can determine that it belongs to another VSM instance, referred to as
VSM instance 2, and member device B is main member device in VSM instance 2, member device C is standby member device.In member device
A, B, C can also send notification packet to network equipment D after determining its role in VSM instance.
Network equipment D, in conjunction with table 1, can be based on the notification packet for local VSM after receiving the notification packet
Information table is updated to shown in the following table 2:
Table 2
Based on VSM information table shown in table 2, network equipment D can detecte the address information phase to two main member devices
Together, i.e., there are address conflicts between main member device, therefore network equipment D can be determined and VSM division is occurred.The network equipment simultaneously
D can also and be alerted for VSM division, and VSM division occurs to alert user.
According to the uplink member device mark and downlink member device identification in VSM information table shown in table 2, the network equipment
D can determine that member device A is both not connected with uplink member device, also be not connected with downlink member equipment, and then can determine member
This equipment of equipment A forms alone a VSM instance, i.e. VSM instance 1.Member device B is not connected with uplink member device,
Downlink member equipment is member device C, and the uplink member device of member device C is member device B, but not connected downlink member is set
It is standby, therefore network equipment D can determine that member device B and member device C form another VSM instance, i.e. VSM instance 2.It is subsequent
Network equipment D can the business interface information in the VSM information table according to shown in table 2 count institute in the two VSM instances respectively
There is the business interface quantity that VSM member device is coupled.Assuming that in this example interface 11,21,31 all in normal operating conditions,
It is 1 that then network equipment D, which can count on the coupled business interface quantity of VSM instance 1, the coupled business of VSM instance 2
Interface quantity is 2.
Due to business interface negligible amounts in VSM instance 1, business interface quantity is more in VSM instance 2, therefore network is set
Standby D can send disabling message to each VSM member device in VSM instance 1, i.e., send disabling message to member device A;To
Each VSM member device in VSM instance 2, which is sent, reminds message, i.e., sends to member device B and member device C and remind message.
Member device B and member device C can be accused after receiving the prompting message for VSM division
It is alert, VSM division occurs to alert user.
Member device A, can be with down interface 11 after receiving the disabling message, i.e., it is connected with network equipment D
Business interface, to avoid address conflict.Meanwhile member device A can also be alerted for VSM division, to alert use
VSM division occurs for family.
Member device A can also be the setting division mark of interface 11, and division mark can be corresponding with this VSM division.
The subsequent recovery event that the corresponding cascade port event of failure is detected as member device A and member device B, i.e. member device A
Grade on line between member device B is restored, and when the cascade port at this grade of on line both ends enters open state, member device A can be with
In case the role of member device is added in VSM instance 2, without re-starting VSM role's election in VSM instance 2, to guarantee to use
The continuity of family business.Meanwhile member device A can also reopen the business interface for being provided with the division mark, that is, connect
Mouth 11, the VSM instance for forming member device A, B, C restore to work normally.
After the VSM instance restores to run well, member device A, B, C can send again to network equipment D and notice
Message.Network equipment D, in conjunction with table 2, can be believed local VSM based on the notification packet after receiving the notification packet
Breath table is updated to shown in the following table 3:
Table 3
Based on VSM information table shown in table 3, network equipment D can determine that the VSM division is recovered.
Corresponding with the embodiment of detection method of aforementioned VSM division, present invention also provides the detection devices of VSM division
Embodiment.
The embodiment of the detection device of the application VSM division can be applied respectively in the network equipment being connected with VSM instance
On the VSM member device in VSM instance.Installation practice can be by software realization, can also be by hardware or soft or hard
The mode that part combines is realized.It taking software implementation as an example, is the place by equipment where it as the device on a logical meaning
Computer program instructions corresponding in nonvolatile memory are read into memory what operation was formed by reason device.From hardware view
Speech, as shown in figure 4, a kind of hardware knot for the network equipment being connected where the detection device divided for the application VSM with VSM instance
Composition, as shown in figure 5, for a kind of hardware of the VSM member device where the detection device of the application VSM division in VSM instance
Structure chart.Other than Fig. 4 and processor shown in fig. 5, memory, network interface and nonvolatile memory, in embodiment
Equipment where device can also include other hardware generally according to the actual functional capability of the VSM detection divided, no longer superfluous to this
It states.
Referring to FIG. 6, the block diagram of the detection device for a kind of VSM division shown in one exemplary embodiment of the application, it should
The detection device 600 of VSM division can be applied in the network equipment shown in Fig. 4 being connected with VSM instance, comprising:
Receiving unit 601 is described logical for receiving the notification packet of the transmission of the VSM member device in the VSM instance
Accuse the address information and Role Information that the VSM member device is carried in message;
Updating unit 602, for updating VSM member device described in the VSM information table of local based on the notification packet
Address information and Role Information;
Detection unit 603 whether there is address conflict for detecting based on the VSM information table between main member device;
First determination unit 604, for when there are when address conflict, determine that VSM, which occurs, to be divided between the main member device
It splits.
In an alternative embodiment, the uplink of the VSM member device can also be carried in the notification packet
Member device mark, downlink member device identification and business interface information;
The updating unit 602 can be also used for updating described in the local VSM information table based on the notification packet
Uplink member device mark, downlink member device identification and the business interface information of VSM member device;
Described device 600 can also include:
Second determination unit 605, for being set according to VSM member in the VSM information table after determining that VSM, which occurs, to be divided
Standby uplink member device mark and downlink member device identification, determine VSM instance belonging to the main member device of address conflict;
Statistic unit 606 counts address for the business interface information according to VSM member device in the VSM information table
The business interface quantity that all VSM member devices are connected with this equipment in VSM instance belonging to the main member device of conflict;
First transmission unit 607, for each VSM member device hair into the few VSM instance of the business interface quantity
Disabling message is sent, so that the VSM member device closes the business interface being connected with this equipment, and is split into for the VSM
Row alarm;
Second transmission unit 608, for each VSM member device hair into the VSM instance more than the business interface quantity
Prompting message is sent, so that the VSM member device is alerted for VSM division.
Referring to FIG. 7, the block diagram of the detection device for another VSM division shown in one exemplary embodiment of the application,
The detection device 700 of VSM division can be applied in the VSM member device in VSM instance shown in fig. 5, comprising:
Trigger unit 701, for when detecting cascade port event of failure, triggering VSM role to be elected;
Notification unit 702, for after determining role of this equipment in VSM instance, to what is be connected with the VSM instance
The network equipment sends notification packet, the address information and Role Information of this equipment is carried in the notification packet, so that institute
Address information and Role Information that the network equipment updates this equipment in the VSM information table of local based on the notification packet are stated, and
Detecting that there are when address conflict, determine that VSM division occurs between main member device based on the VSM information table.
In an alternative embodiment, the uplink member device mark of this equipment can also be carried in the notification packet
Knowledge, downlink member device identification and business interface information;
Described device 700 can also include:
Forbidden cell 703, the disabling message sent for receiving the network equipment, the disabling message is by the network
Equipment is after determining VSM division occurs, according to uplink member device mark, the downlink member device identification and described
Transmission when the business interface quantity that business interface information determines that VSM instance belonging to this equipment is connected with the network equipment is few;
Closing unit 704 is split into for closing the business interface being connected with the network equipment, and for the VSM
Row alarm.
In another alternative embodiment, described device 700 can also include:
Setting unit 705, for the business interface setting division mark to be connected with the network equipment;
Opening unit 706, for when detecting recovery event corresponding with the cascade port event of failure, in case member
The role of equipment is added in the VSM instance more than the business interface quantity being connected after VSM division with the network equipment, and again
Open the business interface for being provided with the division mark;
The notification unit 702 can be also used for sending notification packet to the network equipment again, so that the network
Equipment is based on the notification packet and updates local VSM information table.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (6)
1. a kind of detection method of VSM division, which is characterized in that the method is applied to and virtual switch matrix V SM example phase
The network equipment even, comprising:
The notification packet that the VSM member device in the VSM instance is sent is received, is carried in the notification packet described
The address information and Role Information of VSM member device, the Role Information indicate the VSM member device in its affiliated VSM
Role in example;
The address information and Role Information of VSM member device described in the VSM information table of local are updated based on the notification packet;
Whether the address information for detecting different main member devices based on the VSM information table is identical;
When the address information of different main member devices is identical, determines and VSM division occurs;
Wherein, uplink member device mark, the downlink member equipment of the VSM member device are also carried in the notification packet
Mark and business interface information;
The method also includes:
Identified based on the uplink member device that the notification packet updates VSM member device described in the local VSM information table,
Downlink member device identification and business interface information;
Determine occur VSM division after, according in the VSM information table VSM member device uplink member device mark and under
Row member device mark, determines VSM instance belonging to the identical main member device of address information;
According to the business interface information of VSM member device in the VSM information table, the identical main member device of address information is counted
The business interface quantity that all VSM member devices are connected with this equipment in affiliated VSM instance;
Each VSM member device in the VSM instance few to the business interface quantity sends disabling message so that the VSM at
Member's equipment closes the business interface being connected with this equipment, and is alerted for VSM division;
Each VSM member device into the VSM instance more than the business interface quantity, which is sent, reminds message so that the VSM at
Member's equipment is alerted for VSM division.
2. a kind of detection method of VSM division, which is characterized in that the method is applied to the VSM member device in VSM instance,
Include:
When detecting cascade port event of failure, triggering VSM role's election;
After determining role of this equipment in VSM instance, notice report is sent to the network equipment being connected with the VSM instance
Text, carries the address information and Role Information of this equipment in the notification packet, the Role Information indicate the VSM at
Role of member's equipment in its affiliated VSM instance, so that the network equipment is based on the notification packet and updates local VSM information
The address information and Role Information of this equipment in table, and different main member devices are being detected based on the VSM information table
When address information is identical, determines and VSM division occurs;
Wherein, also carried in the notification packet this equipment uplink member device mark, downlink member device identification and
Business interface information;
The method also includes:
The disabling message that the network equipment is sent is received, the disabling message is determining that VSM, which occurs, to be divided by the network equipment
After splitting, this is determined according to uplink member device mark, the downlink member device identification and the business interface information
The business interface quantity that VSM instance belonging to equipment is connected with the network equipment is sent when few;
The business interface being connected with the network equipment is closed, and is alerted for VSM division.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
For the business interface setting division mark being connected with the network equipment;
When detecting recovery event corresponding with the cascade port event of failure, in case the role of member device is added to VSM
In the VSM instance more than business interface quantity being connected after division with the network equipment, and reopens and be provided with the division
The business interface of mark;
Again notification packet is sent to the network equipment, so that the network equipment is based on the notification packet and updates locally
VSM information table.
4. a kind of detection device of VSM division, which is characterized in that described device is applied to the network equipment being connected with VSM instance,
Include:
Receiving unit, for receiving the notification packet of the transmission of the VSM member device in the VSM instance, the notification packet
In carry the address information and Role Information of the VSM member device, the Role Information indicates the VSM member device
Role in its affiliated VSM instance;
Updating unit, for updating the address information of VSM member device described in the VSM information table of local based on the notification packet
And Role Information;
Whether detection unit, the address information for detecting different main member devices based on the VSM information table are identical;
For determining when the address information of different main member devices is identical VSM division occurs for the first determination unit;
Wherein, uplink member device mark, the downlink member equipment of the VSM member device are also carried in the notification packet
Mark and business interface information;
The updating unit is also used to update VSM member device described in the local VSM information table based on the notification packet
Uplink member device mark, downlink member device identification and business interface information;
Described device further include:
Second determination unit is used for after determining that VSM, which occurs, to be divided, according to the uplink of VSM member device in the VSM information table
Member device mark and downlink member device identification, determine VSM instance belonging to the identical main member device of address information;
Statistic unit counts address information phase for the business interface information according to VSM member device in the VSM information table
The business interface quantity that all VSM member devices are connected with this equipment in VSM instance belonging to same main member device;
First transmission unit sends disabling report for each VSM member device into the few VSM instance of the business interface quantity
Text so that the VSM member device closes the business interface being connected with this equipment, and is alerted for VSM division;
Second transmission unit sends for each VSM member device into the VSM instance more than the business interface quantity and reminds report
Text, so that the VSM member device is alerted for VSM division.
5. a kind of detection device of VSM division, which is characterized in that described device is applied to the VSM member device in VSM instance,
Include:
Trigger unit, for when detecting cascade port event of failure, triggering VSM role to be elected;
Notification unit, for being set to the network being connected with the VSM instance after determining role of this equipment in VSM instance
Preparation send notification packet, and the address information and Role Information of this equipment, the Role Information are carried in the notification packet
Role of the VSM member device in its affiliated VSM instance is indicated, so that the network equipment is based on the notification packet more
The address information and Role Information of this equipment in the VSM information table of new local, and difference is being detected based on the VSM information table
When the address information of main member device is identical, determines and VSM division occurs;
Wherein, also carried in the notification packet this equipment uplink member device mark, downlink member device identification and
Business interface information;
Described device further include:
Forbidden cell, the disabling message sent for receiving the network equipment, the disabling message are existed by the network equipment
It determines after VSM division occurs, is connect according to uplink member device mark, the downlink member device identification and the business
The business interface quantity that message breath determines that VSM instance belonging to this equipment is connected with the network equipment is sent when few;
Closing unit is alerted for closing the business interface being connected with the network equipment, and for VSM division.
6. device according to claim 5, which is characterized in that described device further include:
Setting unit, for the business interface setting division mark to be connected with the network equipment;
Opening unit, for when detecting recovery event corresponding with the cascade port event of failure, in case member device
Role is added in the VSM instance more than the business interface quantity being connected after VSM division with the network equipment, and reopens and set
It is equipped with the business interface of the division mark;
The notification unit is also used to send notification packet to the network equipment again, so that the network equipment is based on described
Notification packet updates local VSM information table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041377.7A CN106534399B (en) | 2016-11-22 | 2016-11-22 | The detection method and device of VSM division |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041377.7A CN106534399B (en) | 2016-11-22 | 2016-11-22 | The detection method and device of VSM division |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534399A CN106534399A (en) | 2017-03-22 |
CN106534399B true CN106534399B (en) | 2019-08-06 |
Family
ID=58356417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611041377.7A Active CN106534399B (en) | 2016-11-22 | 2016-11-22 | The detection method and device of VSM division |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534399B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107181832A (en) * | 2017-05-26 | 2017-09-19 | 杭州迪普科技股份有限公司 | A kind of Router ID collision detection methods and device |
CN111585838B (en) * | 2020-04-29 | 2021-12-24 | 杭州迪普科技股份有限公司 | Splitting detection method and device based on VSM system |
CN115348156A (en) * | 2022-07-01 | 2022-11-15 | 超聚变数字技术有限公司 | Method, equipment and storage medium for processing double-master fault |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231682A (en) * | 2011-07-25 | 2011-11-02 | 杭州华三通信技术有限公司 | Stacking conflict processing method and equipment |
CN102347867A (en) * | 2011-11-14 | 2012-02-08 | 杭州华三通信技术有限公司 | Processing method and equipment for stacking splitting detection |
CN102355366A (en) * | 2011-08-24 | 2012-02-15 | 杭州华三通信技术有限公司 | Member-stacking device and method for managing member-stacking device at split stacking moment |
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
CN104660449A (en) * | 2015-02-13 | 2015-05-27 | 杭州华三通信技术有限公司 | Method and equipment for preventing generation of multiple masters through IRF (intelligent resilient framework) splitting |
-
2016
- 2016-11-22 CN CN201611041377.7A patent/CN106534399B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
CN102231682A (en) * | 2011-07-25 | 2011-11-02 | 杭州华三通信技术有限公司 | Stacking conflict processing method and equipment |
CN102355366A (en) * | 2011-08-24 | 2012-02-15 | 杭州华三通信技术有限公司 | Member-stacking device and method for managing member-stacking device at split stacking moment |
CN102347867A (en) * | 2011-11-14 | 2012-02-08 | 杭州华三通信技术有限公司 | Processing method and equipment for stacking splitting detection |
CN104660449A (en) * | 2015-02-13 | 2015-05-27 | 杭州华三通信技术有限公司 | Method and equipment for preventing generation of multiple masters through IRF (intelligent resilient framework) splitting |
Also Published As
Publication number | Publication date |
---|---|
CN106534399A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104980349B (en) | Relay system and exchange apparatus | |
US9094293B2 (en) | Computer network method and device using link aggregation | |
US7590138B2 (en) | System for defining an alternate channel routing mechanism in a messaging middleware environment | |
US9197493B2 (en) | Protection systems and methods for handling multiple faults and isolated nodes in interconnected ring networks | |
CN106534399B (en) | The detection method and device of VSM division | |
CN105049348B (en) | Relay system and exchange apparatus | |
CN104113428B (en) | A kind of equipment management device and method | |
CN106789264B (en) | A kind of method and apparatus that link aggregation group channel is switched fast | |
US20140219289A1 (en) | Handling stacking link failures in mdc device | |
CN106533736A (en) | Network device reboot method and apparatus | |
US10735251B2 (en) | Deadlock avoidance using modified ethernet connectivity fault management signaling | |
CN105357114A (en) | Distributed network equipment | |
EP3264634B1 (en) | Automatically detecting an error in a communication and automatically determining a source of the error | |
WO2017000536A1 (en) | Bfd method and apparatus | |
CN101237343A (en) | Method for quick failure switching and quick switching system | |
WO2016091094A1 (en) | Optical transport network protection switching method and device | |
US8676930B2 (en) | System and method for multiport automation | |
CN105959129B (en) | The method and device of monitoring network failure | |
CN105959128A (en) | Fault processing method and device and network device | |
CN105472055B (en) | port processing method and device | |
WO2015180265A1 (en) | Multi-link protection switching method and device | |
CN109257268A (en) | A kind of network attack test system and method across vlan | |
US7843829B1 (en) | Detection and recovery from control plane congestion and faults | |
CN114205263B (en) | Communication method, system and storage medium for Ether CAT network | |
US10516625B2 (en) | Network entities on ring networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210616 Address after: 310051 05, room A, 11 floor, Chung Cai mansion, 68 Tong Xing Road, Binjiang District, Hangzhou, Zhejiang. Patentee after: Hangzhou Dip Information Technology Co.,Ltd. Address before: 310051, 6 floor, Chung Cai mansion, 68 Tong he road, Binjiang District, Hangzhou, Zhejiang. Patentee before: Hangzhou DPtech Technologies Co.,Ltd. |