WO2013107200A1 - 虚拟局域网的部署和撤销方法、设备及系统 - Google Patents

虚拟局域网的部署和撤销方法、设备及系统 Download PDF

Info

Publication number
WO2013107200A1
WO2013107200A1 PCT/CN2012/083635 CN2012083635W WO2013107200A1 WO 2013107200 A1 WO2013107200 A1 WO 2013107200A1 CN 2012083635 W CN2012083635 W CN 2012083635W WO 2013107200 A1 WO2013107200 A1 WO 2013107200A1
Authority
WO
WIPO (PCT)
Prior art keywords
gvrp
interface
protocol packet
side interface
vlan attribute
Prior art date
Application number
PCT/CN2012/083635
Other languages
English (en)
French (fr)
Inventor
陆志浩
王玉姝
韩涛
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013107200A1 publication Critical patent/WO2013107200A1/zh

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and device for deploying and revoking a virtual local area network.
  • the data center network has become the focus of many network equipment vendors.
  • One of the characteristics of the data center network is that the physical server has virtualization function, and the physical server can create multiple virtual servers through software.
  • the virtual server's online and offline lines are controlled by the virtual server management software.
  • the data center switch can sense the dynamic uplink or offline of the virtual server, and then make corresponding network device actions, for example, when the virtual server is online.
  • the VLAN (Virtual Local Area Network) attribute is deployed. When the virtual server goes offline, the VLAN attribute is revoked.
  • the deployment of attributes of a virtual server to a VLAN mainly includes two scenarios: a static configuration scheme and a network control center deployment scheme.
  • the static configuration scheme is to deploy the VLAN of the virtual server to all ports of the access switch and the aggregation switch in advance.
  • a virtual server in the physical server goes online, the deployed VLAN is directly applied.
  • the network control center deployment solution is through the network.
  • the control center dynamically performs VLAN deployment or 4 sales in real time according to the virtual server online status.
  • Embodiments of the present invention provide a method, a device, and a system for deploying and revoking a virtual local area network, which can implement dynamic deployment and cancellation of VLAN attributes of a virtual server at a low cost, and save network and server resources.
  • a method for deploying a virtual local area network includes: an access switch receiving an online notification sent by a virtual server; and the access switch activating a network side interface of the access switch according to the online notification The virtual local area network (VLAN) VLAN attribute; the access switch sends a GVRP (GARP VLAN Registration Protocol) to the aggregation switch to join the protocol packet through the network side interface.
  • VLAN virtual local area network
  • GVRP GARP VLAN Registration Protocol
  • a method for deploying a virtual local area network includes: an aggregation switch receiving a GVRP join protocol packet sent by an access switch; the aggregation switch activating a network side interface of the aggregation switch and the The user-side interface of the aggregation switch has the same VLAN attribute as the VLAN attribute of the GVRP join protocol packet.
  • the aggregation switch sends a GVRP join protocol packet to the core gateway through the network-side interface of the aggregation switch.
  • a method for deploying a virtual local area network includes: receiving, by a core gateway, a GVRP join protocol packet sent by an aggregation switch;
  • the core gateway activates the same VLAN attribute as the VLAN attribute carried in the GVRP join protocol packet in the user-side interface of the core gateway.
  • a method for revoking a virtual local area network includes: receiving, by an access switch, a offline notification sent by a virtual server;
  • the access switch cancels the virtual local area network VLAN attribute of the network side interface of the access switch according to the offline notification;
  • the access switch sends a general VLAN attribute registration protocol GVRP leaving protocol message to the aggregation switch through the network side interface.
  • a method for revoking a virtual local area network includes: receiving, by an aggregation switch, a GVRP leaving protocol message sent by an access switch;
  • the aggregation switch cancels the same VLAN attribute of the VLAN attribute carried in the GVRP leaving protocol packet in the network side interface of the aggregation switch and the user side interface of the aggregation switch;
  • the aggregation switch sends a GVRP Leave Protocol packet to the core gateway through the network side interface of the aggregation switch.
  • a method for revoking a virtual local area network includes: receiving, by a core gateway, a GVRP leaving protocol message sent by an aggregation switch;
  • an access switch includes:
  • a first receiving module configured to receive an online notification sent by the virtual server
  • a first activation module configured to activate, according to the online notification, a virtual local area network VLAN attribute of the network side interface of the access switch
  • the first sending module is configured to send, by using the network side interface, a general VLAN attribute registration protocol GVRP join protocol message to the aggregation switch.
  • an aggregation switch includes:
  • a second receiving module configured to receive a GVRP join protocol packet sent by the access switch
  • a second activation module configured to activate the network side interface of the aggregation switch and the user side interface of the aggregation switch to join the GVRP
  • a core gateway includes:
  • an access switch includes:
  • a first receiving module configured to receive a offline notification sent by the virtual server
  • a first revocation module configured to revoke a virtual local area network VLAN attribute of the network side interface of the access switch according to the offline notification
  • the first sending module is configured to send, by using the network side interface, a general VLAN attribute registration protocol GVRP leaving protocol message to the aggregation switch.
  • an aggregation switch includes:
  • a second receiving module configured to receive a GVRP leaving protocol packet sent by the access switch
  • a second revocation module configured to cancel a VLAN attribute of a network side interface of the aggregation switch and a user side interface of the aggregation switch that is the same as a VLAN attribute carried by the GVRP leaving protocol packet
  • the GVRP Leave Protocol packet is sent to the core gateway through the network side interface of the aggregation switch.
  • a core gateway includes: a third receiving module, configured to receive a GVRP leaving protocol packet sent by an aggregation switch; and a third revocation module, configured to cancel a user side of the core gateway VLAN attribute of the same VLAN attribute as that carried in the GVRP Leave Protocol packet.
  • a virtual local area network deployment and revocation system includes: an access switch; an aggregation switch; and a core gateway.
  • the device role information included in the GVRP protocol packet is sent by the device when the switch sends the notification of the GVRP protocol message to the device when the switch receives the online notification of the virtual server.
  • the interface type of the GVRP protocol packet is received, and the VLAN attribute of the virtual server is dynamically deployed and revoked according to the interface type, which reduces maintenance costs and saves network and server resources.
  • FIG. 1 is a flowchart of a method for deploying a virtual local area network according to Embodiment 1 of the present invention
  • 2 is a flowchart of a method for deploying a virtual local area network according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for deploying a virtual local area network according to Embodiment 3 of the present invention
  • FIG. 4 is a flowchart of a method for revoking a virtual local area network according to Embodiment 4 of the present invention.
  • FIG. 5 is a flowchart of a method for revoking a virtual local area network according to Embodiment 5 of the present invention.
  • FIG. 6 is a flowchart of a method for revoking a virtual local area network according to Embodiment 6 of the present invention.
  • FIG. 7 is a flowchart of a method for deploying a virtual local area network according to Embodiment 7 of the present invention.
  • Embodiment 8 is a flowchart of a method for revoking a virtual local area network according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic structural diagram of an access switch according to Embodiment 9 of the present invention.
  • FIG. 10 is a schematic structural diagram of an access switch according to Embodiment 9 of the present invention.
  • FIG. 11 is a schematic structural diagram of an aggregation switch according to Embodiment 10 of the present invention.
  • FIG. 12 is a schematic structural diagram of an aggregation switch according to Embodiment 10 of the present invention.
  • FIG. 13 is a schematic structural diagram of a core gateway according to Embodiment 11 of the present invention.
  • FIG. 14 is a schematic structural diagram of a core gateway according to Embodiment 11 of the present invention.
  • FIG. 15 is a schematic structural diagram of an access switch according to Embodiment 12 of the present invention.
  • FIG. 16 is a schematic structural diagram of an aggregation switch according to Embodiment 13 of the present invention.
  • FIG. 17 is a schematic structural diagram of a core gateway according to Embodiment 14 of the present invention.
  • FIG. 18 is a schematic structural diagram of a system for deploying and revoking a virtual local area network according to Embodiment 15 of the present invention.
  • 21 is a flow chart of dividing an interface type of a core gateway according to the present invention.
  • Figure 22 is a schematic diagram showing the network structure between devices in the present invention. detailed description
  • the core gateway may be a network device such as a core switch or a router.
  • the access switch, the aggregation switch, and the core gateway divide the interface type for the interface of the respective device according to the received GVRP (GARP VLAN Registration Protocol) protocol packet. Includes user side interface and network side interface.
  • the interface type of the access switch is divided as shown in Figure 19.
  • the interface of the access switch determines whether the received GVRP packet carries the role information. If the received GVRP packet carries the role information, it determines that the GVRP is received.
  • the interface of the protocol packet is the network side interface. If the received GVRP protocol packet does not carry the role information, the interface that receives the GVRP protocol packet is the user-side interface.
  • the interface type of the aggregation switch is divided as shown in Figure 20. After receiving the advertised GVRP protocol packet, the interface of the aggregation switch determines whether the received GVRP protocol packet carries the core device information of the core gateway, and if the received notification GVRP protocol packet carries The core device information of the core gateway determines that the interface that receives the GVRP protocol packet is the network side interface; if the received notification GVRP protocol packet does not carry the core device information of the core gateway, it is determined that the notification GVRP is received. The interface of the protocol packet is the user-side interface. The interface type of the core gateway is divided as shown in Figure 21.
  • the core gateway receives the GVRP protocol packet, and determines whether the received GVRP packet carries the role information. If the received GVRP packet is carried, If the role information is received, the interface that receives the GVRP protocol packet is determined to be the user-side interface. If the received GVRP protocol packet does not carry the role information, the interface that receives the GVRP protocol packet is determined to be the interface. Network side interface.
  • Figure 22 shows the network structure of the access switch, aggregation switch, and core switch. As shown in FIG. 22, a core gateway (such as a core switch) communicates with a physical server via a plurality of aggregation switches and a plurality of access switches.
  • the core gateway may be one or more, or may be a device group composed of one or more core switches, and the aggregation switch and the access switch may also be one or more.
  • Embodiment 1 provides a method for deploying a virtual local area network. As shown in FIG. 1 , the method includes:
  • the access switch receives an online notification sent by the virtual server.
  • the access switch activates a virtual local area network (VLAN) attribute of the network side interface of the access switch according to the online notification.
  • VLAN virtual local area network
  • the access switch sends a GVRP Join message (GVRP Join Packet, GVRP Join Control Packet) to the aggregation switch through the network side interface.
  • GVRP Join message GVRP Join Packet, GVRP Join Control Packet
  • the virtual switch VLAN attribute of the network side interface that activates the access switch according to the online notification is:
  • the access switch activates a VLAN attribute of the user-side interface that receives the online notification and has the same VLAN attribute as the virtual server; traverses all interfaces of the access switch, and determines whether the traversed interface is a network. If the traversed interface is a network-side interface, the VLAN attribute of the network-side interface that is the same as the VLAN attribute of the virtual server is activated.
  • the method further includes: the access switch is configured to divide the interface of the access switch according to the device role information carried in the received GVRP protocol packet. Interface Type. The access switch divides the interface type for the interface of the access switch according to the device role information carried in the advertised GVRP protocol packet, including:
  • the access switch determines whether the advertised GVRP protocol packet carries the device role information. If the advertised GVRP protocol packet carries the device role information, the interface that receives the advertised GVRP protocol packet is divided into the network side. If the advertised GVRP protocol packet does not carry the device role information, the interface that receives the advertised GVRP protocol packet is divided into user-side interfaces.
  • the embodiment of the present invention reduces the maintenance cost by defining the interface type of the access switch, and after receiving the online notification of the virtual server, controlling the diffusion behavior of the protocol packet and the deployment behavior of the VLAN attribute according to the interface type of the access switch. And save network and server resources.
  • Embodiment 2 This embodiment provides a method for deploying a virtual local area network. As shown in FIG. 2, the method includes:
  • the aggregation switch receives the GVRP join protocol packet sent by the access switch (GVRP Join, GVRP Join Control Packet).
  • the aggregation switch activates the network side interface of the aggregation switch and the user side interface of the aggregation switch with the same VLAN attribute as that of the GVRP join protocol packet. VLAN attribute.
  • the aggregation switch sends a GVRP join protocol packet to the core switch by using the network side interface of the aggregation switch.
  • the VLAN attributes of the aggregation switch that activates the network-side interface of the aggregation switch and the user-side interface of the aggregation switch that are the same as the VLAN attributes carried in the GVRP join protocol packet include:
  • the aggregation switch determines whether the interface that receives the GVRP join protocol packet is a user-side interface
  • the interface that receives the GVRP join protocol packet is a user-side interface, activate the VLAN attribute of the interface that receives the GVRP join protocol packet and has the same VLAN attribute as that of the GVRP join protocol packet;
  • the traversed interface is a network side interface
  • the VLAN attribute of the network side interface that is the same as the VLAN attribute carried in the GVRP join protocol packet is activated.
  • the method further includes:
  • the aggregation switch divides the interface type into interfaces based on the device role information carried in the GVRP protocol packets.
  • the interface type of the interface is defined by the aggregation switch according to the device role information carried in the GVRP protocol packet.
  • the aggregation switch determines whether the advertised GVRP protocol packet carries core switch role information
  • the interface of the GVRP protocol packet is divided into a network side interface.
  • the interface that receives the advertised GVRP protocol packet is divided into user-side interfaces.
  • the aggregation switch receives the GVRP join protocol packet sent by the access switch, and controls the diffusion behavior of the GVRP protocol packet and the deployment behavior of the VLAN attribute according to the interface type of the aggregation switch, thereby reducing maintenance costs and saving the network and Server resources.
  • Embodiment 3 This embodiment provides a method for deploying a virtual local area network. As shown in FIG. 3, the method includes:
  • the core switch receives the GVRP Join Protocol (GVRP Join Control Packet) sent by the aggregation switch.
  • GVRP Join Protocol GVRP Join Control Packet
  • the core switch activates the same VLAN attribute as the VLAN attribute carried in the GVRP join protocol packet on the user-side interface of the core switch.
  • the VLAN attribute of the core switch that activates the same VLAN attribute as the VLAN carried in the GVRP-added protocol packet on the user-side interface of the core switch includes:
  • the interface that receives the GVRP join protocol packet is a user-side interface
  • the VLAN attribute of the user-side interface that is the same as the VLAN attribute carried in the GVRP join protocol packet is activated.
  • the core switch further includes:
  • the core switch divides the interface type for the interface according to the device role information carried in the received GVRP protocol packet.
  • the core switch divides the interface type into an interface according to the device role information that is received by the advertised GVRP protocol packet.
  • the core switch determines whether the advertised GVRP protocol packet carries device role information. If the packet carries the device role information, the interface that receives the GVRP protocol packet is divided into the user-side interface. If the GVRP protocol packet does not carry the device role information, the GVRP protocol packet is received.
  • the interface of the text is divided into network-side interfaces, where all interfaces default to network-side interfaces.
  • the core switch receives the GVRP join protocol packet sent by the aggregation switch, and controls the spreading behavior of the protocol packet and the deployment behavior of the VLAN attribute according to the interface type, thereby reducing maintenance costs and saving network and server resources.
  • Embodiment 4 This embodiment provides a method for revoking a virtual local area network. As shown in FIG. 4, the method includes:
  • the access switch receives the offline notification sent by the virtual server.
  • the access switch cancels a virtual local area network (VLAN) VLAN attribute of the network side interface of the access switch according to the offline notification.
  • VLAN virtual local area network
  • the access switch sends a GVRP Leave message (GVRP Leave Control Packet) to the aggregation switch by using the network side interface.
  • GVRP Leave Control Packet GVRP Leave Control Packet
  • Embodiment 5 This embodiment provides a method for revoking a virtual local area network. As shown in FIG. 5, the method includes:
  • the aggregation switch receives the GVRP Leave Protocol (GVRP Leave Control Packet) sent by the access switch.
  • GVRP Leave Control Packet GVRP Leave Control Packet
  • the aggregation switch revokes the same VLAN attribute as the VLAN attribute carried in the GVRP Leave Protocol packet in the network side interface of the aggregation switch and the user side interface of the aggregation switch.
  • the aggregation switch sends a GVRP Leave Protocol packet to the core switch by using the network side interface of the aggregation switch.
  • the aggregation switch revokes the VLAN attributes of the network side interface and the user side interface of the aggregation switch that are the same as the VLAN attributes of the GVRP leaving protocol packets.
  • the aggregation switch determines the interface that receives the GVRP leaving protocol packets. Whether it is a user side interface;
  • the interface that receives the GVRP leaving protocol packet is a user-side interface
  • the VLAN attribute of the user-side interface that is the same as the VLAN attribute carried in the GVRP leaving protocol packet is revoked
  • the VLAN attribute of the same VLAN attribute carried in the GVRP leaving protocol packet is removed from the network-side interface of the aggregation switch.
  • the embodiment of the present invention determines the interface type of the aggregation switch, and after the aggregation switch receives the GVRP leaving protocol packet sent by the access switch, the aggregation switch controls the protocol packet flooding behavior and the VLAN attribute revocation behavior according to the interface type of the aggregation switch. Maintenance costs and network and server resources are saved.
  • Embodiment 6 This embodiment provides a method for revoking a virtual local area network. As shown in FIG. 6, the method includes:
  • the core switch receives the GVRP Leave Protocol (GVRP Leave Control Packet) sent by the aggregation switch.
  • GVRP Leave Protocol GVRP Leave Control Packet
  • the core switch revokes the same VLAN attribute of the VLAN attribute carried by the GVRP leaving protocol packet in the user-side interface of the core switch.
  • the VLAN attribute of the core switch that is the same as the VLAN attribute carried in the GVRP Leave Protocol packet on the user-side interface of the core switch includes:
  • Embodiment 7 This embodiment provides a method for deploying a virtual local area network. As shown in FIG. 7, the method includes:
  • the access switch receives the virtual server online notification.
  • the access switch activates a VLAN attribute that is the same as a VLAN attribute of the virtual server in the user-side interface that receives the online notification.
  • step 703 Traverse all interfaces of the access switch, and determine whether the traversed interface is a network side interface. If the traversed interface is not a network side interface, step 713 is performed; if the traversed interface is a network side Interface, go to step 704.
  • the access switch activates a VLAN attribute of the network side interface that has the same VLAN attribute as the virtual server.
  • the access switch sends a GVRP Join message (GVRP Join Control Packet) to the aggregation switch through the network side interface.
  • GVRP Join Control Packet GVRP Join Control Packet
  • the aggregation switch After receiving the GVRP join protocol packet, the aggregation switch determines whether the interface that receives the GVRP join protocol packet is a user-side interface, and if the interface that receives the GVRP join protocol packet is not a user-side interface, Step 707 is performed. If the interface that receives the GVRP join protocol packet is the user-side interface, go to step 707.
  • the aggregation switch activates a VLAN attribute of the user-side interface that has the same VLAN attribute as that carried by the GVRP join protocol packet.
  • step 713 is performed; if the traversed interface is a network side interface , go to step 709. 709.
  • the aggregation switch activates a VLAN attribute of the network side interface that has the same VLAN attribute as that of the GVRP join protocol packet.
  • the aggregation switch sends a GVRP join protocol to the core switch by using the network side interface.
  • the core switch After receiving the GVRP join protocol packet, the core switch determines whether the interface that receives the GVRP join protocol packet is a user-side interface, and if the interface of the GVRP join protocol packet is not a user-side interface, performing Step 713: If the interface of the GVRP join protocol packet is a user-side interface, go to step 712.
  • the core switch activates a VLAN attribute of the user-side interface that has the same VLAN attribute as that carried by the GVRP join protocol packet.
  • the device namely, an access switch, an aggregation switch, and a core switch
  • the interfaces of each device are respectively defined as a network side interface and a user side interface
  • the access switch is connected to the virtual server.
  • the VLAN is deployed according to the interface type and the GVRP join protocol packet is flooded to the aggregation switch.
  • the aggregation switch controls the VLAN attribute deployment based on the interface type and spreads the GVRP join protocol packet to the core switch.
  • the core switch controls the VLAN attribute deployment based on the interface type.
  • Embodiment 8 This embodiment provides a method for revoking a virtual local area network. As shown in FIG. 8, the method includes:
  • the access switch receives the virtual server offline notification.
  • the access switch cancels the VLAN attribute of the user-side interface that receives the offline notification and has the same VLAN attribute as the virtual server. 803, traversing all user-side interfaces of the access switch, determining whether a user-side interface activates a VLAN attribute of the virtual server, and if a user-side interface activates a VLAN attribute of the virtual server, performing step 815; The user side interface activates the VLAN attribute of the virtual server, and step 804 is performed.
  • the physical server A and the physical server B are connected to the same access switch, and the physical servers A and the physical server B are in the online state.
  • the VLAN 10 virtual server in the physical server A goes offline, According to the process, you need to revoke the VLAN attribute of VLAN 10 in the network-side interface of the access switch.
  • the physical network A and the physical server B use the network-side interface of the access switch. If the VLAN attribute of all the network-side interfaces of the VLAN 10 is in the switch, the VLAN 10 virtual server in the physical server B is forcibly disconnected and cannot continue to work normally. Therefore, you need to view all user-side interfaces of the access switch before revoking.
  • the access switch cannot be revoked.
  • VLAN attribute-side interface if no virtual servers which he is working, may be withdrawn within the corresponding VLAN 10 to the access switch has a network-side interface VLAN attribute.
  • step 804 traversing all interfaces of the access switch, determining whether the traversed interface is a network side interface, if the traversed interface interface is not a network side interface, performing step 815; if the traversed interface interface is a network On the side interface, go to step 805.
  • the access switch revokes the VLAN attribute of the network side interface that is the same as the VLAN attribute of the virtual server.
  • the access switch sends a GVRP Leave message (GVRP Leave Control Packet) to the aggregation switch through the network side interface.
  • GVRP Leave Control Packet GVRP Leave Control Packet
  • the aggregation switch determines to receive the GVRP. Whether the interface that leaves the protocol packet is the user-side interface, and if the interface that receives the GVRP leaving the protocol packet is not the user-side interface, step 815 is performed; if the interface that receives the GVRP leaving the protocol packet is the user side Interface, go to step 808.
  • the aggregation switch cancels the VLAN attribute of the user-side interface that has the same VLAN attribute as the GVRP leaving protocol packet.
  • Step 809 traversing all the user-side interfaces of the access switch, determining whether the user-side interface activates the VLAN attribute carried in the GVRP leaving protocol packet, and if the user-side interface activates the VLAN attribute carried in the GVRP leaving protocol packet Step 810 is performed. If no user-side interface is used to activate the VLAN attribute carried in the GVRP leaving protocol packet, go to step 810.
  • physical server A and physical server B access the same aggregation switch through different access switches, and physical servers A and VLAN 10 virtual servers in physical server B are online.
  • VLAN 10 is in physical server A.
  • the virtual server is offline, the VLAN attribute of VLAN 10 in the network-side interface of the aggregation switch needs to be revoked.
  • the physical network A and the physical server B use the network-side interface. In this case, the aggregation switch is directly revoked. If the VLAN attribute of VLAN 10 in the network-side interface is configured, the VLAN 10 virtual server in physical server B will be forced to disconnect and cannot continue to work normally.
  • VL VLAN attribute of AN 10 if no other virtual server is working, the VLAN attribute of VLAN 10 in the network side interface of the aggregation switch can be revoked.
  • step 810 Traverse all the interfaces of the aggregation switch, and determine whether the traversed interface is a network side interface. If the traversed interface is not a network side interface, go to step 815. If the traversed interface is a network side interface, Go to step 811. 811. The aggregation switch cancels the VLAN attribute of the network-side interface that is the same as the VLAN attribute carried in the GVRP Leave Protocol packet.
  • the aggregation switch sends the GVRP leaving protocol to the core switch by using the network side interface.
  • Step 813 After receiving the GVRP Leave Protocol message, the core switch determines whether the interface that receives the GVRP Leave Protocol message is a user-side interface, and if the GVRP Leave Protocol message interface is not a user-side interface, Step 814 is performed. If the GVRP leaving protocol packet interface is the user-side interface, go to step 814.
  • the core switch cancels the VLAN attribute of the user-side interface that has the same VLAN attribute as the GVRP leaving protocol packet.
  • the process ends.
  • three types of roles are defined for the device, namely, an access switch, an aggregation switch, and a core switch, and the interfaces of each device are respectively defined as a network side interface and a user side interface, and the access switch is connected to the virtual server.
  • the VLAN attribute is revoked according to the interface type and the GVRP Leave Protocol packet is advertised to the aggregation switch.
  • the aggregation switch revokes the VLAN attribute according to the interface type and advertises the GVRP Leave Protocol packet to the core switch.
  • the core switch controls the VLAN attribute according to the interface type.
  • Embodiment 9 This embodiment provides an access switch. As shown in FIG. 9, the access switch includes a first receiving module 901, a first activation module 902, and a first sending module 903, where: the first receiving The module 901 is configured to receive an online notification sent by the virtual server, where the first activation module 902 is configured to activate the access switch according to the online notification. Virtual LAN VLAN attribute of the network side interface;
  • the first sending module 903 is configured to send, by using the network side interface, a GVRP Join message (GVRP Join Control Packet) to the aggregation switch.
  • a GVRP Join message (GVRP Join Control Packet)
  • the first activation module 902 is specifically configured to: activate a VLAN attribute that is the same as a VLAN attribute of the virtual server in the user-side interface that receives the online notification; traverse all interfaces of the access switch, determine the Whether the traversed interface is a network side interface;
  • the traversed interface is a network side interface
  • the VLAN attribute of the network side interface that is the same as the VLAN attribute of the virtual server is activated.
  • the access switch may further include: a first interface type dividing module 904, configured to divide an interface type into an interface according to the device role information carried in the received GVRP protocol packet.
  • a first interface type dividing module 904 configured to divide an interface type into an interface according to the device role information carried in the received GVRP protocol packet.
  • the first interface type dividing module 904 is specifically configured to: determine whether the GVRP protocol packet carries device role information;
  • the interface that receives the GVRP protocol packet is divided into a network side interface; when the GVRP protocol packet does not carry the device role information, the GVRP is received.
  • the interface of the protocol packet is divided into user-side interfaces. All interfaces are user-side interfaces by default.
  • the embodiment of the present invention reduces the maintenance cost and saves the network and saves the maintenance cost by limiting the interface behavior of the access switch after receiving the online notification of the virtual server, according to the interface type control protocol packet spreading behavior and the VLAN attribute deployment behavior. Server resources.
  • Embodiment 10 This embodiment provides an aggregation switch. As shown in FIG. 11, the aggregation switch includes a second receiving module 1101, a second activation module 1102, and a second sending module 1103, where: the second receiving module 1101
  • the GVRP join protocol packet (GVRP Join Control Packet) is received by the access switch.
  • the second activation module 1102 is configured to activate a VLAN attribute of a network side interface of the aggregation switch and a user-side interface of the aggregation switch that is the same as a VLAN attribute carried by the GVRP join protocol packet.
  • the second sending module 1103 is configured to send a GVRP join protocol packet to the core switch by using the network side interface of the aggregation switch.
  • the second activation module 1102 is specifically configured to: determine whether the interface that receives the GVRP join protocol packet is a user-side interface; and when the interface that receives the GVRP join protocol packet is a user-side interface, the activation is performed.
  • the VLAN attribute of the user-side interface that is the same as the VLAN attribute carried in the GVRP join protocol packet;
  • the traversed interface is a network side interface
  • the VLAN attribute of the network side interface that is the same as the VLAN attribute carried in the GVRP join protocol packet is activated.
  • the aggregation switch may further include: a second interface type division module 1104, configured to divide an interface type into an interface according to the device role information carried in the received GVRP protocol packet.
  • the second interface type division module 1104 is specifically configured to: determine whether the GVRP protocol packet carries the core switch role information; and when the GVRP protocol packet carries the core switch role information, the GVRP is received.
  • the interface of the protocol packet is divided into a network-side interface.
  • the interface that receives the GVRP protocol packet is divided into user-side interfaces. Side interface.
  • the aggregation switch receives the GVRP join protocol packet sent by the access switch, and controls the spreading behavior of the protocol packet and the deployment behavior of the VLAN attribute according to the interface type, thereby reducing maintenance costs and saving network and server resources.
  • Embodiment 11 This embodiment provides a core switch. As shown in FIG. 13, the core switch includes a third receiving module 1301 and a third activation module 1302, where: the third receiving module 1301 is configured to receive convergence.
  • the GVRP join protocol packet (GVRP Join Control Packet) sent by the switch; the third activation module 1302, configured to activate the GVRP join protocol packet carried in the user-side interface of the core switch
  • the VLAN attribute has the same VLAN attribute.
  • the third activation module 1302 is specifically configured to: determine whether the interface that receives the GVRP join protocol packet is a user-side interface; and when the interface that receives the GVRP join protocol packet is a user-side interface, the activation is performed.
  • the VLAN attribute of the user-side interface that is the same as the VLAN attribute carried in the GVRP join protocol packet.
  • the core switch may further include:
  • the third interface type dividing module 1304 is configured to divide the interface type for the interface according to the device role information carried in the received GVRP protocol packet.
  • the third interface type dividing module 1304 is specifically configured to: determine whether the GVRP protocol packet carries device role information; and when the GVRP protocol packet carries device role information, the GVRP protocol packet is received.
  • the interface of the text is divided into a user-side interface.
  • the interface that receives the GVRP protocol packet is divided into network-side interfaces.
  • the core switch receives the GVRP join protocol packet sent by the aggregation switch, and controls the spreading behavior of the protocol packet and the deployment behavior of the VLAN attribute according to the interface type, thereby reducing maintenance costs and saving network and server resources.
  • Embodiment 12 This embodiment provides an access switch. As shown in FIG.
  • the access switch includes a first receiving module 1501, a first revocation module 1502, and a first sending module 1503, where: the first The receiving module 1501 is configured to receive a offline notification sent by the virtual server, where the first revocation module 1502 is configured to cancel, according to the offline notification, a virtual local area network VLAN attribute of the network side interface of the access switch; A sending module 1503 is configured to send, by using the network side interface, a GVRP Leave message (GVRP Leave Control Packet) to the aggregation switch.
  • GVRP Leave Control Packet GVRP Leave Control Packet
  • the first revocation module 1502 is specifically configured to: revoke a VLAN attribute that is the same as a VLAN attribute of the virtual server in a user-side interface that receives the offline notification; Traversing all the user-side interfaces of the access switch, determining whether a user-side interface activates a VLAN attribute of the virtual server;
  • the VLAN attribute of the network side interface of the access switch is the same as the VLAN attribute of the virtual server.
  • the embodiment of the present invention reduces the maintenance cost and saves the network by defining the interface type of the access switch, after receiving the offline notification of the virtual server, and controlling the diffusion behavior of the protocol packet and the revocation behavior of the VLAN attribute according to the interface type. And server resources.
  • Embodiment 13 This embodiment provides an aggregation switch. As shown in FIG. 16, the aggregation switch includes a second receiving module 1601, a second revocation module 1602, and a second sending module 1603, where:
  • the second receiving module 1601 is configured to receive a GVRP Leave message (GVRP Leave Control Packet) sent by the access switch.
  • GVRP Leave message GVRP Leave Control Packet
  • the second revocation module 1602 is configured to cancel the VLAN attributes of the network side interface and the user side interface of the aggregation switch that are the same as the VLAN attributes carried in the GVRP leaving protocol packet.
  • the second sending module 1603 is configured to send a GVRP Leave Protocol message to the core switch by using the network side interface of the aggregation switch.
  • the second revocation module 1602 is specifically configured to:
  • the VLAN attribute of the same VLAN attribute carried in the GVRP leaving protocol packet is removed from the network-side interface of the aggregation switch.
  • the embodiment of the present invention reduces the maintenance cost by limiting the interface type of the aggregation switch, and after the aggregation switch receives the GVRP leaving protocol packet sent by the access switch, according to the interface type, the protocol spreading behavior and the VLAN attribute revocation behavior are reduced. And save network and server resources.
  • Embodiment 14 This embodiment provides a core switch. As shown in FIG. 17, the core switch includes a third receiving module 1701 and a third undoing module 1702, where:
  • the third receiving module 1701 is configured to receive a GVRP Leave message (GVRP Leave Control Packet) sent by the aggregation switch.
  • GVRP Leave message GVRP Leave Control Packet
  • the third revocation module 1702 is configured to cancel the VLAN attribute of the user-side interface of the core switch that is the same as the VLAN attribute carried in the GVRP leaving protocol packet.
  • the third revocation module 1702 is specifically configured to: determine whether the interface that receives the GVRP leaving protocol packet is a user-side interface; and when the interface that receives the GVRP leaving the protocol packet is a user-side interface, the revocation is performed.
  • the VLAN attribute of the user-side interface that is the same as the VLAN attribute carried in the GVRP Leave Protocol packet.
  • the embodiment of the present invention reduces the maintenance cost by defining the interface type of the core switch, after the core switch receives the GVRP leaving protocol packet sent by the aggregation switch, and controls the diffusion behavior of the protocol packet and the revocation behavior of the VLAN attribute according to the interface type. And save the network and server Embodiment 15
  • This embodiment provides a system for deploying and revoking a virtual local area network. As shown in FIG. 18, the system for deploying and revoking a virtual local area network includes: an access switch 1801, an aggregation switch 1802, and a core switch 1803.
  • the access switch 1801 may be the access switch described in Embodiment 9 and Embodiment 12; the aggregation switch 1802 may be the aggregation switch described in Embodiment 10 and Embodiment 13; 1803 can be the core switch described in Embodiment 11 and Embodiment 14.
  • the user-side interface of the access switch 1801 is connected to a physical server or a personal PC, and the network-side interface of the access switch 1801 is connected to the user-side interface of the aggregation switch 1802, and the aggregation switch 1802
  • the network side interface is connected to the user side interface of the core switch 1803.
  • three types of roles are defined for the device, namely, an access switch 1801, an aggregation switch 1802, and a core gateway 1803.
  • the interfaces of each device are respectively defined as a network side interface and a user side interface, and the access switch is connected.
  • the VLAN attribute is deployed (discarded) according to the interface type, and the GVRP is added to the aggregation switch to join (leave) protocol packets.
  • the aggregation switch controls (deactivates) the VLAN attribute according to the interface type and sends the core switch to the core switch.
  • the GVRP joins (leaves) the protocol packets.
  • the core switch controls the VLAN attributes to be deployed (revoked) according to the interface type. This implements dynamic deployment and revocation of the VLAN attributes of the virtual server, reducing the implementation cost and saving network and server resources.
  • the method and device for deploying and re-routing a virtual local area network may implement the foregoing method embodiments.
  • Embodiments 9 through 15 can be implemented by hardware, such as a general purpose CPU (Central Processing Unit), a Field-Programmable Gate Array (FPGA), These modules are implemented by Application Specific Integrated Circuit (ASIC) or rogrammable logic device (PLD).
  • ASIC Application Specific Integrated Circuit
  • PLD rogrammable logic device
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory.

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

一种虚拟局域网的部署和撤销方法、设备及系统,所述方法包括:接入交换机接收虚拟服务器发送的上线通知;所述接入交换机根据所述上线通知激活所述接入交换机的网络侧接口的虚拟局域网VLAN属性;所述接入交换机通过所述网络侧接口向汇聚交换机发送通用VLAN属性注册协议GVRP加入协议报文。本发明适用于虚拟服务器的VLAN属性的动态部署和撤销。

Description

虚拟局域网的部署和撤销方法、 设备及系统 本申请要求于 2012年 01月 18日提交中国专利局、 申请号为 201210016312.2、 发明名称为"虚拟局域网的部署和 4敦销方法、 设备及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 特别涉及一种虚拟局域网的部署和撤销方 法、 设备及系统。
背景技术
随着网络技术的发展, 数据中心网络已经成为了众多网络设备商的聚 焦点。 数据中心网络的特点之一是其中的物理服务器具有虚拟化功能, 物 理服务器通过软件可以创建出多个虚拟服务器。 虚拟服务器的上线和下线 是由虚拟服务器管理软件控制的, 数据中心交换机可以感知到虚拟服务器 的动态上线或下线, 并随之做出相应的网络设备动作, 例如, 当虚拟服务 器上线时, 进行 VLAN ( Virtual Local Area Network, 虚拟局域网)属性部 署; 当虚拟服务器下线时, 进行 VLAN属性撤销。 现有技术中, 对虚拟服务器进行 VLAN的属性部署主要包括两种方案: 静态配置方案和网络控制中心部署方案。 其中, 静态配置方案是预先将虚 拟服务器的 VLAN部署到接入交换机和汇聚交换机的所有端口,当物理服务 器内的一个虚拟服务器上线时, 直接应用部署好的 VLAN; 网络控制中心部 署方案是通过网络控制中心根据虚拟服务器上线情况实时动态的进行 VLAN部署或 4敦销。 现有技术中存在如下问题: 在静态配置方案中, 当一个物理服务器内 的某个虚拟服务器 VLAN 10上线, 而其他物理服务器内的 VLAN 10处于离 线状态时, 这些处于离线状态的 VLAN 10虚拟服务器也会收到 VLAN 10的 数据流, 造成网络和服务器的资源浪费; 在网络控制中心部署方案中, 需 要依赖网络控制中心的整网拓朴计算正确性以及网络设备管理网络的可靠 性。 并且整个系统涉及到的设备和责任主体较多, 一旦系统出现故障, 将 无法快速定位故障位置, 找到责任主体, 导致系统维护困难, 维护成本高。
发明内容
本发明的实施例提供一种虚拟局域网的部署和撤销方法、 设备及系统, 能够以低成本实现虚拟服务器的 VLAN属性的动态部署和撤销,并节省网络 及服务器资源。 根据本发明实施例的一个方面, 一种虚拟局域网的部署方法, 包括: 接入交换机接收虚拟服务器发送的上线通知; 所述接入交换机根据所述上线通知激活所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性; 所述接入交换机通过所述网络侧接口向汇聚交换机发送 GVRP ( GARP VLAN Registration Protocol, 通用 VLAN属性注册协议)加入协议报文。 根据本发明实施例的另一个方面, 一种虚拟局域网的部署方法, 包括: 汇聚交换机接收接入交换机发送的 GVRP加入协议报文; 所述汇聚交换机激活所述汇聚交换机的网络侧接口和所述汇聚交换机 的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN 属性; 所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心网关发送 GVRP加入协议报文。 根据本发明实施例的另一个方面, 一种虚拟局域网的部署方法, 包括: 核心网关接收汇聚交换机发送的 GVRP加入协议报文;
所述核心网关激活所述核心网关的用户侧接口中与所述 GVRP加入协 议报文携带的 VLAN属性相同的 VLAN属性。
根据本发明实施例的另一个方面, 一种虚拟局域网的撤销方法, 包括: 接入交换机接收虚拟服务器发送的下线通知;
所述接入交换机根据所述下线通知撤销所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性;
所述接入交换机通过所述网络侧接口向汇聚交换机发送通用 VLAN属 性注册协议 GVRP离开协议报文。
根据本发明实施例的另一个方面, 一种虚拟局域网的撤销方法, 包括: 汇聚交换机接收接入交换机发送的 GVRP离开协议报文;
所述汇聚交换机撤销所述汇聚交换机的网络侧接口和所述汇聚交换机 的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN 属性;
所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心网关发送 GVRP离开协议报文。
根据本发明实施例的另一个方面, 一种虚拟局域网的撤销方法, 包括: 核心网关接收汇聚交换机发送的 GVRP离开协议报文;
所述核心网关撤销所述核心网关的用户侧接口中与所述 GVRP离开协 议报文携带的 VLAN属性相同的 VLAN属性。 根据本发明实施例的另一个方面, 一种接入交换机, 包括:
第一接收模块, 用于接收虚拟服务器发送的上线通知; 第一激活模块, 用于根据所述上线通知激活所述接入交换机的网络侧 接口的虚拟局域网 VLAN属性;
第一发送模块,用于通过所述网络侧接口向汇聚交换机发送通用 VLAN 属性注册协议 GVRP加入协议报文。
根据本发明实施例的另一个方面, 一种汇聚交换机, 包括:
第二接收模块, 用于接收接入交换机发送的 GVRP加入协议报文; 第二激活模块, 用于激活所述汇聚交换机的网络侧接口和所述汇聚交 换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性;
第二发送模块, 用于通过所述汇聚交换机的网络侧接口向核心网关发 送 GVRP加入协议报文。 根据本发明实施例的另一个方面, 一种核心网关, 包括:
第三接收模块, 用于接收汇聚交换机发送的 GVRP加入协议报文; 第三激活模块,用于激活所述核心网关的用户侧接口中与所述 GVRP加 入协议报文携带的 VLAN属性相同的 VLAN属性。 根据本发明实施例的另一个方面, 一种接入交换机, 包括:
第一接收模块, 用于接收虚拟服务器发送的下线通知;
第一撤销模块, 用于根据所述下线通知撤销所述接入交换机的网络侧 接口的虚拟局域网 VLAN属性;
第一发送模块,用于通过所述网络侧接口向汇聚交换机发送通用 VLAN 属性注册协议 GVRP离开协议报文。 根据本发明实施例的另一个方面, 一种汇聚交换机, 包括:
第二接收模块, 用于接收接入交换机发送的 GVRP离开协议报文; 第二撤销模块, 用于撤销所述汇聚交换机的网络侧接口和所述汇聚交 换机的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性; 第二发送模块, 用于通过所述汇聚交换机的网络侧接口向核心网关发 送 GVRP离开协议报文。 根据本发明实施例的另一个方面, 一种核心网关, 包括: 第三接收模块, 用于接收汇聚交换机发送的 GVRP离开协议报文; 第三撤销模块,用于撤销所述核心网关的用户侧接口中与所述 GVRP离 开协议报文携带的 VLAN属性相同的 VLAN属性。 根据本发明实施例的另一个方面, 一种虚拟局域网的部署和撤销系统, 包括: 接入交换机; 汇聚交换机; 核心网关。 本发明实施例通过定义设备的角色以及接口类型, 在交换机接收到虚 拟服务器的上线通知时, 各设备之间发送通告 GVRP协议报文时, 设备根据 所述 GVRP协议报文中包括的设备角色信息, 确定接收所述通告 GVRP协议 报文的接口类型,根据接口类型实现虚拟服务器的 VLAN属性的动态部署和 撤销, 降低了维护成本, 并节省了网络及服务器资源。
附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不 付出创造性劳动的前提下, 还可以根据这些附图获得其它的附图。 图 1为本发明实施例一的虚拟局域网的部署方法流程图; 图 2为本发明实施例二的虚拟局域网的部署方法流程图;
图 3为本发明实施例三的虚拟局域网的部署方法流程图;
图 4为本发明实施例四的虚拟局域网的撤销方法流程图;
图 5为本发明实施例五的虚拟局域网的撤销方法流程图;
图 6为本发明实施例六的虚拟局域网的撤销方法流程图;
图 7为本发明实施例七的虚拟局域网的部署方法流程图;
图 8为本发明实施例八的虚拟局域网的撤销方法流程图;
图 9为本发明实施例九的接入交换机的结构示意图;
图 10为本发明实施例九的接入交换机的结构示意图;
图 11为本发明实施例十的汇聚交换机的结构示意图;
图 12为本发明实施例十的汇聚交换机的结构示意图;
图 13为本发明实施例十一的核心网关的结构示意图;
图 14为本发明实施例十一的核心网关的结构示意图;
图 15为本发明实施例十二的接入交换机的结构示意图;
图 16为本发明实施例十三的汇聚交换机的结构示意图;
图 17为本发明实施例十四的核心网关的结构示意图;
图 18为本发明实施例十五的虚拟局域网的部署和撤销系统的结构示意 图 19为本发明中接入交换机的接口类型划分流程图;
图 20为本发明中汇聚交换机的接口类型划分流程图;
图 21为本发明中核心网关的接口类型划分流程图;
图 22为本发明中设备间的网络结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行详细地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不 是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。 为使本发明技术方案的优点更加清楚, 下面结合附图和实施例对本发 明作详细说明。 本发明实施例中, 核心网关可以是核心交换机或者路由器等网络设备。 在接入交换机接收虚拟服务器上线通知后, 接入交换机、 汇聚交换机以及 核心网关根据接收到的通告 GVRP ( GARP VLAN Registration Protocol, 通 用 VLAN属性注册协议)协议报文为各自设备的接口划分接口类型, 包括用 户侧接口和网络侧接口。 接入交换机的接口类型划分如图 19所示。 接入交换机的接口接收到通 告 GVRP协议报文后, 确定接收到的通告 GVRP协议报文是否携带有角色信 息, 如果接收到的通告 GVRP协议报文携带有角色信息, 则确定接收到该通 告 GVRP协议报文的接口为网络侧接口; 如果接收到的通告 GVRP协议报文 未携带角色信息, 则确定接收到该通告 GVRP协议报文的接口为用户侧接 口。 汇聚交换机的接口类型划分如图 20所示。 汇聚交换机的某个或某些接 口接收到通告 GVRP协议报文后, 确定该接收到的通告 GVRP协议报文是否 携带有核心网关的核心设备信息,如果该接收到的通告 GVRP协议报文携带 有核心网关的核心设备信息,则确定接收到该通告 GVRP协议报文的接口为 网络侧接口;如果该接收到的通告 GVRP协议报文未携带核心网关的核心设 备信息, 则确定接收到该通告 GVRP协议报文的接口为用户侧接口。 核心网关的接口类型划分如图 21所示。 核心网关, 比如核心交换机, 的某个或某些接口接收到通告 GVRP协议报文时, 确定该接收到的通告 GVRP协议报文是否携带有角色信息, 如果该接收到的通告 GVRP协议报文 携带有角色信息,则该确定接收到该通告 GVRP协议报文的接口为用户侧接 口, 如果该接收到的通告 GVRP协议报文未携带角色信息, 则确定接收到该 通告 GVRP协议报文的接口为网络侧接口。 接入交换机、 汇聚交换机以及核心交换机的网络结构图如图 22所示。 如图 22所示, 核心网关 (比如核心交换机) 经若干汇聚交换机、 若干个接 入交换机与物理服务器通信。 核心网关可以是一个或多个, 也可以是一个 或多个核心交换机构成的设备组, 汇聚交换机和接入交换机也可以是一个 或多个。
实施例一 本实施例提供一种虚拟局域网的部署方法,如图 1所示,所述方法包括:
101、 接入交换机接收虚拟服务器发送的上线通知。
102、 所述接入交换机根据所述上线通知激活所述接入交换机的网络侧 接口的虚拟局域网 VLAN ( Virtual Local Area Network , 虚拟局域网)属性。
103、 所述接入交换机通过所述网络侧接口向汇聚交换机发送 GVRP加 入协议报文(GVRP Join报文, GVRP Join Control Packet )。
所述接入交换机根据所述上线通知激活所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性包括:
所述接入交换机激活接收所述上线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性; 遍历所述接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口; 若所述遍历到的接口为网络侧接口, 则激活所述网络侧接口中与所述 虚拟服务器的 VLAN属性相同的 VLAN属性。 可选的,在所述接入交换机激活用户侧接口的 VLAN属性之前,还包括: 所述接入交换机根据接收到的通告 GVRP协议报文携带的设备角色信息为 所述接入交换机的接口划分接口类型。 所述接入交换机根据接收到的通告 GVRP协议报文携带的设备角色信 息为所述接入交换机的接口划分接口类型包括:
所述接入交换机确定所述通告 GVRP协议报文是否带有设备角色信息; 若所述通告 GVRP协议报文带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为网络侧接口; 若所述通告 GVRP协议报文不带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为用户侧接口; 其中, 所有接口默认为用户侧接 口。 本发明实施例通过定义接入交换机的接口类型, 在收到虚拟服务器的 上线通知后, 根据所述接入交换机的接口类型控制协议报文的扩散行为以 及 VLAN属性的部署行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例二 本实施例提供一种虚拟局域网的部署方法,如图 2所示,所述方法包括:
201、 汇聚交换机接收接入交换机发送的 GVRP加入协议报文(GVRP Join才艮文, GVRP Join Control Packet )。
202、 所述汇聚交换机激活所述汇聚交换机的网络侧接口和所述汇聚交 换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
203、 所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心交换机 发送 GVRP加入协议报文。
所述汇聚交换机激活所述汇聚交换机的网络侧接口和所述汇聚交换机 的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN 属性包括:
所述汇聚交换机确定接收所述 GVRP加入协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP加入协议报文的接口为用户侧接口,则激活所述 接收所述 GVRP加入协议报文的接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性;
遍历所述汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
若所述遍历到的接口为网络侧接口, 则激活所述网络侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
可选的,在所述汇聚交换机接收接入交换机发送的 GVRP加入协议报文 之前, 还包括:
汇聚交换机根据接收到的通告 GVRP协议报文携带的设备角色信息为 接口划分接口类型。
其中,所述汇聚交换机根据接收到的通告 GVRP协议报文携带的设备角 色信息为接口划分接口类型包括:
汇聚交换机确定所述通告 GVRP协议报文是否带有核心交换机角色信 息;
若所述通告 GVRP协议报文带有核心交换机角色信息,则将接收所述通 告 GVRP协议报文的接口划分为网络侧接口;
若所述通告 GVRP协议报文不带有核心交换机角色信息,则将接收所述 通告 GVRP协议报文的接口划分为用户侧接口; 其中, 所有接口默认为用户 侧接口。
本发明实施例通过汇聚交换机接收接入交换机发送的 GVRP加入协议 报文, 根据汇聚交换机的接口类型控制 GVRP协议报文的扩散行为以及 VLAN属性的部署行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例三 本实施例提供一种虚拟局域网的部署方法,如图 3所示,所述方法包括:
301、 核心交换机接收汇聚交换机发送的 GVRP加入协议报文(GVRP Join才艮文, GVRP Join Control Packet )。
302、 所述核心交换机激活所述核心交换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
所述核心交换机激活所述核心交换机的用户侧接口中与所述 GVRP加 入协议报文携带的 VLAN属性相同的 VLAN属性包括:
所述核心交换机确定接收所述 GVRP加入协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP加入协议报文的接口为用户侧接口,则激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性。
可选的, 核心交换机还包括:
核心交换机根据接收到的通告 GVRP协议报文携带的设备角色信息为 接口划分接口类型。 其中,所述核心交换机根据接收到的通告 GVRP协议报文携带的设备角 色信息为接口划分接口类型包括: 核心交换机确定所述通告 GVRP协议报文是否带有设备角色信息; 若所述通告 GVRP协议报文带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为用户侧接口; 若所述通告 GVRP协议报文不带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为网络侧接口, 其中, 所有接口默认为网络侧接 口。 本发明实施例通过核心交换机接收汇聚交换机发送的 GVRP加入协议 报文, 根据接口类型控制协议报文的扩散行为以及 VLAN属性的部署行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例四 本实施例提供一种虚拟局域网的撤销方法,如图 4所示,所述方法包括:
401、 接入交换机接收虚拟服务器发送的下线通知。
402、 所述接入交换机根据所述下线通知撤销所述接入交换机的网络侧 接口的虚拟局域网 VLAN属性。
403、 所述接入交换机通过所述网络侧接口向汇聚交换机发送 GVRP离 开协议报文(GVRP Leave报文, GVRP Leave Control Packet )。 所述接入交换机根据所述下线通知撤销所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性包括: 所述接入交换机撤销接收所述下线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性; 遍历所述接入交换机的所有用户侧接口, 确定是否有用户侧接口激活 所述虚拟服务器的 VLAN属性;
若没有用户侧接口激活所述虚拟服务器的 VLAN属性,则撤销所述接入 交换机的网络侧接口中与所述虚拟服务器的 VLAN属性相同的 VLAN属性。 本发明实施例通过定义接入交换机的接口类型, 在收到虚拟服务器的 下线通知后, 根据接入交换机的接口类型控制协议报文的扩散行为以及 VLAN属性的撤销行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例五 本实施例提供一种虚拟局域网的撤销方法,如图 5所示,所述方法包括:
501、 汇聚交换机接收接入交换机发送的 GVRP离开协议报文(GVRP Leave才艮文, GVRP Leave Control Packet )。
502、 所述汇聚交换机撤销所述汇聚交换机的网络侧接口和所述汇聚交 换机的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
503、 所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心交换机 发送 GVRP离开协议报文。 述汇聚交换机撤销所述汇聚交换机的网络侧接口和用户侧接口中与所 述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性包括: 所述汇聚交换机确定接收所述 GVRP离开协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP离开协议报文的接口为用户侧接口,则撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有的用户侧接口, 确定是否有用户侧接口激 活了所述 GVRP离开协议报文携带的 VLAN属性;
若没有用户侧接口激活所述 GVRP离开协议报文携带的 VLAN属性, 则 撤销所述汇聚交换机的网络侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
本发明实施例通过定义汇聚交换机的接口类型, 在汇聚交换机收到接 入交换机发送的 GVRP离开协议报文后,根据汇聚交换机的接口类型控制协 议报文的扩散行为以及 VLAN属性的撤销行为, 降低了维护成本, 并节省了 网络及服务器资源。 实施例六 本实施例提供一种虚拟局域网的撤销方法,如图 6所示,所述方法包括:
601、 核心交换机接收汇聚交换机发送的 GVRP离开协议报文(GVRP Leave才艮文, GVRP Leave Control Packet )。
602、 所述核心交换机撤销所述核心交换机的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
所述核心交换机撤销所述核心交换机的用户侧接口中与所述 GVRP离 开协议报文携带的 VLAN属性相同的 VLAN属性包括:
所述核心交换机确定接收所述 GVRP离开协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP离开协议报文的接口为用户侧接口,则撤销所述 接收所述 GVRP离开协议报文的接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。 本发明实施例通过定义核心交换机的接口类型, 在核心交换机收到汇 聚交换机发送的 GVRP离开协议报文后,根据核心交换机的接口类型控制协 议报文的扩散行为以及 VLAN属性的撤销行为, 降低了维护成本, 并节省了 网络及服务器资源。 实施例七 本实施例提供一种虚拟局域网的部署方法,如图 7所示,所述方法包括:
701、 接入交换机接收虚拟服务器上线通知。
702、 接入交换机激活接收所述上线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性。
703、 遍历接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口, 若所述遍历到的接口不为网络侧接口, 执行步骤 713; 若所述遍历 到的接口为网络侧接口, 执行步骤 704。
704、 接入交换机激活所述网络侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性。
705、 接入交换机通过所述网络侧接口向汇聚交换机发送 GVRP加入协 议报文(GVRP Join报文, GVRP Join Control Packet )。
706、汇聚交换机接收所述 GVRP加入协议报文后,确定接收所述 GVRP 加入协议报文的接口是否为用户侧接口,若所述接收所述 GVRP加入协议报 文的接口不为用户侧接口, 执行步骤 713; 若所述接收所述 GVRP加入协议 报文的接口为用户侧接口, 执行步骤 707。
707、 汇聚交换机激活所述用户侧接口中与所述 GVRP加入协议报文携 带的 VLAN属性相同的的 VLAN属性。
708、 遍历汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口, 若所述遍历到的接口不为网络侧接口, 执行步骤 713; 若所述遍历 到的接口为网络侧接口, 执行步骤 709。 709、 汇聚交换机激活所述网络侧接口中与所述 GVRP加入协议报文携 带的 VLAN属性相同的的 VLAN属性。
710、 汇聚交换机通过所述网络侧接口向核心交换机发送 GVRP加入协 议才艮文。
711、 核心交换机接收到所述 GVRP加入协议报文后, 确定接收所述 GVRP加入协议报文的接口是否为用户侧接口, 若所述所述 GVRP加入协议 报文的接口不是用户侧接口, 执行步骤 713; 若所述所述 GVRP加入协议报 文的接口为用户侧接口, 执行步骤 712。
712、 核心交换机激活所述用户侧接口中与所述 GVRP加入协议报文携 带的 VLAN属性相同的的 VLAN属性。
713、 结束流程。 本发明实施例为设备定义了三种角色类型, 分别为接入交换机、 汇聚 交换机以及核心交换机, 将每种设备的接口分别定义为网络侧接口和用户 侧接口,接入交换机接到虚拟服务器上线通知后,根据接口类型控制 VLAN 属性部署并向汇聚交换机扩散 GVRP加入协议报文,汇聚交换机根据接口类 型控制 VLAN属性部署并向核心交换机扩散 GVRP加入协议报文, 核心交换 机根据接口类型控制 VLAN属性部署, 从而实现虚拟服务器的 VLAN属性的 动态部署, 降低实现成本的同时节省了网络及 Λ良务器资源。 实施例八 本实施例提供一种虚拟局域网的撤销方法,如图 8所示,所述方法包括:
801、 接入交换机接收虚拟服务器下线通知。
802、 接入交换机撤销接收所述下线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性。 803、 遍历接入交换机的所有的用户侧接口, 确定是否有用户侧接口激 活了所述虚拟服务器的 VLAN属性,若有用户侧接口激活了所述虚拟服务器 的 VLAN属性, 执行步骤 815; 若没有用户侧接口激活了所述虚拟服务器的 VLAN属性, 执行步骤 804。
例如, 物理服务器 A以及物理服务器 B接入同一个接入交换机, 物理服 务器 A和物理服务器 B内的 VLAN 10虚拟服务器均处于上线状态, 此时若物 理服务器 A中的 VLAN 10虚拟服务器下线,按照流程需要撤销接入交换机内 网络侧接口中的 VLAN 10的 VLAN属性, 由于物理服务器 A和物理服务器 B 中的 VLAN10虚拟服务器都使用该接入交换机的网络侧接口,此时若直接撤 销接入交换机内对应 VLAN 10的所有网络侧接口的 VLAN属性,则物理服务 器 B中的 VLAN 10虚拟服务器会被强迫断开, 不能继续正常工作, 所以撤销 前需要检视接入交换机的所有的用户侧接口, 看是否有其他相同属性的 VLAN虚拟服务器处于工作状态, 若有其他虚拟服务器处于工作状态, 且所 述其他虚拟服务器与下线的虚拟服务器使用同一个网络侧接口时, 则不能 撤销接入交换机内对应 VLAN 10的所述网络侧接口的 VLAN属性;若没有其 他虚拟服务器处于工作状态, 则可以撤销接入交换机内对应 VLAN 10的所 有网络侧接口的 VLAN属性。
804、 遍历接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口, 若所述遍历到的接口接口不是网络侧接口, 执行步骤 815; 若所述 遍历到的接口接口是网络侧接口, 执行步骤 805。
805、 接入交换机撤销所述网络侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性。
806、 接入交换机通过所述网络侧接口向汇聚交换机发送 GVRP离开协 议报文( GVRP Leave报文, GVRP Leave Control Packet )。
807、汇聚交换机接收所述 GVRP离开协议报文后,确定接收所述 GVRP 离开协议报文的接口是否为用户侧接口,若所述接收所述 GVRP离开协议报 文的接口不是用户侧接口, 执行步骤 815; 若所述接收所述 GVRP离开协议 报文的接口为用户侧接口, 执行步骤 808。
808、 汇聚交换机撤销所述用户侧接口中与所述 GVRP离开协议报文携 带的 VLAN属性相同的的 VLAN属性。
809、 遍历接入交换机的所有的用户侧接口, 确定是否有用户侧接口激 活了所述 GVRP离开协议报文携带的 VLAN属性, 若有用户侧接口激活所述 GVRP离开协议报文携带的 VLAN属性, 执行步骤 815; 若没有用户侧接口 激活所述 GVRP离开协议报文携带的 VLAN属性, 执行步骤 810。
例如, 物理服务器 A以及物理服务器 B通过不同的接入交换机接入同一 个汇聚交换机, 物理服务器 A和物理服务器 B内的 VLAN 10虚拟服务器均处 于上线状态, 此时若物理服务器 A中的 VLAN 10虚拟服务器下线,按照流程 需要撤销汇聚交换机内网络侧接口中的 VLAN 10的 VLAN属性,由于物理服 务器 A和物理服务器 B中的 VLAN10虚拟服务器都使用该网络侧接口, 此时 若直接撤销汇聚交换机的网络侧接口中的 VLAN 10的 VLAN属性,则物理服 务器 B中的 VLAN 10虚拟服务器会被强迫断开, 不能继续正常工作, 所以撤 销前需要检视汇聚交换机的所有的用户侧接口, 看是否有其他相同属性的 VLAN虚拟服务器处于工作状态, 若有其他虚拟服务器处于工作状态, 且所 述其他虚拟服务器与下线的虚拟服务器使用同一个网络侧接口时, 则不能 撤销汇聚交换机的网络侧接口中的 VLAN 10的 VLAN属性;若没有其他虚拟 服务器处于工作状态, 则可以撤销汇聚交换机的网络侧接口中的 VLAN 10 的 VLAN属性。
810、 遍历汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口, 若所述遍历到的接口不是网络侧接口, 执行步骤 815; 若所述遍历 到的接口为网络侧接口, 执行步骤 811。 811、 汇聚交换机撤销所述网络侧接口中与所述 GVRP离开协议报文携 带的 VLAN属性相同的的 VLAN属性。
812、 汇聚交换机通过所述网络侧接口向核心交换机发送 GVRP离开协 议才艮文。
813、 核心交换机接收到所述 GVRP离开协议报文后, 确定接收所述 GVRP离开协议报文的接口是否为用户侧接口, 若所述接收到所述 GVRP离 开协议报文接口不是用户侧接口, 执行步骤 815; 若所述接收到所述 GVRP 离开协议报文接口为用户侧接口, 执行步骤 814。
814、 核心交换机撤销所述用户侧接口中与所述 GVRP离开协议报文携 带的 VLAN属性相同的的 VLAN属性。
815、 结束流程。 本发明实施例为设备定义了三种角色类型, 分别为接入交换机、 汇聚 交换机以及核心交换机, 将每种设备的接口分别定义为网络侧接口和用户 侧接口,接入交换机接到虚拟服务器下线通知后,根据接口类型控制 VLAN 属性撤销并向汇聚交换机扩散 GVRP离开协议报文,汇聚交换机根据接口类 型控制 VLAN属性撤销并向核心交换机扩散 GVRP离开协议报文, 核心交换 机根据接口类型控制 VLAN属性撤销, 从而实现虚拟服务器的 VLAN属性的 动态撤销, 降低实现成本的同时节省了网络及服务器资源。 实施例九 本实施例提供一种接入交换机, 如图 9所示, 所述接入交换机包括第一 接收模块 901、 第一激活模块 902和第一发送模块 903 , 其中: 所述第一接收模块 901, 用于接收虚拟服务器发送的上线通知; 所述第一激活模块 902, 用于根据所述上线通知激活所述接入交换机的 网络侧接口的虚拟局域网 VLAN属性;
所述第一发送模块 903 , 用于通过所述网络侧接口向汇聚交换机发送通 用 VLAN属性注册协议 GVRP加入协议报文(GVRP Join报文, GVRP Join Control Packet )。
其中, 所述第一激活模块 902具体用于: 激活接收所述上线通知的用户侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性; 遍历所述接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
当所述遍历到的接口为网络侧接口时, 激活所述网络侧接口中与所述 虚拟服务器的 VLAN属性相同的 VLAN属性。
可选的, 如图 10所示, 所述接入交换机还可以包括: 第一接口类型划分模块 904 , 用于根据接收到的 GVRP协议报文携带的 设备角色信息为接口划分接口类型。
其中, 所述第一接口类型划分模块 904具体用于: 确定所述 GVRP协议报文是否带有设备角色信息;
当所述 GVRP协议报文带有设备角色信息时, 将接收所述 GVRP协议报 文的接口划分为网络侧接口; 当所述 GVRP协议报文不带有设备角色信息时, 将接收所述 GVRP协议 报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧接口。 本发明实施例通过定义接入交换机的接口类型, 在收到虚拟服务器的 上线通知后,根据接口类型控制协议报文的扩散行为以及 VLAN属性的部署 行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例十 本实施例提供一种汇聚交换机, 如图 11所示, 所述汇聚交换机包括第 二接收模块 1101、 第二激活模块 1102和第二发送模块 1103 , 其中: 所述第二接收模块 1101 ,用于接收接入交换机发送的 GVRP加入协议报 文(GVRP Join才艮文, GVRP Join Control Packet );
所述第二激活模块 1102, 用于激活所述汇聚交换机的网络侧接口和所 述汇聚交换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属 性相同的 VLAN属性;
所述第二发送模块 1103 , 用于通过所述汇聚交换机的网络侧接口向核 心交换机发送 GVRP加入协议报文。
其中, 所述第二激活模块 1102具体用于: 确定接收所述 GVRP加入协议报文的接口是否为用户侧接口; 当所述接收所述 GVRP加入协议报文的接口为用户侧接口时,激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
当所述遍历到的接口为网络侧接口时, 激活所述网络侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
可选的, 如图 12所示, 所述汇聚交换机还可以包括: 第二接口类型划分模块 1104,用于根据接收到的 GVRP协议报文携带的 设备角色信息为接口划分接口类型。 其中, 所述第二接口类型划分模块 1104具体用于: 确定所述 GVRP协议报文是否带有核心交换机角色信息; 当所述 GVRP协议报文带有核心交换机角色信息时, 将接收所述 GVRP 协议报文的接口划分为网络侧接口; 当所述 GVRP协议报文不带有核心交换机角色信息时, 将接收所述 GVRP协议报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧接 口。 本发明实施例通过汇聚交换机接收接入交换机发送的 GVRP加入协议 报文, 根据接口类型控制协议报文的扩散行为以及 VLAN属性的部署行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例十一 本实施例提供一种核心交换机, 如图 13所示, 所述核心交换机包括第 三接收模块 1301和第三激活模块 1302, 其中: 所述第三接收模块 1301 ,用于接收汇聚交换机发送的 GVRP加入协议报 文(GVRP Join才艮文, GVRP Join Control Packet ); 所述第三激活模块 1302, 用于激活所述核心交换机的用户侧接口中与 所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。 其中, 所述第三激活模块 1302具体用于: 确定接收所述 GVRP加入协议报文的接口是否为用户侧接口; 当所述接收所述 GVRP加入协议报文的接口为用户侧接口时,激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性。
可选的, 如图 14所示, 所述核心交换机还可以包括: 第三接口类型划分模块 1304,用于根据接收到的 GVRP协议报文携带的 设备角色信息为接口划分接口类型。 其中, 所述第三接口类型划分模块 1304具体用于: 确定所述 GVRP协议报文是否带有设备角色信息; 当所述 GVRP协议报文带有设备角色信息时, 将接收所述 GVRP协议报 文的接口划分为用户侧接口; 当所述 GVRP协议报文不带有设备角色信息时, 将接收所述 GVRP协议 报文的接口划分为网络侧接口, 其中, 所有接口默认为网络侧接口。 本发明实施例通过核心交换机接收汇聚交换机发送的 GVRP加入协议 报文, 根据接口类型控制协议报文的扩散行为以及 VLAN属性的部署行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例十二 本实施例提供一种接入交换机, 如图 15所示, 所述接入交换机包括第 一接收模块 1501、 第一撤销模块 1502和第一发送模块 1503 , 其中: 所述第一接收模块 1501, 用于接收虚拟服务器发送的下线通知; 所述第一撤销模块 1502, 用于根据所述下线通知撤销所述接入交换机 的网络侧接口的虚拟局域网 VLAN属性; 所述第一发送模块 1503, 用于通过所述网络侧接口向汇聚交换机发送 通用 VLAN属性注册协议 GVRP离开协议报文(GVRP Leave报文, GVRP Leave Control Packet )。 其中, 所述第一撤销模块 1502具体用于: 撤销接收所述下线通知的用户侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性; 遍历所述接入交换机的所有用户侧接口, 确定是否有用户侧接口激活 所述虚拟服务器的 VLAN属性;
当没有用户侧接口激活所述虚拟服务器的 VLAN属性时,撤销所述接入 交换机的网络侧接口中与所述虚拟服务器的 VLAN属性相同的 VLAN属性。 本发明实施例通过定义接入交换机的接口类型, 在收到虚拟服务器的 下线通知后,根据接口类型控制协议报文的扩散行为以及 VLAN属性的撤销 行为, 降低了维护成本, 并节省了网络及服务器资源。 实施例十三 本实施例提供一种汇聚交换机, 如图 16所示, 所述汇聚交换机包括第 二接收模块 1601、 第二撤销模块 1602和第二发送模块 1603 , 其中:
所述第二接收模块 1601 ,用于接收接入交换机发送的 GVRP离开协议报 文( GVRP Leave报文, GVRP Leave Control Packet );
所述第二撤销模块 1602, 用于撤销所述汇聚交换机的网络侧接口和用 户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性;
所述第二发送模块 1603 , 用于通过所述汇聚交换机的网络侧接口向核 心交换机发送 GVRP离开协议报文。
其中, 所述第二撤销模块 1602具体用于:
确定接收所述 GVRP离开协议报文的接口是否为用户侧接口; 当所述接收所述 GVRP离开协议报文的接口为用户侧接口时,撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有的用户侧接口, 确定是否有用户侧接口激 活所述 GVRP离开协议报文携带的 VLAN属性;
当没有用户侧接口激活所述 GVRP离开协议报文携带的 VLAN属性时, 撤销所述汇聚交换机的网络侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
本发明实施例通过定义汇聚交换机的接口类型, 在汇聚交换机收到接 入交换机发送的 GVRP离开协议报文后,根据接口类型控制协议报文的扩散 行为以及 VLAN属性的撤销行为, 降低了维护成本, 并节省了网络及服务器 资源。 实施例十四 本实施例提供一种核心交换机, 如图 17所示, 所述核心交换机包括第 三接收模块 1701和第三撤销模块 1702, 其中:
所述第三接收模块 1701 ,用于接收汇聚交换机发送的 GVRP离开协议报 文( GVRP Leave报文, GVRP Leave Control Packet );
所述第三撤销模块 1702, 用于撤销所述核心交换机的用户侧接口中与 所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
其中, 所述第三撤销模块 1702具体用于: 确定接收所述 GVRP离开协议报文的接口是否为用户侧接口; 当所述接收所述 GVRP离开协议报文的接口为用户侧接口时,撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性。
本发明实施例通过定义核心交换机的接口类型, 在核心交换机收到汇 聚交换机发送的 GVRP离开协议报文后,根据接口类型控制协议报文的扩散 行为以及 VLAN属性的撤销行为, 降低了维护成本, 并节省了网络及服务器 实施例十五 本实施例提供一种虚拟局域网的部署和撤销系统, 如图 18所示, 所述 虚拟局域网的部署和撤销系统包括: 接入交换机 1801、 汇聚交换机 1802和 核心交换机 1803。 所述接入交换机 1801可以为实施例九及实施例十二中所述的接入交换 机; 所述汇聚交换机 1802可以为实施例十及实施例十三中所述的汇聚交换 机; 所述核心交换机 1803可以为实施例十一及实施例十四中所述的核心交 换机。
其中, 所述接入交换机 1801的用户侧接口与物理服务器或者个人 PC等 相连接, 所述接入交换机 1801的网络侧接口与所述汇聚交换机 1802的用户 侧接口相连接, 所述汇聚交换机 1802的网络侧接口与核心交换机 1803的用 户侧接口相连接。 本发明实施例为设备定义了三种角色类型, 分别为接入交换机 1801、 汇聚交换机 1802以及核心网关 1803 , 将每种设备的接口分别定义为网络侧 接口和用户侧接口, 接入交换机接到虚拟服务器上线 (下线)通知后, 根 据接口类型控制 VLAN属性部署(撤销)并向汇聚交换机扩散 GVRP加入(离 开)协议报文, 汇聚交换机根据接口类型控制 VLAN属性部署(撤销 )并向 核心交换机扩散 GVRP加入(离开)协议报文, 核心交换机根据接口类型控 制 VLAN属性部署(撤销), 从而实现虚拟服务器的 VLAN属性的动态部署 和撤销, 降低实现成本的同时节省了网络及服务器资源。 本发明实施例提供的虚拟局域网的部署和撤销方法、 设备及系统可以 实现上述提供的方法实施例, 具体功能实现请参见方法实施例中的说明, 在此不再赘述。 本发明实施例提供的虚拟局域网的部署和撤销方法、 设备 及系统可以适用于虚拟服务器的 VLAN属性的动态部署和撤销,但不仅限于 此。 实施例九到十五中所述的各种模块, 均可通过硬件实现, 比如可以通 过通用 CPU ( Central Processing Unit, 中央处理单元)、 现场可编程门阵列 ( Field - Programmable Gate Array, FPGA )、 专用集成芯片 ( Application Specific Integrated Circuit, ASIC )或者可编程還辑器件 ( rogrammable logic device, PLD ) 实现这些模块。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储 于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的 实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体
RAM )等。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应该以权利要求的保护范围为准。

Claims

权利要求
1、 一种虚拟局域网的部署方法, 其特征在于, 包括:
接入交换机接收虚拟服务器发送的上线通知;
所述接入交换机根据所述上线通知激活所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性;
所述接入交换机通过所述网络侧接口向汇聚交换机发送通用 VLAN属 性注册协议 GVRP加入协议报文。
2、 根据权利要求 1所述的方法, 其特征在于, 所述接入交换机根据所 述上线通知激活所述接入交换机的网络侧接口的虚拟局域网 VLAN属性包 括:
所述接入交换机激活接收所述上线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性;
遍历所述接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
若所述遍历到的接口为网络侧接口, 则激活所述网络侧接口中与所述 虚拟服务器的 VLAN属性相同的 VLAN属性。
3、 根据权利要求 1所述的方法, 其特征在于, 在所述接入交换机激活 用户侧接口的 VLAN属性之前, 还包括:
所述接入交换机根据接收到的通告 GVRP协议报文携带的设备角色信 息为所述接入交换机的接口划分接口类型。
4、 根据权利要求 3所述的方法, 其特征在于, 所述接入交换机根据接 收到的通告 GVRP协议报文携带的设备角色信息为所述接入交换机的接口 划分接口类型包括:
所述接入交换机确定所述通告 GVRP协议报文是否带有设备角色信息; 若所述通告 GVRP协议报文带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为网络侧接口; 若所述通告 GVRP协议报文不带有设备角色信息, 则将接收所述通告 GVRP协议报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧接 口。
5、 一种虚拟局域网的部署方法, 其特征在于, 包括:
汇聚交换机接收接入交换机发送的通用 VLAN属性注册协议 GVRP加 入协议报文;
所述汇聚交换机激活所述汇聚交换机的网络侧接口和所述汇聚交换机 的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN 属性;
所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心网关发送 GVRP加入协议报文。
6、 根据权利要求 5所述的方法, 其特征在于, 所述汇聚交换机激活所 述汇聚交换机的网络侧接口和所述汇聚交换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性包括:
所述汇聚交换机确定接收所述 GVRP加入协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP加入协议报文的接口为用户侧接口,则激活所述 接收所述 GVRP加入协议报文的接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性;
遍历所述汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
若所述遍历到的接口为网络侧接口, 则激活所述网络侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
7、 根据权利要求 5所述的方法, 其特征在于, 在所述汇聚交换机接收 接入交换机发送的 GVRP加入协议^艮文之前, 还包括:
所述汇聚交换机根据接收到的通告 GVRP协议报文携带的设备角色信 息为接口划分接口类型。
8、 根据权利要求 7所述的方法, 其特征在于, 所述汇聚交换机根据接 收到的通告 GVRP协议报文携带的设备角色信息为接口划分接口类型包括: 所述汇聚交换机确定所述通告 GVRP协议报文是否带有核心网关角色 信息;
若所述通告 GVRP协议报文带有核心网关角色信息,则将接收所述通告 GVRP协议报文的接口划分为网络侧接口;
若所述通告 GVRP协议报文不带有核心网关角色信息,则将接收所述通 告 GVRP协议报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧 接口。
9、 一种虚拟局域网的部署方法, 其特征在于, 包括:
核心网关接收汇聚交换机发送的通用 VLAN属性注册协议 GVRP加入 协议报文;
所述核心网关激活所述核心网关的用户侧接口中与所述 GVRP加入协 议报文携带的 VLAN属性相同的 VLAN属性。
10、 根据权利要求 9所述的方法, 其特征在于, 所述核心网关激活所述 核心网关的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相 同的 VLAN属性包括:
所述核心网关确定接收所述 GVRP加入协议报文的接口是否为用户侧 接口;
若所述接收所述 GVRP加入协议报文的接口为用户侧接口,则激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性。
11、 根据权利要求 9所述的方法, 其特征在于, 在所述核心网关接收汇 聚交换机发送的 GVRP加入协议报文之前, 还包括:
所述核心网关根据接收到的通告 GVRP协议报文携带的设备角色信息 为接口划分接口类型。
12、 根据权利要求 11所述的方法, 其特征在于, 所述核心网关根据接 收到的通告 GVRP协议报文携带的设备角色信息为接口划分接口类型包括: 所述核心网关确定所述通告 GVRP协议报文是否带有设备角色信息; 若所述通告 GVRP协议报文带有设备角色信息, 则将接收所述通告
GVRP协议报文的接口划分为用户侧接口;
若所述通告 GVRP协议报文不带有设备角色信息, 则将接收所述通告
GVRP协议报文的接口划分为网络侧接口, 其中, 所有接口默认为网络侧接 口。
13、 一种虚拟局域网的撤销方法, 其特征在于, 包括:
接入交换机接收虚拟服务器发送的下线通知;
所述接入交换机根据所述下线通知撤销所述接入交换机的网络侧接口 的虚拟局域网 VLAN属性;
所述接入交换机通过所述网络侧接口向汇聚交换机发送通用 VLAN属 性注册协议 GVRP离开协议报文。
14、 根据权利要求 13所述的方法, 其特征在于, 所述接入交换机根据 所述下线通知撤销所述接入交换机的网络侧接口的虚拟局域网 VLAN属性 包括:
所述接入交换机撤销接收所述下线通知的用户侧接口中与所述虚拟服 务器的 VLAN属性相同的 VLAN属性;
遍历所述接入交换机的所有用户侧接口, 确定是否有用户侧接口激活 所述虚拟服务器的 VLAN属性;
若没有用户侧接口激活所述虚拟服务器的 VLAN属性,则撤销所述接入 交换机的网络侧接口中与所述虚拟服务器的 VLAN属性相同的 VLAN属性。
15、 一种虚拟局域网的撤销方法, 其特征在于, 包括:
汇聚交换机接收接入交换机发送的通用 VLAN属性注册协议 GVRP离 开协议报文;
所述汇聚交换机撤销所述汇聚交换机的网络侧接口和所述汇聚交换机 的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN 属性;
所述汇聚交换机通过所述汇聚交换机的网络侧接口向核心网关发送 GVRP离开协议报文。
16、 根据权利要求 15所述的方法, 其特征在于, 所述汇聚交换机撤销 所述汇聚交换机的网络侧接口和所述汇聚交换机的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性包括:
所述汇聚交换机确定接收所述 GVRP离开协议报文的接口是否为用户 侧接口;
若所述接收所述 GVRP离开协议报文的接口为用户侧接口,则撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有的用户侧接口, 确定是否有用户侧接口激 活所述 GVRP离开协议报文携带的 VLAN属性;
若没有用户侧接口激活所述 GVRP离开协议报文携带的 VLAN属性, 则 撤销所述汇聚交换机的网络侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
17、 一种虚拟局域网的撤销方法, 其特征在于, 包括:
核心网关接收汇聚交换机发送的通用 VLAN属性注册协议 GVRP离开 协议报文;
所述核心网关撤销所述核心网关的用户侧接口中与所述 GVRP离开协 议报文携带的 VLAN属性相同的 VLAN属性。
18、 根据权利要求 17所述的方法, 其特征在于, 所述核心网关撤销所 述核心网关的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性 相同的 VLAN属性包括:
所述核心网关确定接收所述 GVRP离开协议报文的接口是否为用户侧 接口;
若所述接收所述 GVRP离开协议报文的接口为用户侧接口,则撤销所述 接收所述 GVRP离开协议报文的接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
19、 一种接入交换机, 其特征在于, 包括第一接收模块、 第一激活模 块和第一发送模块, 其中:
所述第一接收模块, 用于接收虚拟服务器发送的上线通知;
所述第一激活模块, 用于根据所述上线通知激活所述接入交换机的网 络侧接口的虚拟局域网 VLAN属性;
所述第一发送模块, 用于通过所述网络侧接口向汇聚交换机发送通用
VLAN属性注册协议 GVRP加入协议报文。
20、 根据权利要求 19所述的接入交换机, 其特征在于, 所述第一激活 模块具体用于:
激活接收所述上线通知的用户侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性;
遍历所述接入交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
当所述接口为网络侧接口时, 激活所述网络侧接口中与所述虚拟服务 器的 VLAN属性相同的 VLAN属性。
21、 根据权利要求 19所述的接入交换机, 其特征在于, 还包括: 第一接口类型划分模块,用于根据接收到的 GVRP协议报文携带的设备 角色信息为接口划分接口类型。
22、 根据权利要求 21所述的接入交换机, 其特征在于, 所述第一接口 类型划分模块具体用于: 确定所述 GVRP协议报文是否带有设备角色信息;
当所述 GVRP协议报文带有设备角色信息时, 将接收所述 GVRP协议报 文的接口划分为网络侧接口;
当所述 GVRP协议报文不带有设备角色信息时, 将接收所述 GVRP协议 报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧接口。
23、 一种汇聚交换机, 其特征在于, 包括第二接收模块、 第二激活模 块和第二发送模块, 其中:
所述第二接收模块, 用于接收接入交换机发送的 GVRP加入协议报文; 所述第二激活模块, 用于激活所述汇聚交换机的网络侧接口和所述汇 聚交换机的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相 同的 VLAN属性;
所述第二发送模块, 用于通过所述汇聚交换机的网络侧接口向核心网 关发送通用 VLAN属性注册协议 GVRP加入协议 4艮文。
24、 根据权利要求 23所述的汇聚交换机, 其特征在于, 所述第二激活 模块具体用于:
确定接收所述 GVRP加入协议报文的接口是否为用户侧接口; 当所述接收所述 GVRP加入协议报文的接口为用户侧接口时,激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有接口, 确定所述遍历到的接口是否为网络 侧接口;
当所述遍历到的接口为网络侧接口时, 激活所述网络侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
25、 根据权利要求 23所述的汇聚交换机, 其特征在于, 还包括: 第二接口类型划分模块,用于根据接收到的通告 GVRP协议报文携带的 设备角色信息为接口划分接口类型。
26、 根据权利要求 25所述的汇聚交换机, 其特征在于, 所述第二接口 类型划分模块具体用于:
确定所述 GVRP协议报文是否带有核心网关角色信息;
当所述 GVRP协议报文带有核心网关角色信息时, 将接收所述 GVRP协 议才艮文的接口划分为网络侧接口;
当所述 GVRP协议报文不带有核心网关角色信息时, 将接收所述 GVRP 协议报文的接口划分为用户侧接口, 其中, 所有接口默认为用户侧接口。
27、 一种核心网关, 其特征在于, 包括第三接收模块和第三激活模块, 其中:
所述第三接收模块,用于接收汇聚交换机发送的通用 VLAN属性注册协 议 GVRP加入协议报文;
所述第三激活模块, 用于激活所述核心网关的用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属性。
28、 根据权利要求 27所述的核心网关, 其特征在于, 所述第三激活模 块具体用于:
确定接收所述 GVRP加入协议报文的接口是否为用户侧接口;
当所述接收所述 GVRP加入协议报文的接口为用户侧接口时,激活所述 用户侧接口中与所述 GVRP加入协议报文携带的 VLAN属性相同的 VLAN属 性。
29、 根据权利要求 27所述的核心网关, 其特征在于, 还包括: 第三接口类型划分模块,用于根据接收到的通告 GVRP协议报文携带的 设备角色信息为接口划分接口类型。
30、 根据权利要求 29所述的核心网关, 其特征在于, 所述第三接口类 型划分模块具体用于:
确定所述 GVRP协议报文是否带有设备角色信息;
当所述 GVRP协议报文带有设备角色信息时, 将接收所述 GVRP协议报 文的接口划分为用户侧接口;
当所述 GVRP协议报文不带有设备角色信息时, 将接收所述 GVRP协议 报文的接口划分为网络侧接口, 其中, 所有接口默认为网络侧接口。
31、 一种接入交换机, 其特征在于, 包括第一接收模块、 第一撤销模 块和第一发送模块, 其中:
所述第一接收模块, 用于接收虚拟服务器发送的下线通知;
所述第一撤销模块, 用于根据所述下线通知撤销所述接入交换机的网 络侧接口的虚拟局域网 VLAN属性;
所述第一发送模块, 用于通过所述网络侧接口向汇聚交换机发送通用
VLAN属性注册协议 GVRP离开协议才艮文。
32、 根据权利要求 31所述的接入交换机, 其特征在于, 所述第一撤销 模块具体用于:
撤销接收所述下线通知的用户侧接口中与所述虚拟服务器的 VLAN属 性相同的 VLAN属性;
遍历所述接入交换机的所有用户侧接口, 确定是否有用户侧接口激活 所述虚拟服务器的 VLAN属性;
当没有用户侧接口激活所述虚拟服务器的 VLAN属性时,撤销所述接入 交换机的网络侧接口中与所述虚拟服务器的 VLAN属性相同的 VLAN属性。
33、 一种汇聚交换机, 其特征在于, 包括第二接收模块、 第二撤销模 块和第二发送模块, 其中:
所述第二接收模块,用于接收接入交换机发送的通用 VLAN属性注册协 议 GVRP离开协议才艮文;
所述第二撤销模块, 用于撤销所述汇聚交换机的网络侧接口和用户侧 接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性; 所述第二发送模块, 用于通过所述汇聚交换机的网络侧接口向核心网 关发送 GVRP离开协议报文。
34、 根据权利要求 33所述的接入交换机, 其特征在于, 所述第二撤销 模块具体用于:
确定接收所述 GVRP离开协议报文的接口是否为用户侧接口;
当所述接收所述 GVRP离开协议报文的接口为用户侧接口时,撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性;
遍历所述汇聚交换机的所有的用户侧接口, 确定是否有用户侧接口激 活所述 GVRP离开协议报文携带的 VLAN属性;
当没有用户侧接口激活所述 GVRP离开协议报文携带的 VLAN属性时, 撤销所述汇聚交换机的网络侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
35、 一种核心网关, 其特征在于, 包括第三接收模块和第三撤销模块, 其中:
所述第三接收模块,用于接收汇聚交换机发送的通用 VLAN属性注册协 议 GVRP离开协议才艮文;
所述第三撤销模块, 用于撤销所述核心网关的用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属性。
36、 根据权利要求 35所述的核心网关, 其特征在于, 所述第三撤销模 块具体用于:
确定接收所述 GVRP离开协议报文的接口是否为用户侧接口;
当所述接收所述 GVRP离开协议报文的接口为用户侧接口时,撤销所述 用户侧接口中与所述 GVRP离开协议报文携带的 VLAN属性相同的 VLAN属 性。
37、 一种虚拟局域网部署和撤销系统, 其特征在于, 包括: 接入交换 机; 汇聚交换机; 核心网关; 其中, 所述接入交换机为权利要求 19和 31所 述的接入交换机, 所述汇聚交换机为权利要求 23和 33所述的汇聚交换机, 所述核心网关为权利要求 27和 35所述的核心网关。
PCT/CN2012/083635 2012-01-18 2012-10-27 虚拟局域网的部署和撤销方法、设备及系统 WO2013107200A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210016312.2 2012-01-18
CN201210016312.2A CN102571439B (zh) 2012-01-18 2012-01-18 虚拟局域网的部署和撤销方法、设备及系统

Publications (1)

Publication Number Publication Date
WO2013107200A1 true WO2013107200A1 (zh) 2013-07-25

Family

ID=46415965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083635 WO2013107200A1 (zh) 2012-01-18 2012-10-27 虚拟局域网的部署和撤销方法、设备及系统

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571439B (zh) * 2012-01-18 2014-10-08 华为技术有限公司 虚拟局域网的部署和撤销方法、设备及系统
CN106161603B (zh) * 2016-06-28 2019-09-20 华为技术有限公司 一种组网的方法、设备及架构

Citations (5)

* 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
CN101102188A (zh) * 2006-07-07 2008-01-09 华为技术有限公司 一种移动接入虚拟局域网的方法与系统
CN101114955A (zh) * 2007-09-14 2008-01-30 武汉烽火网络有限责任公司 城域以太网中基于抖动检测的拥塞控制方法
CN102143138A (zh) * 2010-09-15 2011-08-03 华为技术有限公司 虚拟机实时迁移过程中vlan的配置方法及装置
CN102571439A (zh) * 2012-01-18 2012-07-11 华为技术有限公司 虚拟局域网的部署和撤销方法、设备及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602005001318T2 (de) * 2005-03-07 2008-02-07 Alcatel Lucent Gesetzliche Abfangung in IP-Netzwerken
US7668178B2 (en) * 2005-08-30 2010-02-23 Cisco Technology, Inc. Methods and apparatus for implementing VPN services

Patent Citations (5)

* 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
CN101102188A (zh) * 2006-07-07 2008-01-09 华为技术有限公司 一种移动接入虚拟局域网的方法与系统
CN101114955A (zh) * 2007-09-14 2008-01-30 武汉烽火网络有限责任公司 城域以太网中基于抖动检测的拥塞控制方法
CN102143138A (zh) * 2010-09-15 2011-08-03 华为技术有限公司 虚拟机实时迁移过程中vlan的配置方法及装置
CN102571439A (zh) * 2012-01-18 2012-07-11 华为技术有限公司 虚拟局域网的部署和撤销方法、设备及系统

Also Published As

Publication number Publication date
CN102571439B (zh) 2014-10-08
CN102571439A (zh) 2012-07-11

Similar Documents

Publication Publication Date Title
CN104541482B (zh) 为具有平滑重启能力的邻居使用rvsp hello抑制的系统和方法
US10182496B2 (en) Spanning tree protocol optimization
US10778528B2 (en) Method and system of connecting to a multipath hub in a cluster
EP3188409B1 (en) Oam mechanisms for evpn active-active services
WO2017071269A1 (zh) 业务流的转发路径的重定向方法、装置和业务流转发系统
EP3096490B1 (en) Method for realizing network virtualization and related device and communication system
EP2996287B1 (en) Method for notifying information of pe device and pe device
CN111638957B (zh) 一种集群共享式公有云负载均衡的实现方法
US20130185446A1 (en) Method and device for connecting to virtual private network across domains
CN103703722A (zh) P2mp隧道上自举故障检测会话
WO2011119583A1 (en) Aggregating data traffic from access domains
CN103944828A (zh) 一种协议报文的传输方法和设备
CN104144082A (zh) 二层网络中检测环路的方法及控制器
WO2014180199A1 (zh) 网络建立的方法及控制设备
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
CN104092684A (zh) 一种OpenFlow协议支持VPN的方法及设备
WO2016124117A1 (zh) 一种sdn中的链路保护方法、交换设备及网络控制器
WO2011113395A2 (zh) 一种负载分担方法和装置
WO2012103708A1 (zh) 媒体访问控制mac地址保护方法和交换机
WO2012159346A1 (zh) 业务负载分配方法、装置和通信系统
CN112929206B (zh) 一种云网环境下云物理机配置的方法与装置
US20150334019A1 (en) Routing control method and non-transitory computer-readable recording medium storing routing control program
WO2013107200A1 (zh) 虚拟局域网的部署和撤销方法、设备及系统
WO2015103869A1 (zh) 一种软件定义网络中OpenFlow消息跟踪和过滤的方法
WO2018113633A1 (zh) 报文转发方法、报文转发控制器、bras、计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12866363

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12866363

Country of ref document: EP

Kind code of ref document: A1