WO2007031000A1 - Procede d'echange de circuit virtuel base sur l'apprentissage mac - Google Patents

Procede d'echange de circuit virtuel base sur l'apprentissage mac Download PDF

Info

Publication number
WO2007031000A1
WO2007031000A1 PCT/CN2006/002182 CN2006002182W WO2007031000A1 WO 2007031000 A1 WO2007031000 A1 WO 2007031000A1 CN 2006002182 W CN2006002182 W CN 2006002182W WO 2007031000 A1 WO2007031000 A1 WO 2007031000A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
vlan
mac
virtual circuit
packet
Prior art date
Application number
PCT/CN2006/002182
Other languages
English (en)
French (fr)
Inventor
Chaomei Gong
Zhining Ye
Longbin Hu
Yuan Qu
Xiaolong Qian
Weidong Zhong
Bin Li
Chen Wu
Wei Yu
Haoxin Jia
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Publication of WO2007031000A1 publication Critical patent/WO2007031000A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]

Definitions

  • the present invention relates to a switching technology of a Layer 2 bearer network, and in particular to a virtual circuit switching method based on Medium Access Control (MAC) learning.
  • MAC Medium Access Control
  • multiple virtual switching devices exchange packets through the ingress port and the virtual local area network (VLAN) ID, and establish virtual circuits between the source network and the destination network.
  • VLAN virtual local area network
  • the links between the source LAN and the destination LAN are likely to have different VLAN IDs or tight VLAN IDs.
  • the carrier's network has the aggregation of ports and traffic after accessing these LANs, that is, the traffic of multiple ports will be aggregated into one port, and because of the tight VLAN ID of the operation, these traffic will not only be used after convergence.
  • the technical problem to be solved by the present invention is to provide a virtual circuit switching method based on MAC learning, which solves the problem of tight VLAN ID of the operating network without changing the port and VLAN ID mapping mode of the original virtual switching device.
  • the present invention provides a virtual circuit switching method based on MAC learning, which is used for performing message exchange in a virtual circuit switched network by mapping a port of a virtual switching device and a VLAN ID, and is characterized by including The following steps:
  • the packets are forwarded according to the mapping between the ingress port and the inbound port VLAN ID and the egress port and the outbound port VLAN ID.
  • the packets For the packets that need to learn MAC addresses on the inbound interface, the packets are forwarded according to the mapping between the ingress port, the inbound port VLAN ID, the MAC address, the egress port, and the egress port VLAN ID.
  • the MAC circuit-based virtual circuit switching method described above is characterized in that, in the step of determining whether to enable the MAC learning function of the port, whether to enable MAC learning is determined according to whether multiple traffic is aggregated to one port and the same VLAN ID is used.
  • Step 201 it is determined whether there is a plurality of port traffic is collected into one port, if not, the process proceeds to step 204, and if yes, the process proceeds to step 202;
  • Step 203 Enable MAC learning function of the port.
  • Step 302 determining whether there is a corresponding virtual circuit, if not exists, discarding the message, if yes, proceeding to step 303;
  • Step 305 learning the MAC, saving the mapping relationship between the MAC and the port and the VLAN ID, after completing the MAC, proceeding to step 306;
  • Step 306 forwarding the message.
  • Step 601 searching for a virtual circuit forwarding information table according to the ingress port and the VLAN ID information, proceed to step 602;
  • Step 604 check the mapping relationship between the MAC and the port and the VLAN ID. If the entry step 606 is not found, if it is found, go to step 607;
  • Step 606 discarding the packet
  • Step 607 according to the mapping between the MAC and the port and the VLAN ID, the outbound port and The VLAN ID information replaces the VLAN ID of the text with the new VLAN ID and sends it out of the outgoing port.
  • the above-mentioned MAC learning-based virtual circuit switching method is characterized in that the virtual circuit forwarding information table is a mapping relationship between establishing an ingress port and its VLAN ID and an egress port and its VLAN ID, and establishing a port and its VLAN ID and MAC. The association between the two is established.
  • the present invention introduces a virtual circuit switching method based on MAC learning, which solves the problem of tight VLAN ID of the operating network. Compared with the traditional virtual circuit switching that only depends on the ingress port and the ingress VLAN ID to determine the port and outbound VLAN ID, it has the following advantages:
  • the present invention does not need to increase the packet length
  • FIG. 1 is a schematic diagram of a cause of a shortage of a VLAN ID of an operating network in the prior art
  • FIG. 2 is a flow chart of the port enabled MAC learning function of the present invention
  • FIG. 4 is a schematic diagram of a virtual circuit mapping entry of the present invention.
  • Figure 5 is a diagram showing the association between the port + VLAN ID and the MAC of the present invention.
  • FIG. 6 is a schematic diagram of MAC-based virtual circuit switching of the present invention. The best way to implement the invention
  • the switching device 4 has three ports: port A is connected to switching device 1, port B is connected to switching device 2, port C is connected to switching device 3, and switching device 4 is also connected to port D.
  • Port D + VLAN ID4 Because the network VLAN ID connected to the port D is tight, only the ID4 is assigned to the network connected to the switching device 4.
  • the VLAN ID of port D corresponds to three VLAN IDs of ports A, B, and C.
  • the present invention is to solve the problem of how to perform virtual circuit switching in this case.
  • the MAC address is learned. After the mapping between the port A+VLAN ID1 and the outbound port D+VLAN ID4 is established, if the MAC address learning MAC address is learned on the ingress port, the port is established between the port + VLAN ID and the MAC address. Association.
  • the packet is forwarded according to the mapping from port A+VLAN ID1 to the outbound port D+VLAN ID4.
  • Step 203 Enable MAC learning function of the port.
  • Step 204 The MAC learning function of the port is not enabled.
  • Step 303 Determine whether the port needs to learn MAC, and if it needs to learn, enter the step.
  • step 306 otherwise proceeds to step 306;
  • Step 304 Determine whether the MAC has been learned, if it has been learned, proceeds to step 306, otherwise proceeds to step 305;
  • Step 305 Learning the MAC, that is, saving the mapping relationship between the MAC and the port and the VLAN ID, and after completing the MAC, proceeding to step 306;
  • Step 306 Forward the message.
  • the virtual circuit mapping entries are as follows - port A + VLAN ID1 - "> port D + VLAN ID4;
  • Port C+VLAN ID3 One port D+V—LAN ID4; As shown in Figure 5, the association between port + VLAN ID and MAC is as follows:
  • Port A+VLAN ID1 (MAC1, MAC2, MAC3) "-- Port D+VLAN ID4;
  • Port B+VLAN ID2 (MAC4, MAC5) -> Port D+VLAN ID4;
  • Port C+VLAN ID3 (MAC6, MAC7, MAC8, MAC9) ⁇ - --" Port D+VLAN ID4;
  • the mapping entries have more information, for example: MAC1, MAC2 And MAC3 is learned from port A, MAC4 and MAC5 are learned from port B, and MAC6, MAC7, MAC8 and MAC9 are learned from port C. With this information, the original virtual circuit mapping can be used. Establish an association between the port + VLA ID and the MAC based on the '.
  • Step 601 Find the virtual circuit forwarding information table according to the ingress port and the VLAN ID information, and proceed to step 602;
  • Step 602 If the corresponding entry is not found, proceed to step 606, if the corresponding entry is found, proceed to step 603;
  • Step 603 Determine whether the port and the VLAN ID can be determined in the forwarding information. If the port indicates that there is no port to be aggregated to one port and uses the same VLAN ID, the device can forward the packet directly to step 604 ; otherwise, it exists. If multiple ports are aggregated to one port and the same VLAN ID is used, the port and the outbound VLAN ID cannot be uniquely determined based on the ingress port and the inbound VLAN ID information, and the process proceeds to step 604.
  • Step 604 Check the mapping relationship between the MAC and the port and the VLAN ID (that is, the information described in FIG. 5). If the entry step 606 is not found, if it is found, go to step 607;
  • Step 605 Replace the VLAN ID of the packet with a new VLAN ID according to the outbound port and VLAN ID information of the virtual circuit forwarding information table, and send it out from the outbound port.
  • Step 606 Discard the packet.
  • Step 607 Replace the VLAN ID of the packet with the VLAN ID of the outbound port and send it out from the egress port according to the egress port and VLAN ID information found in the mapping between the MAC address and the port ID.

Landscapes

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

Description

一种基于 MAC学习的虚拟电路交换方法 技术领域
本发明涉及二层承载网络的交换技术,特别是涉及一种基于媒质接入控制 (Mdium Access Control, MAC)学习的虚拟电路交换方法。 背景技术
在虚拟电路交换网络中, 多个虚拟交换设备通过入端口、 入虚拟局域网 (Virtual Local Area Network, VLAN) ID进行报文交换, 在源网络和目的 网络之间建立虚拟电路。
目前, 在 IEEE802. 1Q标准中, VLAN ID的长度只有 12位, 也就是说整个 二层网络中只能够支持 4096个全局的 VLAN,远远不能够满足运营网络的要求。
由于城域网规划的复杂性,源局域网和目的局域网之间经过的链路很可能 VLAN ID不同或者 VLAN ID紧张。
采用入端口、 入 VLAN ID进行报文交换的同时也将 VLAN ID进行了替换, 这种方法解决了在源局域网和目的局域网之间经过的链路 VLAN ID不同的问 题, 无法解决当 VLAN ID紧张的问题, VLAN ID紧张产生的原因详细描述如下: 企业网、校园网等不计其数的局域网接入到运营商的网络中,基于规划和 管理的需要, 运营商会给这些局域网分配不同的 VLAN ID, 但是运营商的网络 在接入这些局域网后存在端口和流量的汇聚,也就是说多个端口的流量会被汇 聚到一个端口中, 并且由于运营上的 VLAN ID紧张, 这些流量汇聚后不但使用 相同的出端口而且还有可能使用相同的 VLAN ID。
基于不同入端口和 VLAN ID选择不同的出端口和 VLAN ID的原则显然无法 解决上面的问题。
解决虚拟电路交换碰到的 VLAN ID紧张的问题目前可以使用层次化 VLAN, 即如果存在多个端口汇集到一个端口且需要使用相同的 VLAN的情况, 采用在 原来报文的外层 VLAN ID前再封装一层 VLAN ID, 建立多个端口和 VLAN ID与 一个端口和多层 VLAN ID的相互映射关系, 虚拟交换设备使用这种映射关系完 成报文的交换。 使用多层次的 VLAN虽然很容易解决 VLAN ID紧张的问题, 但 是也存在三个缺点: 1、需要进行复杂的配置工作, 不方便维护; 2、增加了一 层 VLAN ID也就增加了报文的长度,特别是以太网,直接导致线路利用率下降; 3、 由于最大传输单元 (Maximum Transmission Unit, MTU) 的限制, 某些较 长的报文可能因为长度增加无法在网络上正确传送。 发明公开
本发明所要解决的技术问题在于提供基于 MAC学习的虚拟电路交换方法, 在不改变原有的虚拟交换设备的端口和 VLAN ID映射方式情况下, 解决运营网 络 VLAN ID紧张的问题。
为了实现上述目的, 本发明提供了一种基于 MAC学习的虚拟电路交换方 法, 用于在虚拟电路交换网络中, 通过虚拟交换设备的端口和 VLAN ID的映射 进行报文交换, 其特点在于, 包括如下步骤:
判断是否启用端口的 MAC学习功能;
接收到报文时学习 MAC, 建立入端口及其 VLAN ID与出端口及其 VLAN ID 的映射关系后, 如果在入端口收到需要学习 MAC的报文时学习 MAC, 建立端口 及其 VLAN ID与 MAC之间的关联;
对于入端口不需要学习 MAC的报文, 按照入端口、 入端口 VLAN ID与出端 口、 出端口 VLAN ID的映射关系转发报文;
对于入端口需要学习 MAC的报文, 按照入端口、 入端口 VLAN ID、 MAC信 息与出端口、 出端口 VLAN ID的映射关系来转发报文。
上述的基于 MAC学习的虚拟电路交换方法,其特点在于,在判断是否启用 端口的 MAC学习功能的步骤中,根据是否存在多个流量汇集到一个端口并且使 用相同的 VLAN ID来决定是否启用 MAC学习功能。
上述的基于 MAC学习的虚拟电路交换方法,其特点在于,所述判断是否启 用端口的 MAC学习功能的步骤包含如下步骤:
步骤 201, 判断是否存在多个端口流量汇集到一个端口, 不存在时转入步 骤 204, 存在时进入步骤 202;
步骤 202, 判断是否汇集到一个端口的相同的 VLAN ID, 不是时进入步骤 204, 是汇集到相同的 VLAN ID时进入步骤 203;
步骤 203, 启用该端口的 MAC学习功能;
步骤 204, 不启用该端口的 MAC学习功能。 上述的基于 MAC学习的虚拟电路交换方法,其特点在于,端口的 MAC学习 过程包含如下步骤:
步骤 301, 判断端口进来的报文是否是合法的 MAC报文, 如果不是则丢弃 该报文, 是的话进入步骤 302;
步骤 302, 判断是否存在对应的虚拟电路, 不存在则丢弃报文, 存在的话 进入步骤 303;
步骤 303, 判断该端口是否需要进行 MAC学习, 如果需要学习, 进入步骤 304, 否则进入步骤 306;
步骤 304, 判断是否已经学习了该 MAC, 如果已经学习, 进入步骤 306, 否则进入步骤 305;
步骤 305, 学习 MAC, 保存 MAC与端口和 VLAN ID之间的映射关系, 学完 MAC后进入步骤 306;
步骤 306, 转发报文。
上述的基于 MAC学习的虚拟电路交换方法,其特点在于,所述转发报文的 过程包含如下步骤:
步骤 601, 根据入端口和 VLAN ID信息查找虚拟电路转发信息表 进入歩 骤 602;
步骤 602, 如果没有査到相应条目进入步骤 606, 如果査到相应条目进入 步骤 603;
步骤 603, 判断转发信息里是否已经能够确定出端口和 VLAN ID, 如果是 表示不存在多个端口汇集到一个端口并且使用相同的 VLAN ID这种情况, 可以 直接转发, 进入步骤 604; 否则就是存在多个端口汇集到一个端口并且使用相 同的 VLAN ID这种情况, 只根据入端口和入 VLAN ID信息无法唯一确定出端口 和出 VLAN ID, 进入步骤 604;
步骤 604, 查 MAC与端口和 VLAN ID之间的映射关系, 如果没有查到进入 步骤 606, 如果査到进入步骤 607;
步骤 605, 按照虚拟电路转发信息表的出端口和 VLAN ID信息将报文的 VLAN ID替换成出端口的 VLAN ID并从出端口中发送出去;
步骤 606, 丢弃报文;
步骤 607, 按照 MAC与端口和 VLAN ID之间的映射关系所查到的出端口和 VLAN ID信息将拫文的 VLAN ID替换成新的 VLAN ID并从出端口中发送出去。 上述的基于 MAC学习的虚拟电路交换方法,其特点在于,所述虚拟电路转 发信息表为在建立入端口及其 VLAN ID与出端口及其 VLAN ID的映射关系和建 立端口及其 VLAN ID与 MAC之间的关联时所建立。
上述的基于 MAC学习的虚拟电路交换方法,其特点在于,在判断是否启用 端口的 C学习功能的步骤中,根据在转发条目中保存一信息来决定是否要学 习命中该转发条目的报文的源 MAC, 所述信息包含是否存在多个流量汇集到一 个端口并且使用相同的 VLAN ID来决定是否启用 MAC学习功能。
与现有技术相比,本发明引入基于 MAC学习的虛拟电路交换的方法,解决 了运营网络 VLAN ID紧张的问题。 与传统的只依赖入端口和入 VLAN ID确定出 端口和出 VLAN ID的虚拟电路交换相比具有以下优点:
解决了运营网络 VLAN ID紧张的问题;
省掉了多层 VLAN ID解决方案需要进行的复杂的配置; .
相对于使用多层 VLAN ID解决方案增加报文长度, 本发明不需要增加报文 长度;
由于 MAC学习是自动完成的, 组网灵活。 附图简要说明
图 1是现有技术中运营网络 VLAN ID紧张产生原因示意图;
图 2是本发明的端口启用 MAC学习功能流程图;
图 3是本发明的 MAC学习流程图;
图 4是本发明的虚拟电路映射条目示意图;
图 5是本发明的端口 + VLAN ID与 MAC之间的关联图;
图 6是本发明的基于 MAC的虚拟电路交换示意图。 实现本发明的最佳方式
下面结合附图对本发明基于 MAC学习的虚拟电路交换方法进行具体的说 明。 '
如图 1所示, 交换设备 4有 3个端口: 端口 A连接交换设备 1, 端口 B连 接交换设备 2, 端口 C连接交换设备 3, 另外, 交换设备 4还有一个端口 D连 接交换网络, 建立的虚拟电路共三条, 分别是: 端口 A+ VLAN IDl^- --- 端 口 D+ VLAN ID4、 B+ VLAN ΙΌ2<τ --- 端口 D+ VLAN ID4和 C+ VLAN ID3 一- 端口 D+ VLAN ID4, 由于与端口 D相连的网络 VLAN ID紧张, 只 分配了 ID4给交换设备 4所连接的网络, 导致了端口 D的 VLAN ID4对应端口 A, B, C共三个 VLAN ID。 本发明就是要解决这种情况下如何进行虚拟电路交 换。
为了方使说明,假设端口 A并且 VLAN ID为 ID1要交换端口 D并且 VLAN ID 为 ID4; 端口 B并且 VLAN ID为 ID2要交换端口 D并且 VLAN ID为 ID4; 端口 C并且 VLAN ID为 ID3要交换端口 D并且 VLAN ID为 ID4。
本发明采用以下技术方案:
启用端口 MAC学习功能,并不是所有入端口都需要启用,而是根据是否存 在多个端口流量汇集到一个端口并且使用相同的 VLAN ID来决定是否启用 MAC 学习功能。也可以在转发条目中保存此信息, 即是否要学习命中该转发条目的 报文的源 MAC。
接收到报文时学习 MAC, 建立端口 A+VLAN ID1到出端口 D+VLAN ID4映 射关系后, 如果在入端口收到需要学习 MAC的报文学习 MAC, 建立端口 +VLAN ID与 MAC之间的关联。
按照端口 A+VLAN ID1到出端口 D+VLAN ID4映射关系转发报文。
对于从端口 D且 VLAN ID为 ID4进来的报文, 只使用端口和 VLAN ID是无 法确定出端口和 VLAN ID的, 这时候需要加上目的 MAC信息, 这样就可以确定 出端口和 VLAN ID了。 即按照端口 +VLAN ID+MAC进行转发。
下面结合图 2至图 6, 详细说明本发明的虚拟电路交换方法。
端口判断是否启用 MAC学习方法的流程如图 2所示:
步骤 201 : 判断是否存在多个端口流量汇集到一个端口, 不存在时进入步 骤 204, 存在时进入步骤 202;
步骤 202: 判断是否汇集到相同的 VLAN ID, 不是的进入步骤 204, 是汇 集到相同 VLAN ID时进入步骤 203;
步骤 203: 启用该端口的 MAC学习功能;
步骤 204: 不启用该端口的 MAC学习功能。
如图 3所示, MAC学习工作过程如下: 步骤 301: 判断端口进来的报文是否是合法的 MAC报文, 如果不是则丢弃 该报文, 是的话进入步骤 302;
步骤 302: 判断是否存在对应的虚拟电路, 不存在则丢弃报文, 存在的话 进入步骤 303;
步骤 303: 判断该端口是否需要进行 MAC学习, 如果需要学习, 进入步骤
304, 否则进入步骤 306;
步骤 304: 判断是否已经学习了该 MAC, 如果已经学习, 进入步骤 306, 否则进入步骤 305;
步骤 305: 学习 MAC, 即保存 MAC与端口和 VLAN ID之间的映射关系, 学 完 MAC后进入步骤 306;
步骤 306: 转发报文。
如图 4所示, 虚拟电路映射条目如下- 端口 A+VLAN ID1 ―" >端口 D+VLAN ID4;
端口 B+VLA ID2^— 端口 D+VLAN ID4;
端口 C+VLAN ID3 一 端口 D+V— LAN ID4; 如图 5所示, 端口 +VLAN ID与 MAC之间的关联如下:
端口 A+VLAN ID1 (MAC1 , MAC2, MAC3) "—― 端口 D+VLAN ID4;
端口 B+VLAN ID2 (MAC4, MAC5) —— >端口 D+VLAN ID4;
端口 C+VLAN ID3 (MAC6, MAC7, MAC8, MAC9) <- --" 端口 D+VLAN ID4; 在增加 MAC学习后,在图 4的基础上,映射条目多了一些信息,例如: MAC1, MAC2和 MAC3是从端口 A学习到的, MAC4和 MAC5是从端口 B学习到的,而 MAC6, MAC7, MAC8和 MAC9是从端口 C学习到的。 有了这些信息, 就可以在原来的虚 拟电路映射基础上建立端口 +VLA ID与 MAC之间的关联。'
如图 6所示, 图 3中的步骤 306转发报文的过程如下:
步骤 601 : 根据入端口和 VLAN ID信息查找虚拟电路转发信息表, 进入步 骤 602;
步骤 602: 如果没有査到相应条目进入步骤 606, 如果査到相应条目进入 步骤 603; 步骤 603: 判断转发信息里是否已经可以确定出端口和 VLAN ID, 如果是 表示不存在多个端口汇集到一个端口并且使用相同的 VLAN ID这种情况, 可以 直接转发, 进入步骤 604; 否则就是存在多个端口汇集到一个端口并且使用相 同的 VLAN ID这种情况, 只根据入端口和入 VLAN ID信息无法唯一确定出端口 和出 VLAN ID, 进入步骤 604;
步骤 604: 査 MAC与端口和 VLAN ID之间的映射关系 (即图 5中描述的信 息) , 如果没有查到进入步骤 606, 如果查到进入步骤 607;
步骤 605: 按照虚拟电路转发信息表的出端口和 VLAN ID信息将报文的 VLAN ID替换成新的 VLAN ID并从出端口中发送出去;
步骤 606: 丢弃报文;
步骤 607: 按照 MAC与端口和 VLAN ID之间的映射关系所查到的出端口和 VLAN ID信息, 将报文的 VLAN ID替换成出端口的 VLAN ID并从出端口中发送 出去。
. 当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情 况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但 这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 工业应用性
本发明组网灵活, 简单易行。 本发明提供的端口、 VLAN ID和 MAC关联的 方法扩展了现有技术局域网中有限的 VLAN ID应用, 使汇集到相同端口而且相 同 VLAN ID的多个端口的流量可以准确确定出端口和出 VLAN ID。

Claims

权利要求书
1、一种基于 MAC学习的虚拟电路交换方法,用于在虚拟电路交换网络中, 通过虚拟交换设备的端口和 VLAN ID的映射进行报文交换, 其特征在于, 包括 如下步骤:
判断是否启用端口的 MAC学习功能;
接收到报文时学习 MAC, 建立入端口及其 VLAN ID与出端口及其 VLAN ID 的映射关系后, 如果在入端口收到需要学习 MAC的报文时学习 MAC, 建立端口 及其 VLAN ID与 MAC之间的关联;
对于入端口不需要学习 MAC的报文, 按照入端口、 入端口 VLAN ID与出端 口、 出端口 VLAN ID的映射关系转发报文;
对于入端口需要学习 MAC的报文, 按照入端口、 入端口 VLAN ID、 MAC信 息与出端口、 出端口 VLAN ID的映射关系来转发报文。
2、 根据权利要求 1所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于,在判断是否启用端口的 MAC学习功能的步骤中,根据是否存在多个流量汇 集到一个端口并且使用相同的 VLAN ID来决定是否启用 MAC学习功能。
3、 根据权利要求 2所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于, 所述判断是否启用端口的 MAC学习功能的步骤包含如下步骤:
步骤 201, 判断是否存在多个端口流量汇集到一个端口, 不存在时转入步 骤 204, 存在时进入步骤 202;
步骤 202, 判断是否汇集到一个端口的相同的 VLAN ID, 不是时进入步骤 204, 是汇集到相同的 VLAN ID时进入步骤 203;
步骤 203, 启用该端口的 MAC学习功能;
步骤 204, 不启用该端口的 MAC学习功能。
4、 根据权利要求 3所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于, 端口的 MAC学习过程包含如下步骤:
步骤 301, 判断端口进来的报文是否是合法的 MAC报文, 如果不是则丢弃 该报文, 是的话进入步骤 302;
步骤 302, 判断是否存在对应的虚拟电路, 不存在则丢弃报文, 存在的话 进入步骤 303; 步骤 303, 判断该端口是否需要进行 MAC学习, 如果需要学习, 进入步骤 304, 否则进入步骤 306;
步骤 304, 判断是否已经学习了该 MAC, 如果已经学习, 进入步骤 306, 否则进入步骤 305;
步骤 305, 学习 MAC, 保存 MAC与端口和 VLAN ID之间的映射关系, 学完
MAC后进入步骤 306;
步骤 306, 转发报文。
5、 根据权利要求 4所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于, 所述转发报文的过程包含如下步骤:
步骤 601, 根据入端口和 VLAN ID信息查找虚拟电路转发信息表, 进入步 骤 602;
步骤 602, 如果没有查到相应条目进入步骤 606, 如果査到相应条目进入 步骤 603;
步骤 603, 判断转发信息里是否已经能够确定出端口和 VLAN ID, 如果是 表示不存在多个端口汇集到一个端口并且使用相同的 VLAN ID这种情况,可以 直接转发, 进入步骤 604; 否则就是存在多个端口汇集到一个端口并且使用相 同的 VLAN ID这种情况, 只根据入端口和入 VLAN ID信息无法唯一确定出端口 和出 VLAN ID, 进入步骤 604;
步骤 604, 査 MAC与端口和 VLAN ID之间的映射关系, 如果没有査到进入 步骤 606, 如果査到进入步骤 607;
步骤 605, 按照虚拟电路转发信息表的出端口和 VLAN ID信息将报文的 VLAN ID替换成出端口的 VLAN ID并从出端口中发送出去;
步骤 606, 丢弃报文;
步骤 607, 按照 MAC与端口和 VLAN ID之间的映射关系所查到的出端口和 VLAN ID信息将报文的 VLAN ID替换成新的 VLAN ID并从出端口中发送出去。
6、 根据权利要求 5所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于,所述虚拟电路转发信息表为在建立入端口及其 VLAN ID与出端口及其 VLAN ID的映射关系和建立端口及其 VLAN ID与 MAC之间的关联时所建立。
7、 根据权利要求 1所述的基于 MAC学习的虚拟电路交换方法, 其特征在 于,在判断是否启用端口的 MAC学习功能的步骤中,根据在转发条目中保存一 信息来决定是否要学习命中该转发条目的报文的源 MAC, 所述信息包含是否存 在多个流量汇集到一个端口并且使用相同的 VLAN ID来决定是否启用 MAC学习 功能。
PCT/CN2006/002182 2005-09-13 2006-08-25 Procede d'echange de circuit virtuel base sur l'apprentissage mac WO2007031000A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005100864160A CN100382541C (zh) 2005-09-13 2005-09-13 一种基于mac学习的虚拟电路交换方法
CN200510086416.0 2005-09-13

Publications (1)

Publication Number Publication Date
WO2007031000A1 true WO2007031000A1 (fr) 2007-03-22

Family

ID=36093716

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002182 WO2007031000A1 (fr) 2005-09-13 2006-08-25 Procede d'echange de circuit virtuel base sur l'apprentissage mac

Country Status (2)

Country Link
CN (1) CN100382541C (zh)
WO (1) WO2007031000A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452593A (zh) * 2021-06-10 2021-09-28 烽火通信科技股份有限公司 一种olt vxlan与多切片共存的方法和装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098291B (zh) * 2006-06-29 2010-04-14 中兴通讯股份有限公司 在接入设备上防止介质访问控制地址表扰乱的方法
CN101102264B (zh) * 2006-07-04 2011-07-20 华为技术有限公司 一种以太网转发数据的方法和一种以太网系统
CN101141381B (zh) * 2006-09-06 2011-04-27 杭州华三通信技术有限公司 网络节点及其所在环网减少媒介接入控制地址学习的方法
CN101488862B (zh) * 2009-02-23 2012-02-08 中兴通讯股份有限公司 分布式以太网交换机及其内部的mac地址维护方法
CN102111318B (zh) 2009-12-23 2013-07-24 杭州华三通信技术有限公司 分配虚拟局域网资源的方法和交换机
US8670450B2 (en) * 2011-05-13 2014-03-11 International Business Machines Corporation Efficient software-based private VLAN solution for distributed virtual switches
CN102710526A (zh) * 2012-06-20 2012-10-03 杭州华三通信技术有限公司 一种基于运营商骨干桥接网的负载均衡方法和beb设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188691B1 (en) * 1998-03-16 2001-02-13 3Com Corporation Multicast domain virtual local area network
US6266705B1 (en) * 1998-09-29 2001-07-24 Cisco Systems, Inc. Look up mechanism and associated hash table for a network switch
CN1357997A (zh) * 2000-12-15 2002-07-10 华为技术有限公司 以太网接入网中的虚拟局域网接入方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188691B1 (en) * 1998-03-16 2001-02-13 3Com Corporation Multicast domain virtual local area network
US6266705B1 (en) * 1998-09-29 2001-07-24 Cisco Systems, Inc. Look up mechanism and associated hash table for a network switch
CN1357997A (zh) * 2000-12-15 2002-07-10 华为技术有限公司 以太网接入网中的虚拟局域网接入方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452593A (zh) * 2021-06-10 2021-09-28 烽火通信科技股份有限公司 一种olt vxlan与多切片共存的方法和装置
CN113452593B (zh) * 2021-06-10 2022-06-03 烽火通信科技股份有限公司 一种olt vxlan与多切片共存的方法和装置

Also Published As

Publication number Publication date
CN1741499A (zh) 2006-03-01
CN100382541C (zh) 2008-04-16

Similar Documents

Publication Publication Date Title
WO2007031000A1 (fr) Procede d&#39;echange de circuit virtuel base sur l&#39;apprentissage mac
US8446914B2 (en) Method and system for link aggregation across multiple switches
US9019976B2 (en) Redundant host connection in a routed network
JP4531063B2 (ja) 仮想私設網においてサービス品質を保証するためのシステムおよびその方法
US9843507B2 (en) Enhanced hierarchical virtual private local area network service (VPLS) system and method for ethernet-tree (E-tree) services
EP2051450B1 (en) Method and system for forwarding data between a plurality of provider ethernet networks
CN1946041B (zh) 基于arp侦听的vlan聚合方法、汇聚交换机及系统
CN101043430B (zh) 一种设备之间网络地址转换的方法
WO2009033428A1 (fr) Procédé, système et dispositif pour retirer une adresse de commande d&#39;accès au support
WO2007016839A1 (en) Method and system for carrying out hierarchical virtual private switch services
CN1863129A (zh) 一种基于二层vpn异种介质互通的系统和方法
WO2007112691A1 (fr) Système, procédé et dispositif réseau permettant à un client de réseau privé virtuel (vpn) d&#39;accéder à un réseau public
WO2008011818A1 (fr) Procédé de fourniture d&#39;un service réseau local privé virtuel à hiérarchie et système réseau
WO2011160517A1 (zh) 一种多协议标签交换业务隧道切换的方法及系统
WO2013139159A1 (zh) 在网络中转发报文的方法和运营商边缘设备
WO2007076679A1 (fr) Procede et dispositif pour la qualite de gestion de service basee sur un ensemble de reseaux locaux virtuels
CN102255787B (zh) 一种基于服务质量的报文处理方法和运营商网络边缘设备
WO2011160464A1 (zh) 一种报文的转发方法及交换芯片
WO2005114944A1 (fr) Procede de mise en place d&#39;un reseau prive virtuel de sites ipv4 et ipv6
WO2005125103A1 (fr) Systeme de reseau prive virtuel d&#39;un site hybride et reseau de base hybride et procede de mise en oeuvre associe
CN101656671A (zh) 一种报文发送的方法及装置
WO2007031006A1 (en) A virtual switching method which could be routed
CN1716901A (zh) 混合站点混合骨干网的虚拟专用网系统及其实现方法
WO2007104201A1 (fr) Procédé d&#39;acheminement de messages dans un tunnel de services
WO2007093095A1 (fr) Procédé pour mettre en oeuvre l&#39;acheminement de messages mpls et équipement correspondant

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06775500

Country of ref document: EP

Kind code of ref document: A1