CN101286974B - Context determination method for general attributes registration protocol - Google Patents

Context determination method for general attributes registration protocol Download PDF

Info

Publication number
CN101286974B
CN101286974B CN2007100908897A CN200710090889A CN101286974B CN 101286974 B CN101286974 B CN 101286974B CN 2007100908897 A CN2007100908897 A CN 2007100908897A CN 200710090889 A CN200710090889 A CN 200710090889A CN 101286974 B CN101286974 B CN 101286974B
Authority
CN
China
Prior art keywords
port
context
state
registration protocol
spanning
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
Application number
CN2007100908897A
Other languages
Chinese (zh)
Other versions
CN101286974A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007100908897A priority Critical patent/CN101286974B/en
Publication of CN101286974A publication Critical patent/CN101286974A/en
Application granted granted Critical
Publication of CN101286974B publication Critical patent/CN101286974B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for determining context of a generic attribute registration protocol, which comprises the steps that: step S202, the context of the generic attribute registration protocol corresponding to examples of a spanning tree is generated according to the examples of the spanning tree; step S204, the context of a port of the context of the generic attribute registration protocol is set into a setting status, wherein, the setting status is the status of learning generic attribute registration information; step S206, the examples of the spanning tree are carried out and the role of the port is determined; and step S208, the status of the context of the port is set according to the role of the port. Moreover, the invention also discloses a device for determining the context of the generic attribute registration protocol. The method and the device of the invention can easily determine the status of the context of the generic attribute registration protocol.

Description

Method and device confirmed in the Generic Attribute Registration Protocol context
Technical field
The present invention relates to the communications field, and especially, relate to a kind of Generic Attribute Registration Protocol context and confirm method.
Background technology
(Generic Attribute Registration Protocol GARP) is a kind of means that dynamic certain attribute information of distribution spreading registration are provided for being between the exchange member in the same switching network to Generic Attribute Registration Protocol.The GARP agreement can be carried the attribute characteristic that multiple switch need be propagated, so the meaning that the GARP agreement exists in switch embodies through various GARP application protocols exactly.
The GVRP agreement is a kind of application protocol of GARP definition, and it is based on the Virtual Local Area Network attribute in the protocol Dynamic Maintenance switch of GARP.All support the switch of GVRP characteristic all can receive the VLAN log-on message from other switches, and dynamically update local VLAN log-on message, comprise in this information VLAN and these VLAN that switch is current have comprised which port etc.Moreover, all support the switch of GVRP characteristic can also the VLAN log-on message of this locality be propagated to other switches, reach an agreement so that the VLAN of the equipment of interior all the support GVRP characteristics of same local area network (LAN) is configured on the interoperability.Wherein, the VLAN log-on message of propagating through GVRP had both comprised the static vlan information of local manual configuration, also comprised from the dynamic vlan information in other switches.
Spanning-Tree Protocol (STP) is a kind of two layer-management agreements; Be mainly used in network with loop; It can be trimmed to loop-free tree network with loop network, promptly through certain algorithm blocking-up redundant path; Obtain a path, thereby avoid hyperplasia and the Infinite Cyclic of message in loop network.
Multiple Spanning Tree Protocol (MSTP) is on quick and common Spanning-Tree Protocol basis; Introduce the notion in instance and territory, increase cognitive ability, through the mapping relations between VLAN and the spanning-tree instance are set to VLAN; Connect both; Whole network is divided into smaller territory, makes the speed of convergence rapider, can realize the load balancing of data traffic in the network simultaneously.Here, can be configured to many through MSTP in each Multiple Spanning Tree (MST) region and generate tree, each generates between the tree independently of one another, and all is the Internal Spanning Tree (IST) in the territory, and every generates tree and can be called a Multiple Spanning Tree Instance (MSTI).
The context of GARP agreement is corresponding with the instance of Spanning-Tree Protocol, and the attribute information of GARP is only propagated being between the port of spanning-tree forwarding state.When switch uses Spanning-Tree Protocol; If the port quilt adds forwarding state from forbidding forwarding state; And port has been registered certain attribute, and then the attribute of this registration can propagate into other ports with joining request, if port is added into blocked state; And port has been registered certain attribute, and then this attribute will be deleted.
In correlation technique, be to confirm that according to MSTP instance middle port state GARP is contextual.When MSTP just begins to calculate,, must be set to blocked state by port status for avoiding the generation of temporary loop; Therefore need to remove the context of GARP; Make port can not learn attribute information, so, need to use the MSTP instance of GVRP study vlan information just to set up never.
Fig. 1 shows the simple scenario of two switch networkings.At this moment, on two switches, MSTP and GVRP are set all, switch 1 is the MSTP root switch; Dispose the VLAN10 that other instances 1 need, need study VLAN on the switch 2, on switch 2; In order to realize professional load balancing, the expecting state of instance middle port is as shown in table 1.
? Instance 0 Instance 1
Port one Transmit Block
Port 2 Block Transmit
Table 1
Utilize port status to calculate, in the instance 1 on switch 2, the state of default port is a blocked state, and at this moment, two ports all can not be learnt VLAN10; Yet, if let GVRP calculate again after the study earlier, at this moment; For avoiding temporary loop, the port in the instance 1 can be arranged to blocked state with port earlier when calculating, deletion VLAN10; Thereby constantly circulation causes instance 1 can not set up always, is in lasting wavy state.
Therefore, not enough below correlation technique exists: attribute propagations of GARP need be carried out producing between the forwarding port of setting, if port is in the forwarding state of Spanning-Tree Protocol, will log-on message be propagated in other ports; After the forwarding state of Spanning-Tree Protocol was deleted, the port of having registered some attribute can send Leave information in the port that is connected, the deletion registration; In the Single Spanning Tree environment, each port has only a GVRP application entity, and all protocol operations also are in a single context; And in the multiple spanning tree environment, each port has only a GARP application entity, and the operation of agreement is in a plurality of contexts.
Therefore, need a kind of technical scheme that can effectively confirm GARP context state and simple possible.
Summary of the invention
Consider the problems referred to above and make the present invention that for this reason, main purpose of the present invention is to provide a kind of Generic Attribute Registration Protocol context to confirm mechanism.
According to one embodiment of present invention, provide a kind of Generic Attribute Registration Protocol context to confirm method.
This method comprises following processing: step S202, generates and spanning-tree instance corresponding general attributes registration protocol context according to spanning-tree instance; Step S204, the context of the contextual port of Generic Attribute Registration Protocol is set to be provided with state, wherein, the state of state for study general-purpose attribute logging information is set; Step S206 carries out spanning-tree instance, confirms the role of port; And step S208, according to the role of port the context state of port is provided with.
Wherein, in step S202, spanning-tree instance is corresponding one by one with the Generic Attribute Registration Protocol context of generation.
In addition, in step S206,, then in step S208, make the context of port keep being provided with state if confirm that the role of port is that master port, root port, designated port or port can not enable Spanning-Tree Protocol.On the other hand, in step S206, be replacement port or backup port if confirm the role of port, then the context of port is set to the removing state, and carries out relevant treatment, and wherein, the removing state is not for continuing to learn the general-purpose attribute logging information state.Here, relevant treatment can comprise: deletion is in the general-purpose attribute logging information that the port of removing state has been learnt.
According to another embodiment of the present invention, provide a kind of Generic Attribute Registration Protocol context to confirm device.
This device comprises: Generic Attribute Registration Protocol context generation module is used for generating and spanning-tree instance corresponding general attributes registration protocol context according to spanning-tree instance; The port context is provided with module, is used to be provided with the context state of the contextual port of Generic Attribute Registration Protocol, and wherein, the context state of port comprises: state, removing state are set; The port role determination module is used to carry out spanning-tree instance, confirms the role of port; And control module, the role of the port that is used for confirming according to the port role determination module, the control port context is provided with module the context of port is provided with.
Wherein, the Generic Attribute Registration Protocol context of Generic Attribute Registration Protocol context generation module generation is corresponding one by one with spanning-tree instance.
In the context state of port, the state of state for study general-purpose attribute logging information is set; The removing state is not for continuing to learn the state of general-purpose attribute logging information.
If it is that master port, root port, designated port or port can not enable Spanning-Tree Protocol that the port role determination module is confirmed the role of port, then control module control port context is provided with module the port context is remained on the state of setting; On the other hand; If it is replacement port or backup port that the port role determination module is confirmed the role of port; Then control module control port context is provided with module port context and is set to the removing state, and control module deletion is in the general-purpose attribute logging information that the port of removing state has been learnt.
Through technique scheme of the present invention, can use unified mechanism easily to confirm the context state of Generic Attribute Registration Protocol.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the block diagram according to the networking instance with two switches of correlation technique;
Fig. 2 is a flow chart of confirming method according to the Generic Attribute Registration Protocol context of the embodiment of the invention; And
Fig. 3 confirms the block diagram of device according to the Generic Attribute Registration Protocol context of present device embodiment.
Embodiment
Describe embodiments of the invention below with reference to accompanying drawings in detail.
Method embodiment
In the present embodiment, provide a kind of Generic Attribute Registration Protocol context to confirm method, this method can be applied to use Generic Attribute Registration Protocol to carry out the system of attribute logging.
As shown in Figure 2, confirm that according to the Generic Attribute Registration Protocol context of present embodiment method comprises following processing:
Step S202 generates and spanning-tree instance corresponding general attributes registration protocol (GARP) context according to spanning-tree instance; Step S204, the context of the contextual port of Generic Attribute Registration Protocol is set to be provided with state, wherein, the state of state for study general-purpose attribute logging information is set; Step S206 carries out spanning-tree instance, confirms the role of port; And step S208, according to the role of port the context state of port is provided with.
Below will describe each details of above-mentioned steps in detail.
In step S202, spanning-tree instance is corresponding one by one with the Generic Attribute Registration Protocol context of generation, if launch Single Spanning Tree; Then has only a context; Generate tree if launch many grams, then have a plurality of contexts, every generates all corresponding context of tree.
In step S204, preferably, can be in the state of setting by default port.Also do not begin to calculate if Spanning-Tree Protocol does not enable or generate tree, then can make whole port contexts all be in the state of setting, study GARP attribute information.
In step S206,, then in step S208, the context of port is kept being provided with state if confirm that the role of port is that master port, root port, designated port or the port that can convert forwarding state to can not enable Spanning-Tree Protocol; On the other hand, in step S206, be replacement port or backup port if confirm the role of port; Then in step S208, the context of port is set to the removing state, and carries out relevant treatment; Wherein, Above-mentioned removing state is not for continuing to learn the state of general-purpose attribute logging information, and relevant treatment can be: deletion is in the general-purpose attribute logging information that the port of removing state has been learnt.
To combine instantiation to describe method below according to present embodiment.
Same with reference to group network system shown in Figure 1, at this moment, among the above-mentioned step S202, should set up two contexts; In step S104, first default port is in the state of setting, can learn general-purpose attribute logging information, that is, the port one on the switch 2, port 2 is all learnt VLAN10;
? Instance 0 Instance 1
Port one Be provided with Remove
Port 2 Remove Be provided with
Table 2
As shown in table 2, instance 1 generates tree to begin to calculate, and for example, if confirm that port 2 is a root port, then the context of this port still is in the state of setting; If confirm that port one for the replacement port, then need it be set to the removing state, remove its context, and the VLAN10 of study is deleted; Afterwards, when port one received the GVRP message again, because its context has been in the removing state, so no longer learn, switch was in stable state, and The whole calculations is accomplished.
The said method of present embodiment can be realized through following processing: in the examples of ports structure of Spanning-Tree Protocol module, increase a garpContext attribute, realize that the statement of this purpose is following:
typedef?struct?port_instance_t{
The parent pointer * of this structure of/*/
struct instance_t* ?owner_instance;
struct mstp_port_t* owner_port;
PORT_ID?PortIdentifier;
State_tstate;
BOOL?garpContext;
};
Under default situations; This attribute is in the state of setting; When carrying out spanning-tree instance; Role according to port judges that if confirm that the generation tree role of port is that master port, root port and designated port or the port that can convert forwarding state to can not enable Spanning-Tree Protocol, this attribute still is in the state of setting; If confirming the role of port is that other generate the tree role, then remove this attribute, notify GARP module simultaneously, remove the VLAN attribute of study.
Wherein, in the GARP protocol module, port is searched the instance that belongs to according to VLAN earlier receiving, when sending protocol massages, needing to judge the context state of port, just can confirm the context state of GVRP agreement according to the attribute of top interpolation then.
Described here only is the instance that the present invention uses, and use of the present invention is not limited to these instances.
Apparatus embodiments
In the present embodiment, provide a kind of Generic Attribute Registration Protocol context to confirm device.
As shown in Figure 3; Generic Attribute Registration Protocol (GARP) context according to present embodiment confirms that device 300 comprises: Generic Attribute Registration Protocol context generation module 302 is used for generating and spanning-tree instance corresponding general attributes registration protocol context according to spanning-tree instance; The port context is provided with module 304, is used to be provided with the context state of the contextual port of Generic Attribute Registration Protocol, and wherein, the context state of port comprises: state, removing state are set; Port role determination module 306 is used to carry out spanning-tree instance, confirms the role of port; And control module 308, the role of the port that is used for confirming according to port role determination module 306, the control port context is provided with module the context of port is provided with.
Wherein, the Generic Attribute Registration Protocol context of Generic Attribute Registration Protocol context generation module 302 generations is corresponding one by one with spanning-tree instance.
In the context state of port, the state of state for study general-purpose attribute logging information is set; The removing state is not for continuing to learn the state of general-purpose attribute logging information.
If port role determination module 306 confirms that the role of port is that master port, root port, designated port or port can not enable Spanning-Tree Protocol, then control module 308 control port contexts are provided with module 304 the port context are remained on the state of setting; On the other hand; If it is replacement port or backup port that port role determination module 306 is confirmed the role of port; Then control module 308 control port contexts are provided with module 304 port contexts and are set to the removing state, and control module 308 deletion is in the general-purpose attribute logging information that the port of removing state has been learnt.
In sum, different with correlation technique, the state that the present invention proposes the port role that utilize to generate tree rather than port is confirmed the scheme of contextual state, has solved in the correlation technique one or more problems of confirming context state according to port status.By means of technical scheme of the present invention, can easily confirm the context state of Generic Attribute Registration Protocol.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. method confirmed in a Generic Attribute Registration Protocol context, it is characterized in that, comprising:
Step S202 generates and said spanning-tree instance corresponding general attributes registration protocol context according to spanning-tree instance;
Step S204, the context of the contextual port of said Generic Attribute Registration Protocol is set to be provided with state, wherein, the said state that state is set for study general-purpose attribute logging information;
Step S206 carries out said spanning-tree instance, confirms the role of said port; And
Step S208 is provided with the context state of said port according to the role of said port;
Wherein, in said step S206,, then in said step S208, make the context of said port keep the said state that is provided with if confirm that the role of said port is master port, root port, designated port, perhaps said port does not enable Spanning-Tree Protocol; If the role of said port is replacement port or backup port; Then in said step S208, the context of said port is set to the removing state, and carries out relevant treatment; Wherein, said removing state is not for continuing to learn the state of said general-purpose attribute logging information.
2. method confirmed in Generic Attribute Registration Protocol context according to claim 1, it is characterized in that, in said step S202, said spanning-tree instance is corresponding one by one with the said Generic Attribute Registration Protocol context of generation.
3. method confirmed in Generic Attribute Registration Protocol context according to claim 1, it is characterized in that, said relevant treatment comprises:
Deletion is in the general-purpose attribute logging information that the said port of said removing state has been learnt.
4. device confirmed in a Generic Attribute Registration Protocol context, it is characterized in that, comprising:
Generic Attribute Registration Protocol context generation module is used for generating and said spanning-tree instance corresponding general attributes registration protocol context according to spanning-tree instance;
The port context is provided with module; Be used to be provided with the context state of the contextual port of said Generic Attribute Registration Protocol; Wherein, the context state of said port comprises: state, removing state are set, the said state that state is set for study general-purpose attribute logging information; Said removing state is not for continuing to learn the state of said general-purpose attribute logging information;
The port role determination module is used to carry out said spanning-tree instance, confirms the role of said port; And
Control module, the role of the said port that is used for confirming according to said port role determination module controls said port context and module is set the context of said port is provided with;
Wherein, If said port role determination module confirm the role of said port be master port, root port, designated port, or said port do not enable Spanning-Tree Protocol, then said control module is controlled said port context and module is set said port context is remained on the said state that is provided with; If it is replacement port or backup port that said port role determination module is confirmed said port; Then said control module is controlled said port context and the said port context of module is set is set to said removing state, and the deletion of said control module is in the general-purpose attribute logging information that the said port of said removing state has been learnt.
5. device confirmed in Generic Attribute Registration Protocol context according to claim 4, it is characterized in that, the said Generic Attribute Registration Protocol context that said Generic Attribute Registration Protocol context generation module generates is corresponding one by one with said spanning-tree instance.
CN2007100908897A 2007-04-09 2007-04-09 Context determination method for general attributes registration protocol Expired - Fee Related CN101286974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100908897A CN101286974B (en) 2007-04-09 2007-04-09 Context determination method for general attributes registration protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100908897A CN101286974B (en) 2007-04-09 2007-04-09 Context determination method for general attributes registration protocol

Publications (2)

Publication Number Publication Date
CN101286974A CN101286974A (en) 2008-10-15
CN101286974B true CN101286974B (en) 2012-02-08

Family

ID=40058945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100908897A Expired - Fee Related CN101286974B (en) 2007-04-09 2007-04-09 Context determination method for general attributes registration protocol

Country Status (1)

Country Link
CN (1) CN101286974B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945044B (en) * 2010-09-09 2015-10-21 中兴通讯股份有限公司 For attribute logging method and the switching equipment of switching network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6515969B1 (en) * 1999-03-01 2003-02-04 Cisco Technology, Inc. Virtual local area network membership registration protocol for multiple spanning tree network environments

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6515969B1 (en) * 1999-03-01 2003-02-04 Cisco Technology, Inc. Virtual local area network membership registration protocol for multiple spanning tree network environments

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IEEE.IEEE Standards for Local and Metropolitan AreaNetworks:Virtual Bridged Local Area Networks.《IEEE Std 802.1Q-2005》.2006, *
孙克勇,张亮.城域以太网中的动态VLAN注册机制研究.《中国新通信》.2006, *

Also Published As

Publication number Publication date
CN101286974A (en) 2008-10-15

Similar Documents

Publication Publication Date Title
US8175009B2 (en) System and method for generating symmetrical spanning trees
US7835306B2 (en) Translating MST instances between ports of a bridge in a computer network
US6515969B1 (en) Virtual local area network membership registration protocol for multiple spanning tree network environments
CN103825954B (en) A kind of OpenFlow control methods and corresponding plug-in unit, platform and network
US7639699B2 (en) Technique for sharing a physical port among a plurality of virtual bridges on a switch in a computer network
AU2003286511B2 (en) Modified spanning tree protocol for metropolitan area network
US20070258390A1 (en) System and method for running a multiple spanning tree protocol with a very large number of domains
KR101809779B1 (en) Automated traffic engineering for 802.1aq based upon the use of link utilization as feedback into the tie-breaking mechanism
US20060007939A1 (en) Scaling VLANs in a data network
CN100561970C (en) A kind of method and apparatus of realizing load balancing
CN103441932B (en) A kind of Host routes list item generates method and apparatus
US20030169694A1 (en) Use of alternate ports in spanning tree configured bridged virtual local area networks
CN106254244A (en) A kind of merging stream list item method based on SDN
CN103532851A (en) Method and device for processing data flow in distributed link aggregation network
CN103095579B (en) TRILL network interconnected method, Apparatus and system
CN101286974B (en) Context determination method for general attributes registration protocol
CN104283792B (en) WInternet pipelined communication protocols routing algorithms based on content
WO2019041944A1 (en) Method and apparatus for processing packets
CN105049351A (en) Multi-link transparent interconnection algorithm based on SDN
CN102090028B (en) Multiple tree registration protocol
Tien et al. A novel ring-based dual paths approach for reducing redundant traffic in HSR networks
CN105323077B (en) Network broadcasting method based on Openflow technologies and system
CN103746921A (en) Realization method and device for embodiment in PVST (Per Vlan Spanning Tree) networking
Faghani et al. Isolated forwarding strategy in Ethernet networks
CN100461743C (en) Fast transferring method and exchanger

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

Granted publication date: 20120208

Termination date: 20160409

CF01 Termination of patent right due to non-payment of annual fee