WO2017097024A1 - 一种trill网络mac地址学习的方法及装置 - Google Patents

一种trill网络mac地址学习的方法及装置 Download PDF

Info

Publication number
WO2017097024A1
WO2017097024A1 PCT/CN2016/101395 CN2016101395W WO2017097024A1 WO 2017097024 A1 WO2017097024 A1 WO 2017097024A1 CN 2016101395 W CN2016101395 W CN 2016101395W WO 2017097024 A1 WO2017097024 A1 WO 2017097024A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
link state
confidence value
learning
state packet
Prior art date
Application number
PCT/CN2016/101395
Other languages
English (en)
French (fr)
Inventor
郭俊敏
Original Assignee
上海斐讯数据通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Priority to EP16871746.0A priority Critical patent/EP3220587A4/en
Priority to US15/529,993 priority patent/US20170346717A1/en
Publication of WO2017097024A1 publication Critical patent/WO2017097024A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • 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
    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a TRILL network MAC address learning method and apparatus.
  • RBridge The device running the TRILL protocol is called a routing bridge (RB, RBridge).
  • RBridge needs to provide services to the peer system (ES, End System), so the MAC (Media Access Control) address of the ES is required.
  • the information has a certain understanding.
  • RBridge obtains MAC information mainly by: 1) Self-learning mode: learning MAC address information through encapsulation/decapsulation of TRILL data frames; 2) enabling ESADI protocol, mutually notifying and learning MAC information; 3) registering through the end system Way to learn MAC information.
  • ESADI-enabled RBridge actively publishes local MAC information, and can timely understand the MAC information changes on other RBridges, which is one of the main ways for RBridge to exchange MAC information.
  • the TRILL protocol itself uses the IS-IS (Intermediate System-to-Intermediate System) mechanism to publish information
  • IS-IS Intermediate System-to-Intermediate System
  • ESADI a subsidiary protocol of the TRILL protocol
  • the -IS mechanism to publish MAC information which creates a large degree of code redundancy and also wastes system resources.
  • the present application describes a method for learning MAC address of a TRILL network, the method comprising the steps of:
  • the routing bridge connected to the end system learns the MAC address of the end system
  • the neighbor routing bridge After receiving the link state packet, the neighbor routing bridge determines whether the MAC address in the link state packet exists locally;
  • the confidence value of the MAC address in the link state packet is incremented by 1, and then the link state data packet is sent to all neighbor routing bridges except the receiving end.
  • the ID of the link state packet is 0000.0000.0000.00-00.
  • the method further includes the steps of:
  • the local routing bridge adds 1 to the confidence value of the MAC address in the link state packet, and then sends the updated link state packet to all neighbors except the receiving end.
  • the link state packet is flooded to all routing bridges in the TRILL network, and after the routing bridge receives the link state packet, the step is performed to determine that the local is There is no MAC address in the link state packet.
  • the link state data packet is not sent out.
  • the present invention also provides an apparatus for learning MAC address of a TRILL network, the apparatus comprising:
  • the determining module is connected to the learning encapsulating module, and is configured to determine whether a MAC address in the link state packet exists locally;
  • a first setting module connected to the determining module, configured to set a local confidence value as a confidence value of a MAC address in the link state packet;
  • a second setting module connected to the determining module, configured to update a confidence value of the local MAC address to a confidence value of the MAC address in the link state packet;
  • a determining unit configured to be connected to the determining module, configured to determine whether a confidence value of the local MAC address is greater than a received value of a MAC address in the received link data packet;
  • an update unit configured to be connected to the determining unit and the adding module, respectively, to update a confidence value of the local MAC address to a trusted value of a MAC address in the link state packet.
  • the second setting unit further includes:
  • a periodic unit configured to be connected to the determining unit, to increase a value of a MAC address in the link state packet by one when the update period expires, and send the updated link to all neighbors except the receiving end Status package.
  • the present invention utilizes the IS-IS flooding mechanism to issue a MAC address, and the mechanism for increasing the confidence value by routing the bridges one by one, thereby preventing the infinite loop of the link state packets.
  • This method does not affect the original TRILL link state database synchronization, does not rely on TRILL routing, and is simple to implement, saving system resources.
  • FIG. 1 is a schematic flowchart 1 of a method for learning MAC address of a TRILL network according to the present invention
  • FIG. 2 is a schematic flowchart 2 of a method for learning MAC address of a TRILL network according to the present invention
  • FIG. 3 is a schematic structural diagram 1 of an apparatus for learning MAC address of a TRILL network according to the present invention
  • FIG. 4 is a schematic structural diagram 2 of an apparatus for learning MAC address of a TRILL network according to the present invention.
  • the routing bridge learns the MAC address and floods it to the neighbor routing bridge. Because the MAC address of the learning system of the routing bridge connected to the end system is connected to the receiving bridge, The neighbor routing bridge sends a link state packet carrying a MAC address. To put it simply, the MAC address of the learning system of the routing bridge encapsulates the learned MAC address in a special link state packet and floods it to the neighbor routing bridge. The neighbor routing bridge receives the link state packet, performs some checks, and continues to flood the neighbors.
  • a method for learning MAC address of a TRILL network includes the following steps:
  • An RB (RBridge, a routing bridge) connected to an ES (End System) learns the MAC address of the end system, and encapsulates the MAC address in the form of a TLV (specifically, a MAC-Reachability TLV) with an ID of 0000.0000.
  • TLV MAC-Reachability TLV
  • LSP Link-State Packet
  • the neighbor routing bridge After the neighbor routing bridge receives the LSP, it determines whether there is a MAC address in the link state packet locally.
  • the confidence value of the MAC address in the link state packet is incremented by one and sent to all neighbors except the receiver.
  • the MAC address of the learning bridge system of the routing bridge connected to the end system is first, and the MAC address is encapsulated in the link state packet, and the neighboring routing network is periodically.
  • the bridge is sent.
  • the routing bridge learns the MAC address of the end system
  • the MAC address is encapsulated in a link state packet with an ID of 0000.0000.0000.00-00 in the form of a MAC-Reachability TLV.
  • the neighbor routing bridge determines whether there is a MAC address in the link state packet locally. If yes, the value of the local MAC address is updated. If not, the MAC address is learned. Address, set the local confidence value as the confidence value of the received MAC address. Thereafter, the confidence value of the MAC address in the link state packet is incremented by one and sent to all neighbors except the receiving end.
  • the process of updating the confidence value of the local MAC address to the received value includes the steps of:
  • the value of the updated local MAC address is the confidence value of the received MAC address, and then the step is performed to increase the confidence value of the MAC address in the link state packet by 1 and send it to all neighbors except the receiving end;
  • the confidence value of the local MAC address is not updated, but when the update period expires, the confidence value of the MAC address in the link state packet is incremented by 1, and then the updated MAC address is sent to all neighbors except the receiving end.
  • the Confidence of the local MAC address is compared with the Confidence of the received MAC address, and the Confidence of the local MAC address is updated to be received.
  • the value, which is larger than the local is not updated.
  • the Confidence field in the TLV is incremented by one, and then sent to all neighbors except the receiving end; after the Confidence reaches 255, it is not sent out.
  • the confidence value of the local MAC address is less than the confidence value of the MAC address in the received data link packet, the confidence value of the local MAC address is not updated first. However, when the period to be updated expires, the confidence value of the local MAC address is incremented by 1, and then the local MAC address is sent to all neighbors except the receiving end.
  • the TRILL network after all the routing bridges perform the above operations, the MAC information of the end system can be synchronized to all devices in the network.
  • TRILL network MAC address learning method a general overview of a TRILL network MAC address learning method is:
  • Step 1 After learning the MAC of the ES, the RB is encapsulated in an LSP with an ID of 0000.0000.0000.00-00 in the form of a MAC-Reachability TLV, and is periodically sent to all neighboring routing bridges.
  • Step 2 After receiving the LSP, the routing bridge checks whether there is a local MAC address for each MAC address in the TLV. If the MAC address does not exist locally, the MAC address is learned, and the Confidence is the received value; if it exists, the Confidence of the local MAC address is compared with the Confidence of the received MAC address, and the local MAC address is updated when the local MAC address is smaller than the local one. Confidence is the value received, Larger than local, it is not updated. After updating the local MAC address, the Confidence field in the TLV is incremented by one, and then sent to all neighbors except the receiving end; after the Confidence reaches 255, it is no longer sent out;
  • Step 3 All routing bridges perform steps 1 and 2 to synchronize the MAC information of the end system to all devices on the network.
  • the flooding mechanism of the IS-IS (Intermediate System-to-Intermediate System) is used to issue a MAC address, and the mechanism for increasing the confidence value by the routing bridge is prevented, thereby preventing the link state packet from being infinite. cycle.
  • This method does not affect the original TRILL link state database synchronization, does not rely on TRILL routing, and is simple to implement, saving system resources.
  • this embodiment provides a device for learning the MAC address of the TRILL network.
  • a device for learning MAC address of a TRILL network includes:
  • the determining module is connected to the learning encapsulating module, and is configured to determine whether a MAC address in the link state packet exists locally;
  • a first setting module connected to the determining module, configured to set a local confidence value as a confidence value of a MAC address in the link state packet;
  • a second setting module connected to the determining module, configured to update a confidence value of the local MAC address to a confidence value of the MAC address in the link state packet;
  • the MAC address of the learning encapsulation module of the learning encapsulation module in the routing bridge connected to the end system encapsulates the MAC address of the end system in the link state packet, and then routes the bridge to the neighbor.
  • Send the link state packet the determining module determines whether the MAC address in the link state packet exists locally. If not, the first setting module sets a local confidence value as a confidence value of the MAC address in the link state packet; if yes, the first The second setting module updates the confidence value of the local MAC address to the confidence value of the MAC address in the link state packet. Thereafter, the add module increments the confidence value of the MAC address in the link state packet by one. Finally, the local routing bridge sends the link state data packet to all neighbor routing bridges except the receiving end.
  • the second setting module includes:
  • the determining unit is connected to the determining module, and configured to determine whether a confidence value of the local MAC address is greater than a received value of the MAC address in the received link state packet;
  • an update unit configured to be connected to the determining unit and the adding module, respectively, to update a confidence value of the local MAC address to a trusted value of a MAC address in the link state packet;
  • a periodic unit configured to be connected to the determining unit, to increase a confidence value of a MAC address in the link state packet by one when the update period expires, and send the updated chain to all neighbors except the receiving end Road status package.
  • the determining unit first determines whether the confidence value of the local MAC address is greater than the received link shape. a confidence value of the MAC address in the state packet, if yes, the update unit updates the confidence value of the local MAC address to a confidence value of the MAC address in the link state packet, and then the link state packet is added by the adding module The confidence value of the MAC address is increased by 1; otherwise, the confidence value of the local MAC address is not updated, and then when the update period expires, the periodic unit adds 1 to the confidence value of the MAC address in the link state packet, and then Sending the updated link state packet to all neighbors except the receiving end.

Abstract

本发明提供一种TRILL网络MAC地址学习的方法及装置,方法包括步骤:与端系统相连的路由网桥学习端系统的MAC地址;将MAC地址封装在链路状态包中,向邻居路由网桥发送;当邻居路由网桥接收到链路状态包后,判断本地是否存在链路状态包中的MAC地址;若不存在,学习链路状态包中的MAC地址,设置本地的置信值为链路状态包中的MAC地址的置信值;若存在,将本地MAC地址的置信值更新为链路状态包中的MAC地址的置信值;将链路状态包中的MAC地址的置信值增加1,然后向除接收端外的所有邻居路由网桥发送链路状态数据包。本发明不影响原有的TRILL链路状态数据库同步,不依赖TRILL路由,实现方式简单,节省了系统资源。

Description

一种TRILL网络MAC地址学习的方法及装置
本申请要求2015年12月09日提交的申请号为:201510907128.0、发明名称为“一种TRILL网络MAC地址学习的方法及装置”的中国专利申请的优先权,其全部内容合并在此。
技术领域
本发明涉及通信技术领域,尤其涉及一种TRILL网络MAC地址学习的方法及装置。
背景技术
为了解决生成树协议的带宽浪费、收敛慢等问题,互联网工程任务组(IETF,Internet Engineering Task Force)制定多链路透明互联(TRILL,TRansparent Interconnection of Lots of Links)协议将三层路由技术中间系统到中间系统(IS-IS,Intermediate System-to-Intermediate System)的设计思路引入二层网络,并对其进行了必要的改造,从而将二层的简单、灵活性与三层的稳定、可扩展和高性能有机融合起来。
运行TRILL协议的设备称为路由网桥(RB,RBridge)。在TRILL网络的出入口,RBridge需要对端系统(ES,End System)提供服务,因此需要对ES的MAC(Media Access Control,媒体介入控制)地址 信息有一定了解。目前,RBridge获取MAC信息的方式主要有:1)自学习方式:通过TRILL数据帧的封装/解封装学习MAC地址信息;2)启用ESADI协议,相互通告和学习MAC信息;3)通过端系统注册的方式学习MAC信息。其中,启用ESADI的RBridge主动发布本地的MAC信息,能及时了解其他RBridge上的MAC信息变化,是RBridge之间交互MAC信息的主要方式之一。
但是,在现有技术中,TRILL协议本身使用了IS-IS(Intermediate System-to-Intermediate System,中间系统到中间系统)的机制来发布信息,而ESADI作为TRILL协议的附属协议,也借用了IS-IS的机制来发布MAC信息,这就形成了很大程度的代码冗余,也带来系统资源的浪费。
发明内容
鉴于上述问题,本申请记载了一种TRILL网络MAC地址学习的方法,所述方法包括步骤:
与端系统相连的路由网桥学习所述端系统的MAC地址;
将所述MAC地址封装在链路状态包中,向邻居路由网桥发送;
当邻居路由网桥接收到所述链路状态包后,判断本地是否存在所述链路状态包中的MAC地址;
若不存在,学习所述链路状态包中的MAC地址,设置本地的置信值为所述链路状态包中的MAC地址的置信值;
若存在,将本地MAC地址的置信值更新为所述链路状态包中的 MAC地址的置信值;
将所述链路状态包中的MAC地址的置信值增加1,然后向除接收端外的所有邻居路由网桥发送所述链路状态数据包。
较佳的,将所述端系统的所述MAC地址以TLV的形式封装在所述链路状态包中。
较佳的,所述链路状态包的ID为0000.0000.0000.00-00。
较佳的,将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值的过程包括步骤:
判断本地MAC地址的置信值是否大于接收到的所述链路状态包中的MAC地址的置信值;
若是,将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值,然后执行步骤将所述链路状态包中的MAC地址的置信值增加1,并向除接收端外的所有邻居路由网桥发送所述链路状态数据包;
若不是,不更新所述本地MAC地址的置信值。
较佳的,在步骤不更新所述本地MAC地址的置信值之后还包括步骤:
当更新周期到期时,本地路由网桥将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
较佳的,将所述链路状态包洪泛到所述TRILL网络中的所有路由网桥,所述路由网桥接收到所述链路状态包后执行步骤判断本地是 否存在所述链路状态包中的MAC地址。
较佳的,当所述链路状态数据包中的置信值达到255后,不再向外发送所述链路状态数据包。
本发明还提供了一种TRILL网络MAC地址学习的装置,所述装置包括:
学习封装模块,用以学习端系统的MAC地址并将所述MAC地址封装在链路状态包中;
判断模块,与所述学习封装模块相连,用以判断本地是否存在所述链路状态包中的MAC地址;
第一设置模块,与所述判断模块相连,用以设置本地的置信值为所述链路状态包中的MAC地址的置信值;
第二设置模块,与所述判断模块相连,用以将本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值;
增加模块,分别与所述第一设置模块以及所述第二设置模块相连,用以将所述链路状态包中的MAC地址的置信值增加1。
较佳的,所述第二设置模块包括:
判断单元,与所述判断模块相连,用以判断所述本地MAC地址的置信值是否大于接收到的所述链路数据包中的MAC地址的置信值;
更新单元,分别与所述判断单元以及所述增加模块相连,用以将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值。
较佳的,所述第二设置单元还包括:
周期单元,与所述判断单元相连,用以当更新周期到期时将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
上述技术方案具有如下优点或有益效果:本发明利用IS-IS的洪泛机制来发布MAC地址,通过逐个路由网桥增加置信值的机制,防止了链路状态包的无限循环。该方法不影响原有的TRILL链路状态数据库同步,不依赖TRILL路由,实现方式简单,节省了系统资源。
附图说明
参考所附附图,以更加充分的描述本发明的实施例。然而,所附附图仅用于说明和阐述,并不构成对本发明范围的限制。
图1为本发明一种TRILL网络MAC地址学习的方法的流程示意图一;
图2为本发明一种TRILL网络MAC地址学习的方法的流程示意图二;
图3为本发明一种TRILL网络MAC地址学习的装置的结构示意图一;
图4为本发明一种TRILL网络MAC地址学习的装置的结构示意图二。
具体实施方式
下面结合附图和具体实施例对本发明一种TRILL网络MAC地址学习的方法及装置进行详细说明。
实施例一
在TRILL网络中,路由网桥学习MAC地址并洪泛到邻居路由网桥的过程中,由于端系统相连的路由网桥学习端系统的MAC地址,然后由该路由网桥向除了接收端外的邻居路由网桥发送携带有MAC地址的链路状态包。简单来说,即路由网桥学习端系统的MAC地址,把所学到的MAC地址封装在特殊的链路状态包中,洪泛到邻居路由网桥中。邻居路由网桥收到该链路状态包,进行一些检查并继续往邻居洪泛。
具体来说,如图1所示,一种TRILL网络MAC地址学习的方法,包括步骤:
与ES(End System,端系统)相连的RB(RBridge,路由网桥)学习所述端系统的MAC地址,并将所述MAC地址以TLV(具体为MAC-Reachability TLV)形式封装在ID为0000.0000.0000.00-00的LSP(Link-State Packet,链路状态包)中,周期性的向邻居路由网桥发送;
当邻居路由网桥接收到LSP后,判断本地是否存在链路状态包中的MAC地址;
若不存在,学习该MAC地址,设置该网桥的置信值为接收到的MAC地址的置信值;
若存在,更新本地MAC地址的置信值为接收到的值;
将链路状态包中MAC地址的置信值加1,并向除接收端外的所有邻居发送。
具体来说,在TRILL网络MAC地址学习方法中,首先要与端系统相连的路由网桥学习端系统的MAC地址,并将该MAC地址封装在链路状态包中,周期性的向邻居路由网桥发送。在该过程中,路由网桥学习到端系统的MAC地址后,将该MAC地址以MAC-Reachability TLV形式封装在ID为0000.0000.0000.00-00的链路状态包中。当邻居路由网桥接收到该链路状态包后,判断本地是否存在链路状态包中的MAC地址,如果存在,更新本地MAC地址的置信值为接收到的值;若不存在,学习该MAC地址,设置本地的置信值为接收到的MAC地址的置信值。之后,将链路状态包中MAC地址的置信值加1,并向除接收端外的所有邻居发送。
其中,如图2所示,更新本地MAC地址的置信值为接收到的值的过程包括步骤:
判断本地MAC地址的置信值(Confidence)是否大于接收到的MAC地址的置信值;
若是,更新本地的MAC地址的置信值为接收到的MAC地址的置信值,然后执行步骤将链路状态包中MAC地址的置信值加1,并向除接收端外的所有邻居发送;
若不是,不更新本地MAC地址的置信值,但是当更新周期到期时,将链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的MAC地址。
具体来说,当本地存在数据链路包中的MAC地址时,将本地MAC地址的Confidence(置信值)与接收MAC地址的Confidence进行比较,比本地小则更新本地MAC地址的Confidence为接收到的值,比本地大则不更新。更新本地MAC地址后,把TLV中的Confidence字段加1,再往除接收端外所有邻居发送;Confidence达到255后,则不再往外发送。
值得指出的是,在本实施例中,如果本地MAC地址的置信值小于接收到的数据链路包中的MAC地址的置信值,先不更新本地MAC地址的置信值。但是,待更新周期到期时,将本地MAC地址的置信值加1,然后再往除接收端外的所有邻居发送本地的MAC地址。TRILL网络中,所有的路由网桥都进行上述操作后,端系统的MAC信息能够同步至网络中的所有设备中。
更进一步,对一种TRILL网络MAC地址学习的方法的总体概述为:
步骤1:RB学习到ES的MAC后以MAC-Reachability TLV形式封装在ID为0000.0000.0000.00-00的LSP中,周期性往所有邻居路由网桥发送;
步骤2:路由网桥收到LSP后,对TLV中每一个MAC地址,首先检查本地是否存在该MAC地址。如果本地不存在该MAC地址,则进行学习该MAC地址,其Confidence为接收到的值;如果存在,则将本地MAC地址的Confidence与接收MAC地址的Confidence进行比较,比本地小则更新本地MAC地址的Confidence为接收到的值, 比本地大则不更新。更新本地MAC地址后,把TLV中的Confidence字段加1,再往除接收端外所有邻居发送;Confidence达到255后,则不再往外发送;
步骤3:所有的路由网桥都进行步骤1和步骤2动作,使得端系统的MAC信息同步到网络中的所有设备。
本实施例利用IS-IS(Intermediate System-to-Intermediate System,中间系统到中间系统)的洪泛机制来发布MAC地址,通过逐个路由网桥增加置信值的机制,防止了链路状态包的无限循环。该方法不影响原有的TRILL链路状态数据库同步,不依赖TRILL路由,实现方式简单,节省了系统资源。
实施例二
基于上述实施例提出的一种TRILL网络MAC地址学习的方法,本实施例提出了一种TRILL网络MAC地址学习的装置。
如图3所示,一种TRILL网络MAC地址学习的装置,包括:
学习封装模块,用以学习端系统的MAC地址并将端系统的MAC地址封装在链路状态包中;
判断模块,与所述学习封装模块相连,用以判断本地是否存在所述链路状态包中的MAC地址;
第一设置模块,与所述判断模块相连,用以设置本地的置信值为所述链路状态包中的MAC地址的置信值;
第二设置模块,与所述判断模块相连,用以将本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值;
增加模块,分别于所述第一设置模块以及所述第二设置模块相连,用以将所述链路状态包中的MAC地址的置信值增加1。
具体来说,在本实施例中,与端系统相连的路由网桥中的学习封装模块学习端系统的MAC地址并将端系统的MAC地址封装在链路状态包中,然后向邻居路由网桥发送该链路状态包。然后判断模块判断本地是否存在所述链路状态包中的MAC地址,若不存在,第一设置模块设置本地的置信值为所述链路状态包中的MAC地址的置信值;若存在,第二设置模块将本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值。之后,增加模块将所述链路状态包中的MAC地址的置信值增加1。最后,本地路由网桥向除接收端外的所有邻居路由网桥发送所述链路状态数据包。
其中,如图4所示,所述第二设置模块包括:
判断单元,与所述判断模块相连,用以判断本地MAC地址的置信值是否大于接收到的所述链路状态包中的MAC地址的置信值;
更新单元,分别与所述判断单元以及所述增加模块相连,用以将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值;
周期单元,与所述判断单元相连,用以当更新周期到期时,将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
具体来说,本地存在所述链路状态包中的MAC地址时,首先由判断单元判断本地MAC地址的置信值是否大于接收到的所述链路状 态包中的MAC地址的置信值,若是,更新单元将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值,之后由增加模块将所述链路状态包中的MAC地址的置信值增加1;否则,不更新所述本地MAC地址的置信值,然后当更新周期到期时,周期单元将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
对于本领域的技术人员而言,阅读上述说明后,各种变化和修正无疑将显而易见。因此,所附的权利要求书应看作是涵盖本发明的真实意图和范围的全部变化和修正。在权利要求书范围内任何和所有等价的范围与内容,都应认为仍属本发明的意图和范围内。

Claims (10)

  1. 一种TRILL网络MAC地址学习的方法,其特征在于,所述方法包括步骤:
    与端系统相连的路由网桥学习所述端系统的MAC地址;
    将所述MAC地址封装在链路状态包中,向邻居路由网桥发送;
    当邻居路由网桥接收到所述链路状态包后,判断本地是否存在所述链路状态包中的MAC地址;
    若不存在,学习所述链路状态包中的MAC地址,设置本地的置信值为所述链路状态包中的MAC地址的置信值;
    若存在,将本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值;
    将所述链路状态包中的MAC地址的置信值增加1,然后向除接收端外的所有邻居路由网桥发送所述链路状态数据包。
  2. 根据权利要求1所述的TRILL网络MAC地址学习的方法,其特征在于,将所述端系统的所述MAC地址以TLV的形式封装在所述链路状态包中。
  3. 根据权利要求2所述的TRILL网络MAC地址学习的方法,其特征在于,所述链路状态包的ID为0000.0000.0000.00-00。
  4. 根据权利要求1所述的TRILL网络MAC地址学习的方法,其特征在于,将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值的过程包括步骤:
    判断本地MAC地址的置信值是否大于接收到的所述链路状态包中的MAC地址的置信值;
    若是,将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值,然后执行步骤将所述链路状态包中的MAC地址的置信值增加1,并向除接收端外的所有邻居路由网桥发送所述链路状态数据包;
    若不是,不更新所述本地MAC地址的置信值。
  5. 根据权利要求4所述的TRILL网络MAC地址学习的方法,其特征在于,在步骤不更新所述本地MAC地址的置信值之后还包括步骤:
    当更新周期到期时,本地路由网桥将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
  6. 根据权利要求5所述的TRILL网络MAC地址学习的方法,其特征在于,将所述链路状态包洪泛到所述TRILL网络中的所有路由网桥,所述路由网桥接收到所述链路状态包后执行步骤判断本地是否存在所述链路状态包中的MAC地址。
  7. 根据权利要求5所述的TRILL网络MAC地址学习的方法,其特征在于,当所述链路状态数据包中的置信值达到255后,不再向外发送所述链路状态数据包。
  8. 一种TRILL网络MAC地址学习的装置,其特征在于,所述装置包括:
    学习封装模块,用以学习端系统的MAC地址并将所述MAC地址封装在链路状态包中;
    判断模块,与所述学习封装模块相连,用以判断本地是否存在所述链路状态包中的MAC地址;
    第一设置模块,与所述判断模块相连,用以设置本地的置信值为所述链路状态包中的MAC地址的置信值;
    第二设置模块,与所述判断模块相连,用以将本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值;
    增加模块,分别与所述第一设置模块以及所述第二设置模块相连,用以将所述链路状态包中的MAC地址的置信值增加1。
  9. 根据权利要求8所述的TRILL网络MAC地址学习的装置,其特征在于,所述第二设置模块包括:
    判断单元,与所述判断模块相连,用以判断所述本地MAC地址的置信值是否大于接收到的所述链路数据包中的MAC地址的置信值;
    更新单元,分别与所述判断单元以及所述增加模块相连,用以将所述本地MAC地址的置信值更新为所述链路状态包中的MAC地址的置信值。
  10. 根据权利要求9所述的TRILL网络MAC地址学习的装置,其特征在于,所述第二设置单元还包括:
    周期单元,与所述判断单元相连,用以当更新周期到期时将所述链路状态包中MAC地址的置信值加1,再往除接收端外所有邻居发送更新后的所述链路状态包。
PCT/CN2016/101395 2015-12-09 2016-09-30 一种trill网络mac地址学习的方法及装置 WO2017097024A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP16871746.0A EP3220587A4 (en) 2015-12-09 2016-09-30 Method and apparatus for learning mac address of trill network
US15/529,993 US20170346717A1 (en) 2015-12-09 2016-09-30 Method and apparatus for learning mac address of trill network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510907128.0A CN105337868B (zh) 2015-12-09 2015-12-09 一种trill网络mac地址学习的方法及装置
CN201510907128.0 2015-12-09

Publications (1)

Publication Number Publication Date
WO2017097024A1 true WO2017097024A1 (zh) 2017-06-15

Family

ID=55288171

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101395 WO2017097024A1 (zh) 2015-12-09 2016-09-30 一种trill网络mac地址学习的方法及装置

Country Status (4)

Country Link
US (1) US20170346717A1 (zh)
EP (1) EP3220587A4 (zh)
CN (1) CN105337868B (zh)
WO (1) WO2017097024A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337868B (zh) * 2015-12-09 2018-03-30 上海斐讯数据通信技术有限公司 一种trill网络mac地址学习的方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571149A (zh) * 2010-12-29 2012-07-11 杭州讯能科技有限公司 一种电力线通信的中继方法和节点
CN102857441A (zh) * 2011-07-01 2013-01-02 中兴通讯股份有限公司 避免端系统地址分发信息协议报文风暴的方法及路由网桥
US20130003729A1 (en) * 2011-06-28 2013-01-03 Brocade Communications Systems, Inc. Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
CN104426778A (zh) * 2013-09-03 2015-03-18 华为技术有限公司 路由更新方法和路由设备
CN105337868A (zh) * 2015-12-09 2016-02-17 上海斐讯数据通信技术有限公司 一种trill网络mac地址学习的方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834855B (zh) * 2010-04-14 2014-03-19 杭州华三通信技术有限公司 一种防止序列号攻击的方法和设备
CN102404181B (zh) * 2010-09-08 2014-10-08 华为技术有限公司 应用链路状态路由的二层协议中的地址对应关系发送方法
CN102724097B (zh) * 2011-03-29 2017-03-01 中兴通讯股份有限公司 一种esadi处理方法和系统
US9401861B2 (en) * 2011-06-28 2016-07-26 Brocade Communications Systems, Inc. Scalable MAC address distribution in an Ethernet fabric switch
CN103973825B (zh) * 2013-02-01 2017-12-22 中兴通讯股份有限公司 叠加网络中通告mac地址可达性的方法、节点设备及发送方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571149A (zh) * 2010-12-29 2012-07-11 杭州讯能科技有限公司 一种电力线通信的中继方法和节点
US20130003729A1 (en) * 2011-06-28 2013-01-03 Brocade Communications Systems, Inc. Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
CN102857441A (zh) * 2011-07-01 2013-01-02 中兴通讯股份有限公司 避免端系统地址分发信息协议报文风暴的方法及路由网桥
CN104426778A (zh) * 2013-09-03 2015-03-18 华为技术有限公司 路由更新方法和路由设备
CN105337868A (zh) * 2015-12-09 2016-02-17 上海斐讯数据通信技术有限公司 一种trill网络mac地址学习的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3220587A4 *

Also Published As

Publication number Publication date
EP3220587A1 (en) 2017-09-20
EP3220587A4 (en) 2018-01-17
US20170346717A1 (en) 2017-11-30
CN105337868A (zh) 2016-02-17
CN105337868B (zh) 2018-03-30

Similar Documents

Publication Publication Date Title
US7450527B2 (en) Method and apparatus for implementing multiple portals into an Rbridge network
CN101395594B (zh) 用于计算机网络中ip骨干上的数据流的最优路由的技术
CN102868614B (zh) Trill网络中的报文转发方法和路由网桥
US9668160B2 (en) Topology discovery based on SCTP/X2 snooping
CN102638389A (zh) 一种trill网络的冗余备份方法及系统
CN101682552A (zh) 具有串连节点的网络中的故障通知
EP3095216B1 (en) Single hop overlay architecture for line rate performance in campus networks
WO2012126295A1 (zh) 未知单播数据帧的处理方法、路由装置及trill网络系统
WO2017097024A1 (zh) 一种trill网络mac地址学习的方法及装置
CN100496023C (zh) 一种传输链路状态信息的方法
WO2012129938A1 (zh) 一种esadi处理方法和系统
WO2011144111A2 (zh) 链路状态数据库同步检测方法及路由设备
WO2012079421A1 (zh) 域间链路状态信息的处理方法及路径计算单元
WO2014040422A1 (zh) 介质访问控制地址学习控制方法、装置和路由桥
CN102857417A (zh) Trill网络中数据的传输方法及系统
WO2013004140A1 (zh) 避免端系统地址分发信息协议报文风暴的方法及路由网桥
WO2018040941A1 (zh) 一种元数据的传输方法及装置
WO2015032261A1 (zh) 路由更新方法和路由设备
EP3020163B1 (en) Interworking between first protocol entity of stream reservation protocol and second protocol entity of routing protocol
TW201251387A (en) Domain gateway control system and method thereof
CN104270315B (zh) Trill广播网络中组播分发树的计算方法及系统
WO2016123938A1 (zh) 一种lsp序列号翻转的处理方法、装置及路由网桥rb
CN104486223A (zh) 一种基于ospf协议的gr方法及系统
Chen et al. Distance-vector routing protocols for networks with unidirectional link
CN103701701B (zh) 一种等价树ect迁移管理方法及装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15529993

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2016871746

Country of ref document: EP

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

Ref document number: 16871746

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE