CN102571439B - Virtual local area network allocation and revocation method, equipment and system - Google Patents

Virtual local area network allocation and revocation method, equipment and system Download PDF

Info

Publication number
CN102571439B
CN102571439B CN201210016312.2A CN201210016312A CN102571439B CN 102571439 B CN102571439 B CN 102571439B CN 201210016312 A CN201210016312 A CN 201210016312A CN 102571439 B CN102571439 B CN 102571439B
Authority
CN
China
Prior art keywords
gvrp
interface
protocol massages
side interface
notice
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
CN201210016312.2A
Other languages
Chinese (zh)
Other versions
CN102571439A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210016312.2A priority Critical patent/CN102571439B/en
Publication of CN102571439A publication Critical patent/CN102571439A/en
Priority to PCT/CN2012/083635 priority patent/WO2013107200A1/en
Application granted granted Critical
Publication of CN102571439B publication Critical patent/CN102571439B/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]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • H04L12/4679Arrangements for the registration or de-registration of VLAN attribute values, e.g. VLAN identifiers, port VLAN membership
    • 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]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • H04L12/4683Dynamic sharing of VLAN information amongst network nodes characterized by the protocol used
    • H04L12/4691GVRP [GARP VLAN registration protocol]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a virtual local area network allocation and revocation method, equipment and system. The method comprises the steps that an access switch receives an online information sent by a virtual server; the access switch activates the attribution of a virtual local area network (VLAN) of a network side interface of the access switch according to the online information; and the access switch sends a general VLAN attribution register protocol (GVRP) adding protocol message to an convergence switch through the network side interface. The method, equipment and system are suitable for dynamic allocation and revocation of VLAN attribution of the virtual server.

Description

The deployment of VLAN and cancelling method, equipment and system
Technical field
The present invention relates to communication technical field, particularly a kind of deployment of VLAN and cancelling method, equipment and system.
Background technology
Along with the development of network technology, data center network has become numerous network equipment vendors' focus point.One of feature of data center network is that physical server wherein has virtualization, and physical server can create out multiple virtual servers by software.The reaching the standard grade and roll off the production line by the control of virtual server management software of virtual server, data center's switch can perceive dynamically reaching the standard grade or rolling off the production line of virtual server, and make the corresponding network equipment thereupon and move, for example, in the time that virtual server is reached the standard grade, carrying out VLAN (Virtual Local Area Network, VLAN) attribute disposes; In the time that virtual server rolls off the production line, carry out VLAN attribute and cancel.
In prior art, the attribute deployment of virtual server being carried out to VLAN mainly comprises two schemes: static configuration scheme and network control center's deployment scheme.Wherein, static configuration scheme is all of the port that in advance VLAN of virtual server is deployed to access switch and convergence switch, in the time that a virtual server in physical server is reached the standard grade, and the directly good VLAN of application deployment; Network control center's deployment scheme is carried out dynamically in real time VLAN deployment or cancel according to the virtual server situation of reaching the standard grade by the network control center.
In prior art, there are the following problems: in static configuration scheme, when certain the virtual server VLAN 10 in a physical server reaches the standard grade, and VLAN 10 in other physical servers is in the time of off-line state, these VLAN 10 virtual servers in off-line state also can be received the data flow of VLAN 10, cause the wasting of resources of network and server; In network control center's deployment scheme, need to rely on the whole net topology accuracy in computations of the network control center and the reliability of network device management network.And equipment and responsible party that whole system relates to are more, once system breaks down, cannot locate fast abort situation, find responsible party, cause system maintenance difficulty, maintenance cost is high.
Summary of the invention
Embodiments of the invention provide a kind of deployment of VLAN and cancelling method, equipment and system, can with low cost realize virtual server VLAN attribute Dynamical Deployment and cancel, and save network and server resource.
According to the embodiment of the present invention aspect, a kind of dispositions method of VLAN, comprising:
Access switch receives the notice of reaching the standard grade that virtual server sends;
The notice of reaching the standard grade described in described access switch basis activates the virtual LAN VLAN attribute of the network side interface of described access switch;
Described access switch sends GVRP (GARP VLANRegistration Protocol, general VLAN attributes registration protocol) by described network side interface to convergence switch and adds protocol massages.
According to another aspect of the embodiment of the present invention, a kind of dispositions method of VLAN, comprising:
The GVRP that convergence switch receives access switch transmission adds protocol massages;
Described convergence switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the network side interface of described convergence switch and the user side interface of described convergence switch;
Described convergence switch sends GVRP by the network side interface of described convergence switch to core gateway and adds protocol massages.
According to another aspect of the embodiment of the present invention, a kind of dispositions method of VLAN, comprising:
The GVRP that core gateway receives convergence switch transmission adds protocol massages;
Described core gateway activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the user side interface of described core gateway.
According to another aspect of the embodiment of the present invention, a kind of cancelling method of VLAN, comprising:
Access switch receives the notice that rolls off the production line that virtual server sends;
The notice that rolls off the production line described in described access switch basis is cancelled the virtual LAN VLAN attribute of the network side interface of described access switch;
Described access switch sends general VLAN attributes registration protocol GVRP by described network side interface to convergence switch and leaves protocol massages.
According to another aspect of the embodiment of the present invention, a kind of cancelling method of VLAN, comprising:
The GVRP that convergence switch receives access switch transmission leaves protocol massages;
Described convergence switch is cancelled in the network side interface of described convergence switch and the user side interface of described convergence switch with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Described convergence switch sends GVRP by the network side interface of described convergence switch to core gateway and leaves protocol massages.
According to another aspect of the embodiment of the present invention, a kind of cancelling method of VLAN, comprising:
The GVRP that core gateway receives convergence switch transmission leaves protocol massages;
Described core gateway is cancelled in the user side interface of described core gateway with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical.
According to another aspect of the embodiment of the present invention, a kind of access switch, comprising:
The first receiver module, the notice of reaching the standard grade sending for receiving virtual server;
The first active module, activates the virtual LAN VLAN attribute of network side interface of described access switch for the notice of reaching the standard grade described in basis;
The first sending module, adds protocol massages for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch.
According to another aspect of the embodiment of the present invention, a kind of convergence switch, comprising:
The second receiver module, adds protocol massages for the GVRP that receives access switch transmission;
The second active module, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the network side interface of described convergence switch and the user side interface of described convergence switch;
The second sending module, sends GVRP for the network side interface by described convergence switch to core gateway and adds protocol massages.
According to another aspect of the embodiment of the present invention, a kind of core gateway, comprising:
The 3rd receiver module, adds protocol massages for the GVRP that receives convergence switch transmission;
The 3rd active module, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the user side interface of described core gateway.
According to another aspect of the embodiment of the present invention, a kind of access switch, comprising:
The first receiver module, the notice that rolls off the production line sending for receiving virtual server;
First cancels module, cancels the virtual LAN VLAN attribute of the network side interface of described access switch for the notice that rolls off the production line described in basis;
The first sending module, leaves protocol massages for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch.
According to another aspect of the embodiment of the present invention, a kind of convergence switch, comprising:
The second receiver module, leaves protocol massages for the GVRP that receives access switch transmission;
Second cancels module, leaves for cancelling the network side interface of described convergence switch and the user side interface of described convergence switch and described GVRP the identical VLAN attribute of VLAN attribute that protocol massages carries;
The second sending module, sends GVRP for the network side interface by described convergence switch to core gateway and leaves protocol massages.
According to another aspect of the embodiment of the present invention, a kind of core gateway, comprising:
The 3rd receiver module, leaves protocol massages for the GVRP that receives convergence switch transmission;
The 3rd cancels module, leaves for the user side interface and the described GVRP that cancel described core gateway the identical VLAN attribute of VLAN attribute that protocol massages carries.
According to another aspect of the embodiment of the present invention, a kind of deployment of VLAN and cancellation system, comprising:
Access switch; Convergence switch; Core gateway.
The embodiment of the present invention is by role and the interface type of define equipment, receive when notice of reaching the standard grade of virtual server at switch, between each equipment, send while noticing GVRP protocol massages, the device role information that equipment comprises according to described GVRP protocol massages, determine the interface type that receives described notice GVRP protocol massages, realize according to interface type virtual server VLAN attribute Dynamical Deployment and cancel, reduced maintenance cost, and saved network and server resource.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The dispositions method flow chart of the VLAN that Fig. 1 provides for the embodiment of the present invention one;
The dispositions method flow chart of the VLAN that Fig. 2 provides for the embodiment of the present invention two;
The dispositions method flow chart of the VLAN that Fig. 3 provides for the embodiment of the present invention three;
The cancelling method flow chart of the VLAN that Fig. 4 provides for the embodiment of the present invention four;
The cancelling method flow chart of the VLAN that Fig. 5 provides for the embodiment of the present invention five;
The cancelling method flow chart of the VLAN that Fig. 6 provides for the embodiment of the present invention six;
The dispositions method flow chart of the VLAN that Fig. 7 provides for the embodiment of the present invention seven;
The cancelling method flow chart of the VLAN that Fig. 8 provides for the embodiment of the present invention eight;
The structural representation of the access switch that Fig. 9 provides for the embodiment of the present invention nine;
The structural representation of the access switch that Figure 10 provides for the embodiment of the present invention nine;
The structural representation of the convergence switch that Figure 11 provides for the embodiment of the present invention ten;
The structural representation of the convergence switch that Figure 12 provides for the embodiment of the present invention ten;
The structural representation of the core gateway that Figure 13 provides for the embodiment of the present invention 11;
The structural representation of the core gateway that Figure 14 provides for the embodiment of the present invention 11;
The structural representation of the access switch that Figure 15 provides for the embodiment of the present invention 12;
The structural representation of the convergence switch that Figure 16 provides for the embodiment of the present invention 13;
The structural representation of the core gateway that Figure 17 provides for the embodiment of the present invention 14;
The deployment of VLAN and the structural representation of cancellation system that Figure 18 provides for the embodiment of the present invention 15;
Figure 19 is that the interface type of access switch in the present invention is divided flow chart;
Figure 20 is that the interface type of convergence switch in the present invention is divided flow chart;
Figure 21 is that the interface type of core gateway in the present invention is divided flow chart;
Figure 22 is the schematic network structure of equipment room in the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is described in detail, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
For making the advantage of technical solution of the present invention clearer, below in conjunction with drawings and Examples, the present invention is elaborated.
In the embodiment of the present invention, core gateway can be the network equipment such as core switch or router.Receive virtual server at access switch and reach the standard grade after notice, the interface that access switch, convergence switch and core gateway are equipment separately according to the notice GVRP protocol massages receiving is divided interface type, comprises user side interface and network side interface.
The interface type of access switch is divided as shown in figure 19.The interface of access switch receives to be noticed after GVRP protocol massages, determine whether the notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages receiving carries Role Information, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages receiving does not carry Role Information, definite interface that receives this notice GVRP protocol massages is user side interface.
The interface type of convergence switch is divided as shown in figure 20.Certain of convergence switch or some interface receive to be noticed after GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries the nucleus equipment information of core gateway, if the notice GVRP protocol massages that this receives carries the nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages that this receives does not carry the nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is user side interface.
The interface type of core gateway is divided as shown in figure 21.Core gateway, such as core switch, certain or some interfaces receive while noticing GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages that this receives carries Role Information, this definite interface that receives this notice GVRP protocol massages is user side interface, if the notice GVRP protocol massages that this receives does not carry Role Information, definite interface that receives this notice GVRP protocol massages is network side interface.
The network structure of access switch, convergence switch and core switch as shown in figure 22.As shown in figure 22, core gateway (such as core switch) is communicated by letter with physical server through some convergence switches, several access switch.Core gateway can be one or more, can be also the equipment group that one or more core switch form, and convergence switch and access switch can be also one or more.
Embodiment mono-
The present embodiment provides a kind of dispositions method of VLAN, and as shown in Figure 1, described method comprises:
101, access switch receives the notice of reaching the standard grade that virtual server sends.
102, described in described access switch basis, reach the standard grade and notify the virtual LAN VLAN attribute of the network side interface that activates described access switch.
103, described access switch adds protocol massages (GVRP Join message, GVRP Join Control Packet) by described network side interface to convergence switch transmission GVRP.
The virtual LAN VLAN attribute that the notice of reaching the standard grade described in described access switch basis activates the network side interface of described access switch comprises:
The VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice of reaching the standard grade described in described access switch activation receives;
Travel through the total interface of described access switch, whether the interface traversing described in determining is network side interface;
If described in the interface that traverses be network side interface, activate VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
Optionally, before the VLAN attribute of described access switch excited users side interface, also comprise: the interface that the device role information that described access switch carries according to the notice GVRP protocol massages receiving is described access switch is divided interface type.
The interface that the device role information that described access switch carries according to the notice GVRP protocol massages receiving is described access switch is divided interface type and is comprised:
Described access switch determines that whether described notice GVRP protocol massages is with device role information;
If described notice GVRP protocol massages, with device role information, is divided into network side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without device role information, is divided into user side interface by the interface that receives described notice GVRP protocol massages; Wherein, total interface is defaulted as user side interface.
The embodiment of the present invention is by the interface type of definition access switch, after receiving that reaching the standard grade of virtual server notified, according to the dispersal behavior of interface type control protocol message of described access switch and the deployment behavior of VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment bis-
The present embodiment provides a kind of dispositions method of VLAN, and as shown in Figure 2, described method comprises:
201, the GVRP that convergence switch reception access switch sends adds protocol massages (GVRP Join message, GVRP Join Control Packet).
202, described convergence switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the network side interface of described convergence switch and the user side interface of described convergence switch.
203, described convergence switch adds protocol massages by the network side interface of described convergence switch to core switch transmission GVRP.
Described convergence switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the network side interface of described convergence switch and the user side interface of described convergence switch and comprises:
Described convergence switch determines that receiving described GVRP adds whether the interface of protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception adds the interface of protocol massages, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the interface that the described GVRP of described reception adds protocol massages;
Travel through the total interface of described convergence switch, whether the interface traversing described in determining is network side interface;
If described in the interface that traverses be network side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described network side interface.
Optionally, the GVRP sending at described convergence switch reception access switch also comprises before adding protocol massages:
The device role information that convergence switch carries according to the notice GVRP protocol massages receiving is that interface is divided interface type.
Wherein, the device role information that described convergence switch carries according to the notice GVRP protocol massages receiving is that interface division interface type comprises:
Convergence switch determines that whether described notice GVRP protocol massages is with core switch Role Information;
If described notice GVRP protocol massages, with core switch Role Information, is divided into network side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without core switch Role Information, is divided into user side interface by the interface that receives described notice GVRP protocol massages; Wherein, total interface is defaulted as user side interface.
The GVRP that the embodiment of the present invention receives access switch transmission by convergence switch adds protocol massages, according to the dispersal behavior of the interface type control GVRP protocol massages of convergence switch and the deployment behavior of VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment tri-
The present embodiment provides a kind of dispositions method of VLAN, and as shown in Figure 3, described method comprises:
301, the GVRP that core switch reception convergence switch sends adds protocol massages (GVRP Join message, GVRP Join Control Packet).
302, described core switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the user side interface of described core switch.
Described core switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the user side interface of described core switch and comprises:
Described core switch determines that receiving described GVRP adds whether the interface of protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception adds the interface of protocol massages, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface.
Optionally, core switch also comprises:
The device role information that core switch carries according to the notice GVRP protocol massages receiving is that interface is divided interface type.
Wherein, the device role information that described core switch carries according to the notice GVRP protocol massages receiving is that interface division interface type comprises:
Core switch determines that whether described notice GVRP protocol massages is with device role information;
If described notice GVRP protocol massages, with device role information, is divided into user side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without device role information, is divided into network side interface by the interface that receives described notice GVRP protocol massages, wherein, total interface is defaulted as network side interface.
The GVRP that the embodiment of the present invention receives convergence switch transmission by core switch adds protocol massages, according to the deployment behavior of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment tetra-
The present embodiment provides a kind of cancelling method of VLAN, and as shown in Figure 4, described method comprises:
401, access switch receives the notice that rolls off the production line that virtual server sends.
402, described in described access switch basis, roll off the production line and notify the virtual LAN VLAN attribute of the network side interface of cancelling described access switch.
403, described access switch sends GVRP by described network side interface to convergence switch and leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet).
The virtual LAN VLAN attribute that the notice that rolls off the production line described in described access switch basis is cancelled the network side interface of described access switch comprises:
Described access switch is cancelled the VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice that rolls off the production line described in reception;
Travel through all user side interfaces of described access switch, determine whether that user side interface activates the VLAN attribute of described virtual server;
If do not have user side interface to activate the VLAN attribute of described virtual server, cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the network side interface of described access switch.
The embodiment of the present invention is by the interface type of definition access switch, after receiving that rolling off the production line of virtual server notified, according to the dispersal behavior of interface type control protocol message of access switch and the behavior of cancelling of VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment five
The present embodiment provides a kind of cancelling method of VLAN, and as shown in Figure 5, described method comprises:
501, the GVRP that convergence switch reception access switch sends leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet).
502, described convergence switch is cancelled in the network side interface of described convergence switch and the user side interface of described convergence switch with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical.
503, described convergence switch sends GVRP by the network side interface of described convergence switch to core switch and leaves protocol massages.
Stating convergence switch cancels the network side interface of described convergence switch and in user side interface, leaves with described GVRP the VLAN attribute that VLAN attribute that protocol massages carries is identical and comprise:
Whether the interface that the described GVRP of the definite reception of described convergence switch leaves protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception leaves the interface of protocol massages, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Travel through all user side interfaces of described convergence switch, determine whether that user side interface has activated described GVRP and left the VLAN attribute that protocol massages carries;
Leave if do not have user side interface to activate described GVRP the VLAN attribute that protocol massages carries, cancel in the network side interface of described convergence switch with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
The embodiment of the present invention is by the interface type of definition convergence switch, receive that at convergence switch the GVRP that access switch sends leaves after protocol massages, according to the dispersal behavior of interface type control protocol message of convergence switch and the behavior of cancelling of VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment six
The present embodiment provides a kind of cancelling method of VLAN, and as shown in Figure 6, described method comprises:
601, the GVRP that core switch reception convergence switch sends leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet).
602, described core switch is cancelled in the user side interface of described core switch with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical.
Described core switch is cancelled in the user side interface of described core switch and to be left with described GVRP the VLAN attribute that VLAN attribute that protocol massages carries is identical and comprise:
Whether the interface that the described GVRP of the definite reception of described core switch leaves protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception leaves the interface of protocol massages, cancels the described GVRP of described reception and leave in the interface of protocol massages with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
The embodiment of the present invention is by the interface type of definition core switch, receive that at core switch the GVRP that convergence switch sends leaves after protocol massages, according to the dispersal behavior of interface type control protocol message of core switch and the behavior of cancelling of VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment seven
The present embodiment provides a kind of dispositions method of VLAN, and as shown in Figure 7, described method comprises:
701, access switch receives the virtual server notice of reaching the standard grade.
702, access switch activate receive described in reach the standard grade notice user side interface in the VLAN attribute identical with the VLAN attribute of described virtual server.
703, the total interface of traversal access switch, described in determining, whether the interface that traverses is network side interface, if described in the interface that traverses be not network side interface, execution step 713; If described in the interface that traverses be network side interface, execution step 704.
704, access switch activates VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
705, access switch adds protocol massages (GVRP Join message, GVRP Join Control Packet) by described network side interface to convergence switch transmission GVRP.
706, convergence switch receives described GVRP and adds after protocol massages, determines that receiving described GVRP adds whether the interface of protocol massages is user side interface, is not user side interface if the described GVRP of described reception adds the interface of protocol massages, execution step 713; If it is user side interface that the described GVRP of described reception adds the interface of protocol massages, execution step 707.
707, convergence switch activate the VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface identical VLAN attribute.
708, the total interface of traversal convergence switch, described in determining, whether the interface that traverses is network side interface, if described in the interface that traverses be not network side interface, execution step 713; If described in the interface that traverses be network side interface, execution step 709.
709, convergence switch activate the VLAN attribute that adds protocol massages to carry with described GVRP in described network side interface identical VLAN attribute.
710, convergence switch adds protocol massages by described network side interface to core switch transmission GVRP.
711, core switch receives described GVRP and adds after protocol massages, determines that receiving described GVRP adds whether the interface of protocol massages is user side interface, is not user side interface if described GVRP adds the interface of protocol massages, execution step 713; If it is user side interface that described GVRP adds the interface of protocol massages, execution step 712.
712, core switch activate the VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface identical VLAN attribute.
713, process ends.
Three role type that the embodiment of the present invention has been device definition, be respectively access switch, convergence switch and core switch, the interface of every kind of equipment is defined as respectively to network side interface and user side interface, access switch is received virtual server and is reached the standard grade after notice, dispose and add protocol massages to convergence switch diffusion GVRP according to interface type control VLAN attribute, convergence switch is disposed according to interface type control VLAN attribute and is added protocol massages to core switch diffusion GVRP, core switch is disposed according to interface type control VLAN attribute, thereby realize the Dynamical Deployment of the VLAN attribute of virtual server, when realizing cost, reduction saves network and server resource.
Embodiment eight
The present embodiment provides a kind of cancelling method of VLAN, and as shown in Figure 8, described method comprises:
801, access switch receives the virtual server notice that rolls off the production line.
802, access switch is cancelled the VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice that rolls off the production line described in reception.
803, all user side interfaces of traversal access switch, determine whether that user side interface has activated the VLAN attribute of described virtual server, if there is user side interface to activate the VLAN attribute of described virtual server, perform step 815; If do not have user side interface to activate the VLAN attribute of described virtual server, perform step 804.
For example, physical server A and physical server B access same access switch, VLAN 10 virtual servers in physical server A and physical server B are all in upper line states, if VLAN 10 virtual servers now in physical server A roll off the production line, cancel the VLAN attribute of the VLAN 10 in network side interface in access switch according to requirements of process, because the VLAN10 virtual server in physical server A and physical server B all uses the network side interface of this access switch, if now directly cancel the VLAN attribute of the all-network side interface of corresponding VLAN 10 in access switch, VLAN 10 virtual servers in physical server B can be forced to disconnect, can not continue normal work, so cancel the front all user side interfaces that need to inspect access switch, the VLAN virtual server that sees if there is other same alike results is in running order, if there are other virtual servers in running order, and when described other virtual servers use same network side interface with the virtual server rolling off the production line, can not cancel the VLAN attribute of the described network side interface of corresponding VLAN 10 in access switch, if do not have other virtual servers in running order, can cancel the VLAN attribute of the all-network side interface of corresponding VLAN 10 in access switch.
804, the total interface of traversal access switch, described in determining, whether the interface that traverses is network side interface, if described in the interface interface that traverses be not network side interface, execution step 815; If described in the interface interface that traverses be network side interface, execution step 805.
805, access switch is cancelled VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
806, access switch sends GVRP by described network side interface to convergence switch and leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet).
807, convergence switch receives described GVRP and leaves after protocol massages, determine to receive whether the interface that described GVRP leaves protocol massages is user side interface, and not user side interface if the described GVRP of described reception leaves the interface of protocol massages, execution step 815; If it is user side interface that the described GVRP of described reception leaves the interface of protocol massages, execution step 808.
808, convergence switch cancel in described user side interface with described GVRP leave VLAN attribute that protocol massages carries identical VLAN attribute.
809, all user side interfaces of traversal access switch, determine whether that user side interface has activated described GVRP and left the VLAN attribute that protocol massages carries, leave if there is user side interface to activate described GVRP the VLAN attribute that protocol massages carries, execution step 815; Leave if do not have user side interface to activate described GVRP the VLAN attribute that protocol massages carries, execution step 810.
For example, physical server A and physical server B access same convergence switch by different access switch, VLAN 10 virtual servers in physical server A and physical server B are all in upper line states, if VLAN 10 virtual servers now in physical server A roll off the production line, cancel the VLAN attribute of the VLAN 10 in network side interface in convergence switch according to requirements of process, because the VLAN10 virtual server in physical server A and physical server B all uses this network side interface, if now directly cancel the VLAN attribute of the VLAN 10 in the network side interface of convergence switch, VLAN 10 virtual servers in physical server B can be forced to disconnect, can not continue normal work, so cancel the front all user side interfaces that need to inspect convergence switch, the VLAN virtual server that sees if there is other same alike results is in running order, if there are other virtual servers in running order, and when described other virtual servers use same network side interface with the virtual server rolling off the production line, can not cancel the VLAN attribute of the VLAN 10 in the network side interface of convergence switch, if do not have other virtual servers in running order, can cancel the VLAN attribute of the VLAN 10 in the network side interface of convergence switch.
810, the total interface of traversal convergence switch, described in determining, whether the interface that traverses is network side interface, if described in the interface that traverses be not network side interface, execution step 815; If described in the interface that traverses be network side interface, execution step 811.
811, convergence switch cancel in described network side interface with described GVRP leave VLAN attribute that protocol massages carries identical VLAN attribute.
812, convergence switch sends GVRP by described network side interface to core switch and leaves protocol massages.
813, core switch receives described GVRP and leaves after protocol massages, determine to receive whether the interface that described GVRP leaves protocol massages is user side interface, if described in receive described GVRP to leave protocol massages interface be not user side interface, execution step 815; If described in receive described GVRP to leave protocol massages interface be user side interface, execution step 814.
814, core switch cancel in described user side interface with described GVRP leave VLAN attribute that protocol massages carries identical VLAN attribute.
815, process ends.
Three role type that the embodiment of the present invention has been device definition, be respectively access switch, convergence switch and core switch, the interface of every kind of equipment is defined as respectively to network side interface and user side interface, access switch is received virtual server and is rolled off the production line after notice, cancel and leave protocol massages to convergence switch diffusion GVRP according to interface type control VLAN attribute, convergence switch is cancelled according to interface type control VLAN attribute and is left protocol massages to core switch diffusion GVRP, core switch is cancelled according to interface type control VLAN attribute, thereby realize the Dynamic Revocation of the VLAN attribute of virtual server, when realizing cost, reduction saves network and server resource.
Embodiment nine
The present embodiment provides a kind of access switch, and as shown in Figure 9, described access switch comprises the first receiver module 901, the first active module 902 and the first sending module 903, wherein:
Described the first receiver module 901, the notice of reaching the standard grade sending for receiving virtual server;
Described the first active module 902, activates the virtual LAN VLAN attribute of network side interface of described access switch for the notice of reaching the standard grade described in basis;
Described the first sending module 903, adds protocol massages (GVRP Join message, GVRP Join ControlPacket) for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch.
Wherein, described the first active module 902 specifically for:
The VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice of reaching the standard grade described in activation receives;
Travel through the total interface of described access switch, whether the interface traversing described in determining is network side interface;
In the time that the described interface traversing is network side interface, activate VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
Optionally, as shown in figure 10, described access switch can also comprise:
First interface type is divided module 904, is that interface is divided interface type for the device role information of carrying according to the GVRP protocol massages receiving.
Wherein, described first interface type divide module 904 specifically for:
Determine that whether described GVRP protocol massages is with device role information;
When described GVRP protocol massages is during with device role information, the interface that receives described GVRP protocol massages is divided into network side interface;
When described GVRP protocol massages is during without device role information, the interface that receives described GVRP protocol massages is divided into user side interface, wherein, total interface is defaulted as user side interface.
The embodiment of the present invention is by the interface type of definition access switch, after receiving that reaching the standard grade of virtual server notified, according to the deployment behavior of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment ten
The present embodiment provides a kind of convergence switch, and as shown in figure 11, described convergence switch comprises the second receiver module 1101, the second active module 1102 and the second sending module 1103, wherein:
Described the second receiver module 1101, adds protocol massages (GVRP Join message, GVRP Join Control Packet) for the GVRP that receives access switch transmission;
Described the second active module 1102, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the network side interface of described convergence switch and the user side interface of described convergence switch;
Described the second sending module 1103, sends GVRP for the network side interface by described convergence switch to core switch and adds protocol massages.
Wherein, described the second active module 1102 specifically for:
Determine that receiving described GVRP adds whether the interface of protocol massages is user side interface;
In the time that the described GVRP of described reception adds the interface of protocol massages to be user side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface;
Travel through the total interface of described convergence switch, whether the interface traversing described in determining is network side interface;
In the time that the described interface traversing is network side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described network side interface.
Optionally, as shown in figure 12, described convergence switch can also comprise:
The second interface type is divided module 1104, is that interface is divided interface type for the device role information of carrying according to the GVRP protocol massages receiving.
Wherein, described second interface type divide module 1104 specifically for:
Determine that whether described GVRP protocol massages is with core switch Role Information;
When described GVRP protocol massages is during with core switch Role Information, the interface that receives described GVRP protocol massages is divided into network side interface;
When described GVRP protocol massages is during without core switch Role Information, the interface that receives described GVRP protocol massages is divided into user side interface, wherein, total interface is defaulted as user side interface.
The GVRP that the embodiment of the present invention receives access switch transmission by convergence switch adds protocol massages, according to the deployment behavior of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment 11
The present embodiment provides a kind of core switch, and as shown in figure 13, described core switch comprises the 3rd receiver module 1301 and the 3rd active module 1302, wherein:
Described the 3rd receiver module 1301, adds protocol massages (GVRP Join message, GVRP Join Control Packet) for the GVRP that receives convergence switch transmission;
Described the 3rd active module 1302, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the user side interface of described core switch.
Wherein, described the 3rd active module 1302 specifically for:
Determine that receiving described GVRP adds whether the interface of protocol massages is user side interface;
In the time that the described GVRP of described reception adds the interface of protocol massages to be user side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface.
Optionally, as shown in figure 14, described core switch can also comprise:
The 3rd interface type is divided module 1304, is that interface is divided interface type for the device role information of carrying according to the GVRP protocol massages receiving.
Wherein, described the 3rd interface type divide module 1304 specifically for:
Determine that whether described GVRP protocol massages is with device role information;
When described GVRP protocol massages is during with device role information, the interface that receives described GVRP protocol massages is divided into user side interface;
When described GVRP protocol massages is during without device role information, the interface that receives described GVRP protocol massages is divided into network side interface, wherein, total interface is defaulted as network side interface.
The GVRP that the embodiment of the present invention receives convergence switch transmission by core switch adds protocol massages, according to the deployment behavior of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment 12
The present embodiment provides a kind of access switch, and as shown in figure 15, described access switch comprises that the first receiver module 1501, first cancels module 1502 and the first sending module 1503, wherein:
Described the first receiver module 1501, the notice that rolls off the production line sending for receiving virtual server;
Described first cancels module 1502, cancels the virtual LAN VLAN attribute of the network side interface of described access switch for the notice that rolls off the production line described in basis;
Described the first sending module 1503, leaves protocol massages (GVRP Leave message, GVRP Leave ControlPacket) for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch.
Wherein, described first cancel module 1502 specifically for:
Cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice that rolls off the production line described in reception;
Travel through all user side interfaces of described access switch, determine whether that user side interface activates the VLAN attribute of described virtual server;
In the time not having user side interface to activate the VLAN attribute of described virtual server, cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the network side interface of described access switch.
The embodiment of the present invention is by the interface type of definition access switch, after receiving that rolling off the production line of virtual server notified, according to the behavior of cancelling of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment 13
The present embodiment provides a kind of convergence switch, and as shown in figure 16, described convergence switch comprises that the second receiver module 1601, second cancels module 1602 and the second sending module 1603, wherein:
Described the second receiver module 1601, leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet) for the GVRP that receives access switch transmission;
Described second cancels module 1602, leaves for the network side interface of cancelling described convergence switch and user side interface and described GVRP the identical VLAN attribute of VLAN attribute that protocol massages carries;
Described the second sending module 1603, sends GVRP for the network side interface by described convergence switch to core switch and leaves protocol massages.
Wherein, described second cancel module 1602 specifically for:
Whether the interface that the described GVRP of definite reception leaves protocol massages is user side interface;
When the interface that leaves protocol massages as the described GVRP of described reception is user side interface, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Travel through all user side interfaces of described convergence switch, determine whether that user side interface activates described GVRP and leaves the VLAN attribute that protocol massages carries;
In the time not having user side interface to activate described GVRP to leave the VLAN attribute that protocol massages carries, cancel in the network side interface of described convergence switch with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
The embodiment of the present invention is by the interface type of definition convergence switch, receive that at convergence switch the GVRP that access switch sends leaves after protocol massages, according to the behavior of cancelling of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment 14
The present embodiment provides a kind of core switch, and as shown in figure 17, described core switch comprises that the 3rd receiver module 1701 and the 3rd cancels module 1702, wherein:
Described the 3rd receiver module 1701, leaves protocol massages (GVRP Leave message, GVRP Leave Control Packet) for the GVRP that receives convergence switch transmission;
The described the 3rd cancels module 1702, leaves for the user side interface and the described GVRP that cancel described core switch the identical VLAN attribute of VLAN attribute that protocol massages carries.
Wherein, the described the 3rd cancel module 1702 specifically for:
Whether the interface that the described GVRP of definite reception leaves protocol massages is user side interface;
When the interface that leaves protocol massages as the described GVRP of described reception is user side interface, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
The embodiment of the present invention is by the interface type of definition core switch, receive that at core switch the GVRP that convergence switch sends leaves after protocol massages, according to the behavior of cancelling of the dispersal behavior of interface type control protocol message and VLAN attribute, reduce maintenance cost, and saved network and server resource.
Embodiment 15
The present embodiment provides a kind of deployment and cancellation system of VLAN, and as shown in figure 18, deployment and the cancellation system of described VLAN comprise: access switch 1801, convergence switch 1802 and core switch 1803.
Described access switch 1801 can be the access switch described in embodiment nine and embodiment 12; Described convergence switch 1802 can be the convergence switch described in embodiment ten and embodiment 13; Described core switch 1803 can be the core switch described in embodiment 11 and embodiment 14.
Wherein, the user side interface of described access switch 1801 is connected with physical server or individual PC etc., the network side interface of described access switch 1801 is connected with the user side interface of described convergence switch 1802, and the network side interface of described convergence switch 1802 is connected with the user side interface of core switch 1803.
Three role type that the embodiment of the present invention has been device definition, be respectively access switch 1801, convergence switch 1802 and core gateway 1803, the interface of every kind of equipment is defined as respectively to network side interface and user side interface, access switch is received virtual server and is reached the standard grade after (rolling off the production line) notice, dispose (cancelling) and add (leaving) protocol massages to convergence switch diffusion GVRP according to interface type control VLAN attribute, convergence switch is disposed (cancelling) and is added (leaving) protocol massages to core switch diffusion GVRP according to interface type control VLAN attribute, core switch is disposed (cancelling) according to interface type control VLAN attribute, thereby realize virtual server VLAN attribute Dynamical Deployment and cancel, when realizing cost, reduction saves network and server resource.
The above-mentioned embodiment of the method providing can be provided for the deployment of the VLAN that the embodiment of the present invention provides and cancelling method, equipment and system, and concrete function is realized the explanation referring in embodiment of the method, does not repeat them here.The deployment of the VLAN that the embodiment of the present invention provides and cancelling method, equipment and system go for virtual server VLAN attribute Dynamical Deployment and cancel, but be not limited only to this.
Various modules described in embodiment nine to 15, all can realize by hardware, such as passing through universal cpu (Central Processing Unit, CPU), field programmable gate array (Field-Programmable Gate Array, FPGA), special integrated chip (Application Specific IntegratedCircuit, ASIC) or programmable logic device (programmable logic device, PLD) realize these modules.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (31)

1. a dispositions method for VLAN, is characterized in that, comprising:
Access switch receives the notice of reaching the standard grade that virtual server sends;
The notice of reaching the standard grade described in described access switch basis activates the virtual LAN VLAN attribute of the network side interface of described access switch;
Described access switch sends general VLAN attributes registration protocol GVRP by described network side interface to convergence switch and adds protocol massages; Wherein, before the VLAN attribute of described access switch excited users side interface, also comprise:
The interface that the device role information that described access switch carries according to the notice GVRP protocol massages receiving is described access switch is divided interface type.
2. method according to claim 1, is characterized in that, described access switch according to described in the virtual LAN VLAN attribute that notice activates the network side interface of described access switch of reaching the standard grade comprise:
The VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice of reaching the standard grade described in described access switch activation receives;
Travel through the total interface of described access switch, whether the interface traversing described in determining is network side interface;
If described in the interface that traverses be network side interface, activate VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
3. method according to claim 1, is characterized in that, the interface that the device role information that described access switch carries according to the notice GVRP protocol massages receiving is described access switch is divided interface type and comprised:
Described access switch determines that whether described notice GVRP protocol massages is with device role information;
If described notice GVRP protocol massages, with device role information, is divided into network side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without device role information, is divided into user side interface by the interface that receives described notice GVRP protocol massages, wherein, total interface is defaulted as user side interface.
4. a dispositions method for VLAN, is characterized in that, comprising:
The general VLAN attributes registration protocol GVRP that convergence switch receives access switch transmission adds protocol massages;
Described convergence switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the network side interface of described convergence switch and the user side interface of described convergence switch;
Described convergence switch sends GVRP by the network side interface of described convergence switch to core gateway and adds protocol massages; Wherein, the GVRP sending at described convergence switch reception access switch also comprises before adding protocol massages:
The device role information that described convergence switch carries according to the notice GVRP protocol massages receiving is that interface is divided interface type.
5. method according to claim 4, it is characterized in that, described convergence switch activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the network side interface of described convergence switch and the user side interface of described convergence switch and comprises:
Described convergence switch determines that receiving described GVRP adds whether the interface of protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception adds the interface of protocol massages, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the interface that the described GVRP of described reception adds protocol massages;
Travel through the total interface of described convergence switch, whether the interface traversing described in determining is network side interface;
If described in the interface that traverses be network side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described network side interface.
6. method according to claim 4, is characterized in that, the device role information that described convergence switch carries according to the notice GVRP protocol massages receiving is that interface division interface type comprises:
Described convergence switch determines that whether described notice GVRP protocol massages is with core gateway Role Information;
If described notice GVRP protocol massages, with core gateway Role Information, is divided into network side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without core gateway Role Information, is divided into user side interface by the interface that receives described notice GVRP protocol massages, wherein, total interface is defaulted as user side interface.
7. a dispositions method for VLAN, is characterized in that, comprising:
The general VLAN attributes registration protocol GVRP that core gateway receives convergence switch transmission adds protocol massages;
Described core gateway activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the user side interface of described core gateway; Wherein, the GVRP sending at described core gateway reception convergence switch also comprises before adding protocol massages:
The device role information that described core gateway carries according to the notice GVRP protocol massages receiving is that interface is divided interface type.
8. method according to claim 7, is characterized in that, described core gateway activates the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in the user side interface of described core gateway and comprises:
Described core gateway determines that receiving described GVRP adds whether the interface of protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception adds the interface of protocol massages, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface.
9. method according to claim 7, is characterized in that, the device role information that described core gateway carries according to the notice GVRP protocol massages receiving is that interface division interface type comprises:
Described core gateway determines that whether described notice GVRP protocol massages is with device role information;
If described notice GVRP protocol massages, with device role information, is divided into user side interface by the interface that receives described notice GVRP protocol massages;
If described notice GVRP protocol massages, without device role information, is divided into network side interface by the interface that receives described notice GVRP protocol massages, wherein, total interface is defaulted as network side interface.
10. a cancelling method for VLAN, is characterized in that, comprising:
Access switch receives the notice that rolls off the production line that virtual server sends;
The notice that rolls off the production line described in described access switch basis is cancelled the virtual LAN VLAN attribute of the network side interface of described access switch;
Described access switch sends general VLAN attributes registration protocol GVRP by described network side interface to convergence switch and leaves protocol massages; Wherein, the interface of described access switch receives to be noticed after GVRP protocol massages, determine whether the notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages receiving carries described Role Information, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages receiving does not carry described Role Information, definite interface that receives this notice GVRP protocol massages is user side interface.
11. methods according to claim 10, is characterized in that, described access switch according to described in the virtual LAN VLAN attribute that notice cancels the network side interface of described access switch that rolls off the production line comprise:
Described access switch is cancelled the VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice that rolls off the production line described in reception;
Travel through all user side interfaces of described access switch, determine whether that user side interface activates the VLAN attribute of described virtual server;
If do not have user side interface to activate the VLAN attribute of described virtual server, cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the network side interface of described access switch.
The cancelling method of 12. 1 kinds of VLANs, is characterized in that, comprising:
The general VLAN attributes registration protocol GVRP that convergence switch receives access switch transmission leaves protocol massages;
Described convergence switch is cancelled in the network side interface of described convergence switch and the user side interface of described convergence switch with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Described convergence switch sends GVRP by the network side interface of described convergence switch to core gateway and leaves protocol massages; Wherein, certain of described convergence switch or some interface receive to be noticed after GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries the nucleus equipment information of core gateway, if the notice GVRP protocol massages that this receives carries the described nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages that this receives does not carry the described nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is user side interface.
13. methods according to claim 12, it is characterized in that, described convergence switch is cancelled in the network side interface of described convergence switch and the user side interface of described convergence switch and to be left with described GVRP the VLAN attribute that VLAN attribute that protocol massages carries is identical and comprise:
Whether the interface that the described GVRP of the definite reception of described convergence switch leaves protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception leaves the interface of protocol massages, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Travel through all user side interfaces of described convergence switch, determine whether that user side interface activates described GVRP and leaves the VLAN attribute that protocol massages carries;
Leave if do not have user side interface to activate described GVRP the VLAN attribute that protocol massages carries, cancel in the network side interface of described convergence switch with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
The cancelling method of 14. 1 kinds of VLANs, is characterized in that, comprising:
The general VLAN attributes registration protocol GVRP that core gateway receives convergence switch transmission leaves protocol massages;
Described core gateway is cancelled in the user side interface of described core gateway with described GVRP and is left the VLAN attribute that VLAN attribute that protocol massages carries is identical; Wherein, certain of described core gateway or some interface receive while noticing GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages that this receives carries described Role Information, this definite interface that receives this notice GVRP protocol massages is user side interface, if the notice GVRP protocol massages that this receives does not carry described Role Information, definite interface that receives this notice GVRP protocol massages is network side interface.
15. methods according to claim 14, is characterized in that, described core gateway is cancelled in the user side interface of described core gateway and to be left with described GVRP the VLAN attribute that VLAN attribute that protocol massages carries is identical and comprise:
Whether the interface that the described GVRP of the definite reception of described core gateway leaves protocol massages is user side interface;
If it is user side interface that the described GVRP of described reception leaves the interface of protocol massages, cancels the described GVRP of described reception and leave in the interface of protocol massages with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
16. 1 kinds of access switch, is characterized in that, comprise the first receiver module, the first active module and the first sending module, wherein:
Described the first receiver module, the notice of reaching the standard grade sending for receiving virtual server;
Described the first active module, activates the virtual LAN VLAN attribute of network side interface of described access switch for the notice of reaching the standard grade described in basis;
Described the first sending module, adds protocol massages for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch; Wherein, described access switch also comprises: first interface type is divided module, is that interface is divided interface type for the device role information of carrying according to the GVRP protocol massages receiving.
17. access switch according to claim 16, is characterized in that, described the first active module specifically for:
The VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice of reaching the standard grade described in activation receives;
Travel through the total interface of described access switch, whether the interface traversing described in determining is network side interface;
In the time that described interface is network side interface, activate VLAN attribute identical with the VLAN attribute of described virtual server in described network side interface.
18. access switch according to claim 16, is characterized in that, described first interface type divide module specifically for:
Determine that whether described GVRP protocol massages is with device role information;
When described GVRP protocol massages is during with device role information, the interface that receives described GVRP protocol massages is divided into network side interface;
When described GVRP protocol massages is during without device role information, the interface that receives described GVRP protocol massages is divided into user side interface, wherein, total interface is defaulted as user side interface.
19. 1 kinds of convergence switches, is characterized in that, comprise the second receiver module, the second active module and the second sending module, wherein:
Described the second receiver module, adds protocol massages for the GVRP that receives access switch transmission;
Described the second active module, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the network side interface of described convergence switch and the user side interface of described convergence switch;
Described the second sending module, sends general VLAN attributes registration protocol GVRP for the network side interface by described convergence switch to core gateway and adds protocol massages; Wherein, described convergence switch also comprises: the second interface type is divided module, is that interface is divided interface type for the device role information of carrying according to the notice GVRP protocol massages receiving.
20. convergence switches according to claim 19, is characterized in that, described the second active module specifically for:
Determine that receiving described GVRP adds whether the interface of protocol massages is user side interface;
In the time that the described GVRP of described reception adds the interface of protocol massages to be user side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface;
Travel through the total interface of described convergence switch, whether the interface traversing described in determining is network side interface;
In the time that the described interface traversing is network side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described network side interface.
21. convergence switches according to claim 19, is characterized in that, described second interface type divide module specifically for:
Determine that whether described notice GVRP protocol massages is with core gateway Role Information;
When described notice GVRP protocol massages is during with core gateway Role Information, the interface that receives described notice GVRP protocol massages is divided into network side interface;
When described notice GVRP protocol massages is during without core gateway Role Information, the interface that receives described notice GVRP protocol massages is divided into user side interface, wherein, total interface is defaulted as user side interface.
22. 1 kinds of core gateways, is characterized in that, comprise the 3rd receiver module and the 3rd active module, wherein:
Described the 3rd receiver module, adds protocol massages for the general VLAN attributes registration protocol GVRP that receives convergence switch transmission;
Described the 3rd active module, the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP for activating the user side interface of described core gateway; Wherein, described core gateway also comprises: the 3rd interface type is divided module, is that interface is divided interface type for the device role information of carrying according to the notice GVRP protocol massages receiving.
23. core gateways according to claim 22, is characterized in that, described the 3rd active module specifically for:
Determine that receiving described GVRP adds whether the interface of protocol massages is user side interface;
In the time that the described GVRP of described reception adds the interface of protocol massages to be user side interface, activate the identical VLAN attribute of VLAN attribute that adds protocol massages to carry with described GVRP in described user side interface.
24. core gateways according to claim 22, is characterized in that, described the 3rd interface type divide module specifically for:
Determine that whether described notice GVRP protocol massages is with device role information;
When described notice GVRP protocol massages is during with device role information, the interface that receives described notice GVRP protocol massages is divided into user side interface;
When described notice GVRP protocol massages is during without device role information, the interface that receives described notice GVRP protocol massages is divided into network side interface, wherein, total interface is defaulted as network side interface.
25. 1 kinds of access switch, is characterized in that, comprise that the first receiver module, first cancels module and the first sending module, wherein:
Described the first receiver module, the notice that rolls off the production line sending for receiving virtual server;
Described first cancels module, cancels the virtual LAN VLAN attribute of the network side interface of described access switch for the notice that rolls off the production line described in basis;
Described the first sending module, leaves protocol massages for sending general VLAN attributes registration protocol GVRP by described network side interface to convergence switch; Wherein, the interface of described access switch receives to be noticed after GVRP protocol massages, determine whether the notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages receiving carries described Role Information, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages receiving does not carry described Role Information, definite interface that receives this notice GVRP protocol massages is user side interface.
26. access switch according to claim 25, is characterized in that, described first cancel module specifically for:
Cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the user side interface of the notice that rolls off the production line described in reception;
Travel through all user side interfaces of described access switch, determine whether that user side interface activates the VLAN attribute of described virtual server;
In the time not having user side interface to activate the VLAN attribute of described virtual server, cancel the VLAN attribute identical with the VLAN attribute of described virtual server in the network side interface of described access switch.
27. 1 kinds of convergence switches, is characterized in that, comprise that the second receiver module, second cancels module and the second sending module, wherein:
Described the second receiver module, leaves protocol massages for the general VLAN attributes registration protocol GVRP that receives access switch transmission;
Described second cancels module, leaves for the network side interface of cancelling described convergence switch and user side interface and described GVRP the identical VLAN attribute of VLAN attribute that protocol massages carries;
Described the second sending module, sends GVRP for the network side interface by described convergence switch to core gateway and leaves protocol massages; Wherein, certain of described convergence switch or some interface receive to be noticed after GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries the nucleus equipment information of core gateway, if the notice GVRP protocol massages that this receives carries the described nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is network side interface; If the notice GVRP protocol massages that this receives does not carry the described nucleus equipment information of core gateway, definite interface that receives this notice GVRP protocol massages is user side interface.
28. convergence switches according to claim 27, is characterized in that, described second cancel module specifically for:
Whether the interface that the described GVRP of definite reception leaves protocol massages is user side interface;
When the interface that leaves protocol massages as the described GVRP of described reception is user side interface, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical;
Travel through all user side interfaces of described convergence switch, determine whether that user side interface activates described GVRP and leaves the VLAN attribute that protocol massages carries;
In the time not having user side interface to activate described GVRP to leave the VLAN attribute that protocol massages carries, cancel in the network side interface of described convergence switch with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
29. 1 kinds of core gateways, is characterized in that, comprise that the 3rd receiver module and the 3rd cancels module, wherein:
Described the 3rd receiver module, leaves protocol massages for the general VLAN attributes registration protocol GVRP that receives convergence switch transmission;
The described the 3rd cancels module, leaves for the user side interface and the described GVRP that cancel described core gateway the identical VLAN attribute of VLAN attribute that protocol massages carries; Wherein, certain of core gateway or some interface receive while noticing GVRP protocol massages, determine whether this notice GVRP protocol massages receiving carries Role Information, if the notice GVRP protocol massages that this receives carries described Role Information, this definite interface that receives this notice GVRP protocol massages is user side interface, if the notice GVRP protocol massages that this receives does not carry described Role Information, definite interface that receives this notice GVRP protocol massages is network side interface.
30. core gateways according to claim 29, is characterized in that, the described the 3rd cancel module specifically for:
Whether the interface that the described GVRP of definite reception leaves protocol massages is user side interface;
When the interface that leaves protocol massages as the described GVRP of described reception is user side interface, cancels in described user side interface with described GVRP and leave the VLAN attribute that VLAN attribute that protocol massages carries is identical.
31. 1 kinds of VLANs are disposed and cancellation system, it is characterized in that, comprising: access switch; Convergence switch; Core gateway; Wherein, described access switch is the access switch described in claim 16 or 25, and described convergence switch is the convergence switch described in claim 19 or 27, and described core gateway is the core gateway described in claim 22 or 29.
CN201210016312.2A 2012-01-18 2012-01-18 Virtual local area network allocation and revocation method, equipment and system Expired - Fee Related CN102571439B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210016312.2A CN102571439B (en) 2012-01-18 2012-01-18 Virtual local area network allocation and revocation method, equipment and system
PCT/CN2012/083635 WO2013107200A1 (en) 2012-01-18 2012-10-27 Virtual local area network deployment and revocation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210016312.2A CN102571439B (en) 2012-01-18 2012-01-18 Virtual local area network allocation and revocation method, equipment and system

Publications (2)

Publication Number Publication Date
CN102571439A CN102571439A (en) 2012-07-11
CN102571439B true CN102571439B (en) 2014-10-08

Family

ID=46415965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210016312.2A Expired - Fee Related CN102571439B (en) 2012-01-18 2012-01-18 Virtual local area network allocation and revocation method, equipment and system

Country Status (2)

Country Link
CN (1) CN102571439B (en)
WO (1) WO2013107200A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571439B (en) * 2012-01-18 2014-10-08 华为技术有限公司 Virtual local area network allocation and revocation method, equipment and system
CN106161603B (en) * 2016-06-28 2019-09-20 华为技术有限公司 A kind of method of networking, equipment and framework

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143138A (en) * 2010-09-15 2011-08-03 华为技术有限公司 Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine

Family Cites Families (6)

* 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
ATE364288T1 (en) * 2005-03-07 2007-06-15 Alcatel Lucent LEGAL INTERCEPTION ON IP NETWORKS
US7668178B2 (en) * 2005-08-30 2010-02-23 Cisco Technology, Inc. Methods and apparatus for implementing VPN services
CN101102188B (en) * 2006-07-07 2010-08-04 华为技术有限公司 A method and system for mobile access to VLAN
CN100499529C (en) * 2007-09-14 2009-06-10 武汉烽火网络有限责任公司 Jitter detection based congestion control method in city domain Ethernet
CN102571439B (en) * 2012-01-18 2014-10-08 华为技术有限公司 Virtual local area network allocation and revocation method, equipment and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143138A (en) * 2010-09-15 2011-08-03 华为技术有限公司 Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine

Also Published As

Publication number Publication date
WO2013107200A1 (en) 2013-07-25
CN102571439A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN103118149B (en) Communication control method between same tenant's server and the network equipment
CN107231221A (en) Job flow control method, apparatus and system between data center
CN102843441B (en) Method and device for controlling address configuration way
CN102316043B (en) Port virtualization method, switch and communication system
CN103259740B (en) A kind of load balance process method and device
CN101924699B (en) Message forwarding method, system and provider edge equipment
CN106357542B (en) The method and software defined network controller of multicast service are provided
CN111355649A (en) Flow reinjection method, device and system
CN104468869B (en) For the method for terminal distribution IP address, the method and device of acquisition IP address
CN102137007A (en) Method and system for generating network topology as well as coordinator
CN104780232B (en) A kind of resource allocation methods, controller and system
CN107948042A (en) A kind of message forwarding method and device
CN101483571B (en) RRPP configuring method, system and device
CN103581025A (en) Method and system for processing routing information and equipment
CN107819776B (en) Message processing method and device
CN108632848A (en) Network is sliced self-optimizing coordination approach and device
CN102647338B (en) Network communication method and equipment
CN102571439B (en) Virtual local area network allocation and revocation method, equipment and system
CN102006268A (en) Method, equipment and system for switching main interface and standby interface
CN104703211B (en) A kind of virtualization cut-in method and equipment
CN103731294A (en) Method, device and system for two-machine hot-standby communication
CN109150711B (en) Protection switching method, device and storage medium for point-to-multipoint two-layer multicast service
WO2019005741A1 (en) Systems and methods for enabling wide area multicast domain name system
CN106789540B (en) A kind of gateway deployment method and apparatus
CN109889421B (en) Router management method, device, terminal, system and storage medium

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

Termination date: 20190118