CN102098213A - Method and device for adding/exiting physical port to/from aggregation port - Google Patents

Method and device for adding/exiting physical port to/from aggregation port Download PDF

Info

Publication number
CN102098213A
CN102098213A CN2010105807659A CN201010580765A CN102098213A CN 102098213 A CN102098213 A CN 102098213A CN 2010105807659 A CN2010105807659 A CN 2010105807659A CN 201010580765 A CN201010580765 A CN 201010580765A CN 102098213 A CN102098213 A CN 102098213A
Authority
CN
China
Prior art keywords
port
physical port
aggregation
gvrp
aggregation port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010105807659A
Other languages
Chinese (zh)
Other versions
CN102098213B (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 CN201010580765.9A priority Critical patent/CN102098213B/en
Priority to PCT/CN2011/071609 priority patent/WO2012075748A1/en
Publication of CN102098213A publication Critical patent/CN102098213A/en
Application granted granted Critical
Publication of CN102098213B publication Critical patent/CN102098213B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The invention provides a method and a device for adding/exiting a physical port to/from an aggregation port, wherein the method for adding the physical port to the aggregation port comprises the following steps of: executing a command for adding the physical port to the aggregation port; judging whether the generic attribute registration protocol (GVRP) of the physical port is started; and if so, releasing the GID resource (GVRP information declaration) of the physical port and adding the physical port to the aggregation port. By adopting the method and the device, when the physical port is added to the aggregation port, the GID resource of the aggregation port is released, so the problem that the GID resource in the GVRP cannot be utilized reasonably is solved. Therefore, the effects of saving CUP (central processing unit) and the storage space are achieved.

Description

Physical port adds or withdraws from the method and the device of aggregation port
Technical field
The present invention relates to the communications field, add or withdraw from the method and the device of aggregation port in particular to a kind of physical port.
Background technology
The support of VLAN in the switch (Virtual Local Area Network, VLAN) is a very important function, when the scale of network is bigger, to the management more complicated of VLAN.GVRP (GARP VLAN RegistrationProtocol, GARP VLAN log-in protocol) is exactly the agreement that defines for the dynamic-configuration that solves the VLAN attribute.Minority switch in the network is configured, and its vlan information can be distributed propagation in network, makes all switches on the network can both be in the VLAN configuration consistent mutually, realizes free communication.
Owing to can have aggregation port, aggregated links in the network, so the GVRP agreement just becomes important to the support of aggregation port.Aggregation port be exactly one by because of the polymerization reason, any grouping of one or several port form can unique identification entity.In addition, GVRP is an application protocol of GARP agreement, it can use GARP (GenericAttribute RegistrationProtocol, Generic Attribute Registration Protocol) GID in the agreement (GARP Information Declaration, GARP information declaration) resource is in the time of a port open GVRP agreement, can take a GID, generally speaking, an equipment can be in a plurality of port open GVRP agreements, so utilization also is a very crucial problem to the GID reasonable resources.
And add in the technical scheme of aggregation port at existing physical port, usually, physical port does not discharge its GID resource, and therefore, the GID resource of equipment can not rationally be utilized.
Summary of the invention
Main purpose of the present invention is to provide a kind of physical port to add/withdraw from the method and apparatus of aggregation port, the problem that can not rationally be utilized with the GID resource that solves the said equipment at least.
According to an aspect of the present invention, provide a kind of physical port to add the method for aggregation port, having comprised: carry out the instruction that physical port adds aggregation port; Judge whether physical port has opened general virtual local network log-on protocol GVRP function; If then physical port discharges the GID resource, add aggregation port.
Further, opened at aggregation port under the situation of GVRP function, physical port discharges the GID resource, add aggregation port, comprise: physical port is nullified its dynamic virtual local area network (LAN) vlan, discharge the GID resource, add the dynamic vlan at aggregation port place, and use same GID resource with aggregation port.
Further, judge that whether physical port has been opened before the GVRP function, also comprises: whether the static vlan attribute of judging physical port is consistent with aggregation port; If judge further then whether physical port has opened the GVRP function; If not, then physical port adds the aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
Further, physical port discharges the GID resource, adds after the aggregation port, and also comprise: physical port withdraws from aggregation port.
According to a further aspect in the invention, provide a kind of physical port to withdraw from the method for aggregation port, having comprised: carried out the instruction that physical port withdraws from aggregation port; Physical port withdraws from aggregation port, and judges before physical port adds aggregation port whether opened the GVRP function; If then physical port is applied for the GID resource again, and the GVRP function of opening physical port.
Further, opened at aggregation port under the situation of GVRP function, physical port withdraws from aggregation port, comprising: physical port is nullified its dynamic vlan, discharges the GID resource, and closes the GVRP function.
According to a further aspect of the invention, provide a kind of physical port to add the device of aggregation port, having comprised: added the instruction Executive Module, be used to carry out the instruction that physical port adds aggregation port; First judge module is used to judge whether physical port has opened the GVRP function; Release module is used for the GID resource of release physical port, and physical port is added aggregation port.
Further, opened at aggregation port under the situation of GVRP function, release module also is used to nullify the dynamic vlan of physical port, the GID resource of release physical port, and physical port added the dynamic vlan at aggregation port place, make physical port and aggregation port use same GID resource
Further, also comprise: second judges mould, is used for before first judge module judges whether physical port has opened the GVRP function, judges whether the static vlan attribute of physical port is consistent with aggregation port; If not, then physical port adds the aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
According to a further aspect of the invention, provide a kind of physical port to withdraw from the device of aggregation port, having comprised: the exit instruction Executive Module is used to carry out the instruction that physical port withdraws from aggregation port; Withdraw from module, be used for physical port and withdraw from aggregation port, and judge before physical port adds aggregation port whether opened the GVRP function; Apply for module, be used for applying for again the GID resource of physical port, and open the GVRP function of physical port.
By the present invention, physical port discharges the GID resource of self when adding aggregation port, solved the problem of the GID resource rational utilization in the GVRP agreement, and then has reached the effect of saving CPU and memory space.
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 flow chart that adds the aggregation port of opening the GVRP function according to the physical port of the embodiment of the invention one;
Fig. 2 is the flow chart that adds the aggregation port of not opening GVRP according to the physical port of the embodiment of the invention two;
Fig. 3 is the flow chart that withdraws from the aggregation port of opening GVRP according to the physical port of the embodiment of the invention three;
Fig. 4 is the flow chart that withdraws from the aggregation port of not opening GVRP according to the physical port of the embodiment of the invention four;
Fig. 5 is the apparatus module block diagram that adds aggregation port according to the physical port of the embodiment of the invention; And
Fig. 6 is the apparatus module block diagram that withdraws from aggregation port according to the physical port of the embodiment of the invention four.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Each port open GVRP function all will take a GID (general information statement) structure.Based on consideration, when realizing GVRP, limited the port number of the maximum GVRP of unlatching function on the switch to CPU and internal memory.After agreement is opened, can disposable application maximum open several GID internal memories of port, distribute the GID structure of a free time behind each port open.So just relate to, port adds, when withdrawing from aggregation port, how to guarantee that the GVRP function normally moves, and how to make full use of limited GID structure.
The following examples are mainly concerned with four kinds of application scenarioss, are described with four embodiment respectively.
Embodiment one
Present embodiment has mainly been described the flow process that the aggregation port of GVRP function is opened in the physical port adding, as shown in Figure 1, comprises following steps:
Step S101 carries out the instruction that physical port adds aggregation port.
Step S102 judges whether the static vlan attribute of physical port is consistent with aggregation port, if consistent, then execution in step 104; If inconsistent, then execution in step 103.
Step S103, physical port add the aggregation port failure, and physical port, the original attribute of aggregation port all remain unchanged.
Step S104 judges whether physical port has opened the GVRP function, if unlatching, then execution in step S105; If do not open, then execution in step 106.
Step S105, physical port nullify its dynamic vlan, discharge the GID resource, add the dynamic vlan at aggregation port place.
Step S106, physical port adds the dynamic vlan at aggregation port place.
Step S107, physical port add the aggregation port success, use same GID resource.
In the present embodiment, physical port discharges the GID resource of self when adding aggregation port, physical port and aggregation port use same GID resource, thereby solved the problem of the GID resource rational utilization in the GVRP agreement, and then reached the effect of saving CPU and memory space.
Embodiment two
Present embodiment has mainly been described the flow process that the aggregation port of GVRP function is not opened in the physical port adding, and as shown in Figure 2, physical port adds the aggregation port of not opening the GVRP function and comprises following steps:
Step S201 carries out the instruction that physical port adds aggregation port.
Step S202 judges whether the static vlan attribute of physical port is consistent with aggregation port.If consistent, change step 204 and handle; If inconsistent, change step S203 and handle.
Step S203, physical port add the aggregation port failure, and physical port, the original attribute of aggregation port all remain unchanged.
Step S204 judges whether physical port has opened the GVRP function.If open, change step S205; If do not open, change step S206.
Step S205, physical port nullify dynamic vlan, discharge the GID resource, close the GVRP function.
Step S206, physical port add the aggregation port success, and physical port and aggregation port do not have the GVRP function.
In the present embodiment, physical port discharges the GID resource of self when adding aggregation port, solved the problem of the GID resource rational utilization in the GVRP agreement, and then has reached the effect of saving CPU and memory space.
Embodiment three
Present embodiment has mainly been described the flow process that physical port withdraws from the aggregation port of opening the GVRP function, and as shown in Figure 3, physical port withdraws from the aggregation port of opening the GVRP function and comprises following steps:
Step S301 carries out the instruction that physical port withdraws from the aggregation port of opening the GVRP function;
Step S302, physical port nullify dynamic vlan, discharge the GID resource, close the GVRP function;
Step S303 judges before physical port adds aggregation port whether opened the GVRP function.If open, change step S304; If do not open, change step S305;
Step S304, physical port withdraws from aggregation port, applies for the GID resource again, opens the GVRP function;
Step S305, physical port withdraws from aggregation port, does not have the GVRP function.
Embodiment four
Present embodiment has mainly been described the flow process that physical port withdraws from the aggregation port of not opening the GVRP function, and as shown in Figure 4, physical port withdraws from the aggregation port of not opening the GVRP function and comprises following steps:
Step S401 carries out the instruction that physical port withdraws from the aggregation port of opening the GVRP function;
Step S402 judges before physical port adds aggregation port whether opened the GVRP function.If open, change step S403; If do not open, change step S404;
Step S403, physical port withdraws from aggregation port, applies for the GID resource again, opens the GVRP function;
Step S404, physical port withdraws from aggregation port, does not have the GVRP function.
Fig. 5 is the apparatus module block diagram that adds aggregation port according to the physical port of the embodiment of the invention, and as shown in Figure 5, this device comprises: add instruction Executive Module 10, first judge module 20 and release module 30.Wherein, add instruction Executive Module 10, be used to carry out the instruction that physical port adds aggregation port; First judge module 20 is used to judge whether physical port has opened the GVRP function; Release module 30 is used for the GID resource of release physical port, and physical port is added aggregation port.
In the present embodiment, physical port is when adding aggregation port, and the GID resource by release module 30 releases self has solved the problem of the GID resource rational utilization in the GVRP agreement, and then has reached the effect of saving CPU and memory space.
Wherein, opened at aggregation port under the situation of GVRP function, release module also is used to nullify the dynamic vlan of physical port, the GID resource of release physical port, and physical port added the dynamic vlan at aggregation port place, make physical port and aggregation port use same GID resource.
Said apparatus can also comprise that second judges the mould (not shown), is used for before first judge module 20 judges whether physical port has opened the GVRP function, judges whether the static vlan attribute of physical port is consistent with aggregation port; If not, then physical port adds the aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
Fig. 6 is the apparatus module block diagram that withdraws from aggregation port according to the physical port of the embodiment of the invention four, and as shown in Figure 6, this device comprises: exit instruction Executive Module 40, withdraw from module 50 and the application module 60.Wherein, exit instruction Executive Module 40 is used to carry out the instruction that physical port withdraws from aggregation port; Withdraw from module 50, be used for physical port and withdraw from aggregation port, and judge before physical port adds aggregation port whether opened the GVRP function; Apply for module 60, be used for applying for again the GID resource of physical port, and open the GVRP function of physical port.
In the above embodiment of the present invention, the GVRP agreement that has proposed a kind of efficient height, good reliability is supported the implementation method of aggregation port, under the situation of opening of device GVRP agreement, support a physical port is joined in the aggregation port, and can save limited GID resource.Before the adding, the GVRP agreement can be opened or close to this physical port, and the GVRP agreement can be opened or close to aggregation port also.Can be applied under the various ethernet environments, the typical case is applicable to the situation of a large amount of switch networkings, and it is high and simple to carry out efficient.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for a physical port adding aggregation port is characterized in that, comprising:
Carry out the instruction that physical port adds aggregation port;
Judge whether described physical port has opened general virtual local network log-on protocol GVRP function;
If then described physical port discharges general information statement GID resource, adds described aggregation port.
2. method according to claim 1 is characterized in that, has opened at described aggregation port under the situation of GVRP function, and described physical port discharges the GID resource, adds described aggregation port, comprising:
Described physical port is nullified its dynamic virtual local area network (LAN) vlan, discharges the GID resource, adds the dynamic vlan at described aggregation port place, and uses same GID resource with described aggregation port.
3. according to claim 1 or 2 arbitrary described methods, it is characterized in that, judge that whether described physical port has been opened before the GVRP function, also comprises:
Whether the static vlan attribute of judging described physical port is consistent with described aggregation port;
If then further judge whether described physical port has opened the GVRP function; If not, then described physical port adds described aggregation port failure, and the attribute of described physical port and described aggregation port all remains unchanged.
4. according to claim 1 or 2 arbitrary described methods, it is characterized in that described physical port discharges the GID resource, adds after the described aggregation port, also comprises:
Described physical port withdraws from described aggregation port.
5. a physical port withdraws from the method for aggregation port, it is characterized in that, comprising:
Carry out the instruction that physical port withdraws from aggregation port;
Described physical port withdraws from described aggregation port, and judges before described physical port adds described aggregation port whether opened general virtual local network log-on protocol GVRP function;
If then described physical port is applied for general information statement GID resource again, and the GVRP function of opening described physical port.
6. method according to claim 5 is characterized in that, has opened at described aggregation port under the situation of GVRP function, and described physical port withdraws from described aggregation port, comprising:
Described physical port is nullified its dynamic vlan, discharges the GID resource, and closes the GVRP function.
7. the device of a physical port adding aggregation port is characterized in that, comprising:
Add the instruction Executive Module, be used to carry out the instruction that physical port adds aggregation port;
First judge module is used to judge whether described physical port has opened general virtual local network log-on protocol GVRP function;
Release module is used to discharge the general information statement GID resource of described physical port, and described physical port is added described aggregation port.
8. device according to claim 7, it is characterized in that, opened at described aggregation port under the situation of GVRP function, described release module also is used to nullify the dynamic vlan of described physical port, discharge the GID resource of described physical port, and described physical port added the dynamic vlan at described aggregation port place, make described physical port and described aggregation port use same GID resource.
9. device according to claim 7 is characterized in that, also comprises:
Second judges mould, is used for before described first judge module judges whether described physical port has opened the GVRP function, judges whether the static vlan attribute of described physical port is consistent with described aggregation port;
If not, then described physical port adds described aggregation port failure, and the attribute of described physical port and described aggregation port all remains unchanged.
10. a physical port withdraws from the device of aggregation port, it is characterized in that, comprising:
The exit instruction Executive Module is used to carry out the instruction that physical port withdraws from aggregation port;
Withdraw from module, be used for described physical port and withdraw from described aggregation port, and judge before described physical port adds described aggregation port whether opened general virtual local network log-on protocol GVRP function;
Apply for module, be used for applying for again the general information statement GID resource of described physical port, and the GVRP function of opening described physical port.
CN201010580765.9A 2010-12-09 2010-12-09 Physical port adds or exits method and the device of aggregation port Expired - Fee Related CN102098213B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010580765.9A CN102098213B (en) 2010-12-09 2010-12-09 Physical port adds or exits method and the device of aggregation port
PCT/CN2011/071609 WO2012075748A1 (en) 2010-12-09 2011-03-08 Method and device for enabling physical port to join or exit from trunk port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010580765.9A CN102098213B (en) 2010-12-09 2010-12-09 Physical port adds or exits method and the device of aggregation port

Publications (2)

Publication Number Publication Date
CN102098213A true CN102098213A (en) 2011-06-15
CN102098213B CN102098213B (en) 2015-09-16

Family

ID=44131085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010580765.9A Expired - Fee Related CN102098213B (en) 2010-12-09 2010-12-09 Physical port adds or exits method and the device of aggregation port

Country Status (2)

Country Link
CN (1) CN102098213B (en)
WO (1) WO2012075748A1 (en)

Citations (2)

* 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
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965653B2 (en) * 2003-09-25 2011-06-21 Cisco Technology, Inc. System and method for registering and un-registering membership in virtual local area networks

Patent Citations (2)

* 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
CN101018228A (en) * 2006-12-22 2007-08-15 华为技术有限公司 A port convergence method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑 》 20051015 高林 "VLAN拓扑动态管理协议研究与实现" 第35页第1行到36页第10行 1-10 , *
高林: ""VLAN拓扑动态管理协议研究与实现"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑 》 *

Also Published As

Publication number Publication date
CN102098213B (en) 2015-09-16
WO2012075748A1 (en) 2012-06-14

Similar Documents

Publication Publication Date Title
US20190123963A1 (en) Method and apparatus for managing resources of network slice
CN108769100A (en) A kind of implementation method and its device based on kubernetes number of containers elastic telescopics
CN107222324B (en) Service configuration method and device of network service
WO2015199685A1 (en) Network function virtualization
CN111064649B (en) Method and device for realizing binding of layered ports, control equipment and storage medium
CN105282004A (en) Network virtualization processing method, device and system
CN110187960A (en) A kind of distributed resource scheduling method and device
CN106161603B (en) A kind of method of networking, equipment and framework
CN111797173B (en) Alliance chain sharing system, method and device, electronic equipment and storage medium
WO2011085698A1 (en) Method for controlling resources on shared network element, shared network element and relevant device
CN104767741A (en) Calculation service separating and safety protecting system based on light virtual machine
CN106899478A (en) The method that power test business realizes resource resilient expansion by cloud platform
CN108737499A (en) server configuration method and device
CN107948042A (en) A kind of message forwarding method and device
US20220350637A1 (en) Virtual machine deployment method and related apparatus
CN103795603A (en) Edge virtual bridging method and device based on multiple network interface cards
WO2021103657A1 (en) Network operation method, apparatus, and device and storage medium
CN116800616B (en) Management method and related device of virtualized network equipment
CN103746943B (en) Method for establishing VLAN subinterface and exchange chip using the same
CN104065554A (en) Networking method and networking apparatus
CN110581800B (en) Method and device for creating virtual router interface, storage medium and equipment
CN106713244B (en) Capability access method and network element
CN102098213A (en) Method and device for adding/exiting physical port to/from aggregation port
CN109039823A (en) A kind of network system firewall detection method, device, equipment and storage medium
CN107408058A (en) A kind of dispositions method of virtual resource, apparatus and system

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: 20150916

Termination date: 20191209