[go: up one dir, main page]

WO2014040422A1 - Control method and device for medium access control address learning and route bridge - Google Patents

Control method and device for medium access control address learning and route bridge Download PDF

Info

Publication number
WO2014040422A1
WO2014040422A1 PCT/CN2013/075603 CN2013075603W WO2014040422A1 WO 2014040422 A1 WO2014040422 A1 WO 2014040422A1 CN 2013075603 W CN2013075603 W CN 2013075603W WO 2014040422 A1 WO2014040422 A1 WO 2014040422A1
Authority
WO
WIPO (PCT)
Prior art keywords
data frame
routing bridge
node type
access control
address learning
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2013/075603
Other languages
French (fr)
Chinese (zh)
Inventor
谢莹
顾勤丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2014040422A1 publication Critical patent/WO2014040422A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a medium access control address learning control method, apparatus, and routing bridge. Background technique
  • TRILL Transparent Interconnection of Lots of Links
  • L2 link layer
  • STP Spanning Tree Protocol
  • TRILL solves the L2 loop problem by introducing the intermediate system to intermediate system (ISS) routing protocol into the L2 network, while preserving the L2 multipath.
  • ISS intermediate system to intermediate system
  • the TRILL technology is used to support a Layer 2 switching network, and the number of hosts connected to the Layer 2 switching network is increasing, and the routing bridge (Route Bridge, RB) Medium access control (MAC) learning for all received Ethernet frames or TRILL data frames, resulting in an increase in the number of entries in the MAC address table. Media is required for each received data frame.
  • the access control address learning will result in insufficient capacity of the MAC address table of the RBridge device, high requirements for access devices in the network, and poor network compatibility.
  • an embodiment of the present invention provides a medium access control address learning control method, apparatus, and RBridge.
  • the technical solution is as follows:
  • the present invention provides a media access control address learning control method, where the method is applied to a multi-connection transparent interconnect TRILL network, including:
  • the routing bridge receives the TRILL data frame
  • Determining whether to perform media access control address learning according to the node type of the RB and the data frame including: when the TRILL data frame is a multicast that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released. a data frame, or the TRILL data frame is a unicast data frame, and the destination RB of the TRILL data frame is the RB, obtaining a node type of the source RBridge;
  • the media access control address learning is determined to be performed or not according to the node type of the RBridge and the node type of the source RBridge.
  • Determining whether to perform media access control address learning according to the RB and the node type of the source RB including:
  • the routing bridge receives the TRILL data frame, which previously includes:
  • the routing bridge receives the configuration information of the carrying node type, and saves the node type; the routing bridge acquires configuration information of a node type that carries other routing bridges in the TRILL network, and saves the other routing bridges and corresponding The node type.
  • the present invention provides a medium access control address learning control apparatus, including: a receiving module, configured to receive a TRILL data frame;
  • a determining module configured to determine whether to perform media access control address learning according to a node type of the routing bridge and the TRILL data frame.
  • the determining module includes: And the data frame is a multicast data frame that is copied to the port of the RB bridge after the TRILL encapsulation is required, and the data frame is a unicast data frame, and the destination RB of the data frame is the RB Obtaining a node type of the source routing bridge;
  • a determining unit configured to determine whether to perform media access control address learning according to a node type of the RBridge and a node type of the source RBridge.
  • the determining unit is specifically configured to: when the node type of the RBridge and the node type of the source RBridge are both user-facing, determine that media access control address learning is not performed; otherwise, determine media access control address learning. .
  • the device also includes:
  • the present invention provides a routing bridge, comprising: a transceiver for acquiring a signal; a processor coupled to the receiver, and a memory coupled to the transceiver and the processor, respectively; The device is configured to determine whether to perform media access control address learning according to a node type of the RBridge and a TRILL data frame received by the transceiver.
  • the processor is specifically configured to acquire a destination RB and a source RB of the TRILL data frame; and when the data frame is a multicast data frame that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released,
  • the data frame is a unicast data frame
  • the destination RB of the data frame is the RB, obtaining the node type of the source RBridge; according to the node type of the RBridge and the node type of the source RBridge, Make sure that media access control address learning is performed or not.
  • the medium access control address learning control method, device and routing bridge provided by the embodiment of the present invention receive a TRILL data frame through a routing bridge; determine whether to perform media without or according to the node type of the routing bridge and the TRILL data frame. Access control address learning.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing.
  • the medium access control address learning of the bridge avoids the routing in the prior art that requires media access control address learning for each received TRILL data frame.
  • the problem of insufficient capacity of the bridge device MAC address table reduces the requirements for access devices in the network and improves network compatibility.
  • Figure la is a flow chart of a medium access control address learning control method according to an embodiment of the present invention.
  • Figure lb is a networking diagram of a TRILL network provided by an embodiment of the present invention.
  • FIG. 2 is a flow chart of a medium access control address learning control method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a medium access control address learning control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a routing bridge according to an embodiment of the present invention. detailed description
  • the device running the TRILL protocol is called RB.
  • the RB has a switching function and a routing function, can recognize the topology of the TRILL network, and can generate a routing forwarding table to other RBs.
  • it is responsible for encapsulating the received unicast data frame into a TRILL format (ie, adding a TRILL header and an inner MAC frame header in front of the original data frame, and the encapsulated data frame is called a TRILL data frame).
  • the RB that is forwarded to the TRILL network is called the Ingress RB.
  • FIG. 1a is a flowchart of a medium access control address learning control method according to an embodiment of the present invention. Referring to FIG. 1a, the method includes:
  • the routing bridge receives the TRILL data frame.
  • the RB RB receives two data frames, one is a normal data frame and the other is a TRILL data frame.
  • the embodiment of the present invention only focuses on the case where a TRILL data frame is received.
  • the RBridge receiving the TRILL data frame is configured as a preset node type according to its location in the TRILL network, and the preset node type may be a first node type (user access side node) or a second node type. (Gateway side node;), specifically configuring the type of the routing bridge, according to the location of the routing bridge in the network or according to the network transmission needs.
  • the preset node type may be a first node type (user access side node) or a second node type. (Gateway side node;), specifically configuring the type of the routing bridge, according to the location of the routing bridge in the network or according to the network transmission needs.
  • the RB bridge determines whether to perform the medium access control address learning according to the information such as the source routing bridge of the TRILL data frame, so that the node of the RB bridge
  • the type and the TRILL data frame are in compliance with the condition that the medium access control address learning is not performed, the medium access control address learning is not performed, and the media access is performed when the node type of the RBridge and the data frame conform to the condition for performing the medium access control address learning. Controlling address learning, through the configuration of the node type of the routing bridge itself, achieves the purpose of control.
  • Media access control address MAC address learning means that when a port of an RB receives a data frame, it analyzes the source MAC address and the virtual local area network identifier of the data frame. If the source MAC address is legal, the source MAC address and the virtual local area network identifier are used as the key value. The MAC address table is searched. If the source MAC address does not exist in the MAC address table, the source MAC address is added to the MAC address table. If the source MAC address already exists in the MAC address table, the entry is updated.
  • the media access control address learning control method provided by the embodiment of the present invention receives a TRILL data frame through a RBridge; and determines whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing.
  • the medium access control address learning of the bridge avoids the prior art due to the TRILL data frames received for each
  • the problem of insufficient capacity of the routing bridge device MAC address table caused by media access control address learning is required, the requirements for access devices in the network are reduced, and network compatibility is improved.
  • the step 102 determining, according to the node type of the RBridge and the data frame, determining whether to perform media access control address learning, specifically including the following step:
  • the TRILL data frame includes a TRILL packet header, the packet header carries the destination RB of the TRILL data frame, and the source RB bridge.
  • the destination RB of the data frame is obtained from the TRILL packet header. And the source RBridge.
  • the TRILL data frame is a multicast data frame that is copied to the local port after the TRILL encapsulation needs to be released, or the TRILL data frame is a unicast data frame, and the destination RB of the TRILL data frame is the route.
  • a bridge acquiring a node type of the source routing bridge;
  • the node type of the source RBridge is obtained according to the mapping relationship between the locally learned RBridge and its node type. It should be noted that the mapping relationship between the RB and its node type is learned by the ISIS protocol when the RB bridge is in the network. The node type corresponding to each RB is set by the technical personnel during networking. limited.
  • the multicast data frame is a multicast data frame that needs to be copied to the local port after the TRILL encapsulation is cancelled, and when the RB bridge receives the
  • the multicast data frame needs to be copied, and the multicast data frame is sent to multiple destination RBridges according to the TRILL routing forwarding table, so that the multicast data frame can be received by multiple destination RBridges.
  • the determination of the multicast data frame to be copied to the local port after the TRILL encapsulation is required is disclosed in the prior art, and is not described herein.
  • the destination RB of the TRILL data frame is the RB
  • the destination RB is the RBridge.
  • the RB is the endpoint of the unicast data frame.
  • the RB is the egress of the TRILL network and is responsible for decapsulating the TRILL data frame into the original data frame and forwarding it.
  • Controlling whether the MAC address is learned or not is performed on the TRILL data frame according to the node type that is known by the RB and the node type of the source RB that is obtained by the mapping.
  • the node type of the RB and the node type of the source RB may be the same or different.
  • the node type there may be any of the following cases: (1) When the RBridge When the node type of the node is the same as the node type of the source RBridge, it is determined that the medium access control address learning is not performed; (2) when the node type of the RBridge and the node type of the source RBridge are the same, the medium is determined to be performed.
  • the step (3) in the step 102 determines whether the media access control address is performed or not according to the node type of the routing bridge and the source routing bridge. The learning includes: when the node type of the RBridge and the node type of the source RB are both user-facing, it is determined that media access control address learning is not performed; otherwise, determining media access control address learning is performed.
  • the node type of the routing bridge may be a first type or a second type, and the first type may be a user-oriented node, that is, a user.
  • the access node on the side is represented by a Spoken RB
  • the second type may be a gateway node, that is, an access node on the LAN gateway side, represented by a Hub RB, when the node type of the RBridge and the source route If the node type of the bridge is Spoken RB, it is determined that the medium access control address learning is not performed; otherwise, the medium access control address learning is determined.
  • the first type or the second type may be set by the technician according to the location of the routing bridge in the network when the network is configured, for example, for the routing bridge of the user access side, the node type may be set to The first type, that is, the Spoken RB, receives the multicast data frame that needs to be copied to the port of the RB bridge, or the data frame is a unicast data frame and the purpose of the data frame.
  • the routing bridge is the routing bridge, it is determined that the medium access control address learning is not performed, thereby supporting the user-oriented node. Instead of learning the MAC of the attached device that is the same as the user node, learn the MAC of the attached device that is facing the gateway node.
  • Figure lb is a network diagram of RBs in a TRILL network according to an embodiment of the present invention.
  • RBI and RB2 are the ingress of the TRILL network
  • RB3 and RB4 are the transmission RBs
  • RB5 and RB6 are the egress RBs.
  • RB5 and RB6 may be set as the user-oriented node, that is, the Spoken RB.
  • the other RBs are set to face the gateway node, Hub RB.
  • the TRILL data frame is a unicast data frame and the destination RBridge is RB6, or the TRILL data frame is copied to the TRILL package.
  • the multicast data frame of the port of the RB bridge is judged according to the node type of the RB6 and the node type of the RB2, and the setting of the LB6 indicates that the node type of the RB6 is a Spoken RB, and the node type of the RB2 is a Hub. If RB does not meet the conditions for MAC address learning, MAC address learning is required to achieve the purpose of learning only the MAC of the RB on the gateway side.
  • the TRILL data frame When the RB6 receives the TRILL data frame from the RB5, and the TRILL data frame is a unicast data frame and the destination RB is RB6, or the TRILL data frame is a group that needs to be removed from the port of the RB bridge after the TRILL encapsulation needs to be removed.
  • the broadcast data frame is judged according to the node type of the RB6 and the node type of the RB5, and the setting in the figure lb indicates that the node type of the RB6 is a Spoken RB, and the node type of the RB5 is also a Spoken RB, and the MAC address is not matched.
  • the condition of the address learning controls the local RB bridge not to perform MAC address learning, and achieves the purpose of not learning the MAC of other access RBs.
  • the media access control address learning control method provided by the embodiment of the present invention receives a TRILL data frame through a RBridge; and determines whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing.
  • the media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced.
  • the requirements of the access device improve the compatibility of the network.
  • the MAC of the RB bridge can be reduced. Table capacity requirements, reducing unnecessary MAC address learning.
  • the RB bridge receives the configuration information of the carrying node type, and saves the node type.
  • the technician sets the node type of the RBridge according to the location of the node in the network, so that the RBridge is configured. Receiving configuration information of the carrying node type, and saving the node type.
  • the routing bridge acquires configuration information of a node type that carries other routing bridges in the network, and saves other routing bridges in the network and their corresponding node types.
  • the routing bridge receives the configuration information that the other RBs are flooded by the ISIS protocol, and the configuration information may be an ISIS protocol packet, where the packet includes a variable length field TLV, and the TLV carries the RBridge.
  • the node type when receiving the configuration information of the node type carrying other routing bridges in the network, the routing bridge saves other routing bridges in the network and their corresponding node types.
  • 2 is a flow chart of a medium access control address learning control method according to an embodiment of the present invention. The embodiment of FIG. 2 combines the embodiment shown in FIG. la to describe the specific process of the present invention in detail. Referring to FIG. 2, the embodiment specifically includes:
  • the local RBridge receives the TRILL data frame.
  • the step 201 includes the step 200: the local RB bridge receives the configuration information of the carrying node type, and saves the node type; the local RB bridge acquires configuration information of the node type carrying other RBridges in the network, and saves other information in the network. Routing bridge and its corresponding node type.
  • the local RB bridge learns other RBridges in the network and their corresponding node types through the TLV field included in the ISIS message spread by the ISIS protocol in the network.
  • the local routing bridge determines whether the TRILL data frame is a multicast data frame that needs to be removed from the port of the RB bridge after the TRILL encapsulation is removed.
  • step 204 If yes, go to step 204;
  • step 203 If no, go to step 203;
  • step 204 If yes, go to step 204;
  • step 206 If no, go to step 206;
  • the method further includes: acquiring a destination RB of the TRILL data frame and a source RBridge.
  • the TRILL data frame includes a TRILL packet header, the packet header carries the destination RB of the TRILL data frame, and the source RB bridge.
  • the TRILL data frame is obtained from the TRILL packet header.
  • the destination routing bridge as well as the source routing bridge.
  • step 205 If yes, go to step 205;
  • step 206 If no, go to step 206;
  • the method further includes: obtaining a node type of the local RBridge and a node type of the source RBridge.
  • the local routing bridge determines that the medium access control address learning is not performed, step 207; 206, the local routing bridge determines to perform media access control address learning, then perform MAC address learning, step 207;
  • the local RBridge determines to perform media access control address learning. It can be known by those skilled in the art that the process of the medium access control address learning is the same as the prior art, and details are not described herein again.
  • the processing and transmission of the TRILL data frame according to the TRILL standard are not restricted.
  • the data frame is processed according to the TRILL standard.
  • the destination RBridge forwards the TRILL data frame; and for the TRILL data frame, the multicast data frame that needs to be unpacked after the TRILL encapsulation is copied to the local port, and the node type of the local RBridge and the node type of the source RBridge When the node type is Hub RB, the TRILL encapsulation is released according to the TRILL standard and then transmitted.
  • the medium access control address learning control method provided by the embodiment of the present invention is received by a routing bridge TRILL data frame; determining whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing.
  • the media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced.
  • the requirements of the access device improve the compatibility of the network.
  • FIG. 3 is a schematic structural diagram of a medium access control address learning control apparatus according to an embodiment of the present invention.
  • the device includes:
  • the receiving module 10 is configured to receive a TRILL data frame.
  • the determining module 20 is configured to determine whether to perform media access control address learning according to the node type of the routing bridge and the TRILL data frame.
  • the determining module 20 includes: and when the TRILL data frame is a multicast data frame that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released, and the TRILL data frame is a unicast data frame and The destination RB of the TRILL data frame is the RB, and the node type of the source RB is obtained;
  • a determining unit configured to determine whether to perform media access control address learning according to a node type of the RBridge and a node type of the source RBridge.
  • the determining unit is specifically configured to: when the node type of the RBridge and the node type of the source RBridge are both user-facing, determine that media access control address learning is not performed; otherwise, determine Media access control address learning.
  • the device further includes:
  • the storage module 30 is configured to receive configuration information of a port type and save the node type.
  • the storage module 30 is further configured to acquire a node type of other routing bridges in the network. Information, and save other routing bridges in the network and their corresponding node types.
  • a medium access control address learning control apparatus receives a TRILL data frame through a routing bridge; and determines whether to perform media access control address learning according to the node type of the routing bridge and the TRILL data frame.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing.
  • the media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced.
  • the requirements of the access device improve the compatibility of the network.
  • the device for triggering the intelligent network service provided by the foregoing embodiment triggers the intelligent network service
  • only the division of each functional module is used as an example. In actual applications, the foregoing functions may be allocated differently according to requirements.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for triggering the intelligent network service provided by the foregoing embodiment is the same as the method for triggering the intelligent network service. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
  • FIG. 4 is a schematic structural diagram of a routing bridge according to an embodiment of the present invention.
  • the routing bridge includes:
  • transceiver 401 configured to acquire a signal
  • processor 402 coupled to the receiver
  • memory 403 coupled to the transceiver and the processor, respectively;
  • the processor 402 is configured to determine whether to perform media access control address learning according to a node type of the RBridge and a data frame received by the transceiver 401.
  • the processor 402 is specifically configured to acquire a destination RB and a source RB of the data frame; and when the TRILL data frame is a multicast data that is copied to a port of the RB bridge after the TRILL encapsulation needs to be removed.
  • the routing bridge is the routing bridge, and the node type of the source routing bridge is obtained. According to the node type of the routing bridge and the node type of the source routing bridge, determining whether to perform media access control address learning is performed.
  • the technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is set only according to the node type of the routing bridge and the received
  • TRILL data frames are compared to control the medium access control address learning of the routing bridge, thereby avoiding the capacity of the routing bridge device MAC address table caused by the media access control address learning required for each received data frame in the prior art. Insufficient problems reduce the requirements for access devices on the network and improve network compatibility.

Landscapes

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

Abstract

Disclosed are a control method and device for medium access control address learning and a route bridge, which belong to the technical field of networks. The method comprises: a route bridge receiving TRILL data frames; and according to the node type of the route bridge and the TRILL data frames, determining to perform or not to perform medium access control address learning. The adoption of the technical solution provided in the embodiments of the present invention has no need for one-by-one setting to whether a route bridge in a network performs medium access control address learning, and performs comparison only according to the node type of the route bridge and the received TRILL data frames, thereby controlling medium access control address learning of the route bridge, avoiding the problem of insufficient capacity of a MAC address table of the route bridge device due to the fact that medium access control address learning is needed for each received TRILL data frame in the prior art, reducing the requirements for an access device in a network, and improving the network compatibility.

Description

介质访问控制地址学习控制方法、 装置和路由桥 本申请要求于 2012年 9月 13日提交中国专利局、 申请号为 201210338508. 3 ,发明名称为"介质访问控制地址学习控制方法、装置和路由桥"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Medium access control address learning control method, device and routing bridge The present application is filed on September 13, 2012, the Chinese Patent Office, application number 201210338508. 3, the invention name is "media access control address learning control method, device and routing bridge The priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference. Technical field

本发明涉及网络技术领域, 特别涉及一种介质访问控制地址学习控制方 法、 装置和路由桥。 背景技术  The present invention relates to the field of network technologies, and in particular, to a medium access control address learning control method, apparatus, and routing bridge. Background technique

多连接透明互联 ( Transparent Interconnection of Lots of Links , TRILL ) 是互联网工程任务组推荐的链路层(L2 ) 网络标准, 用于解决大型数据中心 中生成树协议 ( Spanning Tree Protocol, STP ) 的不足。 在 L2网络中, STP 通过阻塞冗余链路来避免环路,但同时也造成了冗余链路带宽的浪费。 TRILL 通过将中间系统到中间系统 ( Intermediate System to Intermediate System, ISIS ) 的路由协议引入 L2网络, 解决了 L2环路问题, 同时保留了 L2多路 径。  Transparent Interconnection of Lots of Links (TRILL) is a link layer (L2) network standard recommended by the Internet Engineering Task Force to address the deficiencies of the Spanning Tree Protocol (STP) in large data centers. In L2 networks, STP avoids loops by blocking redundant links, but it also wastes redundant link bandwidth. TRILL solves the L2 loop problem by introducing the intermediate system to intermediate system (ISS) routing protocol into the L2 network, while preserving the L2 multipath.

在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: TRILL技术用于支持二层交换网络, 随着二层交换网络中接入的主机数 量不断增多,路由桥( Route Bridge, RB )对所有接收到的以太帧或者 TRILL 数据帧做介质访问控制 (Medium Access Control, MAC ) 学习, 导致 MAC 地址表中保存的表项数量不断增加, 对各个接收到的数据帧均需要进行介质 访问控制地址学习, 会导致路由桥设备的 MAC地址表的容量不足, 对网路 中接入设备的要求高, 网络的兼容性差。 发明内容  In the process of implementing the present invention, the inventor has found that the prior art has at least the following problems: The TRILL technology is used to support a Layer 2 switching network, and the number of hosts connected to the Layer 2 switching network is increasing, and the routing bridge (Route Bridge, RB) Medium access control (MAC) learning for all received Ethernet frames or TRILL data frames, resulting in an increase in the number of entries in the MAC address table. Media is required for each received data frame. The access control address learning will result in insufficient capacity of the MAC address table of the RBridge device, high requirements for access devices in the network, and poor network compatibility. Summary of the invention

为了解决现有技术的问题, 本发明实施例提供了一种介质访问控制地址 学习控制方法、 装置和路由桥。 所述技术方案如下: 一方面, 本发明提供一种介质访问控制地址学习控制方法, 所述方法应 用在多连接透明互联 TRILL网络中, 包括: In order to solve the problem of the prior art, an embodiment of the present invention provides a medium access control address learning control method, apparatus, and RBridge. The technical solution is as follows: In one aspect, the present invention provides a media access control address learning control method, where the method is applied to a multi-connection transparent interconnect TRILL network, including:

路由桥接收 TRILL数据帧;  The routing bridge receives the TRILL data frame;

根据所述路由桥的节点类型和所述 TRILL数据帧,确定进行或不进行介 质访问控制地址学习。  Based on the node type of the RBridge and the TRILL data frame, it is determined whether to perform media access control address learning.

根据所述路由桥的节点类型和所述数据帧, 确定进行或不进行介质访问 控制地址学习, 包括: 当所述 TRILL数据帧为需要解除 TRILL封装后复制给所述路由桥的端 口的组播数据帧, 或所述 TRILL数据帧为单播数据帧且所述 TRILL数据帧 的目的路由桥为所述路由桥, 获取所述源路由桥的节点类型;  Determining whether to perform media access control address learning according to the node type of the RB and the data frame, including: when the TRILL data frame is a multicast that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released. a data frame, or the TRILL data frame is a unicast data frame, and the destination RB of the TRILL data frame is the RB, obtaining a node type of the source RBridge;

根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不 进行介质访问控制地址学习。  The media access control address learning is determined to be performed or not according to the node type of the RBridge and the node type of the source RBridge.

根据所述路由桥和所述源路由桥的节点类型, 确定进行或不进行介质访 问控制地址学习, 包括:  Determining whether to perform media access control address learning according to the RB and the node type of the source RB, including:

当所述路由桥的节点类型和所述源路由桥的节点类型均为用户接入侧节 点, 则确定不进行介质访问控制地址学习; 否则, 确定进行介质访问控制地 址学习。  When the node type of the RBridge and the node type of the source RBridge are both user access side nodes, it is determined that media access control address learning is not performed; otherwise, media access control address learning is determined.

路由桥接收 TRILL数据帧, 之前包括:  The routing bridge receives the TRILL data frame, which previously includes:

所述路由桥接收携带节点类型的配置信息, 并保存所述节点类型; 所述路由桥获取携带所述 TRILL 网络中其他路由桥的节点类型的配置 信息, 并保存所述其他路由桥及其对应的节点类型。 另一方面, 本发明提供一种介质访问控制地址学习控制装置, 包括: 接收模块, 用于接收 TRILL数据帧;  The routing bridge receives the configuration information of the carrying node type, and saves the node type; the routing bridge acquires configuration information of a node type that carries other routing bridges in the TRILL network, and saves the other routing bridges and corresponding The node type. In another aspect, the present invention provides a medium access control address learning control apparatus, including: a receiving module, configured to receive a TRILL data frame;

确定模块, 用于根据路由桥的节点类型和所述 TRILL数据帧, 确定进行 或不进行介质访问控制地址学习。  And a determining module, configured to determine whether to perform media access control address learning according to a node type of the routing bridge and the TRILL data frame.

所述确定模块包括: 及当所述数据帧为需要解除 TRILL封装后复制给所述路由桥的端口的组播 数据帧, 且所述数据帧为单播数据帧且所述数据帧的目的路由桥为所述路由 桥, 获取所述源路由桥的节点类型; The determining module includes: And the data frame is a multicast data frame that is copied to the port of the RB bridge after the TRILL encapsulation is required, and the data frame is a unicast data frame, and the destination RB of the data frame is the RB Obtaining a node type of the source routing bridge;

确定单元,用于根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不进行介质访问控制地址学习。  And a determining unit, configured to determine whether to perform media access control address learning according to a node type of the RBridge and a node type of the source RBridge.

所述确定单元具体用于当所述路由桥的节点类型和所述源路由桥的节点 类型均为面向用户节点时, 则确定不进行介质访问控制地址学习; 否则, 确 定进行介质访问控制地址学习。  The determining unit is specifically configured to: when the node type of the RBridge and the node type of the source RBridge are both user-facing, determine that media access control address learning is not performed; otherwise, determine media access control address learning. .

所述装置还包括:  The device also includes:

存储模块, 用于接收携带节点类型的配置信息, 并保存所述节点类型; 所述存储模块, 还用于获取携带网络中其他路由桥的节点类型的配置信 息, 并保存所述网络中其他路由桥及其对应的节点类型。 再一方面, 本发明提供一种路由桥, 包括: 收发器, 用于获取信号; 处 理器, 与所述接收器耦合, 存储器, 分别与所述收发器和所述处理器耦合; 所述处理器用于根据所述路由桥的节点类型和所述收发器接收的 TRILL 数据帧, 确定进行或不进行介质访问控制地址学习。  a storage module, configured to receive configuration information of a node type, and save the node type; the storage module is further configured to acquire configuration information of a node type that carries other routing bridges in the network, and save other routes in the network. Bridge and its corresponding node type. In still another aspect, the present invention provides a routing bridge, comprising: a transceiver for acquiring a signal; a processor coupled to the receiver, and a memory coupled to the transceiver and the processor, respectively; The device is configured to determine whether to perform media access control address learning according to a node type of the RBridge and a TRILL data frame received by the transceiver.

所述处理器具体用于获取所述 TRILL 数据帧的目的路由桥以及源路由 桥; 当所述数据帧为需要解除 TRILL封装后复制给所述路由桥的端口的组播 数据帧, 且所述数据帧为单播数据帧且所述数据帧的目的路由桥为所述路由 桥, 获取所述源路由桥的节点类型; 根据所述路由桥的节点类型和所述源路 由桥的节点类型, 确定进行或不进行介质访问控制地址学习。  The processor is specifically configured to acquire a destination RB and a source RB of the TRILL data frame; and when the data frame is a multicast data frame that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released, The data frame is a unicast data frame, and the destination RB of the data frame is the RB, obtaining the node type of the source RBridge; according to the node type of the RBridge and the node type of the source RBridge, Make sure that media access control address learning is performed or not.

本发明实施例提供的一种介质访问控制地址学习控制方法、 装置和路由 桥, 通过路由桥接收 TRILL 数据帧; 根据所述路由桥的节点类型和所述 TRILL数据帧, 确定进行或不进行介质访问控制地址学习。 釆用本发明实施 例提供的技术方案, 无需对网络中的路由桥是否进行介质访问控制地址学习 进行——设置, 仅根据路由桥的节点类型及接收到的 TRILL数据帧进行比 较, 从而控制路由桥的介质访问控制地址学习, 避免了现有技术中由于对各 个接收到的 TRILL数据帧均需要进行介质访问控制地址学习而造成的路由 桥设备 MAC地址表的容量不足的问题, 降低了对网路中接入设备的要求, 提高了网络的兼容性。 附图说明 The medium access control address learning control method, device and routing bridge provided by the embodiment of the present invention receive a TRILL data frame through a routing bridge; determine whether to perform media without or according to the node type of the routing bridge and the TRILL data frame. Access control address learning. The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing. The medium access control address learning of the bridge avoids the routing in the prior art that requires media access control address learning for each received TRILL data frame. The problem of insufficient capacity of the bridge device MAC address table reduces the requirements for access devices in the network and improves network compatibility. DRAWINGS

为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.

图 la是本发明实施例提供的一种介质访问控制地址学习控制方法的流 程图;  Figure la is a flow chart of a medium access control address learning control method according to an embodiment of the present invention;

图 lb是本发明实施例提供的一种 TRILL网络中的组网图;  Figure lb is a networking diagram of a TRILL network provided by an embodiment of the present invention;

图 2是本发明实施例提供的一种介质访问控制地址学习控制方法的流程 图;  2 is a flow chart of a medium access control address learning control method according to an embodiment of the present invention;

图 3是本发明实施例提供的一种介质访问控制地址学习控制装置的结构 示意图;  3 is a schematic structural diagram of a medium access control address learning control apparatus according to an embodiment of the present invention;

图 4是本发明实施例提供的一种路由桥的结构示意图。 具体实施方式  FIG. 4 is a schematic structural diagram of a routing bridge according to an embodiment of the present invention. detailed description

为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发 明实施方式作进一步地详细描述。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

为了便于理解, 在此对 TRILL 网络中的 RB进行以下说明: 在 TRILL 网络中,运行 TRILL协议的设备称为 RB。 RB具有交换功能和路由功能, 能 够认知 TRILL网络的拓朴, 且能够生成到其他 RB的路由转发表。 在 TRILL 网络的入口, 负责将接收到的单播数据帧封装成 TRILL格式 (即在原始数据 帧前面添加 TRILL ^艮文头和内层 MAC帧头, 封装后的数据帧称为 TRILL 数据帧), 并转发至 TRILL网络的 RB称为 Ingress RB; 而在 TRILL网络的 出口, 负责将 TRILL数据帧解封为原始数据帧并转发的 RB称为 Egress RB; 除了 Ingress RB和 Egress RB外,其他 RB负责将 TRILL数据帧从 Ingress RB 一跳一跳地传送到 Egress RB , 称为传输 RB。 图 la是本发明实施例提供的一种介质访问控制地址学习控制方法的流 程图。 参见图 la, 所述方法包括: For ease of understanding, the following describes the RBs in the TRILL network: In the TRILL network, the device running the TRILL protocol is called RB. The RB has a switching function and a routing function, can recognize the topology of the TRILL network, and can generate a routing forwarding table to other RBs. At the entrance of the TRILL network, it is responsible for encapsulating the received unicast data frame into a TRILL format (ie, adding a TRILL header and an inner MAC frame header in front of the original data frame, and the encapsulated data frame is called a TRILL data frame). The RB that is forwarded to the TRILL network is called the Ingress RB. On the exit of the TRILL network, the RB that is responsible for decapsulating the TRILL data frame into the original data frame and forwarding it is called the Egress RB. Other than the Ingress RB and the Egress RB, other RBs. It is responsible for transmitting the TRILL data frame from the Ingress RB to the Egress RB, which is called the transmission RB. FIG. 1a is a flowchart of a medium access control address learning control method according to an embodiment of the present invention. Referring to FIG. 1a, the method includes:

101、 路由桥接收 TRILL数据帧;  101. The routing bridge receives the TRILL data frame.

路由桥 RB会接收到两种数据帧, 一种是普通数据帧, 另一种是 TRILL 数据帧。 本发明实施例仅关注接收到 TRILL数据帧的情况。  The RB RB receives two data frames, one is a normal data frame and the other is a TRILL data frame. The embodiment of the present invention only focuses on the case where a TRILL data frame is received.

102、 根据所述路由桥的节点类型和所述 TRILL数据帧, 确定进行或不 进行介质访问控制地址学习。  102. Determine, according to the node type of the routing bridge and the TRILL data frame, whether to perform media access control address learning.

优选地, 接收 TRILL数据帧的路由桥根据其在 TRILL网络中的位置被 配置为一预设节点类型, 该预设节点类型可以为第一节点类型 (用户接入侧 节点)或第二节点类型(网关侧节点;), 具体将该路由桥配置为哪个类型, 可 以根据该路由桥在网络中的位置或是根据网络传输需要进行。  Preferably, the RBridge receiving the TRILL data frame is configured as a preset node type according to its location in the TRILL network, and the preset node type may be a first node type (user access side node) or a second node type. (Gateway side node;), specifically configuring the type of the routing bridge, according to the location of the routing bridge in the network or according to the network transmission needs.

通过根据节点类型和 TRILL数据帧的比较,确定进行或不进行介质访问 控制地址学习,使得路由桥根据 TRILL数据帧的源路由桥等信息确定是否进 行介质访问控制地址学习,使得当路由桥的节点类型与 TRILL数据帧符合不 进行介质访问控制地址学习的条件时, 不进行介质访问控制地址学习, 而当 路由桥的节点类型与数据帧符合进行介质访问控制地址学习的条件时, 才进 行介质访问控制地址学习, 通过对路由桥本身的节点类型的配置, 达到了控 制的目的。  According to the comparison between the node type and the TRILL data frame, it is determined whether the medium access control address learning is performed or not, so that the RB bridge determines whether to perform the medium access control address learning according to the information such as the source routing bridge of the TRILL data frame, so that the node of the RB bridge When the type and the TRILL data frame are in compliance with the condition that the medium access control address learning is not performed, the medium access control address learning is not performed, and the media access is performed when the node type of the RBridge and the data frame conform to the condition for performing the medium access control address learning. Controlling address learning, through the configuration of the node type of the routing bridge itself, achieves the purpose of control.

介质访问控制地址 MAC地址学习是指当 RB的端口接收到一个数据帧 时, 分析该数据帧的源 MAC地址和虚拟局域网标识, 如果源 MAC地址合 法,以源 MAC地址和虚拟局域网标识作为键值查找 MAC地址表,如果 MAC 地址表中不存在该源 MAC地址,就把该源 MAC地址添加到 MAC地址表中; 如果 MAC地址表中已经存在该源 MAC地址, 就对该表项进行更新。  Media access control address MAC address learning means that when a port of an RB receives a data frame, it analyzes the source MAC address and the virtual local area network identifier of the data frame. If the source MAC address is legal, the source MAC address and the virtual local area network identifier are used as the key value. The MAC address table is searched. If the source MAC address does not exist in the MAC address table, the source MAC address is added to the MAC address table. If the source MAC address already exists in the MAC address table, the entry is updated.

本发明实施例提供的介质访问控制地址学习控制方法, 通过路由桥接收 TRILL数据帧; 根据所述路由桥的节点类型和所述 TRILL数据帧,确定进行 或不进行介质访问控制地址学习。 釆用本发明实施例提供的技术方案, 无需 对网络中的路由桥是否进行介质访问控制地址学习进行——设置, 仅根据路 由桥的节点类型及接收到的 TRILL数据帧进行比较,从而控制路由桥的介质 访问控制地址学习,避免了现有技术中由于对各个接收到的 TRILL数据帧均 需要进行介质访问控制地址学习而造成的路由桥设备 MAC地址表的容量不 足的问题, 降低了对网络中接入设备的要求, 提高了网络的兼容性。 可选地, 在图 la所示实施例的技术方案基础上, 该步骤 102 "根据所述 路由桥的节点类型和所述数据帧, 确定进行或不进行介质访问控制地址学 习", 具体包括以下步骤: The media access control address learning control method provided by the embodiment of the present invention receives a TRILL data frame through a RBridge; and determines whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame. The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing. The medium access control address learning of the bridge avoids the prior art due to the TRILL data frames received for each The problem of insufficient capacity of the routing bridge device MAC address table caused by media access control address learning is required, the requirements for access devices in the network are reduced, and network compatibility is improved. Optionally, based on the technical solution of the embodiment shown in FIG. 1a, the step 102: determining, according to the node type of the RBridge and the data frame, determining whether to perform media access control address learning, specifically including the following step:

TRILL数据帧包括 TRILL报文头, 报文头携带该 TRILL数据帧的目的 路由桥以及源路由桥, 当前 RB在接收 TRILL数据帧时,从 TRILL报文头中 获取所述数据帧的目的路由桥以及源路由桥。 The TRILL data frame includes a TRILL packet header, the packet header carries the destination RB of the TRILL data frame, and the source RB bridge. When the current RB receives the TRILL data frame, the destination RB of the data frame is obtained from the TRILL packet header. And the source RBridge.

( 2 )当所述 TRILL数据帧为需要解除 TRILL封装后复制给本地端口的 组播数据帧, 或所述 TRILL数据帧为单播数据帧且所述 TRILL数据帧的目 的路由桥为所述路由桥, 获取所述源路由桥的节点类型;  (2) When the TRILL data frame is a multicast data frame that is copied to the local port after the TRILL encapsulation needs to be released, or the TRILL data frame is a unicast data frame, and the destination RB of the TRILL data frame is the route. a bridge, acquiring a node type of the source routing bridge;

在本实施例中, 根据本地预先学习的路由桥与其节点类型的映射关系, 获取所述源路由桥的节点类型。 需要说明的是, 该路由桥与其节点类型的映 射关系为路由桥在组网时, 根据 ISIS协议学习的, 每个路由桥对应的节点类 型由技术人员在组网时进行设置, 在此不作具体限定。  In this embodiment, the node type of the source RBridge is obtained according to the mapping relationship between the locally learned RBridge and its node type. It should be noted that the mapping relationship between the RB and its node type is learned by the ISIS protocol when the RB bridge is in the network. The node type corresponding to each RB is set by the technical personnel during networking. limited.

对于组播数据帧来说,当数据帧的用户 VLAN在该 RB上存在本地端口 , 该组播数据帧为需要解除 TRILL封装后复制给本地端口的组播数据帧,而当 路由桥接收到该组播数据帧时,需要对该组播数据帧进行复制,并根据 TRILL 路由转发表将该组播数据帧发送至多个目的路由桥, 以使得该组播数据帧能 够为多个目的路由桥接收。 其中,对于需要解除 TRILL封装后复制给本地端 口的组播数据帧的判断为现有技术所公开, 在此不做赞述。  For a multicast data frame, when the user VLAN of the data frame has a local port on the RB, the multicast data frame is a multicast data frame that needs to be copied to the local port after the TRILL encapsulation is cancelled, and when the RB bridge receives the When the data frame is multicast, the multicast data frame needs to be copied, and the multicast data frame is sent to multiple destination RBridges according to the TRILL routing forwarding table, so that the multicast data frame can be received by multiple destination RBridges. . The determination of the multicast data frame to be copied to the local port after the TRILL encapsulation is required is disclosed in the prior art, and is not described herein.

当 TRILL数据帧的 TRILL报文头携带的目的路由桥的 Nickname与该路 由桥的 Nickname相同时, 所述 TRILL数据帧的目的路由桥为所述路由桥, 而对于目的路由桥为该路由桥的单播数据帧来说, 该路由桥即是该单播数据 帧的终结点, 该路由桥为 TRILL网络的出口, 负责将 TRILL数据帧解封为 原始数据帧并转发。  When the Nickname of the destination RB that is carried in the TRILL packet header of the TRILL data frame is the same as the Nickname of the RBridge, the destination RB of the TRILL data frame is the RB, and the destination RB is the RBridge. For a unicast data frame, the RB is the endpoint of the unicast data frame. The RB is the egress of the TRILL network and is responsible for decapsulating the TRILL data frame into the original data frame and forwarding it.

( 3 )根据所述路由桥的节点类型和所述源路由桥的节点类型,确定进行 或不进行介质访问控制地址学习。 (3) determining, according to the node type of the RBridge and the node type of the source RBridge Or do not media access control address learning.

根据该路由桥已知的节点类型和经过映射获取的源路由桥的节点类型, 控制对该 TRILL数据帧进行或不进行 MAC地址学习。  Controlling whether the MAC address is learned or not is performed on the TRILL data frame according to the node type that is known by the RB and the node type of the source RB that is obtained by the mapping.

其中, 所述路由桥的节点类型和所述源路由桥的节点类型可能相同, 也 可能不同, 对于节点类型的具体情况来说, 可以有以下任一种情况: (一)当 所述路由桥的节点类型和所述源路由桥的节点类型相同时, 确定不进行介质 访问控制地址学习;(二)当所述路由桥的节点类型和所述源路由桥的节点类 型相同时, 确定进行介质访问控制地址学习; (三)当所述路由桥的节点类型 和所述源路由桥的节点类型不同时,确定不进行介质访问控制地址学习;(二) 当所述路由桥的节点类型和所述源路由桥的节点类型不同时, 确定进行介质 访问控制地址学习。 对于在何种情况下进行 MAC地址学习, 可以由技术人 员进行具体设置, 并由 ISIS协议扩散给所有 RB。 优选地,在图 la所示实施例的技术方案基础上,该步骤 102中的步骤(3 ) "根据所述路由桥和所述源路由桥的节点类型, 确定进行或不进行介质访问 控制地址学习",具体包括: 当所述路由桥的节点类型和所述源路由桥的节点 类型均为面向用户节点, 则确定不进行介质访问控制地址学习; 否则, 确定 进行介质访问控制地址学习。  The node type of the RB and the node type of the source RB may be the same or different. For the specific case of the node type, there may be any of the following cases: (1) When the RBridge When the node type of the node is the same as the node type of the source RBridge, it is determined that the medium access control address learning is not performed; (2) when the node type of the RBridge and the node type of the source RBridge are the same, the medium is determined to be performed. Access control address learning; (3) determining that the medium access control address learning is not performed when the node type of the RBridge and the node type of the source RB are different; (2) when the node type and location of the RBridge When the node types of the source RB are different, it is determined to perform media access control address learning. The MAC address learning under which circumstances can be specifically set by the technician and spread to all RBs by the ISIS protocol. Preferably, based on the technical solution of the embodiment shown in FIG. la, the step (3) in the step 102 determines whether the media access control address is performed or not according to the node type of the routing bridge and the source routing bridge. The learning includes: when the node type of the RBridge and the node type of the source RB are both user-facing, it is determined that media access control address learning is not performed; otherwise, determining media access control address learning is performed.

在本实施例中, 仅以一优选实施例为例进行说明, 对于路由桥来说, 该 路由桥的节点类型可以为第一类型或第二类型, 第一类型可以为面向用户节 点, 即用户侧的接入节点, 用 Spoken RB来表示, 而第二类型可以为面向网 关节点, 即局域网网关侧的接入节点, 用 Hub RB来表示, 当所述路由桥的 节点类型和所述源路由桥的节点类型均为 Spoken RB, 则确定不进行介质访 问控制地址学习; 否则, 确定进行介质访问控制地址学习。 优选地, 该第一 类型或第二类型可以由技术人员在组网时根据该路由桥在网络中所在位置进 行设置, 如对于用户接入侧的路由桥来说, 可将其节点类型设置为第一类型 即 Spoken RB, 则当作为接入侧的路由桥接收到需要复制给所述路由桥的端 口的组播数据帧, 或所述数据帧为单播数据帧且所述数据帧的目的路由桥为 所述路由桥时, 确定不进行介质访问控制地址学习, 从而支持面向用户节点 不学习同为面向用户节点的下挂设备的 MAC, 而是学习面向网关节点的下 挂设备的 MAC。 In this embodiment, only a preferred embodiment is taken as an example. For a routing bridge, the node type of the routing bridge may be a first type or a second type, and the first type may be a user-oriented node, that is, a user. The access node on the side is represented by a Spoken RB, and the second type may be a gateway node, that is, an access node on the LAN gateway side, represented by a Hub RB, when the node type of the RBridge and the source route If the node type of the bridge is Spoken RB, it is determined that the medium access control address learning is not performed; otherwise, the medium access control address learning is determined. Preferably, the first type or the second type may be set by the technician according to the location of the routing bridge in the network when the network is configured, for example, for the routing bridge of the user access side, the node type may be set to The first type, that is, the Spoken RB, receives the multicast data frame that needs to be copied to the port of the RB bridge, or the data frame is a unicast data frame and the purpose of the data frame. When the routing bridge is the routing bridge, it is determined that the medium access control address learning is not performed, thereby supporting the user-oriented node. Instead of learning the MAC of the attached device that is the same as the user node, learn the MAC of the attached device that is facing the gateway node.

图 lb是本发明实施例提供的一种 TRILL网络中的 RB组网图。 参见图 lb, RBI、 RB2为 TRILL网络的入口, 而 RB3、 RB4为传输 RB, RB5和 RB6 为出口 RB, 则对 RB进行节点设置时, 可将 RB5和 RB6设置为面向用户节 点即 Spoken RB, 而将其他 RB设置为面向网关节点即 Hub RB。 由此, 在本 实施例中 , 当 RB6接收到来自 RB2的 TRILL数据帧 , 且该 TRILL数据帧为 单播数据帧且目的路由桥为 RB6, 或该 TRILL数据帧为需要解除 TRILL封 装后复制给所述路由桥的端口的组播数据帧, 根据 RB6 的节点类型和 RB2 的节点类型进行判断,而由该图 lb中的设置可知, RB6的节点类型为 Spoken RB ,而 RB2的节点类型为 Hub RB ,则不符合不进行 MAC地址学习的条件, 则需进行 MAC地址学习, 达到了仅学习网关侧 RB的 MAC的目的。 而当 RB6接收到来自 RB5的 TRILL数据帧, 且该 TRILL数据帧为单播数据帧且 目的路由桥为 RB6, 或该 TRILL数据帧为需要解除 TRILL封装后复制给所 述路由桥的端口的组播数据帧, 根据 RB6的节点类型和 RB5的节点类型进 行判断, 而由该图 lb中的设置可知, RB6的节点类型为 Spoken RB, 而 RB5 的节点类型也为 Spoken RB, 则符合不进行 MAC地址学习的条件, 则控制 本地路由桥不进行 MAC地址学习,达到了不学习其他接入 RB的 MAC的目 的。  Figure lb is a network diagram of RBs in a TRILL network according to an embodiment of the present invention. Referring to FIG. 1b, RBI and RB2 are the ingress of the TRILL network, and RB3 and RB4 are the transmission RBs, and RB5 and RB6 are the egress RBs. When the RB is set to the node, RB5 and RB6 may be set as the user-oriented node, that is, the Spoken RB. The other RBs are set to face the gateway node, Hub RB. Therefore, in this embodiment, when the RB6 receives the TRILL data frame from the RB2, and the TRILL data frame is a unicast data frame and the destination RBridge is RB6, or the TRILL data frame is copied to the TRILL package. The multicast data frame of the port of the RB bridge is judged according to the node type of the RB6 and the node type of the RB2, and the setting of the LB6 indicates that the node type of the RB6 is a Spoken RB, and the node type of the RB2 is a Hub. If RB does not meet the conditions for MAC address learning, MAC address learning is required to achieve the purpose of learning only the MAC of the RB on the gateway side. When the RB6 receives the TRILL data frame from the RB5, and the TRILL data frame is a unicast data frame and the destination RB is RB6, or the TRILL data frame is a group that needs to be removed from the port of the RB bridge after the TRILL encapsulation needs to be removed. The broadcast data frame is judged according to the node type of the RB6 and the node type of the RB5, and the setting in the figure lb indicates that the node type of the RB6 is a Spoken RB, and the node type of the RB5 is also a Spoken RB, and the MAC address is not matched. The condition of the address learning controls the local RB bridge not to perform MAC address learning, and achieves the purpose of not learning the MAC of other access RBs.

本发明实施例提供的介质访问控制地址学习控制方法, 通过路由桥接收 TRILL数据帧; 根据所述路由桥的节点类型和所述 TRILL数据帧,确定进行 或不进行介质访问控制地址学习。 釆用本发明实施例提供的技术方案, 无需 对网络中的路由桥是否进行介质访问控制地址学习进行——设置, 仅根据路 由桥的节点类型及接收到的 TRILL数据帧进行比较,从而控制路由桥的介质 访问控制地址学习,避免了现有技术中由于对各个接收到的 TRILL数据帧均 需要进行介质访问控制地址学习而造成的路由桥设备 MAC地址表的容量不 足的问题, 降低了对网络中接入设备的要求, 提高了网络的兼容性。 进一步 地, 通过将路由桥的节点类型分别设置为第一类型和第二类型, 并在进行 MAC地址学习之前根据节点类型进行学习控制, 能够降低对路由桥的 MAC 表容量的要求, 减少不必要的 MAC地址学习。 可选地, 在图 la所示实施例的技术方案基础上, 该步骤 101 "路由桥接 收数据帧", 之前包括步骤 100a和 100b: The media access control address learning control method provided by the embodiment of the present invention receives a TRILL data frame through a RBridge; and determines whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame. The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing. The media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced. The requirements of the access device improve the compatibility of the network. Further, by setting the node type of the RBridge to the first type and the second type respectively, and performing learning control according to the node type before performing MAC address learning, the MAC of the RB bridge can be reduced. Table capacity requirements, reducing unnecessary MAC address learning. Optionally, based on the technical solution of the embodiment shown in FIG. 1a, the step 101 “the RBridge receives the data frame”, before including the steps 100a and 100b:

100a,所述路由桥接收携带节点类型的配置信息,并保存所述节点类型; 在本实施例中, 技术人员根据节点在网络中所处的位置对路由桥的节点 类型进行设置, 使得路由桥接收携带节点类型的配置信息, 并保存所述节点 类型。  100a, the RB bridge receives the configuration information of the carrying node type, and saves the node type. In this embodiment, the technician sets the node type of the RBridge according to the location of the node in the network, so that the RBridge is configured. Receiving configuration information of the carrying node type, and saving the node type.

100b, 所述路由桥获取携带网络中其他路由桥的节点类型的配置信息, 并保存所述网络中其他路由桥及其对应的节点类型。  100b, the routing bridge acquires configuration information of a node type that carries other routing bridges in the network, and saves other routing bridges in the network and their corresponding node types.

在本实施例中,路由桥在组网时接收到其他路由桥通过 ISIS协议扩散的 配置信息,该配置信息可以为 ISIS协议报文,该报文包括可变长度字段 TLV, 该 TLV携带路由桥的节点类型,当接收到携带网络中其他路由桥的节点类型 的配置信息, 路由桥保存所述网络中其他路由桥及其对应的节点类型。 图 2是本发明实施例提供的一种介质访问控制地址学习控制方法的流程 图。该图 2的实施例结合了图 la所示实施例对本发明的具体过程进行了详细 的描述, 参见图 2, 该实施例具体包括:  In this embodiment, the routing bridge receives the configuration information that the other RBs are flooded by the ISIS protocol, and the configuration information may be an ISIS protocol packet, where the packet includes a variable length field TLV, and the TLV carries the RBridge. The node type, when receiving the configuration information of the node type carrying other routing bridges in the network, the routing bridge saves other routing bridges in the network and their corresponding node types. 2 is a flow chart of a medium access control address learning control method according to an embodiment of the present invention. The embodiment of FIG. 2 combines the embodiment shown in FIG. la to describe the specific process of the present invention in detail. Referring to FIG. 2, the embodiment specifically includes:

201、 本地路由桥接收 TRILL数据帧;  201. The local RBridge receives the TRILL data frame.

该步骤 201之前包括步骤 200: 本地路由桥接收携带节点类型的配置信 息, 并保存所述节点类型; 本地路由桥获取携带网络中其他路由桥的节点类 型的配置信息, 并保存所述网络中其他路由桥及其对应的节点类型。 在本实 施例中, 本地路由桥通过网络中 ISIS协议所扩散的 ISIS报文所包括的 TLV 字段获知网络中其他路由桥及其对应的节点类型。  The step 201 includes the step 200: the local RB bridge receives the configuration information of the carrying node type, and saves the node type; the local RB bridge acquires configuration information of the node type carrying other RBridges in the network, and saves other information in the network. Routing bridge and its corresponding node type. In this embodiment, the local RB bridge learns other RBridges in the network and their corresponding node types through the TLV field included in the ISIS message spread by the ISIS protocol in the network.

202、 本地路由桥判断所述 TRILL数据帧是否为需要解除 TRILL封装后 复制给所述路由桥的端口的组播数据帧;  202. The local routing bridge determines whether the TRILL data frame is a multicast data frame that needs to be removed from the port of the RB bridge after the TRILL encapsulation is removed.

如果是, 执行步骤 204;  If yes, go to step 204;

如果否, 执行步骤 203;  If no, go to step 203;

203、 判断所述 TRILL数据帧是否为单播数据帧且所述 TRILL数据帧的 目的路由桥为本地路由桥; 203. Determine whether the TRILL data frame is a unicast data frame and the TRILL data frame is The destination RBridge is a local RBridge;

如果是, 执行步骤 204;  If yes, go to step 204;

如果否, 执行步骤 206;  If no, go to step 206;

需要说明的是, 该步骤 203之前, 还包括: 获取所述 TRILL数据帧的目 的路由桥以及源路由桥。 具体地, TRILL数据帧包括 TRILL报文头, 报文头 携带该 TRILL数据帧的目的路由桥以及源路由桥, 当前 RB在接收 TRILL 数据帧时, 从 TRILL报文头中获取所述 TRILL数据帧的目的路由桥以及源 路由桥。  It should be noted that, before the step 203, the method further includes: acquiring a destination RB of the TRILL data frame and a source RBridge. Specifically, the TRILL data frame includes a TRILL packet header, the packet header carries the destination RB of the TRILL data frame, and the source RB bridge. When the current RB receives the TRILL data frame, the TRILL data frame is obtained from the TRILL packet header. The destination routing bridge as well as the source routing bridge.

204、 判断本地路由桥的节点类型和所述源路由桥的节点类型是否均为 Spoken RB,  204. Determine whether the node type of the local RBridge and the node type of the source RB are both Spoken RBs.

如果是, 执行步骤 205;  If yes, go to step 205;

如果否, 执行步骤 206;  If no, go to step 206;

需要说明的是, 在步骤 204之前, 还包括: 获取本地路由桥的节点类型 以及源路由桥的节点类型。  It should be noted that, before step 204, the method further includes: obtaining a node type of the local RBridge and a node type of the source RBridge.

205、 本地路由桥确定不进行介质访问控制地址学习, 执行步骤 207; 206、 本地路由桥确定进行介质访问控制地址学习, 则进行 MAC地址学 习, 执行步骤 207;  205, the local routing bridge determines that the medium access control address learning is not performed, step 207; 206, the local routing bridge determines to perform media access control address learning, then perform MAC address learning, step 207;

在该步骤 206中, 当本地路由桥的节点类型和所述源路由桥的节点类型 中任一个的节点类型为 Hub RB时, 本地路由桥确定进行介质访问控制地址 学习。 本领域技术人员可以获知, 该介质访问控制地址学习的过程与现有技 术相同, 在此不再赘述。  In this step 206, when the node type of the node type of the local RBridge and the node type of the source RBridge is Hub RB, the local RBridge determines to perform media access control address learning. It can be known by those skilled in the art that the process of the medium access control address learning is the same as the prior art, and details are not described herein again.

207、 按照 TRILL标准规定处理所述数据帧并发送所述数据帧。  207. Process the data frame according to the TRILL standard and send the data frame.

在该步骤 207中, 不对按照 TRILL标准对 TRILL数据帧所作的处理和 发送进行限制, 对于目的路由桥不为本地路由桥的单播数据帧来说, 按照 TRILL标准规定处理所述数据帧并向目的路由桥转发所述 TRILL数据帧;而 对于 TRILL数据帧为需要解除 TRILL封装后复制给本地端口的组播数据帧, 且本地路由桥的节点类型和所述源路由桥的节点类型中任一个的节点类型为 Hub RB的情况下, 按照 TRILL标准解除 TRILL封装后进行发送。  In this step 207, the processing and transmission of the TRILL data frame according to the TRILL standard are not restricted. For the unicast data frame whose destination RBridge is not the local RBridge, the data frame is processed according to the TRILL standard. The destination RBridge forwards the TRILL data frame; and for the TRILL data frame, the multicast data frame that needs to be unpacked after the TRILL encapsulation is copied to the local port, and the node type of the local RBridge and the node type of the source RBridge When the node type is Hub RB, the TRILL encapsulation is released according to the TRILL standard and then transmitted.

本发明实施例提供的介质访问控制地址学习控制方法, 通过路由桥接收 TRILL数据帧; 根据所述路由桥的节点类型和所述 TRILL数据帧,确定进行 或不进行介质访问控制地址学习。 釆用本发明实施例提供的技术方案, 无需 对网络中的路由桥是否进行介质访问控制地址学习进行——设置, 仅根据路 由桥的节点类型及接收到的 TRILL数据帧进行比较,从而控制路由桥的介质 访问控制地址学习,避免了现有技术中由于对各个接收到的 TRILL数据帧均 需要进行介质访问控制地址学习而造成的路由桥设备 MAC地址表的容量不 足的问题, 降低了对网络中接入设备的要求, 提高了网络的兼容性。 进一步 地, 按照网络的结构将路由桥的节点类型分别设置为第一类型和第二类型, 并在进行 MAC地址学习之前根据节点类型进行学习控制, 能够降低对路由 桥的 MAC表容量的要求, 减少不必要的 MAC地址学习。 图 3是本发明实施例提供的一种介质访问控制地址学习控制装置的结构 示意图。 参见图 3 , 该装置包括: The medium access control address learning control method provided by the embodiment of the present invention is received by a routing bridge TRILL data frame; determining whether to perform media access control address learning according to the node type of the RBridge and the TRILL data frame. The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing. The media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced. The requirements of the access device improve the compatibility of the network. Further, the node type of the RBridge is set to the first type and the second type according to the structure of the network, and the learning control is performed according to the node type before performing MAC address learning, which can reduce the requirement of the MAC address capacity of the RBridge. Reduce unnecessary MAC address learning. FIG. 3 is a schematic structural diagram of a medium access control address learning control apparatus according to an embodiment of the present invention. Referring to Figure 3, the device includes:

接收模块 10 , 用于接收 TRILL数据帧;  The receiving module 10 is configured to receive a TRILL data frame.

确定模块 20, 用于根据路由桥的节点类型和所述 TRILL数据帧, 确定 进行或不进行介质访问控制地址学习。  The determining module 20 is configured to determine whether to perform media access control address learning according to the node type of the routing bridge and the TRILL data frame.

可选地, 所述确定模块 20包括: 及当所述 TRILL数据帧为需要解除 TRILL封装后复制给所述路由桥的端口 的组播数据帧, 且所述 TRILL数据帧为单播数据帧且所述 TRILL数据帧的 目的路由桥为所述路由桥, 获取所述源路由桥的节点类型;  Optionally, the determining module 20 includes: and when the TRILL data frame is a multicast data frame that is copied to a port of the RB bridge after the TRILL encapsulation needs to be released, and the TRILL data frame is a unicast data frame and The destination RB of the TRILL data frame is the RB, and the node type of the source RB is obtained;

确定单元,用于根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不进行介质访问控制地址学习。  And a determining unit, configured to determine whether to perform media access control address learning according to a node type of the RBridge and a node type of the source RBridge.

进一步可选地, 所述确定单元具体用于当所述路由桥的节点类型和所述 源路由桥的节点类型均为面向用户节点时, 则确定不进行介质访问控制地址 学习; 否则, 确定进行介质访问控制地址学习。  Further, the determining unit is specifically configured to: when the node type of the RBridge and the node type of the source RBridge are both user-facing, determine that media access control address learning is not performed; otherwise, determine Media access control address learning.

可选地, 所述装置还包括:  Optionally, the device further includes:

存储模块 30,用于接收携带节点类型的配置信息,并保存所述节点类型; 所述存储模块 30 ,还用于获取携带网络中其他路由桥的节点类型的配置 信息, 并保存所述网络中其他路由桥及其对应的节点类型。 The storage module 30 is configured to receive configuration information of a port type and save the node type. The storage module 30 is further configured to acquire a node type of other routing bridges in the network. Information, and save other routing bridges in the network and their corresponding node types.

本发明实施例提供的一种介质访问控制地址学习控制装置, 通过路由桥 接收 TRILL数据帧; 根据所述路由桥的节点类型和所述 TRILL数据帧, 确 定进行或不进行介质访问控制地址学习。釆用本发明实施例提供的技术方案, 无需对网络中的路由桥是否进行介质访问控制地址学习进行——设置, 仅根 据路由桥的节点类型及接收到的 TRILL数据帧进行比较,从而控制路由桥的 介质访问控制地址学习,避免了现有技术中由于对各个接收到的 TRILL数据 帧均需要进行介质访问控制地址学习而造成的路由桥设备 MAC地址表的容 量不足的问题, 降低了对网络中接入设备的要求, 提高了网络的兼容性。  A medium access control address learning control apparatus according to an embodiment of the present invention receives a TRILL data frame through a routing bridge; and determines whether to perform media access control address learning according to the node type of the routing bridge and the TRILL data frame. The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is configured to compare only the node type of the routing bridge and the received TRILL data frame, thereby controlling routing. The media access control address learning of the bridge avoids the problem that the capacity of the routing bridge device MAC address table is insufficient due to the need for media access control address learning for each received TRILL data frame in the prior art, and the network is reduced. The requirements of the access device improve the compatibility of the network.

需要说明的是: 上述实施例提供的触发智能网业务的装置在触发智能网 业务时, 仅以上述各功能模块的划分进行举例说明, 实际应用中, 可以根据 需要而将上述功能分配由不同的功能模块完成, 即将设备的内部结构划分成 不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例 提供的触发智能网业务的装置与触发智能网业务的方法实施例属于同一构 思, 其具体实现过程详见方法实施例, 这里不再赘述。  It should be noted that, when the device for triggering the intelligent network service provided by the foregoing embodiment triggers the intelligent network service, only the division of each functional module is used as an example. In actual applications, the foregoing functions may be allocated differently according to requirements. The function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for triggering the intelligent network service provided by the foregoing embodiment is the same as the method for triggering the intelligent network service. For the specific implementation process, refer to the method embodiment, and details are not described herein again.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存 储于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 图 4是本发明实施例提供的一种路由桥的结构示意图。 参见图 4, 该路 由桥包括:  A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like. FIG. 4 is a schematic structural diagram of a routing bridge according to an embodiment of the present invention. Referring to Figure 4, the routing bridge includes:

收发器 401 , 用于获取信号; 处理器 402, 与所述接收器耦合, 存储器 403 , 分别与所述收发器和所述处理器耦合;  a transceiver 401, configured to acquire a signal; a processor 402 coupled to the receiver, and a memory 403 coupled to the transceiver and the processor, respectively;

所述处理器 402用于根据所述路由桥的节点类型和所述收发器 401接收 的数据帧, 确定进行或不进行介质访问控制地址学习。  The processor 402 is configured to determine whether to perform media access control address learning according to a node type of the RBridge and a data frame received by the transceiver 401.

可选地, 所述处理器 402具体用于获取所述数据帧的目的路由桥以及源 路由桥; 当所述 TRILL数据帧为需要解除 TRILL封装后复制给所述路由桥 的端口的组播数据帧,且所述 TRILL数据帧为单播数据帧且所述数据帧的目 的路由桥为所述路由桥, 获取所述源路由桥的节点类型; 根据所述路由桥的 节点类型和所述源路由桥的节点类型, 确定进行或不进行介质访问控制地址 学习。 Optionally, the processor 402 is specifically configured to acquire a destination RB and a source RB of the data frame; and when the TRILL data frame is a multicast data that is copied to a port of the RB bridge after the TRILL encapsulation needs to be removed. a frame, and the TRILL data frame is a unicast data frame and the data frame is The routing bridge is the routing bridge, and the node type of the source routing bridge is obtained. According to the node type of the routing bridge and the node type of the source routing bridge, determining whether to perform media access control address learning is performed.

釆用本发明实施例提供的技术方案, 无需对网络中的路由桥是否进行介 质访问控制地址学习进行——设置, 仅根据路由桥的节点类型及接收到的 The technical solution provided by the embodiment of the present invention does not need to perform media access control address learning on the routing bridge in the network, and is set only according to the node type of the routing bridge and the received

TRILL数据帧进行比较, 从而控制路由桥的介质访问控制地址学习, 避免了 现有技术中由于对各个接收到的数据帧均需要进行介质访问控制地址学习而 造成的路由桥设备 MAC地址表的容量不足的问题, 降低了对网路中接入设 备的要求, 提高了网络的兼容性。 The TRILL data frames are compared to control the medium access control address learning of the routing bridge, thereby avoiding the capacity of the routing bridge device MAC address table caused by the media access control address learning required for each received data frame in the prior art. Insufficient problems reduce the requirements for access devices on the network and improve network compatibility.

以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发 明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要求 书 claims 1、 一种介质访问控制地址学习控制方法, 其特征在于, 所述方法应用在 多连接透明互联 TRILL网络中, 包括: 1. A medium access control address learning control method, characterized in that the method is applied in a multi-connection transparent interconnection TRILL network, including: 路由桥接收 TRILL数据帧; The routing bridge receives TRILL data frames; 根据所述路由桥的节点类型和所述 TRILL数据帧,确定进行或不进行介 质访问控制地址学习。 According to the node type of the routing bridge and the TRILL data frame, it is determined whether to perform medium access control address learning or not. 2、根据权利要求 1所述的方法, 其特征在于, 根据所述路由桥的节点类 型和所述数据帧, 确定进行或不进行介质访问控制地址学习, 包括: 当所述 TRILL数据帧为需要解除 TRILL封装后复制给所述路由桥的端 口的组播数据帧, 或所述 TRILL数据帧为单播数据帧且所述 TRILL数据帧 的目的路由桥为所述路由桥, 获取所述源路由桥的节点类型; 2. The method according to claim 1, characterized in that, according to the node type of the routing bridge and the data frame, determining whether to perform medium access control address learning includes: when the TRILL data frame is required The multicast data frame copied to the port of the routing bridge after decapsulation of TRILL, or the TRILL data frame is a unicast data frame and the destination routing bridge of the TRILL data frame is the routing bridge, and the source route is obtained The node type of the bridge; 根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不 进行介质访问控制地址学习。 According to the node type of the routing bridge and the node type of the source routing bridge, it is determined whether to perform medium access control address learning or not. 3、根据权利要求 2所述的方法, 其特征在于, 根据所述路由桥和所述源 路由桥的节点类型, 确定所述路由桥进行或不进行介质访问控制地址学习, 包括: 3. The method according to claim 2, characterized in that, according to the node types of the routing bridge and the source routing bridge, determining whether the routing bridge performs medium access control address learning includes: 当所述路由桥的节点类型和所述源路由桥的节点类型均为面向用户节 点, 则确定不进行介质访问控制地址学习; 否则, 确定进行介质访问控制地 址学习。 When the node type of the routing bridge and the node type of the source routing bridge are both user-oriented nodes, it is determined not to perform media access control address learning; otherwise, it is determined to perform media access control address learning. 4、根据权利要求 1 -3任一项所述的方法,其特征在于,路由桥接收 TRILL 数据帧, 之前包括: 4. The method according to any one of claims 1 to 3, characterized in that the routing bridge receives the TRILL data frame, which includes: 所述路由桥接收携带节点类型的配置信息, 并保存所述节点类型; 所述路由桥获取携带所述 TRILL 网络中其他路由桥的节点类型的配置 信息, 并保存所述其他路由桥及其对应的节点类型。 The routing bridge receives the configuration information carrying the node type, and saves the node type; the routing bridge obtains the configuration information carrying the node types of other routing bridges in the TRILL network, and saves the other routing bridges and their corresponding node type. 5、 一种介质访问控制地址学习控制装置, 其特征在于, 包括: 接收模块, 用于接收 TRILL数据帧; 5. A medium access control address learning and control device, characterized in that it includes: a receiving module for receiving TRILL data frames; 确定模块, 用于根据路由桥的节点类型和所述 TRILL数据帧, 确定进行 或不进行介质访问控制地址学习。 A determining module, configured to determine whether to perform media access control address learning based on the node type of the routing bridge and the TRILL data frame. 6、 根据权利要求 5所述的控制装置, 其特征在于, 所述确定模块包括: 及当所述 TRILL数据帧为需要解除 TRILL封装后复制给所述路由桥的端口 的组播数据帧, 且所述 TRILL数据帧为单播数据帧且所述 TRILL数据帧的 目的路由桥为所述路由桥, 获取所述源路由桥的节点类型; 6. The control device according to claim 5, wherein the determining module includes: and when the TRILL data frame is a multicast data frame that needs to be decapsulated and copied to the port of the routing bridge, and The TRILL data frame is a unicast data frame and the destination routing bridge of the TRILL data frame is the routing bridge, and the node type of the source routing bridge is obtained; 确定单元,用于根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不进行介质访问控制地址学习。 A determining unit configured to determine whether to perform media access control address learning based on the node type of the routing bridge and the node type of the source routing bridge. 7、根据权利要求 6所述的控制装置, 其特征在于, 所述确定单元具体用 于当所述路由桥的节点类型和所述源路由桥的节点类型均为面向用户节点 时, 则确定不进行介质访问控制地址学习; 否则, 确定进行介质访问控制地 址学习。 7. The control device according to claim 6, wherein the determining unit is specifically configured to determine if the node type of the routing bridge and the node type of the source routing bridge are both user-oriented nodes. Perform media access control address learning; otherwise, determine to perform media access control address learning. 8、 根据权利要求 5-7任一项所述的控制装置, 其特征在于, 所述装置还 包括: 8. The control device according to any one of claims 5-7, characterized in that the device further includes: 存储模块, 用于接收携带节点类型的配置信息, 并保存所述节点类型; 所述存储模块, 还用于获取携带网络中其他路由桥的节点类型的配置信 息, 并保存所述网络中其他路由桥及其对应的节点类型。 The storage module is used to receive the configuration information carrying the node type, and save the node type; the storage module is also used to obtain the configuration information carrying the node type of other routing bridges in the network, and save other routes in the network Bridges and their corresponding node types. 9、 一种路由桥, 其特征在于, 包括: 收发器, 用于获取信号; 处理器, 与所述接收器耦合, 存储器, 分别与所述收发器和所述处理器耦合; 9. A routing bridge, characterized in that it includes: a transceiver, used to obtain signals; a processor, coupled to the receiver, and a memory, coupled to the transceiver and the processor respectively; 所述处理器用于根据所述路由桥的节点类型和所述收发器接收的 TRILL 数据帧, 确定进行或不进行介质访问控制地址学习。 The processor is configured to determine whether to perform media access control address learning based on the node type of the routing bridge and the TRILL data frame received by the transceiver. 10、 根据权利要求 9所述的路由桥, 其特征在于, 所述处理器具体用于获 10. The routing bridge according to claim 9, characterized in that the processor is specifically used to obtain TRILL封装后复制给所述路由桥的端口的组播数据帧,且所述数据帧为单播数 据帧且所述数据帧的目的路由桥为所述路由桥, 获取所述源路由桥的节点类 型; 根据所述路由桥的节点类型和所述源路由桥的节点类型, 确定进行或不 进行介质访问控制地址学习。 After TRILL encapsulation, copy the multicast data frame to the port of the routing bridge, and the data frame is a unicast data frame and the destination routing bridge of the data frame is the routing bridge, obtain the node of the source routing bridge Type; Determine whether to perform medium access control address learning according to the node type of the routing bridge and the node type of the source routing bridge.
PCT/CN2013/075603 2012-09-13 2013-05-14 Control method and device for medium access control address learning and route bridge Ceased WO2014040422A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210338508.3 2012-09-13
CN201210338508.3A CN102857415B (en) 2012-09-13 2012-09-13 Routing bridge and device and method for controlling media access control address study

Publications (1)

Publication Number Publication Date
WO2014040422A1 true WO2014040422A1 (en) 2014-03-20

Family

ID=47403619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/075603 Ceased WO2014040422A1 (en) 2012-09-13 2013-05-14 Control method and device for medium access control address learning and route bridge

Country Status (2)

Country Link
CN (1) CN102857415B (en)
WO (1) WO2014040422A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857415B (en) * 2012-09-13 2015-04-22 华为技术有限公司 Routing bridge and device and method for controlling media access control address study
CN104601477B (en) * 2013-10-31 2018-08-21 华为技术有限公司 The cut-in method and route bridging equipment of TRILL network
CN106792261B (en) * 2016-11-22 2020-06-09 北京大米科技有限公司 Method and device for forwarding streaming media and routing method and device
CN106792257B (en) * 2016-11-22 2019-12-10 北京大米科技有限公司 method and device for forwarding streaming media and routing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102264A (en) * 2006-07-04 2008-01-09 华为技术有限公司 A method for forwarding data by Ethernet and an Ethernet system
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101986623A (en) * 2010-11-11 2011-03-16 中兴通讯股份有限公司 Method and device for collocating virtual private LAN service (VPLS) media access control (MAC) table entry space
CN102857415A (en) * 2012-09-13 2013-01-02 华为技术有限公司 Routing bridge and device and method for controlling media access control address study

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407704C (en) * 2006-02-20 2008-07-30 杭州华三通信技术有限公司 A Dynamic Learning Method of Media Access Control Layer Address
US8125928B2 (en) * 2009-07-24 2012-02-28 Juniper Networks, Inc. Routing frames in a shortest path computer network for a multi-homed legacy bridge node
US8369335B2 (en) * 2010-03-24 2013-02-05 Brocade Communications Systems, Inc. Method and system for extending routing domain to non-routing end stations
WO2011144042A2 (en) * 2011-05-19 2011-11-24 华为技术有限公司 Method and edge device for delivering route information
CN102368727B (en) * 2011-09-14 2015-01-21 杭州华三通信技术有限公司 Crossed IP network TRILL network communication method, system thereof and devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102264A (en) * 2006-07-04 2008-01-09 华为技术有限公司 A method for forwarding data by Ethernet and an Ethernet system
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101986623A (en) * 2010-11-11 2011-03-16 中兴通讯股份有限公司 Method and device for collocating virtual private LAN service (VPLS) media access control (MAC) table entry space
CN102857415A (en) * 2012-09-13 2013-01-02 华为技术有限公司 Routing bridge and device and method for controlling media access control address study

Also Published As

Publication number Publication date
CN102857415A (en) 2013-01-02
CN102857415B (en) 2015-04-22

Similar Documents

Publication Publication Date Title
US11240065B2 (en) NSH encapsulation for traffic steering
EP3069471B1 (en) Optimized multicast routing in a clos-like network
CN103209318B (en) A kind of web camera
WO2019129236A1 (en) Tunnel-based data transmission method and device
WO2011110029A1 (en) Method and system for host route reachability in packet transport network access ring
CN107040441B (en) Data transmission method, device and system across data centers
CN113938405B (en) A method and device for data processing
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
CN113794615B (en) Message forwarding method and device
CN102812744A (en) Interworking of EFM-OAM and CFM-OAM for mobile backhaul network
WO2017157206A1 (en) Method of interconnecting cloud data centers, and device
WO2013182031A1 (en) Method and device for clearing media access control forwarding table items
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2006099786A1 (en) A method for implementing on-ring process, off-ring process and data forwarding in resilience packet data ringnet and a network device thereof
WO2012122844A1 (en) Method and system for domain-based interconnection of transparent interconnection over lots of links network
WO2014040422A1 (en) Control method and device for medium access control address learning and route bridge
CN117811875A (en) A method and device for accessing home intercommunication network
WO2013166911A1 (en) Method for processing conflict of identifiers of device groups in network, and route bridge
EP3420691A1 (en) Data streaming with layer 2 and layer 3 reservations
CN102710510B (en) Information processing method, apparatus and system
US9654304B2 (en) Method and apparatus for sending transparent interconnection of lots of links data frame
WO2013000326A1 (en) Data transmission method and system in transparent interconnection over lots of links network
CN104426778B (en) Route renewing method and routing device
JP5733473B2 (en) Interworking apparatus, method, and program
WO2015085801A1 (en) Fault processing method and apparatus for edge route bridge in trill network

Legal Events

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

Ref document number: 13838024

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13838024

Country of ref document: EP

Kind code of ref document: A1