CN106878190A - Automatic stacking method and device - Google Patents

Automatic stacking method and device Download PDF

Info

Publication number
CN106878190A
CN106878190A CN201611257924.5A CN201611257924A CN106878190A CN 106878190 A CN106878190 A CN 106878190A CN 201611257924 A CN201611257924 A CN 201611257924A CN 106878190 A CN106878190 A CN 106878190A
Authority
CN
China
Prior art keywords
equipment
neighbor device
pile system
sub
neighbor
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.)
Granted
Application number
CN201611257924.5A
Other languages
Chinese (zh)
Other versions
CN106878190B (en
Inventor
彭剑远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201611257924.5A priority Critical patent/CN106878190B/en
Publication of CN106878190A publication Critical patent/CN106878190A/en
Application granted granted Critical
Publication of CN106878190B publication Critical patent/CN106878190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

This application provides automatic stacking method and device.The application is applied to the network communications technology, in the application, local stacking opening is added to said polymeric group by dynamic, and the frame number of each switching equipment heap poststack of dynamically distributes, can realize that same type of cassete exchange equipment can not need any configuration to realize that plug and play can be stacked, the defects such as cumbersome, the easy error of the caused configuration such as the existing aggregation group being pre-configured with belonging to stacking opening, equipment frame number are avoided completely.

Description

Automatic stacking method and device
Technical field
The application is related to the network communications technology, more particularly to automatic stacking method and device.
Background technology
In a kind of current pile system, control bridge (CB:Controlling Bridge) stack between equipment and constitute one Individual sub- pile system, ports-Extending bridge (PE:Port Extender) stack between equipment and constitute a sub- pile system, two Connected by cascaded link between sub- pile system, constitute pile system.In application scheme, either heap between CB equipment It is folded, or stacked between PE equipment, aggregation group for being required for being pre-configured with belonging to frame number, stacking opening etc., configure it is very cumbersome and Easily error.
The content of the invention
This application provides automatic stacking method and device, to realize the automatic heap between same type of distinct device It is folded.
The technical scheme that the application is provided includes:
A kind of automatic stacking method, the method is applied to switching equipment, and the method includes:
The first link layer discovery message that first neighbor device sends is received by local first stacking opening;
When locally exist aggregation group corresponding with the MAC Address of the first neighbor device when, by the first stacking opening add to The corresponding aggregation group of the MAC Address, otherwise, the corresponding aggregation group of the newly-built MAC Address adds to new first stacking opening The aggregation group built;
When the device type of this equipment finds the device type phase of the first neighbor device that message is carried with the first link layer Meanwhile, it is this equipment and the first neighbor device assignment block number that this equipment is consulted with dynamic with the first neighbor device, and is performed automatically The stacking of this equipment and the first neighbor device.
A kind of automatic stacking device, the device is applied to switching equipment, including:
Transmitting element, for receiving the first link layer discovery report that the first neighbor device sends by local first stacking opening Text;
Aggregation group allocation unit, for when locally there is aggregation group corresponding with the MAC Address of the first neighbor device, inciting somebody to action First stacking opening is added to aggregation group corresponding with the MAC Address, and otherwise, the corresponding aggregation group of the newly-built MAC Address will First stacking opening is added to newly-built aggregation group;
Stackable unit, the first neighbor device that message is carried is found for the device type when this equipment and the first link layer Device type it is identical when, it is this equipment and the first neighbor device assignment block that this equipment and the first neighbor device are consulted with dynamic Number, and the stacking of this equipment and the first neighbor device is performed automatically.
As can be seen from the above technical solutions, in the present invention, local stacking opening is added to said polymeric group by dynamic, Avoid existing by being pre-configured with the defects such as cumbersome, the easy error of configuration that the aggregation group belonging to stacking opening is caused.Also, it is each to hand over The frame dynamically distributes of exchange device heap poststack, it is to avoid existing by being pre-configured with cumbersome, easy error of configuration that frame number is caused etc. Defect.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
The method flow diagram that Fig. 1 is provided for the present invention;
The stacking networking system construction drawing that Fig. 2 is provided for the present invention;
Fig. 3 applies networking schematic diagram for the embodiment 1 that the present invention is provided;
Fig. 4 applies networking schematic diagram for the embodiment 2 that the present invention is provided;
Fig. 5 applies networking schematic diagram for the embodiment 3 that the present invention is provided;
The apparatus structure schematic diagram that Fig. 6 is provided for the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.
Referring to Fig. 1, the method flow diagram that Fig. 1 is provided for the present invention.The flow is applied to switching equipment.The class of switching equipment Type can be PE, and correspondingly, type can abbreviation PE equipment for the switching equipment of PE.Similarly, the type of switching equipment is alternatively CB, Correspondingly, type for the switching equipment of CB can abbreviation CB equipment.
As shown in figure 1, the flow may include following steps:
Step 101, the first link layer discovery message that the first neighbor device sends is received by local first stacking opening.
Here the first stacking opening is to refer to a stacking opening on switching equipment, is not intended to limit, and it is for just In the name that description is carried out.First neighbor device is the neighbor device of the first stacking opening connection in this equipment.
In the present invention, switching equipment can be sent in local first stacking opening UP by the first stacking opening cycle of UP Link layer finds message, meanwhile, also the link layer discovery report that the first neighbor device sends can be received by first stacking opening of UP Text.Used as one embodiment, link layer of the present invention finds that message can be LLDP messages.
It should be noted that first link layer finds that message refers to the transmission of the first neighbor device in above-mentioned steps 101 Any link layer finds message, is not intended to limit, and it is the name carried out for ease of description.
Step 102, when locally there is aggregation group corresponding with the MAC Address of the first neighbor device, by the first stacking opening Add to aggregation group corresponding with the MAC Address, otherwise, the corresponding aggregation group of the newly-built MAC Address, by the first stacking opening Add to newly-built aggregation group.
By step 102, can realize that switching equipment is dynamically added to said polymeric group local stacking opening, it is to avoid existing By being pre-configured with the defects such as cumbersome, the easy error of configuration that the aggregation group belonging to stacking opening is caused.
Step 103, when the device type and the first link layer of this equipment find setting for the first neighbor device that message is carried When standby type is identical, it is this equipment and the first neighbor device assignment block number that this equipment and the first neighbor device are consulted with dynamic, and Automatically the stacking of this equipment and the first neighbor device is performed.
By step 103, the frame dynamically distributes of same type of switching equipment heap poststack can be realized, it is to avoid existing logical Cross and be pre-configured with the defects such as cumbersome, the easy error of configuration that frame number is caused.
So far, flow shown in Fig. 1 is completed.
Described according to flow shown in Fig. 1, then the automatic laterally stacked sub- pile system of composition between CB equipment, between PE equipment The automatic laterally stacked sub- pile system of composition.It should be noted that the son stacking of automatic laterally stacked composition is between CB equipment System is different from the sub- pile system of automatic laterally stacked composition between PE equipment.Separately, why will be automatic horizontal between CB equipment Stack the system for constituting and be referred to as sub- pile system, the system of automatic laterally stacked composition between PE equipment is referred to as sub- stacking system System, the name that it is mainly and overall pile system is distinguished and carried out, and non-specific are limited.The exemplified CB equipment of Fig. 2 Between automatic laterally stacked composition sub- pile system and the sub- pile system of automatic laterally stacked composition between PE equipment, its In, the son of automatic laterally stacked composition is stacked between the sub- pile system and PE equipment of automatic laterally stacked composition between CB equipment System is connected, and ultimately forms pile system as shown in Figure 2.
The sub- pile system of composition how is stacked between the PE and PE of citing description below:
Embodiment 1:
Referring to Fig. 3, Fig. 3 applies networking diagram for the embodiment 1 that the present invention is provided.In figure 3, there are three types is PE's Cassete exchange equipment, respectively:PE equipment 3_1, PE equipment 3_2, PE equipment 3_3.The stacking opening Port3_0 of PE equipment 3_1 with The stacking opening Port3_1 connections of PE equipment 3_2, the stacking opening of the stacking opening Port3_2 and PE equipment 3_3 of PE equipment 3_2 Port3_3 is connected.
In figure 3, PE equipment 3_1, PE equipment 3_2, PE equipment 3_3 is not belonging to any sub- pile system.
In stacking opening Port3_0UP, the first LLDP cycles after Port3_0UP pass through stacking opening to PE equipment 3_1 Port3_0 sends LLDP messages.LLDP messages carry device type, the MAC Address of PE equipment 3_1 of PE equipment 3_1.PE equipment 3_2, PE equipment 3_3 are similar to, and repeat no more.
PE equipment 3_1 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_0, and whether inspection locally deposits In the corresponding aggregation group of MAC Address of PE equipment 3_2, the local corresponding polymerization of MAC Address in the absence of PE equipment 3_2 is found Group, then the corresponding aggregation group 3_2 of MAC Address of newly-built PE equipment 3_2, newly-built aggregation group 3_ is added by stacking opening Port3_0 0.PE equipment 3_1 determines the LLDP reports sent from PE equipment 3_2 that PE equipment 3_2 has found the device type of this equipment and receives The device type that text is carried is identical, it is determined that PE equipment 3_2 is the neighbor device that this equipment is newly increased, then postpone T seconds election contest master Equipment.
PE equipment 3_2 receives the LLDP messages that PE equipment 3_1 sends by stacking opening Port3_1, and whether inspection locally deposits In the corresponding aggregation group of MAC Address of PE equipment 3_1, the local corresponding polymerization of MAC Address in the absence of PE equipment 3_1 is found Group, then the corresponding aggregation group 3_1 of MAC Address of newly-built PE equipment 3_1, newly-built aggregation group 3_ is added by stacking opening Port3_1 1.PE equipment 3_2 determines that PE equipment 3_1 is the neighbor device that this equipment is newly increased, then postpone T seconds election contest main equipment.
PE equipment 3_2 receives the LLDP messages that PE equipment 3_3 sends by stacking opening Port3_2, and whether inspection locally deposits In the corresponding aggregation group of MAC Address of PE equipment 3_3, the local corresponding polymerization of MAC Address in the absence of PE equipment 3_3 is found Group, then the corresponding aggregation group 3_2 of MAC Address of newly-built PE equipment 3_3, newly-built aggregation group 3_ is added by stacking opening Port3_2 2.PE equipment 3_2 determines that PE equipment 3_3 is the neighbor device that this equipment is newly increased, then campaigned for main equipment at above-mentioned delay T seconds On the basis of postpone again T seconds election contest main equipment.
PE equipment 3_3 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_3, and whether inspection locally deposits In the corresponding aggregation group of MAC Address of PE equipment 3_2, the local corresponding polymerization of MAC Address in the absence of PE equipment 3_2 is found Group, then the corresponding aggregation group 3_3 of MAC Address of newly-built PE equipment 3_2, newly-built aggregation group 3_ is added by stacking opening Port3_3 3.PE equipment 3_3 determines that PE equipment 3_2 is the neighbor device that this equipment is newly increased, then postpone T seconds election contest main equipment.
Second LLDP cycles of the PE equipment 3_1 after stacking opening Port3_0UP sends LLDP by stacking opening Port3_0 Message.LLDP messages carry device type, the MAC Address of PE equipment 3_1 of PE equipment 3_1.3_2 is in stacking opening for PE equipment The 2nd LLDP cycles after Port3_1UP send LLDP messages by stacking opening Port3_1, the LLDP reports that PE equipment 3_2 sends Text carries device type, the MAC Address of PE equipment 3_2, the device identification of PE equipment 3_3 of PE equipment 3_2 (by MAC Address Represent).PE equipment 3_3 meets following condition:Neighbours and with identical device type PE but it is not at each other with PE equipment 3_2 Sub- pile system.Twoth LLDP cycles of the PE equipment 3_2 after stacking opening Port3_2UP is sent by stacking opening Port3_2 LLDP messages, the LLDP messages that PE equipment 3_2 sends carry device type, MAC Address, the PE of PE equipment 3_2 of PE equipment 3_2 The device identification (being represented by MAC Address) of equipment 3_1.PE equipment 3_1 meets following condition:With PE equipment 3_2 neighbours each other And with identical device type PE but it is not at sub- pile system.Second after stacking opening Port3_3UP of PE equipment 3_3 The LLDP cycles send LLDP messages by stacking opening Port3_3.LLDP messages carry device type, the PE equipment of PE equipment 3_3 The MAC Address of 3_3.
PE equipment 3_1 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_0, and discovery locally has PE The corresponding aggregation group 3_0 of MAC Address and stacking opening Port3_0 of equipment 3_2 are then omitted and are performed and will stack in aggregation group 3_0 Mouth Port3_0 adds the operation of aggregation group 3_0.PE equipment 3_1 has found that the LLDP messages that PE equipment 3_2 sends carry PE equipment 3_ 3 device identification, the device identification of the PE equipment 3_3 of the carrying is the candidate device that participation is stacked for representing PE equipment 3_3, In the present invention, often increase the equipment for participating in stacking, then postpone main equipment election contest in T seconds, whether also have new time to wait Optional equipment participates in stacking, and based on this, PE equipment 3_1 can again postpone to campaign for for T seconds at above-mentioned delay T seconds on the basis of election contest main equipment Main equipment.
PE equipment 3_2 receives the LLDP messages that PE equipment 3_1 sends by stacking opening Port3_1, and discovery locally has PE The corresponding aggregation group of MAC Address and stacking opening Port3_1 of equipment 3_3 add newly-built aggregation group 3_1, then omit and perform heap Folded mouth Port3_1 adds the operation of aggregation group 3_1.PE equipment 3_2 has found not increase in the LLDP messages that PE equipment 3_1 sends The candidate device of stacking is participated in, then continues waiting for the main equipment election contest time.PE equipment 3_2 receives PE by stacking opening Port3_2 The processing mode of the LLDP messages that equipment 3_3 sends is similar to, and repeats no more.
PE equipment 3_3 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_3, and discovery locally has PE The corresponding aggregation group 3_3 of MAC Address and stacking opening Port3_3 of equipment 3_2 are then omitted and are performed and will stack in aggregation group 3_3 Mouth Port3_3 adds the operation of aggregation group 3_3.PE equipment 3_3 has found that the LLDP messages that PE equipment 3_2 sends carry PE equipment 3_ 1 device identification, the device identification of the PE equipment 3_3 of the carrying is the candidate device that participation is stacked for representing PE equipment 3_1, In the present invention, often increase the equipment for participating in stacking, then postpone main equipment election contest in T seconds, whether also have new time to wait Optional equipment participates in stacking, and based on this, PE equipment 3_3 can again postpone to campaign for for T seconds at above-mentioned delay T seconds on the basis of election contest main equipment Main equipment.
Three LLDP cycles of the PE equipment 3_1 after stacking opening Port3_0UP sends LLDP by stacking opening Port3_0 Message.LLDP messages carry device type, the MAC Address of PE equipment 3_1 of PE equipment 3_1.3_2 is in stacking opening for PE equipment The 3rd LLDP cycles after Port3_1UP send LLDP messages by stacking opening Port3_1, the LLDP reports that PE equipment 3_2 sends Text carries device type, the MAC Address of PE equipment 3_2, the device identification of PE equipment 3_3 of PE equipment 3_2 (by MAC Address Represent).Threeth LLDP cycles of the PE equipment 3_2 after stacking opening Port3_2UP sends LLDP and reports by stacking opening Port3_2 Text, the LLDP messages that PE equipment 3_2 sends carry device type, the MAC Address of PE equipment 3_2, the PE equipment 3_ of PE equipment 3_2 1 device identification (being represented by MAC Address).Three LLDP cycles of the PE equipment 3_3 after stacking opening Port3_3UP passes through Stacking opening Port3_3 sends LLDP messages.LLDP messages carry device type, the MAC Address of PE equipment 3_3 of PE equipment 3_3. Each LLDP cycles principle afterwards is similar to, and no longer describes one by one.
PE equipment 3_1 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_0, and discovery locally has PE The corresponding aggregation group 3_0 of MAC Address and stacking opening Port3_0 of equipment 3_2 are then omitted and are performed and will stack in aggregation group 3_0 Mouth Port3_0 adds the operation of aggregation group 3_0.PE equipment 3_1 has found that the LLDP messages that PE equipment 3_2 sends do not increase participation The candidate device of stacking, then continue waiting for the main equipment election contest time.
PE equipment 3_2 receives the LLDP messages that PE equipment 3_1 sends by stacking opening Port3_1, and discovery locally has PE The corresponding aggregation group of MAC Address and stacking opening Port3_1 of equipment 3_3 add newly-built aggregation group 3_1, then omit and perform heap Folded mouth Port3_1 adds the operation of aggregation group 3_1.PE equipment 3_2 has found not increase in the LLDP messages that PE equipment 3_1 sends The candidate device of stacking is participated in, then continues waiting for the main equipment election contest time.PE equipment 3_2 receives PE by stacking opening Port3_2 The processing mode of the LLDP messages that equipment 3_3 sends is similar to, and repeats no more.
PE equipment 3_3 receives the LLDP messages that PE equipment 3_2 sends by stacking opening Port3_3, and discovery locally has PE The corresponding aggregation group 3_3 of MAC Address and stacking opening Port3_3 of equipment 3_2 are then omitted and are performed and will stack in aggregation group 3_3 Mouth Port3_3 adds the operation of aggregation group 3_3.PE equipment 3_3 has found that the LLDP messages that PE equipment 3_2 sends do not increase participation The candidate device of stacking, then continue waiting for the main equipment election contest time.
PE equipment 3_1 is selected when reaching the time for campaigning for main equipment from PE equipment 3_1, PE equipment 3_2, PE equipment 3_3 One is selected as main equipment.Example is shown as by mac address table with above-mentioned device identification, setting for MAC Address minimum may be selected here For as main equipment.
Similarly, PE equipment 3_2, PE equipment 3_3 campaign for main equipment time reach when, from PE equipment 3_1, PE equipment One is selected in 3_2, PE equipment 3_3 as main equipment.PE equipment 3_2, PE equipment 3_3 selects the principle and PE equipment of main equipment The principle of 3_2 selection main equipments is identical.
Finally, the main equipment of PE equipment 3_1, PE equipment 3_2, PE equipment 3_3 selections is identical.With final choice PE equipment 3_ 1 for as a example by main equipment.
3_1 is used as main equipment for PE equipment, is PE equipment 3_1, PE equipment 3_2, PE equipment 3_3 assignment blocks number, distinct device The frame difference of distribution.
Afterwards, the frame number that PE equipment 3_1, PE equipment 3_2, PE equipment 3_3 is based on distributing is stacked in sequence, is constituted Sub- pile system.
So far, the description of embodiment 1 is completed.Similarly, can be according to the Composition of contents of embodiment 1 son stacking system between CB System, no longer repeats one by one here.
Embodiment 2:
Referring to Fig. 4, Fig. 4 applies networking diagram for the embodiment 2 that the present invention is provided.In fig. 4, there are three types is PE's Cassete exchange equipment, respectively:PE equipment 4_1, PE equipment 4_2, PE equipment 4_3.The stacking opening Port4_0 of PE equipment 4_1 with The stacking opening Port4_1 connections of PE equipment 4_2, the stacking opening of the stacking opening Port4_2 and PE equipment 4_3 of PE equipment 4_2 Port4_3 is connected.
In fig. 4, PE equipment 4_1, PE equipment 4_2 has been stacked, and constitutes sub- pile system.Sub- pile system is designated as Stacking 4_0.PE equipment 4_1 is the main equipment for stacking 4_0.
PE equipment 4_3 sends LLDP messages in stacking opening Port4_3UP by stacking opening Port4_3.LLDP messages are taken The MAC Address of the device type with PE equipment 4_3, PE equipment 4_3.
PE equipment 4_2 receives the LLDP messages that PE equipment 4_3 sends by stacking opening Port4_2, and whether inspection locally deposits In the corresponding aggregation group of MAC Address of PE equipment 4_3, the local corresponding polymerization of MAC Address in the absence of PE equipment 4_3 is found Group, then the corresponding aggregation group 4_2 of MAC Address of newly-built PE equipment 4_3, newly-built aggregation group 4_ is added by stacking opening Port4_2 2。
PE equipment 4_2 has found the device type of this equipment and being carried from the LLDP messages that PE equipment 4_3 sends for receiving Device type it is identical, it is determined that this equipment can be stacked with PE equipment 4_3.
PE equipment 4_2 request main equipments PE4_1 is PE equipment 4_3 assignment blocks number.Main equipment PE4_1 is PE equipment 4_3 points With frame number.
PE equipment 4_3 receives the frame number of main equipment PE4_1 distribution, and adds stacking 4_0.So far, retouching for embodiment 2 is completed State.Similarly, no longer can one by one be repeated here according to the sub- pile system of the Composition of contents of embodiment 2 between CB.
Embodiment 3:
Referring to Fig. 5, Fig. 5 applies networking diagram for the embodiment 3 that the present invention is provided.In Figure 5, there are four types is PE's Cassete exchange equipment, respectively:PE equipment 5_1, PE equipment 5_2, PE equipment 5_3, PE equipment 5_4.
In Figure 5, the stacking opening Port5_1_2 of PE equipment 5_1 is connected with the stacking opening Port5_2_1 of PE equipment 5_2, PE Equipment 5_1 and PE equipment 5_2 is stacked and constitutes sub- pile system, is designated as stacking 5_1.PE equipment 5_1 is the master for stacking 5_1 Equipment.
In Figure 5, the stacking opening Port5_3_4 of PE equipment 5_3 is connected with the stacking opening Port5_5_3 of PE equipment 5_4.PE Equipment 5_3 and PE equipment 5_4 is stacked and constitutes sub- pile system, is designated as stacking 5_2.PE equipment 5_3 is the master for stacking 5_2 Equipment.
In Figure 5, PE equipment 5_2 sends LLDP and reports in stacking opening Port5_2_3UP by stacking opening Port5_2_3 Text.The device type of LLDP messages carrying PE equipment 5_2, the MAC Address of PE equipment 5_2, the main equipment of stacking 5_1 are PE equipment The priority facility (being shown by MAC table) of 5_1.
In Figure 5, PE equipment 5_3 sends LLDP and reports in stacking opening Port5_3_2UP by stacking opening Port5_3_2 Text.The device type of LLDP messages carrying PE equipment 5_3, the MAC Address of PE equipment 5_3, the main equipment of stacking 5_2 are PE equipment The priority facility (being shown by MAC table) of 5_3.
PE equipment 5_2 receives the LLDP messages that PE equipment 5_3 sends by stacking opening Port5_2_3, check it is local whether There is the corresponding aggregation group of MAC Address of PE equipment 5_3, find the local corresponding polymerization of MAC Address in the absence of PE equipment 5_3 Group, then the corresponding aggregation group 5_2_3 of MAC Address of newly-built PE equipment 5_3, newly-built polymerization is added by stacking opening Port5_2_3 Group 5_2_3.
PE equipment 5_2 has found the device type of this equipment and being carried from the LLDP messages that PE equipment 5_3 sends for receiving Device type it is identical, it is determined that PE equipment 5_3 can add stacking 5_1.
PE equipment 5_2 compares the main equipment i.e. priority facility of PE equipment 5_2 and PE equipment 5_3 transmissions in stacking 5_1 Main equipment is the priority facility of PE equipment 5_3 in stacking 5_2 entrained by LLDP messages, if the former is better than the latter, touching makes Each equipment is that PE equipment 5_3, PE equipment 5_4 restarts addition stacking 5_1 in stacking 5_2.When PE equipment 5_3, PE equipment 5_4 is added During stacking 5_1, main equipment is that PE equipment 5_1 is PE equipment 5_3, PE equipment 5_4 assignment blocks number in stacking 5_1.If the latter is better than The former, then restart this equipment and add stacking 5_2, and main equipment is the frame that PE equipment 5_3 is the distribution of this equipment in reception stacking 5_2 Number.
Similar with PE equipment 5_2, PE equipment 5_3 receives the LLDP reports that PE equipment 5_2 sends by stacking opening Port5_3_2 Text, checks the local corresponding aggregation group of MAC Address with the presence or absence of PE equipment 5_2, finds local in the absence of PE equipment 5_2's The corresponding aggregation group of MAC Address, then the corresponding aggregation group 5_3_2 of MAC Address of newly-built PE equipment 5_2, stacking opening 5_3_2 is added Enter newly-built aggregation group 5_3_2.
PE equipment 5_3 has found the device type of this equipment and being carried from the LLDP messages that PE equipment 5_2 sends for receiving Device type it is identical, it is determined that PE equipment 5_2 can add stacking 5_2.
PE equipment 5_3 compares the main equipment i.e. priority facility of PE equipment 5_3 and PE equipment 5_2 transmissions in stacking 5_2 Main equipment is the priority facility of PE equipment 5_1 in stacking 5_1 entrained by LLDP messages, if the former is better than the latter, touching makes Each equipment is that PE equipment 5_1, PE equipment 5_2 restarts addition stacking 5_2 in stacking 5_1.When PE equipment 5_1, PE equipment 5_2 is added During stacking 5_2, main equipment is that PE equipment 5_2 is PE equipment 5_1, PE equipment 5_2 assignment blocks number in stacking 5_2.If the latter is better than The former, then restart this equipment and add stacking 5_1, and main equipment is the frame that PE equipment 5_1 is the distribution of this equipment in reception stacking 5_1 Number.
So far, the description of embodiment 3 is completed.Similarly, can be according to the Composition of contents of embodiment 3 son stacking system between CB System, no longer repeats one by one here.
In actual applications, the stacking opening of cassete exchange equipment and functional area are to discriminate between out, therefore, when two boxlikes are handed over It can be what is distinguished that exchange device connection performs stacking or performs internet communication.Description based on above example, then together The cassete exchange equipment of one type can not need any configuration to realize that plug and play can be stacked.And frame switching equipment, its Stacking opening and functional area need to be distinguished beforehand through definition, only need simply definition stacking opening to realize that plug and play can in the present invention With stack, this avoid completely the caused configuration such as the existing aggregation group being pre-configured with belonging to stacking opening, equipment frame number it is cumbersome, hold The defect such as error-prone.
It should be noted that in the present invention, either cassete exchange equipment or frame switching equipment, it is adding son After pile system, the frame number of this equipment and this equipment can be in the mark of sub- pile system, this equipment institute virgin stacking system To default configuration file, the configuration file will not be lost character record in system because restarting, in this way, afterwards when this equipment again It is secondary restart after, the frame number that directly can record according to configuration file, role start, it is to avoid the defect such as assignment block number repeatedly.
The method that the present invention is provided is described above.The device that the present invention is provided is described below:
Referring to Fig. 6, the structure drawing of device that Fig. 6 is provided for the present invention.The device is applied to such as the friendship of PE equipment or CB equipment Exchange device, including:
Transmitting element, for receiving the first link layer discovery report that the first neighbor device sends by local first stacking opening Text;
Aggregation group allocation unit, for when locally there is aggregation group corresponding with the MAC Address of the first neighbor device, inciting somebody to action First stacking opening is added to aggregation group corresponding with the MAC Address, and otherwise, the corresponding aggregation group of the newly-built MAC Address will First stacking opening is added to newly-built aggregation group;
Stackable unit, the first neighbor device that message is carried is found for the device type when this equipment and the first link layer Device type it is identical when, it is this equipment and the first neighbor device assignment block that this equipment and the first neighbor device are consulted with dynamic Number, and the stacking of this equipment and the first neighbor device is performed automatically.
Preferably, the stackable unit realizes that this equipment is consulted with dynamic as this with the first neighbor device by following steps Equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment has been in sub- pile system, the first neighbor device is not in sub- pile system, then,
It is the first neighbor device assignment block number when the main equipment that this equipment is the sub- pile system,
When this equipment is not for the main equipment of the sub- pile system, the main equipment for triggering the sub- pile system is first Neighbor device assignment block number;
First neighbor device is added the sub- pile system residing for this equipment.
Preferably, the stackable unit realizes that this equipment is consulted with dynamic as this with the first neighbor device by following steps Equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment is not in sub- pile system, the first neighbor device has been in sub- pile system, then,
Receive the main equipment in the sub- pile system and be the frame number of this equipment distribution, and add the sub- pile system.
Preferably, if the first neighbor device is in sub- pile system, the first link layer finds that message further carries first The priority of main equipment in neighbor device institute virgin's pile system;
The stackable unit by following steps realize this equipment and the first neighbor device consult with dynamic as this equipment and First neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment is in two different sub- pile systems from the first neighbor device,
Compare that the priority of main equipment in this equipment institute virgin's pile system and the first link layer find that message carries the The priority of main equipment in one neighbor device institute virgin's pile system,
If the former be better than the latter, triggering first neighbor device institute virgin's pile system in each equipment restart addition this equipment Institute's virgin's pile system, and when the main equipment that this equipment is institute's virgin's pile system, to add this equipment institute virgin to stack system Each equipment assignment block number of system;
If the latter is better than the former, first neighbor device institute virgin's pile system of addition is restarted, and the first neighbours of reception set Main equipment in standby institute virgin's pile system is the frame number of this equipment distribution.
Preferably, the stackable unit realizes that this equipment is consulted with dynamic as this with the first neighbor device by following steps Equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment and the first neighbor device are not in sub- pile system,
It is determined that the candidate device stacked with this equipment and the first neighbor device;
Consult main equipment together with the first neighbor device and the candidate device;
It is this equipment, the first neighbor device, the candidate device assignment block number when this equipment is negotiated as main equipment; When this equipment is not negotiated as main equipment, the frame number that the main equipment consulted is the distribution of this equipment is received;
Perform the stacking of this equipment, the first neighbor device and the candidate device.
Preferably, the stackable unit determines that the candidate device stacked with this equipment and the first neighbor device includes:
First link layer is found that the corresponding equipment of first kind device identification that message is carried is defined as the candidate Equipment, the corresponding equipment of first kind device identification meets lower first condition:With the first neighbor device neighbours and with identical each other Device type but it is not at sub- pile system;
And, the second neighbor device is within a specified time received by local second stacking opening and stacks the second link for sending When layer finds message, if the device type of this equipment finds the equipment class of the second neighbor device that message is carried with the second link layer Type is identical, then the second neighbor device and the second link layer are found into the corresponding equipment of Equations of The Second Kind device identification that message is carried It is defined as the candidate device, the corresponding equipment of Equations of The Second Kind device identification meets following second condition:It is mutual with the second neighbor device For neighbours and with identical device role but it is not at sub- pile system;The specified time is determined that N is the first link by N+1 Layer finds the quantity of the device identification that message is carried.
So far, the device description that the present invention is provided is completed.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (12)

1. a kind of automatic stacking method, it is characterised in that the method is applied to switching equipment, and the method includes:
The first link layer discovery message that first neighbor device sends is received by local first stacking opening;
When locally exist aggregation group corresponding with the MAC Address of the first neighbor device when, by the first stacking opening add to it is described The corresponding aggregation group of MAC Address, otherwise, the corresponding aggregation group of the newly-built MAC Address adds to newly-built first stacking opening Aggregation group;
When the device type of this equipment is identical with the device type that the first link layer finds the first neighbor device that message is carried, It is this equipment and the first neighbor device assignment block number that this equipment is consulted with dynamic with the first neighbor device, and performs this equipment automatically With the stacking of the first neighbor device.
2. method according to claim 1, it is characterised in that described equipment consult with the first neighbor device be with dynamic This equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment has been in sub- pile system, the first neighbor device is not in sub- pile system, then,
It is the first neighbor device assignment block number when the main equipment that this equipment is the pile system,
When this equipment is not for the main equipment of the sub- pile system, the main equipment for triggering the sub- pile system is the first neighbours Equipment assignment block number;
First neighbor device is added the sub- pile system residing for this equipment.
3. method according to claim 1, it is characterised in that described equipment consult with the first neighbor device be with dynamic This equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment is not in sub- pile system, the first neighbor device has been in sub- pile system, then,
Receive the main equipment in the sub- pile system and be the frame number of this equipment distribution, and add the sub- pile system.
4. method according to claim 1, it is characterised in that if the first neighbor device is in sub- pile system, the first chain Road floor finds that message further carries the priority of main equipment in first neighbor device institute virgin's pile system;
It is this equipment and the first neighbor device assignment block number that described equipment is consulted with dynamic with the first neighbor device, and is held automatically Capable this equipment includes with the stacking of the first neighbor device:
If this equipment is in two different sub- pile systems from the first neighbor device,
The priority and the first link layer for comparing main equipment in this equipment institute virgin's pile system find the first neighbour that message is carried The priority of main equipment in equipment institute virgin's pile system is occupied,
If the former is better than the latter, each equipment is restarted and is added residing for this equipment in first neighbor device institute virgin's pile system of triggering Sub- pile system, and when the main equipment that this equipment is institute's virgin's pile system, to add this equipment institute virgin's pile system Each equipment assignment block number;
If the latter is better than the former, first neighbor device institute virgin's pile system of addition is restarted, and receive the first neighbor device institute Main equipment in virgin's pile system is the frame number of this equipment distribution.
5. method according to claim 1, it is characterised in that described equipment consult with the first neighbor device be with dynamic This equipment and the first neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment and the first neighbor device are not in sub- pile system,
It is determined that the candidate device stacked with this equipment and the first neighbor device;
Consult main equipment together with the first neighbor device and the candidate device;
It is this equipment, the first neighbor device, the candidate device assignment block number when this equipment is negotiated as main equipment;At this Equipment is not negotiated during for main equipment, receives the frame number that the main equipment consulted is the distribution of this equipment;
Perform the stacking of this equipment, the first neighbor device and the candidate device.
6. method according to claim 5, it is characterised in that the determination carries out heap with this equipment and the first neighbor device Folded candidate device includes:
First link layer is found that the corresponding equipment of first kind device identification that message is carried is defined as the candidate device, The corresponding equipment of first kind device identification meets lower first condition:With the first neighbor device neighbours and with identical device class each other Type but it is not at sub- pile system;
And, the second neighbor device is within a specified time received by local second stacking opening and stacks the second link layer for sending hair During existing message, if the device type of this equipment finds the device type phase of the second neighbor device that message is carried with the second link layer Together, then the second neighbor device and the second link layer are found that the corresponding equipment of Equations of The Second Kind device identification that message is carried determines It is the candidate device, the corresponding equipment of Equations of The Second Kind device identification meets following second condition:It is adjacent each other with the second neighbor device Occupy and with identical device role but be not at sub- pile system;The specified time is determined that N sends out for the first link layer by N+1 The quantity of the device identification that existing message is carried.
7. a kind of automatic stacking device, it is characterised in that the device is applied to switching equipment, including:
Transmitting element, for receiving the first link layer discovery message that the first neighbor device sends by local first stacking opening;
Aggregation group allocation unit, for when locally there is aggregation group corresponding with the MAC Address of the first neighbor device, by first Stacking opening is added to aggregation group corresponding with the MAC Address, otherwise, the corresponding aggregation group of the newly-built MAC Address, by first Stacking opening is added to newly-built aggregation group;
Stackable unit, setting for the first neighbor device that message is carried is found for the device type when this equipment and the first link layer When standby type is identical, it is this equipment and the first neighbor device assignment block number that this equipment and the first neighbor device are consulted with dynamic, and Automatically the stacking of this equipment and the first neighbor device is performed.
8. device according to claim 7, it is characterised in that the stackable unit by following steps realize this equipment with It is this equipment and the first neighbor device assignment block number that first neighbor device is consulted with dynamic, and it is adjacent with first to perform this equipment automatically The stacking for occupying equipment includes:
If this equipment has been in sub- pile system, the first neighbor device is not in sub- pile system, then,
It is the first neighbor device assignment block number when the main equipment that this equipment is the sub- pile system,
When this equipment is not for the main equipment of the sub- pile system, the main equipment for triggering the sub- pile system is the first neighbours Equipment assignment block number;
First neighbor device is added the sub- pile system residing for this equipment.
9. device according to claim 7, it is characterised in that the stackable unit by following steps realize this equipment with It is this equipment and the first neighbor device assignment block number that first neighbor device is consulted with dynamic, and it is adjacent with first to perform this equipment automatically The stacking for occupying equipment includes:
If this equipment is not in sub- pile system, the first neighbor device has been in sub- pile system, then,
Receive the main equipment in the sub- pile system and be the frame number of this equipment distribution, and add the sub- pile system.
10. device according to claim 7, it is characterised in that if the first neighbor device is in sub- pile system, the first chain Road floor finds that message further carries the priority of main equipment in first neighbor device institute virgin's pile system;
It is this equipment and first that the stackable unit realizes that this equipment is consulted with dynamic with the first neighbor device by following steps Neighbor device assignment block number, and perform this equipment automatically and include with the stacking of the first neighbor device:
If this equipment is in two different sub- pile systems from the first neighbor device,
The priority and the first link layer for comparing main equipment in this equipment institute virgin's pile system find the first neighbour that message is carried The priority of main equipment in equipment institute virgin's pile system is occupied,
If the former is better than the latter, each equipment is restarted and is added residing for this equipment in first neighbor device institute virgin's pile system of triggering Sub- pile system, and when the main equipment that this equipment is institute's virgin's pile system, to add this equipment institute virgin's pile system Each equipment assignment block number;
If the latter is better than the former, first neighbor device institute virgin's pile system of addition is restarted, and receive the first neighbor device institute Main equipment in virgin's pile system is the frame number of this equipment distribution.
11. devices according to claim 6, it is characterised in that the stackable unit realizes this equipment by following steps It is this equipment and the first neighbor device assignment block number to consult with dynamic with the first neighbor device, and performs this equipment and first automatically The stacking of neighbor device includes:
If this equipment and the first neighbor device are not in sub- pile system,
It is determined that the candidate device stacked with this equipment and the first neighbor device;
Consult main equipment together with the first neighbor device and the candidate device;
It is this equipment, the first neighbor device, the candidate device assignment block number when this equipment is negotiated as main equipment;At this Equipment is not negotiated during for main equipment, receives the frame number that the main equipment consulted is the distribution of this equipment;
Perform the stacking of this equipment, the first neighbor device and the candidate device.
12. devices according to claim 11, it is characterised in that the stackable unit determines and this equipment and the first neighbours The candidate device that equipment is stacked includes:
First link layer is found that the corresponding equipment of first kind device identification that message is carried is defined as the candidate device, The corresponding equipment of first kind device identification meets lower first condition:With the first neighbor device neighbours and with identical device class each other Type but it is not at sub- pile system;
And, the second neighbor device is within a specified time received by local second stacking opening and stacks the second link layer for sending hair During existing message, if the device type of this equipment finds the device type phase of the second neighbor device that message is carried with the second link layer Together, then the second neighbor device and the second link layer are found that the corresponding equipment of Equations of The Second Kind device identification that message is carried determines It is the candidate device, the corresponding equipment of Equations of The Second Kind device identification meets following second condition:It is adjacent each other with the second neighbor device Occupy and with identical device role but be not at sub- pile system;The specified time is determined that N sends out for the first link layer by N+1 The quantity of the device identification that existing message is carried.
CN201611257924.5A 2016-12-30 2016-12-30 Automatic stacking method and device Active CN106878190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611257924.5A CN106878190B (en) 2016-12-30 2016-12-30 Automatic stacking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611257924.5A CN106878190B (en) 2016-12-30 2016-12-30 Automatic stacking method and device

Publications (2)

Publication Number Publication Date
CN106878190A true CN106878190A (en) 2017-06-20
CN106878190B CN106878190B (en) 2019-11-08

Family

ID=59165238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611257924.5A Active CN106878190B (en) 2016-12-30 2016-12-30 Automatic stacking method and device

Country Status (1)

Country Link
CN (1) CN106878190B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426031A (en) * 2017-08-08 2017-12-01 迈普通信技术股份有限公司 Stack arrangement method and device
CN107547276A (en) * 2017-08-24 2018-01-05 新华三技术有限公司 Automatic stacking method, device, equipment and machinable medium
CN108092896A (en) * 2017-12-26 2018-05-29 新华三技术有限公司 Pile system and aggregation group establish device
CN111343040A (en) * 2020-01-17 2020-06-26 新华三信息安全技术有限公司 Port expander stacking and splitting detection method and device for expansion network bridge

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478434A (en) * 2009-01-19 2009-07-08 杭州华三通信技术有限公司 Method for configuring stacking port and exchange equipment
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface
CN102724069A (en) * 2012-06-14 2012-10-10 福建星网锐捷网络有限公司 Collision detection method, device and network device of dual-master device in thermal staking system
CN103701631A (en) * 2013-12-05 2014-04-02 杭州华三通信技术有限公司 Automatic stack configuration deploy method and equipment used in stack system
CN105897465A (en) * 2016-03-30 2016-08-24 杭州华三通信技术有限公司 Equipment configuration method and apparatus
CN106161288A (en) * 2015-04-17 2016-11-23 杭州华三通信技术有限公司 The method and apparatus realizing multiple devices stacking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478434A (en) * 2009-01-19 2009-07-08 杭州华三通信技术有限公司 Method for configuring stacking port and exchange equipment
CN101572626A (en) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 Collocation method and member device of stack logic interface
CN102724069A (en) * 2012-06-14 2012-10-10 福建星网锐捷网络有限公司 Collision detection method, device and network device of dual-master device in thermal staking system
CN103701631A (en) * 2013-12-05 2014-04-02 杭州华三通信技术有限公司 Automatic stack configuration deploy method and equipment used in stack system
CN106161288A (en) * 2015-04-17 2016-11-23 杭州华三通信技术有限公司 The method and apparatus realizing multiple devices stacking
CN105897465A (en) * 2016-03-30 2016-08-24 杭州华三通信技术有限公司 Equipment configuration method and apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426031A (en) * 2017-08-08 2017-12-01 迈普通信技术股份有限公司 Stack arrangement method and device
CN107426031B (en) * 2017-08-08 2020-06-02 迈普通信技术股份有限公司 Stack configuration method and device
CN107547276A (en) * 2017-08-24 2018-01-05 新华三技术有限公司 Automatic stacking method, device, equipment and machinable medium
CN107547276B (en) * 2017-08-24 2021-06-29 新华三技术有限公司 Automatic stacking method, device, equipment and machine readable storage medium
CN108092896A (en) * 2017-12-26 2018-05-29 新华三技术有限公司 Pile system and aggregation group establish device
CN108092896B (en) * 2017-12-26 2020-12-08 新华三技术有限公司 Stacking system and aggregation group creation apparatus
CN111343040A (en) * 2020-01-17 2020-06-26 新华三信息安全技术有限公司 Port expander stacking and splitting detection method and device for expansion network bridge
CN111343040B (en) * 2020-01-17 2022-12-16 新华三信息安全技术有限公司 Port expander stacking and splitting detection method and device for expansion network bridge

Also Published As

Publication number Publication date
CN106878190B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN101132607B (en) Access gateway, base station and method for evolutionary multimedia broadcast multicast business
CN106878190A (en) Automatic stacking method and device
CN103905463B (en) Connecting management and control method suitable for multi-path transmitting
CN101141304B (en) Management method and equipment of ACL regulation
CN106060900A (en) Method and apparatus for controlling access to network slicing, terminal small cell and SDN controller
US9960998B2 (en) Forwarding packet in stacking system
USRE44104E1 (en) Cross-layer architecture for a network device
JP6067365B2 (en) MiAN, system and partner discovery method in the system
CN106357542B (en) The method and software defined network controller of multicast service are provided
CN103596290A (en) Wireless multi-network integration method
CN106487558A (en) A kind of method and apparatus realizing the scalable appearance of access device
CN106571992A (en) Virtual Private Line (VPL) establishing method and device
CN105577540A (en) Service link establishment method, device and system
CN115865654A (en) Method for communicating with server, electronic device and storage medium
KR101517380B1 (en) Method and device for requesting multicasting, processing multicasting requests and assisting in the aforementioned process
CN108737274B (en) Message forwarding method and device
CN107147619A (en) Data transmission method based on multi-source, multipath cooperative transmission control protocol
CN103401708B (en) A kind of port configuration method and device
CN107465582B (en) Data sending method, device and system, physical home gateway and access node
CN104506440B (en) The data packet sending method and routing table amending method of router
CN103441934B (en) A kind of learning method of stacking topology and device
CN107528788A (en) Realize the method and apparatus stacked automatically between the network equipment
CN108541035A (en) A kind of business model variation, device and medium based on 5G networks
CN108965089B (en) Flow forwarding method and device
CN110868474B (en) Interconnection network element, network intercommunication method, system, equipment and computer medium

Legal Events

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