CN1300987C - Method for hot backing up creation and delection of virtual local area network in exchanger - Google Patents
Method for hot backing up creation and delection of virtual local area network in exchanger Download PDFInfo
- Publication number
- CN1300987C CN1300987C CNB031220207A CN03122020A CN1300987C CN 1300987 C CN1300987 C CN 1300987C CN B031220207 A CNB031220207 A CN B031220207A CN 03122020 A CN03122020 A CN 03122020A CN 1300987 C CN1300987 C CN 1300987C
- Authority
- CN
- China
- Prior art keywords
- vlan
- unit
- packet
- stand
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a method for the hot backing up creation and deletion of a virtual local area network (VLAN) in an exchanger. The exchanger comprises a primary unit and a standby unit which maintain VLAN information by using the virtual local area network protocol of a general attribute register protocol (GARP). The method comprises the following steps: when creating or deleting the VLAN, the primary unit transmits a data packet containing the information of creating or deleting the VLAN to the standby unit; the standby unit creates or deletes the VLAN according to the received data packet so as to keep consistent with the VLAN information of the primary unit. The present invention can make the primary unit and the standby unit quickly achieve the state of keeping the consistency of dynamic information.
Description
Invention field
The present invention relates to switch technology, be particularly related to containing and main use the Hot Spare (or claiming to back up in realtime) that carries out dynamic creation and the deletion of VLAN (VLAN) based on the virtual local network log-on protocol of GARP (Generic Attribute Registration Protocol) in the switch of unit and stand-by unit, so that stand-by unit and the main synchronous method of vlan information maintenance of using the unit.
Background technology
GARP is that Generic Attribute Registration Protocol provides a kind of mechanism, is used to assist distribute, propagate, register certain information (as VLAN, multicast group address etc.) between the interior exchange member of same switching network.By GARP mechanism, configuration information on GARP member can bamboo telegraph to entire switching network, GARP member can be terminal workstation or bridge, GARP member is by statement or reclaim statement, notify other GARP member's registration or nullify the attribute information of oneself, and state the attribute information of registering or nullifying the other side according to other GARP members' statement or recovery.
Information exchange between the GARP member is finished by means of message, and the type of message of GARP has five kinds, is respectively JoinIn, Leave, Empty, JoinEmpty and LeaveAll.When a GARP application entity (being GARP member, can be terminal workstation or bridge) is wished certain attribute information of registration, will externally send JoinIn message.When a GARP application entity wishes to nullify certain attribute information, will externally send Leave message.Each GARP application entity will start the LeaveAll timer after starting simultaneously, will externally send LeaveAll message after overtime.JoinEmpty message cooperates with Leave message, guarantees the cancellation of message or re-registers.Mutual by message, all attribute informations to be registered can propagate on all switches of same switching network.The protocol data message of GARP application entity all has specific target MAC (Media Access Control) address.When in the switch of supporting the GARP characteristic, receiving the message of GARP application entity, give different application with these messages after being distinguished according to this MAC Address and handle, for example GVRP (GARP virtual local network log-on protocol).
GVRP uses and handles the working mechanism that is based on GARP, safeguards the VLAN dynamic registration information in the switch, and this information is registered in other the switch.All support the switch of GVRP characteristic can receive the VLAN log-on message from other switches, and dynamically update local VLAN log-on message, comprise current member of vlan, these member of vlans can pass through which port access etc.And all support the switch of GVRP characteristic VLAN log-on message other switches in switching network of this locality can be propagated.All support the vlan information of the equipment of GVRP characteristic to reach an agreement in the same switching network so that make.The VLAN log-on message that GVRP propagates had both comprised the static registration information of local manual configuration, also comprised the dynamic registration information from other switches.
For switch with data backup function, the mode of data backup is carried out in employing in time between primary, spare unit, thereby, can automatically switch on the stand-by unit when breaking down main, can not cause losing of the significant data that comprises vlan information or information with the unit.
Prior art is considered taking place in the absence about switching primary, spare unit when realizing the registration of dynamic vlan, and the main dynamic vlan information of learning with unit (ONU) registration is backed up to stand-by unit.Though stand-by unit switch to main with the unit after, can continue study and create dynamic vlan, in this process, can cause the interruption of data, certain time delay is arranged.
Summary of the invention
Therefore, at above-mentioned problems of the prior art, purpose of the present invention is exactly will provide a kind of new to realize the main method that dynamic creation or the deletion of VLAN is backuped to stand-by unit with the unit based on GVRP, all on the throne to solve at main usefulness, the stand-by unit of switch, just be under the situation of movable upstate, the information of dynamic vlan is consistent on primary and backup unit.Automatically switch to main using under the situation of unit at stand-by unit, the study that does not need to carry out dynamic vlan is again created.Simultaneously main dynamic vlan is configured operation on the unit after, make that the information about dynamic vlan is consistent with the unit with main on the stand-by unit.
Need to prove, in real system, have static state and dynamic the establishment and deletion of VLAN, the present invention mainly is about the dynamic creation of VLAN or deletion, below if no special instructions, VLAN all refers to the VLAN of dynamic creation or deletion.
In order to realize purpose of the present invention, the invention provides a kind of method of in switch, Hot Spare is carried out in establishment and the deletion of VLAN, described switch includes main with unit and stand-by unit, described master uses GVRP to carry out the maintenance of vlan information with unit and stand-by unit, it is characterized in that described method comprises:
(1) when described master creates with the unit or deletes VLAN, sends the packet that comprises this establishment or deletion VLAN message to described stand-by unit;
(2) described VLAN is created or deleted to described stand-by unit according to the packet that is received, and is consistent with maintenance and described main vlan information with the unit.
In said method of the present invention, can also comprise,
(1-1) judge establishment or the deletion VLAN that whether has comprised predetermined quantity in the described packet that will send;
(1-2) in described packet, comprised after the establishment or deletion VLAN of predetermined quantity, sent the described packet of creating or delete VLAN message that comprised to described stand-by unit;
When (1-3) in described packet, not comprising the establishment VLAN of predetermined quantity, judge whether this packet satisfies the condition that sends to stand-by unit;
(1-4) when described packet satisfies the condition that sends to stand-by unit, send the described packet of creating or delete VLAN message that comprised to described stand-by unit.
According to said method of the present invention, can guarantee better that multidate information is in the data consistency that has on the switch of primary, spare unit.And can improve the continuous and reliability of data message.
Description of drawings
By detailed explanatory note and in conjunction with the following drawings, above-mentioned purpose of the present invention, feature and the advantage easy to understand more that will become, wherein:
Fig. 1 is that the master at switch according to the present invention goes up the flow chart that keeps creating or deleting the consistent method of dynamic vlan information with unit and stand-by unit (hereinafter to be referred as mainboard and slave board).
Embodiment
Method of the present invention can be applicable to support in the system that primary, spare unit backs up in realtime, for example at the active and standby plate switch under the situation on the throne simultaneously.When active and standby plate was simultaneously on the throne, switch was received protocol massages, created or the deletion dynamic vlan, and mainboard thermotropism back-up processing module sends slave board real time data processing message.After slave board receives this message, create or the deletion dynamic vlan according to type of message.
Describe the example of a kind of embodiment of the present invention in detail below with reference to Fig. 1.
Be that example illustrates at first with the situation behind the switch establishment dynamic vlan.The JOIN protocol message that switch utilizes GARP to handle carries out conventional dynamic vlan to be created.
In a preferred embodiment of the invention, be that the quantity of VLAN just sends this packet after reaching a predetermined quantity once in packet.The benefit of doing like this is the data traffic that can reduce between the active and standby plate.At this moment, need to set contained VLAN maximum quantity in the packet that once sends, this maximum quantity can be adjusted according to different applicable cases.Simultaneously, behind packet that vlan information is packed into, need the VLAN in this packet is counted.When count value equals the VLAN maximum quantity of above-mentioned setting, can transmit this packet to slave board.Like this,, when backing up, be not that VLAN is carried out one by one backup, but defined the packet of a backup messages in order to reduce the traffic between mainboard and the slave board, can maximum transmitted in this packet 100 vlan informations for example.
Specifically, in this embodiment, global variable is set, and VLAN transmission sign is changed to true (TRUE).It below is the concrete example that is provided with.
Maximum VLAN quantity of a data packet transmission of definition,
MAX_TRANS_VLAN=100
Definition data packets for transmission structure.
typedef?struct?tag_Vlan_snap
{
ULONG ulMsgType; / * type of message--GID_JOIN, GID_LEAVE*/
ULONG ulMsgLen; / * message-length */
USHORT usPortIndex; / * port */
USHORT usVlanCount; The VLAN number * of/* record/
USHORT?usVlanId[MAX_TRANS_VLAN]
}Vlan_snap_S;
The definition global variable
Vlan_snap_S g_stVlansnap; The global data bag * that/* is used to send/
G_ucSendVlanFlag; / * is in the feelings of VLAN quantity less than MAX_TRANS_VLAN
The VLAN sign * that determines whether under the condition to transmit/
In above-mentioned processing procedure, dynamic vlan of every establishment, just vlan information is recorded among the g_stVlansnap, the usVlanCount of g_stVlansnap (being the VLAN counting) adds 1 simultaneously, g_ucSendVlanFlag (being that VLAN sends sign) is set simultaneously is TRUE.
Next, vlan information is packed in the packet.The structure of this packet generally includes: VLAN number in type of message (create, delete), the port information that receives this vlan information and the message, the concrete vlan information of transmission etc.For the distribution switch system, divide master control borad (comprising standby control board) and interface board (interface boards of various different application).The information of on control board (mainboard and slave board), preserving interface board.In switch, interface board is used for the deal with data message forwarding, the protocol processes message that interface board is received will on deliver to mainboard and handle, and can not handle at interface board.
For the port that receives vlan information, on mainboard and slave board, all preserve this port information.Port information mainly comprises the numbering of port on control board (mainboard and slave board).In concrete example, for example ID is that 10 port receives message.Although also having ID on slave board is 10 port, the port one 0 on the slave board can not received message and handle.That is to say that the information that sends from interface is can not deliver to slave board, remains mainboard and carries out control and treatment.
Concrete vlan information mainly comprises VLAN ID and port index.In this example, this data packet message type is GID_JOIN, promptly creates dynamic vlan message.(if deletion during dynamic vlan, type of message just becomes GID_LEAVE)
If count value less than the VLAN maximum quantity of above-mentioned setting, then needs further to judge whether to send this packet.In the embodiment shown in fig. 1, can judge further whether slave board is all finished the processing (comprising back-up processing) of the message bag of establishment VLAN.If the result of this judgement is then to turn back in the processing of creating dynamic vlan.Otherwise, judge whether that further global transmission is masked as TRUE.If judging whether of this step is fixed, promptly the global transmission sign is not TRUE, and then the mainboard processing finishes, and does not also send the packet that VLAN creates to slave board.Otherwise, be sure if this step is judged, promptly global transmission is masked as TRUE, even then count value is less than the VLAN maximum quantity of above-mentioned setting, also can send the packet of creating about VLAN to slave board.It is exactly also vlan information can be backuped to slave board in order to guarantee under the situation of less than 100 that definition global transmission sign is set.
After the success of slave board transmits data packets,, simultaneously above-mentioned VLAN transmission sign is changed to FALSE with above-mentioned counting zero clearing.
Then, slave board is according to the VLAN message that comprises in the received data packet, and the JOIN protocol message that utilizes GARP to handle equally carries out the processing of the establishment VLAN consistent with mainboard.
In another embodiment of the invention, can be that employing sends a message after whenever handling a GVRP message bag when handling reception GVRP message establishing VLAN.Promptly after mainboard is created a VLAN, vlan information packed into packet and be sent to slave board immediately.So just need not definition counts to VLAN number in the packet and to VLAN.Specifically, what GVRP message bag comprised is the information of VLAN, and system is created according to this message bag or the deletion dynamic vlan.But have only mainboard to receive GVRP message bag, do not receive this message bag on the slave board.GVRP message of the every processing of mainboard is just created a VLAN, and the message bag of then vlan information being packed into sends to slave board.Certainly, this method can increase the size of message that transmits between the active and standby plate.The structure example of GVRP message bag is as being:
1. Ethernet encapsulation
DA | SA | length | DSAP | SSAP | Ctrl | PDU | FCS |
Wherein:
DA (6 byte): target MAC (Media Access Control) address for example is Layer 2 Multicast address 01-80-C2-00-00-21;
SA (6 byte): source MAC;
The data length of length (2 byte): length encapsulation comprises from DSAP beginning to the length of FCS all data before;
DSAP (1 byte): 0x42;
SSAP (1 byte): 0x42;
Ctrl (1 byte): 0x03;
PDU: the GARP message data of encapsulation;
FCS (4 byte): Ethernet encapsulation FCS position, hardware adds processing automatically.
2.PDU structure
That each Ethernet encapsulates is a PDU, and the form of each PDU is as follows:
Protocol?ID | Message?1 | ...... | Message?n | ?End?Marker |
Wherein:
Protocol ID (2 byte): agreement ID number, be 0x0001, represent the GARP agreement;
Message: carry different attribute message;
EndMarker (1 byte): stop bits, 0x00.
3.Message structure
Each Message carries certain attributes Attribute, and its structure is as follows:
Attribute?Type | Attribute?1 | ...... | Attribute?n | End?Marker |
Wherein:
Attribute Type (1 byte): 0x01 represents VLAN Identifier;
Attribute: the attribute that operate;
End Marker (1 byte): end mark 0x00.
4.Attribute structure
Each Attribute comprises an independently attribute project, and its structure is as follows:
Attribute?Length | Attribute?Event | ?Attribute?Value |
Wherein:
Attribute Length (attribute length, 1 byte): the byte length (comprising length field itself) of representing this attribute project;
Attribute Event (attribute event, 1 byte):
0x00:LeaveAll
0x01:JoinEmpty
0x02:JoinIn
0x03:LeaveEmpty
0x04:LeaveIn
0x05:Empty;
Attribute Value (property value, 2 bytes): VLAN Identifier
Be that example illustrates the solution of the present invention to create VLAN above.On the other hand, when mainboard was dynamically deleted VLAN, deletion VLAN finished by the LEAVE agreement that GARP handles.This is the process difference with above-mentioned establishment VLAN.But, make slave board and mainboard synchronously delete the process of dynamic vlan subsequently and the procedure that makes slave board and mainboard synchronously create VLAN of top embodiment is identical.Therefore, the Synchronous Processing of active and standby plate about deletion VLAN no longer described in detail.
Although describe the present invention above, should be appreciated that these illustrate the example of just having enumerated concrete enforcement more of the present invention, rather than limitation of the invention.Obviously can carry out various modifications and adopt the various means that are equal to each details of the embodiment of the invention.Therefore, scope of the present invention is only limited by claims.
Claims (7)
1. in switch, the dynamic creation of Virtual Local Area Network and deletion are carried out the method for Hot Spare, described switch includes main with unit and stand-by unit, described main virtual local area fidonetFido with unit and stand-by unit use Generic Attribute Registration Protocol (GARP) carries out the maintenance of vlan information, it is characterized in that described method comprises:
(1) when described master dynamically creates with the unit or deletes VLAN, send the packet that comprises this establishment or deletion VLAN message to described stand-by unit, include in the described packet described establishment or deletion VLAN vlan identifier and with the corresponding port index of described VLAN;
(2) described VLAN is created or deleted to described stand-by unit according to the packet that is received, to be consistent with described main dynamic vlan information with the unit.
2. method according to claim 1 is characterized in that, described step comprises in (1):
(1-1) judge the dynamic vlan that whether has comprised the establishment or the deletion of predetermined quantity in the described packet that will send;
(1-2) in described packet, comprised after the establishment or deletion dynamic vlan of predetermined quantity, sent the described packet of creating or delete dynamic vlan message that comprised to described stand-by unit.
3. method according to claim 2 is characterized in that, described step (1) also comprises:
When (1-3) in described packet, not comprising the establishment VLAN of predetermined quantity, judge whether this packet satisfies the condition that sends to stand-by unit;
(1-4) when described packet satisfies the condition that sends to stand-by unit, send the described packet of creating or delete dynamic vlan message that comprised to described stand-by unit.
4. method according to claim 3 is characterized in that, the step whether described judgment data bag satisfies to stand-by unit transmission condition comprises:
Judge whether stand-by unit is all finished the described processing that has comprised the packet of establishment or deletion dynamic vlan message;
If do not finish described processing, judge that then this packet does not satisfy the condition that sends to described stand-by unit;
If finished described processing, judge whether further that then the global transmission of described packet is masked as very (TRUE);
If the global transmission of described packet is masked as very, judge that then this packet satisfies the condition that sends to stand-by unit.
5. according to each described method in the claim 1 to 4, it is characterized in that, also include in the described packet: type of message, represent that this packet is to increase VLAN still to delete VLAN; Receive the port of VLAN message; VLAN number variable, the establishment that comprises in the expression message or the VLAN number of deletion.
6. method according to claim 5 is characterized in that, further comprises,
(3) after sending described packet to described stand-by unit, with described VLAN number variable zero clearing, and described global transmission sign is set to vacation (FALSE).
7. method according to claim 5 is characterized in that, further comprises: the processing of described establishment VLAN is handled the JOBJ protocol message by GARP and is finished, and the processing of described deletion VLAN is handled the LEAVE protocol message by GARP and finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031220207A CN1300987C (en) | 2003-04-22 | 2003-04-22 | Method for hot backing up creation and delection of virtual local area network in exchanger |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031220207A CN1300987C (en) | 2003-04-22 | 2003-04-22 | Method for hot backing up creation and delection of virtual local area network in exchanger |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1540931A CN1540931A (en) | 2004-10-27 |
CN1300987C true CN1300987C (en) | 2007-02-14 |
Family
ID=34320933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031220207A Expired - Fee Related CN1300987C (en) | 2003-04-22 | 2003-04-22 | Method for hot backing up creation and delection of virtual local area network in exchanger |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1300987C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505282B (en) * | 2009-03-31 | 2013-01-16 | 杭州华三通信技术有限公司 | Method and equipment for deleting VLAN information |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100464529C (en) * | 2006-07-13 | 2009-02-25 | 杭州华三通信技术有限公司 | Special virtual local network realizing method, apparatus and system |
CN100433693C (en) * | 2006-12-27 | 2008-11-12 | 华为技术有限公司 | Method for dynmaic establishing virtual local network table and Ethernet equipment |
CN101483573B (en) * | 2009-02-09 | 2011-05-11 | 杭州华三通信技术有限公司 | Method and network node for GVRP dynamic learning |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1321004A (en) * | 2000-04-25 | 2001-11-07 | 华为技术有限公司 | Method and equipment for swapping active with standby switches |
KR20020051191A (en) * | 2000-12-22 | 2002-06-28 | 엘지전자 주식회사 | Packet switching method for virtual local area network |
JP2002204247A (en) * | 2000-12-28 | 2002-07-19 | Net One Systems Co Ltd | Automatic vlan information registration system |
-
2003
- 2003-04-22 CN CNB031220207A patent/CN1300987C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1321004A (en) * | 2000-04-25 | 2001-11-07 | 华为技术有限公司 | Method and equipment for swapping active with standby switches |
KR20020051191A (en) * | 2000-12-22 | 2002-06-28 | 엘지전자 주식회사 | Packet switching method for virtual local area network |
JP2002204247A (en) * | 2000-12-28 | 2002-07-19 | Net One Systems Co Ltd | Automatic vlan information registration system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505282B (en) * | 2009-03-31 | 2013-01-16 | 杭州华三通信技术有限公司 | Method and equipment for deleting VLAN information |
Also Published As
Publication number | Publication date |
---|---|
CN1540931A (en) | 2004-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102075422B (en) | Multicast management method and two-layer equipment | |
CN1741492A (en) | Equiment and method for controlling group transmitting data retransmission | |
US20150341189A1 (en) | Base Station Deployment Configuration Method for Base Station, Base Station, and Server | |
US20090190587A1 (en) | Method for deploying multicast network, multicast network and control server | |
CN101616014B (en) | Method for realizing cross-virtual private local area network multicast | |
CN102160328A (en) | Central controller for coordinating multicast message transmissions in distributed virtual network switch environment | |
CN102263774A (en) | Method and device for processing source role information | |
CN1825804A (en) | System and method for implementing communication between distributed system boards | |
WO2007054006A1 (en) | A base station of wideband wireless access system and a method for realizing group-broadcast service | |
CN106375223B (en) | A kind of data forwarding system and method based on SDN | |
CN1878112A (en) | Method for realizing virtual LAN aggregation and aggregation exchanger | |
WO2007059679A1 (en) | A method for processing the abnormal multicast service and a network equipment thereof | |
US10200289B2 (en) | Data packet processing method, apparatus, and system in software defined network SDN | |
CN101094510B (en) | Device and method for distributing seeking request to mobile communication system | |
CN101834781B (en) | Media access control address keep-alive device and method for convergence port | |
CN1300987C (en) | Method for hot backing up creation and delection of virtual local area network in exchanger | |
EP2728795B1 (en) | Processing method, device and system for controlling packet broadcast | |
CN109257190B (en) | Multicast processing method, controller, switch and system based on SDN | |
JP2003244185A (en) | Vlan and vlan frame switching apparatus | |
WO2011143947A1 (en) | Method and system for realizing application of machine-to-machine/man terminal based on groups | |
CN100479371C (en) | Method of broadcast transmitting message and an exchange equipment | |
CN1543132A (en) | Method for implementing multicast spanning VLAN | |
CN1302642C (en) | Group broadcast implementing method based on virtual local area network | |
CN104320340A (en) | Method and device for defining study source MAC address in network by software | |
CN1327742C (en) | Method of realizing active in multimedia gooup broadcasting service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070214 Termination date: 20190422 |