WO2016176842A1 - Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel - Google Patents

Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel Download PDF

Info

Publication number
WO2016176842A1
WO2016176842A1 PCT/CN2015/078398 CN2015078398W WO2016176842A1 WO 2016176842 A1 WO2016176842 A1 WO 2016176842A1 CN 2015078398 W CN2015078398 W CN 2015078398W WO 2016176842 A1 WO2016176842 A1 WO 2016176842A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
mac address
interface
inbound interface
inbound
Prior art date
Application number
PCT/CN2015/078398
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2015/078398 priority Critical patent/WO2016176842A1/en
Priority to CN201580016456.XA priority patent/CN106464591B/en
Publication of WO2016176842A1 publication Critical patent/WO2016176842A1/en

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed in the present invention is a method, device controller and network element for Ethernet interface addressing in an MPLS-TP tunnel, which belongs to the technical field of communications. The method includes: the controller obtains information of an ingress interface from a first network element to a second network element in the MPLS-TP tunnel to be established, wherein the second network element is the next hop network element of the first network element on the MPLS-TP tunnel path; according to the information of the ingress interface from the first network element to the second network element, the controller obtains a MAC address of the ingress interface from the first network element to the second network element; according to the MAC address of the ingress interface from the first network element to the second network element, the controller obtains a MAC address of the ingress interface of the next hop network element of the first network element, and transmits the MAC address of the ingress interface of the next hop network element of the first network element to the first network element. The device includes a first obtaining module, a second obtaining module and an addressing module. The problem that mistake checking and correcting is difficult when IP address configuration is wrong is solved, the network maintenance workload is reduced and the processing speed of the network element is enhanced.

Description

一种MPLS-TP隧道中的以太接口寻址方法、装置、控制器和网元Ethernet interface addressing method, device, controller and network element in MPLS-TP tunnel 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种MPLS-TP(Multi-Protocol Label Switching Transport Profile,基于多协议标签交换的传输子集)隧道中的以太接口寻址方法、装置、控制器和网元。The present invention relates to the field of communication technologies, and in particular, to an Ethernet interface addressing method, apparatus, controller, and network element in a MPLS-TP (Multi-Protocol Label Switching Transport Profile) tunnel.
背景技术Background technique
MPLS-TP是融合MPLS包交换和传统传送网特性的传输技术。MPLS-TP为数据包传输提供MPLS-TP隧道,MPLS-TP隧道是由两个以上的网元及不同网元之间的连接组成,数据包可以在这些网元之间传输。在使用MPLS-TP隧道来传输MPLS报文时,当该MPLS-TP隧道内的网元发送该MPLS报文,该网元获取在该MPLS-TP隧道中的下一跳网元的入接口的MAC(Media Access Control,媒体访问控制)地址,将该MAC地址封装到该MPLS报文中,并发送封装后的该MPLS报文给下一跳网元,同样下一跳网元按以上方法将该MPLS报文继续往下游发送。MPLS-TP is a transmission technology that combines the characteristics of MPLS packet switching and traditional transport network. MPLS-TP provides an MPLS-TP tunnel for data packet transmission. An MPLS-TP tunnel consists of two or more network elements and connections between different network elements. Data packets can be transmitted between these network elements. When the MPLS-TP tunnel is used to transmit the MPLS packet, the network element in the MPLS-TP tunnel sends the MPLS packet, and the network element acquires the inbound interface of the next hop network element in the MPLS-TP tunnel. a MAC (Media Access Control) address, the MAC address is encapsulated in the MPLS packet, and the encapsulated MPLS packet is sent to the next hop network element, and the next hop network element is The MPLS packet continues to be sent downstream.
现有技术提供了一种MPLS-TP隧道中的下一跳网元的以太接口寻址方法,可以为:该网元获取下一跳网元的入接口的IP(Internet Protocol,网络之间互连的协议)地址,根据下一跳网元的入接口的IP地址,通过自身包括的ARP(Address Resolution Protocol,地址解析)协议,获取下一跳网元的入接口的MAC地址。The prior art provides an Ethernet interface addressing method for the next hop network element in the MPLS-TP tunnel, which may be: the network element obtains the IP of the inbound interface of the next hop network element (Internet Protocol) The address of the protocol is based on the IP address of the inbound interface of the next hop. The MAC address of the inbound interface of the next hop NE is obtained through the ARP (Address Resolution Protocol) protocol.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
在发送报文之前,需要为MPLS-TP网络中的所有网元的的入接口配置IP地址。由于MPLS-TP网络中网元数量往往很大,并且每个网元包括的入接口数量也很多,因此,为MPLS-TP网络中的所有网元的入接口配置IP地址的工作量很大且配置时容易出错;并且,在网元上运行ARP协议会占用网元大量的CPU(Central Processing Unit,中央处理器)使用率,从而影响网元的处理速度。Before sending a packet, you need to configure an IP address for the inbound interface of all NEs in the MPLS-TP network. Because the number of network elements in an MPLS-TP network is very large, and the number of inbound interfaces included in each network element is also large, the workload for configuring an IP address for the inbound interfaces of all network elements in the MPLS-TP network is large. It is easy to make mistakes in configuration. In addition, running ARP on a network element consumes a large number of CPUs (Central Processing Units), which affects the processing speed of network elements.
发明内容 Summary of the invention
为了解决现有技术的问题,本发明提供了一种MPLS-TP隧道中的以太接口寻址方法、装置、控制器和网元。技术方案如下:In order to solve the problems of the prior art, the present invention provides an Ethernet interface addressing method, apparatus, controller, and network element in an MPLS-TP tunnel. The technical solutions are as follows:
第一方面,本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址方法,所述方法包括:In a first aspect, an embodiment of the present invention provides an Ethernet interface addressing method in an MPLS-TP tunnel, where the method includes:
控制器获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;Obtaining, by the controller, the inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, where the second network is in the MPLS-TP tunnel path The element is a next hop network element of the first network element;
所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;The controller acquires a media access control MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element;
所述控制器根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址,将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。The controller obtains a MAC address of an inbound interface of a next hop network element of the first network element according to a MAC address of the inbound interface of the first network element to the second network element, where the first network is The MAC address of the inbound interface of the next hop element of the element is sent to the first network element.
结合第一方面的实现方式,在第一方面的第一种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。With the implementation of the first aspect, in a first possible implementation manner of the first aspect, the inbound interface information of the first network element to the second network element includes an inbound interface identifier of the second network element. .
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the inbound interface information of the first network element to the second network element includes The network element identifier of the second network element and the inbound interface identifier of the second network element.
结合第一方面或第一方面的第一种至第二种任一可能的实现方式,在第一方面的第三种可能的实现方式中,所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址之前,还包括:With reference to the first aspect, or any one of the first to the second possible implementations of the first aspect, in a third possible implementation manner of the first aspect, the controller is configured according to the first network element Before the inbound interface information of the second network element is obtained, before the media access control MAC address of the inbound interface of the first network element to the second network element is obtained, the method further includes:
所述控制器接收并保存所述第二网元的接口信息和接口的MAC地址;The controller receives and saves interface information of the second network element and a MAC address of the interface;
所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
结合第一方面或第一方面的第一种至第三种任一可能的实现方式,在第一方面的第四种可能的实现方式中,所述方法还包括:With reference to the first aspect, or any one of the first to the third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
所述控制器接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The controller receives a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
所述控制器根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址; The controller updates the MAC address of the inbound interface of the second network element according to the MAC address of the inbound interface modified by the second network element;
所述控制器根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。The controller updates the MAC address of the inbound interface of the next hop network element of the first network element according to the MAC address of the inbound interface of the second network element.
第二方面,本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址方法,所述方法包括:In a second aspect, an embodiment of the present invention provides an Ethernet interface addressing method in an MPLS-TP tunnel, where the method includes:
网元获取基于多协议标签交换MPLS报文;The network element acquires an MPLS packet based on a multi-protocol label exchange;
所述网元接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;Receiving, by the network element, a media access control MAC address of an inbound interface of a next hop network element of the network element;
所述网元将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The network element encapsulates the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
结合第二方面的实现方式,在第二方面的第一种可能的实现方式中,所述网元获取MPLS报文之前,还包括:With the implementation of the second aspect, in a first possible implementation manner of the second aspect, before the acquiring, by the network element, the MPLS packet, the network element further includes:
所述网元发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The network element sends the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述方法还包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
所述网元发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。Transmitting, by the network element, a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller is configured according to the network The MAC address of the inbound interface of the meta-modified device updates the MAC address of the inbound interface of the network element.
第三方面,本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址装置,所述装置包括:In a third aspect, an embodiment of the present invention provides an Ethernet interface addressing device in an MPLS-TP tunnel, where the device includes:
第一获取模块,用于获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;a first acquiring module, configured to acquire inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, in the MPLS-TP tunnel path The second network element is a next hop network element of the first network element;
第二获取模块,用于根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;a second obtaining module, configured to acquire, according to the inbound interface information of the first network element to the second network element, a media access control MAC address of the inbound interface of the first network element to the second network element;
寻址模块,用于根据所述第一网元到所述第二网元的入接口的MAC地址 得到所述第一网元的下一跳网元的入接口的MAC地址,将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。An addressing module, configured to: according to the MAC address of the inbound interface of the first network element to the second network element And obtaining a MAC address of the inbound interface of the next hop network element of the first network element, and sending the MAC address of the inbound interface of the next hop network element of the first network element to the first network element.
结合第三方面的实现方式,在第三方面的第一种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。With the implementation of the third aspect, in a first possible implementation manner of the third aspect, the inbound interface information of the first network element to the second network element includes an inbound interface identifier of the second network element. .
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the inbound interface information of the first network element to the second network element includes The network element identifier of the second network element and the inbound interface identifier of the second network element.
结合第三方面或第三方面的第一种至第二种任一可能的实现方式,在第三方面的第三种可能的实现方式中,所述装置还包括:With reference to the third aspect, or any one of the first to the second possible implementation manners of the third aspect, in a third possible implementation manner of the third aspect, the device further includes:
存储模块,用于接收并保存所述第二网元的接口信息和接口的MAC地址;a storage module, configured to receive and save interface information of the second network element and a MAC address of the interface;
所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
结合第三方面或第三方面的第一种至第三种任一可能的实现方式,在第三方面的第四种可能的实现方式中,所述装置还包括:With reference to the third aspect, or any one of the first to the third possible implementation manners of the third aspect, in a fourth possible implementation manner of the third aspect, the device further includes:
第一接收模块,用于接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The first receiving module is configured to receive a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
第一更新模块,用于根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;a first update module, configured to update, according to the MAC address of the inbound interface that is modified by the second network element, a MAC address of the inbound interface of the second network element;
第二更新模块,用于根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。And a second update module, configured to update, according to the MAC address of the inbound interface of the second network element, the MAC address of the inbound interface of the next hop element of the first network element.
第四方面,本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址装置,所述装置包括:In a fourth aspect, an embodiment of the present invention provides an Ethernet interface addressing device in an MPLS-TP tunnel, where the device includes:
第三获取模块,用于获取基于多协议标签交换MPLS报文;a third acquiring module, configured to acquire an MPLS packet based on a multi-protocol label exchange;
第二接收模块,用于接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;a second receiving module, configured to receive a media access control MAC address of an inbound interface of a next hop network element of the network element;
封装模块,用于将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The encapsulating module is configured to encapsulate the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
结合第四方面的实现方式,在第四方面的第一种可能的实现方式中,所述 装置还包括:In conjunction with the implementation of the fourth aspect, in a first possible implementation manner of the fourth aspect, The device also includes:
第一发送模块,用于发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The first sending module is configured to send the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述装置还包括:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the device further includes:
第二发送模块,用于发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。a second sending module, configured to send a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller is configured according to the The MAC address of the inbound interface of the network element is updated to update the MAC address of the inbound interface of the network element.
第五方面,本发明实施例提供了一种控制器,所述控制器包括:第一处理器和第一发送器;In a fifth aspect, an embodiment of the present invention provides a controller, where the controller includes: a first processor and a first transmitter;
所述第一处理器,用于获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;The first processor is configured to acquire inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the multi-protocol label switching based on the multi-protocol label switching, in the MPLS-TP tunnel The second network element in the path is a next hop network element of the first network element;
所述第一处理器,还用于根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;The first processor is further configured to acquire media access control of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element. MAC address;
所述第一处理器,还用于根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址;The first processor is further configured to obtain, according to a MAC address of the inbound interface of the first network element to the second network element, a MAC address of an inbound interface of a next hop network element of the first network element;
所述第一发送器,用于将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。The first transmitter is configured to send, to the first network element, a MAC address of an inbound interface of a next hop network element of the first network element.
结合第五方面的实现方式,在第五方面的第一种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。With the implementation of the fifth aspect, in a first possible implementation manner of the fifth aspect, the inbound interface information of the first network element to the second network element includes an inbound interface identifier of the second network element. .
结合第五方面或第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in the second possible implementation manner of the fifth aspect, the inbound interface information of the first network element to the second network element includes The network element identifier of the second network element and the inbound interface identifier of the second network element.
结合第五方面或第五方面的第一种至第二种任一可能的实现方式,在第五方面的第三种可能的实现方式中,所述第一处理器,还用于接收并保存所述第二网元的接口信息和接口的MAC地址; With reference to the fifth aspect, or any one of the first to the second possible implementation manners of the fifth aspect, in a third possible implementation manner of the fifth aspect, the first processor is further configured to receive and save The interface information of the second network element and the MAC address of the interface;
所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
结合第五方面或第五方面的第一种至第三种任一可能的实现方式,在第五方面的第四种可能的实现方式中,所述控制器还包括:第一接收器;With reference to the fifth aspect, or any one of the first to the third possible implementation manners of the fifth aspect, in a fourth possible implementation manner of the fifth aspect, the controller further includes: a first receiver;
所述第一接收器,用于接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The first receiver is configured to receive a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element ;
所述第一处理器,还用于根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;The first processor is further configured to: update, according to the MAC address of the inbound interface that is modified by the second network element, a MAC address of the inbound interface of the second network element;
所述第一处理器,还用于根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。The first processor is further configured to update, according to the MAC address of the inbound interface of the second network element, a MAC address of an inbound interface of the next hop element of the first network element.
第六方面,本发明实施例提供了一种网元,所述网元包括:第二处理器和第二接收器;In a sixth aspect, an embodiment of the present invention provides a network element, where the network element includes: a second processor and a second receiver;
所述第二处理器,用于获取基于多协议标签交换MPLS报文;The second processor is configured to acquire an MPLS packet based on a multi-protocol label exchange;
所述第二接收器,用于接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;The second receiver is configured to receive a media access control MAC address of an inbound interface of a next hop network element of the network element;
所述第二处理器,还用于将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The second processor is further configured to encapsulate a MAC address of an inbound interface of a next hop network element of the network element into the MPLS packet.
结合第六方面的实现方式,在第六方面的第一种可能的实现方式中,所述网元还包括:第二发送器;With the implementation of the sixth aspect, in a first possible implementation manner of the sixth aspect, the network element further includes: a second transmitter;
所述第二发送器,用于发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The second transmitter is configured to send the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
结合第六方面或第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,所述网元还包括:第二发送器;With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the network element further includes: a second transmitter;
所述第二发送器,还用于发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的 入接口的MAC地址。The second transmitter is further configured to send a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so as to facilitate the Updating, by the controller, the network element according to the MAC address of the inbound interface modified by the network element MAC address of the inbound interface.
在本发明中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop element of the first network element The MAC address of the inbound interface is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop network element of the next hop element of the first network element, and does not need to be the inbound interface of the network element. The IP address is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. Improve the processing speed of network elements.
附图说明DRAWINGS
图1-1是本发明实施例1提供的一种MPLS-TP隧道中的以太接口寻址方法流程图;1-1 is a flowchart of an Ethernet interface addressing method in an MPLS-TP tunnel according to Embodiment 1 of the present invention;
图1-2是本发明实施例1提供的另一种MPLS-TP隧道中的以太接口寻址方法流程图;1-2 is a flowchart of an Ethernet interface addressing method in another MPLS-TP tunnel according to Embodiment 1 of the present invention;
图2-1是本发明实施例2提供的一种MPLS-TP隧道中的以太接口寻址方法流程图;2-1 is a flowchart of an Ethernet interface addressing method in an MPLS-TP tunnel according to Embodiment 2 of the present invention;
图2-2是本发明实施例2提供的一种MPLS-TP隧道的示意图;2-2 is a schematic diagram of an MPLS-TP tunnel provided by Embodiment 2 of the present invention;
图3是本发明实施例3提供的一种MPLS-TP隧道中的以太接口寻址方法流程图;3 is a flowchart of an Ethernet interface addressing method in an MPLS-TP tunnel according to Embodiment 3 of the present invention;
图4是本发明实施例4提供的一种更新MPLS-TP隧道的交叉表的方法流程图;4 is a flowchart of a method for updating a crosstab of an MPLS-TP tunnel according to Embodiment 4 of the present invention;
图5是本发明实施例5提供的一种MPLS-TP隧道中的以太接口寻址装置结构示意图;5 is a schematic structural diagram of an Ethernet interface addressing device in an MPLS-TP tunnel according to Embodiment 5 of the present invention;
图6是本发明实施例6提供的一种MPLS-TP隧道中的以太接口寻址装置结构示意图;6 is a schematic structural diagram of an Ethernet interface addressing device in an MPLS-TP tunnel according to Embodiment 6 of the present invention;
图7是本发明实施例7提供的一种控制器的结构示意图;7 is a schematic structural diagram of a controller according to Embodiment 7 of the present invention;
图8是本发明实施例8提供的一种网元的结构示意图。FIG. 8 is a schematic structural diagram of a network element according to Embodiment 8 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.
实施例1Example 1
本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址方法,该方法的执行主体为控制器,控制器可以对网络进行集中控制且部署在独立服务器上的系统;控制器具体可以为计算机或者服务器等。参见图1-1,该方法包括:The embodiment of the invention provides an Ethernet interface addressing method in an MPLS-TP tunnel. The execution body of the method is a controller, and the controller can centrally control the network and deploy the system on the independent server; For computers or servers, etc. Referring to Figure 1-1, the method includes:
步骤101a:控制器获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在该MPLS-TP隧道路径中第二网元为第一网元的下一跳网元; Step 101a: The controller acquires inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, and the second network in the MPLS-TP tunnel path. The element is the next hop network element of the first network element;
步骤102a:控制器根据第一网元到第二网元的入接口信息,获取第一网元到第二网元的入接口的媒体访问控制MAC地址; Step 102a: The controller acquires a media access control MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element.
步骤103a:控制器根据第一网元到第二网元的入接口的MAC地址得到第一网元的下一跳网元的入接口的MAC地址,将第一网元的下一跳网元的入接口的MAC地址发送给第一网元。 Step 103a: The controller obtains the MAC address of the inbound interface of the next hop element of the first network element according to the MAC address of the inbound interface of the first network element to the second network element, and the next hop element of the first network element The MAC address of the inbound interface is sent to the first network element.
本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址方法,该方法的执行主体为网元,网元具体可以为路由器等。参见图1-2,该方法包括:The embodiment of the present invention provides an Ethernet interface addressing method in an MPLS-TP tunnel. The method is implemented by a network element, and the network element may be a router or the like. Referring to Figure 1-2, the method includes:
步骤101b:网元获取基于多协议标签交换MPLS报文; Step 101b: The network element acquires an MPLS packet based on a multi-protocol label exchange.
步骤102b:网元接收该网元的下一跳网元的入接口的媒体访问控制MAC地址; Step 102b: The network element receives the media access control MAC address of the inbound interface of the next hop network element of the network element.
步骤103b:网元将该网元的下一跳网元的入接口的MAC地址封装到该MPLS报文中。 Step 103b: The network element encapsulates the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例2Example 2
本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址方法,该方法的执行主体为控制器,控制器可以为对网络进行集中控制且部署在独立服务器 上的系统;控制器具体可以为计算机或者服务器等。参见图2-1,其中,该方法包括:The embodiment of the invention provides an Ethernet interface addressing method in an MPLS-TP tunnel. The execution body of the method is a controller, and the controller can centrally control the network and deploy on a separate server. The system; the controller can be a computer or a server. See Figure 2-1, where the method includes:
步骤201:控制器接收建立隧道请求,该建立隧道请求携带源节点、目的节点以及隧道的参数;Step 201: The controller receives a tunnel establishment request, where the tunnel establishment request carries parameters of the source node, the destination node, and the tunnel.
当用户发送MPLS报文时,需要在MPLS-TP网络中建立传输该MPLS报文的MPLS-TP隧道路径,此时通过客户侧设备或者首节点发送建立隧道请求给控制器,该建立隧道请求携带源节点、目的节点以及隧道的参数,隧道的参数可以为隧道的带宽等;控制器接收建立隧道请求,执行步骤202。When the MPLS packet is sent by the user, the MPLS-TP tunnel is set up in the MPLS-TP network. The MPLS-TP tunnel is used to send the tunnel request to the controller through the client device or the first node. The source node, the destination node, and the parameters of the tunnel, the parameters of the tunnel may be the bandwidth of the tunnel, and the like; the controller receives the tunnel establishment request, and performs step 202.
步骤202:控制器根据该建立隧道请求,计算待建立的MPLS-TP隧道路径;Step 202: The controller calculates an MPLS-TP tunnel path to be established according to the tunnel establishment request.
控制器根据源节点、目的节点和隧道的参数,计算从源节点到达目的节点的且满足该隧道的参数的一条MPLS-TP隧道路径。其中该MPLS-TP隧道路径至少包括经过的各个网元标识和入接口标识。可选地,该MPLS-TP隧道路径还可以包括出接口标识、入标签和出标签等。The controller calculates an MPLS-TP tunnel path from the source node to the destination node and satisfying the parameters of the tunnel according to the parameters of the source node, the destination node, and the tunnel. The MPLS-TP tunnel path includes at least each of the passed NE identifiers and the inbound interface identifiers. Optionally, the MPLS-TP tunnel path may further include an outbound interface identifier, an inbound label, and an outgoing label.
例如,控制器生成的MPLS-TP隧道路径如图2-2所示。其中,在该MPLS-TP隧道路径中,网元1的网元标识为NE1,网元1的出接口标识为P1,出接口标签为201;网元2的网元标识为NE2,网元2的入接口标识为P2,入接口的MAC地址为MAC2,入接口标签为201,出接口标识为P3,出接口的MAC地址为MAC3,出接口标签为202;网元3的网元标识为NE3,网元3的入接口标识为P4,入接口的MAC地址为MAC4,入接口标签为202,出接口标识为P5,出接口的MAC地址为MAC5,出接口标签为203;网元4的网元标识为NE4,网元4的入接口标识为P6,入接口的MAC地址为MAC6,入接口标签为203。For example, the MPLS-TP tunnel path generated by the controller is shown in Figure 2-2. In the MPLS-TP tunnel path, the network element identifier of the network element 1 is NE1, the outbound interface identifier of the network element 1 is P1, the outgoing interface label is 201, and the network element identifier of the network element 2 is NE2, and the network element 2 is The inbound interface ID is P2, the MAC address of the inbound interface is MAC2, the inbound interface label is 201, the outbound interface ID is P3, the outbound interface MAC address is MAC3, the outbound interface label is 202, and the NE label of the NE 3 is NE3. The inbound interface of the network element 3 is identified as P4, the MAC address of the inbound interface is MAC4, the inbound interface label is 202, the outbound interface identifier is P5, the outbound interface is MAC5, and the outgoing interface label is 203. The inbound interface identifier is NE4, the inbound interface identifier of the inbound interface 4 is P6, the inbound interface MAC address is MAC6, and the inbound interface label is 203.
步骤203:控制器获取该MPLS-TP隧道路径中的第一网元到第二网元的入接口信息;Step 203: The controller acquires inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path.
其中,第一网元为该MPLS-TP隧道路径中的任一网元,在该MPLS-TP隧道路径中第二网元为第一网元的下一跳网元;第一网元到第二网元的入接口信息包括第二网元的入接口标识;或者,第一网元到第二网元的入接口信息包括第二网元的网元标识和第二网元的入接口标识。The first network element is any one of the MPLS-TP tunnel paths, and the second network element is the next hop network element of the first network element in the MPLS-TP tunnel path; the first network element to the first network element The inbound interface information of the second network element includes the inbound interface identifier of the second network element; or the inbound interface information of the first network element to the second network element includes the network element identifier of the second network element and the inbound interface identifier of the second network element. .
步骤204:控制器根据第一网元到第二网元的入接口信息,获取第一网元到第二网元的入接口的MAC地址; Step 204: The controller acquires the MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element.
控制器根据第一网元到第二网元的入接口信息,从第二网元的入接口信息和接口的MAC地址的对应关系中获取第一网元到第二网元的入接口的MAC地址。The controller obtains, according to the inbound interface information of the first network element to the second network element, the MAC address of the inbound interface of the first network element to the second network element from the correspondence between the inbound interface information of the second network element and the MAC address of the interface address.
在本步骤之前,第二网元发送第二网元的接口信息和接口的MAC地址给控制器,控制器接收并保存第二网元的接口信息和接口的MAC地址,第二网元的接口的MAC地址包括第二网元的入接口的MAC地址。第二网元的接口信息包括第二网元的入接口标识,或者第二网元的接口信息包括第二网元的入接口标识和第二网元的网元标识。Before the step, the second network element sends the interface information of the second network element and the MAC address of the interface to the controller, where the controller receives and saves the interface information of the second network element and the MAC address of the interface, and the interface of the second network element The MAC address includes the MAC address of the inbound interface of the second network element. The interface information of the second network element includes the inbound interface identifier of the second network element, or the interface information of the second network element includes the inbound interface identifier of the second network element and the network element identifier of the second network element.
如果第一网元到第二网元的入接口信息包括第二网元的入接口标识,则本步骤可以为:控制器根据第二网元的入接口标识,从预先存储的第二网元的入接口标识和第二网元的入接口的MAC地址的对应关系中获取第一网元到第二网元的入接口的MAC地址。If the inbound interface information of the first network element to the second network element includes the inbound interface identifier of the second network element, the step may be: the controller uses the second network element that is pre-stored according to the inbound interface identifier of the second network element. The MAC address of the inbound interface of the first network element to the second network element is obtained by the mapping between the inbound interface identifier and the MAC address of the inbound interface of the second network element.
在本步骤之前,控制器需要存储第二网元的入接口标识和第二网元的入接口的MAC地址的对应关系,其中,接口标识包括入接口标识和出接口标识,但在网元未建立MPLS-TP隧道路径时,不区分网元的接口方向,因此此时将入接口和出接口统称接口,具体过程如下:Before the step, the controller needs to store the mapping between the inbound interface identifier of the second network element and the MAC address of the inbound interface of the second network element, where the interface identifier includes the inbound interface identifier and the outbound interface identifier, but the network element is not When an MPLS-TP tunnel is set up, the inbound interface and the outbound interface are collectively called interfaces. The specific process is as follows:
在网元和控制器上线时,或者,网元在接收到控制器发送的查询请求时,MPLS-TP网络中的每个网元向控制器发送本网元的接口标识和接口的MAC地址;控制器接收每个网元发送的本网元的接口标识和接口的MAC地址,保存每个网元的接口标识和接口的MAC地址。When the network element and the controller are online, or when the network element receives the query request sent by the controller, each network element in the MPLS-TP network sends the interface identifier of the local network element and the MAC address of the interface to the controller. The controller receives the interface identifier of the local network element and the MAC address of the interface sent by each network element, and saves the interface identifier of each network element and the MAC address of the interface.
其中,接口标识可以为唯一标识该接口的索引号,或者由该接口所在的物理板位号、子卡号和接口ID组成的三元组标识等。The interface identifier may be an index number that uniquely identifies the interface, or a triplet identifier that is composed of a physical board number, a subcard number, and an interface ID.
如果第一网元到第二网元的入接口信息包括第二网元的入接口标识和第二网元的网元标识,则本步骤可以为:If the inbound interface information of the first network element to the second network element includes the inbound interface identifier of the second network element and the network element identifier of the second network element, the step may be:
控制器获取第二网元的网元标识,根据第二网元的网元标识和第一网元到第二网元的入接口标识,从第二网元的网元标识、第一网元到第二网元的入接口标识和第一网元到第二网元的入接口的MAC地址的对应关系中获取第一网元到第二网元的入接口的MAC地址。The controller obtains the network element identifier of the second network element, and identifies the network element identifier and the first network element of the second network element according to the network element identifier of the second network element and the inbound interface identifier of the first network element to the second network element. And obtaining, by the mapping between the inbound interface identifier of the second network element and the MAC address of the inbound interface of the second network element, the MAC address of the inbound interface of the first network element to the second network element.
在本步骤之前,控制器需要存储第二网元的网元标识、第一网元到第二网元的入接口标识和第一网元到第二网元的入接口的MAC地址的对应关系,其中,接口标识包括入接口标识和出接口标识,但在网元未建立MPLS-TP隧道 路径时,不区分网元的接口方向,因此此时将入接口和出接口统称接口,具体过程如下:Before the step, the controller needs to store the network element identifier of the second network element, the inbound interface identifier of the first network element to the second network element, and the correspondence between the first network element and the MAC address of the inbound interface of the second network element. The interface identifier includes the inbound interface identifier and the outbound interface identifier, but the MPLS-TP tunnel is not established in the network element. In the case of a path, the inbound interface and the outbound interface are collectively referred to as the interface. The specific process is as follows:
在网元和控制器上线时,或者,网元在接收到控制器发送的查询请求时,MPLS-TP网络中的每个网元向控制器发送本网元的网元标识、接口标识和接口的MAC地址;控制器接收每个网元发送的本网元的网元标识、接口标识和接口的MAC地址,保存每个网元的网元标识、接口标识和接口的MAC地址。When the network element and the controller are online, or when the network element receives the query request sent by the controller, each network element in the MPLS-TP network sends the network element identifier, interface identifier, and interface of the local network element to the controller. The controller receives the network element identifier, the interface identifier, and the MAC address of the interface of each network element, and saves the network element identifier, interface identifier, and MAC address of each interface.
其中,网元标识可以为网元的IP地址或者网元的管理ID(IDentity,身份标识号码)。The network element identifier may be an IP address of the network element or a management ID (IDentity, ID number) of the network element.
其中,控制器跟网元之间进行通信时,如控制器向网元发送查询请求以及网元向控制器发送网元标识、接口标识和接口的MAC地址,可以采用PCEP(Path Computation Element Communication Protocol,路径计算单元交互协议)以及Openflow(开放流表协议)等协议来实现,在本发明实施例中对传输协议不作具体限定。When the controller communicates with the network element, if the controller sends a query request to the network element and the network element sends the network element identifier, the interface identifier, and the MAC address of the interface to the controller, the PCEP (Path Computation Element Communication Protocol) may be adopted. , the path calculation unit interaction protocol) and the Openflow (Open Flow Table Protocol) and other protocols are implemented, and the transmission protocol is not specifically limited in the embodiment of the present invention.
例如,控制器存储的网元标识、接口标识和接口的MAC地址的对应关系如下表1所示:For example, the correspondence between the NE identifier, the interface identifier, and the MAC address of the interface stored in the controller is as follows:
表1Table 1
网元标识NE identifier 接口标识Interface identifier 接口的MAC地址MAC address of the interface
NE1NE1 P1P1 MAC1MAC1
NE2NE2 P2P2 MAC2MAC2
NE2NE2 P3P3 MAC3MAC3
NE3NE3 P4P4 MAC4MAC4
NE3NE3 P5P5 MAC5MAC5
NE4NE4 P6P6 MAC6MAC6
……...... ……...... ……......
其中,MPLS-TP隧道路径中包括网元标识、入接口标识和出接口标识,控制器计算得到该MPLS-TP隧道路径,则可以获知该MPLS-TP隧道路径包括的网元标识以及网元的入接口标识和出接口标识;例如,控制器获知该MPLS-TP隧道路径包括的网元标识分别为NE1、NE2、NE3和NE4;入接口标识分别为P2、P4和P6。控制器从表1中获取网元1的下一跳网元的网元标识为NE2,网元1到网元2的入接口标识为P2,根据网元1的下一跳网元的 网元标识NE2和网元1到网元2的入接口标识P2,从表1中获取网元1的下一跳网元的入接口的MAC地址为MAC2;同样,网元2的下一跳网元的网元标识为NE3,网元2到网元3的入接口标识为P4,根据网元2的下一跳网元的网元标识NE3和网元2到网元3的入接口标识P4,从表1中获取网元2的下一跳网元的入接口的MAC地址为MAC4,网元3的下一跳网元的网元标识为NE4,网元3到网元4的入接口标识为P6,根据网元3的下一跳网元的网元标识NE4和网元3到网元4的入接口标识P6,从表1中获取网元3的下一跳网元的入接口的MAC地址为MAC6。The MPLS-TP tunnel path includes the network element identifier, the inbound interface identifier, and the outbound interface identifier, and the controller calculates the MPLS-TP tunnel path, and the network element identifier and the network element included in the MPLS-TP tunnel path are obtained. The inbound interface identifier and the outbound interface identifier; for example, the controller learns that the network element identifiers included in the MPLS-TP tunnel path are NE1, NE2, NE3, and NE4, respectively; and the inbound interface identifiers are P2, P4, and P6, respectively. The controller obtains the network element identifier of the next hop network element of the network element 1 as NE2, and the inbound interface identifier of the network element 1 to the network element 2 is P2, according to the next hop network element of the network element 1 The network element identifies NE2 and the inbound interface identifier P2 of the network element 1 to the network element 2, and obtains the MAC address of the inbound interface of the next hop network element of the network element 1 from the table 1 as MAC2; likewise, the next hop of the network element 2 The network element identifier of the network element is NE3, and the inbound interface identifier of the network element 2 to the network element 3 is P4. The network element identifier NE3 of the next hop network element of the network element 2 and the inbound interface identifier of the network element 2 to the network element 3 are identified. P4, the MAC address of the inbound interface of the next hop network element of the network element 2 is obtained from Table 1, and the network element identifier of the next hop network element of the network element 3 is NE4, and the network element 3 is connected to the network element 4. The interface identifier is P6, and the network element identifier NE4 of the next hop network element of the network element 3 and the inbound interface identifier P6 of the network element 3 to the network element 4 are obtained, and the entry of the next hop network element of the network element 3 is obtained from the table 1. The MAC address of the interface is MAC6.
其中,在本发明实施例中的接口为网络侧接口,因此,网元向控制器发送本网元的网元标识、接口标识和接口的MAC地址之前,先确定该接口是否为网络侧接口,如果是,则发送网元标识、接口标识和接口的MAC地址给控制器;如果不是,则结束。The interface in the embodiment of the present invention is a network side interface. Therefore, before the network element sends the network element identifier, the interface identifier, and the MAC address of the interface to the controller, the network element determines whether the interface is a network side interface. If yes, the network element identifier, the interface identifier, and the MAC address of the interface are sent to the controller; if not, the process ends.
其中,网元确定该接口是否为网络侧接口的步骤可以为:The step of determining, by the network element, whether the interface is a network side interface may be:
确定该接口是否使能MPLS-TP或者是否在线路单板上;如果该接口使能MPLS-TP或者在线路单板上,则确定该接口为网络侧接口;如果该接口不使能MPLS-TP且不在线路单板上,则确定该接口不为网络侧接口。If the interface is enabled with MPLS-TP or is on the line card, if the interface is enabled with MPLS-TP or on the line card, the interface is determined to be the network-side interface. If the interface is not enabled with MPLS-TP. If the board is not on the line card, the interface is not the network side interface.
其中,使能MPLS-TP是指具有转发MPLS报文的功能。The MPLS-TP is enabled to forward MPLS packets.
步骤205:控制器根据第一网元到第二网元的入接口的MAC地址得到第一网元的下一跳网元的入接口的MAC地址;Step 205: The controller obtains the MAC address of the inbound interface of the next hop network element of the first network element according to the MAC address of the inbound interface of the first network element to the second network element.
控制器将第一网元到第二网元的入接口的MAC地址作为第一网元的下一跳网元的入接口的MAC地址。The controller uses the MAC address of the inbound interface of the first network element to the second network element as the MAC address of the inbound interface of the next hop network element of the first network element.
可选地,控制器可以将第一网元的下一跳网元的入接口的MAC地址写入该MPLS-TP隧道的交叉表中。Optionally, the controller may write the MAC address of the inbound interface of the next hop element of the first network element into the crosstab of the MPLS-TP tunnel.
例如,将NE1的下一跳网元的入接口的MAC地址MAC2、NE2的下一跳网元的入接口的MAC地址MAC4以及NE3的下一跳网元的入接口MAC的地址MAC6和NE4的下一跳网元的入接口的MAC地址无效写入到该MPLS-TP隧道的交叉表中,该MPLS-TP隧道的交叉表中还可以包括本网元的入接口标识、入标签、本网元的出接口标识、出标签、下一跳网元的网元标识和/或下一跳网元的入接口标识等,如下表2所示。For example, the MAC address MAC2 of the inbound interface of the next hop NE of NE1, the MAC address MAC4 of the inbound interface of the next hop NE of NE2, and the addresses MAC6 and NE4 of the inbound interface of the next hop NE of NE3. The MAC address of the inbound interface of the next-hop NE is invalid. The cross-tab of the MPLS-TP tunnel can also include the inbound interface identifier of the local NE, the inbound label, and the local network. The outbound interface identifier, outgoing label, network element identifier of the next hop network element, and/or the inbound interface identifier of the next hop network element are as shown in Table 2 below.
表2Table 2
网元标Net element 入接口标Incoming interface 入标Entry criteria 出接口标Interface label 出标Bid 下一跳网元的入接口的MACMAC address of the inbound interface of the next hop NE
knowledge knowledge sign knowledge sign 地址address
NE1NE1 \ \ \\ P1P1 201201 MAC2 MAC2
NE2NE2
P2P2 201201 P3 P3 202202 MAC4 MAC4
NE3NE3
P4P4 202202 P5 P5 203203 MAC6 MAC6
NE4NE4
P6P6 203203 \\ \\ \……\......
步骤206:控制器将第一网元的下一跳网元的入接口的MAC地址发送给第一网元。Step 206: The controller sends the MAC address of the inbound interface of the next hop network element of the first network element to the first network element.
在本步骤中控制器也可以获取该第一网元的交叉表,将第一网元对应的交叉表发送给第一网元。In this step, the controller may also obtain the cross-tab of the first network element, and send the cross-tab corresponding to the first network element to the first network element.
对于该MPLS-TP隧道路径包括的任一网元,控制器根据该网元的网元标识,从该MPLS-TP隧道的交叉表中获取该网元的入接口标识、入标签、出接口标识、出标签、下一跳网元的入接口的MAC地址等,将获取的信息作为该网元的交叉表,将该网元的交叉表发送给该网元。For any network element included in the MPLS-TP tunnel path, the controller obtains the inbound interface identifier, the inbound label, and the outbound interface identifier of the network element from the cross-tab of the MPLS-TP tunnel according to the network element identifier of the network element. The outbound label, the MAC address of the inbound interface of the next hop network element, and the like, and the obtained information is used as a cross table of the network element, and the cross table of the network element is sent to the network element.
例如,从表2中获取包含网元1的网元标识NE1的交叉表如下表3所示,将表3的信息发送给网元1;同样,从表2中获取包含网元2的网元标识NE2的交叉表如下表4所示,将表4的信息发送给网元2,从表2中获取包含网元3的网元标识NE3的交叉表如下表5所示,将表5的信息发送给网元3;从表2中获取包含网元4的网元标识NE4的交叉表如下表6所述,将表6的信息发送给网元4。For example, the cross-tab of the network element identifier NE1 including the network element 1 is obtained from the following table 3, and the information of the table 3 is sent to the network element 1; likewise, the network element including the network element 2 is obtained from the table 2. The cross-tab of the identifier NE2 is as shown in Table 4 below. The information of Table 4 is sent to the network element 2, and the cross-tab of the network element identifier NE3 including the network element 3 is obtained from Table 2, as shown in Table 5 below. The information is sent to the network element 3; the cross-tab of the network element identifier NE4 including the network element 4 is obtained from the table 2, and the information of the table 6 is sent to the network element 4.
表3table 3
Figure PCTCN2015078398-appb-000001
Figure PCTCN2015078398-appb-000001
表4Table 4
Figure PCTCN2015078398-appb-000002
Figure PCTCN2015078398-appb-000002
表5table 5
Figure PCTCN2015078398-appb-000003
Figure PCTCN2015078398-appb-000003
表6Table 6
Figure PCTCN2015078398-appb-000004
Figure PCTCN2015078398-appb-000004
其中,控制器将该网元的交叉表发送给网元时可以采用PCEP(Path Computation Element Communication Protocol,路径计算单元交互协议)以及Openflow(开放流表协议)等协议来实现,在本发明实施例中对控制器下发网元的交叉表的协议不作具体限定。The controller can implement the cross-tab of the network element by using a protocol such as a PC Comp (Path Computation Element Communication Protocol) and an OpenFlow (Open Flow Table Protocol), in the embodiment of the present invention. The protocol for the crosstab of the network element to be sent by the controller is not specifically limited.
进一步地,控制器也可以直接将该MPLS-TP隧道的交叉表发送给各个网元。Further, the controller may directly send the cross-tab of the MPLS-TP tunnel to each network element.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例3Example 3
本发明实施例提供了MPLS-TP隧道路径中的以太接口寻址方法,该方法的执行主体为网元,网元具体可以为路由器等;参见图3,其中,该方法包括:The embodiment of the present invention provides an Ethernet interface addressing method in an MPLS-TP tunnel path. The method is implemented by a network element, and the network element may be a router or the like. Referring to FIG. 3, the method includes:
步骤301:网元获取MPLS报文以及接收网元的下一跳网元的入接口的MAC地址;Step 301: The network element acquires the MPLS packet and receives the MAC address of the inbound interface of the next hop network element of the network element.
其中,网元获取MPLS报文的步骤可以为:The step of the network element acquiring the MPLS packet may be:
当该网元为该MPLS-TP隧道路径中的首节点时,该网元接收源节点发送 的报文,将传输该报文的MPLS-TP隧道的隧道标签写入所述报文中得到该MPLS报文;当该网元不是该MPLS-TP隧道路径中的首节点时,该网元接收在MPLS-TP隧道路径中该网元的上一跳网元发送的MPLS报文。When the network element is the first node in the MPLS-TP tunnel path, the network element receives the source node to send The packet of the MPLS-TP tunnel that transmits the packet is written in the packet to obtain the MPLS packet; when the network element is not the first node in the MPLS-TP tunnel path, the network element The MPLS packet sent by the last hop network element of the network element in the MPLS-TP tunnel path is received.
其中,网元接收网元的下一跳网元的入接口的MAC地址的步骤可以为:The step of the network element receiving the MAC address of the inbound interface of the next hop element of the network element may be:
网元接收控制器发送的该网元的下一跳网元的入接口的MAC地址;或者,接收控制器发送的该网元的交叉表,该交叉表中至少包括该网元的下一跳网元的入接口的MAC地址,从该网元的交叉表中获取该网元的下一跳网元的入接口的MAC地址。The network element receives the MAC address of the inbound interface of the next hop network element of the network element sent by the controller; or receives the cross table of the network element sent by the controller, where the cross table includes at least the next hop of the network element The MAC address of the inbound interface of the NE, and the MAC address of the inbound interface of the next hop NE of the NE is obtained from the crosstab of the NE.
网元为该MPLS-TP隧道路径中的任一网元。The network element is any network element in the MPLS-TP tunnel path.
步骤302:该网元将该网元的下一跳网元的入接口的MAC地址封装到该MPLS报文中;Step 302: The network element encapsulates the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
步骤303:该网元发送该封装后的MPLS报文给该网元的下一跳网元。Step 303: The network element sends the encapsulated MPLS packet to the next hop network element of the network element.
该网元的下一跳网元接收该封装后的MPLS报文,确定该MPLS报文携带的入接口的MAC地址是否是本网元的入接口的MAC地址,如果是,重复步骤301、302、303,并将该MPLS报文发送给该下一跳网元的下一跳网元;如果否,将该MPLS报文丢弃。The next hop network element of the network element receives the encapsulated MPLS packet, and determines whether the MAC address of the inbound interface carried in the MPLS packet is the MAC address of the inbound interface of the local network element. If yes, repeat steps 301 and 302. And 303, and sending the MPLS packet to the next hop network element of the next hop network element; if not, discarding the MPLS packet.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例4Example 4
当MPLS-TP隧道路径中包括的网元的接口的MAC地址发生变化时,为了便于描述,以第二网元的接口的MAC地址发生变化为例进行说明。控制器可以通过以下步骤更新该MPLS-TP隧道的交叉表,该方法的执行主体为控制器,参见图4,其中,该方法包括:When the MAC address of the interface of the network element included in the MPLS-TP tunnel path changes, the MAC address of the interface of the second network element changes as an example for convenience of description. The controller may update the cross-tab of the MPLS-TP tunnel by using the following steps. The execution body of the method is a controller. Referring to FIG. 4, the method includes:
步骤401:控制器接收第二网元发送的入接口的MAC地址修改请求,该入接口的MAC地址修改请求中携带第二网元的入接口标识和修改后的入接口 的MAC地址;Step 401: The controller receives the MAC address modification request of the inbound interface sent by the second network element, where the MAC address modification request of the inbound interface carries the inbound interface identifier of the second network element and the modified inbound interface. MAC address;
当第二网元的入接口的MAC地址发生变化时,该第二网元发送入接口的MAC地址修改请求给控制器,该入接口的MAC地址修改请求中至少携带第二网元的入接口标识和修改后的入接口的MAC地址,还可以携带第二网元的网元标识。控制器接收第二网元发送的入接口的MAC地址修改请求,从而更新第二网元的入接口的MAC地址,执行步骤402。When the MAC address of the inbound interface of the second network element changes, the second network element sends a MAC address modification request of the inbound interface to the controller, and the MAC address modification request of the inbound interface carries at least the inbound interface of the second network element. The identifier and the modified MAC address of the inbound interface can also carry the NE identifier of the second network element. The controller receives the MAC address modification request of the inbound interface sent by the second network element, so as to update the MAC address of the inbound interface of the second network element, and step 402 is performed.
进一步地,控制器接收第二网元发送的入接口的MAC地址修改请求时,从该入接口的MAC地址修改请求中获取第二网元的入接口标识;确定该入接口是否为网络侧接口;如果该入接口是网络侧接口,则执行步骤402;如果该入接口不是网络侧接口,则结束。Further, when the controller receives the MAC address modification request of the inbound interface sent by the second network element, the controller obtains the inbound interface identifier of the second network element from the MAC address modification request of the inbound interface, and determines whether the ingress interface is a network side interface. If the inbound interface is a network side interface, step 402 is performed; if the ingress interface is not a network side interface, the process ends.
其中,控制器确定该入接口是否为网络侧接口的步骤可以为:The step of determining whether the ingress interface is a network side interface may be:
控制器确定该入接口是否使能MPLS或者是否在线路单板上;如果该入接口使能MPLS或者在线路单板上,则确定该入接口为网络侧接口;如果该入接口不使能MPLS且不在线路单板上,则确定该入接口不为网络侧接口。The controller determines whether the inbound interface is enabled with MPLS or is on the line card. If the inbound interface is enabled with MPLS or on the line card, the ingress interface is determined to be the network side interface. If the inbound interface is not enabled with MPLS. If the board is not on the line card, the ingress interface is not the network side interface.
其中,使能MPLS-TP是指具有转发MPLS报文的功能。The MPLS-TP is enabled to forward MPLS packets.
步骤402:控制器根据第二网元修改后的入接口的MAC地址更新第二网元的入接口的MAC地址;Step 402: The controller updates the MAC address of the inbound interface of the second network element according to the MAC address of the inbound interface modified by the second network element.
控制器将本地存储的第二网元的入接口的MAC地址修改为第二网元修改后的入接口的MAC地址。并且控制器判断第二网元修改后的入接口的MAC地址为第一网元的下一跳网元的入接口的MAC地址;The controller modifies the MAC address of the inbound interface of the second network element stored locally to the MAC address of the inbound interface of the second network element. And the controller determines that the MAC address of the inbound interface of the second network element is the MAC address of the inbound interface of the next hop element of the first network element;
可选的,控制器判断第二网元修改后的入接口的MAC地址为第一网元的下一跳网元的入接口的MAC地址的步骤可以为:Optionally, the step of the controller determining that the MAC address of the inbound interface of the second network element is the MAC address of the inbound interface of the next hop element of the first network element may be:
控制器遍历MPLS-TP网络包括的所有MPLS-TP隧道路径,检查MPLS-TP隧道路径中第一网元的下一跳网元的入接口的MAC地址是否为第二网元的入接口的MAC地址,如果是,则确定第二网元修改后的入接口的MAC地址为第一网元的下一跳网元的入接口的MAC地址。The controller traverses all the MPLS-TP tunnel paths included in the MPLS-TP network, and checks whether the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path is the MAC address of the inbound interface of the second network element. The address, if yes, determines that the MAC address of the inbound interface modified by the second network element is the MAC address of the inbound interface of the next hop element of the first network element.
步骤403:控制器根据第二网元修改后的入接口的MAC地址更新第二网元的入接口的MAC地址;Step 403: The controller updates the MAC address of the inbound interface of the second network element according to the MAC address of the inbound interface modified by the second network element.
控制器将本地存储的第二网元的入接口的MAC地址修改为第二网元修改后的入接口的MAC地址。The controller modifies the MAC address of the inbound interface of the second network element stored locally to the MAC address of the inbound interface of the second network element.
步骤404:控制器根据第二网元修改后的入接口的MAC地址更新第一网 元的下一跳网元的入接口的MAC地址;Step 404: The controller updates the first network according to the MAC address of the inbound interface modified by the second network element. MAC address of the inbound interface of the next hop element of the element;
控制器将第一网元的下一跳网元的入接口的MAC地址修改为第二网元修改后的入接口的MAC地址。The controller modifies the MAC address of the inbound interface of the next hop element of the first network element to the MAC address of the inbound interface of the second network element.
可选地,控制器在第一网元的交叉表中,将第一网元的下一跳网元的入接口的MAC地址修改为第二网元修改后的入接口的MAC地址。Optionally, the controller modifies, in the cross-tab of the first network element, the MAC address of the inbound interface of the next hop element of the first network element to the MAC address of the inbound interface of the second network element.
步骤405:控制器发送修改后的第一网元的下一跳网元的入接口的MAC地址给第一网元。Step 405: The controller sends the MAC address of the inbound interface of the next hop element of the modified first network element to the first network element.
第一网元接收控制器发送的修改后的第一网元的下一跳网元的入接口的MAC地址,在发送MPLS报文时,将修改后的第一网元的下一跳网元的入接口的MAC地址封装到该MPLS报文中,将封装后的MPLS报文发送给第一网元的下一跳网元。The first network element receives the modified MAC address of the inbound interface of the next hop of the first network element, and sends the MPLS packet to the next hop element of the modified first network element. The MAC address of the inbound interface is encapsulated into the MPLS packet, and the encapsulated MPLS packet is sent to the next hop NE of the first network element.
在本步骤中,控制器也可以发送修改后的第一网元的交叉表给第一网元。第一网元接收控制器发送的修改后的的交叉表,在发送MPLS报文时,第一网元从修改后的交叉表中获取修改后的第一网元的下一跳网元的入接口的MAC地址,将修改后的第一网元的下一跳网元的入接口的MAC地址封装到该MPLS报文中,将封装后的MPLS报文发送给第一网元的下一跳网元。In this step, the controller may also send the modified cross table of the first network element to the first network element. The first network element receives the modified cross-tab sent by the controller. When the MPLS packet is sent, the first network element obtains the modified next-hop network element of the first network element from the modified cross-tab. The MAC address of the interface encapsulates the MAC address of the inbound interface of the next hop of the first network element into the MPLS packet, and sends the encapsulated MPLS packet to the next hop of the first NE. Network element.
其中,需要说明的是,对于MPLS-TP网络中的每个MPLS-TP隧道都按以上方法更新该MPLS-TP隧道的交叉表。It should be noted that, for each MPLS-TP tunnel in the MPLS-TP network, the cross-tab of the MPLS-TP tunnel is updated according to the above method.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例5Example 5
本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址装置,该装置可以为控制器;参见图5,其中,该装置包括:The embodiment of the present invention provides an Ethernet interface addressing device in an MPLS-TP tunnel, and the device may be a controller. Referring to FIG. 5, the device includes:
第一获取模块501,用于获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在MPLS-TP隧道 路径中第二网元为第一网元的下一跳网元;The first obtaining module 501 is configured to obtain the inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, in the MPLS-TP tunnel. The second network element in the path is the next hop network element of the first network element;
第二获取模块502,用于根据第一网元到第二网元的入接口信息,获取第一网元到第二网元的入接口的媒体访问控制MAC地址;The second obtaining module 502 is configured to obtain, according to the inbound interface information of the first network element to the second network element, a media access control MAC address of the inbound interface of the first network element to the second network element;
寻址模块503,用于根据第一网元到第二网元的入接口的MAC地址得到第一网元的下一跳网元的入接口的MAC地址,将第一网元的下一跳网元的入接口的MAC地址发送给第一网元。The addressing module 503 is configured to obtain, according to the MAC address of the inbound interface of the first network element to the second network element, the MAC address of the inbound interface of the next hop element of the first network element, and the next hop of the first network element The MAC address of the inbound interface of the NE is sent to the first NE.
进一步地,第一网元到第二网元的入接口信息包括第二网元的入接口标识。Further, the inbound interface information of the first network element to the second network element includes an inbound interface identifier of the second network element.
进一步地,第一网元到第二网元的入接口信息包括第二网元的网元标识和第二网元的入接口标识。Further, the inbound interface information of the first network element to the second network element includes the network element identifier of the second network element and the inbound interface identifier of the second network element.
进一步地,装置还包括:Further, the device further includes:
存储模块,用于接收并保存第二网元的接口信息和接口的MAC地址;a storage module, configured to receive and save interface information of the second network element and a MAC address of the interface;
第二网元的接口信息包括第二网元的入接口标识和第二网元的网元标识,第二网元的接口的MAC地址包括第二网元的入接口的MAC地址。The interface information of the second network element includes the inbound interface identifier of the second network element and the network element identifier of the second network element, and the MAC address of the interface of the second network element includes the MAC address of the inbound interface of the second network element.
进一步地,装置还包括:Further, the device further includes:
第一接收模块,用于接收第二网元的入接口的MAC地址修改请求,入接口的MAC地址修改请求中携带第二网元修改后的入接口的MAC地址;The first receiving module is configured to receive a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
第一更新模块,用于根据第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;a first update module, configured to update, according to the MAC address of the inbound interface modified by the second network element, a MAC address of the inbound interface of the second network element;
第二更新模块,用于根据第二网元修改后的入接口的MAC地址更新第一网元的下一跳网元的入接口的MAC地址。And a second update module, configured to update, according to the MAC address of the inbound interface of the second network element, the MAC address of the inbound interface of the next hop element of the first network element.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例6Example 6
本发明实施例提供了一种MPLS-TP隧道中的以太接口寻址装置,该装置 可以为网元,参见图6,其中,该装置包括:Embodiments of the present invention provide an Ethernet interface addressing device in an MPLS-TP tunnel, and the device It can be a network element, see FIG. 6, wherein the device includes:
第三获取模块601,用于获取基于多协议标签交换MPLS报文;The third obtaining module 601 is configured to acquire an MPLS packet based on the multi-protocol label exchange;
第二接收模块602,用于接收网元的下一跳网元的入接口的媒体访问控制MAC地址;The second receiving module 602 is configured to receive a media access control MAC address of an inbound interface of a next hop network element of the network element.
封装模块603,用于将网元的下一跳网元的入接口的MAC地址封装到MPLS报文中。The encapsulating module 603 is configured to encapsulate the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
进一步地,装置还包括:Further, the device further includes:
第一发送模块,用于发送网元的接口信息和接口的MAC地址给控制器,以便于控制器保存网元的接口信息和接口的MAC地址;The first sending module is configured to send the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
网元的接口信息包括网元的入接口标识和网元的网元标识,网元的接口的MAC地址包括网元的入接口的MAC地址。The interface information of the network element includes the inbound interface identifier of the network element and the network element identifier of the network element. The MAC address of the interface of the network element includes the MAC address of the inbound interface of the network element.
进一步地,装置还包括:Further, the device further includes:
第二发送模块,用于发送入接口的MAC地址修改请求给控制器,入接口的MAC地址修改请求中携带网元修改后的入接口的MAC地址,以便于控制器根据网元修改后的入接口的MAC地址更新网元的入接口的MAC地址。The second sending module is configured to send a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller can modify the inbound according to the network element. The MAC address of the interface updates the MAC address of the inbound interface of the NE.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例7Example 7
图7为本发明另一实施例提供的一种控制器的结构示意图,包括:如图7所示,控制器700包括第一处理器701、第一存储器702、第一发送器703、第一接收器704、第一输入/输出接口705、第一通信接口706和第一总线707。其中,第一处理器701、第一存储器702、第一发送器703、第一接收器704、第一输入/输出接口705和第一通信接口706通过第一总线707实现彼此之间的通信连接;第一处理器701可以采用通用的中央处理器(Central Processing Unit,简称CPU),微处理器,应用专用集成电路(Application Specific Integrated  Circuit,简称ASIC),或者至少一个集成电路,用于执行相关程序,以实现本发明实施例所提供的技术方案。第一存储器702可以是只读存储器(Read Only Memory,简称ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,简称RAM)。第一存储器702可以存储操作系统和其他应用程序。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提供的技术方案的程序代码保存在第一存储器702中,并由第一处理器701来执行。第一输入/输出接口705用于接收输入的数据和信息,输出操作结果等数据。第一通信接口706使用例如但不限于收发器一类的收发装置,来实现控制器700与其他设备或通信网络之间的通信。第一总线707可包括一通路,在控制器700各个部件之间传送信息。FIG. 7 is a schematic structural diagram of a controller according to another embodiment of the present invention, including: as shown in FIG. 7, the controller 700 includes a first processor 701, a first memory 702, a first transmitter 703, and a first Receiver 704, first input/output interface 705, first communication interface 706, and first bus 707. The first processor 701, the first memory 702, the first transmitter 703, the first receiver 704, the first input/output interface 705, and the first communication interface 706 implement communication connection with each other through the first bus 707. The first processor 701 can be a general-purpose central processing unit (CPU), a microprocessor, and an application-specific integrated circuit (Application Specific Integrated). The circuit (abbreviated as ASIC), or at least one integrated circuit, is used to execute the related program to implement the technical solution provided by the embodiment of the present invention. The first memory 702 can be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The first memory 702 can store an operating system and other applications. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the program code for implementing the technical solution provided by the embodiment of the present invention is saved in the first memory 702 and executed by the first processor 701. The first input/output interface 705 is configured to receive input data and information, and output data such as an operation result. The first communication interface 706 implements communication between the controller 700 and other devices or communication networks using transceivers such as, but not limited to, transceivers. The first bus 707 can include a path for communicating information between various components of the controller 700.
具体实施过程中,第一处理器701执行保存于第一存储器702的代码,用于执行一种MPLS-TP隧道中的以太接口寻址方法:In a specific implementation process, the first processor 701 executes code stored in the first memory 702 for performing an Ethernet interface addressing method in an MPLS-TP tunnel:
控制器获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;Obtaining, by the controller, the inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, where the second network is in the MPLS-TP tunnel path The element is a next hop network element of the first network element;
所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;The controller acquires a media access control MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element;
所述控制器根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址,将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。The controller obtains a MAC address of an inbound interface of a next hop network element of the first network element according to a MAC address of the inbound interface of the first network element to the second network element, where the first network is The MAC address of the inbound interface of the next hop element of the element is sent to the first network element.
进一步地,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。Further, the inbound interface information of the first network element to the second network element includes an inbound interface identifier of the second network element.
进一步地,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。Further, the inbound interface information of the first network element to the second network element includes a network element identifier of the second network element and an inbound interface identifier of the second network element.
进一步地,所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址之前,还包括:Further, the controller obtains the media access control MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element. ,Also includes:
所述控制器接收并保存所述第二网元的接口信息和接口的MAC地址;The controller receives and saves interface information of the second network element and a MAC address of the interface;
所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。 The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
进一步地,所述方法还包括:Further, the method further includes:
所述控制器接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The controller receives a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
所述控制器根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;The controller updates the MAC address of the inbound interface of the second network element according to the MAC address of the inbound interface modified by the second network element;
所述控制器根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。The controller updates the MAC address of the inbound interface of the next hop network element of the first network element according to the MAC address of the inbound interface of the second network element.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
实施例8Example 8
图8为本发明另一实施例提供的一种网元的结构示意图,包括:如图8所示,网元800包括第二处理器801、第二存储器802、第二发送器803、第二接收器804、第二输入/输出接口805、第二通信接口806和第二总线807。其中,第二处理器801、第二存储器802、第二发送器803、第二接收器804、第二输入/输出接口805和第二通信接口806通过第二总线807实现彼此之间的通信连接;第二处理器801可以采用通用的中央处理器(Central Processing Unit,简称CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,简称ASIC),或者至少一个集成电路,用于执行相关程序,以实现本发明实施例所提供的技术方案。第二存储器802可以是只读存储器(Read Only Memory,简称ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,简称RAM)。第二存储器802可以存储操作系统和其他应用程序。在通过软件或者固件来实现本发明实施例提供的技术方案时,用于实现本发明实施例提供的技术方案的程序代码保存在第二存储器802中,并由第二处理器801来执行。第二输入/输出接口805用于接收输入的数据和信息,输出操作结果等数据。第二通信接口806使用例如但不限于收发器一类的收发装置, 来实现网元800与其他设备或通信网络之间的通信。第二总线807可包括一通路,在网元800各个部件之间传送信息。FIG. 8 is a schematic structural diagram of a network element according to another embodiment of the present invention, including: as shown in FIG. 8, the network element 800 includes a second processor 801, a second memory 802, a second transmitter 803, and a second Receiver 804, second input/output interface 805, second communication interface 806, and second bus 807. The second processor 801, the second memory 802, the second transmitter 803, the second receiver 804, the second input/output interface 805, and the second communication interface 806 implement communication connection with each other through the second bus 807. The second processor 801 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or at least one integrated circuit for performing correlation. The program is implemented to implement the technical solutions provided by the embodiments of the present invention. The second memory 802 can be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The second memory 802 can store an operating system and other applications. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the program code for implementing the technical solution provided by the embodiment of the present invention is saved in the second memory 802 and executed by the second processor 801. The second input/output interface 805 is configured to receive input data and information, and output data such as an operation result. The second communication interface 806 uses a transceiver such as, but not limited to, a transceiver, Communication between the network element 800 and other devices or communication networks is implemented. The second bus 807 can include a path for communicating information between various components of the network element 800.
具体实施过程中,第二处理器801执行保存于第二存储器802的代码,用于执行一种MPLS-TP隧道中的以太接口寻址方法:In a specific implementation process, the second processor 801 executes code stored in the second memory 802 for performing an Ethernet interface addressing method in an MPLS-TP tunnel:
网元获取基于多协议标签交换MPLS报文;The network element acquires an MPLS packet based on a multi-protocol label exchange;
所述网元接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;Receiving, by the network element, a media access control MAC address of an inbound interface of a next hop network element of the network element;
所述网元将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The network element encapsulates the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
进一步地,所述网元获取MPLS报文之前,还包括:Further, before the acquiring, by the network element, the MPLS packet, the network element further includes:
所述网元发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The network element sends the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
进一步地,所述方法还包括:Further, the method further includes:
所述网元发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。Transmitting, by the network element, a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller is configured according to the network The MAC address of the inbound interface of the meta-modified device updates the MAC address of the inbound interface of the network element.
在本发明实施例中,由控制器集中获取待建立的MPLS-TP隧道路径中的第一网元的下一跳网元的入接口的MAC地址,并将第一网元的下一跳网元的入接口的MAC地址发送给第一网元,从而第一网元直接接收第一网元的下一跳网元的下一跳网元的入接口的MAC地址,不需要为网元的入接口配置IP地址,实现了免IP规划和配置,解决了IP地址配置出现错误时查错纠错困难的问题,从而大大减少了网络维护的工作量;并且,网元上不需要运行ARP协议,从而提高了网元的处理速度。In the embodiment of the present invention, the controller obtains the MAC address of the inbound interface of the next hop element of the first network element in the MPLS-TP tunnel path to be established, and the next hop of the first network element The MAC address of the inbound interface of the element is sent to the first network element, so that the first network element directly receives the MAC address of the inbound interface of the next hop element of the next hop element of the first network element, and does not need to be the network element. The IP address of the inbound interface is configured to implement IP-free planning and configuration. This solves the problem of troubleshooting error correction when the IP address configuration error occurs. This greatly reduces the workload of network maintenance. Moreover, the ARP protocol does not need to be run on the NE. , thereby improving the processing speed of the network element.
需要说明的是:上述实施例提供的MPLS-TP隧道中的以太接口寻址装置在MPLS-TP隧道中的以太接口寻址时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分 功能。另外,上述实施例提供的MPLS-TP隧道中的以太接口寻址装置与MPLS-TP隧道中的以太接口寻址方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the Ethernet interface addressing device in the MPLS-TP tunnel provided by the foregoing embodiment is addressed by the Ethernet interface in the MPLS-TP tunnel, only the division of each functional module is used as an example. In practical applications, The above function assignment can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above description. Features. In addition, the Ethernet interface addressing device in the MPLS-TP tunnel provided by the foregoing embodiment is the same as the Ethernet interface addressing method in the MPLS-TP tunnel, and the specific implementation process is described in the method embodiment, and details are not described herein again. .
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。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.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, 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 (24)

  1. 一种MPLS-TP隧道中的以太接口寻址方法,其特征在于,所述方法包括:An Ethernet interface addressing method in an MPLS-TP tunnel, characterized in that the method includes:
    控制器获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;Obtaining, by the controller, the inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, where the second network is in the MPLS-TP tunnel path The element is a next hop network element of the first network element;
    所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;The controller acquires a media access control MAC address of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element;
    所述控制器根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址,将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。The controller obtains a MAC address of an inbound interface of a next hop network element of the first network element according to a MAC address of the inbound interface of the first network element to the second network element, where the first network is The MAC address of the inbound interface of the next hop element of the element is sent to the first network element.
  2. 如权利要求1所述的方法,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。The method according to claim 1, wherein the inbound interface information of the first network element to the second network element comprises an inbound interface identifier of the second network element.
  3. 如权利要求1所述的方法,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。The method according to claim 1, wherein the inbound interface information of the first network element to the second network element comprises a network element identifier of the second network element and an entry of the second network element Interface identifier.
  4. 如权利要求1或3所述的方法,其特征在于,所述控制器根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址之前,还包括:The method according to claim 1 or 3, wherein the controller acquires the first network element to the second according to the inbound interface information of the first network element to the second network element Before the media access control MAC address of the inbound interface of the NE, it also includes:
    所述控制器接收并保存所述第二网元的接口信息和接口的MAC地址;The controller receives and saves interface information of the second network element and a MAC address of the interface;
    所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述控制器接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The controller receives a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
    所述控制器根据所述第二网元修改后的入接口的MAC地址更新述第二网 元的入接口的MAC地址;The controller updates the second network according to the MAC address of the inbound interface modified by the second network element The MAC address of the inbound interface of the element;
    所述控制器根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。The controller updates the MAC address of the inbound interface of the next hop network element of the first network element according to the MAC address of the inbound interface of the second network element.
  6. 一种MPLS-TP隧道中的以太接口寻址方法,其特征在于,所述方法包括:An Ethernet interface addressing method in an MPLS-TP tunnel, characterized in that the method includes:
    网元获取基于多协议标签交换MPLS报文;The network element acquires an MPLS packet based on a multi-protocol label exchange;
    所述网元接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;Receiving, by the network element, a media access control MAC address of an inbound interface of a next hop network element of the network element;
    所述网元将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The network element encapsulates the MAC address of the inbound interface of the next hop network element of the network element into the MPLS packet.
  7. 如权利要求6所述的方法,其特征在于,所述网元获取MPLS报文之前,还包括:The method of claim 6, wherein before the acquiring, by the network element, the MPLS packet, the network element further includes:
    所述网元发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The network element sends the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
    所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
  8. 如权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6 wherein the method further comprises:
    所述网元发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。Transmitting, by the network element, a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller is configured according to the network The MAC address of the inbound interface of the meta-modified device updates the MAC address of the inbound interface of the network element.
  9. 一种MPLS-TP隧道中的以太接口寻址装置,其特征在于,所述装置包括:An Ethernet interface addressing device in an MPLS-TP tunnel, characterized in that the device comprises:
    第一获取模块,用于获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;a first acquiring module, configured to acquire inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the transmission subset based on the multi-protocol label switching, in the MPLS-TP tunnel path The second network element is a next hop network element of the first network element;
    第二获取模块,用于根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址; a second obtaining module, configured to acquire, according to the inbound interface information of the first network element to the second network element, a media access control MAC address of the inbound interface of the first network element to the second network element;
    寻址模块,用于根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址,将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。An addressing module, configured to obtain, according to a MAC address of the inbound interface of the first network element to the second network element, a MAC address of an inbound interface of a next hop network element of the first network element, where the The MAC address of the inbound interface of the next hop network element of a network element is sent to the first network element.
  10. 如权利要求9所述的装置,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。The device according to claim 9, wherein the inbound interface information of the first network element to the second network element comprises an inbound interface identifier of the second network element.
  11. 如权利要求9所述的装置,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标识。The device according to claim 9, wherein the inbound interface information of the first network element to the second network element comprises a network element identifier of the second network element and an entry of the second network element Interface identifier.
  12. 如权利要求9或11所述的装置,其特征在于,所述装置还包括:The device according to claim 9 or 11, wherein the device further comprises:
    存储模块,用于接收并保存所述第二网元的接口信息和接口的MAC地址;a storage module, configured to receive and save interface information of the second network element and a MAC address of the interface;
    所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
  13. 如权利要求9所述的装置,其特征在于,所述装置还包括:The device of claim 9 wherein said device further comprises:
    第一接收模块,用于接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The first receiving module is configured to receive a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element;
    第一更新模块,用于根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;a first update module, configured to update, according to the MAC address of the inbound interface that is modified by the second network element, a MAC address of the inbound interface of the second network element;
    第二更新模块,用于根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。And a second update module, configured to update, according to the MAC address of the inbound interface of the second network element, the MAC address of the inbound interface of the next hop element of the first network element.
  14. 一种MPLS-TP隧道中的以太接口寻址装置,其特征在于,所述装置包括:An Ethernet interface addressing device in an MPLS-TP tunnel, characterized in that the device comprises:
    第三获取模块,用于获取基于多协议标签交换MPLS报文;a third acquiring module, configured to acquire an MPLS packet based on a multi-protocol label exchange;
    第二接收模块,用于接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;a second receiving module, configured to receive a media access control MAC address of an inbound interface of a next hop network element of the network element;
    封装模块,用于将所述网元的下一跳网元的入接口的MAC地址封装到所述 MPLS报文中。An encapsulating module, configured to encapsulate a MAC address of an inbound interface of a next hop network element of the network element into the In MPLS packets.
  15. 如权利要求14所述的装置,其特征在于,所述装置还包括:The device of claim 14 wherein said device further comprises:
    第一发送模块,用于发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The first sending module is configured to send the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
    所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识,所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element, and a MAC address of the interface of the network element includes a MAC address of an inbound interface of the network element.
  16. 如权利要求14所述的装置,其特征在于,所述装置还包括:The device of claim 14 wherein said device further comprises:
    第二发送模块,用于发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。a second sending module, configured to send a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so that the controller is configured according to the The MAC address of the inbound interface of the network element is updated to update the MAC address of the inbound interface of the network element.
  17. 一种控制器,其特征在于,所述控制器包括:第一处理器和第一发送器;A controller, the controller comprising: a first processor and a first transmitter;
    所述第一处理器,用于获取待建立的基于多协议标签交换的传输子集MPLS-TP隧道路径中的第一网元到第二网元的入接口信息,在所述MPLS-TP隧道路径中所述第二网元为所述第一网元的下一跳网元;The first processor is configured to acquire inbound interface information of the first network element to the second network element in the MPLS-TP tunnel path of the multi-protocol label switching based on the multi-protocol label switching, in the MPLS-TP tunnel The second network element in the path is a next hop network element of the first network element;
    所述第一处理器,还用于根据所述第一网元到所述第二网元的入接口信息,获取所述第一网元到所述第二网元的入接口的媒体访问控制MAC地址;The first processor is further configured to acquire media access control of the inbound interface of the first network element to the second network element according to the inbound interface information of the first network element to the second network element. MAC address;
    所述第一处理器,还用于根据所述第一网元到所述第二网元的入接口的MAC地址得到所述第一网元的下一跳网元的入接口的MAC地址;The first processor is further configured to obtain, according to a MAC address of the inbound interface of the first network element to the second network element, a MAC address of an inbound interface of a next hop network element of the first network element;
    所述第一发送器,用于将所述第一网元的下一跳网元的入接口的MAC地址发送给所述第一网元。The first transmitter is configured to send, to the first network element, a MAC address of an inbound interface of a next hop network element of the first network element.
  18. 如权利要求17所述的控制器,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的入接口标识。The controller according to claim 17, wherein the inbound interface information of the first network element to the second network element comprises an inbound interface identifier of the second network element.
  19. 如权利要求17所述的控制器,其特征在于,所述第一网元到所述第二网元的入接口信息包括所述第二网元的网元标识和所述第二网元的入接口标 识。The controller according to claim 17, wherein the inbound interface information of the first network element to the second network element comprises a network element identifier of the second network element and the second network element Incoming interface knowledge.
  20. 如权利要求17或19所述的控制器,其特征在于,A controller according to claim 17 or 19, wherein
    所述第一处理器,还用于接收并保存所述第二网元的接口信息和接口的MAC地址;The first processor is further configured to receive and save interface information of the second network element and a MAC address of the interface;
    所述第二网元的接口信息包括所述第二网元的入接口标识和所述第二网元的网元标识,所述第二网元的接口的MAC地址包括所述第二网元的入接口的MAC地址。The interface information of the second network element includes an inbound interface identifier of the second network element and a network element identifier of the second network element, where a MAC address of the interface of the second network element includes the second network element MAC address of the inbound interface.
  21. 如权利要求17所述的控制器,其特征在于,所述控制器还包括:第一接收器;The controller of claim 17, wherein the controller further comprises: a first receiver;
    所述第一接收器,用于接收所述第二网元的入接口的MAC地址修改请求,所述入接口的MAC地址修改请求中携带所述第二网元修改后的入接口的MAC地址;The first receiver is configured to receive a MAC address modification request of the inbound interface of the second network element, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the second network element ;
    所述第一处理器,还用于根据所述第二网元修改后的入接口的MAC地址更新述第二网元的入接口的MAC地址;The first processor is further configured to: update, according to the MAC address of the inbound interface that is modified by the second network element, a MAC address of the inbound interface of the second network element;
    所述第一处理器,还用于根据所述第二网元修改后的入接口的MAC地址更新所述第一网元的下一跳网元的入接口的MAC地址。The first processor is further configured to update, according to the MAC address of the inbound interface of the second network element, a MAC address of an inbound interface of the next hop element of the first network element.
  22. 一种网元,其特征在于,所述网元包括:第二处理器和第二接收器;A network element, where the network element includes: a second processor and a second receiver;
    所述第二处理器,用于获取基于多协议标签交换MPLS报文;The second processor is configured to acquire an MPLS packet based on a multi-protocol label exchange;
    所述第二接收器,用于接收所述网元的下一跳网元的入接口的媒体访问控制MAC地址;The second receiver is configured to receive a media access control MAC address of an inbound interface of a next hop network element of the network element;
    所述第二处理器,还用于将所述网元的下一跳网元的入接口的MAC地址封装到所述MPLS报文中。The second processor is further configured to encapsulate a MAC address of an inbound interface of a next hop network element of the network element into the MPLS packet.
  23. 如权利要求22所述的网元,其特征在于,所述网元还包括:第二发送器;The network element according to claim 22, wherein the network element further comprises: a second transmitter;
    所述第二发送器,用于发送网元的接口信息和接口的MAC地址给控制器,以便于所述控制器保存所述网元的接口信息和接口的MAC地址;The second transmitter is configured to send the interface information of the network element and the MAC address of the interface to the controller, so that the controller saves the interface information of the network element and the MAC address of the interface;
    所述网元的接口信息包括所述网元的入接口标识和所述网元的网元标识, 所述网元的接口的MAC地址包括所述网元的入接口的MAC地址。The interface information of the network element includes an inbound interface identifier of the network element and a network element identifier of the network element. The MAC address of the interface of the network element includes the MAC address of the inbound interface of the network element.
  24. 如权利要求22所述的网元,其特征在于,所述网元还包括:第二发送器;The network element according to claim 22, wherein the network element further comprises: a second transmitter;
    所述第二发送器,还用于发送入接口的MAC地址修改请求给控制器,所述入接口的MAC地址修改请求中携带所述网元修改后的入接口的MAC地址,以便于所述控制器根据所述网元修改后的入接口的MAC地址更新所述网元的入接口的MAC地址。 The second transmitter is further configured to send a MAC address modification request of the inbound interface to the controller, where the MAC address modification request of the inbound interface carries the MAC address of the inbound interface modified by the network element, so as to facilitate the The controller updates the MAC address of the inbound interface of the network element according to the MAC address of the inbound interface modified by the network element.
PCT/CN2015/078398 2015-05-06 2015-05-06 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel WO2016176842A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/078398 WO2016176842A1 (en) 2015-05-06 2015-05-06 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel
CN201580016456.XA CN106464591B (en) 2015-05-06 2015-05-06 Ethernet interface addressing method, device, controller and network element in MPLS-TP tunnel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/078398 WO2016176842A1 (en) 2015-05-06 2015-05-06 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel

Publications (1)

Publication Number Publication Date
WO2016176842A1 true WO2016176842A1 (en) 2016-11-10

Family

ID=57217362

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078398 WO2016176842A1 (en) 2015-05-06 2015-05-06 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel

Country Status (2)

Country Link
CN (1) CN106464591B (en)
WO (1) WO2016176842A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201933A (en) * 2011-04-29 2011-09-28 中兴通讯股份有限公司 Message sending method and device
CN102611603A (en) * 2012-03-16 2012-07-25 中兴通讯股份有限公司 Method and device for establishing static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data
JP2012156637A (en) * 2011-01-24 2012-08-16 Nec Corp Mac search system and mac search method in mpls-tp device
CN102907051A (en) * 2012-07-16 2013-01-30 华为技术有限公司 Label switching path establishing method, data forwarding method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012156637A (en) * 2011-01-24 2012-08-16 Nec Corp Mac search system and mac search method in mpls-tp device
CN102201933A (en) * 2011-04-29 2011-09-28 中兴通讯股份有限公司 Message sending method and device
CN102611603A (en) * 2012-03-16 2012-07-25 中兴通讯股份有限公司 Method and device for establishing static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data
CN102907051A (en) * 2012-07-16 2013-01-30 华为技术有限公司 Label switching path establishing method, data forwarding method and equipment

Also Published As

Publication number Publication date
CN106464591A (en) 2017-02-22
CN106464591B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
US10050840B2 (en) Method and system for an internet of things (IOT) device access in a software-defined networking (SDN) system
JP6369698B2 (en) Traffic switching method, device, and system
EP2897347B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US9621508B2 (en) System and method for sharing VXLAN table information with a network controller
US8885641B2 (en) Efficient trill forwarding
US10193707B2 (en) Packet transmission method and apparatus
US8879549B2 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
US9515927B2 (en) System and method for layer 3 proxy routing
US9716687B2 (en) Distributed gateways for overlay networks
US8891536B2 (en) Layer-3 services for united router farm
US9231848B2 (en) Method and system for an overlay management control network
EP3456020B1 (en) Mechanism for inline packet response generation in software defined networks
WO2020031076A1 (en) Multicast distribution tree versioning for minimizing multicast group traffic disruption
US20150244673A1 (en) Distributed Proxy Addressing Operations
WO2023125239A1 (en) Flood attack defense method and related device
US11394635B2 (en) Aggregated bit index explicit replication networking system
CN110620715B (en) Virtual extended local area network communication method, tunnel endpoint and controller
US10541914B2 (en) Data packet forwarding method and network device
US9853891B2 (en) System and method for facilitating communication
WO2016176842A1 (en) Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel
WO2020100150A1 (en) Routing protocol blobs for efficient route computations and route downloads
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
Janovic Fabric Forwarding (and Troubleshooting)
WO2019061520A1 (en) Method and device for switching paths

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: 15891094

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: 15891094

Country of ref document: EP

Kind code of ref document: A1