WO2013104279A1 - Method and device for setting cvlan in trill network - Google Patents

Method and device for setting cvlan in trill network Download PDF

Info

Publication number
WO2013104279A1
WO2013104279A1 PCT/CN2013/070097 CN2013070097W WO2013104279A1 WO 2013104279 A1 WO2013104279 A1 WO 2013104279A1 CN 2013070097 W CN2013070097 W CN 2013070097W WO 2013104279 A1 WO2013104279 A1 WO 2013104279A1
Authority
WO
WIPO (PCT)
Prior art keywords
switch
user
local area
area network
virtual local
Prior art date
Application number
PCT/CN2013/070097
Other languages
French (fr)
Chinese (zh)
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 WO2013104279A1 publication Critical patent/WO2013104279A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains

Definitions

  • TRILL Transparent Interconnect of Lots of Links
  • RB Routing Bridge
  • TRILL combines the advantages of bridges and routers. It uses the connection state routing protocol to solve the specific application of the virtual local area network (English: Virtual Local Area Network, abbreviation: VLAN).
  • the TRILL network includes RBs and switches.
  • the RB can recognize the topology of the TRILL network and can generate a TRILL routing forwarding table to other RBs.
  • User-side VLAN (English: Customer VLAN, abbreviation: CVLAN) can be configured on the switch.
  • CVLAN Customer VLAN
  • the RB sends the multicast data to the corresponding destination RB according to the TRILL routing forwarding table, and then the multicast data is sent by the destination RB.
  • the corresponding switch is given to the switch, and then the switch transmits the multicast data to the corresponding network device.
  • the multicast data sent to a network device in the CVLAN is sent to all the switches configured with the CVLAN, for example, when the multicast data needs to be sent to a network device under a switch configured with CVLAN 100,
  • the multicast data is also sent to all other switches configured with CVLAN 100.
  • other switches configuring the CVLAN unnecessarily receive the multicast data, which causes a large amount of unnecessary multicast data replication in the TRILL network. , wasting a lot of bandwidth.
  • the embodiment of the invention provides a method for setting a CVLAN in a TRILL network, which can effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth.
  • a method for setting a CVLAN in a TRILL network including: The switch sets the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch;
  • the switch determines that a network device is online in the set CVLAN, the switch sets the CVLAN to an active state, so that the RB sends the CVLAN multicast data to the switch.
  • a method for setting a CVLAN in a TRILL network including:
  • the RB determines that the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch;
  • the RB determines that the CVLAN set by the switch is an active state, the RB sends the multicast data of the CVLAN to the switch.
  • an apparatus for setting a CVLAN in a TRILL network includes:
  • a setting unit configured to set the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch;
  • the setting unit is further configured to: if the determining unit determines that a network device is online in the CVLAN, set the CVLAN to be in an active state, so that the RB sends the CVLAN multicast data to the switch.
  • an apparatus for setting a CVLAN in a TRILL network includes:
  • a determining unit configured to determine a state of a CVLAN set by the switch
  • a sending unit configured to: if the determining unit determines that the CVLAN of the switch is in an inactive state, not sending the multicast data of the CVLAN to the switch;
  • the sending unit is further configured to: if the determining unit determines that the CVLAN of the switch is in an active state, send the multicast data of the CVLAN to the switch.
  • the method and device for setting a CVLAN in a TRILL network provided by the embodiment of the present invention, when the CVLAN of the switch is in an inactive state, the RB does not send the group of the CVLAN to the switch. Broadcasting data, when the network device is online in the CVLAN of the switch, the switch sets the CVLAN to an active state, and the RB sends the CVLAN multicast data to the switch, so that, relative to the current Technically, the switch receives multicast data when the network device is online in the CVLAN, and does not receive multicast data when the network device is online in the CVLAN, so that the TRILL network can be effectively avoided. Unnecessary multicast data replication, saving bandwidth.
  • FIG. 1 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention
  • FIG. 3 is a specific flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention
  • FIG. 4B is a schematic diagram of a method for setting a CVLAN in a TRILL network after the network device is online, according to an embodiment of the present invention
  • 4C is a schematic diagram of a method for setting a CVLAN in a TRILL network after a virtual machine is dynamically migrated according to an embodiment of the present disclosure
  • FIG. 5 is a structural block diagram of a switch according to an embodiment of the present invention.
  • 5B is another structural block diagram of a switch according to an embodiment of the present invention.
  • FIG. 5C is still another structural block diagram of a switch according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an RB according to an embodiment of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a specific implementation process of the present invention will be exemplified by way of examples. It is apparent that the embodiments described below are a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • a network device in a CVLAN refers to a network device in which the CVLAN is provided.
  • Switches refer to switches that are capable of running the TRILL protocol and interacting directly with network devices in the CVLAN.
  • the RBs in the TRILL network that are closest to the network devices in the CVLAN.
  • References to "RB” in this application refer to a bridge device capable of running the TRILL protocol in the TRILL network and having a route forwarding feature, and particularly refers to an RB other than a switch, that is, the RB mentioned in the present application does not. Directly with network devices in CVLAN Interaction, but through the switch to interact with network devices in the CVLAN. It should be understood that the switch and the RB are distinguished in this application for convenience of description and are not intended to be limiting.
  • the RB may be a frame switch, and may of course be another network device capable of running the TR I LL protocol.
  • the multicast source in the network sends the multicast data of the CVLAN to the RB
  • the RB sends the multicast data of the CVLAN to the switch.
  • FIG. 1 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for setting a CVLAN in a TRILL network, where the method includes:
  • the switch sets the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch.
  • the inactive state of the CVLAN indicates a state in which the multicast data of the CVLAN is not received; and the activated state of the CVLAN indicates a state in which the multicast data of the CVLAN is received.
  • the switch may set the CVLAN to an inactive state during initialization, so that the switch does not receive the multicast data addressed to the CVLAN in the initial state.
  • the switch After the switch sets the CVLAN to the inactive state, the switch sends the inactive state indication information to the RB, where the inactive state indication information indicates that the CVLAN set on the switch is in an inactive state, so that the The RB does not send the multicast data of the CVLAN to the switch.
  • the switch is removed from the current TRILL network in its setting, in other words, the switch is cut from the TRILL network. Branching off, so that the switch is no longer included in the current TRILL network, so that after receiving the multicast data of the CVLAN, the RB does not send the multicast data of the CVLAN to the switch.
  • the non-active state indication information may be included in an optional field of the message, and sent to the RB by using the message.
  • the switch sets the CVLAN to an active state, so that the RB sends the CVLAN multicast data to the switch.
  • the network device may be a server or a terminal.
  • the online device refers to that the network device in the CVLAN starts to exchange data with other network devices in the CVLAN through the switch.
  • the network device is offline, that is, the network device in the CVLAN does not perform data interaction with the switch.
  • the switch may determine that a network device in the CVLAN set by the switch is online:
  • the switch determines that a network device is online in the CVLAN when the received packet includes the MAC address of the network device.
  • the at least one network device when a network device in the CVLAN set by the switch needs to perform data interaction with another network device in the CVLAN, the at least one network device sends a packet to the switch, and the packet is sent.
  • the source MAC address contained in it is its own MAC address.
  • the switch receives a packet sent by at least one of the network devices in the CVLAN. If the source MAC address of the network device included in the packet is legal, the switch searches for a MAC address table. If the MAC address does not exist in the MAC address table, add the MAC address to the MAC address table, and set the CVLAN to an active state to receive the group of the CVLAN sent by the RB to the switch. Broadcasting data; if the address already exists in the MAC address table, the CVLAN is also set to an active state to receive multicast data of the CVLAN sent by the RB to the switch.
  • the switch After the switch sets the CVLAN to an active state, the switch sends an activation state indication information to the RB, where the activation state indication information indicates that the CVLAN set by the switch is in an active state, so that the RB is in the active state.
  • the switch sends the multicast data of the CVLAN.
  • the activation state indication information may be included in an optional field of the message, and the message is sent to the RB by using the message.
  • the RB is re-introduced into the current TRILL network in the setting, so that the RB is in the group that receives the CVLAN.
  • the multicast data of the CVLAN is sent to the switch, and the switch receives the multicast data of the CVLAN sent by the RB, and sends the multicast data to the online device that is online.
  • the switch After the network device that joins the multicast group in the CVLAN is online, the switch will notify the network device that joins the multicast group in the CVLAN.
  • the CVLAN is set to the active state, so that the RB sends the multicast data of the CVLAN to the switch, and then the multicast data is sent by the switch to the network device, and other switches that do not have the network device online
  • the CVLAN set is still inactive and cannot receive the multicast data sent by the RB. Therefore, by setting the state of the CVLAN, the effect of reducing unnecessary duplicate multicast data can be achieved.
  • the switch has the network device online setting the CVLAN to be activated in the CVLAN. After the switch does not receive the packet sent by any network device in the CVLAN set by the switch within the predetermined time period, the switch sets the state of the CVLAN from the active state to the inactive state. The RB is not sent the multicast data of the CVLAN to the switch.
  • the switch if the switch does not receive any network configuration in the CVLAN within a set aging time For the outgoing packets, the switch considers that all network devices in the CVLAN are offline. For example, all network devices leave the network or do not communicate with the network. At this time, the switch sets the state of the CVLAN from an active state to an inactive state such that the RB does not send the multicast data of the CVLAN to the switch.
  • the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, so that The switch receives the multicast data sent by the RB to the CVLAN when the network device is online in the CVLAN, and does not receive the multicast sent by the RB to the CVLAN when the network device does not go online.
  • the data can thus effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth.
  • the present invention further provides a method for setting a CVLAN in a TRILL network, where the method includes:
  • RB determines a state of a CVLAN set by the switch
  • the determining, by the RB, the status of the CVLAN set by the switch may include:
  • the RB receives the inactive state indication information sent by the switch, and the inactive state indication information indicates that the CVLAN set by the switch is in an inactive state;
  • the RB determines, according to the received inactive state indication information, that the CVLAN set by the switch is in an inactive state.
  • the determining, by the RB, the status of the CVLAN set by the switch may include:
  • the RB receives the activation state indication information sent by the switch, where the activation state indication information indicates that the CVLAN set by the switch is an active state;
  • the RB determines, according to the received activation state indication information, that the CVLAN set by the switch is in an active state.
  • the RB determines that the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch.
  • the RB prune the switch from the current TRILL network in its setting, so that the switch is no longer included in the current TRILL network. In this way, the RB does not send the multicast data of the CVLAN to the switch.
  • the RB determines that the CVLAN set by the switch is an active state, the RB sends the multicast data of the CVLAN to the switch.
  • the RB After the RB determines that the CVLAN set by the switch is in an active state, the RB will be in its setting.
  • the switch is again added to the current TR I LL network such that the switch is again included in the current TR I LL network, such that the RB sends the CVLAN multicast data to the switch.
  • the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, so that The switch receives multicast data when the network device is online in the set CVLAN, and does not receive multicast data when the network device is online in the set CVLAN. Therefore, the switch can effectively avoid unnecessary in the TRILL network. Multicast data replication saves bandwidth.
  • the method for setting the CVLAN in the TRILL network provided by the embodiment of the present invention can be applied to various scenarios.
  • the following describes the dynamic migration scenario of the virtual machine in the data center by using FIG. 3, FIG. 4A, FIG. 4B, and FIG. It should be understood that the technical solution of the present invention can also be applied to other scenarios known to those skilled in the art.
  • the method for setting a CVLAN in a TRILL network includes:
  • the box switches 1-4 set the CVLAN 100 to an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switches 1-4.
  • the box switch 1-4 sets the initial state of the CVLAN 100 to an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switch 1-4.
  • the box switch 1-4 sends an inactive state indication message to RB1 and RB2.
  • the inactive state indication information indicates that the CVLAN 100 set by each is in an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switch 1-4 according to the inactive state indication information.
  • S 33, RB1 and RB2 receive the inactive state indication information sent by the box switch 1-4, and determine that the CVLAN 100 set by the box switch 1-4 is in an inactive state, and does not send the CVLAN 100 to the box switch 1_4. Multicast data.
  • the box switch 3 can determine that the network device in the CVLAN 100 is online: the box switch 3 receives the packet sent by any network device in the CVLAN 100 that is set, and the packet includes the The MAC address of any network device; when the received packet includes the MAC address of the network device, it is determined that the network device is online in the CVLAN 100 set by the box switch 3.
  • a virtual machine is disposed on the server 1 (network device). When the virtual machine on the server 1 (network device) is brought online from the box switch 3, the box switch 3 sets the CVLAN 100 to the active state, and the box switch 1.
  • the box switch 2 and the box switch 4 are not connected to the server (network device), and they still set CVLAN 100 to be inactive.
  • the box switch 3 sends an activation status indication message to RB1 and RB2 after setting CVLAN 100 to an active state.
  • the activation state indication information indicates that the CVLAN 100 set by the box switch 3 is in an active state, so that RB1 and RB2 send the multicast data of the CVLAN 100 to the box switch 3 according to the CVLAN 100 being activated.
  • RB1 and RB2 know that the box switch 3 sets the CVLAN 100 to the active state, and then sends the multicast data of the CVLAN 100 to the box switch 3.
  • the box switch 3 receives the multicast data of the CVLAN 100 sent by the RB1 and the RB2, and sends the multicast data of the CVLAN 100 to the network device that is online.
  • the box switch 1 sets the CVLAN 100 to an active state, and the box switch 3 sets the CVLAN 100 to a non- Active state.
  • the box switch 1 sets the CVLAN 100 from the inactive state to the active state
  • the box switch 3 sets the CVLAN 100 from the active state to the inactive state.
  • the box switch 1 can sense that the network device is online through the MAC address in the packet, and accordingly, the CVLAN 100 is switched from the inactive state to the active state to receive the multicast data of the CVLAN 100; and if the box switch If the packet of the network device in the CVLAN 100 is not received within the predetermined time period, the CVLAN 100 may be re-switched from the active state to the inactive state according to the aging mechanism described above to not receive the multicast data of the CVLAN 100. .
  • the method for setting a CVLAN in a TRILL network provided by this embodiment, when the CVLAN of the switch is in an inactive state, the RB does not send the CVLAN multicast data to the switch, and the CVLAN of the switch
  • the switch sets the CVLAN to an active state, and the RB sends the CVLAN multicast data to the switch, so that the switch is compared to the prior art.
  • the CVLAN receives the multicast data of the CVLAN when the network device is online, and does not receive the multicast data of the CVLAN when the network device is online, so that the TRILL network can be effectively avoided.
  • the necessary copying of multicast data Save bandwidth.
  • the embodiment of the present invention further provides an apparatus for setting a CVLAN in a TRILL network, where the device is implemented by a switch, where the switch includes a switch chip, a line card, and a backplane.
  • the device for setting a CVLAN in the TRILL network includes:
  • the setting unit 51 is configured to set the CVLAN to be inactive, so that the RB does not send the multicast data of the CVLAN to the device, and the determining unit 52 is configured to determine whether a network device is online in the CVLAN set by the device.
  • the setting unit 51 is further configured to: if the device determines that a network device is online in the CVLAN set by the device, setting the CVLAN to an active state, so that the RB sends the multicast data of the CVLAN to the device.
  • the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, and the other The CVLAN of the switch is still inactive. In this way, the switch receives multicast data when the network device is online in the set CVLAN, and does not receive multicast data when the network device is online. Therefore, unnecessary multicast data replication in the TRILL network can be effectively avoided, and bandwidth is saved.
  • the device further includes a determining unit 52, which is specifically configured to:
  • the received packet includes the MAC address of the network device, it is determined that the network device is online in the CVLAN.
  • the device further includes:
  • the sending unit 53 is configured to send the inactive state indication information to the RB after the setting unit 51 sets the CVLAN to the inactive state, where the inactive state indication information indicates that the CVLAN set by the setting unit 51 is inactive. And the RB does not send the multicast data of the CVLAN to the device according to the inactive state of the CVLAN.
  • the sending unit 53 is further configured to: after the setting unit 51 sets the CVLAN to an active state, send the activation state indication information to the RB, where the activation state indication information indicates that the CVLAN is an active state, And causing the RB to send the multicast data of the CVLAN to the apparatus according to an activated state of the CVLAN.
  • the embodiment of the present invention further provides an apparatus for setting a CVLAN in a TRILL network, where the apparatus is implemented by an RB, where the RB includes a switch chip, a line card, and a backplane.
  • the apparatus for setting a CVLAN in the TRILL network includes: a determining unit 61, configured to determine a state of a CVLAN set by the switch;
  • the sending unit 62 is configured to: if the determining unit determines that the CVLAN set by the switch is in an inactive state, not sending the multicast data of the CVLAN to the switch;
  • the sending unit 62 is further configured to: if the determining unit 61 determines that the CVLAN set by the switch is an active state, send the multicast data of the CVLAN to the switch.
  • the RB when the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch, and when the CVLAN set by the switch is in an active state, sends the CVLAN to the switch.
  • the multicast data of the CVLAN so that the switch receives the multicast data when the network device is online in the set CVLAN, and does not receive the multicast data when the network device is online in the set CVLAN. It can effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth.
  • the determining unit 61 is specifically configured to:
  • the determining unit 61 is specifically configured to:
  • the foregoing storage device includes the following steps:
  • the foregoing storage medium includes: a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

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

Abstract

Provided are a method and device for setting a CVLAN in a TRILL network, which relate to the field of communications and can effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth. The method includes: a switch setting a CVLAN to be in a deactivated state, so that a routing bridge does not send the multicast data of the CVLAN to the switch; and if the switch determines that there is an online network device in the CVLAN set thereby, the switch setting the CVLAN to be in an activated state, so that the routing bridge sends the multicast data of the CVLAN to the switch. The present invention is applied in CVLAN setting.

Description

TRILL网络中设置 CVLAN的方法和装置  Method and device for setting CVLAN in TRILL network
本申请要求于 2012年 1月 11日提交中国专利局、 申请号为 201210008654. X、发明 名称为 "TRILL网络中设置 CVLAN的方法和装置" 的中国专利申请的优先权, 其全部内 容通过引用结合在本申请中。 技术领域 本发明涉及通信领域, 尤其涉及 TRILL网络中设置 CVLAN的方法和装置。 背景技术 多链接透明互联 (英文: Transparent Interconnect of Lots of Links, 缩写: TRILL)是由叫做路由网桥 (英文: Routing bridge, 缩写: RB)的设备实施的一个基于最 短路径架构路由的多跳以太网络标准。 TRILL集合了网桥和路由器的优点, 是用连接状 态路由协议来解决虚拟局域网 (英文: Virtual Local Area Network,缩写: VLAN)下桥 接问题的具体应用。  This application claims priority to Chinese Patent Application No. 201210008654. X, entitled "Method and Apparatus for Setting CVLAN in TRILL Network" on January 11, 2012, the entire contents of which are incorporated by reference. In this application. TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a method and apparatus for setting a CVLAN in a TRILL network. BACKGROUND OF THE INVENTION Transparent Interconnect of Lots of Links (English: Transparent Interconnect of Lots of Links, abbreviated as TRILL) is a multi-hop ether based on shortest path architecture routing implemented by a device called Routing Bridge (abbreviation: RB). Network standard. TRILL combines the advantages of bridges and routers. It uses the connection state routing protocol to solve the specific application of the virtual local area network (English: Virtual Local Area Network, abbreviation: VLAN).
TRILL网络中包括有 RB、 交换机。其中, RB能够认知 TRILL网络的拓扑, 且能够生 成到其他 RB的 TRILL路由转发表。 交换机上可配置用户侧 VLAN (英文: Customer VLAN, 缩写: CVLAN)。 RB在接收到发往 CVLAN中某一网络设备的组播数据时, 会根据 TRILL 路由转发表将所述组播数据发送至相应的目的 RB, 之后由所述目的 RB将所述组播数据 发送给其下对应的交换机, 进而由交换机将所述组播数据传输至其下相应的网络设备。  The TRILL network includes RBs and switches. The RB can recognize the topology of the TRILL network and can generate a TRILL routing forwarding table to other RBs. User-side VLAN (English: Customer VLAN, abbreviation: CVLAN) can be configured on the switch. When receiving the multicast data addressed to a network device in the CVLAN, the RB sends the multicast data to the corresponding destination RB according to the TRILL routing forwarding table, and then the multicast data is sent by the destination RB. The corresponding switch is given to the switch, and then the switch transmits the multicast data to the corresponding network device.
通常, 发往 CVLAN中某一网络设备的组播数据, 会发送给配置所述 CVLAN的所有交 换机, 例如当组播数据需要发送给配置 CVLAN 100的一交换机下的某一网络设备时, 所 述组播数据也会发送给配置 CVLAN 100的所有其他交换机,这样,会造成配置所述 CVLAN 的其他交换机不必要地接收所述组播数据,进而在 TRILL网络中造成大量不必要的组播 数据复制, 浪费大量带宽。 发明内容  Generally, the multicast data sent to a network device in the CVLAN is sent to all the switches configured with the CVLAN, for example, when the multicast data needs to be sent to a network device under a switch configured with CVLAN 100, The multicast data is also sent to all other switches configured with CVLAN 100. As a result, other switches configuring the CVLAN unnecessarily receive the multicast data, which causes a large amount of unnecessary multicast data replication in the TRILL network. , wasting a lot of bandwidth. Summary of the invention
本发明实施例提供一种 TRILL网络中设置 CVLAN的方法, 能够有效避免 TRILL网络中 不必要的组播数据复制, 节省带宽。  The embodiment of the invention provides a method for setting a CVLAN in a TRILL network, which can effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一方面, 提供一种 TRILL网络中设置 CVLAN的方法, 包括: 交换机设置 CVLAN为非激活态, 以使得 RB不向所述交换机发送所述 CVLAN的组播数 据; On the one hand, a method for setting a CVLAN in a TRILL network is provided, including: The switch sets the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch;
所述交换机确定所述设置的 CVLAN中是否有网络设备上线;  Determining, by the switch, whether the network device is online in the set CVLAN;
如果所述交换机确定所述设置的 CVLAN中有网络设备上线, 所述交换机设置所述 CVLAN为激活态, 以使得所述 RB向所述交换机发送所述 CVLAN的组播数据。  If the switch determines that a network device is online in the set CVLAN, the switch sets the CVLAN to an active state, so that the RB sends the CVLAN multicast data to the switch.
另一方面, 提供一种 TRILL网络中设置 CVLAN的方法, 包括:  On the other hand, a method for setting a CVLAN in a TRILL network is provided, including:
RB确定交换机设置的 CVLAN的状态;  RB determines the state of the CVLAN set by the switch;
如果所述 RB确定所述交换机设置的 CVLAN为非激活态, 所述 RB不向所述交换机发送 所述 CVLAN的组播数据;  If the RB determines that the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch;
如果所述 RB确定所述交换机设置的所述 CVLAN为激活态, 所述 RB向所述交换机发送 所述 CVLAN的组播数据。  And if the RB determines that the CVLAN set by the switch is an active state, the RB sends the multicast data of the CVLAN to the switch.
另一方面, 提供一种 TRILL网络中设置 CVLAN的装置, 所述装置包括:  In another aspect, an apparatus for setting a CVLAN in a TRILL network is provided, where the apparatus includes:
设置单元, 用于设置 CVLAN为非激活态, 以使得 RB不向所述交换机发送所述 CVLAN的 组播数据;  a setting unit, configured to set the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch;
所述设置单元, 还用于如果所述确定单元确定所述 CVLAN中有网络设备上线, 设置 所述 CVLAN为激活态, 以使得所述 RB向所述交换机发送所述 CVLAN的组播数据。  The setting unit is further configured to: if the determining unit determines that a network device is online in the CVLAN, set the CVLAN to be in an active state, so that the RB sends the CVLAN multicast data to the switch.
另一方面, 提供一种 TRILL网络中设置 CVLAN的装置, 所述装置包括:  In another aspect, an apparatus for setting a CVLAN in a TRILL network is provided, where the apparatus includes:
确定单元, 用于确定交换机设置的 CVLAN的状态;  a determining unit, configured to determine a state of a CVLAN set by the switch;
发送单元, 用于如果所述确定单元确定所述交换机的 CVLAN为非激活态, 不向所述 交换机发送所述 CVLAN的组播数据;  a sending unit, configured to: if the determining unit determines that the CVLAN of the switch is in an inactive state, not sending the multicast data of the CVLAN to the switch;
发送单元, 还用于如果所述确定单元确定所述交换机的所述 CVLAN为激活态, 向所 述交换机发送所述 CVLAN的组播数据。  The sending unit is further configured to: if the determining unit determines that the CVLAN of the switch is in an active state, send the multicast data of the CVLAN to the switch.
采用上述技术方案后, 本发明实施例提供的一种 TRILL网络中设置 CVLAN的方法、 装 置, 在所述交换机的 CVLAN为非激活态时, 所述 RB不向所述交换机发送所述 CVLAN的组播 数据,在所述交换机的 CVLAN中有网络设备上线时,所述交换机设置所述 CVLAN为激活态, 所述 RB向所述交换机发送所述 CVLAN的组播数据, 这样一来, 相对于现有技术而言, 所 述交换机在所述 CVLAN中有网络设备上线时接收组播数据, 而在所述 CVLAN中没有网络设 备上线时不会接收到组播数据, 这样, 能够有效避免 TRILL网络中不必要的组播数据复 制, 节省带宽。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 After the foregoing technical solution, the method and device for setting a CVLAN in a TRILL network provided by the embodiment of the present invention, when the CVLAN of the switch is in an inactive state, the RB does not send the group of the CVLAN to the switch. Broadcasting data, when the network device is online in the CVLAN of the switch, the switch sets the CVLAN to an active state, and the RB sends the CVLAN multicast data to the switch, so that, relative to the current Technically, the switch receives multicast data when the network device is online in the CVLAN, and does not receive multicast data when the network device is online in the CVLAN, so that the TRILL network can be effectively avoided. Unnecessary multicast data replication, saving bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为本发明实施例提供的 TRILL网络中设置 CVLAN的方法的一流程图;  1 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention;
图 2为本发明实施例提供的 TRILL网络中设置 CVLAN的方法的另一流程图; 图 3为本发明实施例提供的 TRILL网络中设置 CVLAN的方法的具体流程图; 图 4A为本发明实施例提供的 TRILL网络中设置 CVLAN的方法在虚拟机动态迁移之前 的示意图;  2 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention; FIG. 3 is a specific flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention; A schematic diagram of a method for setting a CVLAN in a TRILL network before a virtual machine is dynamically migrated;
图 4B为本发明实施例提供的 TRILL网络中设置 CVLAN的方法在网络设备上线后的示 意图;  FIG. 4B is a schematic diagram of a method for setting a CVLAN in a TRILL network after the network device is online, according to an embodiment of the present invention; FIG.
图 4C为本发明实施例提供的 TRILL网络中设置 CVLAN的方法在虚拟机动态迁移之后 的示意图;  4C is a schematic diagram of a method for setting a CVLAN in a TRILL network after a virtual machine is dynamically migrated according to an embodiment of the present disclosure;
图 5A为本发明实施例提供的交换机的一结构框图;  FIG. 5 is a structural block diagram of a switch according to an embodiment of the present invention;
图 5B为本发明实施例提供的交换机的另一结构框图;  5B is another structural block diagram of a switch according to an embodiment of the present invention;
图 5C为本发明实施例提供的交换机的又一结构框图;  FIG. 5C is still another structural block diagram of a switch according to an embodiment of the present invention;
图 6为本发明实施例提供的 RB的结构框图。 具体实施方式 下面通过实施例对本发明的具体实现过程进行举例说明。 显然, 下面所描述的实施 例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通 技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。  FIG. 6 is a structural block diagram of an RB according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a specific implementation process of the present invention will be exemplified by way of examples. It is apparent that the embodiments described below are a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为更好地理解本发明, 下面首先对本申请中使用的相关术语进行说明。  For a better understanding of the invention, the relevant terms used in the present application are first described below.
本申请中提及 "CVLAN中的网络设备"是指设置有所述 CVLAN的网络设备。  Reference in the present application to "a network device in a CVLAN" refers to a network device in which the CVLAN is provided.
在本申请中提及 "交换机"是指能够运行 TRILL协议、 直接与 CVLAN中的网络设备交 互的交换机, 换言之, 即为, TRILL网络中最接近于 CVLAN中的网络设备的 RB。 在本申 请中提及 "RB"是指 TRILL网络中能够运行 TRILL协议、 具有路由转发特性的网桥设备, 且特别地是指除交换机之外的 RB, 即本申请中提及的 RB并不直接与 CVLAN中的网络设备 交互, 而是通过交换机与 CVLAN中的网络设备交互。 需了解的是, 本申请中对交换机和 RB进行区分仅是为了便于描述, 而不意为限制。 其中, RB可为框式交换机, 当然亦可为 能够运行 TR I LL协议的其他网络设备。当网络中的组播源向 RB发送所述 CVLAN的组播数据 时, 由所述 RB将所述 CVLAN的组播数据发送给交换机。 References in this application to "switches" refer to switches that are capable of running the TRILL protocol and interacting directly with network devices in the CVLAN. In other words, the RBs in the TRILL network that are closest to the network devices in the CVLAN. References to "RB" in this application refer to a bridge device capable of running the TRILL protocol in the TRILL network and having a route forwarding feature, and particularly refers to an RB other than a switch, that is, the RB mentioned in the present application does not. Directly with network devices in CVLAN Interaction, but through the switch to interact with network devices in the CVLAN. It should be understood that the switch and the RB are distinguished in this application for convenience of description and are not intended to be limiting. The RB may be a frame switch, and may of course be another network device capable of running the TR I LL protocol. When the multicast source in the network sends the multicast data of the CVLAN to the RB, the RB sends the multicast data of the CVLAN to the switch.
图 1为本发明实施例提供的 TRILL网络中设置 CVLAN的方法的一流程图。 参照图 1, 本 发明实施例提供一种 TRILL网络中设置 CVLAN的方法, 所述方法包括:  FIG. 1 is a flowchart of a method for setting a CVLAN in a TRILL network according to an embodiment of the present invention. Referring to FIG. 1, an embodiment of the present invention provides a method for setting a CVLAN in a TRILL network, where the method includes:
511 , 交换机设置 CVLAN为非激活态, 以使得 RB不向所述交换机发送所述 CVLAN的组 播数据。  511. The switch sets the CVLAN to an inactive state, so that the RB does not send the multicast data of the CVLAN to the switch.
其中:  among them:
在本发明实施例中, CVLAN的非激活态表示不会接收到所述 CVLAN的组播数据的一种 状态; CVLAN的激活态表示会接收到所述 CVLAN的组播数据的一种状态。  In the embodiment of the present invention, the inactive state of the CVLAN indicates a state in which the multicast data of the CVLAN is not received; and the activated state of the CVLAN indicates a state in which the multicast data of the CVLAN is received.
本步骤中, 例如, 所述交换机可在初始化时设置 CVLAN为非激活态, 这样, 所述交 换机在初始状态下不会接收到发往所述 CVLAN的组播数据。  In this step, for example, the switch may set the CVLAN to an inactive state during initialization, so that the switch does not receive the multicast data addressed to the CVLAN in the initial state.
在所述交换机设置 CVLAN为非激活态之后,所述交换机向 RB发送非激活态指示信息, 所述非激活态指示信息指示所述交换机上设置的所述 CVLAN为非激活态, 以使所述 RB不 向所述交换机发送所述 CVLAN的组播数据。  After the switch sets the CVLAN to the inactive state, the switch sends the inactive state indication information to the RB, where the inactive state indication information indicates that the CVLAN set on the switch is in an inactive state, so that the The RB does not send the multicast data of the CVLAN to the switch.
具体而言, 在所述 RB获知所述交换机上设置的所述 CVLAN为非激活态后, 在其设置 中将所述交换机从当前 TRILL网络中移除, 换言之即将所述交换机从 TRILL网络中剪枝 掉, 使得所述交换机不再被包含于当前的 TRILL网络中, 这样, 所述 RB在之后接收到所 述 CVLAN的组播数据后, 不会向所述交换机发送所述 CVLAN的组播数据。 其中, 所述非激 活态指示信息可被包含于报文的可选字段中, 并通过所述报文发送至所述 RB。  Specifically, after the RB learns that the CVLAN set on the switch is in an inactive state, the switch is removed from the current TRILL network in its setting, in other words, the switch is cut from the TRILL network. Branching off, so that the switch is no longer included in the current TRILL network, so that after receiving the multicast data of the CVLAN, the RB does not send the multicast data of the CVLAN to the switch. . The non-active state indication information may be included in an optional field of the message, and sent to the RB by using the message.
512 , 如果所述交换机设置的所述 CVLAN中有网络设备上线, 所述交换机设置所述 CVLAN为激活态, 以使得所述 RB向所述交换机发送所述 CVLAN的组播数据。  512. If a network device is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, so that the RB sends the CVLAN multicast data to the switch.
其中, 所述网络设备可以为服务器或终端。  The network device may be a server or a terminal.
所述网络设备上线是指,所述 CVLAN中的网络设备开始通过交换机与所述 CVLAN中的 其他网络设备进行数据交互。 所述网络设备下线是指, 所述 CVLAN中的所述网络设备不 与交换机进行数据交互。  The online device refers to that the network device in the CVLAN starts to exchange data with other network devices in the CVLAN through the switch. The network device is offline, that is, the network device in the CVLAN does not perform data interaction with the switch.
其中, 所述交换机可以通过以下方式确定所述交换机设置的所述 CVLAN中有网络设 备上线:  The switch may determine that a network device in the CVLAN set by the switch is online:
所述交换机接收所述交换机设置的所述 CVLAN中的网络设备发送的报文, 所述报文 中包含有所述网络设备的 MAC地址; Receiving, by the switch, a packet sent by a network device in the CVLAN that is set by the switch, where the packet is sent by the switch Included in the MAC address of the network device;
所述交换机在所述接收的报文中包含有所述网络设备的 MAC地址时,确定所述 CVLAN 中有网络设备上线。  The switch determines that a network device is online in the CVLAN when the received packet includes the MAC address of the network device.
具体而言, 当所述交换机设置的 CVLAN中有一网络设备需要与所述 CVLAN中的其他网 络设备进行数据交互时, 所述至少一网络设备会向所述交换机发送报文, 且所述报文中 包含的源 MAC地址为它自身的 MAC地址。 所述交换机接收所述 CVLAN中的至少一所述网络 设备发送的报文, 如果这个所述报文中包含的所述网络设备的源 MAC地址合法, 就查找 MAC地址表。 如果 MAC地址表中不存在所述 MAC地址, 就把所述 MAC地址添加到 MAC地址表 中, 并将所述 CVLAN设置为激活态以接收所述 RB向所述交换机发送的所述 CVLAN的组播数 据; 如果 MAC地址表中已经存在所述地址, 亦将所述 CVLAN设置为激活态, 以接收所述 RB 向所述交换机发送的所述 CVLAN的组播数据。  Specifically, when a network device in the CVLAN set by the switch needs to perform data interaction with another network device in the CVLAN, the at least one network device sends a packet to the switch, and the packet is sent. The source MAC address contained in it is its own MAC address. The switch receives a packet sent by at least one of the network devices in the CVLAN. If the source MAC address of the network device included in the packet is legal, the switch searches for a MAC address table. If the MAC address does not exist in the MAC address table, add the MAC address to the MAC address table, and set the CVLAN to an active state to receive the group of the CVLAN sent by the RB to the switch. Broadcasting data; if the address already exists in the MAC address table, the CVLAN is also set to an active state to receive multicast data of the CVLAN sent by the RB to the switch.
在所述交换机设置所述 CVLAN为激活态之后, 所述交换机向所述 RB发送激活态指示 信息, 所述激活态指示信息指示所述交换机设置的 CVLAN为激活态, 以使所述 RB向所述 交换机发送所述 CVLAN的组播数据。 其中, 所述激活态指示信息可被包含于报文的可选 字段中, 通过所述报文发送至所述 RB。  After the switch sets the CVLAN to an active state, the switch sends an activation state indication information to the RB, where the activation state indication information indicates that the CVLAN set by the switch is in an active state, so that the RB is in the active state. The switch sends the multicast data of the CVLAN. The activation state indication information may be included in an optional field of the message, and the message is sent to the RB by using the message.
具体而言, 所述 RB在获知所述交换机上设置的 CVLAN为激活态之后, 在其设置中会 将所述交换机再次引入当前 TRILL网络中, 这样, 所述 RB在接收到所述 CVLAN的组播数据 后, 会向所述交换机发送所述 CVLAN的组播数据, 所述交换机接收所述 RB发送的所述 CVLAN的组播数据, 并将所述组播数据发送给所述上线的网络设备。  Specifically, after the RB is informed that the CVLAN set on the switch is in an active state, the RB is re-introduced into the current TRILL network in the setting, so that the RB is in the group that receives the CVLAN. After the data is broadcast, the multicast data of the CVLAN is sent to the switch, and the switch receives the multicast data of the CVLAN sent by the RB, and sends the multicast data to the online device that is online. .
本发明实施例, 所述 CVLAN中加入组播组的网络设备上线后, 所述交换机将所述 In the embodiment of the present invention, after the network device that joins the multicast group in the CVLAN is online, the switch will
CVLAN设置为激活态, 这样, 所述 RB就会向所述交换机发送所述 CVLAN的组播数据, 进而 由所述交换机将组播数据发送给所述网络设备, 而其他没有网络设备上线的交换机上设 置的 CVLAN仍为非激活态, 接收不到 RB发送的组播数据, 如此, 通过设置 CVLAN的状态可 达到减少不必要的重复的组播数据的效果。 The CVLAN is set to the active state, so that the RB sends the multicast data of the CVLAN to the switch, and then the multicast data is sent by the switch to the network device, and other switches that do not have the network device online The CVLAN set is still inactive and cannot receive the multicast data sent by the RB. Therefore, by setting the state of the CVLAN, the effect of reducing unnecessary duplicate multicast data can be achieved.
进一步地, 为了防止 RB向所述交换机发送所述 CVLAN的组播数据而造成 TRILL网络中 不必要的组播数据复制,所述交换机在所述 CVLAN中有网络设备上线设置所述 CVLAN为激 活态后, 如果所述交换机在预定时间段内未收到所述交换机设置的 CVLAN中的任一网络 设备发送的报文, 则所述交换机将所述 CVLAN的状态从激活态设置为非激活态以使得 RB 不向所述交换机发送所述 CVLAN的组播数据。  Further, in order to prevent the RB from transmitting the multicast data of the CVLAN to the switch, causing unnecessary multicast data replication in the TRILL network, the switch has the network device online setting the CVLAN to be activated in the CVLAN. After the switch does not receive the packet sent by any network device in the CVLAN set by the switch within the predetermined time period, the switch sets the state of the CVLAN from the active state to the inactive state. The RB is not sent the multicast data of the CVLAN to the switch.
具体地, 如果所述交换机在设定的老化时间内没有收到所述 CVLAN中的任一网络设 备发出的报文, 交换机就认为所述 CVLAN中的所有网络设备都已经下线, 例如所有网络 设备均离开网络或者没有进行网络通信。 这时, 所述交换机会将所述 CVLAN的状态从激 活态设置为非激活态以使得 RB不向所述交换机发送所述 CVLAN的组播数据。 Specifically, if the switch does not receive any network configuration in the CVLAN within a set aging time For the outgoing packets, the switch considers that all network devices in the CVLAN are offline. For example, all network devices leave the network or do not communicate with the network. At this time, the switch sets the state of the CVLAN from an active state to an inactive state such that the RB does not send the multicast data of the CVLAN to the switch.
本发明实施例由交换机将 CVLAN设置为非激活态, 而在所述交换机设置的所述 CVLAN 中有加入组播组的网络设备上线时, 所述交换机将所述 CVLAN设置为激活态, 这样, 所 述交换机在所述 CVLAN中有网络设备上线时会接收 RB发往所述 CVLAN的组播数据, 而在所 述 CVLAN中没有网络设备上线时不会接收到 RB发往所述 CVLAN的组播数据, 因而, 能够有 效避免 TRILL网络中不必要的组播数据复制, 节省带宽。 与上述方法相对应, 本发明还提供一种 TRILL网络中设置 CVLAN的方法, 所述方法包 括:  In the embodiment of the present invention, the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, so that The switch receives the multicast data sent by the RB to the CVLAN when the network device is online in the CVLAN, and does not receive the multicast sent by the RB to the CVLAN when the network device does not go online. The data can thus effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth. Corresponding to the foregoing method, the present invention further provides a method for setting a CVLAN in a TRILL network, where the method includes:
521 , RB确定交换机设置的 CVLAN的状态;  521, RB determines a state of a CVLAN set by the switch;
本步骤中, 所述 RB确定交换机设置的 CVLAN的状态可具体包括:  In this step, the determining, by the RB, the status of the CVLAN set by the switch may include:
所述 RB接收所述交换机发送的非激活态指示信息,所述非激活态指示信息指示所述 交换机设置的 CVLAN为非激活态;  The RB receives the inactive state indication information sent by the switch, and the inactive state indication information indicates that the CVLAN set by the switch is in an inactive state;
所述 RB根据所述接收的非激活态指示信息, 确定所述交换机设置的 CVLAN为非激活 态。  The RB determines, according to the received inactive state indication information, that the CVLAN set by the switch is in an inactive state.
或者,  Or,
本步骤中, 所述 RB确定交换机设置的 CVLAN的状态可具体包括:  In this step, the determining, by the RB, the status of the CVLAN set by the switch may include:
所述 RB接收所述交换机发送的激活态指示信息,所述激活态指示信息指示所述交换 机设置的 CVLAN为激活态;  The RB receives the activation state indication information sent by the switch, where the activation state indication information indicates that the CVLAN set by the switch is an active state;
所述 RB根据所述接收的激活态指示信息, 确定所述交换机设置的 CVLAN为激活态。 The RB determines, according to the received activation state indication information, that the CVLAN set by the switch is in an active state.
522 ,如果所述 RB确定所述交换机设置的 CVLAN为非激活态, 所述 RB不向所述交换机 发送所述 CVLAN的组播数据; 522. If the RB determines that the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch.
具体地, 所述 RB在确定所述交换机设置的 CVLAN为非激活态后, 会在其设置中将所 述交换机从当前 TRILL网络中剪枝掉, 使得所述交换机不再被包含于当前 TRILL网络中, 这样, 所述 RB就不会向所述交换机发送所述 CVLAN的组播数据。  Specifically, after determining that the CVLAN set by the switch is in an inactive state, the RB prune the switch from the current TRILL network in its setting, so that the switch is no longer included in the current TRILL network. In this way, the RB does not send the multicast data of the CVLAN to the switch.
523,如果所述 RB确定所述交换机设置的 CVLAN为激活态, 所述 RB向所述交换机发送 所述 CVLAN的组播数据。  523. If the RB determines that the CVLAN set by the switch is an active state, the RB sends the multicast data of the CVLAN to the switch.
具体地, 在所述 RB确定所述交换机设置的 CVLAN为激活态后, 会在其设置中将所述 交换机再次添加至当前 TR I LL网络中, 使得所述交换机再次被包含于当前 TR I LL网络中, 这样, 所述 RB就会向所述交换机发送所述 CVLAN的组播数据。 Specifically, after the RB determines that the CVLAN set by the switch is in an active state, the RB will be in its setting. The switch is again added to the current TR I LL network such that the switch is again included in the current TR I LL network, such that the RB sends the CVLAN multicast data to the switch.
本发明实施例由交换机将 CVLAN设置为非激活态, 而在所述交换机设置的所述 CVLAN 中有加入组播组的网络设备上线时, 所述交换机将所述 CVLAN设置为激活态, 这样, 所 述交换机在所设置的 CVLAN中有网络设备上线时接收组播数据, 而在所设置的 CVLAN中没 有网络设备上线时不会接收到组播数据, 因而, 能够有效避免 TRILL网络中不必要的组 播数据复制, 节省带宽。 为更好地理解本发明实施例提供的 TRILL网络中设置 CVLAN的方法的技术方案, 下面 通过具体实施例来进行进一步的详细说明。  In the embodiment of the present invention, the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, so that The switch receives multicast data when the network device is online in the set CVLAN, and does not receive multicast data when the network device is online in the set CVLAN. Therefore, the switch can effectively avoid unnecessary in the TRILL network. Multicast data replication saves bandwidth. For a better understanding of the technical solution of the method for setting the CVLAN in the TRILL network provided by the embodiment of the present invention, further detailed description will be made below through specific embodiments.
本发明实施例提供的 TRILL网络中设置 CVLAN的方法可应用于各种不同场景中, 下面 结合图 3、 图 4A、 图 4B、 图 4C以数据中心的虚拟机动态迁移场景为例进行说明。 需了解 的是, 本发明的技术方案亦可应用于本领域普通技术人员公知的其他场景。  The method for setting the CVLAN in the TRILL network provided by the embodiment of the present invention can be applied to various scenarios. The following describes the dynamic migration scenario of the virtual machine in the data center by using FIG. 3, FIG. 4A, FIG. 4B, and FIG. It should be understood that the technical solution of the present invention can also be applied to other scenarios known to those skilled in the art.
如图 3、 图 4A、 图 4B、 图 4C所示, 本实施例提供的 TRILL网络中设置 CVLAN的方法, 包括:  As shown in FIG. 3, FIG. 4A, FIG. 4B, and FIG. 4C, the method for setting a CVLAN in a TRILL network provided by this embodiment includes:
S 31 , 在数据中心的虚拟机动态迁移之前, 盒式交换机 1-4设置 CVLAN 100为非激活 态, 以使得 RB1和 RB2不向盒式交换机 1-4发送 CVLAN 100的组播数据。  S 31. Before the virtual machine of the data center is dynamically migrated, the box switches 1-4 set the CVLAN 100 to an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switches 1-4.
如图 4A所示, 盒式交换机 1-4设置 CVLAN 100的初始状态为非激活态, 这样, RB1和 RB2不会向盒式交换机 1 -4发送 CVLAN 100的组播数据。  As shown in FIG. 4A, the box switch 1-4 sets the initial state of the CVLAN 100 to an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switch 1-4.
S 32 , 盒式交换机 1-4向 RB1和 RB2发送非激活态指示信息。 所述非激活态指示信息指 示各自设置的 CVLAN 100为非激活态, 以使 RB1和 RB2根据所述非激活态指示信息不向盒 式交换机 1-4发送 CVLAN 100的组播数据。  S32, the box switch 1-4 sends an inactive state indication message to RB1 and RB2. The inactive state indication information indicates that the CVLAN 100 set by each is in an inactive state, so that RB1 and RB2 do not send the multicast data of the CVLAN 100 to the box switch 1-4 according to the inactive state indication information.
S 33 , RB1和 RB2接收盒式交换机 1-4发送的非激活态指示信息, 并据此确定盒式交换 机 1-4设置的 CVLAN 100为非激活态, 不向盒式交换机 1_4发送 CVLAN 100的组播数据。  S 33, RB1 and RB2 receive the inactive state indication information sent by the box switch 1-4, and determine that the CVLAN 100 set by the box switch 1-4 is in an inactive state, and does not send the CVLAN 100 to the box switch 1_4. Multicast data.
S 34 , 当盒式交换机 3设置的 CVLAN 100中有至少一网络设备的虚拟机上线时, 盒式 交换机 3就将 CVLAN 100设置为激活态。  S 34. When the virtual machine of at least one network device in the CVLAN 100 set by the box switch 3 is brought online, the box switch 3 sets the CVLAN 100 to an active state.
具体地, 盒式交换机 3可通过以下方式确定 CVLAN 100中的网络设备上线: 盒式交换 机 3接收其设置的 CVLAN 100中的任一网络设备发送的报文, 所述报文中包含有所述任一 网络设备的 MAC地址; 盒式交换机 3在所述接收的报文中包含有所述网络设备的 MAC地址 时, 确定盒式交换机 3设置的 CVLAN 100中有网络设备上线。 参照图 4B, 服务器 1 (网络设备)上设置有虚拟机, 当服务器 1 (网络设备)上的虚拟机 从盒式交换机 3上线时, 盒式交换机 3设置 CVLAN 100为激活态, 而盒式交换机 1、 盒式交 换机 2和盒式交换机 4没有服务器(网络设备)上线, 它们仍设置 CVLAN 100为非激活态。 Specifically, the box switch 3 can determine that the network device in the CVLAN 100 is online: the box switch 3 receives the packet sent by any network device in the CVLAN 100 that is set, and the packet includes the The MAC address of any network device; when the received packet includes the MAC address of the network device, it is determined that the network device is online in the CVLAN 100 set by the box switch 3. Referring to FIG. 4B, a virtual machine is disposed on the server 1 (network device). When the virtual machine on the server 1 (network device) is brought online from the box switch 3, the box switch 3 sets the CVLAN 100 to the active state, and the box switch 1. The box switch 2 and the box switch 4 are not connected to the server (network device), and they still set CVLAN 100 to be inactive.
535 , 盒式交换机 3在将 CVLAN 100设置为激活态之后, 向 RB1和 RB2发送激活态指示 信息。 所述激活态指示信息指示盒式交换机 3设置的 CVLAN 100为激活态, 以使 RB1和 RB2 根据 CVLAN 100为激活态向盒式交换机 3发送 CVLAN 100的组播数据。  535. The box switch 3 sends an activation status indication message to RB1 and RB2 after setting CVLAN 100 to an active state. The activation state indication information indicates that the CVLAN 100 set by the box switch 3 is in an active state, so that RB1 and RB2 send the multicast data of the CVLAN 100 to the box switch 3 according to the CVLAN 100 being activated.
536 , RB1和 RB2获知盒式交换机 3设置 CVLAN 100为激活态之后, 向盒式交换机 3发送 所述 CVLAN 100的组播数据。  536, RB1 and RB2 know that the box switch 3 sets the CVLAN 100 to the active state, and then sends the multicast data of the CVLAN 100 to the box switch 3.
此时, 由于盒式交换机 1、盒式交换机 2、盒式交换机 4设置的 CVLAN 100为非激活态, 故 RB1和 RB2不会向它们发送 CVLAN 100的组播数据。  At this time, since the CVLAN 100 set by the box switch 1, the box switch 2, and the box switch 4 is inactive, RB1 and RB2 do not send the multicast data of the CVLAN 100 to them.
537 , 盒式交换机 3接收 RB1和 RB2发送的 CVLAN 100的组播数据, 并且将 CVLAN 100的 组播数据发送给上线的所述网络设备。  537. The box switch 3 receives the multicast data of the CVLAN 100 sent by the RB1 and the RB2, and sends the multicast data of the CVLAN 100 to the network device that is online.
538 , 当所述网络设备上的虚拟机从盒式交换机 3动态迁移到从盒式交换机 1上线时, 盒式交换机 1将 CVLAN 100设置为激活态, 而盒式交换机 3将 CVLAN 100设置为非激活态。  538. When the virtual machine on the network device is dynamically migrated from the box switch 3 to the slave box switch 1, the box switch 1 sets the CVLAN 100 to an active state, and the box switch 3 sets the CVLAN 100 to a non- Active state.
如图 4C所示, 当服务器 1 (网络设备)的虚拟机从盒式交换机 3下线, 而从盒式交换机 As shown in FIG. 4C, when the virtual machine of the server 1 (network device) goes offline from the box switch 3, the slave box switch
1上线时, 盒式交换机 1将 CVLAN 100从非激活态设置为激活态, 而盒式交换机 3将 CVLAN 100从激活态设置为非激活态。 When 1 goes online, the box switch 1 sets the CVLAN 100 from the inactive state to the active state, and the box switch 3 sets the CVLAN 100 from the active state to the inactive state.
这样一来, 只有盒式交换机 1能接收 CVLAN 100的组播数据, 而包含盒式交换机 3在 内的其他盒式交换机不会接收到 CVLAN 100的组播数据, 因而能够消除 TRILL网络中不必 要的重复组播数据, 节省带宽。  In this way, only the box switch 1 can receive the multicast data of the CVLAN 100, and the other box switches including the box switch 3 do not receive the multicast data of the CVLAN 100, thereby eliminating unnecessary in the TRILL network. Repeat multicast data to save bandwidth.
具体地, 盒式交换机 1可通过报文中的 MAC地址感知所述网络设备上线, 并据此将 CVLAN 100从非激活态切换为激活态以接收 CVLAN 100的组播数据; 且若盒式交换机 1在 预定时间段内未接收到 CVLAN 100中所述网络设备的报文, 则可根据前文所述的老化机 制重新将 CVLAN 100从激活态切换为非激活态以不接收 CVLAN 100的组播数据。  Specifically, the box switch 1 can sense that the network device is online through the MAC address in the packet, and accordingly, the CVLAN 100 is switched from the inactive state to the active state to receive the multicast data of the CVLAN 100; and if the box switch If the packet of the network device in the CVLAN 100 is not received within the predetermined time period, the CVLAN 100 may be re-switched from the active state to the inactive state according to the aging mechanism described above to not receive the multicast data of the CVLAN 100. .
本实施例提供的一种 TRILL网络中设置 CVLAN的方法, 在所述交换机的 CVLAN为非激 活态时, 所述 RB不向所述交换机发送所述 CVLAN的组播数据, 在所述交换机的 CVLAN中有 网络设备上线时, 所述交换机设置所述 CVLAN为激活态, 所述 RB向所述交换机发送所述 CVLAN的组播数据, 这样一来, 相对于现有技术而言, 所述交换机在所述 CVLAN中有网络 设备上线时接收所述 CVLAN的组播数据, 而在所述 CVLAN中没有网络设备上线时不会接收 到所述 CVLAN的组播数据, 因而, 能够有效避免 TRILL网络中不必要的组播数据的复制, 节省带宽。 与上述 TRILL网络中设置 CVLAN的方法相对应, 本发明实施例还提供一种 TRILL网络 中设置 CVLAN的装置, 所述装置由交换机实现, 所述交换机包括交换芯片、 线卡和背板。 如图 5A所示, 所述 TRILL网络中设置 CVLAN的装置包括: The method for setting a CVLAN in a TRILL network provided by this embodiment, when the CVLAN of the switch is in an inactive state, the RB does not send the CVLAN multicast data to the switch, and the CVLAN of the switch When the network device is online, the switch sets the CVLAN to an active state, and the RB sends the CVLAN multicast data to the switch, so that the switch is compared to the prior art. The CVLAN receives the multicast data of the CVLAN when the network device is online, and does not receive the multicast data of the CVLAN when the network device is online, so that the TRILL network can be effectively avoided. The necessary copying of multicast data, Save bandwidth. Corresponding to the method for setting a CVLAN in the TRILL network, the embodiment of the present invention further provides an apparatus for setting a CVLAN in a TRILL network, where the device is implemented by a switch, where the switch includes a switch chip, a line card, and a backplane. As shown in FIG. 5A, the device for setting a CVLAN in the TRILL network includes:
设置单元 51, 用于设置 CVLAN为非激活态, 以使得 RB不向所述装置发送所述 CVLAN的 组播数据; 确定单元 52, 用于确定所述装置设置的 CVLAN中是否有网络设备上线;  The setting unit 51 is configured to set the CVLAN to be inactive, so that the RB does not send the multicast data of the CVLAN to the device, and the determining unit 52 is configured to determine whether a network device is online in the CVLAN set by the device.
设置单元 51, 还用于如果所述装置确定所述装置设置的 CVLAN中有网络设备上线, 设置所述 CVLAN为激活态, 以使得所述 RB向所述装置发送所述 CVLAN的组播数据。  The setting unit 51 is further configured to: if the device determines that a network device is online in the CVLAN set by the device, setting the CVLAN to an active state, so that the RB sends the multicast data of the CVLAN to the device.
本发明实施例由交换机将 CVLAN设置为非激活态, 而在所述交换机设置的所述 CVLAN 中有加入组播组的网络设备上线时, 所述交换机将所述 CVLAN设置为激活态, 而其他交 换机的 CVLAN仍为非激活态, 这样, 所述交换机在所设置的 CVLAN中有网络设备上线时接 收组播数据, 而在所设置的 CVLAN中没有网络设备上线时不会接收到组播数据, 因而, 能够有效避免 TRILL网络中不必要的组播数据复制, 节省带宽。  In the embodiment of the present invention, the switch sets the CVLAN to an inactive state, and when the network device that joins the multicast group is online in the CVLAN set by the switch, the switch sets the CVLAN to an active state, and the other The CVLAN of the switch is still inactive. In this way, the switch receives multicast data when the network device is online in the set CVLAN, and does not receive multicast data when the network device is online. Therefore, unnecessary multicast data replication in the TRILL network can be effectively avoided, and bandwidth is saved.
进一步地, 如图 5B所示, 所述装置还包括确定单元 52, 其具体用于:  Further, as shown in FIG. 5B, the device further includes a determining unit 52, which is specifically configured to:
接收所述 CVLAN中的网络设备发送的报文,所述报文中包含有所述网络设备的 MAC地 址;  Receiving a packet sent by the network device in the CVLAN, where the packet includes a MAC address of the network device;
在所述接收的报文中包含有所述网络设备的 MAC地址时,确定所述 CVLAN中有网络设 备上线。  When the received packet includes the MAC address of the network device, it is determined that the network device is online in the CVLAN.
可选地, 在本发明的一实施例中, 如图 5C所示, 所述装置还包括:  Optionally, in an embodiment of the present invention, as shown in FIG. 5C, the device further includes:
发送单元 53, 用于在设置单元 51设置所述 CVLAN为非激活态后, 向所述 RB发送非激 活态指示信息, 所述非激活态指示信息指示所述设置单元 51设置的 CVLAN为非激活态, 以使所述 RB根据所述 CVLAN的非激活态不向所述装置发送所述 CVLAN的组播数据。  The sending unit 53 is configured to send the inactive state indication information to the RB after the setting unit 51 sets the CVLAN to the inactive state, where the inactive state indication information indicates that the CVLAN set by the setting unit 51 is inactive. And the RB does not send the multicast data of the CVLAN to the device according to the inactive state of the CVLAN.
进一步可选地, 发送单元 53, 还用于在设置单元 51设置所述 CVLAN为激活态之后, 向所述 RB发送激活态指示信息, 所述激活态指示信息指示所述 CVLAN为激活态, 以使所 述 RB根据所述 CVLAN的激活态向所述装置发送所述 CVLAN的组播数据。 相应地, 本发明实施例还提供一种 TRILL网络中设置 CVLAN的装置, 所述装置由 RB实 现, 所述 RB包括交换芯片、 线卡和背板。 如图 6所示, 所述 TRILL网络中设置 CVLAN的装 置包括: 确定单元 61, 用于确定交换机设置的 CVLAN的状态; Further, the sending unit 53 is further configured to: after the setting unit 51 sets the CVLAN to an active state, send the activation state indication information to the RB, where the activation state indication information indicates that the CVLAN is an active state, And causing the RB to send the multicast data of the CVLAN to the apparatus according to an activated state of the CVLAN. Correspondingly, the embodiment of the present invention further provides an apparatus for setting a CVLAN in a TRILL network, where the apparatus is implemented by an RB, where the RB includes a switch chip, a line card, and a backplane. As shown in FIG. 6, the apparatus for setting a CVLAN in the TRILL network includes: a determining unit 61, configured to determine a state of a CVLAN set by the switch;
发送单元 62, 用于如果所述确定单元确定所述交换机设置的 CVLAN为非激活态, 不 向所述交换机发送所述 CVLAN的组播数据;  The sending unit 62 is configured to: if the determining unit determines that the CVLAN set by the switch is in an inactive state, not sending the multicast data of the CVLAN to the switch;
发送单元 62, 还用于如果确定单元 61确定所述交换机设置的所述 CVLAN为激活态, 向所述交换机发送所述 CVLAN的组播数据。  The sending unit 62 is further configured to: if the determining unit 61 determines that the CVLAN set by the switch is an active state, send the multicast data of the CVLAN to the switch.
本发明实施例 RB在交换机设置的 CVLAN为非激活态时, 不向所述交换机发送所述 CVLAN的组播数据, 而在所述交换机设置的所述 CVLAN为激活态时, 向所述交换机发送所 述 CVLAN的组播数据, 这样, 所述交换机在所设置的 CVLAN中有网络设备上线时接收组播 数据, 而在所设置的 CVLAN中没有网络设备上线时不会接收到组播数据, 因而, 能够有 效避免 TRILL网络中不必要的组播数据复制, 节省带宽。  In the embodiment of the present invention, when the CVLAN set by the switch is in an inactive state, the RB does not send the multicast data of the CVLAN to the switch, and when the CVLAN set by the switch is in an active state, sends the CVLAN to the switch. The multicast data of the CVLAN, so that the switch receives the multicast data when the network device is online in the set CVLAN, and does not receive the multicast data when the network device is online in the set CVLAN. It can effectively avoid unnecessary multicast data replication in the TRILL network and save bandwidth.
其中, 可选地, 确定单元 61具体用于:  Optionally, the determining unit 61 is specifically configured to:
接收所述交换机发送的非激活态指示信息,所述非激活态指示信息指示所述交换机 设置的 CVLAN为非激活态;  Receiving the inactive state indication information sent by the switch, where the inactive state indication information indicates that the CVLAN set by the switch is in an inactive state;
根据所述接收的非激活态指示信息, 确定所述交换机设置的 CVLAN为非激活态。 进一步地, 确定单元 61具体用于:  Determining, according to the received inactive state indication information, that the CVLAN set by the switch is in an inactive state. Further, the determining unit 61 is specifically configured to:
接收所述交换机发送的激活态指示信息, 所述激活态指示信息指示所述交换机的 CVLAN为激活态;  Receiving the activation state indication information sent by the switch, where the activation state indication information indicates that the CVLAN of the switch is an active state;
根据所述接收的激活态指示信息, 确定所述交换机设置的 CVLAN为激活态。  And determining, according to the received activation state indication information, that the CVLAN set by the switch is an active state.
值得注意的是, 上述各装置实施例中, 所包括的各个单元只是按照功能逻辑进行划 分的, 但并不局限于上述的划分, 只要能够实现相应的功能即可; 另外, 各功能单元的 具体名称也只是为了便于相互区分, 并不用于限制本发明的保护范围。  It should be noted that, in the foregoing device embodiments, the included units are only divided according to functional logic, but are not limited to the foregoing division, as long as the corresponding functions can be implemented; The names are also for convenience of distinction from each other and are not intended to limit the scope of protection of the present invention.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通过程 序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该程序 在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: 只读存储器、 随 机存取存储器、 磁碟或者光盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: The foregoing storage medium includes: a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何 熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应 涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种多链接透明互联网络中设置用户侧虚拟局域网的方法, 其特征在于, 包括: 交换机设置用户侧虚拟局域网为非激活态, 以使得路由网桥不向所述交换机发送所 述用户侧虚拟局域网的组播数据;  A method for setting a user-side virtual local area network in a multi-link transparent internet, comprising: setting a user-side virtual local area network to an inactive state, so that the routing bridge does not send the user side to the switch Multicast data of a virtual local area network;
如果所述交换机确定所述交换机设置的用户侧虚拟局域网中有网络设备上线,所述 交换机设置所述用户侧虚拟局域网为激活态, 以使得所述路由网桥向所述交换机发送所 述用户侧虚拟局域网的组播数据。  If the switch determines that the network device is online in the user-side virtual local area network set by the switch, the switch sets the user-side virtual local area network to an active state, so that the routing bridge sends the user side to the switch Multicast data for virtual local area networks.
2、 根据权利要求 1所述的方法, 其特征在于, 在所述交换机设置所述交换机设置的 用户侧虚拟局域网为非激活态后, 所述方法还包括:  The method according to claim 1, wherein after the switch sets the user-side virtual local area network set by the switch to be in an inactive state, the method further includes:
所述交换机向所述路由网桥发送非激活态指示信息,所述非激活态指示信息指示所 述交换机设置的所述用户侧虚拟局域网为非激活态, 以使所述路由网桥不向所述交换机 发送所述用户侧虚拟局域网的组播数据。  The switch sends the inactive state indication information to the routing bridge, where the inactive state indication information indicates that the user-side virtual local area network set by the switch is in an inactive state, so that the routing bridge does not The switch sends multicast data of the user-side virtual local area network.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 在所述交换机设置所述用户侧虚 拟局域网为激活态之后, 所述方法还包括:  The method according to claim 1 or 2, wherein, after the switch sets the user-side virtual local area network to an active state, the method further includes:
所述交换机向所述路由网桥发送激活态指示信息,所述激活态指示信息指示所述交 换机设置的用户侧虚拟局域网为激活态, 以使所述路由网桥向所述交换机发送所述用户 侧虚拟局域网的组播数据。  The switch sends the activation state indication information to the routing bridge, where the activation state indication information indicates that the user-side virtual local area network set by the switch is in an active state, so that the routing bridge sends the user to the switch. Multicast data of the side virtual local area network.
4、 根据权利要求 3所述的方法, 其特征在于, 如果所述交换机在预定时间段内未收 到所述交换机设置的 CVLAN中的任一网络设备发送的报文, 则所述交换机将所述 CVLAN的 状态从激活态设置为非激活态以使得 RB不向所述交换机发送所述 CVLAN的组播数据。  The method according to claim 3, wherein if the switch does not receive a packet sent by any network device in the CVLAN set by the switch within a predetermined period of time, the switch will The state of the CVLAN is set from the active state to the inactive state such that the RB does not send the multicast data of the CVLAN to the switch.
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 所述交换机可以通过以下 方式确定所述交换机设置的所述 CVLAN中有网络设备上线:  The method according to any one of claims 1 to 4, wherein the switch determines that a network device in the CVLAN set by the switch is online:
所述交换机接收所述交换机设置的用户侧虚拟局域网中的网络设备发送的报文,所 述报文中包含有所述网络设备的介质访问控制地址;  Receiving, by the switch, a packet sent by a network device in a user-side virtual local area network set by the switch, where the packet includes a media access control address of the network device;
所述交换机在所述接收的报文中包含有所述网络设备的介质访问控制地址时,确定 所述交换机设置的用户侧虚拟局域网中有网络设备上线。  When the received message includes the medium access control address of the network device, the switch determines that the network device is online in the user-side virtual local area network set by the switch.
6、 一种多链接透明互联网络中设置用户侧虚拟局域网的方法, 其特征在于, 包括: 路由网桥确定交换机设置的用户侧虚拟局域网的状态; 如果所述路由网桥确定所述交换机设置的用户侧虚拟局域网为非激活态,所述路由 网桥不向所述交换机发送所述用户侧虚拟局域网的组播数据; A method for setting a user-side virtual local area network in a multi-link transparent internet, the method comprising: the routing bridge determining a state of a user-side virtual local area network set by the switch; If the routing bridge determines that the user-side virtual local area network set by the switch is in an inactive state, the routing bridge does not send the multicast data of the user-side virtual local area network to the switch;
如果所述路由网桥确定所述交换机设置的所述用户侧虚拟局域网为激活态,所述路 由网桥向所述交换机发送所述用户侧虚拟局域网的组播数据。  And if the routing bridge determines that the user-side virtual local area network set by the switch is in an active state, the routing bridge sends the multicast data of the user-side virtual local area network to the switch.
7、 根据权利要求 6所述的方法, 其特征在于,  7. The method of claim 6 wherein:
所述路由网桥确定交换机设置的用户侧虚拟局域网的状态包括:  The routing bridge determines the state of the user-side virtual local area network set by the switch, including:
所述路由网桥接收所述交换机发送的激活态指示信息,所述激活态指示信息指示所 述交换机设置的用户侧虚拟局域网为激活态;  The routing bridge receives the activation state indication information sent by the switch, and the activation state indication information indicates that the user-side virtual local area network set by the switch is an active state;
所述路由网桥根据所述接收的激活态指示信息,确定所述交换机设置的用户侧虚拟 局域网为激活态。  The routing bridge determines, according to the received activation state indication information, that the user-side virtual local area network set by the switch is in an active state.
8、 根据权利要求 6所述的方法, 其特征在于,  8. The method of claim 6 wherein:
所述路由网桥确定交换机设置的用户侧虚拟局域网的状态包括:  The routing bridge determines the state of the user-side virtual local area network set by the switch, including:
所述路由网桥接收所述交换机发送的非激活态指示信息,所述非激活态指示信息指 示所述交换机设置的用户侧虚拟局域网为非激活态;  The routing bridge receives the inactive state indication information sent by the switch, and the inactive state indication information indicates that the user-side virtual local area network set by the switch is in an inactive state;
所述路由网桥根据所述接收的非激活态指示信息,确定所述交换机设置的用户侧虚 拟局域网为非激活态。  The routing bridge determines, according to the received inactive state indication information, that the user-side virtual local area network set by the switch is in an inactive state.
9、 一种 TRILL网络中设置 CVLAN的装置, 其特征在于, 所述装置包括: A device for setting a CVLAN in a TRILL network, the device comprising:
设置单元, 用于设置用户侧虚拟局域网为非激活态, 以使得路由网桥不向所述装置 发送所述用户侧虚拟局域网的组播数据;  a setting unit, configured to set the user-side virtual local area network to an inactive state, so that the routing bridge does not send the multicast data of the user-side virtual local area network to the device;
所述设置单元,还用于如果所述装置确定所述装置设置的用户侧虚拟局域网中有网 络设备上线, 设置所述装置设置的用户侧虚拟局域网为激活态, 以使得所述路由网桥向 所述装置发送所述用户侧虚拟局域网的组播数据。  The setting unit is further configured to: if the device determines that the network device is online in the user-side virtual local area network set by the device, setting the user-side virtual local area network set by the device to be in an active state, so that the routing bridge is The device sends multicast data of the user side virtual local area network.
10、 根据权利要求 9所述的装置, 其特征在于, 所述装置还包括:  The device according to claim 9, wherein the device further comprises:
发送单元, 用于在所述设置单元设置所述用户侧虚拟局域网为激活态之后, 向所述 路由网桥发送激活态指示信息,所述激活态指示信息指示所述装置设置的用户侧虚拟局 域网为激活态, 以使所述路由网桥向所述装置发送所述用户侧虚拟局域网的组播数据。  a sending unit, configured to send an activation state indication information to the routing bridge after the setting unit sets the user-side virtual local area network to an active state, where the activation state indication information indicates a user-side virtual local area network set by the device And being activated, so that the routing bridge sends the multicast data of the user-side virtual local area network to the device.
11、 根据权利要求 10所述的装置, 其特征在于, 所述发送单元, 还用于在所述设置 单元设置所述用户侧虚拟局域网为非激活态后, 向所述路由网桥发送非激活态指示信 息, 所述非激活态指示信息指示所述装置设置的用户侧虚拟局域网为非激活态, 以使所 述路由网桥不向所述装置发送所述用户侧虚拟局域网的组播数据。 The device according to claim 10, wherein the sending unit is further configured to: after the setting unit sets the user-side virtual local area network to an inactive state, send the inactive to the routing bridge. State letter The inactive state indication information indicates that the user-side virtual local area network set by the device is in an inactive state, so that the routing bridge does not send the multicast data of the user-side virtual local area network to the device.
12、 根据权利要求 9至 11任一项所述的装置, 其特征在于, 所述装置还包括确定单 元, 所述确定单元具体用于:  The device according to any one of claims 9 to 11, wherein the device further comprises a determining unit, and the determining unit is specifically configured to:
接收所述设置单元设置的用户侧虚拟局域网中的网络设备发送的报文,所述报文中 包含有所述网络设备的介质访问控制地址;  And receiving, by the setting unit, a packet sent by a network device in a user-side virtual local area network, where the packet includes a media access control address of the network device;
根据所述接收的报文中包含的介质访问控制地址,确定所述设置单元设置的用户侧 虚拟局域网中有网络设备上线。  And determining, according to the medium access control address included in the received message, that the network device is online in the user-side virtual local area network set by the setting unit.
13、 一种 TRILL网络中设置 CVLAN的装置, 其特征在于, 所述装置包括: 13. A device for setting a CVLAN in a TRILL network, the device comprising:
确定单元, 用于确定交换机设置的用户侧虚拟局域网的状态;  a determining unit, configured to determine a state of a user-side virtual local area network set by the switch;
发送单元,用于如果所述确定单元确定所述交换机设置的用户侧虚拟局域网为非激 活态, 不向所述交换机发送所述用户侧虚拟局域网的组播数据;  a sending unit, configured to: if the determining unit determines that the user-side virtual local area network set by the switch is in an inactive state, not sending the multicast data of the user-side virtual local area network to the switch;
发送单元,还用于如果所述确定单元确定所述交换机设置的所述用户侧虚拟局域网 为激活态, 向所述交换机发送所述用户侧虚拟局域网的组播数据。  And a sending unit, configured to: if the determining unit determines that the user-side virtual local area network set by the switch is in an active state, send the multicast data of the user-side virtual local area network to the switch.
14、 根据权利要求 13所述的装置, 其特征在于,  14. Apparatus according to claim 13 wherein:
所述确定单元具体用于:  The determining unit is specifically configured to:
接收所述交换机发送的非激活态指示信息,所述非激活态指示信息指示所述交换机 设置的用户侧虚拟局域网为非激活态;  Receiving the inactive state indication information sent by the switch, where the inactive state indication information indicates that the user-side virtual local area network set by the switch is in an inactive state;
根据所述接收的非激活态指示信息,确定所述交换机设置的用户侧虚拟局域网为非 激活态。  And determining, according to the received inactive state indication information, that the user-side virtual local area network set by the switch is in an inactive state.
15、 根据权利要求 13或 14所述的装置, 其特征在于,  15. Apparatus according to claim 13 or claim 14 wherein:
所述确定单元具体用于:  The determining unit is specifically configured to:
接收所述交换机发送的激活态指示信息,所述激活态指示信息指示所述交换机设置 的用户侧虚拟局域网为激活态;  Receiving the activation state indication information sent by the switch, where the activation state indication information indicates that the user-side virtual local area network set by the switch is in an active state;
根据所述接收的激活态指示信息,确定所述交换机设置的用户侧虚拟局域网为激活 态。  And determining, according to the received activation state indication information, that the user-side virtual local area network set by the switch is in an active state.
PCT/CN2013/070097 2012-01-11 2013-01-06 Method and device for setting cvlan in trill network WO2013104279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210008654.X 2012-01-11
CN201210008654.XA CN102571586B (en) 2012-01-11 2012-01-11 Method and device for setting customer virtual local area network (CVLAN) in transparent interconnect of lots of links (TRILL) network

Publications (1)

Publication Number Publication Date
WO2013104279A1 true WO2013104279A1 (en) 2013-07-18

Family

ID=46416087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070097 WO2013104279A1 (en) 2012-01-11 2013-01-06 Method and device for setting cvlan in trill network

Country Status (2)

Country Link
CN (1) CN102571586B (en)
WO (1) WO2013104279A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571586B (en) * 2012-01-11 2014-12-03 华为技术有限公司 Method and device for setting customer virtual local area network (CVLAN) in transparent interconnect of lots of links (TRILL) network
CN102946357B (en) * 2012-11-28 2015-07-08 杭州华三通信技术有限公司 Method and device for issuing multicast forwarding table items
CN104660519B (en) * 2013-11-25 2018-10-30 华为技术有限公司 The processing method and processing device of forward-path in a kind of TRILL network
CN104539545B (en) * 2014-12-31 2018-01-12 新华三技术有限公司 Method for forwarding multicast message and equipment in TRILL network
CN107885573B (en) * 2016-09-29 2021-09-14 华为技术有限公司 Data flow control method, controller and data center system
WO2019048278A1 (en) * 2017-09-06 2019-03-14 Signify Holding B.V. Commissioning in multi-hop networks by using a single-hop connection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101841454A (en) * 2009-03-17 2010-09-22 中国电信股份有限公司 Bandwidth adjustment method and broadband access server
CN102571586A (en) * 2012-01-11 2012-07-11 华为技术有限公司 Method and device for setting customer virtual local area network (CVLAN) in transparent interconnect of lots of links (TRILL) network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101841454A (en) * 2009-03-17 2010-09-22 中国电信股份有限公司 Bandwidth adjustment method and broadband access server
CN102571586A (en) * 2012-01-11 2012-07-11 华为技术有限公司 Method and device for setting customer virtual local area network (CVLAN) in transparent interconnect of lots of links (TRILL) network

Also Published As

Publication number Publication date
CN102571586A (en) 2012-07-11
CN102571586B (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US10917262B2 (en) VXLAN packet forwarding method, device, and system
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
CN104541482B (en) The system and method suppressed for the neighbours with smooth restarting ability using RVSP HELLO
US10673736B2 (en) Traffic reduction in data center fabrics
US9178811B2 (en) Method, apparatus and system for generating label forwarding table on ring topology
US9219641B2 (en) Performing failover in a redundancy group
US20160065503A1 (en) Methods, systems, and computer readable media for virtual fabric routing
CN112929274A (en) Method, equipment and system for processing route
CN111970137B (en) Method, device and system for communication among controllers in TSN (traffic service network)
WO2012075731A1 (en) Method and device for link fault detecting and recovering based on arp interaction
WO2013104279A1 (en) Method and device for setting cvlan in trill network
US10447652B2 (en) High availability bridging between layer 2 networks
CN107911291A (en) VRRP routers switching method, router, VRRP active-standby switch system and storage medium
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
US10404544B2 (en) Network topology determining method and apparatus, and centralized network status information storage device
WO2023280240A1 (en) Gateway switching method and apparatus, terminal device, and computer readable storage medium
US20150334019A1 (en) Routing control method and non-transitory computer-readable recording medium storing routing control program
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
JP2005057693A (en) Network virtualizing system
WO2015032260A1 (en) Route updating method and routing device
WO2022246693A1 (en) Method and apparatus for path switchover management
WO2022083763A1 (en) Method and apparatus for establishing border gateway protocol (bgp) neighbors, device and system
WO2021135472A1 (en) Method and apparatus for processing routing information
JP2006054766A (en) Control data sharing method in redundant configuration network system
KR101475306B1 (en) Method for duplicating rouer

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

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

Country of ref document: EP

Kind code of ref document: A1