CN102098213B - Physical port adds or exits method and the device of aggregation port - Google Patents

Physical port adds or exits method and the device of aggregation port Download PDF

Info

Publication number
CN102098213B
CN102098213B CN201010580765.9A CN201010580765A CN102098213B CN 102098213 B CN102098213 B CN 102098213B CN 201010580765 A CN201010580765 A CN 201010580765A CN 102098213 B CN102098213 B CN 102098213B
Authority
CN
China
Prior art keywords
port
physical port
aggregation
aggregation port
gid
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
CN201010580765.9A
Other languages
Chinese (zh)
Other versions
CN102098213A (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

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 method and device that a kind of physical port adds or exits aggregation port, wherein, the method that physical port adds aggregation port comprises the following steps: perform the instruction that physical port adds aggregation port; Judge whether physical port opens general virtual local network log-on protocol GVRP function; If so, then physical port release GID resource, adds aggregation port.By the present invention, physical port, when adding aggregation port, discharges the GID resource of self, solves the problem of the GID resource rational utilization in GVRP agreement, and then reaches the effect of saving CPU and memory space.

Description

Physical port adds or exits method and the device of aggregation port
Technical field
The present invention relates to the communications field, add or exit method and the device of aggregation port in particular to a kind of physical port.
Background technology
In switch, the support of VLAN (Virtual Local Area Network, VLAN) is a very important function, when the scale of network is larger, complicated to the Comparison of Management of VLAN.The agreement that GVRP (GARP VLAN RegistrationProtocol, GARP VLAN log-in protocol) is exactly dynamic-configuration for solving VLAN attribute and defines.Be configured the minority switch in network, its vlan information can distribute propagation in a network, makes all switches on network in VLAN configuration mutually unanimously, can realize free communication.
Owing to can there is aggregation port, aggregated links in network, therefore GVRP agreement just becomes important to the support of aggregation port.Aggregation port be exactly one by because of polymerization reason, any grouping composition of one or several port can the entity of unique identification.In addition, GVRP is an application protocol of GARP agreement, it can use GARP (GenericAttribute RegistrationProtocol, Generic Attribute Registration Protocol) GID (GARP Information Declaration in agreement, GARP information declaration) resource, when a port open GVRP agreement time, a GID can be taken, generally, equipment can in multiple port open GVRP agreement, so be also a very crucial problem to the Appropriate application of GID resource.
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 obtain Appropriate application.
Summary of the invention
Main purpose of the present invention is to provide a kind of physical port to add/exit the method and apparatus of aggregation port, can not obtain the problem of Appropriate application with the GID resource at least solving the said equipment.
According to an aspect of the present invention, provide a kind of method that physical port adds aggregation port, comprising: perform the instruction that physical port adds aggregation port; Judge whether physical port opens general virtual local network log-on protocol GVRP function; If so, then physical port release GID resource, adds aggregation port.
Further, when aggregation port opens GVRP function, physical port release GID resource, add aggregation port, comprise: physical port nullifies its dynamic virtual local area network (LAN) vlan, release GID resource, adds the dynamic vlan at aggregation port place, and uses same GID resource with aggregation port.
Further, before judging whether physical port opens GVRP function, also comprise: judge that whether the static vlan attribute of physical port is consistent with aggregation port; If so, then judge whether physical port opens GVRP function further; If not, then physical port adds aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
Further, physical port release GID resource, after adding aggregation port, also comprises: physical port exits aggregation port.
According to a further aspect in the invention, provide a kind of method that physical port exits aggregation port, comprising: perform the instruction that physical port exits aggregation port; Physical port exits aggregation port, and judges whether physical port opens GVRP function before adding aggregation port; If so, then physical port applies for GID resource again, and opens the GVRP function of physical port.
Further, when aggregation port opens GVRP function, physical port exits aggregation port, comprising: physical port nullifies its dynamic vlan, release GID resource, and closes GVRP function.
According to a further aspect of the invention, providing the device that a kind of physical port adds aggregation port, comprising: add instruct execution module, adding the instruction of aggregation port for performing physical port; First judge module, for judging whether physical port opens GVRP function; Release module, for the GID resource of release physical port, and adds aggregation port by physical port.
Further, when aggregation port opens GVRP function, release module also for nullifying the dynamic vlan of physical port, the GID resource of release physical port, and physical port is added the dynamic vlan at aggregation port place, make physical port and aggregation port use same GID resource
Further, also comprise: second judges mould, before judging whether physical port opens GVRP function at the first judge module, judge that whether the static vlan attribute of physical port is consistent with aggregation port; If not, then physical port adds aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
According to a further aspect of the invention, providing the device that a kind of physical port exits aggregation port, comprising: exit instruction Executive Module, exiting the instruction of aggregation port for performing physical port; Exit module, exit aggregation port for physical port, and judge whether physical port opens GVRP function before adding aggregation port; Application module, for again applying for the GID resource of physical port, and opens the GVRP function of physical port.
By the present invention, physical port, when adding aggregation port, discharges the GID resource of self, solves the problem of the GID resource rational utilization in GVRP agreement, and then reaches the effect of saving CPU and memory space.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart adding the aggregation port opening GVRP function according to the physical port of the embodiment of the present invention one;
Fig. 2 is the flow chart adding the aggregation port not opening GVRP according to the physical port of the embodiment of the present invention two;
Fig. 3 is the flow chart exiting the aggregation port opening GVRP according to the physical port of the embodiment of the present invention three;
Fig. 4 is the flow chart exiting the aggregation port not opening GVRP according to the physical port of the embodiment of the present invention four;
Fig. 5 is the apparatus module block diagram adding aggregation port according to the physical port of the embodiment of the present invention; And
Fig. 6 is the apparatus module block diagram exiting aggregation port according to the physical port of the embodiment of the present invention four.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Each port open GVRP function will take a GID (general information statement) structure.Based on the consideration to CPU and internal memory, when realizing GVRP, limit the port number of maximum unlatching GVRP function on switch.After agreement is opened, the several GID internal memory of meeting disposable application maximum unlatching port, the GID structure that after each port open, distribution one is idle.So just relate to, port adds, when exiting aggregation port, how to ensure that GVRP function is normally run, how to make full use of limited GID structure.
The following examples are mainly concerned with four kinds of application scenarioss, are described respectively with four embodiments.
Embodiment one
The present embodiment essentially describes the flow process that physical port adds the aggregation port opening GVRP function, as shown in Figure 1, comprises following steps:
Step S101, performs the instruction that physical port adds aggregation port.
Step S102, judges that whether the static vlan attribute of physical port is consistent with aggregation port, if unanimously, then performs step 104; If inconsistent, then perform step 103.
Step S103, physical port adds aggregation port failure, and the original attribute of physical port, aggregation port all remains unchanged.
Step S104, judges whether physical port opens GVRP function, if opened, then performs step S105; If do not opened, then perform step 106.
Step S105, physical port nullifies its dynamic vlan, and release GID resource, adds the dynamic vlan at aggregation port place.
Step S106, physical port adds the dynamic vlan at aggregation port place.
Step S107, physical port adds aggregation port success, uses same GID resource.
In the present embodiment, physical port, when adding aggregation port, discharges the GID resource of self, and physical port and aggregation port use same GID resource, thus solve the problem of the GID resource rational utilization in GVRP agreement, and then reach the effect of saving CPU and memory space.
Embodiment two
The present embodiment essentially describes the flow process that physical port adds the aggregation port not opening GVRP function, and as shown in Figure 2, physical port adds the aggregation port not opening GVRP function and comprises following steps:
Step S201, performs the instruction that physical port adds aggregation port.
Step S202, judges that whether the static vlan attribute of physical port is consistent with aggregation port.If consistent, go to step 204 process; If inconsistent, go to step S203 process.
Step S203, physical port adds aggregation port failure, and the original attribute of physical port, aggregation port all remains unchanged.
Step S204, judges whether physical port opens GVRP function.If opened, go to step S205; If do not opened, go to step S206.
Step S205, physical port nullifies dynamic vlan, and release GID resource, closes GVRP function.
Step S206, physical port adds aggregation port success, and physical port and aggregation port do not have GVRP function.
In the present embodiment, physical port, when adding aggregation port, discharges the GID resource of self, solves the problem of the GID resource rational utilization in GVRP agreement, and then reaches the effect of saving CPU and memory space.
Embodiment three
The present embodiment essentially describes the flow process that physical port exits the aggregation port opening GVRP function, and as shown in Figure 3, physical port exits the aggregation port opening GVRP function and comprises following steps:
Step S301, performs the instruction that physical port exits the aggregation port opening GVRP function;
Step S302, physical port nullifies dynamic vlan, and release GID resource, closes GVRP function;
Step S303, judges whether physical port opens GVRP function before adding aggregation port.If opened, go to step S304; If do not opened, go to step S305;
Step S304, physical port exits aggregation port, again applies for GID resource, opens GVRP function;
Step S305, physical port exits aggregation port, does not have GVRP function.
Embodiment four
The present embodiment essentially describes the flow process that physical port exits the aggregation port not opening GVRP function, and as shown in Figure 4, physical port exits the aggregation port not opening GVRP function and comprises following steps:
Step S401, performs the instruction that physical port exits the aggregation port opening GVRP function;
Step S402, judges whether physical port opens GVRP function before adding aggregation port.If opened, go to step S403; If do not opened, go to step S404;
Step S403, physical port exits aggregation port, again applies for GID resource, opens GVRP function;
Step S404, physical port exits aggregation port, does not have GVRP function.
Fig. 5 is the apparatus module block diagram adding aggregation port according to the physical port of the embodiment of the present invention, and as shown in Figure 5, this device comprises: add instruct execution module 10, first judge module 20 and release module 30.Wherein, adding instruct execution module 10, adding the instruction of aggregation port for performing physical port; First judge module 20, for judging whether physical port opens GVRP function; Release module 30, for the GID resource of release physical port, and adds aggregation port by physical port.
In the present embodiment, physical port, when adding aggregation port, discharges the GID resource of self by release module 30, solve the problem of the GID resource rational utilization in GVRP agreement, and then reaches the effect of saving CPU and memory space.
Wherein, when aggregation port opens GVRP function, release module also for nullifying the dynamic vlan of physical port, the GID resource of release physical port, and physical port is added the dynamic vlan at aggregation port place, make physical port and aggregation port use same GID resource.
Said apparatus can also comprise the second judgement mould (not shown), before judging whether physical port opens GVRP function at the first judge module 20, judges that whether the static vlan attribute of physical port is consistent with aggregation port; If not, then physical port adds aggregation port failure, and the attribute of physical port and aggregation port all remains unchanged.
Fig. 6 is the apparatus module block diagram exiting aggregation port according to the physical port of the embodiment of the present invention four, and as shown in Figure 6, this device comprises: exit instruction Executive Module 40, exit module 50 and application module 60.Wherein, exit instruction Executive Module 40, exits the instruction of aggregation port for performing physical port; Exit module 50, exit aggregation port for physical port, and judge whether physical port opens GVRP function before adding aggregation port; Application module 60, for again applying for the GID resource of physical port, and opens the GVRP function of physical port.
In the above embodiment of the present invention, propose the implementation method that a kind of efficiency is high, the GVRP agreement of good reliability supports aggregation port, when opening of device GVRP agreement, support a physical port to join in aggregation port, and limited GID resource can be saved.Before adding, GVRP agreement be opened or be closed to this physical port can, and GVRP agreement be opened or be closed to aggregation port also can.Under can being applied to various ethernet environment, typical case is applicable to the situation of a large amount of switchboard unit network, and execution efficiency is high and simple.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. physical port adds a method for aggregation port, it is characterized in that, comprising:
Perform the instruction that physical port adds aggregation port;
Judge that whether the static vlan attribute of described physical port is consistent with the static vlan attribute of described aggregation port; If consistent, judge whether described physical port opens general virtual local network log-on protocol GVRP function;
If so, then described physical port nullifies its dynamic virtual local area network (LAN) vlan, and release general information statement GID resource, adds described aggregation port.
2. method according to claim 1, is characterized in that, when described aggregation port opens GVRP function, described physical port nullifies its dynamic virtual local area network (LAN) vlan, and release GID resource, adds described aggregation port, comprising:
Described physical port nullifies its vlan, and release GID resource, adds the dynamic vlan at described aggregation port place, and use same GID resource with described aggregation port.
3., according to the arbitrary described method of claim 1 or 2, it is characterized in that,
When judging that the static vlan attribute of the static vlan attribute of described physical port and described aggregation port is inconsistent, then described physical port adds the failure of described aggregation port, and the attribute of described physical port and described aggregation port all remains unchanged.
4. according to the arbitrary described method of claim 1 or 2, it is characterized in that, described physical port release GID resource, after adding described aggregation port, also comprises:
Described physical port exits described aggregation port.
5. physical port exits a method for aggregation port, it is characterized in that, comprising:
Perform the instruction that physical port exits aggregation port;
When described aggregation port opens general virtual local network log-on protocol GVRP function, described physical port nullifies its dynamic vlan, release GID resource, and closes GVRP function;
Judge whether described physical port opens GVRP function before adding described aggregation port;
If so, then described physical port exits described aggregation port, again applies for general information statement GID resource, and opens the GVRP function of described physical port.
6. physical port adds a device for aggregation port, it is characterized in that, comprising:
Adding instruct execution module, adding the instruction of aggregation port for performing physical port;
Second judge module, whether consistent with the static vlan attribute of described aggregation port for judging the static vlan attribute of described physical port;
First judge module, for when described second judge module judged result is for being, judges whether described physical port opens general virtual local network log-on protocol GVRP function;
Release module, for when described first judge module judged result is for being, nullify the dynamic virtual local area network (LAN) vlan of described physical port, discharge the general information statement GID resource of described physical port, and described physical port is added described aggregation port.
7. device according to claim 6, is characterized in that, described release module nullifies the dynamic vlan of described physical port, discharges the GID resource of described physical port, and described physical port is added described aggregation port comprises;
Nullify the dynamic vlan of described physical port, discharge the GID resource of described physical port, and described physical port is added the dynamic vlan at described aggregation port place, make described physical port and described aggregation port use same GID resource.
8. device according to claim 6, is characterized in that,
When the judged result of described second judge module is no, then described physical port adds the failure of described aggregation port, and the attribute of described physical port and described aggregation port all remains unchanged.
9. physical port exits a device for aggregation port, it is characterized in that, comprising:
Exit instruction Executive Module, exits the instruction of aggregation port for performing physical port;
Exit module, for opening general virtual local network log-on protocol GVRP function at described aggregation port, described physical port is made to nullify its dynamic vlan, release GID resource, and close GVRP function, and judge whether described physical port opens GVRP function before adding described aggregation port, if so, then make described physical port exit described aggregation port;
Application module, for again applying for the general information statement GID resource of described physical port, and opens the GVRP function of 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 CN102098213A (en) 2011-06-15
CN102098213B true 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 (1)

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

Also Published As

Publication number Publication date
WO2012075748A1 (en) 2012-06-14
CN102098213A (en) 2011-06-15

Similar Documents

Publication Publication Date Title
Gong et al. Novel location-constrained virtual network embedding LC-VNE algorithms towards integrated node and link mapping
US9344286B2 (en) Multicast data forwarding method and device supporting virtual terminal
CN104079492B (en) The methods, devices and systems that flow table is configured in a kind of OpenFlow networks
CN103856356B (en) It is a kind of based on user from the home network implementation method of management and control
CN106375176A (en) Method for accessing physical machine to cloud platform
CN104734915B (en) A kind of concurrent dynamic emulation method of Multi net voting of compound multi-process multithreading
CN103152210B (en) Repair method and the stack equipment of Spanning-Tree Protocol forwarding state exception
WO2011085698A1 (en) Method for controlling resources on shared network element, shared network element and relevant device
CN106301803A (en) A kind of chip power supply control method, device and communication equipment
CN111030932B (en) Method, device and system for anchoring data message
CN103346950B (en) Between a kind of rack wireless controller customer service plate, method and device are shared in load equally
CN103795603A (en) Edge virtual bridging method and device based on multiple network interface cards
CN105207810B (en) A kind of control method of interchanger, system and the interchanger with the system
CN109756906A (en) A kind of network element management method and device
CN102098213B (en) Physical port adds or exits method and the device of aggregation port
CN104811479A (en) Virtual network node establishing method based on forwarding and control separation protocol
Marchese et al. Simple protocol enhancements of rapid spanning tree protocol over ring topologies
CN102594696B (en) A kind of method and device managing network device link aggregation group
KR20220104241A (en) Network working methods, devices, equipment and storage media
CN106059635A (en) Bluetooth setting method and device for electronic equipment and Bluetooth connection method
CN104506630B (en) Permissions data generation method, server and system based on user role
CN104702568B (en) A kind of Business Management Platform
CN109783264A (en) A kind of High Availabitity solution of database
CN109039823A (en) A kind of network system firewall detection method, device, equipment and storage medium
CN103259944B (en) Method for configuring IP soft switch system and different intranet switchboards

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