CN101409685B - Forwarding method based on virtual LAN mapping and access equipment - Google Patents

Forwarding method based on virtual LAN mapping and access equipment Download PDF

Info

Publication number
CN101409685B
CN101409685B CN 200810227924 CN200810227924A CN101409685B CN 101409685 B CN101409685 B CN 101409685B CN 200810227924 CN200810227924 CN 200810227924 CN 200810227924 A CN200810227924 A CN 200810227924A CN 101409685 B CN101409685 B CN 101409685B
Authority
CN
China
Prior art keywords
vlan
side
mac address
packet
vlan tag
Prior art date
Application number
CN 200810227924
Other languages
Chinese (zh)
Other versions
CN101409685A (en
CN101409685K1 (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
Application filed by 杭州华三通信技术有限公司 filed Critical 杭州华三通信技术有限公司
Priority to CN 200810227924 priority Critical patent/CN101409685B/en
Publication of CN101409685A publication Critical patent/CN101409685A/en
Publication of CN101409685K1 publication Critical patent/CN101409685K1/zh
Application granted granted Critical
Publication of CN101409685B publication Critical patent/CN101409685B/en

Links

Abstract

The invention discloses a forwarding method based on VLAN mapping and an access device thereof. In the method, a VLAN distribution table based on MAC is maintained according to a VLAN mapping table. The VLAN distribution table comprises the corresponding relation between MAC addresses of devices on the user side and VLAN labels on the network side. The VLAN labels on the network side are corresponding to the VLAN labels of the devices on the user side. A source MAC address of a message which is sent out from the user side is used for searching for the VLAN distribution table. According to thesearching result, the VLAN label of the message on the network side is determined. And the VLAN label of the message on the user side is replaced by the determined VLAN label on the network side. Themessage is forwarded according to the target MAC address of the message and the replaced VLAN label on the network side. The resource occupation of the system is reduced.

Description

基于虚拟局域网映射的转发方法及接入设备 VLAN-based forwarding method of mapping and access equipment

技术领域 FIELD

[0001] 本发明涉及业务处理技术领域,具体涉及基于虚拟局域网映射的转发方法及接入设备。 [0001] The present invention relates to the technical field of business process, particularly relates to an access device and forwarding method based VLAN mapping.

背景技术 Background technique

[0002] 目前,在运营商网络中越来越多地提出对用户的不同业务能够实现精细化管理, 能够通过虚拟局域网(VLAN,Virtual Local Area Network)信息对每个用户、每种业务进行识别。 [0002] Currently, the carrier networks are increasingly put forward different business users can implement refined management, can (VLAN, Virtual Local Area Network) information for each user, each service is identified by a virtual local area network. 用户的多种业务类型,如因特网业务、IP电视(IPTV)业务、IP语音(VOIP,Voice Over IP)业务,集合到家庭网关(HG,Home Gateway),家庭网关为每种业务分配不同的VLAN 信息,出于易于维护的考虑,不同用户的家庭网关配置要求统一。 Users of a variety of business types, such as Internet services, IP television (IPTV) services, IP voice (VOIP, Voice Over IP) services, the collection to the home gateway (HG, Home Gateway), home gateway to assign different VLAN for each business information, for easy maintenance considerations, different user's home gateway configuration for reunification. VLAN映射(Mapping)的概念正是在这种背景下提出的。 The concept of VLAN mapping (Mapping) is precisely in this context raised. 由于每个用户的家庭网关为同一种的业务分配相同的VLAN, 需要通过VLAN Mapping对相同的VLAN进行唯一的映射,以便通过映射后的VLAN信息标识用户。 Since each user's home gateway is the same the same kind of business allocation VLAN, the need for a unique mapping the same VLAN through VLAN Mapping, in order to identify the user VLAN information through the map.

[0003] VLAN Mapping目前有2种实现方案: [0003] VLAN Mapping There are two kinds of implementations:

[0004] 1、使用VLAN Mapping的硬件表项,直接进行VLAN标签的替换。 [0004] 1, using the hardware of the VLAN Mapping table entry, directly replace VLAN tag. 这种实现方案最简单,但由于设备的每个接入端口入/出双向都需要支持一定数量的VLAN Mapping的硬件表项,成本较高。 This implementation easiest, but because each access port into the device / hardware required to support a two-way entry VLAN Mapping of a number of high cost.

[0005] 2、使用流规则直接进行VLAN标签的修改,需要在设备的每个业务端口下发匹配家庭网关分配的VLAN标签,流规则的动作是将业务报文携带的VLAN标签替换为映射后的VLAN标签,同时在VLAN Mapping的反向映射时,也需要配置流规则来实现。 [0005] 2, using the flow rules directly modify the VLAN tag, needs to send the home gateway assignment VLAN tag match in each service device port, the flow rule after the operation of the traffic packet carries a VLAN tag mapping replace VLAN tag, the VLAN mapping simultaneously when the reverse mapping rule can also be configured to implement flow.

[0006]基于媒体访问控制(MAC,Media Access Control)的VLAN 分配(MACbased VLAN) 是指根据报文的源MAC地址为报文分配VLAN标签,一般要求报文没有VLAN标签,但如果设备支持不信任报文携带的VLAN信息,对于携带VLAN标签的报文亦可分配VLAN信息,以分配的VLAN信息替换报文中携带的VLAN标签。 [0006] Based on media access control (MAC, Media Access Control) of the VLAN assignment (macbased VLAN) refers to the packet assigned the VLAN tag based on the source MAC address of the packet, the general requirements of the packets without VLAN tags, but if the device supports not trust newspaper VLAN packets carry the information for VLAN assignment information packets can carry VLAN tags to replace the assigned VLAN information packet carries a VLAN tag. 很多设备都支持这种功能,但由于配置上比较繁琐,工作量大,不易于维护,一般很少使用。 Many devices support this feature, but because of the configuration is relatively cumbersome, heavy workload and difficult to maintain, rarely use.

[0007] 图ISVLAN Mapping典型业务模型图,如图1所示,在用户端有2种业务:PC上网业务和IPTV业务,家庭网关为2种业务分别分配VLAN 1和VLAN 2 ;接入设备将家庭网关分配的用户侧VLAN 1 ^P VLAN 2 转换为网络侧VLAN 101、201、102、202、103、203,其中VLAN 101标识用户1的PC上网业务,VLAN 201标识用户1的IPTV业务,VLAN 102标识用户2的PC上网业务,VLAN 202标识用户2的IPTV业务,VLAN 103标识用户3的PC上网业务,VLAN 203标识用户3的IPTV业务。 [0007] FIG ISVLAN Mapping FIG typical business model, as shown in FIG end user has two kinds of operations 1: PC IPTV service and Internet access service, the home gateway two kinds of operations are allocated to VLAN 1 and VLAN 2; access device a user-side home gateway assignment VLAN 1 ^ P VLAN 2 is converted to the network-side VLAN 101,201,102,202,103,203, wherein the user identifying VLAN 101 1 PC Internet access service, VLAN IPTV service 201 to identify the user 1, VLAN Internet access service 102 identifies the user PC 2, VLAN 202 identifying the user of the IPTV service 2, VLAN 103 identifying the user's PC 3 Internet access service, VLAN 203 3 IPTV service identifies the user. 在实际组网对业务划分时,只要保证映射后的VLAN标签能够唯一标识某个用户的某种业务即可;在汇聚层设备根据业务类型对映射后的VLAN标签作灵活二次VLAN标签封装(QinQ),即针对上网业务添加外层VLAN标签1001,针对IPTV业务添加外层VLAN标签2001 ;在业务汇聚点服务器就可根据报文携带的外层VLAN标签和内层VLAN标签区分具体用户的不同业务,分别执行预设的动作,如进行流量限速,设置服务质量(Q0S, Quality ofService)等。 In the actual business division network, VLAN tag as long as the map can uniquely identify a user to a certain service; convergence layer device in accordance with the service type of the VLAN tag VLAN tag mapping flexibly secondary package ( the QinQ), i.e., outer VLAN tag 1001 for the Internet, outer VLAN tag 2001 for the IPTV service; can distinguish between different users in the service specific convergence point server inner and outer VLAN tag VLAN tag carried in the packet business, respectively, perform scheduled actions, such as traffic speed limit, set quality of service (Q0S, quality ofService) and so on. [0008] 为便于后续描述,将家庭网关分配的VLAN称为用户VLAN,标记为C_VLAN,如图1所示的VLAN 1和VLAN 2 ;将映射后的VLAN称为网络侧VLAN,标记为SP_VLAN,如图1所示的VLAN 101、201、102、202、103、203。 [0008] For ease of subsequent description, the home gateway will be referred to as user VLAN assignment VLAN, labeled C_VLAN, VLAN 1 and VLAN 2 as shown in FIG. 1; referred to as the VLAN mapped network side VLAN, labeled SP_VLAN, VLAN 101,201,102,202,103,203 shown in FIG.

[0009] 使用流规则直接进行VLAN标签的修改,需要在设备的每个业务端口配置流规则, 流规则的内容是匹配家庭网关分配的C_VLAN,即图1所示的VLAN 1和VLAN 2 ;流规则的动作是将业务报文中的C_VLAN替换为映射后的SP_VLAN,即VLAN 101、201、102、202、103、 203。 [0009] Using flow rules directly modify VLAN tag, needs to each traffic flow port configuration rule device, the content flow rules are matched home gateway assigned C_VLAN, i.e. 1 shown in Figure 1 in VLAN 2 and VLAN; stream action rules is to replace the service packet is C_VLAN SP_VLAN mapped, i.e. VLAN 101,201,102,202,103, 203. 完成上述配置后,从用户侧发出的报文(如PC上网业务或IPTV业务报文)中的VLAN 标签就会被替换为映射后的SP_VLAN。 After the above configuration, the packet (such as a PC or Internet access service IPTV service packets) sent from the user side in SP_VLAN VLAN tag will be replaced after the mapping. 同理,反向业务需要作相反的VLANMapping,需要在上行端口分别下发多条流规则,流规则的内容是匹配SP_VLAN,即VLAN 101、201、102、202、 103、203,流规则的动作是将报文中的SP_VLAN替换为C_VLAN,即VLAN 1和VLAN 2。 Similarly, the reverse traffic needs in reverse VLANMapping, respectively, need to send multiple streams at the upstream port rules, the content flow rules are matched SP_VLAN, i.e. VLAN 101,201,102,202, 103,203, the operation flow rules is SP_VLAN replace packet is C_VLAN, and VLAN 1 is VLAN 2.

[0010] 由以上分析可知,假设在运营网络中开设a种业务,设备业务端口有b个,上行端口c个,每个业务端口有d个用户,则所需的流规则资源为(c+l)*a*b*d条。 [0010] From the above analysis, it is assumed in the operator network defines a kind of service, equipment service port has a b, c upstream ports, one for each user service ports by d, the flow rule resources are required to (c + l) * a * b * d article.

[0011] 图2为通过流规则实现VLAN Mapping的转发流程示意图,如图2所示,Port X和Port Y为接入设备的下行接入业务端口,Port Z作为接入设备的上行端口与汇聚层设备相连。 [0011] FIG. 2 is a schematic flow chart to achieve forward flow through the VLAN Mapping rules shown in FIG., Port X and Port Y downlink access device to the access service ports, Port Z as an uplink port access device and the convergence 2 layer device is connected. 在Port X进行VLAN Mapping :VLAN1—>VLAN101,用户业务设备的MAC地址为MAC 1 ;VLAN 2—>VLAN 201,用户业务设备的MAC 地址为MAC2。 In Port X VLAN Mapping: VLAN1-> VLAN101, MAC address of the customer services equipment to MAC 1; VLAN 2-> VLAN 201, MAC address of the user equipment for service MAC2. 在Port Y 进行VLAN Mapping : VLAN1—>VLAN 102,用户业务设备的MAC地址为MAC 3 ;VLAN 2—>VLAN 202,用户业务设备的MAC地址为MAC 4。 In Port Y VLAN Mapping: VLAN1-> VLAN 102, MAC address of the user equipment for service MAC 3; VLAN 2-> VLAN 202, MAC address of the user equipment for service MAC 4. 在Port Z进行反向VLAN Mapping =VLAN 101—>VLAN 1,数据业务的源MAC 地址为MAC 5 ;VLAN201—>VLAN 2,数据业务的源MAC 地址为MAC 6 ;VLAN 102—>VLAN 1,数据业务的源MAC地址为MAC 7 ;VLAN 202~>VLAN 2,数据业务的源MAC地址为MAC 8。 Reverse VLAN Mapping in Port Z = VLAN 101-> VLAN 1, the source MAC address of MAC data service. 5; the source MAC address VLAN201-> VLAN 2, data traffic is MAC 6; VLAN 102-> VLAN 1, the data the source MAC address of MAC operations. 7; the source MAC address VLAN 202 ~> VLAN 2, traffic data for MAC 8.

[0012] 假设MAC地址学习在流规则替换VLAN ID之前进行,则在接入设备上MAC地址学习的VLAN情况如图2所示,MACl学习在VLAN 1中,MAC 2学习在VLAN 2中,MAC 3学习在VLAN 1 中,MAC 4 学习在VLAN2 中,MAC 5 学习在VLAN 101 中,MAC 6 学习在VLAN 201 中, MAC 7学习在VLAN 102中,MAC 8学习在VLAN 202中。 [0012] assumed that the MAC address before replacing VLAN ID in the stream for rule learning, VLAN in the case of the MAC address learning on the access device shown in Figure 2, MACl learning in VLAN 1, MAC 2 study in VLAN 2, MAC in study 3 VLAN 1, MAC 4 VLAN2 in learning, MAC 5 in learning VLAN 101, MAC 6 learning in VLAN 201, MAC 7 learning in VLAN 102, MAC 8 in VLAN 202 learning. 假设双向数据流为MAC1<—>MAC 5, MAC 2<—>MAC 6,MAC 3<—>MAC 7,MAC 4<—>MAC 8。 Bidirectional data flow is assumed MAC1 <-> MAC 5, MAC 2 <-> MAC 6, MAC 3 <-> MAC 7, MAC 4 <-> MAC 8. 以双向数据流MAC 1<—>MAC 5 为例, 由于MAC 1是学习在VLAN 1中,而MAC 5学习在VLAN 101中,在转发报文时,会因为在指定的VLAN中查找不到目的MAC地址,而将报文作为未知报文广播,为了避免这种现象,需要将MAC 1添加到VLAN 101中,MAC 5添加到VLAN 1中,这样双向数据流才能作正确的单播转发。 Bidirectional data flow MAC 1 <-> MAC 5, for example, because the MAC 1 is learning in VLAN 1, while learning MAC 5 in VLAN 101, when forwarding packets, because to find its purpose in the specified VLAN. MAC address, the packet as an unknown message broadcast, in order to avoid this, you need to add 1 to VLAN 101 in the MAC, MAC 5 is added to 1 VLAN, this two-way flow of data in order to make the right unicast forwarding. 因此,为保证业务的正常工作,同一个MAC地址应当在映射前后的2个VLAN中都存在,即MAC 1要同时在VLAN 1和VLAN 101中,其它MAC地址依此类推,所以,在图2所示的接入设备上,应当有16个MAC地址存在于MAC地址转发表中。 Therefore, to ensure the normal operation of the service, it should have the same MAC address is present in the front and rear two VLAN mapping, i.e. MAC VLAN simultaneously. 1. 1 to 101 and the VLAN, the other MAC address and so on, therefore, in FIG. 2 shown on the access device, there should be 16 MAC address exists in the MAC address forwarding table. 上述现象同样存在于MAC地址学习在修改VLAN ID之后进行的情况中。 The same phenomenon exists in the MAC address learning is performed after modification of VLAN ID.

[0013] 可见,现有的通过流规则实现VLAN Mapping的转发流程中存在如下缺点: [0013] visible, existing rules implemented by the following disadvantages stream forward flow in the VLAN Mapping:

[0014] 1、由于VLAN Mapping双向都使用流规则,占用系统资源较多。 [0014] 1, due to the VLAN Mapping uses a two-way flow rule, occupy more system resources.

[0015] 2、由于双向数据流的源MAC地址学习在不同的VLAN中,会产生广播泛洪。 [0015] 2, since the source MAC address learning in the bidirectional data stream a different VLAN, the broadcast flooding occur.

[0016] 3、为了避免MAC地址学习在不同的VLAN中可能会产生的泛洪,需要软件将MAC地址添加到映射后的VLAN中,同时要考虑MAC地址老化的问题,增加了软件处理的复杂度。 [0016] 3, in order to avoid MAC address learning flooding in different VLAN may produce, you need software to add the MAC address to the VLAN after mapping, taking into account the problem of MAC address aging, increases the software processing complex degree. 发明内容 SUMMARY

[0017] 本发明提供基于VLAN Mapping的转发方法及接入设备,以减少系统资源的占用。 [0017] The present invention provides a VLAN Mapping based forwarding method and an access device in order to reduce the system resources.

[0018] 本发明的技术方案是这样实现的: [0019] 一种基于VLAN映射的转发方法,该方法包括: [0018] aspect of the present invention is implemented as follows: [0019] A VLAN mapping based forwarding method, the method comprising:

[0020] 根据VLAN映射表维护基于MAC的VLAN分配表,所述VLAN分配表包括用户侧设备的MAC地址和网络侧VLAN标签的对应关系,所述网络侧VLAN标签为用户侧设备的用户侧VLAN标签对应的网络侧VLAN标签; [0020] The VLAN mapping table maintains the mapping between the MAC VLAN allocation table, the allocation table includes a user-side VLAN device MAC address and VLAN tag based on the network side, the network side to the user side VLAN tag of the user equipment-side VLAN tag VLAN tag corresponding network side;

[0021] 使用用户侧发出报文的源MAC地址查询所述VLAN分配表,根据查询结果确定所述报文的网络侧VLAN标签,并将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签; [0021] issued by the user side using the source MAC address of the packet to the VLAN allocation table query, determining the packet network side VLAN tag according to the query result, and replaces the user-side of the packet to the determined VLAN tag the network-side VLAN tag;

[0022] 根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文。 [0022] The forwarded packet after the network-side VLAN tag and replaces the destination MAC address of the packet.

[0023] 所述根据所述VLAN映射表维护基于MAC的VLAN分配表包括: [0023] The mapping table maintained according to the VLAN MAC-based VLAN allocation table comprises:

[0024] 在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN 标签,将该报文的源MAC地址和该网络侧VLAN标签分别添加到基于MAC的VLAN分配表和MAC地址转发表中。 [0024] In the user-side VLAN mapping lookup table packets sent by the user-side VLAN tag corresponding to the C-VLAN tag and the packet and the source MAC address of the network-side VLAN tags are added to the MAC based VLAN assignment table and MAC address forwarding table.

[0025] 所述将该报文的源MAC地址和该网络侧VLAN标签分别添加到基于MAC的VLAN分配表和MAC地址转发表中进一步包括:下发包含用户侧VLAN标签和网络侧VLAN标签的流规则,且, [0025] The packet of the source MAC address of the network-side VLAN tags are added to the MAC table and VLAN assignment based on MAC address forwarding table further comprising: the user-side VLAN tag comprising fat and a network-side VLAN tag flow rules, and,

[0026] 当接入设备从上行汇聚端口接收报文时,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 [0026] When the access aggregation device receives packets from an uplink port, look-VLAN tag and destination MAC address of the packet in the MAC address forwarding table corresponding to the port VLAN tag lookup network side corresponding to the flow rule user-side VLAN tags to replace the user-side VLAN tag-VLAN tag of the packet, the packets from the forwarding port out.

[0027] 预先将接入设备的各接入端口设置为软件学习MAC地址方式。 [0027] Each access port is provided in advance to the access device software MAC address learning mode.

[0028] 对于配置有VLAN映射表的各端口,将该端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除。 [0028] For each port disposed VLAN mapping table, the user-side device connected to a port corresponding to the MAC address of the MAC address forwarding entries deleted.

[0029] 所述在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN标签之前进一步包括: [0029] The user side before looking in the mapping table VLAN packets sent by the user-side VLAN tag VLAN tag corresponding network side further comprises:

[0030] 在基于MAC的VLAN分配表中查找报文的源MAC地址,若未查找到,在MAC地址转发表中查找报文的源MAC地址和用户侧VLAN标签,若仍未查找到,则执行所述在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN标签的动作。 [0030] Find packets in MAC-based VLAN assignment source MAC address table, if not found, to find the packet in the MAC address forwarding table in the user-side source MAC address and VLAN tags, if still not found, then performing the lookup in the user-side VLAN mapping table packets sent by the user-side VLAN tag corresponding to the operation of the network-side VLAN tag.

[0031] 所述将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签之后、根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文之前进一步包括: [0031] to the user side of the packet after the VLAN tag is replaced with the determined network VLAN tag, further comprising, prior to forwarding the packet according to the network side after the VLAN tag and replaces the destination MAC address of the packet:

[0032] 在MAC地址转发表中查找报文的源MAC地址和网络侧VLAN标签,若未查找到,则将报文的源MAC地址和网络侧VLAN标签添加到MAC地址转发表中。 [0032] Find packets in the MAC address forwarding table source MAC address and the network-side VLAN tag, if not found, then the packet's source MAC address and VLAN tag added to the network the MAC address forwarding table.

[0033] 所述VLAN映射表为N: 1映射,其中,N为大于1的正整数, [0033] The VLAN mapping table N: 1 mapping, where, N is a positive integer greater than 1,

[0034] 所述流规则中还包含报文的源MAC地址。 The [0034] stream rule further includes a source MAC address of the packet.

[0035] 所述方法进一步包括: [0035] The method further comprising:

[0036] 接入设备从上行汇聚端口接收报文,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签和目的MAC地址对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 [0036] The access device receives from the uplink port aggregation packet, it searches the network-side VLAN tag and destination MAC addresses of the packets in the output port corresponding to the MAC address forwarding table to find a network-side VLAN tag and destination MAC flow rule address corresponding to the user-side VLAN tags to replace the user-side VLAN tag-VLAN tag of the packet, the packets from the forwarding port out.

[0037] 所述方法进一步包括:发现MAC地址转发表中的MAC地址老化,则根据该MAC地址对应的网络侧VLAN标签,删除该网络侧VLAN标签对应的基于MAC的VLAN分配表项和流规则。 [0037] The method further comprising: discovering a MAC address in the MAC address forwarding table aging, is based on the MAC address corresponding to the network-side VLAN tag, the network side to delete corresponding VLAN assignment VLAN tag entries and flow rules based on MAC .

[0038] 一种接入设备,该设备包括: [0038] An access apparatus, the apparatus comprising:

[0039] 表项存储模块,存储根据VLAN映射表维护的基于MAC的VLAN分配表,所述VLAN 分配表包括用户侧设备的MAC地址和网络侧VLAN标签的对应关系,所述网络侧VLAN标签为用户侧设备的用户侧VLAN标签对应的网络侧VLAN标签; [0039] entry storage module, MAC-based VLAN The storage allocation table VLAN mapping table maintains correspondence between the VLAN allocation table includes a MAC address of the CPE and the network-side VLAN tag, the VLAN tag to the network side user VLAN tag corresponding to the user-side device-VLAN tag;

[0040] 上行转发模块,使用用户侧发出报文的源MAC地址查询所述VLAN分配表,根据查询结果确定所述报文的网络侧VLAN标签,并将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签;根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文。 [0040] Uplink modules forwarding, issue a query to the user-side VLAN allocation tables as the source MAC address of the packet to determine the network-side VLAN tag according to the query result, and replaces the user-side of the packet VLAN tag the network-side VLAN tag determined; forwarding packets according to the network side after the VLAN tag and replaces the destination MAC address of the packet.

[0041] 所述上行转发模块进一步包括,用于下发包含用户侧VLAN标签和网络侧VLAN标签的流规则的模块, [0041] The module further comprises forwarding the uplink, comprising a module adapted to deliver the user-side VLAN tag flow rules and network-side VLAN tag,

[0042] 且,所述接入设备进一步包括:下行转发模块,用于从上行汇聚端口接收报文,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 [0042] Moreover, the access device further comprising: a downlink forwarding module, for receiving from the uplink port aggregation packet, it searches the network-side VLAN tag and destination MAC address of the packet in the MAC address forwarding table corresponding to the port Find the user-side VLAN tag VLAN tag corresponding to the network side in the flow rule to replace the user-side VLAN tag packet network-side VLAN tag to a packet forwarded from the out port.

[0043] 所述接入设备进一步包括: [0043] The access device further comprises:

[0044] 端口配置模块,将接入设备的各接入端口设置为软件学习MAC地址方式。 [0044] The configuration module ports, each access port for software access device MAC address learning mode.

[0045] 所述端口配置模块进一步包括,用于对于配置有VLAN映射表的各端口,将该端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除的模块。 [0045] The module further comprises a configuration port, a MAC address for each port is configured with the VLAN mapping table, the user-side device connected to a port corresponding to the MAC address forwarding module deleted items.

[0046] 所述上行转发模块进一步包括,用于当从接入端口接收报文时,在基于MAC的VLAN分配表项中未查找到报文的源MAC地址,则在MAC地址转发表项中查找报文的源MAC 地址和用户侧VLAN标签,若仍未查找到,则确定在VLAN映射表中查找该报文中的用户侧VLAN标签对应的网络侧VLAN标签的模块。 [0046] The uplink module further comprises forwarding, when a port receives a packet from an access in the MAC based VLAN allocation table entry is not found source MAC address of the packet, the MAC address forwarding entry Find the packet source MAC address and the user-side VLAN tag, if still not found, it is determined that the network-side VLAN tag lookup module of the user-side VLAN tag corresponding to the VLAN packet in the mapping table.

[0047] 所述上行转发模块进一步包括,用于当从接入端口接收报文时,若在基于MAC的VLAN分配表中查找到报文的源MAC地址,则在MAC地址转发表项中查找报文的源MAC地址和网络侧VLAN标签,若未查找到,则将报文的源MAC地址和网络侧VLAN标签添加到MAC地址转发表中的模块。 [0047] The uplink module further comprises forwarding, when a port receives a packet from the access, if the source MAC address found in the packet MAC-based VLAN assignment list, the entry in the MAC address forwarding table lookup the source MAC address of the packet and the network-side VLAN tag, if not found, then the packet's source MAC address and VLAN tag added to the network the MAC address forwarding table module.

[0048] 所述端口配置模块在接入设备的各接入端口上配置的为N: IVLAN映射表, [0048] The port configuration module is configured on each access port is N: IVLAN mapping table,

[0049] 所述上行转发模块在下发包含用户侧VLAN标签和网络侧VLAN标签的流规则时, 进一步将报文的源MAC地址添加到流规则中, When [0049] the uplink stream forwarding module comprises a rule lower fat user side and the network side VLAN tag of the VLAN tag, the packet further source MAC address added to the stream rule,

[0050] 所述接入设备进一步包括:下行转发模块,用于从上行汇聚端口接收报文,在MAC 地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找报文中的网络侧VLAN标签和目的MAC地址对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 [0050] The access device further comprising: a downlink forwarding module, for concentrating the uplink packets received from the look-VLAN tag and destination MAC addresses of the packets in the output port corresponding to the MAC address forwarding table, in Find the user-side VLAN tag-VLAN tag and destination MAC address of the packet corresponding to the user-side VLAN tag replacement-VLAN tag of the packet, the packet stream from the out port forwarding rule out.

[0051 ] 该接入设备进一步包括: [0051] The access device further comprises:

[0052] 老化模块,发现MAC地址转发表中的MAC地址老化,则根据该MAC地址对应的网络侧VLAN标签,删除该网络侧VLAN标签对应的基于MAC的VLAN分配表项和流规则。 [0052] The aging module, discovered MAC addresses in the forwarding table aging, is based on the MAC address of the network-side VLAN tag, removing the web-side VLAN tag corresponding to the allocation table entries, and the VLAN MAC flow rules. [0053] 与现有技术相比,本发明在上行方向不使用流规则,减少了系统资源的占用。 [0053] Compared with the prior art, the present invention does not use flow rules in the uplink direction, reduces the system resources.

[0054] 本发明实施例可以将报文的源MAC地址和SP_VLAN添加到MACbased VLAN表,这样,上行报文就可以通过MAC based VLAN表实现VLAN标签的替换,从而,对于硬件中未配置VLAN mapping表的设备,使用本发明实施例也可以实现快速业务转发。 [0054] The source MAC address embodiments may be packets embodiment of the present invention and SP_VLAN added to macbased VLAN table, so that uplink packet replaces VLAN tag may be implemented by MAC based VLAN table, whereby, for a hardware not configured VLAN mapping table device using the embodiment of the present invention may be fast forwarding service.

[0055] 另外,本发明实施例中,只将MAC地址学习到SP_VLAN中,避免了广播泛洪,同时减少了软件处理负担。 [0055] Further, in the embodiment of the present invention, only to learn the MAC address SP_VLAN, avoiding the flooding broadcasting, while reducing the burden on software processing.

附图说明 BRIEF DESCRIPTION

[0056] 图1为VLAN Mapping典型业务模型图; [0056] FIG. 1 is a typical business model diagram VLAN Mapping;

[0057] 图2为通过流规则实现VLAN Mapping的转发流程示意图; [0057] FIG. 2 is a VLAN Mapping forwarding process implemented by the schematic flow rules;

[0058] 图3为本发明实施例提供的基于VLAN mapping的上行转发流程图; [0058] The embodiment of FIG. 3 based on the uplink VLAN mapping forwarding a flowchart of embodiments of the present invention;

[0059] 图4为本发明实施例提供的基于VLAN mapping的下行转发流程图; [0059] FIG 4 based on the downlink VLAN mapping forwarding a flowchart according to an embodiment of the present invention;

[0060] 图5为应用本发明的具体实例示意图; [0060] FIG. 5 is a specific example of an application of the present invention is a schematic diagram;

[0061] 图6为本发明实施例提供的接入设备的组成示意图。 [0061] FIG 6 provides a schematic diagram illustrating an access device embodiment of the present invention.

具体实施方式 Detailed ways

[0062] 本发明的核心思想为:根据VLAN Mapping表维护基于MAC的VLAN表,即MAC based VLAN表,所述MAC based VLAN表至少包括用户侧设备的MAC地址和SP_VLAN的对应关系, 所述SP_VLAN为用户侧设备发来的上行报文中的C_VLAN对应的SP_VLAN ; [0062] The core idea of ​​the present invention are: the maintenance of MAC-based VLAN tables, i.e. MAC based VLAN table, the MAC based VLAN table includes at least correspondence between the MAC address and the user-side equipment according SP_VLAN VLAN Mapping table, the SP_VLAN C_VLAN user side device corresponding to the uplink packet sent by the SP_VLAN;

[0063] 使用用户侧设备发来的上行报文的源MAC地址查询MAC based VLAN表,根据查询结果确定所述报文的SP_VLAN,并将所述报文的C_VLAN替换为所确定的SP_VLAN ;根据上行报文的目的MAC地址和替换后的SP_VLAN转发上行报文。 [0063] The user side device using the uplink packet sent by the source MAC address of MAC based VLAN table query, determining SP_VLAN of the packet according to the query result, and replacing the packet to the determined C_VLAN SP_VLAN; according uplink packet destination MAC address and forwards the replaced SP_VLAN uplink packet.

[0064] 上行报文的源MAC地址即为发来该报文的用户侧设备的MAC地址。 [0064] The uplink packet sent to the source MAC address is the MAC address of the packet to the user equipment side.

[0065] 下面结合附图及具体实施例对本发明再作进一步详细的说明。 [0065] Specific embodiments of the present disclosure will be described in further detail below in conjunction with the accompanying drawings and.

[0066] 图3为本发明实施例提供的基于VLAN mapping的上行转发流程图,如图3所示, 其具体步骤如下: [0066] Figure 3 embodiment provides forwarding based on the uplink VLAN mapping flowchart shown in Figure 3 of the present invention, the specific steps are as follows:

[0067] 步骤300 :为接入设备的各接入端口配置软件VLAN Mapping表,该VLAN Mapping 表维护用户侧VLAN和网络侧VLAN之间的映射关系,即C_VLAN—>SP_VLAN ;对于每个配置有VLAN mapping表的端口,将该端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除;将各配置有VLAN映射表的接入端口设置为软件学习MAC地址方式。 [0067] Step 300: configuring the software for the access port VLAN Mapping table access device, the VLAN Mapping table maintains a mapping relationship between the user-side VLAN and the VLAN network side, i.e. C_VLAN-> SP_VLAN; for each configuration has port VLAN mapping table, the user-side device connected to a port corresponding to the MAC address of the MAC address forwarding entries deleted; each VLAN mapping table disposed access port is set to the MAC address learning software manner.

[0068] 将接入端口设置为软件学习MAC地址方式,则从该端口收到报文后,硬件不会主动进行MAC地址学习。 [0068] The access port to MAC address learning software way, from the port receiving the packet, the hardware will not take the initiative to learn MAC addresses.

[0069] 步骤301 :接入设备从一个接入端口上接收到用户业务设备发来的报文,在MAC based VLAN表中查找该报文的源MAC地址。 [0069] Step 301: the access device receiving from a user an access port to the service packet sent by the apparatus, to find the source MAC address of the packet in the MAC based VLAN table.

[0070] 当接入设备接收到一个上行报文时,通常都要在硬件中先查MAC basedVLAN表,然后查MAC地址转发表。 [0070] When the access device receives an uplink packet, usually have in hardware will check the MAC basedVLAN table, and then check the MAC address forwarding table.

[0071] MAC based VLAN表中至少包括:上行报文的源MAC地址以及与所述源MAC地址对应的SP_VLAN。 [0071] MAC based VLAN table at least comprising: an uplink packet with the source MAC address and source MAC address corresponding to SP_VLAN.

[0072] 步骤302 :根据上行报文的源MAC地址在所述MAC based VLAN表进行查询,确定是否查找到报文的源MAC地址,若是,执行步骤310 ;否则,执行步骤303。 [0072] Step 302: The uplink packet source MAC address in the MAC based VLAN table lookup, to determine whether the source MAC address lookup message, if yes, perform step 310; otherwise, step 303 is performed.

[0073] 步骤303 :接入设备在MAC地址转发表中查找该上行报文的源MAC地址和C_VLAN 对应的MAC地址转发表项。 [0073] Step 303: the access device to find the source MAC address of the uplink packet and the corresponding MAC address C_VLAN in the MAC address forwarding table forwarding entries.

[0074] 步骤304 :判断是否查找到,若是,执行步骤305 ;否则,执行步骤306。 [0074] Step 304: determining whether to find, if yes, perform step 305; otherwise, step 306 is performed.

[0075] 在本发明中,通常情况下MAC based VLAN表和MAC地址转发表的内容是同步的, 即:若一个源MAC地址存在于MAC based VLAN表中,则该源MAC地址必然也存在于MAC地址转发表中,反之亦然;但是由于MAC地址老化的时间差等原因,可能会使得在某个时刻某个源MAC地址只存在于MAC based VLAN表中或只存在于MAC地址转发表中。 [0075] In the present invention, in general MAC based VLAN table and the MAC address forwarding published content is synchronized, i.e.: if a source MAC address exists in the MAC based VLAN table, the source MAC address must also be present in MAC address forwarding table, vice versa; however, due to the time of MAC address aging was poor, so that at some point may be a source MAC address exists only in the MAC based VLAN table or exist only in the MAC address forwarding table.

[0076] 步骤305 :接入设备在MAC地址转发表中查找报文的C_VLAN和目的MAC地址对应的出端口,将报文从出端口转发出去,本流程结束。 [0076] Step 305: the access device discovery packets in the MAC address forwarding table corresponding to the destination MAC address and C_VLAN egress port forwarding the packet from the port for the present flow ends.

[0077] 步骤306 :接入设备将报文通过管理接口发送给内部CPU。 [0077] Step 306: the access device sends the packet to the CPU via the internal management interfaces.

[0078] 由于步骤300中将各接入端口设置为软件学习MAC地址方式,因此,当在MAC地址转发表中未查找到报文的出端口时,报文就会被送往CPU作进一步处理。 [0078] Since each access port in the step 300 is set to the MAC address learning software embodiment, therefore, when the MAC address forwarding table is not found message to the outgoing port, the packets are sent to the CPU for further processing .

[0079] 步骤307 :CPU收到报文后,解析报文中的C_VLAN,在接入设备中配置的VLAN Mapping表中,查找所述C_VLAN对应的SP_VLAN,将报文的源MAC地址和SP_VLAN添加到MAC based VLAN表中和MAC地址转发表中。 [0079] Step 307: After the CPU receives the packet, parses the packet C_VLAN, VLAN Mapping table configuration in an access device, find the corresponding SP_VLAN C_VLAN, the packet and the source MAC address add SP_VLAN to MAC based VLAN and MAC address table forwarding table.

[0080] 至此,实现了根据VLAN Mapping表对MAC based VLAN表,即基于MAC的VLAN分配表的维护。 [0080] Thus, to achieve the VLAN Mapping table according to the MAC based VLAN table, i.e., MAC-based VLAN assignment table maintenance. 本领域技术人员可以知晓,所述源MAC地址即为用户侧设备的MAC地址,所述C_VLAN为用户侧VLAN标签,所述SP_VLAN为与用户侧设备的MAC地址和C_VLAN对应的网络侧VLAN标签。 Those skilled in the art can be known, the source MAC address is the MAC address of the user-side equipment, the user-side VLAN tag is C_VLAN the SP_VLAN MAC address of the user-side device and the corresponding network side C_VLAN VLAN tag.

[0081] 步骤308 :接入设备产生将网络侧VLAN替换为与其对应的用户侧VLAN的流规则: SP_VLAN—>C_VLAN0 [0081] Step 308: The access device generates user-side flow rules VLAN network-side VLAN replace corresponding thereto: SP_VLAN-> C_VLAN0

[0082] 本步骤中的流规则在下行转发时使用,因此本领域技术人员均可知晓,设置流规则的处理步骤并不仅限于在步骤307和步骤309之间执行。 [0082] Flow Rules used in this step of forwarding downlink, so skilled in the art can be known, the flow rule set is not limited to the processing steps between step 307 and step 309 executed.

[0083] 步骤309 =CPU在通过查询VLAN Mapping表确定与所述上行报文对应的SP_VLAN 后,以SP_VLAN替换报文中的C_VLAN,在MAC地址转发表中查找与报文的目的MAC地址、SP_ VLAN对应的出端口,将报文从出端口转发出去,本流程结束。 [0083] Step 309 = CPU, to replace the packets SP_VLAN C_VLAN, searches for the destination MAC address of the packet in the MAC address forwarding table after determining the uplink packet corresponding to the VLAN Mapping table by querying SP_VLAN, SP_ VLAN corresponding to the port, the packet from the forwarding port for the present flow ends.

[0084] 由于本发明中仅在MAC地址转发表中预先删除了配置有VLAN映射表的各接入端口连接的用户侧设备的MAC地址对应的MAC地址转发表项,即删除了MAC地址转发表中上行报文的源MAC地址对应的转发表项,而未对上行报文的目的MAC地址对应的MAC地址转发表项作删除处理,因此在正常情况下,根据上行报文的目的MAC地址以及替换后的SP_ VLAN查询MAC地址转发表是可以执行正常的转发操作的。 [0084] Since the present invention only in the MAC address forwarding table previously deleted user side device disposed VLAN mapping table for each access port corresponding to the MAC address of the MAC address forwarding entry, i.e., the MAC address forwarding deleted in uplink packet source MAC address forwarding table entries, without the MAC address of the uplink packet corresponding to the destination MAC address forwarding entry for deletion process, and therefore under normal conditions, according to the MAC address of the uplink packet and SP_ VLAN query MAC address forwarding table is replaced by the normal execution of the forwarding operation.

[0085] 步骤310 :接入设备以MAC based VLAN表项中源MAC地址对应的SP_VLAN替换报文中的C_VLAN。 [0085] Step 310: the access device to MAC based VLAN table entry corresponding to the source MAC address in the packet replacing SP_VLAN C_VLAN.

[0086] 从本步骤可以看出,上行报文转发未使用流规则。 [0086] As can be seen from the present step, the unused uplink packet forwarding flow rules.

[0087] 步骤311 :接入设备在MAC地址转发表中查找报文中的源MAC地址和SP_VLAN对应的MAC地址转发表项。 [0087] Step 311: the access device in the MAC address forwarding table to find the source MAC address of the packet and the corresponding MAC address SP_VLAN forwarding entry. [0088] 步骤312 :判断是否查找到,若是,执行步骤313 ;否则,执行步骤314。 [0088] Step 312: determining whether to find, if yes, perform step 313; otherwise, step 314 is executed.

[0089] 步骤313 :接入设备在MAC地址转发表中查找报文中的目的MAC地址、SP_VLAN对应的出端口,将报文从出端口转发出去,本流程结束。 [0089] Step 313: the access device in the MAC address forwarding table to find the destination MAC address of packets, SP_VLAN corresponding egress port, the forwarding packets from the egress port for the present flow ends.

[0090] 步骤314 :接入设备通过管理接口将报文发送给内部CPU。 [0090] Step 314: the access device sends the packet to the CPU via the internal management interfaces.

[0091 ] 步骤315 =CPU将报文中的源MAC地址和SP_VLAN添加到MAC地址转发表中。 [0091] Step 315 = CPU source MAC address in the packet to the MAC address and SP_VLAN forwarding table.

[0092] 步骤316 =CPU在MAC地址转发表中查找报文中的目的MAC地址、SP_VLAN对应的出端口,将报文从出端口发送出去。 [0092] Step 316 = CPU in the MAC address forwarding table to find the destination MAC address of packets, SP_VLAN corresponding output port, the packet sent from the egress port.

[0093] 若CPU在MAC地址转发表中未查找到与报文的目的MAC地址、SP_VLAN对应的出端口,则将报文在SP_VLAN内广播。 [0093] When the CPU in the MAC address forwarding table is not found and the destination MAC address of the packet, SP_VLAN corresponding output port, the packets will be broadcast in SP_VLAN.

[0094] 图3给出了对从接口端口接收到的报文的转发处理流程,以下给出对从上行汇聚端口接收到的报文的转发处理流程。 [0094] Figure 3 shows the process flow for forwarding received from the interface port to the packet, forwarding given below of the process flow from the upstream port aggregation of the received packets.

[0095] 图4为本发明实施例提供的基于VLAN mapping的下行转发流程图,如图4所示, 其具体步骤如下: [0095] FIG. 4 embodiment provides downlink VLAN mapping based forwarding flowchart, the present invention is shown in Figure 4, the specific steps are as follows:

[0096] 步骤401 :接入设备从上行汇聚端口接收报文,在MAC地址转发表中查找该报文的目的MAC地址、SP_VLAN对应的出端口。 [0096] Step 401: the access aggregation device receives from the uplink port the packet, looks up the destination MAC address of the packet in the MAC address forwarding table, SP_VLAN corresponding output port.

[0097] 步骤402 :接入设备在流规则中查找报文中的SP_VLAN对应的C_VLAN。 [0097] Step 402: the access device searches SP_VLAN C_VLAN corresponding packet in the flow rule.

[0098] 本步骤中的流规则是在图3所示步骤308中产生的,本领域技术人员可知,在获取产生流规则的必要信息后,也可以在其它可满足下行流量转发要求时下发流规则。 [0098] In this step, the flow rule is generated in step 3308 shown in FIG, those skilled in the art that, after obtaining the information necessary to produce a stream of rules, may be forwarded to meet the other requirements of the downstream traffic stream made nowadays rule.

[0099] 步骤403 :接入设备以C_VLAN替换报文中的SP_VLAN。 [0099] Step 403: the access device to replace the packets C_VLAN SP_VLAN.

[0100] 步骤404 :接入设备将报文从出端口转发出去。 [0100] Step 404: the access device forwards the packet from the output port.

[0101] 在实际应用中,CPU还可定时检查MAC地址是否老化,若已老化,则删除该MAC地址对应的MAC based VLAN表项和流规则。 [0101] In practical applications, the CPU may regularly check whether the MAC address aging, aging Ruoyi, MAC based VLAN rule entries and the flow corresponding to the MAC address is deleted. 具体步骤如下:对于每个配置有VLAN mapping表的接入端口,CPU根据端口的SP_VLAN和MAC地址,在MAC地址转发表中查找该SP_VLAN禾口MAC地址对应的MAC地址转发表项,若未查找到,则确定该MAC地址老化,则删除SP_VLAN对应的MAC based VLAN表项和流规则。 Specific steps are as follows: an access port for each VLAN mapping table configuration, CPU according SP_VLAN and port MAC address to find the MAC address SP_VLAN Wo port corresponding to the MAC address forwarding table items in the MAC address forwarding table, if not find that it is determined that the MAC address aging, based MAC entries and the corresponding VLAN SP_VLAN flow rules are deleted. 其中,在步骤301中,在为接入端口配置VLAN mapping 表时,CPU可记录该端口的SP_VLAN和MAC地址,以便后续MAC地址老化使用。 Wherein, in the step 301, when the port, VLAN mapping table access, and the CPU may be recorded SP_VLAN MAC address of the port, MAC address aging for subsequent use.

[0102] 从图3、4所示流程可以看出:本发明实施例可以将报文的源MAC地址和SP_VLAN 添加到MAC based VLAN表,这样,上行报文就可以通过MAC based VLAN表实现VLAN标签的替换,从而,对于硬件中未配置VLAN mapping表的设备,使用本发明实施例也可以实现快速业务转发。 [0102] shown in Scheme 3,4 can be seen from FIG: source MAC address of the packet may be embodiments of the present invention and the embodiment SP_VLAN added to the MAC based VLAN table, so that, in the uplink packet can be achieved by a MAC VLAN table based VLAN Alternatively the label, so that for the hardware device is not configured VLAN mapping table, using the embodiments of the present invention may be fast forwarding service.

[0103] 同时,本发明实施例中只在下行方向使用流规则,减少了系统资源的占用,假设在运营网络中开设a种业务,设备业务端口有b个,上行端口c个,每个业务端口有d个用户, 则所需的流规则资源为a*b*d条,远小于现有技术中的(c+l)*a*b*d条。 [0103] Meanwhile, in the embodiment, only the downstream direction of the flow rules embodiment of the present invention, reduces the system resources, assuming that defines a kind of traffic in the operator network, the device service port has a b, c upstream ports, one for each service there user port d, the flow rule resources required to strip a * b * d, much smaller than (c + l) * a * b * d article prior art.

[0104] 另外,本发明实施例中,只将MAC地址学习到SP_VLAN中,避免了广播泛洪,同时减少了软件处理负担。 [0104] Further, in the embodiment of the present invention, only to learn the MAC address SP_VLAN, avoiding the flooding broadcasting, while reducing the burden on software processing.

[0105] 以下给出一个应用本发明的具体实例: [0105] The following gives a specific example of application of the invention:

[0106] 如图5所示,设接入设备的端口Port X支持两种业务,两种业务设备的MAC地址分别为MAC U MAC 2,家庭网关为业务设备1配置了VLANl,为业务设备2配置了VLAN 2 ;为接入设备的Port X 配置的VLAN mapping 表为:VLAN 1—>VLAN 101 ;VLAN 2—>VLAN 201。 [0106] 5, the access device provided to support both traffic port Port X, MAC address of the device both services are service apparatus 1 is configured to VLANl MAC U MAC 2, the home gateway, the device 2 for the service Configuring a VLAN 2; Port X configured to access device VLAN mapping table: VLAN 1-> VLAN 101; VLAN 2-> VLAN 201. 同时,将MAC 1,MAC 2对应的MAC地址转发表项删除;将Port X的MAC地址学习方式配置为软件学习方式。 At the same time, the MAC 1, MAC 2 corresponding MAC address forwarding entries deleted; Port X to configure MAC address learning software learning. 接入设备从Port X接收到业务设备1发来的报文,在MAC based VLAN表中未查找到报文的源MAC地址:MAC 1,同时在MAC地址转发表中未找到报文的源MAC地址:MAC 1和报文中的C_VLAN :VLAN 1,则将报文发送给CPU,CPU在VLAN mapping表中查找到报文中的C_VLAN =VLAN 1对应的SP_VLAN为=VLAN 101,则将MAC 1和VLAN 101添加到MAC based VLAN表和MAC地址转发表中,同时,以VLAN 101替换报文中的VLAN 1,然后在MAC地址转发表中查找报文的目的MAC地址:MAC 3和VLAN 101对应的出端口,将报文从出端口转发出去。 MAC MAC source 1, while the packet is not found in the MAC address forwarding table: Port X received from the access device to send the device 1 to the packet service, the MAC based VLAN table is not found source MAC address of the packet address: MAC C_VLAN 1 and packets: VLAN 1, the packets will be sent to the CPU, CPU find packets C_VLAN the VLAN mapping table corresponding to SP_VLAN = VLAN 1 is = VLAN 101, then the MAC 1 and VLAN 101 is added to the MAC based VLAN table and the MAC address table, at the same time, to VLAN 101 replace packets VLAN 1, and then searches for the destination MAC address of the packet in the MAC address forwarding: MAC 3 and VLAN 101 corresponding to egress port forwards the packet from the port.

[0107] 图3、4所示实施例中的VLAN mapping为1 : IVLAN mapping,在实际应用中,还存在N: IVLAN mapping (N>1且N为正整数),即:N个C_VLAN映射到同一SP_VLAN上。 [0107] Figure 3 and 4 embodiment VLAN mapping example is 1: IVLAN mapping, in practical applications, there is also N: IVLAN mapping (N> 1 and N is a positive integer), i.e.: N maps to a C_VLAN SP_VLAN the same. 此时,上行转发流程与图3所示流程的区别在于,步骤315中的流规则为:报文的源MAC地址+SP_ VLAN->C_VLAN ;下行转发流程与图4所示流程的区别在于:步骤402中,接入设备在流规则中查找报文的目的MAC地址和SP_VLAN对应的C_VLAN。 At this time, the upstream forwarding process of FIG. 3 that the difference between the flow, the flow rule as step 315: the source MAC address of the packet + SP_ VLAN-> C_VLAN; downlink forwarding process shown in Fig 4 that the flow of the difference: in step 402, the access device discovery packets in the flow rule destination MAC address and the corresponding SP_VLAN C_VLAN. [0108] 图6为本发明实施例提供的接入设备的组成示意图,如图6所示,其主要包括:表项存储模块60、端口配置模块61、上行转发模块62和下行转发模块63,其中: [0108] FIG. 6 is a schematic composition of the access device provided by the present embodiment of the invention shown in FIG. 6, which includes: a storage module 60 entry, port configuration module 61, the uplink 62 and downlink forwarding module forwarding module 63, among them:

[0109] 表项存储模块60包括:VLAN mapping表、MAC based VLAN表和MAC地址转发表存储模块。 [0109] entry storage module 60 includes: VLAN mapping table, MAC based VLAN and the MAC address forwarding table memory module.

[0110] 端口配置模块61 :为接入设备的各接入端口配置软件VLAN映射表,将配置有VLAN 映射表的各接入端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除;将各接入端口设置为软件学习MAC地址方式。 [0110] Port Configuration module 61: the access to the software configuration of each access port VLAN mapping table device will be configured with the MAC address of each access the user-side device connected to the port VLAN mapping table corresponding to the MAC address forwarding entry deleted ; each access port to the MAC address learning mode software.

[0111] 上行转发模块62 :接入设备从接入端口接收报文,在MAC based VLAN表中查找报文的源MAC地址,若未查找到,则在MAC地址转发表中查找该报文的源MAC地址和C_VLAN, 若未查找到,在VLAN映射表中查找该报文中的C_VLAN对应的SP_VLAN,将该报文的源MAC 地址和该SP_VLAN分别添加到MAC based VLAN表和MAC地址转发表中,同时下发包含C_ VLAN和SP_VLAN的流规则,以SP_VLAN替换报文中的C_VLAN,根据MAC地址转发表将报文转发出去; [0111] uplink forwarding module 62: the access device receiving a packet from the access port, the source MAC address of the packet to find the MAC based VLAN table, if not found, then search for the packet in the MAC address forwarding table C_VLAN source MAC address and, if not found, to find the corresponding message C_VLAN in SP_VLAN the VLAN mapping table, were added the source MAC address of the packet and the MAC based VLAN SP_VLAN the MAC address forwarding table, and while the stream containing the rules issued SP_VLAN C_ VLAN and to replace SP_VLAN packets C_VLAN, according to the MAC address forwarding table to forward the message;

[0112] 若在MAC based VLAN表中查找到报文的源MAC地址,则以MAC BasedVLAN表中源MAC地址对应的SP_VLAN替换报文中的C_VLAN,在MAC地址转发表中查找报文中的SP_VLAN 和源MAC地址,若查找到,则在MAC地址转发表中查找报文中的SP_VLAN和目的MAC地址对应的出端口,将报文从出端口转发出去;若未查找到,则将报文的源MAC地址和SP_VLAN添加到MAC地址转发表中,在MAC地址转发表中查找报文中的SP_VLAN和目的MAC地址对应的出端口,将报文从出端口转发出去; [0112] If the MAC based VLAN lookup table to the source address of the packet MAC, MAC BasedVLAN places table corresponding to the source MAC address in the packet replacing SP_VLAN C_VLAN, look at the MAC address forwarding packets SP_VLAN and a source MAC address, if found, then the forwarding table to find the MAC address in the packet and the destination MAC address SP_VLAN egress port forwards the packet from the port; if not found, then the packet SP_VLAN source MAC address to the MAC address forwarding table, find the packet in the MAC address forwarding table corresponding to the destination MAC address and SP_VLAN egress port forwards the packet from the port;

[0113] 若在MAC based VLAN表中未查找到报文的源MAC地址,则在MAC地址转发表中查找报文中的C_VLAN和源MAC地址,若查找到,则在MAC地址转发表中查找报文的C_VLAN和目的MAC地址对应的出端口,将报文从出端口转发出去。 [0113] If the MAC based VLAN table is not found source MAC address of the packet, the lookup packets C_VLAN and the source MAC address in the MAC address forwarding table, if found, then looks in the MAC address forwarding table C_VLAN packet destination MAC address and the corresponding port forwards the packet from the output port.

[0114] 下行转发模块63:用于从上行汇聚端口接收报文,在MAC地址转发表中查找报文中的SP_VLAN和目的MAC地址对应的出端口,在流规则中查找报文中的SP_VLAN对应的C_ VLAN,以C_VLAN替换报文中的SP_VLAN,将报文从所述出端口转发出去。 [0114] downlink forwarding module 63: for the uplink from the lookup aggregation packets received in the MAC address forwarding packets SP_VLAN and destination MAC addresses corresponding to the ports to find the corresponding SP_VLAN packets in the flow rule the C_ VLAN, to replace the packets C_VLAN SP_VLAN, the packets from the forwarding port out.

[0115] 在实际应用中,若端口配置模块61为接入设备的各接入端口配置的为N: IVLAN映射表,则,上行转发模块62在下发包含C_VLAN和SP_VLAN的流规则时,进一步将报文的源MAC地址添加到流规则中,同时,下行转发模块63从上行汇聚端口接收报文时,要根据SP_VLAN和报文的目的MAC地址在流规则中查找C_VLAN。 [0115] In practical applications, if the configuration module 61 to the access port device each access port configured to N: IVLAN when mapping table, the uplink forwarding module 62 comprises a lower fat and SP_VLAN C_VLAN flow rules, and further the source MAC address of the packet is added to the stream rule, while, when the module 63 is forwarded downstream aggregation packets received from upstream, the flow rule to find C_VLAN according SP_VLAN and destination MAC addresses of the packets.

[0116] 接入设备还可包括:老化模块,用于在发现MAC地址转发表中的MAC地址老化时, 根据该MAC地址对应的SP_VLAN,删除该SP_VLAN对应的基于MAC的VLAN分配表项和流规则。 [0116] access device further comprising: aging means for forwarding the MAC address found in the MAC address table aging, based on the MAC address corresponding to SP_VLAN, SP_VLAN deletes the corresponding MAC-based VLAN allocation table entries and stream rule.

[0117] 以上所述仅为本发明的过程及方法实施例,并不用以限制本发明,凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0117] The foregoing is only embodiments of the process and methods of the present invention, not intended to limit the present invention, any modifications made within the spirit and principle of the present invention, equivalent substitutions, improvements should be included in the within the scope of the present invention.

Claims (18)

  1. 一种基于虚拟局域网VLAN映射的转发方法,其特征在于,该方法包括:根据VLAN映射表维护基于MAC的VLAN分配表,所述VLAN分配表包括用户侧设备的MAC地址和网络侧VLAN标签的对应关系,所述网络侧VLAN标签为用户侧设备的用户侧VLAN标签对应的网络侧VLAN标签;使用用户侧发出报文的源MAC地址查询所述VLAN分配表,根据查询结果确定所述报文的网络侧VLAN标签,并将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签;根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文。 Method for forwarding it based on a VLAN mapping, wherein, the method comprising: a MAC-based VLAN allocation table, the allocation table includes a VLAN corresponding to the MAC address and VLAN tag network user side device according to the VLAN mapping table maintenance relation, the network side to the user side VLAN tag of the user-side device corresponding to the network-side VLAN tag VLAN tag; user-side MAC address of the packet source emits a query to the VLAN allocation table, the packet is determined according to the query result C-VLAN tags, and replacing the user side of the packet network side VLAN tag VLAN tag determined; forwarding packets according to the network side after the VLAN tag and replaces the destination MAC address of the packet.
  2. 2.如权利要求1所述的方法,其特征在于,所述根据所述VLAN映射表维护基于MAC的VLAN分配表包括:在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN标签,将该报文的源MAC地址和该网络侧VLAN标签分别添加到基于MAC的VLAN分配表和MAC 地址转发表中。 2. The method according to claim 1, wherein the mapping table maintained according to the VLAN MAC-based VLAN allocation table comprises: a user-side VLAN tag lookup packets sent in the user-side VLAN mapping table in VLAN tag corresponding network side, the packet and the source MAC address of the network-side VLAN tags are added to the MAC forwarding table based on the VLAN and MAC address allocation table.
  3. 3.如权利要求2所述的方法,其特征在于,所述将该报文的源MAC地址和该网络侧VLAN标签分别添加到基于MAC的VLAN分配表和MAC地址转发表中进一步包括:下发包含用户侧VLAN标签和网络侧VLAN标签的流规则,且,当接入设备从上行汇聚端口接收报文时,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 3. The method according to claim 2, wherein the packet of the source MAC address of the network-side VLAN tag were added to the MAC-based VLAN forwarding allocation table and a MAC address further comprising: at send user-side VLAN tag comprising flow rules and network-side VLAN tag, and, when the access aggregation device receives packets from an uplink port, look-VLAN tag and destination MAC address of the packet in the MAC address forwarding table corresponding egress port, look up the user-side VLAN tag VLAN tag corresponding to the network side in the flow rule to replace the user-side VLAN tag packet network-side VLAN tag to a packet forwarded from the out port.
  4. 4.如权利要求1所述的方法,其特征在于,预先将接入设备的各接入端口设置为软件学习MAC地址方式。 4. The method according to claim 1, wherein each access port provided in advance to the access device software MAC address learning mode.
  5. 5.如权利要求4所述的方法,其特征在于,对于配置有VLAN映射表的各端口,将该端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除。 5. The method according to claim 4, characterized in that for each of the ports are disposed VLAN mapping table, the MAC address of the user-side device connected to a port corresponding to the MAC address forwarding entry deleted.
  6. 6.如权利要求2所述的方法,其特征在于,所述在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN标签之前进一步包括:在基于MAC的VLAN分配表中查找报文的源MAC地址,若未查找到,在MAC地址转发表中查找报文的源MAC地址和用户侧VLAN标签,若仍未查找到,则执行所述在VLAN映射表中查找用户侧发出的报文中的用户侧VLAN标签对应的网络侧VLAN标签的动作。 6. The method according to claim 2, wherein the lookup message previously sent by the user side of the user-side VLAN tag corresponding network-side VLAN tag VLAN mapping table further comprises: In MAC-based VLAN allocation table to find the packet's source MAC address, if not found, to find the packet in the MAC address forwarding table in the user-side source MAC address and VLAN tags, if still not found, then in performing the VLAN mapping table Find the user side of the packet sent by the user-side VLAN tag corresponding to the operation of the network-side VLAN tag.
  7. 7.如权利要求1所述的方法,其特征在于,所述将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签之后、根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文之前进一步包括:在MAC地址转发表中查找报文的源MAC地址和网络侧VLAN标签,若未查找到,则将报文的源MAC地址和网络侧VLAN标签添加到MAC地址转发表中。 7. The method of claim 1 followed by the network-side VLAN tag determined, and replaces the destination MAC address of the packet according to the claim, characterized in that said packet replacing the user-side VLAN tag the network side VLAN tag before forwarding the packet further comprises: Find the message in the MAC address forwarding table source MAC address and network side VLAN tag, if not found, then the packet's source MAC address and network side VLAN tag added the MAC address forwarding table.
  8. 8.如权利要求3所述的方法,其特征在于,所述VLAN映射表为N:1映射,其中,N为大于1的正整数,所述流规则中还包含报文的源MAC地址。 8. The method according to claim 3, wherein the VLAN mapping table N: 1 mapping, where, N is a positive integer greater than 1, the stream source MAC address is also included in the packet.
  9. 9.如权利要求8所述的方法,其特征在于,所述方法进一步包括:接入设备从上行汇聚端口接收报文,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签和目的MAC地址对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 9. The method according to claim 8, wherein said method further comprises: an access device, to find a network-side VLAN tag and destination MAC packets from an uplink aggregation packets received in the MAC address forwarding table an address corresponding to the port, the user-side VLAN tag look-VLAN tag and destination MAC addresses corresponding to the flow rule to replace the user-side VLAN tag packet network-side VLAN tag, the packet forwarding from the outlet port out.
  10. 10.如权利要求1所述的方法,其特征在于,所述方法进一步包括:发现MAC地址转发表中的MAC地址老化,则根据该MAC地址对应的网络侧VLAN标签,删除该网络侧VLAN标签对应的基于MAC的VLAN分配表项和流规则。 10. The method according to claim 1, characterized in that, said method further comprising: discovering a MAC address in the MAC address forwarding table aging, is based on the MAC address corresponding to the network-side VLAN tag, removing the web-side VLAN tag the corresponding MAC-based VLAN allocation table entry and flow rules.
  11. 11. 一种接入设备,其特征在于,该设备包括:表项存储模块,存储根据VLAN映射表维护的基于MAC的VLAN分配表,所述VLAN分配表包括用户侧设备的MAC地址和网络侧VLAN标签的对应关系,所述网络侧VLAN标签为用户侧设备的用户侧VLAN标签对应的网络侧VLAN标签;上行转发模块,使用用户侧发出报文的源MAC地址查询所述VLAN分配表,根据查询结果确定所述报文的网络侧VLAN标签,并将所述报文的用户侧VLAN标签替换为所确定的网络侧VLAN标签;根据所述报文的目的MAC地址和替换后的网络侧VLAN标签转发报文。 11. An access device, characterized in that, the apparatus comprising: a storage module entry, MAC-based VLAN allocation table, the allocation table includes a user-side VLAN MAC address of the network side according to the stored VLAN mapping table maintenance corresponding relationship between the VLAN tag, the VLAN tag to the network side of the user-side equipment the user VLAN tag VLAN tag corresponding to the network side; uplink forwarding module, using the user-side issues a query to the VLAN allocation tables as the source MAC address, in accordance with query result of the determination of the packet network VLAN tag and the user-side VLAN tag of the packet replacing C-VLAN tag is identified; according to the MAC address and replaces the destination of the packet network side VLAN label forwarding packets.
  12. 12.如权利要求11所述的接入设备,其特征在于,所述上行转发模块进一步包括,用于下发包含用户侧VLAN标签和网络侧VLAN标签的流规则的模块,且,所述接入设备进一步包括:下行转发模块,用于从上行汇聚端口接收报文,在MAC 地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找网络侧VLAN标签对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN 标签,将报文从所述出端口转发出去。 12. The access apparatus according to claim 11, wherein the uplink further comprises a forwarding module, the module comprising a flow rules issued by the user side and the network side VLAN tag of the VLAN tag is used, and said ground the apparatus further comprising: a downlink forwarding module, for receiving from the uplink port aggregation packet, it searches the network-side VLAN tag and destination MAC addresses of the packets in the output port corresponding to the MAC address forwarding table to find the network side stream rule VLAN tag corresponding to the user-side VLAN tags to replace the user-side VLAN tag packet network-side VLAN tag to a packet forwarded from the out port.
  13. 13.如权利要求11所述的接入设备,其特征在于,所述接入设备进一步包括:端口配置模块,将接入设备的各接入端口设置为软件学习MAC地址方式。 13. The access device according to claim 11, wherein the access device further comprising: a port configuration module, each access port for software access device MAC address learning mode.
  14. 14.如权利要求13所述的接入设备,其特征在于,所述端口配置模块进一步包括,用于对于配置有VLAN映射表的各端口,将该端口连接的用户侧设备的MAC地址对应的MAC地址转发表项删除的模块。 14. The access device according to claim 13, wherein said port configuration module further comprises, for each port to the VLAN mapping table is arranged, and the user-side device connected to a port corresponding to the MAC address MAC address forwarding module entries deleted.
  15. 15.如权利要求13或14所述的接入设备,其特征在于,所述上行转发模块进一步包括,用于当从接入端口接收报文时,在基于MAC的VLAN分配表项中未查找到报文的源MAC地址,则在MAC地址转发表项中查找报文的源MAC地址和用户侧VLAN标签,若仍未查找到,则确定在VLAN映射表中查找该报文中的用户侧VLAN标签对应的网络侧VLAN标签的模块。 15. The access device of claim 13 or claim 14, wherein the uplink module further comprises forwarding, when a port receives a packet from an access in the MAC based VLAN allocation table entry is not found to the packet's source MAC address, the MAC address forwarding table to find the packet's source MAC address and the user-side VLAN tag entry, if still not found, it is determined to find the user-side VLAN packet in the mapping table VLAN tag corresponding network-side VLAN tag module.
  16. 16.如权利要求13或14所述的接入设备,其特征在于,所述上行转发模块进一步包括,用于当从接入端口接收报文时,若在基于MAC的VLAN 分配表中查找到报文的源MAC地址,则在MAC地址转发表项中查找报文的源MAC地址和网络侧VLAN标签,若未查找到,则将报文的源MAC地址和网络侧VLAN标签添加到MAC地址转发表中的模块。 16. The access device of claim 13 or claim 14, wherein the uplink module further comprises forwarding, when a port receives a packet from the access, if the found MAC-based VLAN assignment table source MAC address of the packet, the packet forwarding table to find the source MAC address and network side VLAN tag entry in the MAC address, if not found, then the packet's source MAC address and network side VLAN tag added to the MAC address transfer modules published.
  17. 17.如权利要求13所述的接入设备,其特征在于,所述端口配置模块在接入设备的各接入端口上配置的为N:1VLAN映射表,所述上行转发模块在下发包含用户侧VLAN标签和网络侧VLAN标签的流规则时,进一步将报文的源MAC地址添加到流规则中,所述接入设备进一步包括:下行转发模块,用于从上行汇聚端口接收报文,在MAC地址转发表中查找报文中的网络侧VLAN标签和目的MAC地址对应的出端口,在流规则中查找报文中的网络侧VLAN标签和目的MAC地址对应的用户侧VLAN标签,以用户侧VLAN标签替换报文中的网络侧VLAN标签,将报文从所述出端口转发出去。 17. The access device according to claim 13, wherein said port configuration module is configured on each access port is N: 1VLAN mapping table, forwarding the uplink user modules next hair comprising when the VLAN tag and the side flow rules-VLAN tag, the packet further source MAC address added to the stream rule, the access device further comprising: a downlink forwarding module configured to converge from the upstream packets received, in MAC address forwarding table to find a network-side VLAN tag and destination MAC address of the packet corresponding egress port, look up the user-side VLAN tag-VLAN tag and destination MAC address of the packet corresponding to the flow rules, the user-side Alternatively VLAN tag-VLAN tag of the packet, the packets from the forwarding port out.
  18. 18.如权利要求11所述的接入设备,其特征在于,该接入设备进一步包括: 老化模块,发现MAC地址转发表中的MAC地址老化,则根据该MAC地址对应的网络侧VLAN标签,删除该网络侧VLAN标签对应的基于MAC的VLAN分配表项和流规则。 18. The access device according to claim 11, wherein the access device further comprising: aging module, the MAC address found in the MAC address forwarding table aging, is based on the MAC address corresponding to the network-side VLAN tag, delete entries to the allocation table of MAC VLAN flow rules and the network side corresponding to the VLAN tag.
CN 200810227924 2008-12-01 2008-12-01 Forwarding method based on virtual LAN mapping and access equipment CN101409685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810227924 CN101409685B (en) 2008-12-01 2008-12-01 Forwarding method based on virtual LAN mapping and access equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810227924 CN101409685B (en) 2008-12-01 2008-12-01 Forwarding method based on virtual LAN mapping and access equipment

Publications (3)

Publication Number Publication Date
CN101409685A CN101409685A (en) 2009-04-15
CN101409685K1 CN101409685K1 (en) 2009-04-15
CN101409685B true CN101409685B (en) 2010-10-27

Family

ID=40572478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810227924 CN101409685B (en) 2008-12-01 2008-12-01 Forwarding method based on virtual LAN mapping and access equipment

Country Status (1)

Country Link
CN (1) CN101409685B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668238B (en) 2009-10-20 2013-04-17 上海市共进通信技术有限公司 Method, device and optical network unit for realizing N:1 concourse and 1:N conversion of VLAN in EPON
CN101860771B (en) * 2010-06-02 2014-06-11 中兴通讯股份有限公司 Home gateway identifying and networking method and system
CN101977247B (en) * 2010-10-19 2014-07-02 中兴通讯股份有限公司 Method and exchange equipment for realizing N:1 VLAN translation
CN102055641A (en) * 2010-12-28 2011-05-11 华为技术有限公司 Distribution method for virtual local area network and related device
CN102065018B (en) * 2011-01-07 2014-12-17 中兴通讯股份有限公司 Method and system for transmitting message
CN102710468A (en) * 2011-03-28 2012-10-03 华为技术有限公司 Customer service access method and system and access equipment
WO2011144067A2 (en) * 2011-05-24 2011-11-24 华为技术有限公司 Message handling method and apparatus
CN102158422B (en) * 2011-05-27 2014-07-23 杭州华三通信技术有限公司 Message forwarding method and equipment for layer 2 ring network
CN103379011A (en) * 2012-04-28 2013-10-30 瑞昱半导体股份有限公司 Device and method for achieving uplink converging and downlink conversion of virtual local area network
CN102684971A (en) * 2012-05-28 2012-09-19 太仓市同维电子有限公司 VLAN (Virtual Local Area Network) function realizing method and Linux system LAN gateway
CN102970227B (en) * 2012-11-12 2016-03-02 盛科网络(苏州)有限公司 Vxlan implemented method and apparatus for packet forwarding in asic in
CN102970226B (en) * 2012-11-12 2015-07-22 盛科网络(苏州)有限公司 Method and device for performing multicast datagram forwarding in application specific integrated circuit (ASIC)
CN103023827B (en) * 2012-11-23 2017-04-19 杭州华三通信技术有限公司 Data for a virtual data center equipment forwarding method and its implementation
CN103905285A (en) * 2014-04-06 2014-07-02 陈桂芳 Method for dividing users with the same MAC address into multiple different VLANs
CN106330492A (en) * 2015-06-23 2017-01-11 华为技术有限公司 Method, device and system of configuring user equipment forwarding table
CN105591988B (en) * 2015-09-24 2019-03-15 新华三技术有限公司 A kind of synchronous method and device of MAC Address
CN105553812A (en) * 2016-01-21 2016-05-04 盛科网络(苏州)有限公司 Many-for-one VLAN (Virtual Local Area Network) mapping chip realization method based on hardware study
CN107528780A (en) * 2016-06-21 2017-12-29 中兴通讯股份有限公司 Translation method and apparatus of virtual local area network (vlan)
CN107018081A (en) * 2017-03-15 2017-08-04 烽火通信科技股份有限公司 Point-to-multipoint 1+1 protection realizing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1551133A1 (en) 2003-12-31 2005-07-06 Alcatel Printer discovery protocol system and method
US7095738B1 (en) 2002-05-07 2006-08-22 Cisco Technology, Inc. System and method for deriving IPv6 scope identifiers and for mapping the identifiers into IPv6 addresses
CN101022392A (en) 2007-03-06 2007-08-22 华为技术有限公司 Virtual local network-based data exchanging method and equipment
CN101022394A (en) 2007-04-06 2007-08-22 杭州华为三康技术有限公司 Method for realizing virtual local network aggregating method and converging exchanger

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7095738B1 (en) 2002-05-07 2006-08-22 Cisco Technology, Inc. System and method for deriving IPv6 scope identifiers and for mapping the identifiers into IPv6 addresses
EP1551133A1 (en) 2003-12-31 2005-07-06 Alcatel Printer discovery protocol system and method
CN101022392A (en) 2007-03-06 2007-08-22 华为技术有限公司 Virtual local network-based data exchanging method and equipment
CN101022394A (en) 2007-04-06 2007-08-22 杭州华为三康技术有限公司 Method for realizing virtual local network aggregating method and converging exchanger

Also Published As

Publication number Publication date
CN101409685A (en) 2009-04-15
CN101409685K1 (en) 2009-04-15

Similar Documents

Publication Publication Date Title
CN102594711B (en) Message forwarding method and edge device therefor
US7586895B2 (en) Performing extended lookups on MAC-based tables including level 3 multicast group destination addresses
AU697935B2 (en) Method for establishing restricted broadcast groups in a switched network
US9628293B2 (en) Network layer multicasting in trill networks
CN104022960B (en) Based on the method and apparatus of OpenFlow protocol PVLAN
US20040202171A1 (en) Network and edge router
US20050111455A1 (en) VLAN server
EP2001172A2 (en) Method, system and device of the ethernet technique exchanging and forwarding
CN103685006B (en) OSPF packets at the edge of the device and forwarding method edge device
US20070274321A1 (en) Vlan Mapping For Multi-Service Provisioning
CN100542122C (en) Multiplexing method for VLAN switching tunnel and VLAN commutative field
CN100508480C (en) Apparatus and method relating to Ethernet access system
US7808994B1 (en) Forwarding traffic to VLAN interfaces built based on subscriber information strings
US7633956B1 (en) System and method for providing support for multipoint L2VPN services in devices without local bridging
CN102801599B (en) A communication method and system
EP2086178A1 (en) Link aggregation method, device, mac frame receiving/sending method and system
EP2466818A1 (en) Implementation method and system of virtual private network
CN101047583B (en) It supports virtual local area network service passive optical network system and corresponding method
US8767749B2 (en) Method and system for transparent LAN services in a packet network
CN101022394B (en) Method for realizing virtual local network aggregating and converging exchanger
CN1852240A (en) Bridge-connection transmitting method
CN1618209A (en) Method and system ralating service providers to clients in an access network, using dynamically allocated MAC addresses
WO2009074080A1 (en) Method, apparatus and system for virtual network configuration and partition switch
CN101160850B (en) Method and device for forwarding packet
CN102546351A (en) System and method for interconnecting openflow network and conventional Internet protocol (IP) network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03