CN104486345A - Timer control method of GVRP (GARP VLAN registration protocol) system - Google Patents
Timer control method of GVRP (GARP VLAN registration protocol) system Download PDFInfo
- Publication number
- CN104486345A CN104486345A CN201410801291.4A CN201410801291A CN104486345A CN 104486345 A CN104486345 A CN 104486345A CN 201410801291 A CN201410801291 A CN 201410801291A CN 104486345 A CN104486345 A CN 104486345A
- Authority
- CN
- China
- Prior art keywords
- timer
- attribute
- garp
- entity
- processing module
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a timer control method of a GVRP (GARP VLAN registration protocol) system. According to the method, each GARP (generic attribute registration protocol) entity extends in message information to set attribute information of four timers, when an exchanger and the GARP entity are in communication, the exchanger judges timer information in the message information of the GARP entity so as to enable attribute values of the four times in the exchanger to be consistent with the attribute value of the GARP entity through setting, the identical timer configuration is kept between each of a plurality of GARP entities participating in the GVRP and the exchanger, and the virtual local area network configuration in the GVRP system can keep stable. According to the timer control method based on the GARP entity of the GVRP, oscillation of the virtual local area network environment of the GVRP system can be avoided, and accordingly, the GVRP system performance and the user experience are improved.
Description
Technical field
The present invention relates to GARP timer collocation method, be specifically related to a kind of timer control method of GVRP system.
Background technology
Generic Attribute Registration Protocol (Generic Attribute Registration Protocol is called for short GARP).It is be between the exchange member in same switching network the means providing distribution, propagate, register certain information (attribute such as multicast mac address and VLAN).By GARP mechanism, the configuration information meeting bamboo telegraph on a GARP member is to whole switching network.
GARP itself is only a protocol specification, does not exist in a switch as an entity.The application entity following GARP agreement is called that GARP applies, and GARP main is at present applied as GVRP and GMRP.Agreement existence is in a switch embodied by various GARP application.
The propagation service of VLAN information between GVRP (GARP VLAN Registration Protocol-802.1P, 802.1Q) support equipment.Enabling in GVRP application, can the VLAN information of a manual configuration switch, other all switch in this network can the situation of those VLAN of dynamic knowledge.Terminal node can access any switch and be connected on required VLAN.Terminal will use GVRP just to need to install the network interface unit (Network Interface Card is called for short NIC) of GVRP compatibility.The NIC of GVRP compatibility can configure and join required VLAN or VLAN, then accesses a GVRP-enabled switch.Establish a communications link between NIC and switch, and achieve VLAN connectedness between, achieve the automation configuration of vlan, reduce the workload of manual configuration management.
In GVRP agreement, define 4 class timers: GARP protocol definition four kinds of timers maintain the change of state machines, the transmission of protocol message, the action such as registration, cancellation of attribute.Four kinds of timers are respectively: Hold timer, Join timer, Leave timer and LeaveAll timer.Wherein LeaveAll timer is the timer that the overall situation controls, and other three timers are relevant with each port.As long as a GARP protocol application entity management LeaveAll timer, but there is multiple participation port will have corresponding multiple Hold timer, Join timer and Leave timer.The unit of the timer that GARP agreement uses is centisecond (centsecond).
Summary of the invention
The object of the present invention is to provide a kind of timer control method of GVRP system, in its message information, the attribute information that four kinds of timers are set is expanded by GARP entity, when switch and GARP entity carry out communication, switch is by judging the timer information in the message information of GARP entity, thus the attribute value of the inner four kinds of timers of switch is set and GARP entity attributes value is consistent, the multiple GARP entity making to participate in GVRP agreement with maintain identical timer between switch and configure, VLAN configuration in GVRP system can be kept stable.Provided by the inventionly a kind ofly the concussion of the VLAN environment of GVRP system be can avoid based on the timer control method of GARP entity under GVRP agreement, GVRP systematic function and Consumer's Experience improved with this.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
A kind of GVRP system, be characterized in, this GVRP system comprises:
Multiple GARP entity, each described GARP entity is used for distribution, registers and diffuse information;
Switch, carries out communication with described multiple GARP entity respectively.
Preferably, each described GARP entity comprises:
First processing module, is arranged in described GARP entity;
Network Interface Module, is arranged in described GARP entity, is connected, and carries out communication with described switch with described first processing module;
One Hold timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module;
One Join timer, is arranged in described GARP entity, and is connected with a described Hold timer, the first processing module;
One Leave timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module;
One Leaveall timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module.
Preferably, when the log-on message that GARP entity is transmitted by Network Interface Module acquisition switch, start a Hold timer, when a Hold timer expiry, control the first processing module and all log-on messages received in this stage are generated a join information, and be sent to switch by Network Interface Module;
In order to ensure join information can transfer to other GARP entities by switch, when the log-on message that GARP entity is transmitted by Network Interface Module acquisition switch, start a Join timer simultaneously, when a Join timer expiry, control the first processing module and join information is sent to switch again by Network Interface Module;
When GARP entity obtains the leave information of other GARP entities transmission that switch transmits by Network Interface Module, start a Leave timer, any join information was not received before a Leave timer expiry, then when arriving a Leave timer timing length, controlling the first processing module and nullifying all properties information in this GARP entity in leave information;
When GARP entity starts, control a Leaveall timer to start, when after a Leaveall timer expiry, control the first processing module and send leaveall information by Network Interface Module to switch, guarantee that other GARP entities re-register all properties information of this GARP entity.
Preferably, described switch comprises:
Second processing module, is arranged on described switch inner;
2nd Hold timer, is arranged in described switch, is connected with the second processing module;
2nd Join timer, is arranged in described switch, is connected with described 2nd Hold timer, the second processing module;
2nd Leave timer, is arranged in described switch, is connected with described second processing module;
2nd Leaveall timer, is arranged in described switch, is connected with described second processing module.
A timer control method for GVRP system, is characterized in, this control method comprises following steps:
S1, switch obtains the message information with all GARP entities of its communication;
S2, described switch is resolved respectively, the timer attribute information judged in each message information of acquisition.
Preferably, also comprised before described step S1:
First processing module of each described GARP entity arranges message information, and described message information comprises: agreement ID, multiple message and end mark; Each message is made up of attribute type and attribute list, and each attribute list is made up of multiple attribute and end mark; Each attribute kit contains: attribute length, attribute event and attribute value;
Described first processing module arranges the attribute of the attribute of a Hold timer of this GARP entity, the attribute of a Join timer, the attribute of a Leave timer and a Leaveall timer respectively in described message information.
Preferably,
The attribute kit of the one Hold timer of the first processing module setting of described GARP entity contains: attribute length is L, and attribute event is He, and attribute value is VH1;
The attribute kit of the one Join timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is Je, and attribute value is VJ1;
The attribute kit of the one Leave timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is Le, and attribute value is VL1;
The attribute kit of the one Leaveall timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is LAe, and attribute value is VLA1.
Preferably, also comprised before described step S1:
Second processing module of described switch arranges the attribute of the attribute of the 2nd Hold timer of its inside, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer.
Preferably,
The attribute kit of the 2nd Hold timer of the second process mould setting of described switch contains: attribute length is Ls, and attribute event is He, and attribute value is VH2;
The attribute kit of the 2nd Join timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Je, and attribute value is VJ2;
The attribute kit of the 2nd Leave timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Le, and attribute value is VL2;
The attribute kit of the 2nd Leaveall timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is LAe, and attribute value is VLA2.
Preferably, described step S1 comprises following steps:
Message information after arranging is sent to the second processing module with the described switch of this GARP entity communication by Network Interface Module by the first processing module of each described GARP entity.
Preferably, described step S2 comprises following steps:
S2.1, second processing module of described switch resolves the message information of all GARP entities, and obtains the attribute of the attribute of a Hold timer of each GARP entity, the attribute of a Join timer, the attribute of a Leave timer and a Leaveall timer;
S2.2, described second processing module judges whether the attribute event value in the message information be resolved to is He, Je, Le or LAe, when the attribute event value in described message information is above-mentioned value a period of time, jumps to step S2.3;
S2.3, the timer attribute event value of the described GARP entity that described switch obtains whether with this switch timer attribute event value consistent.
Preferably, described step S2.2 comprises:
S2.2.1, when the attribute event value that described second processing module judges in the message information be resolved to is He, Je, Le or LAe, this second processing module calls the attribute of the attribute of the 2nd Hold timer of switch, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer, judge that whether the timer attribute of described GARP entity is consistent with the timer attribute of this switch, jump to described step S2.3;
S2.2.2, when judging other values of attribute event value in the message information be resolved to when described switch, according to other attribute event situation process of this message information, terminates.
Preferably, described step S2.3 comprises:
S2.3.1, when the attribute event value that described second processing module obtains is LAe, judges that whether the attribute value VLA1 of a Leaveall timer of described GARP entity is consistent with the attribute value VLA2 of described 2nd Leaveall timer;
S2.3.2, when the attribute event value that described switch obtains is Le, judges that whether the attribute value VL1 of a Leave timer of described GARP entity is consistent with the attribute value VL2 of described 2nd Leave timer;
S2.3.3, when the attribute event value that described switch obtains is Je, judges that whether the attribute value VJ1 of a Join timer of described GARP entity is consistent with the attribute value VJ2 of described 2nd Join timer;
S2.3.4, when the attribute event value that described switch obtains is He, judges that whether the attribute value VH1 of a Hold timer of described GARP entity is consistent with the attribute value VH2 of described 2nd Hold timer.
Preferably, described S2.3.1 comprises:
S2.3.1.1, when the attribute value VLA1 of a Leaveall timer of described GARP entity is less than the attribute value VLA2 of described 2nd Leaveall timer, the attribute value of the 2nd Leaveall timer is set to VLA1 by described second processing module, terminates;
S2.3.1.2, when the attribute value VLA1 of a Leaveall timer of described GARP entity is greater than the attribute value VLA2 of described 2nd Leaveall timer, remains unchanged the attribute value of described 2nd Leaveall timer, terminates.
Preferably, described step S2.3.2 comprises:
S2.3.2.1, when the attribute value VL1 of a Leave timer of described GARP entity is less than the attribute value VL2 of described 2nd Leave timer, the attribute value of the 2nd Leave timer is set to VL1 by described second processing module, terminates;
S2.3.2.2, when the attribute value VL1 of a Leave timer of described GARP entity is greater than the attribute value VL2 of described 2nd Leave timer, remains unchanged the attribute value of described 2nd Leave timer, terminates.
Preferably, described step S2.3.3 comprises:
S2.3.3.1, when the attribute value VJ1 of a Join timer of described GARP entity is less than the attribute value VJ2 of described 2nd Join timer, the attribute value of the 2nd Join timer is set to VJ1 by described switch, terminates;
S2.3.3.2, when the attribute value VJ1 of a Join timer of described GARP entity is greater than the attribute value VJ2 of described 2nd Join timer, remains unchanged the attribute value of described 2nd Join timer, terminates.
Preferably, described step S2.3.4 comprises:
S2.3.4.1, when the attribute value VH1 of a Hold timer of described GARP entity is less than the attribute value VH2 of described 2nd Hold timer, the attribute value of the 2nd Hold timer is set to VH1 by described switch, terminates;
S2.3.4.2, when the attribute value VH1 of a Hold timer of described GARP entity is greater than the attribute value VH2 of described 2nd Hold timer, remains unchanged the attribute value of described 2nd Hold timer, terminates.
The present invention compared with prior art has the following advantages:
A kind of timer control method based on GARP entity under GVRP agreement provided by the invention, adds the robustness of GVRP system cloud gray model, stability; Avoid due to the timer parameter of GARP entity and the timer parameter of switch inconsistent time, the concussion that the VLAN environment of GVRP system produces when configuring, improves GVRP systematic function and Consumer's Experience with this.
Accompanying drawing explanation
Fig. 1 is the GARP entity structure schematic diagram of the timer control method of a kind of GVRP system of the present invention.
Fig. 2 is the overall flow figure of the timer control method of a kind of GVRP system of the present invention.
Fig. 3 is the idiographic flow schematic diagram of the timer control method of a kind of GVRP system of the present invention.
Fig. 4 is the embodiment schematic diagram of the timer control method of a kind of GVRP system of the present invention.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
A kind of GVRP system, this GVRP system comprises: multiple GARP entity, switch.Wherein, switch carries out communication with multiple GARP entity respectively.Each GARP entity is used for distribution, registers and diffuse information.
As shown in Figure 1, each GARP entity comprises and is arranged in GARP entity: the first processing module 1, Network Interface Module 2, a Hold timer 3, a Join timer 4, a Leave timer 5 and a Leaveall timer 6.
Wherein, Network Interface Module 2 is connected with the first processing module 1, and carries out communication with switch.One Hold timer 3 is connected with Network Interface Module 2, first processing module 1.One Join timer 4 is connected with Hold timer 3, first processing module 1.One Leave timer 5 is connected with Network Interface Module 2, first processing module 1.One Leaveall timer 6 is connected with Network Interface Module 2, first processing module 1.
Switch comprises and is arranged on switch inside: the second processing module, the 2nd Hold timer, the 2nd Join timer, the 2nd Leave timer and the 2nd Leaveall timer.
Wherein, the 2nd Hold timer is connected with the second processing module; 2nd Join timer is connected with the 2nd Hold timer, the second processing module; 2nd Leave timer is connected with the second processing module; 2nd Leaveall timer is connected with the second processing module.
In the present invention, when GARP entity obtains by Network Interface Module 2 log-on message that switch transmits, start a Hold timer 3, when Hold timer 3 time-out, control the first processing module 1 and all log-on messages received in this stage are generated a join information, and be sent to switch by Network Interface Module 2.
In the present embodiment, this join information type is PDU message information.
In order to ensure join information can transfer to other GARP entities by switch, when GARP entity obtains by Network Interface Module 2 log-on message that switch transmits, start a Join timer 4 simultaneously, when Join timer 4 time-out, control the first processing module 1 and join information is sent to switch again by Network Interface Module 2.
When GARP entity obtains the leave information of other GARP entities transmission that switch transmits by Network Interface Module 2, start a Leave timer 5, any join information was not received before Leave timer 5 time-out, then when arriving Leave timer 5 timing length, controlling the first processing module 1 and nullifying all properties information in this GARP entity in leave information;
When GARP entity starts, control a Leaveall timer 6 to start, when after Leaveall timer 6 time-out, control the first processing module 1 and send leaveall information by Network Interface Module 2 to switch, guarantee that other GARP entities re-register all properties information of this GARP entity.
As shown in Figure 2.Based on a timer control method for GARP entity under GVRP agreement, this control method comprises following steps:
S1, switch obtains the message information with all GARP entities of its communication.This step S1 comprises following steps:
Message information after arranging is sent to the second processing module with the switch of this GARP entity communication by Network Interface Module 2 by the first processing module 1 of each GARP entity.
Two steps were also comprised before step S1, respectively:
Step one: the first processing module 1 of each GARP entity arranges message information.
As shown in Figure 4, the message information of GARP entity is PDU message, and this PDU message information comprises: agreement ID, multiple message and end mark; Each message is made up of attribute type and attribute list, and each attribute list is made up of multiple attribute and end mark; Each attribute kit contains: attribute length, attribute event and attribute value.
First processing module 1 arranges the attribute of the attribute of a Hold timer 3 of this GARP entity, the attribute of a Join timer 4, the attribute of a Leave timer 5 and a Leaveall timer 6 respectively in message information.
The attribute kit of the one Hold timer 3 of the first processing module 1 setting of each GARP entity contains: attribute length is L, and attribute event is He, and attribute value is VH1.In the present embodiment, L=4, H e=7, VH1=1.Then the timing length of a Hold timer 3 is 0.1s.
The attribute kit of the one Join timer 4 of the first processing module 1 setting of this GARP entity contains: attribute length is L, and attribute event is Je, and attribute value is VJ1.In the present embodiment, L=4, Je=8, VH1=2.Then the timing length of a Join timer 4 is 0.2s.
The attribute kit of the one Leave timer 5 of the first processing module 1 setting of this GARP entity contains: attribute length is L, and attribute event is Le, and attribute value is VL1.In the present embodiment, L=4, Le=9, VH1=6.Then the timing length of a Leave timer 5 is 0.6s.
The attribute kit of the one Leaveall timer 6 of the first processing module 1 setting of this GARP entity contains: attribute length is L, and attribute event is LAe, and attribute value is VLA1.In the present embodiment, L=4, LAe=6, VH1=100.Then the timing length of a Leaveall timer 6 is 10s.
Step 2: the second processing module of switch arranges the attribute of the attribute of the 2nd Hold timer of its inside, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer.
In the present embodiment, the attribute kit of the 2nd Hold timer of the second process mould setting of switch contains: attribute length is Ls, and attribute event is He, and attribute value is VH2.
The attribute kit of the 2nd Join timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Je, and attribute value is VJ2.
The attribute kit of the 2nd Leave timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Le, and attribute value is VL2.
The attribute kit of the 2nd Leaveall timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is LAe, and attribute value is VLA2.
As shown in Figure 3, S2, switch is resolved respectively, the timer attribute information judged in each message information of acquisition.This step S2 comprises following steps:
S2.1, second processing module of switch resolves the message information of all GARP entities, and obtains the attribute of the attribute of a Hold timer 3 of each GARP entity, the attribute of a Join timer 4, the attribute of a Leave timer 5 and a Leaveall timer 6.
S2.2, the second processing module judges whether the attribute event value in the message information be resolved to is He, Je, Le or LAe, when the attribute event value in message information is above-mentioned value a period of time, jumps to step S2.3.This step S2.2 comprises:
S2.2.1, when the attribute event value that the second processing module judges in the message information be resolved to is He, Je, Le or LAe, this second processing module calls the attribute of the attribute of the 2nd Hold timer of switch, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer, judge that whether the timer attribute of GARP entity is consistent with the timer attribute of this switch, jump to step S2.3.
In the present embodiment, when the attribute event value in the PDU message information be resolved to is 6,7, when 8 or 9, the second processing module of switch calls the attribute of the attribute of the 2nd Hold timer of switch, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer.
S2.2.2, when judging other values of attribute event value in the message information be resolved to when switch, according to other attribute event situation process of this message information, terminates.
In the present embodiment, when the attribute event value in the PDU message information be resolved to is 0,1,2,3,4 or 5, the second processing module judges that this attribute event represents other events, and the second processing module is carried out according to this event handling flow process.
S2.3, the timer attribute event value of the GARP entity that switch obtains whether with this switch timer attribute event value consistent.This step S2.3 comprises:
S2.3.1, when the attribute event value that the second processing module obtains is LAe, judges that whether the attribute value VLA1 of a Leaveall timer 6 of GARP entity is consistent with the attribute value VLA2 of the 2nd Leaveall timer.This S2.3.1 comprises:
S2.3.1.1, when the attribute value VLA1 of a Leaveall timer 6 of GARP entity is less than the attribute value VLA2 of the 2nd Leaveall timer, the attribute value of the 2nd Leaveall timer is set to VLA1 by the second processing module, terminates.
S2.3.1.2, when the attribute value VLA1 of a Leaveall timer 6 of GARP entity is greater than the attribute value VLA2 of the 2nd Leaveall timer, remains unchanged the attribute value of the 2nd Leaveall timer, terminates.
In the present embodiment, when the attribute event value that the second processing module is resolved to the PDU message information of reception is 6, illustrate that this time is Leaveall timer event, then the second processing module obtains the attribute value VLA2 of the 2nd Leaveall timer of interchanger, when the second processing module finds VLA2>100, then VLA2=100; When the second processing module finds VLA2<100, VLA2 value does not change.
S2.3.2, when the attribute event value that switch obtains is Le, judges that whether the attribute value VL1 of a Leave timer 5 of GARP entity is consistent with the attribute value VL2 of the 2nd Leave timer.This step S2.3.2 comprises:
S2.3.2.1, when the attribute value VL1 of a Leave timer 5 of GARP entity is less than the attribute value VL2 of the 2nd Leave timer, the attribute value of the 2nd Leave timer is set to VL1 by the second processing module, terminates.
S2.3.2.2, when the attribute value VL1 of a Leave timer 5 of GARP entity is greater than the attribute value VL2 of the 2nd Leave timer, remains unchanged the attribute value of the 2nd Leave timer, terminates.
In the present embodiment, when the attribute event value that the second processing module is resolved to the PDU message information of reception is 6, illustrate that this time is Leaveall timer event, then the second processing module obtains the attribute value VL2 of the 2nd Leaveall timer of interchanger, when the second processing module finds VL2>6, then VL2=6; When the second processing module finds VL2<6, VL2 value does not change.
S2.3.3, when the attribute event value that switch obtains is Je, judges that whether the attribute value VJ1 of a Join timer 4 of GARP entity is consistent with the attribute value VJ2 of the 2nd Join timer.This step S2.3.3 comprises:
S2.3.3.1, when the attribute value VJ1 of a Join timer 4 of GARP entity is less than the attribute value VJ2 of the 2nd Join timer, the attribute value of the 2nd Join timer is set to VJ1 by switch, terminates.
S2.3.3.2, when the attribute value VJ1 of a Join timer 4 of GARP entity is greater than the attribute value VJ2 of the 2nd Join timer, remains unchanged the attribute value of the 2nd Join timer, terminates.
In the present embodiment, when the attribute event value that the second processing module is resolved to the PDU message information of reception is 6, illustrate that this time is Leaveall timer event, then the second processing module obtains the attribute value VJ2 of the 2nd Leaveall timer of interchanger, when the second processing module finds VJ2>2, then VJ2=2; When the second processing module finds VJ2<2, VJ2 value does not change.
S2.3.4, when the attribute event value that switch obtains is He, judges that whether the attribute value VH1 of a Hold timer 3 of GARP entity is consistent with the attribute value VH2 of the 2nd Hold timer.This step S2.3.4 comprises:
S2.3.4.1, when the attribute value VH1 of a Hold timer 3 of GARP entity is less than the attribute value VH2 of the 2nd Hold timer, the attribute value of the 2nd Hold timer is set to VH1 by switch, terminates.
S2.3.4.2, when the attribute value VH1 of a Hold timer 3 of GARP entity is greater than the attribute value VH2 of the 2nd Hold timer, remains unchanged the attribute value of the 2nd Hold timer, terminates.
In the present embodiment, when the attribute event value that the second processing module is resolved to the PDU message information of reception is 6, illustrate that this time is Leaveall timer event, then the second processing module obtains the attribute value VH2 of the 2nd Leaveall timer of interchanger, when the second processing module finds VH2>1, then VH2=1.
According to timer control method provided by the invention, after the timer of any GARP entity upgrades, when next time sends message information, the data after renewal and the original timer configuration data of non-usage can be used.After several times are mutual, the GARP entity run in GVRP system, every timer parameter of switch will be consistent, thus can avoid the concussion of the VLAN environment of GVRP system, improve GVRP systematic function and Consumer's Experience with this.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.
Claims (16)
1. a GVRP system, is characterized in that, this GVRP system comprises:
Multiple GARP entity, each described GARP entity is used for distribution, registers and diffuse information;
Switch, carries out communication with described multiple GARP entity respectively;
Each described GARP entity comprises:
First processing module, is arranged in described GARP entity;
Network Interface Module, is arranged in described GARP entity, is connected, and carries out communication with described switch with described first processing module;
One Hold timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module;
One Join timer, is arranged in described GARP entity, and is connected with a described Hold timer, the first processing module;
One Leave timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module;
One Leaveall timer, is arranged in described GARP entity, and is connected with described Network Interface Module, the first processing module.
2. GVRP system as claimed in claim 1, it is characterized in that, described switch comprises:
When the log-on message that GARP entity is transmitted by Network Interface Module acquisition switch, start a Hold timer, when a Hold timer expiry, control the first processing module and all log-on messages received in this stage are generated a join information, and be sent to switch by Network Interface Module;
In order to ensure join information can transfer to other GARP entities by switch, when the log-on message that GARP entity is transmitted by Network Interface Module acquisition switch, start a Join timer simultaneously, when a Join timer expiry, control the first processing module and join information is sent to switch again by Network Interface Module;
When GARP entity obtains the leave information of other GARP entities transmission that switch transmits by Network Interface Module, start a Leave timer, any join information was not received before a Leave timer expiry, then when arriving a Leave timer timing length, controlling the first processing module and nullifying all properties information in this GARP entity in leave information;
When GARP entity starts, control a Leaveall timer to start, when after a Leaveall timer expiry, control the first processing module and send leaveall information by Network Interface Module to switch, guarantee that other GARP entities re-register all properties information of this GARP entity.
3. GVRP system as claimed in claim 1, it is characterized in that, described switch comprises:
Second processing module, is arranged on described switch inner;
2nd Hold timer, is arranged in described switch, is connected with the second processing module;
2nd Join timer, is arranged in described switch, is connected with described 2nd Hold timer, the second processing module;
2nd Leave timer, is arranged in described switch, is connected with described second processing module;
2nd Leaveall timer, is arranged in described switch, is connected with described second processing module.
4. a timer control method for GVRP system, is characterized in that, this control method comprises following steps:
S1, switch obtains the message information with all GARP entities of its communication;
S2, described switch is resolved respectively, the timer attribute information judged in each message information.
5. the timer control method of GVRP system as claimed in claim 4, is characterized in that, also comprised before described step S1:
First processing module of each described GARP entity arranges message information, and described message information comprises: agreement ID, multiple message and end mark; Each message is made up of attribute type and attribute list, and each attribute list is made up of multiple attribute and end mark; Each attribute kit contains: attribute length, attribute event and attribute value;
Described first processing module arranges the attribute of the attribute of a Hold timer of this GARP entity, the attribute of a Join timer, the attribute of a Leave timer and a Leaveall timer respectively in described message information.
6. the timer control method of GVRP system as claimed in claim 5, is characterized in that,
The attribute kit of the one Hold timer of the first processing module setting of described GARP entity contains: attribute length is L, and attribute event is He, and attribute value is VH1;
The attribute kit of the one Join timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is Je, and attribute value is VJ1;
The attribute kit of the one Leave timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is Le, and attribute value is VL1;
The attribute kit of the one Leaveall timer of the first processing module setting of this GARP entity contains: attribute length is L, and attribute event is LAe, and attribute value is VLA1.
7. the timer control method of GVRP system as claimed in claim 6, is characterized in that, also comprised before described step S1:
Second processing module of described switch arranges the attribute of the attribute of the 2nd Hold timer of its inside, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer.
8. the timer control method of GVRP system as claimed in claim 7, is characterized in that,
The attribute kit of the 2nd Hold timer of the second process mould setting of described switch contains: attribute length is Ls, and attribute event is He, and attribute value is VH2;
The attribute kit of the 2nd Join timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Je, and attribute value is VJ2;
The attribute kit of the 2nd Leave timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is Le, and attribute value is VL2;
The attribute kit of the 2nd Leaveall timer of the second process mould setting of this switch contains: attribute length is Ls, and attribute event is LAe, and attribute value is VLA2.
9. the timer control method of base GVRP system as claimed in claim 4, it is characterized in that, described step S1 comprises following steps:
Message information after arranging is sent to the second processing module with the described switch of this GARP entity communication by Network Interface Module by the first processing module of each described GARP entity.
10. the timer control method of GVRP system as claimed in claim 8, it is characterized in that, described step S2 comprises following steps:
S2.1, second processing module of described switch resolves the message information of all GARP entities, and obtains the attribute of the attribute of a Hold timer of each GARP entity, the attribute of a Join timer, the attribute of a Leave timer and a Leaveall timer;
S2.2, described second processing module judges whether the attribute event value in the message information be resolved to is He, Je, Le or LAe, when the attribute event value in described message information is above-mentioned value a period of time, jumps to step S2.3;
S2.3, the timer attribute event value of the described GARP entity that described switch obtains whether with this switch timer attribute event value consistent.
The timer control method of 11. GVRP systems as claimed in claim 10, it is characterized in that, described step S2.2 comprises:
S2.2.1, when the attribute event value that described second processing module judges in the message information be resolved to is He, Je, Le or LAe, this second processing module calls the attribute of the attribute of the 2nd Hold timer of switch, the attribute of the 2nd Join timer, the attribute of the 2nd Leave timer and the 2nd Leaveall timer, judge that whether the timer attribute of described GARP entity is consistent with the timer attribute of this switch, jump to described step S2.3;
S2.2.2, when described switch judges that attribute event value in the message information be resolved to is as other values, according to other attribute event situation process of this message information, terminates.
The timer control method of 12. GVRP systems as claimed in claim 10, it is characterized in that, described step S2.3 comprises:
S2.3.1, when the attribute event value that described second processing module obtains is LAe, judges that whether the attribute value VLA1 of a Leaveall timer of described GARP entity is consistent with the attribute value VLA2 of described 2nd Leaveall timer;
S2.3.2, when the attribute event value that described switch obtains is Le, judges that whether the attribute value VL1 of a Leave timer of described GARP entity is consistent with the attribute value VL2 of described 2nd Leave timer;
S2.3.3, when the attribute event value that described switch obtains is Je, judges that whether the attribute value VJ1 of a Join timer of described GARP entity is consistent with the attribute value VJ2 of described 2nd Join timer;
S2.3.4, when the attribute event value that described switch obtains is He, judges that whether the attribute value VH1 of a Hold timer of described GARP entity is consistent with the attribute value VH2 of described 2nd Hold timer.
The timer control method of 13. GVRP systems as claimed in claim 12, it is characterized in that, described S2.3.1 comprises:
S2.3.1.1, when the attribute value VLA1 of a Leaveall timer of described GARP entity is less than the attribute value VLA2 of described 2nd Leaveall timer, the attribute value of the 2nd Leaveall timer is set to VLA1 by described second processing module, terminates;
S2.3.1.2, when the attribute value VLA1 of a Leaveall timer of described GARP entity is greater than the attribute value VLA2 of described 2nd Leaveall timer, remains unchanged the attribute value of described 2nd Leaveall timer, terminates.
The timer control method of 14. GVRP systems as claimed in claim 12, it is characterized in that, described step S2.3.2 comprises:
S2.3.2.1, when the attribute value VL1 of a Leave timer of described GARP entity is less than the attribute value VL2 of described 2nd Leave timer, the attribute value of the 2nd Leave timer is set to VL1 by described second processing module, terminates;
S2.3.2.2, when the attribute value VL1 of a Leave timer of described GARP entity is greater than the attribute value VL2 of described 2nd Leave timer, remains unchanged the attribute value of described 2nd Leave timer, terminates.
The timer control method of 15. GVRP systems as claimed in claim 12, it is characterized in that, described step S2.3.3 comprises:
S2.3.3.1, when the attribute value VJ1 of a Join timer of described GARP entity is less than the attribute value VJ2 of described 2nd Join timer, the attribute value of the 2nd Join timer is set to VJ1 by described switch, terminates;
S2.3.3.2, when the attribute value VJ1 of a Join timer of described GARP entity is greater than the attribute value VJ2 of described 2nd Join timer, remains unchanged the attribute value of described 2nd Join timer, terminates.
The timer control method of 16. GVRP systems as claimed in claim 12, it is characterized in that, described step S2.3.4 comprises:
S2.3.4.1, when the attribute value VH1 of a Hold timer of described GARP entity is less than the attribute value VH2 of described 2nd Hold timer, the attribute value of the 2nd Hold timer is set to VH1 by described switch, terminates;
S2.3.4.2, when the attribute value VH1 of a Hold timer of described GARP entity is greater than the attribute value VH2 of described 2nd Hold timer, remains unchanged the attribute value of described 2nd Hold timer, terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410801291.4A CN104486345A (en) | 2014-12-22 | 2014-12-22 | Timer control method of GVRP (GARP VLAN registration protocol) system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410801291.4A CN104486345A (en) | 2014-12-22 | 2014-12-22 | Timer control method of GVRP (GARP VLAN registration protocol) system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104486345A true CN104486345A (en) | 2015-04-01 |
Family
ID=52760849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410801291.4A Pending CN104486345A (en) | 2014-12-22 | 2014-12-22 | Timer control method of GVRP (GARP VLAN registration protocol) system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104486345A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556622A (en) * | 2003-12-30 | 2004-12-22 | 烽火通信科技股份有限公司 | Universal network equipment register method based on universal attribute register protocol |
CN1823507A (en) * | 2003-09-25 | 2006-08-23 | 思科技术公司 | System and method for registering and unregistering membership in virtual local area networks |
US7864789B2 (en) * | 2002-03-28 | 2011-01-04 | Ciena Corporation | Signaling methods for telecommunicaton system for exchanging frames over ethernet interfaces and devices for implementing such methods |
CN103384265A (en) * | 2013-05-23 | 2013-11-06 | 上海斐讯数据通信技术有限公司 | Method and system for realizing application layer of GVRP |
-
2014
- 2014-12-22 CN CN201410801291.4A patent/CN104486345A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7864789B2 (en) * | 2002-03-28 | 2011-01-04 | Ciena Corporation | Signaling methods for telecommunicaton system for exchanging frames over ethernet interfaces and devices for implementing such methods |
CN1823507A (en) * | 2003-09-25 | 2006-08-23 | 思科技术公司 | System and method for registering and unregistering membership in virtual local area networks |
CN1556622A (en) * | 2003-12-30 | 2004-12-22 | 烽火通信科技股份有限公司 | Universal network equipment register method based on universal attribute register protocol |
CN103384265A (en) * | 2013-05-23 | 2013-11-06 | 上海斐讯数据通信技术有限公司 | Method and system for realizing application layer of GVRP |
Non-Patent Citations (1)
Title |
---|
何爽: "机箱式三层交换机中GVRP协议的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105050087B (en) | A kind of method and system of multi-protocols compatible equipment access WiFi network | |
CN104469660B (en) | Network-building method based on bluetooth | |
CN100471162C (en) | Method for releasing and processing virtual circuit information and supplier edge device | |
CN111010324A (en) | Household appliance ad hoc network method and system based on BLE MESH network protocol | |
CN104937896A (en) | Method for processing address resolution protocol message, forwarder and controller | |
CN101459536A (en) | Port configuration method and switching device | |
CN102291259B (en) | Low-voltage power line communication network layer management method based on multi-master station mode | |
CN107222321B (en) | Configuration message sending method and device | |
CN105578568A (en) | WIFI communication apparatus and WIFI network establishing method | |
CN107820262B (en) | Parameter configuration method, device and system | |
CN107769946B (en) | Network configuration method and network equipment | |
CN104580308A (en) | Virtual desktop reappearing and pushing method and device and virtual desktop system | |
CN103634657A (en) | Television and mobile terminal synchronous WIFI connection setup method and device | |
CN106533973A (en) | Method and system for distributing service message, and equipment | |
CN104092684A (en) | Method and device for supporting VPN based on OpenFlow protocol | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
US9300529B2 (en) | Communication system and network relay device | |
CN103368847A (en) | Broadband convergence communication method and router | |
CN102710510B (en) | Information processing method, apparatus and system | |
WO2015058413A1 (en) | Data configuration method and network management server | |
CN113260072B (en) | Mesh networking traffic scheduling method, gateway equipment and storage medium | |
CN105306360B (en) | A kind of method and device for realizing the management of VRRP group | |
CN104486345A (en) | Timer control method of GVRP (GARP VLAN registration protocol) system | |
CN115776678A (en) | Networking method, server and medium based on 5G local area network | |
CN104518928A (en) | Method and system for transmission of remote image messages through RPR (resilient packet ring) network |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150401 |