CN104348797B - A dynamic attribute registration method and apparatus vlan - Google Patents

A dynamic attribute registration method and apparatus vlan Download PDF

Info

Publication number
CN104348797B
CN104348797B CN 201310328318 CN201310328318A CN104348797B CN 104348797 B CN104348797 B CN 104348797B CN 201310328318 CN201310328318 CN 201310328318 CN 201310328318 A CN201310328318 A CN 201310328318A CN 104348797 B CN104348797 B CN 104348797B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
vlan
attribute
event
registration
ed
Prior art date
Application number
CN 201310328318
Other languages
Chinese (zh)
Other versions
CN104348797A (en )
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
Grant date

Links

Abstract

本发明提供了一种动态VLAN属性注册方法和装置,技术方案为:在本站点的ED上配置动态VLAN属性注册功能;本ED接收到来自站点网络内的VLAN属性注册报文后,将VLAN属性注册报文中的VLAN属性注册信息发送到配置了动态VLAN属性注册功能远端站点的ED,远端站点的ED重新生成该VLAN属性注册信息对应的VLAN属性注册报文并在远端站点内传播。 The present invention provides a method and dynamic VLAN attribute registration apparatus, technical scheme: Configure dynamic VLAN attribute registration feature on the site of the ED; ED this VLAN attribute register receives packets from the network within a site, the VLAN VLAN attribute registration packets attribute registration information to dynamically configure the VLAN attribute registration function ED remote site, the remote site ED regenerate the VLAN corresponding to the VLAN attribute registration information packets and the attribute registration in the remote site spread. 本发明能够实现跨数据中心的动态VLAN属性注册。 The present invention enables dynamic VLAN attribute registration across data centers.

Description

一种动态VLAN属性注册方法和装置 A dynamic VLAN attribute registration method and apparatus

技术领域 FIELD

[0001] 本发明涉及通信技术领域,特别涉及一种动态虚拟局域网(VLAN)属性注册方法和装置。 [0001] The present invention relates to communication technologies, particularly to a dynamic virtual LAN (VLAN) and device attribute registration method.

背景技术 Background technique

[0002] 以太网虚拟化互联(Ethernet Virtualization Interconnection,EVI)是一种" MAC(Media Access Control,媒体访问控制)in IP〃技术,用于实现基于IP(Internet Protoco 1,因特网协议)核心网的L2VPN (Layer2Virtual Pri vate Network,二层虚拟专用网)。EVI网络由核心网络、站点网络、及交叠网络组成,其中,站点网络是通过一台或者多台边缘设备连接到核心网络的具有独立业务功能的二层网络;交叠网络是边缘设备之间建立的虚拟网络,提供站点网络之间的二层互联,通告连接到边缘设备所有主机和路由器的MAC 地址,将多个站点互联形成更大的二层转发域;核心网络是由IP路由设备承载的提供站点网络之间互联的网络。 [0002] Ethernet Virtualization Interconnection (Ethernet Virtualization Interconnection, EVI) is a "MAC (Media Access Control, MAC) in IP〃 technology used to achieve the IP (Internet Protoco 1, Internet Protocol) core network L2VPN (Layer2Virtual Pri vate network, Layer virtual private network) .EVI network by the core network, network sites, and a network of overlapping, wherein the site is connected to the core network through a network edge device or a plurality of independent service Layer network functions; overlapping edge device network is established between the virtual network that provides interconnection between the floor site network, the MAC address advertised edge devices connected to all hosts and routers, interconnected to form a larger plurality of sites Layer 2 forwarding domain; core network is provided by a network site interconnection between IP network routing device bearer.

[0003] EVI网络的站点网络中,通常采用通用VLAN属性注册协议(GARP VLAN Registration Protocol,GVRP),来协助同一局域网内各成员之间分发、传播和注册VLAN信息。 [0003] site network EVI network, normally using a common VLAN attribute registration protocol (GARP VLAN Registration Protocol, GVRP), to help distribute among members of the same LAN, VLAN registration and dissemination of information. 设备上每一个参与协议的端口都可以视为一个应用实体,当GVRP应用在端口上启动之后,该端口就可视为一个GVRP应用实体。 Each port on the device involved in the agreement can be seen as an application entity, when the application starts GVRP on the port, the port can be considered as a GVRP application entity. GVRP应用实体通过发送出的声明或回收声明来通知其它GVRP应用实体来注册或注销自己的VLAN属性信息,并根据其它实体发来的声明或回收声明来注册或注销对方的VLAN属性信息。 GVRP GVRP application entities to notify other application entities to register or deregister its VLAN attribute information by declaration or recycling statement sent out, and to register or deregister VLAN attribute information according to each other's statements sent by other entities or recycling statement. 通过GVRP机制,一个GVRP应用实体上的配置信息会迅速传遍整个局域网。 By GVRP mechanism, a GVRP application configuration information on the entity would quickly spread throughout the LAN.

[0004] 参见图1,图1是现有采用GVRP机制进行VLAN属性注册的示意图,设备A的端口1和设备B的端口2相连,端口1和端口2均启动了GVRP应用,可以从端口1向端口2发送VLAN属性的声明或回收声明,当在端口2收到从端口1发出的VLAN属性的声明(Join报文)时,端口2将注册该声明中所包含的VLAN属性,也即将端口2加入到该VLAN中;当在端口2收到从端口1发出的VLAN属性的回收声明(Leave报文)时,端口2将注销该声明中所包含的VLAN属性,也即将该端口退出该VLAN。 [0004] Referring to FIG. 1, FIG. 1 is a schematic view of the conventional mechanism using GVRP VLAN attribute register is connected to port 1 and port A of the device B device 2, port 1 and port 2 are started GVRP application, from port 1 sent to the port VLAN attribute declaration statement 2 or recovered, when the received VLAN attribute declaration emanating from the port 1 (Join message) port 2, port 2 will register the VLAN attribute declaration contained also about the port was added to VLAN 2; when receiving recovered VLAN attribute declaration emanating from port 1 (Leave message) port 2, port 2 will deregister VLAN attributes included in this declaration, which is about to exit the port VLAN .

[0005]目前,GVRP只支持二层网络,随着跨数据中心的大二层网络技术的发展,GVRP在此类组网中部署已无法满足需要。 [0005] Currently, GVRP only supports Layer 2 network, with the development of large Layer 2 network technologies across data centers, GVRP deployed in such a network has been unable to meet the needs.

[0006] 参见图2,图2是EVI组网示意图,在该图2所示的组网中,站点网络sitel通过边缘设备EDI连接到核心网络,站点网络si te2通过边缘设备ED2连接到核心网络,si te 1中包含交换设备SW-1和SW-2,SW-1新加入用户设备1,且用户设备1被划入一个VLAN100中;site2中包含交换设备SW-3和SW-4,SW-3新加入用户设备2,且用户设备2被划入VLAN100中;sitel和si te2中的所有设备上都启用了GVRP功能。 [0006] Referring to FIG. 2, FIG. 2 is a schematic EVI network, in the network shown in FIG. 2, the site connected to the core network sitel via EDI network edge devices, si te2 site network connected to the core network through the edge device ED2 , si te 1 included in the switching device SW-1 and SW-2, SW-1 newly added user equipment 1 and the user device 1 is included in a VLAN100; site2 switching device included in SW-3 and SW-4, SW - 3 - 2 added user equipment and the user equipment 2 is included in VLAN100; on sitel si te2 all the equipment and all GVRP function is enabled.

[0007]由于用户设备1和用户设备2处于不同的数据中心(站点网络),当GVRP注册报文到达数据中心的边缘设备ED时,边缘设备ED无法将VLAN注册信息发送到对端数据中心上,导致用户设备1和用户设备2之间无法进行VLAN100的数据通信。 [0007] Since the user equipment 1 and the user equipment 2 is in a different data center (site networks), when GVRP registration messages reach the edge device ED of the data center, the edge device ED can not send VLAN registration information to the peer data center , causing the user equipment 1 and the user equipment can not perform data communication between the VLAN100 2.

[0008] 为了解决上述问题,现有通常在站点网络的边缘设备ED上预先进行VLAN配置,对于有新的用户设备加入到站点网络,且新的用户设备被划入新的VLAN (此前该站点网络中不存在属于该VLAN的用户设备)的情况下,则需要采用预留VLAN方式,也即在该站点网络的ED的EVI接口上预先配置这些预留VLAN,例如VLAN100,然而,这会导致在站点网络内没有VLAN100的用户设备的情况下,其他站点的VLAN100的广播报文仍然会泛洪到该站点网络中。 [0008] In order to solve the above problems, conventional VLAN configuration is typically performed in advance on the site network edge device ED, for a new site added to the network the user equipment, and the new user equipment is assigned to the new VLAN (the site previously When the user equipment belonging to this VLAN) does not exist in a network, you need to use the reserved VLAN mode, i.e. VLAN reserved for these pre-configured on the interface ED EVI the network site, e.g. VLANs 100, however, this leads to without the user's device VLAN100 in the site network, the broadcast packets VLAN100 other sites will still be flooded to the site network.

发明内容 SUMMARY

[0009]有鉴于此,本发明的目的在于提供一种动态VLAN属性注册方法和装置,能够实现跨数据中心的动态VLAN属性注册。 [0009] In view of this, an object of the present invention is to provide a dynamic VLAN attribute registration method and apparatus that enable dynamic VLAN attribute registration across data centers.

[0010] 为实现上述目的,本发明提供的技术方案为: [0010] To achieve the above object, the present invention provides the technical solution as follows:

[0011] 一种动态VLAN属性注册方法,应用于以太网虚拟化互联EVI网络中站点网络的边缘设备ED,预先在本ED上配置动态VLAN属性注册功能,该方法包括: [0011] A dynamic VLAN attribute registration method used in Ethernet network edge device ED EVI virtual network site in the network, the dynamic pre-configured VLAN attribute registration function in the present ED, the method comprising:

[0012] 接收来自本ED所在站点内的VLAN属性注册报文,将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能的远端站点的ED对应的出接口发送出去; [0012] VLAN attribute register receives packets from within this site is located ED, the VLAN attribute registration packet carries a VLAN attribute registration information corresponding to the interface for sending the configuration from the ED and dynamic VLAN attribute registration function remote site out;

[0013] 接收远端站点的ED发送的VLAN属性注册信息,根据该VLAN属性注册信息执行接收接口的VLAN属性注册,并生成该VLAN属性注册信息对应的VLAN属性注册报文,将生成的该VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去; [0013] ED VLAN attribute registration information sent from the receiving remote site, according to the VLAN attribute registration reception interface performs the VLAN attribute registration information, and generates the VLAN attribute registration information corresponding to the VLAN attribute registration packet generated for that VLAN attribute registration packets sent from the port VLAN attribute registration function is enabled all out;

[0014] 其中,VLAN属性注册信息包括属性事件和属性取值,所述属性取值为VLAN ID。 [0014] wherein, VLAN attribute registration information includes the event attributes and attribute values, the attribute value of VLAN ID. [0015] 一种动态VLAN属性注册装置,应用于以太网虚拟化互联EVI网络中站点网络的边缘设备,该装置包括:配置单元,收发单元、控制单元; [0015] A dynamic VLAN attribute registration means used in Ethernet virtual network edge device interconnection sites EVI network, the apparatus comprising: a configuration unit, a transceiver unit, a control unit;

[0016] 所述配置单元,用于预先在本ED上配置动态VLAN属性注册功能; [0016] The configuration unit, configured to preconfigure dynamic VLAN attribute registration function in the present ED;

[0017]所述收发单元,用于接收来自本ED所在站点内的VLAN属性注册报文,将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能的远端站点的ED 对应的出接口发送出去;以及用于接收远端站点的ED发送的VLAN属性注册信息,并将该VLAN属性注册信息发送至控制单元; [0017] The transceiver unit is configured to receive packets from VLAN attribute registration site is located within this ED, the VLAN attribute registration packet carries a VLAN attribute registration information from the distal end of the configuration functions dynamic VLAN attribute registration site ED corresponding to the interface for sending out; VLAN attribute registration information ED and transmitting remote site for receiving and transmitting the VLAN attribute registration information to the control unit;

[0018]所述控制单元,用于接收到收发单元发送的VLAN属性注册信息时,根据该VLAN属性注册信息执行接收接口的VLAN属性注册,并生成该VLAN属性注册信息对应的VLAN属性注册报文; [0018] The control unit for when receiving the VLAN attribute registration information sent by the transceiver unit, perform registration according to the reception interface VLAN attribute of the VLAN attribute registration information, and generates the VLAN attribute information corresponding to the registration VLAN attribute registration packets ;

[0019]所述收发单元,还用于将控制单元生成的VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去; [0019] The transceiver unit is further configured to control unit generates the VLAN attribute registration messages sent from the port VLAN attribute register is enabled out all functions;

[0020]其中,所述VLAN属性注册信息包括属性事件和属性取值,所述属性取值为VLAN ID〇 [0020] wherein the VLAN attribute registration information includes attributes and attribute values ​​of the event, the attribute value is a VLAN ID〇

[0021] 综上所述,本发明通过在站点网络的边缘设备上配置动态VLAN属性注册功能,接收到来自站点网络内的属性注册报文,例如GVRP报文后,可以将VLAN属性注册报文中的VLAN属性注册信息发送到配置了动态VLAN属性注册功能的各远端站点的ED,由远端站点的根据该VLAN属性注册信息重新生成VLAN属性注册报文并在远端站点内传播,实现跨数据中心的动态VLAN属性注册。 [0021] In summary, the present invention is configured by a dynamic VLAN attribute registration feature on site network edge device, the received attribute registration messages from a network within a site, for example on GVRP packets may be packets VLAN attribute registration transmitting the registration information to the VLAN attribute configured for each remote site ED dynamic VLAN attribute registration function, regenerated by the VLAN attribute registration information according to the VLAN attribute of the remote site and registration packets propagating within the distal site, to achieve dynamic VLAN attributes across data centers to register.

附图说明 BRIEF DESCRIPTION

[0022]图1是现有技术通用虚拟局域网属性注册协议机制示意图; [0022] FIG. 1 is a schematic of a prior art universal virtual LAN Attribute Registration Protocol mechanism;

[0023] 图2是现有技术以太网虚拟化互联组网示意图; [0023] FIG. 2 is a prior art schematic diagram of an Ethernet network virtual network;

[0024] 图3是本发明实施例动态虚拟局域网属性注册方法流程图; [0024] FIG. 3 is a flowchart of a dynamic VLAN attribute registration method of the present invention;

[0025] 图4是本发明实施例Neighbor TLV示意图; [0025] FIG. 4 is a schematic embodiment of the present invention is Neighbor TLV;

[0026] 图5是本发明实施例VLAN Registration TLV示意图; [0026] FIG. 5 is a schematic VLAN Registration TLV embodiment of the present invention;

[0027]图6是本发明实施例动态虚拟局域网属性注册装置的结构示意图。 [0027] FIG. 6 is a schematic structural diagram of a dynamic virtual local area network attribute registration apparatus according to the present invention.

具体实施方式 detailed description

[0028]为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明所述方案作进一步地详细说明。 [0028] To make the objectives, technical solutions and advantages of the present invention will become more apparent, with reference to the accompanying drawings and the following embodiments, the embodiment of the present invention will be described in further detail.

[0029]本发明实施例中,为了实现跨数据中心的动态VLAN属性注册,对于需要支持跨数据中心的动态VLAN属性注册功能的站点网络,可预先在该站点网络的边缘设备上配置动态VLAN属性注册功能。 [0029] The embodiments of the present invention, in order to achieve dynamic VLAN attribute registration across data centers for the need to support the network of sites dynamic VLAN attribute registration function across data centers may be preconfigured dynamic VLAN attributes on the edges of the device to the site network registration function. 当该站点网络的ED接收到来自该站点网络内的VLAN属性注册报文时, 将VLAN属性注册报文携带的VLAN属性注册信息从配置了动态VLAN属性注册功能的远端站点网络的ED对应的出接口发送出去,最终到达该远端站点网络的ED,由该远端站点网络的ED在接收接口进行VLAN属性注册,并根据该VLAN属性注册信息重新生成VLAN属性注册报文,并在该远端站点网络中进行传播,从而实现跨数据中心的动态VLAN属性注册。 ED site when the network receives from the VLAN attribute within the site registration packet network, the VLAN attribute registration packet carries a VLAN attribute registration information from the remote site network configured ED dynamic VLAN attribute register corresponding to the function an interface to send out the final ED remote site network, a remote site network, the ED register for reception interface VLAN attributes, and attribute register regenerate VLAN packets based on the VLAN attribute registration information, and the distal end stations in this network and thus make dynamic VLAN attribute registration across data centers.

[0030]下面将以EVI的站点网络中,采用GVRP机制来进行站点内VLAN属性注册时,如何通过ED实现跨数据中心(即跨站点网络)的过程,对本发明实施例技术方案进行详细说明。 [0030] The following will EVI site network, when employed GVRP mechanism to the site VLAN attribute register, how to process across data centers (i.e., cross-site network) by ED, of the technical solution of embodiments of the present invention will be described in detail. [0031]参见图3,图3是本发明实施例动态虚拟局域网属性注册方法流程图,该方法应用于EVI网络中站点网络的边缘设备ED,主要包括以下步骤: [0031] Referring to FIG. 3, FIG. 3 is a Virtual Local Area Network attribute dynamic registration method flowchart of embodiments of the present invention, the method is applied in the edge device ED EVI site network of networks, including the steps of:

[0032] 步骤3〇1、预先在本ED上配置动态VLAN属性注册功能。 [0032] Step 3〇1 preconfigured dynamic VLAN attribute registration function in the present ED.

[0033]以图2为例,对于站点网络si tel,在EDI中配置动态VLAN属性注册功能;对于站点网络si te2,在H)2中配置动态VLAN属性注册功能。 [0033] In FIG. 2, for example, for the network site si tel, dynamic VLAN attribute configuration function in the EDI register; site network for si te2, in H) disposed in two dynamic VLAN attribute registration function.

[0034]其中,ED上配置动态VLAN属性注册功能,表明该ED支持在站点网络之间进行VLAN 属性注册。 [0034] where the ED configure dynamic VLAN attribute registration function, indicating that the ED supports VLAN properties registered in the network between sites.

[0035]步骤3〇2、接收来自本ED所在站点网络内的VLAN属性注册报文,将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能的远端站点的ED对应的出接口发送出去。 [0035] Step 3〇2 received VLAN attributes from the site where the present ED network registration packet the VLAN attribute registration packet carries a VLAN attribute registration and configuration information from a remote site dynamic VLAN attribute registration functions ED corresponding interface for sending out.

[0036]远端站点的ED对应的出接口为EVI接口,也即本ED上与远端站点的ED之间建立的EVI link上的接口。 [0036] ED remote site of the interface corresponding to the interfaces EVI EVI link interface, i.e. the present ED ED is established between the distal end of the site.

[0037]这里的VLAN属性注册报文,就是指采用G VRP机制的G VRP报文,GVRP可以实现VLAN 的动态配置,是基于GARP工作机制的一种应用。 [0037] Here VLAN attribute registration packet using G VRP refers mechanism G VRP packets GVRP can dynamically configure a VLAN, it is based on a mechanism of GARP application.

[0038]其中,用于GARP应用实体之间的信息交换,可包括有三类报文(也称为消息),分别为声明(Join)消息、注销(Leave)消息和注销所有属性(LeaveAll)消息。 [0038] wherein, for exchanging information between GARP participant, it may include three types of packets (also referred to as a message), respectively Statement (the Join) message, cancellation (the Leave) message and deregister all attributes (the LeaveAll) message . 其中, among them,

[0039] Join消息,分为声明未注册属性(JoinEmpty)和声明未注册属性(Join In)两种,区别为:JoinEmpty表示声明一个本身没有注册的属性,】〇111111表示声明一个本身已经注册的属性。 [0039] Join message, the statement into unregistered attributes (JoinEmpty) and declare unregistered attributes (Join In) are two, the difference is: JoinEmpty statement indicates a property itself is not registered, 〇111111] represents a statement itself registered Attributes. 当一个GARP应用实体希望其它设备注册自己的属性信息时,它将对外发送Join消息; 当收到其它实体的Join消息或本设备静态配置了某些属性,需要其它GARP应用实体进行注册时,它也会向外发送Join消息。 When a GARP participant expects other devices to register its attributes, it sends Join messages; when the received message or other entities Join this device statically configured certain attributes, other GARP participants need to register it It will send Join messages.

[0040] Leave消息分为注销未注册属性(LeaveEmpty)和注销已注册属性(Leaveln)两种, 区别为:LeaVeEmpty表示注销一个本身没有注册的属性,Leaveln表示注销一个本身已经注册的属性。 [0040] Leave a message into cancellation of unregistered property (LeaveEmpty) and cancellation of the registered property (Leaveln) are two, the difference is: LeaVeEmpty represents a write-off does not have registered property, Leaveln represents a write-off of property itself has been registered. 当一个GARP应用实体希望其它设备注销自己的属性信息时,它将对外发送Leave 消息;当收到其它实体的Leave消息注销某些属性或静态注销了某些属性后,它也会向外发送Leave消息。 When a GARP participant expects other devices to deregister its attributes, it sends Leave messages; when the entity receives Leave messages from other write-offs of certain properties or cancellation of some static properties, it also sends out Leave news.

[0041] 注销所有属性(LeaveAl 1)消息,用来注销所有的属性,以使其它GARP应用实体重新注册本实体上所有的属性信息,以此来周期性地清除网络中的垃圾属性(例如某个属性已经被删除,但由于设备突然断电,并没有发送Leave消息来通知其他实体注销此属性)。 [0041] deregister all attributes (LeaveAl 1) message to deregister all attributes, so that other GARP entities re-register all the attribute information on this entity in order to periodically garbage properties of the network (e.g. a attributes have been deleted, but the device suddenly loses power, and did not send Leave message to inform other entities cancellation of this property). 每个GARP应用实体启动后,将同时启动LeaveAll定时器,当该定时器超时后GARP应用实体将对外发送LeaveAl 1消息。 After each GARP participant is enabled, the timer starts the LeaveAll, GARP application entity will send LeaveAl 1 message when the timer expires.

[0042]在本发明实施例中,VLAN属性注册报文是GVRP报文的情况下,所述的VLAN属性注册信息具体可包括属性事件和属性取值,其中属性事件可为注销所有属性(LeaveAll)事件、声明己注册属性(Joinln)事件、声明未注册属性(JoinEmpty)事件、注销己注册属性(Leaveln)事件、或注销未注册属性(LeaveEmpty)事件,属性取值为VLAN标识(ID)。 [0042] In an embodiment of the present invention, packets are VLAN attribute registration packet GVRP case, the VLAN attribute registration information may include specific attributes and attribute values ​​of the event, wherein the event attributes may deregister all attributes (the LeaveAll ) event, the statement of registered properties (Joinln) event, declared unregistered property (JoinEmpty) events, cancellation of registered properties (Leaveln) event, or cancellation of unregistered property (LeaveEmpty) event, the property value of the VLAN identifier (ID). 当然,对于采用其它属性注册报文时,也可有相同或类似的属性注册信息。 Of course, other attributes respect to the register for packets, may have the same or similar attribute registration information.

[0043]步骤303、接收远端站点的ED发送的VLAN属性注册信息,执行接收接口的VLAN属性注册,生成该VLAN属性注册信息对应的VLAN属性注册报文,并将生成的VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去。 [0043] Step 303, the received VLAN attribute registration information sent from the remote site ED performed VLAN attribute registration receiving interface generates the VLAN attribute registration VLAN attribute information corresponding to the register message, and transmits the generated packets VLAN attribute register from port to send VLAN attribute registration function is enabled all out.

[0044] 配置了动态VLAN注册功能的远端站点网络的ED接收到来自远端站点网络内的VLAN属性注册报文时,也同样会将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN注册功能的其它站点网络的ED对应的出接口发送出去。 When the VLAN attribute registration from the distal site within the packet network, the packet will also register the VLAN attribute carried VLAN attribute registration information ED [0044] dynamic VLAN registration function configured remote site is received from the network, and ED is configured for dynamic VLAN registration function corresponding to other sites of the network interface for sending out.

[0045] 本地站点的ED或远端站点的M接收到其它站点发送的VLAN属性注册信息后,通过生成对应的VLAN属性注册报文,并通过其它端口发送出去,这样就可以使得各站点网络内的设备,如图2中的SW— 1、81—2、3化一3、8¥—4均可在其上的端口注册¥1^^属性,以确保该VLAN内的报文可在站点网络内,以及站点网络之间进行传输。 After [0045] M ED remote site or local site receives a VLAN attribute registration information transmitted from other stations, the corresponding VLAN attribute by generating a registration packet and sent through the other ports, so that the site can be made within the network the apparatus, as shown in FIG. 2 1,81-2,3 SW- of a 3,8 ¥ -4 properties can ¥ 1 ^^ its port on the registration, to ensure that in the VLAN packet may be site transferred between the network and the network site.

[0046] 本步骤中,本ED接收到远端站点的ED发送的VLAN属性注册信息后,需要执行接收接口(接收该VLAN属性注册信息的接口)的VLAN属性注册,这样,该接收接口才会对该VLAN 的报文进行处理。 [0046] In this step, after receiving the remote site present ED VLAN attribute registration information ED is transmitted, needs to perform reception interface (VLAN attribute receives the registration information interface) VLAN attribute registration so that only the receiving interface processing the packet VLAN. 其中,接收到的VLAN属性注册信息中属性事件的不同,根据该VLAN属性注册信息执行接收接口的VLAN属性注册的方法也不相同,具体为: Wherein the different VLAN attributes of the received registration information in the property of the event, according to the properties to perform a VLAN interface receives the VLAN attribute registration information registration is not the same, specifically:

[0047] 如果该VLAN属性注册信息中属性事件为LeaveAl 1事件,则在该接收接口上注销所有VLAN属性; [0047] If the attribute information of VLAN attribute registration event LeaveAl 1 event, the cancellation of all VLAN attributes on the receiving interface;

[0048] 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则在该接收接口上注册该VLAN属性注册信息中属性取值包括的所有VLAN; [0048] If the attribute information of VLAN attribute registration event or events Joinln JoinEmpty event, the registration of the property on the receiving VLAN interface registration information included in the attribute values ​​of all VLAN;

[0049] 如果该VLAN属性注册信息中属性事件为Leave In事件或LeaveEmpty事件,则在该接收接口上注销该VLAN属性注册信息中属性取值包括的所有VLAN。 [0049] If the VLAN attribute registration information for the event attribute Leave In LeaveEmpty event or events, it will deregister all VLAN registration information of the VLAN attribute property values ​​included in the reception interface.

[0050] 本步骤中,本ED接收到远端站点的ED发送的VLAN属性注册信息后,还可根据该VLAN属性注册信息修改本地的EVI扩展VLAN,这样,本ED就可以基于该扩展VLAN,学习到对应的MAC地址,以有效将VLAN内的报文准确转发到相应的设备端口。 After the VLAN attribute transmitted registration information ED [0050] In this step, the ED of the received remote site, may be modified according to the local VLAN attribute registration information EVI extended VLAN, so that the present ED can be extended based on the VLAN, corresponding to the MAC address learning, effective in the VLAN packets forwarded to the appropriate device port accurate. 即本地EVI扩展VLAN是为了限制同步到远端站点的MAC地址,只有在ED的本地EVI扩展VLAN所包括的各VLAN内学习到的MAC地址才允许被同步到远端站点。 I.e. local EVI extended VLAN to limit to synchronize the MAC address of the remote site, allowed to remote sites is synchronized to extend only within each VLAN learned VLAN MAC address included in the local EVI ED.

[0051]其中,接收到的VLAN属性注册信息中属性事件的不同,根据该VLAN属性注册信息修改本地的EVI扩展VLAN的方法也不相同,具体为: [0051] wherein, on the incoming VLAN attributes property of the event registration information, the registration information based on the VLAN attribute modification method EVI local extended VLAN is not the same, specifically:

[0052] 如果该VLAN属性注册信息中属性事件为Lea veAl 1事件,则清除本地的EVI扩展VLAN中的所有动态VLAN; [0052] If the VLAN attribute registration information in the properties of the event is Lea veAl 1 event, clear the local EVI extension of all dynamic VLAN VLAN;

[0053] 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN加入到本地的EVI扩展VLAN中; [0053] If the attribute information of VLAN attribute registration event or events Joinln JoinEmpty event, then the VLAN attribute registration information included in the attribute value is added to all the local VLAN EVI in the extended VLAN;

[00M] 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN从本地的EVI扩展VLAN中清除。 [00M] If the VLAN attribute registration information in the properties of the event is Leaveln event or LeaveEmpty event, then the VLAN attribute registration information included in property values ​​all VLAN removed from the local EVI extension VLAN.

[0055] 需要说明的是,在该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件的情况下,该VLAN属性注册信息中属性取值包括的所有VLAN是作为动态VLAN加入到本地的EVI扩展VLAN中的。 [0055] Incidentally, for the next event or circumstance Joinln JoinEmpty event registration information in the VLAN attribute value of the attribute included in the attribute information of VLAN attribute registration of all events as a dynamic VLAN is added to the local VLAN extended EVI VLAN. 对于ED中预先配置的VLAN,本实施例不需要做特别处理。 For ED preconfigured VLAN, the present embodiment do not require special treatment.

[0056] 本实施例中,VLAN属性注册报文是指采用了通用VLAN属性注册协议(GVRP)的报文,ED生成VLAN属性注册信息对应的VLAN属性注册报文的方法具体可为:生成一GVRP报文, 将该VLAN属性注册信息中的属性事件填入该GVRP报文的属性事件字段中,将该VLAN属性注册信息中的属性取值填入该GVRP报文的属性取值字段中。 Method [0056] In this embodiment, VLAN attribute registration message refers to the use of the Generic VLAN Attribute Registration Protocol (GVRP) packets, ED generates a VLAN attribute registration information corresponding to the VLAN attribute register messages may specifically be: generating a GVRP packets, the properties of the event VLAN attribute registration information filled in the GVRP packet property of the event field, the value of the property VLAN attribute registration information to fill the GVRP packets value of the property field. 这样,ED可将远端站点的发送的VLAN属性注册信息,以GVRP报文方式,在本站点内按照正常GVRP机制来进行VLAN属性注册。 Thus, ED VLAN attribute registration information may be transmitted to the remote site to GVRP packet mode, in the site registration is performed in accordance with normal VLAN attribute GVRP mechanism. [0057]图3所示本发明实施例中,为了在接收到站点内的GVRP报文后,可以将GVRP报文携带的VLAN属性注册信息通告到配置了动态VLAN注册功能的远端站点,需要获知配置了动态VLAN注册功能的远端站点的ED对应的出接口,获知方法可以有以下两种: [0057] Figure 3 shows a remote site embodiment of the present invention, the attribute registration information for VLAN advertisement after receiving GVRP packets in the site, GVRP packets can be arranged to carry the dynamic VLAN registration function requires Configuring the known dynamic VLAN registration function ED corresponding to the remote site interfaces, known methods may have the following two:

[0058]第一种:在配置了动态VLAN注册功能的各站点的ED上预先配置或存储其它配置了动态VLAN注册功能的站点的ED,这样,根据本地ED上存储的其它远端站点的ED,就可以获得本站点的ED上配置了动态VLAN注册功能的远端站点网络的ED对应的出接口。 [0058] The first: preconfigured or other storage sites are arranged ED dynamic VLAN registration feature such that in the ED register is configured for dynamic VLAN function of each station, according to other remote sites on the local storage of ED ED , can be obtained on site is arranged ED ED site network dynamic VLAN registration function corresponding to the interface.

[0059]第二种:配置了动态VLAN注册功能的站点网络的ED之间进行动态VLAN注册功能通告,在通告过程中获知远端站点的ED对应的出接口。 [0059] The second: ED site network between dynamic VLAN registration function is configured for dynamic VLAN advertisement registration function, the remote site is known ED corresponding to an interface announcement process.

[0060]具体地,在某一站点网络的ED上配置了动态VLAN注册功能之后,可以向远端站点网络的ED发送携带动态VLAN属性注册标记的Hello报文(也可以其它EVI IS-IS协议报文), 同时也接收远端站点网络的ED发送的携带动态VLAN属性注册标记的Hello报文,当接收到某一远端站点网络的ED发送的携带动态VLAN属性注册标记的Hello报文时,可以确定该远端站点网络的m)配置了动态VLAN属性注册功能,因此将接收该Hello报文的端口记录为该远端站点网络的对应的出接口。 After [0060] Specifically, a site on the network configuration ED dynamic VLAN registration function may send a remote site network carrying ED dynamic VLAN attribute registration marks Hello packet (may be other EVI IS-IS protocol Hello packets packet time), while also receiving site network carrying dynamic VLAN attribute registration marks ED Hello packets sent, when carrying dynamic VLAN attributes receives a remote site network registration marks transmitted ED can be determined that the remote site network m) is configured for dynamic VLAN attribute registration function, so the received outbound interface port the Hello message record for the site network.

[0061]例如在图2中,EDI上配置了动态VLAN属性注册功能后,向ED2发送携带动态VLAN属性注册标记的Hello报文;ED2上配置了动态VLAN属性注册功能后,向EDI发送携带动态VLAN 属性注册标记的Hello报文。 After [0061] For example, in FIG. 2, dynamic VLAN attribute registration function EDI configured, sends ED2 carrying dynamic VLAN attribute registration marks Hello packets; after dynamic VLAN attribute registration function configured on ED2, sends EDI carrying dynamic VLAN attribute registration mark of Hello packets. 其中,EDI接收到ED2发送的携带动态VLAN属性注册标记的Hello报文后,会将接收该Hello报文的EVI接口记录为ED2对应的出接口。 After which, EDI carrying received dynamic VLAN attribute registration marks ED2 Hello packets sent will receives the Hello packet is recorded as an interface EVI ED2 outbound interface. 同样,ED2接收到EDI发送的携带动态VLAN属性注册标记的Hello报文后,会将接收该Hello报文的EVI接口记录为EDI对应的出接口。 After Similarly, the carrying of ED2 received dynamic VLAN attribute registration marks Hello packets sent EDI, will receive this Hello packet EVI EDI interface record corresponding to the interfaces.

[0062] 需要说明的是,由于图2中仅有两个站点网络:sitel和site2,因此sitel中的EDI 和site2中的ED2仅向对方发送携带动态VLAN属性注册标记的Hello报文,如果图2中还存在其它站点网络,则EDI和ED2均需向其它站点网络的ED发送携带动态VLAN属性注册标记的Hello报文,如果其它站点网络的ED配置了动态VLAN属性注册功能,也同样需要向EDI、ED2 发送携带动态VLAN属性注册标记的Hello报文。 [0062] Incidentally, in FIG. 2 since only two sites network: sitel and site2, EDI and thus the Sitel site2 ED2 in transmitting only dynamic VLAN attribute to the other carrying registration marks Hello packets, if FIG. 2 there are other sites in the network, EDI and ED ED2 are required to send to the other network sites carrying dynamic VLAN attribute registration mark of Hello packets, if other sites ED network configurations dynamic VLAN attribute registration function, also need to EDI, ED2 can transmit a dynamic VLAN attribute registration mark of Hello packets.

[0063] 本实施例中,可以通过在Hello报文中增加一个Neighbor TLV,用该Neighbor TLV 来携带动态VLAN属性注册标记。 [0063] In this embodiment, by increasing a Neighbor TLV in Hello message, using the Neighbor TLV to carry the dynamic VLAN attribute registration marks. 例如图4所示的本发明实施例Neighbor TLV示意图,其中, [0064] Type字段占用1字节,取值0x91,表明是Neighbor TLV; Example Neighbor TLV schematic example embodiment of the present invention shown in FIG. 4, wherein, [0064] Type field occupies 1 byte value 0x91, indicates this is Neighbor TLV;

[0065] Length字段占用1字节,其取值为Value字段的长度; [0065] Length field occupies one byte, its value is the length of the Value field;

[0066] Value字段中则包括:标示存在最小邻居的Exist Smallest Neighbor字段,占用1 比特;标不存在最大邻居的Exist Lagest Neighbor字段,占用1比特;VLAN Registration 字段(也即动态VLAN属性注册标记字段),占用1 bit,取值为1,表示支持动态VLAN属性注册, 取值为0表示不支持动态VLAN属性注册;保留(Resv)字段,占用4比特;Neighbor records字段,其中包括fault bit、Resv、MTU、MAC地址几个字段。 [0066] Value field, the comprising: Flag Exist Smallest Neighbor field there is minimal neighbors occupies 1 bit; standard maximum neighbor Exist Lagest Neighbor field is absent, occupies one bit; VLAN Registration field (i.e. dynamic VLAN attribute registration tag field ), occupies 1 'bit, the value 1, register support dynamic VLAN attribute value of 0 indicates no support dynamic VLAN attribute registration; retention (the Resv) field occupies 4 bits; Neighbor records field, including fault bit, Resv , MTU, MAC address several fields. Value字段中,ExistSmallest Neighbor字段和Exist Lagest Neighbor字段主要用于Hello报文分片。 Value field, ExistSmallest Neighbor field and is mainly used in the field Exist Lagest Neighbor Hello packet fragmentation.

[0067]图3所示本发明实施例中,VLAN属性注册信息的发送也可以利用Hello报文实现。 Embodiment, transmits the VLAN attribute registration information may also be implemented using Hello messages [0067] The present invention shown in FIG. 具体地,可以通过在Hello报文中增加VLAN Registration TLV,在该VLAN Registration TLV中填入GVRP报文携带的VLAN属性注册信息,通过发送携带VLAN Registration TLV的Hello报文来实现GVRP报文携带的VLAN属性注册信息的发送。 Specifically, by increasing the VLAN Registration TLV Hello packet, fill in the VLAN attribute registration information GVRP packets carried in the VLAN Registration TLV, GVRP is achieved by transmitting packets carrying the carried VLAN Registration TLV Hello packet VLAN attribute registration send information. 例如图5所示的本发明实施例VLAN Registration TLV不意图,其中, Example VLAN Registration example embodiment of the present invention shown in FIG. 5 TLV is not intended, wherein,

[0068] Type字段占用1 字节,取值0x96,表明是VLAN Registration TLV; [0068] Type field occupies 1 byte value 0x96, indicate a VLAN Registration TLV;

[0069] Length字段占用1字节,其取值为Value字段的长度; [0069] Length field occupies one byte, its value is the length of the Value field;

[0070] Value字段中则包括:标不是否为最小VLAN的S字段,占用1比特;标不是否为最大VLAN的L字段,占用1比特;Resv字段,占用5bit; VLAN属性注册信息(Attribute sub-TLV)字段。 [0070] Value field, the comprising: a label does not is the minimum the VLAN S field occupies 1 bit; mark is not whether the maximum VLAN of the L field, occupies 1 bit; the Resv field, occupied 5bit; VLAN attribute registration information (Attribute sub -TLV) field.

[0071]该Value字段中,S字段和L字段用于Hello报文分片。 [0071] The Value field, S, and L field to field Hello packet fragmentation. VLAN属性注册信息字段也是一个TLV,该TLV的type字段占用1字节,其中存放VLAN属性注册信息中的属性事件对应的标记值,共有5种取值,每种取值代表一种属性事件,例如:0x00表示LeaveAl 1事件,0x01表示JoinEmpty 事件,Ox〇2 表示Joinln 事件,Ox〇3 表示LeaveEmpty 事件,0x04 表示Leaveln 事件; 该TLV的Length字段占用1字节,取值为该TLV的Value字段的长度;该TLV的Value字段中存放VLAN属性注册信息中的属性取值(VLAN ID);当该TLV中Type字段的值为LeaveAll事件对应的标记值0x00时,该TLV中的Value字段无效。 VLAN attribute registration information is a TLV field, this TLV type field occupies one byte, wherein the properties of the event registration information stored in the VLAN attribute corresponding tag value, a total of five kinds of values, each value represents a property of the event, for example: 0x00 indicates LeaveAl 1 event, 0x01 represents JoinEmpty event, event Ox〇2 represents Joinln, Ox〇3 represents LeaveEmpty event, 0x04 represents Leaveln event; the Length fields of the TLV occupies 1 byte, the value for the TLV Value field length; the value field of the TLV of stored property values ​​(VLAN ID) VLAN attribute registration information; 0x00 when this value is the TLV tag is LeaveAll Type field corresponding to the event, value field of the TLV is invalid.

[0072]图3所示本发明实施例中,上述的步骤3〇2和步骤303可不分先后顺序。 [0072] The embodiments of the present invention shown in FIG. 3 embodiment, the above-described step 303 and the steps may be 3〇2 regardless of the order.

[0073]上述本发明方法实施例中,仅以EVI网络的站点网络中,以GVRP机制来进行VLAN属性注册时,站点网络中的ED如何进行跨站点网络间的动态VALN属性注册,本领域技术人员可以理解,实际应用中,若网络站点采用其它属性注册,其同样可以通过ED实现跨网络站点的动态VALN属性注册,其具体实现过程与采用GVRP机制类似,只是具体的VLAN属性注册报文的格式不同,或具体实现过程会有所不同,对此本发明实施例并不做特别限制。 [0073] The method of the present invention, the above-described embodiment, only network EVI site network, when to GVRP mechanism to register VLAN attribute, the network site ED VALN how dynamic attribute registration between sites across the network, those skilled in the will appreciate that practical applications, if the network sites using other properties registered, it can also be dynamic VALN property registration across the network location by ED, the specific implementation process and the use of GVRP mechanism similar, but specific VLAN attribute registration packets different formats, or specific implementation will vary, this embodiment of the present invention do not particularly limited.

[0074]以上对本发明实施例动态VLAN属性注册方法进行了详细说明,本发明还提供了一种动态VLAN属性注册装置,下面结合图6进行说明。 [0074] The above embodiment dynamic VLAN attribute registration method described in detail embodiments of the present invention, the present invention also provides a dynamic VLAN attribute registration apparatus will be described below in connection with FIG.

[0075] 参见图6,图6是本发明实施例动态虚拟局域网属性注册装置的结构示意图,该装置,应用于EVI网络中站点网络的ED,如图6所示,该装置包括:配置单元601,收发单元60 2、 控制单元603;其中, [0075] Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a dynamic virtual local area network device attribute registration of the embodiment of the present invention, the apparatus is applied to ED EVI site network in the network shown in Figure 6, the apparatus comprising: a configuring unit 601 transceiver unit 602, the control unit 603; wherein,

[0076] 配置单元601,用于预先在本上配置动态VLAN属性注册功能; [0076] configuring unit 601, configured to preconfigure dynamic VLAN attribute registration function in the present;

[0077]收发单元602,用于接收到来自本ED所在站点内的VLAN属性注册报文时,将该VLAN 属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能远端站点的ED 对应的出接口发送出去;用于接收远端站点的发送的VLAN属性注册信息; [0077] The transceiver unit 602 for receiving packets from a VLAN attribute registration site is located within this ED, the VLAN attribute registration packet carries a VLAN attribute registration and configuration information from the dynamic VLAN attribute registration function remote site ED corresponding to the interface for sending out; VLAN attribute registration information transmitted for reception of the remote site;

[0078] 控制单元603,用于收发单元602接收到远端站点的ED发送的VLAN属性注册信息时,根据该VLAN属性注册信息执行接收接口的VLAN属性注册,并生成该VLAN属性注册信息对应的VLAN属性注册报文; When the [0078] control unit 603, a transceiving unit 602 receives the transmitted VLAN attribute registration information ED remote site, according to the received VLAN interface properties to perform the registration information registration VLAN attribute, and generates the VLAN attribute information corresponding to the registration VLAN attribute registration packets;

[0079] 收发单元602,还用于将控制单元603生成的VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去; [0079] The transceiver unit 602 is further configured to control the VLAN attribute register unit 603 generates the packets sent from the port VLAN attribute register is enabled out of all;

[0080] 其中,所述VLAN属性注册信息包括属性事件和属性取值,所述属性取值为VLAN ID〇 [0080] wherein the VLAN attribute registration information includes attributes and attribute values ​​of the event, the attribute value is a VLAN ID〇

[0081] 本实施例装置可以部署在站点网络中,作为ED,从而可实现不同站点网络之间的VLAN属性注册中,其具体实现可参见上述本发明方法实施例的说明。 Means Example [0081] This embodiment can be deployed in a network site, as the ED, which can realize VLAN attribute registration among different sites in the network, the specific implementation can refer to the method of the present invention, description of the embodiments.

[0082] 上述图6所示的装置中,所述配置单元601,还可用于预先在本ED中存储配置了动态VLAN属性注册功能的远端站点的ED; 6 apparatus shown in [0082] the above figures, the configuration unit 601, may also be used in the present pre-configured ED ED stores dynamic VLAN attribute registration function distal site;

[0083]或者, [0083] Alternatively,

[0084] 所述收发单元602,进一步用于在配置单元601在本ED上配置动态VLAN属性注册功能之后,向远端站点的ED发送携带动态VLAN属性注册标记的Hello报文;以及,接收远端站点的ED发送的携带动态VLAN属性注册标记的Hello报文; After [0084] The transceiver unit 602 is further configured to dynamically configure the VLAN attribute registration functionality present on the ED configuring unit 601, an ED transmitted to the remote station carries dynamic VLAN attribute registration marks Hello packets; and receiving far carrying dynamic VLAN attribute registration tag ED Hello packets sent by end station;

[0085]所述控制单元603,还用于收发单元602接收到远端站点的ED发送的携带动态VLAN 属性注册标记的Hel 1〇报文时,确定该远端站点的ED配置了动态VLAN属性注册功能,将接收接口记录为该远端站点的ED对应的出接口。 When [0085] the control unit 603, further for transmitting and receiving unit 602 receives the dynamic VLAN attribute ED carrying the remote site transmitted registration marks Hel 1〇 packet, the remote site is determined ED dynamic VLAN attribute configured registration function, the reception interface of the recording ED remote site for the corresponding outgoing interface.

[0086]上述图6所示的装置中,所述控制单元603,还可用于收发单元602接收到远端站点的发送的VLAN属性注册信息之后,根据该VLAN属性注册信息修改本地的EVI扩展VLAN; [0087]其中,收发单元6 0 2从远端站点接收到的VLAN属性注册信息中属性事件为LeaveAl 1 事件、Joinln 事件、JoinEmpty 事件、Leaveln 事件、或LeaveEmpty 事件; After the apparatus shown in [0086] the above-described FIG. 6, the control unit 603, can be used for the transceiver unit 602 receives the VLAN attribute registration information transmitted remote site, the local modified EVI extended VLAN based on the VLAN attribute registration information ; [0087] wherein the transceiver unit 602 receives from the remote site to the attribute information of the VLAN attribute registration event LeaveAl 1 event, Joinln event, JoinEmpty event, Leaveln event, event or LeaveEmpty;

[0088]所述控制单元603在根据该VLAN属性注册信息修改本地的EVI扩展VLAN时,用于: [0089] 如果该VLAN属性注册信息中属性事件为LeaveAll事件,则清空本地的EVI扩展VLAN; [0088] The control unit 603 when the local modified EVI extended VLAN based on the VLAN attribute registration information for: [0089] If the VLAN attribute registration information for the event attribute LeaveAll event EVI then emptied local extended VLAN;

[0090]如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN加入到本地的EVI扩展VLAN中; 1 ]如果该VLAN属性注册彳目息中属性事件为Leave In事件或LeaveEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN从本地的EVI扩展VLAN中清除。 [0090] If the attribute information of VLAN attribute registration event or events Joinln JoinEmpty event, then the VLAN attribute property values ​​of all the registered information comprises the VLAN is added to the local EVI extended VLAN; 1] If the VLAN attribute registration left foot attribute information entry event or events LeaveEmpty Leave in the event, then the VLAN attribute property values ​​of all the registered information comprises the VLAN extended VLAN from a local EVI cleared.

[0092]上述图6所示的装置中,所述的收发单元6〇2从远端站点的ED接收到的VLAN属性注册信息中属性事件为LeaveAll事件、_1〇丨11111事件、知111£即17事件、1^&¥6111事件、或LeaveEmpty事件; 6 apparatus shown in [0092] FIG above, the transceiver unit 6〇2 received from the remote site to the ED VLAN attribute information of the attribute registration event LeaveAll event, Shu _1〇 11111 events, i.e., known £ 111 17 event, 1 ^ & amp; ¥ 6111 event, or LeaveEmpty events;

[0093]所述控制单元603在根据该VLAN属性注册信息执行接收接口的VLAN属性注册时, 具体可用于: [0093] When the control unit 603 performs VLAN attribute registration in accordance with the receive interface VLAN attribute registration information, can be specifically configured to:

[0094] 如果该VLAN属性注册信息中属性事件为LeaveAll事件,则在该接收接口上注销所有VLAN属性; [0094] LeaveAll event if the VLAN attribute registration information for the properties of the event, the cancellation of all VLAN properties on the receiving interface;

[0095] 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则在该接收接口上注册该VLAN属性注册信息中属性取值包括的所有VLAN; [0095] If the attribute information of VLAN attribute registration event or events Joinln JoinEmpty event, the registration of the property on the receiving VLAN interface registration information included in the attribute values ​​of all VLAN;

[0096] 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则在该接收接口上注销该VLAN属性注册信息中属性取值包括的所有VLAN。 [0096] If the VLAN attribute registration information in the properties of the event is Leaveln event or LeaveEmpty event, the cancellation of all VLAN The VLAN attribute registration information included in property values ​​on the receiving interface.

[0097] 上述图6所示的装置中,所述VLAN属性注册报文具体可为采用通用VLAN属性注册协议GVRP的报文; Apparatus shown in FIG. 6 above [0097] in the VLAN attribute registration message packet may specifically be employed for the Generic VLAN Registration Protocol attribute of GVRP;

[0098] 所述控制单元603在生成该VLAN属性注册信息对应的VLAN属性注册报文时,用于: 生成一GVRP报文,将该VLAN属性注册信息中的属性事件填入该GVRP报文的属性事件字段中,将该VLAN属性注册信息中的属性取值填入该GVRP报文的属性取值字段中。 [0098] When the control unit 603 generates the VLAN attribute registration information corresponding to the VLAN attribute registration packet for: generating a GVRP packet, the VLAN attributes property of the event registration information packets filling the GVRP attribute event field, the value of the property VLAN attribute registration information to fill the GVRP packets value of the property field.

[0099] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0099] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

Claims (10)

  1. 1. 一种动态虚拟局域网VLAN属性注册方法,应用于以太网虚拟化互联EVI网络中站点网络的边缘设备,其特征在于,预先在本ED上配置动态VLAN属性注册功能,使得本ED支持在站点网络之间进行VLAN属性注册;该方法包括: 接收来自本ED所在站点内的VLAN属性注册报文,将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能的远端站点的ED对应的出接口发送出去;所述远端站点的对应的出接口为本上与远端站点的之间建立的EVI link上的接口; 接收远端站点的ED发送的VLAN属性注册信息,根据该VLAN属性注册信息执行接收该VLAN属性注册信息的接口的VLAN属性注册,并生成该VLAN属性注册信息对应的VLAN属性注册报文,将生成的该VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去; 其中,VLAN属性注册信息包括属性事件和属性取值,所述 1. A dynamic attribute a VLAN registration method used in Ethernet network edge device EVI virtual network stations in the network, wherein the preconfigured dynamic VLAN attribute registration function ED in the present, so that this support site ED VLAN attribute registration performed between networks; the method comprising: receiving a packet from a VLAN attribute registration site is located within this ED, the VLAN attribute registration packets VLAN attribute registration information packets carried away from the dynamic configuration of the VLAN attribute registration function ED end corresponding to the site interface for sending out; the site corresponding to the distal end of the outgoing interface on an interface EVI link established between the remote sites and present; the VLAN attribute registered to receive remote site transmitted ED information, perform receiving the VLAN attribute registration information based on the VLAN attribute registration information VLAN attribute registration interface, and generates the VLAN attribute registration information corresponding to the VLAN attribute registration packet generated in the VLAN attribute registration messages from the enabled VLAN attribute registration function to send out all ports; wherein, VLAN attribute registration information includes attributes and attribute values ​​of the event, the 性取值为VLAN ID。 Of the value of VLAN ID.
  2. 2. 根据权利要求1所述的方法,其特征在于,还包括: 预先在本ED中存储配置了动态VLAN属性注册功能的远端站点的ED; 或者, 在本ED上配置动态VLAN属性注册功能之后,进一步包括: 向远端站点的ED发送携带动态VLAN属性注册标记的Hello报文; 以及,接收到远端站点的ED发送的携带动态VLAN属性注册标记的Hel 1〇报文时,确定该远端站点的ED配置了动态VLAN属性注册功能,将接收接口记录为该远端站点的ED对应的出接口。 The method according to claim 1, characterized by further comprising: previously stored configuration present in the ED ED remote site dynamic VLAN attribute registration function; Alternatively, the configuration register dynamic VLAN attribute functions on this ED Thereafter, further comprising: transmitting to a remote site ED carrying the dynamic VLAN attribute registration marks Hello packets; and a remote site received dynamic VLAN attribute ED carrying registration marks sent Hel 1〇 packet, it is determined that the ED remote site is configured for dynamic VLAN attribute registration function receives a remote site interface record corresponding to the interfaces for ED.
  3. 3. 根据权利要求1所述的方法,其特征在于,所述接收远端站点的ED发送的VLAN属性注册信息之后,还包括: 根据该VLAN属性注册信息修改本地的EVI扩展VLAN; 其中,从远端站点接收到的VLAN属性注册信息中属性事件为注销所有属性LeaveAll事件、声明已注册属性Joinln事件、声明未注册属性JoinEmpty事件、注销已注册属性Leaveln 事件、或注销未注册属性LeaveEmpty事件; 所述根据该VLAN属性注册信息修改本地的EVI扩展VLAN的方法为: 如果该VLAN属性注册信息中属性事件为LeaveAll事件,则清除本地的EVI扩展VLAN中的所有动态VLAN; 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN作为动态VLAN加入到本地的EVI扩展VLAN中; 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则将该VLAN 属性注册信息中属性取 3. The method according to claim 1, wherein, after receiving the remote site ED transmitted VLAN attribute registration information, further comprising: modifying the local EVI extended VLAN based on the VLAN attribute registration information; wherein, from the remote site received VLAN attribute registration information for the cancellation of all the properties of the event properties LeaveAll event, declare the registered property Joinln event, to declare properties JoinEmpty event is not registered, the registered property Leaveln cancellation of the event, or remove the attribute LeaveEmpty event is not registered; the described later based on the VLAN attribute registration information modification method of the local EVI extended VLAN is: if the VLAN attribute registration information attribute event LeaveAll event clears all dynamic VLAN local EVI extended VLAN in; if the VLAN attribute registration information All events Joinln VLAN attributes JoinEmpty event or events, the registration information of the VLAN attribute property values ​​include a dynamic VLAN is added to the local EVI extended VLAN; VLAN attribute registration information if the attribute of the event or events Leaveln LeaveEmpty event, then the VLAN attribute registration information to take property 值包括的所有VLAN从本地的EVI扩展VLAN中清除。 All values ​​include VLAN clearance from the local EVI extension VLAN.
  4. 4. 根据权利要求1所述的方法,其特征在于, 从远端站点的ED接收到的VLAN属性注册信息中属性事件为LeaveAll事件、Joinln事件、JoinEmpty 事件、Leaveln 事件、或LeaveEmpty 事件; 执行接收接口的VLAN属性注册的方法为: 如果该VLAN属性注册信息中属性事件为LeaveAll事件,则在该接收接口上注销所有VLAN属性; 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则在该接收接口上注册该VLAN属性注册信息中属性取值包括的所有VLAN; 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则在该接收接口上注销该VLAN属性注册信息中属性取值包括的所有VLAN。 4. The method according to claim 1, wherein the remote site is received from the ED to the VLAN attribute registration information LeaveAll event attribute for the event, Joinln event, JoinEmpty event, Leaveln event, event or LeaveEmpty; perform reception methods VLAN interface properties registered as follows: If the VLAN attribute registration information in the properties of the event is LeaveAll event, the cancellation of all VLAN properties on the receiving interface; if the VLAN attribute registration information in the properties of the event is Joinln event or JoinEmpty event, VLAN VLAN register all the attribute information registered in the value of the properties included in the receiving interface; if the VLAN attribute registration information in the properties of the event is Leaveln event or LeaveEmpty event, it will deregister the VLAN attribute registration information in properties on the receiving interface the value of all VLAN included.
  5. 5. 根据权利要求1所述的方法,其特征在于,所述VLAN属性注册报文具体为采用通用VLAN属性注册协议GVRP的报文; 生成该VLAN属性注册信息对应的VLAN属性注册报文的方法为: 生成一GVRP报文,将该VLAN属性注册信息中的属性事件填入该GVRP报文的属性事件字段中,将该VLAN属性注册信息中的属性取值填入该GVRP报文的属性取值字段中。 5. The method according to claim 1, wherein said particular VLAN attribute registration packets as packets using the Generic VLAN registration protocol property of GVRP; VLAN attribute that generates the VLAN attribute information corresponding to the registration method of registration packets to: generate a message GVRP, the properties of the event registration information in the VLAN attribute GVRP packets filling the event attribute field, VLAN attribute value of the attribute information filling the registration packet attribute takes GVRP value field.
  6. 6. —种动态虚拟局域网VLAN属性注册装置,应用于以太网虚拟化互联EVI网络中站点网络的边缘设备,其特征在于,该装置包括:配置单元,收发单元、控制单元; 所述配置单元,用于预先在本ED上配置动态VLAN属性注册功能,使得本ED支持在站点网络之间进行VLAN属性注册; 所述收发单元,用于接收来自本ED所在站点内的VLAN属性注册报文,将该VLAN属性注册报文携带的VLAN属性注册信息从与配置了动态VLAN属性注册功能的远端站点的ED对应的出接口发送出去;以及用于接收远端站点的ED发送的VLAN属性注册信息,并将该VLAN属性注册信息发送至控制单元;所述远端站点的对应的出接口为本ED上与远端站点的ED之间建立的EVI link上的接口; 所述控制单元,用于接收到收发单元发送的VLAN属性注册信息时,根据该VLAN属性注册信息执行接收该VLAN属性注册信息的接口的VLAN属 6. - type of dynamic properties of a VLAN registration means used in Ethernet network edge device EVI virtual network in a network station, wherein, the apparatus comprising: a configuration unit, a transceiver unit, a control unit; the configuration unit, VLAN attribute configured to preconfigure dynamic functions on this ED register, so that this supports VLAN attributes ED register in the network between sites; the transceiver unit for receiving registration messages from the VLAN attribute ED within this site is located, the the VLAN attribute registration packets VLAN attribute registration information carried in a packet transmitted from the interface with remote sites arranged ED dynamic VLAN attribute register corresponding to the function; and a VLAN attribute register for receiving the transmitted information ED remote site, VLAN attribute and transmits the registration information to the control unit; outbound interface of the distal end site present on the EVI link interfaces between the ED and ED established remote sites; the control unit, for receiving when the VLAN attribute belongs to VLAN registration information sent by the transceiver unit, which performs reception VLAN attribute registration information based on the VLAN attribute registration information interface 性注册,并生成该VLAN属性注册信息对应的VLAN属性注册报文; 所述收发单元,还用于将控制单元生成的VLAN属性注册报文从启用了VLAN属性注册功能的所有端口发送出去; 其中,所述VLAN属性注册信息包括属性事件和属性取值,所述属性取值为VLAN ID。 Registrations, and generates the VLAN attribute registration information corresponding to the packet VLAN attribute registration; the transceiver unit, the control unit is further configured to generate a VLAN attribute registration messages sent from the port VLAN attribute register is enabled out all functions; wherein the VLAN attribute registration information includes the event attributes and attribute values, the attribute value of VLAN ID.
  7. 7. 根据权利要求6所述的装置,其特征在于, 所述配置单元,还用于预先在本ED中存储配置了动态VLAN属性注册功能的远端站点的ED; 或者, 所述收发单元,进一步用于在配置单元在本ED上配置动态VLAN属性注册功能之后,向远端站点的ED发送携带动态VLAN属性注册标记的Hello报文;以及,用于接收远端站点的ED 发送的携带动态VLAN属性注册标记的Hello报文; 所述控制单元,还用于收发单元接收到远端站点的ED发送的携带动态VLAN属性注册标记的Hello报文时,确定该远端站点的ED配置了动态VLAN属性注册功能,将接收接口记录为该远端站点的ED对应的出接口。 7. The device according to claim 6, wherein the configuration unit is further configured to advance in a storage configuration in the present ED ED remote site dynamic VLAN attribute registration function; or the transceiver unit, carrying dynamic and, ED for receiving a distal end of a transmission station; further configured to, after configuring unit configures the dynamic VLAN attribute registration function in the present ED, ED is sent to the remote site carrying dynamic VLAN attribute registration marks Hello packets VLAN attribute registration marks Hello packet; said control unit is further for transmitting and receiving unit receives the remote site carrying ED dynamic VLAN attribute registration marks sent the Hello packet, the remote site to determine ED dynamic configuration VLAN attribute registration function, the reception interface of the recording ED remote site for the corresponding outgoing interface.
  8. 8. 根据权利要求6所述的装置,其特征在于, 所述控制单元,还用于收发单元接收到远端站点的ED发送的VLAN属性注册信息之后, 根据该VLAN属性注册信息修改本地的EVI扩展VLAN; 其中,收发单元从远端站点接收到的VLAN属性注册信息中属性事件为LeaveAl 1事件、 Joinln 事件、JoinEmpty 事件、Leaveln 事件、或LeaveEmpty 事件; 所述控制单元在根据该VLAN属性注册信息修改本地的EVI扩展VLAN时,具体用于: 如果该VLAN属性注册信息中属性事件为LeaveAl 1事件,则清除本地的EVI扩展VLAN中的所有动态VLAN; 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则将该VLAN属性注册信息中属性取值包括的所有VLAN作为动态VLAN加入到本地的EVI扩展VLAN中; 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则将该VLAN 属性注册信息中属性取值包括的所有VLAN从本地的E After 8. The apparatus according to claim 6, wherein said control unit is further for transmitting and receiving means for receiving the distal end of the site registration information ED VLAN attribute transmitted, based on the modified EVI local VLAN attribute registration information extended VLAN; wherein the transceiver unit receives from a remote station to a VLAN attribute information of the attribute registration event LeaveAl 1 event, Joinln event, JoinEmpty event, Leaveln event, event or LeaveEmpty; the control unit based on the registration information VLAN attribute when modifying the local EVI extended VLAN, specifically configured to: if the VLAN attribute registration information in the properties of the event is LeaveAl 1 event, clear all dynamic VLAN local EVI extension of VLAN; VLAN attribute registration information if the attribute event Joinln All VLAN JoinEmpty event or events, the registration information of the VLAN attribute values ​​included in attributes added to the local EVI extended VLAN as a dynamic VLAN; VLAN attribute registration information if the attribute of the event or events Leaveln LeaveEmpty event, then the VLAN attribute registration information includes the value of all property from the local VLAN E VI扩展VLAN中清除。 Extended VLAN in VI cleared.
  9. 9. 根据权利要求6所述的装置,其特征在于, 收发单元从远端站点的ED接收到的VLAN属性注册信息中属性事件为LeaveAll事件、 Joinln 事件、JoinEmpty 事件、Leaveln 事件、或LeaveEmpt.y 事件; 所述控制单元在根据该VLAN属性注册信息执行接收接口的VLAN属性注册时,具体用于: 如果该VLAN属性注册信息中属性事件为LeaveAl 1事件,则在该接收接口上注销所有VLAN属性; 如果该VLAN属性注册信息中属性事件为Joinln事件或JoinEmpty事件,则在该接收接口上注册该VLAN属性注册信息中属性取值包括的所有VLAN; 如果该VLAN属性注册信息中属性事件为Leaveln事件或LeaveEmpty事件,则在该接收接口上注销该VLAN属性注册信息中属性取值包括的所有VLAN。 9. The apparatus according to claim 6, wherein the transceiver unit receives the remote site from the ED to the VLAN attribute registration information LeaveAll event attribute for the event, Joinln event, JoinEmpty event, Leaveln event, or LeaveEmpt.y event; the control unit performs VLAN attribute registration in accordance with the receive interface VLAN attribute registration information, specifically configured to: if all VLAN attribute information of the VLAN attribute registration event attribute LeaveAl 1 event, the cancellation on the receiving interface ; VLAN attribute registration information if the attribute of the event or events Joinln JoinEmpty event, the registration on the receiving interface of the VLAN attribute property values ​​of all the registered information comprises the VLAN; VLAN attribute registration information if the event attribute event Leaveln or LeaveEmpty event, the cancellation of all VLAN the VLAN attribute registration information included in property values ​​on the receiving interface.
  10. 10. 根据权利要求6所述的装置,其特征在于,所述VLAN属性注册报文具体为采用通用VLAN属性注册协议GVRP的报文; 所述控制单元在生成该VLAN属性注册信息对应的VLAN属性注册报文时,用于:生成一GVRP报文,将该VLAN属性注册信息中的属性事件填入该GVRP报文的属性事件字段中,将i亥VLAN属性注册信息中的属性取值填入该GVRP报文的属性取值字段中。 10. The apparatus according to claim 6, wherein said particular VLAN attribute registration packets as packets using the Generic VLAN Registration Protocol GVRP properties; said control unit generates the VLAN attribute information corresponding to the VLAN attribute registration when a registration packet for: generating a message GVRP, the properties of the event registration information in the VLAN attribute GVRP packets filling the event attribute field, Hai VLAN attribute property values ​​i fill registration information the GVRP packets value of the property field.
CN 201310328318 2013-07-31 2013-07-31 A dynamic attribute registration method and apparatus vlan CN104348797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310328318 CN104348797B (en) 2013-07-31 2013-07-31 A dynamic attribute registration method and apparatus vlan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310328318 CN104348797B (en) 2013-07-31 2013-07-31 A dynamic attribute registration method and apparatus vlan

Publications (2)

Publication Number Publication Date
CN104348797A true CN104348797A (en) 2015-02-11
CN104348797B true CN104348797B (en) 2017-12-15

Family

ID=52503611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310328318 CN104348797B (en) 2013-07-31 2013-07-31 A dynamic attribute registration method and apparatus vlan

Country Status (1)

Country Link
CN (1) CN104348797B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847620B1 (en) * 1999-05-13 2005-01-25 Intermec Ip Corp. Mobile virtual LAN
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101483573A (en) * 2009-02-09 2009-07-15 杭州华三通信技术有限公司 Method and network node for GVRP dynamic learning
CN101945044A (en) * 2010-09-09 2011-01-12 中兴通讯股份有限公司 Attribute registration method for switched network and switching equipment
CN102594711A (en) * 2012-03-28 2012-07-18 杭州华三通信技术有限公司 Message forwarding method and edge device therefor
CN103095508A (en) * 2013-02-25 2013-05-08 杭州华三通信技术有限公司 Business access method and edge device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847620B1 (en) * 1999-05-13 2005-01-25 Intermec Ip Corp. Mobile virtual LAN
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101483573A (en) * 2009-02-09 2009-07-15 杭州华三通信技术有限公司 Method and network node for GVRP dynamic learning
CN101945044A (en) * 2010-09-09 2011-01-12 中兴通讯股份有限公司 Attribute registration method for switched network and switching equipment
CN102594711A (en) * 2012-03-28 2012-07-18 杭州华三通信技术有限公司 Message forwarding method and edge device therefor
CN103095508A (en) * 2013-02-25 2013-05-08 杭州华三通信技术有限公司 Business access method and edge device

Also Published As

Publication number Publication date Type
CN104348797A (en) 2015-02-11 application

Similar Documents

Publication Publication Date Title
Kompella et al. Virtual private LAN service (VPLS) using BGP for auto-discovery and signaling
US20140086253A1 (en) Overlay Virtual Gateway for Overlay Networks
Martini et al. Pseudowire setup and maintenance using the label distribution protocol (LDP)
US20100265956A1 (en) Border Gateway Protocol (BGP) Grouped Route Withdrawals
US20090285215A1 (en) Internet Protocol Version Six (IPv6) Addressing and Packet Filtering in Broadband Networks
CN101505227A (en) Method, device and system for implementing point to multi-point pseudowire
CN101827009A (en) Routing frames in a trill network using service vlan identifiers
US20080244090A1 (en) Access Device Routing Device and Method Thereof Supporting Stateless Address Configuration Communication Network
CN102449964A (en) Three-layer virtual exclusive network routing control method, apparatus and system
CN101009629A (en) Dynamic connection method for virtual private network
US20120287932A1 (en) Label Switched Routing To Connect Low Power Network Domains
US20150003458A1 (en) Boarder Gateway Protocol Signaling to Support a Very Large Number of Virtual Private Networks
CN101212391A (en) Traffic splitting method and device, and service type reporting method and device
CN101488964A (en) Method, system and router for implementing address resolution and double layered communication
CN102932254A (en) Message forwarding method and device
CN101488904A (en) Method for GRE tunnel crossing network address translation apparatus and network address translation apparatus
CN101119273A (en) Method and equipment for implementing universal router packaging tunnel crossing
CN101227407A (en) Method and apparatus for sending message based on two layer tunnel protocol
CN101534209A (en) A method and device for sending multicast messages
CN103269299A (en) Packet forwarding method and device in SPBM network
CN101155115A (en) Method and apparatus for implementing automatic tunnel
US20120151085A1 (en) Hot Standby Neighbor Discovery Protocol for Internet Protocol Version 6
CN101771614A (en) DHCP route tracing method and DHCP relay equipment
CN101764734A (en) Method for improving neighbor discovery safety in IPv6 (Internet Protocol Version 6) environment and broadband access equipment
CN101426004A (en) Three layer conversation access method, system and equipment

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
CB02
GR01