WO2019128612A1 - Method and device for processing routing protocol packet - Google Patents

Method and device for processing routing protocol packet Download PDF

Info

Publication number
WO2019128612A1
WO2019128612A1 PCT/CN2018/118276 CN2018118276W WO2019128612A1 WO 2019128612 A1 WO2019128612 A1 WO 2019128612A1 CN 2018118276 W CN2018118276 W CN 2018118276W WO 2019128612 A1 WO2019128612 A1 WO 2019128612A1
Authority
WO
WIPO (PCT)
Prior art keywords
edge device
network
network edge
routing protocol
connection attribute
Prior art date
Application number
PCT/CN2018/118276
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 华为技术有限公司
Publication of WO2019128612A1 publication Critical patent/WO2019128612A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/23Bit dropping

Definitions

  • connection attribute identification sequence satisfies the following first condition and the second condition, the route of the routing protocol packet is determined to be loopable. If the connection attribute identification sequence is different, the first condition and the second condition are met, and the routing protocol report is determined. There is no loop in the route of the text.
  • the conditions for determining include:

Abstract

The embodiment of the present application discloses a method and a device for processing a routing protocol packet. The method is applied to a first network edge device of a first data center (DC). Before the first network edge device advertises a routing protocol packet to a second network edge device, adding a first network connection attribute identifier to the routing protocol packet, and after the routing protocol packet is used to enable the second network edge device to acquire information about the first routing protocol packet, determining, according to the first connection attribute identifier sequence of the routing protocol packet, whether there is the possibility of a loop in the route of the routing protocol packet. In the embodiment of the present application, a border network edge device can automatically determine, according to the network connection attribute identifier carried by the received routing protocol packet, whether there is the possibility of a loop in the route of the routing protocol packet, so that loops of routing protocol packets are avoided, thereby avoiding data packet loops.

Description

路由协议报文的处理方法及装置Routing protocol message processing method and device
本申请要求于2017年12月25日提交中国专利局、申请号为201711425078.8、发明名称为“路由协议报文的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on Dec. 25, 2017, the Chinese Patent Office, Application No. 201711425078.8, entitled "Processing Method and Apparatus for Routing Protocol Messages", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本申请涉及通信技术领域,具体涉及一种路由协议报文的处理方法及装置。The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a routing protocol packet.
背景技术Background technique
随着云计算以及大数据等技术的快速发展,以云计算、虚拟化等技术为基础的各种规模化运营的数据中心(data center,DC)陆续出现,数据中心网络(data center network,DCN)用于连接数据中心内的各种资源。为满足跨地域运营、异地灾备等场景,越来越多的企业通常在多地域部署多个DC,不同DC之间要协同运转,就需要相互之间交互信息。数据中心互联(Data Center Interconnect,DCI)网络是实现不同DC内的主机(服务器)之间互相通信的一种解决方案。With the rapid development of technologies such as cloud computing and big data, data centers (DCs) of various scale operations based on technologies such as cloud computing and virtualization have emerged, and data center networks (DCCs) ) Used to connect to various resources within the data center. In order to meet the scenarios of cross-regional operations and remote disaster recovery, more and more enterprises usually deploy multiple DCs in multiple regions. Different DCs need to interact with each other and need to exchange information with each other. The Data Center Interconnect (DCI) network is a solution for communicating between hosts (servers) in different DCs.
DC多是基于虚拟局域网(virtual local area network,VLAN)技术发展起来的,如虚拟扩展局域网(Virtual eXtensible Local Area Network,VXLAN)、堆叠虚拟局域网络(Stacked VLAN,QinQ)、虚拟专用局域网业务(Virtual Private LAN Service,VPLS)网络等。DCs are developed based on virtual local area network (VLAN) technologies, such as Virtual eXtensible Local Area Network (VXLAN), Stacked VLAN (QinQ), and Virtual Private LAN (Virtual). Private LAN Service, VPLS) network, etc.
目前,不同DCN中用作三层网关的网络边缘设备之间通过建立网际协议(Internet Protocol,IP)隧道,将二层数据报文封装在三层报文中,跨越中间的三层网络,实现两个DCN间二层数据的互通。这种隧道就像一个虚拟的桥,将多个DC的二层网络贯穿在一起。例如对于VXLAN,DC之间可以采用三段式VXLAN方案实现,该方案通过在两个DC的边界VXLAN隧道端点(VXLAN tunnel endpoint,VTEP)之间建立VXLAN隧道(VXLAN-DCI隧道)实现DC之间的通信,同一DC内主机之间的通信可以通过建立DC内的VTEP之间的VXLAN隧道(VXLAN-DCN隧道)来实现通信。其中,VTEP用于为报文添加VXLAN隧道头,得到VXLAN报文,或者从VXLAN报文头中删除VXLAN隧道头,终结VXLAN隧道。At present, network edge devices used as Layer 3 gateways in different DCNs are configured to encapsulate Layer 2 data packets in Layer 3 packets and cross the middle Layer 3 network by establishing an Internet Protocol (IP) tunnel. Interworking of Layer 2 data between two DCNs. This tunnel is like a virtual bridge that connects multiple DC's Layer 2 networks together. For example, for VXLAN, the DC can be implemented by a three-stage VXLAN scheme, which implements a VXLAN tunnel (VXLAN-DCI tunnel) between two DC boundary VXLAN tunnel endpoints (VTEPs) to achieve DC between DCs. Communication, communication between hosts within the same DC can be achieved by establishing a VXLAN tunnel (VXLAN-DCN tunnel) between VTEPs within the DC. The VTEP is used to add a VXLAN tunnel header to the packet, obtain a VXLAN packet, or delete the VXLAN tunnel header from the VXLAN packet header to terminate the VXLAN tunnel.
传统的IP隧道在传输报文时,为了避免路由环路和丢包,网络边缘设备需要支持水平分割特性,即网络边缘设备从一个隧道(VXLAN-DCI隧道或VXLAN-DCN隧道)接收到报文后,不会再将该报文发送至相同类型的另一个隧道。但为了实现DC内部服务器之间以及不同DC之间的数据转发,就需要关闭网络边缘设备上的水平分割特性,但这样就可能导致从一个DC发出的报文又回到该DC中,会导致在多个DC互联时存在环路的风险,。In order to avoid routing loops and packet loss when a traditional IP tunnel transmits packets, the network edge device needs to support the horizontal splitting feature, that is, the network edge device receives the packet from a tunnel (VXLAN-DCI tunnel or VXLAN-DCN tunnel). The message will no longer be sent to another tunnel of the same type. However, in order to implement data forwarding between DC internal servers and between different DCs, it is necessary to turn off the horizontal splitting feature on the network edge device, but this may cause packets sent from one DC to return to the DC, which may result in There is a risk of loops when multiple DCs are interconnected.
发明内容Summary of the invention
本申请提供了一种路由协议报文的处理方法及装置,能够使网络边缘设备在接收到路由协议报文时,确定出协议报文的路由是否存在环路可能。The present invention provides a method and a device for processing a routing protocol packet, which can enable the network edge device to determine whether there is a loop of the routing of the protocol packet when receiving the routing protocol packet.
第一方面,本申请提供了一种路由协议报文的处理方法,所述方法应用于第一数据中心DC的第一网络边缘设备中,所述第一网络边缘设备为边界网络边缘设备或非边界网络边缘设备。所述第一网络边缘设备向第二网络边缘设备发布路由协议报文之前,将第一网络连接属性标识添加到所述路由协议报文中,所述路由协议报文用于使所述第二网络边缘设备学习到所述路由协议报文后,根据所述路由协议报文的第一连接属性标识序列确定所述路由协议报文的路由是否存在环路可能。其中,所述第二网络边缘设备为边界网络边缘设备,所述第一网络连接属性标识为第一标识或第二标识,所述第一标识用于标识所述第一网络边缘设备和所述第二网络边缘设备属于同一DC,所述第二标识用于标识所述第一网络边缘设备和所述第二网络边缘设备不属于同一DC,所述第一连接属性标识序列为所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识所形成的序列,所述第一连接属性标识序列包括所述第一网络连接属性标识。In a first aspect, the present application provides a method for processing a routing protocol packet, where the method is applied to a first network edge device of a first data center DC, where the first network edge device is a border network edge device or a non- Border network edge device. Before the first network edge device advertises the routing protocol packet to the second network edge device, the first network connection attribute identifier is added to the routing protocol packet, and the routing protocol packet is used to enable the second After learning the routing protocol packet, the network edge device determines, according to the first connection attribute identifier sequence of the routing protocol packet, whether there is a loop of the routing protocol packet. The second network edge device is a border network edge device, and the first network connection attribute identifier is a first identifier or a second identifier, where the first identifier is used to identify the first network edge device and the The second network edge device belongs to the same DC, and the second identifier is used to identify that the first network edge device and the second network edge device do not belong to the same DC, and the first connection attribute identification sequence is the routing protocol. And the sequence formed by the network connection attribute identifier added by each network edge device that is passed by the packet in the forwarding process, where the first connection attribute identification sequence includes the first network connection attribute identifier.
本申请中,DC的网络边缘设备通过在发送路由协议报文之前,将用于标识本网络边缘设备与对端的边界网络边缘设备之间网络连接属性标识添加至路由协议报文中,从而使对端的边界网络边缘设备在接收到该路由协议报文时,能够自动根据该路由协议报文中携带的所有网络连接属性标识确定出该路由协议报文是否存在环路的风险。通过本申请,从网络控制平面上避免了数据报文转发出现环路的可能。In this application, the network edge device of the DC adds the network connection attribute identifier between the edge device of the edge device of the network and the edge device of the peer end to the routing protocol packet before sending the routing protocol packet, thereby When receiving the routing protocol packet, the edge network edge device can automatically determine whether there is a loop risk of the routing protocol packet according to all the network connection attribute identifiers carried in the routing protocol packet. Through the application, the possibility of looping of data packet forwarding is avoided from the network control plane.
结合第一方面,在一种可能的实施方式中,若所述第一网络边缘设备为边界网络边缘设备,所述第一网络边缘设备向第二网络边缘设备发布第一路由协议报文之前,所述第一网络边缘设备接收所述路由协议报文,其中,所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识。所述第一网络边缘设备根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到第二连接属性标识序列,所述第二连接属性标识序列不包括所述第一网络连接属性标识。所述第一网络边缘设备根据所述第二连接属性标识序列确定所述路由协议报文的路由是否存在环路可能;若所述第一网络边缘设备确定所述路由协议报文的路由不存在环路可能,则所述第一网络边缘设备将所述第一网络连接属性标识添加到所述路由协议报文中。With reference to the first aspect, in a possible implementation, if the first network edge device is a border network edge device, before the first network edge device issues the first routing protocol packet to the second network edge device, The first network edge device receives the routing protocol packet, where the routing protocol packet carries the network connection attribute added by each network edge device that the routing protocol packet passes in the forwarding process. Logo. The first network edge device obtains a second connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol packet, where the second connection attribute identification sequence does not include the first network connection Attribute ID. Determining, by the first network edge device, that the route of the routing protocol packet has a loop according to the second connection attribute identifier sequence; if the first network edge device determines that the route of the routing protocol packet does not exist If the loop is possible, the first network edge device adds the first network connection attribute identifier to the routing protocol message.
结合第一方面,在一种可能的实施方式中,若所述第一网络边缘设备确定所述路由协议报文的路由存在环路可能,所述第一网络边缘设备丢弃所述路由协议报文。With reference to the first aspect, in a possible implementation, if the first network edge device determines that the route of the routing protocol packet is looped, the first network edge device discards the routing protocol packet. .
结合第一方面,在一种可能的实施方式中,若所述第二连接属性标识序列同时满足以下第一条件和第二条件,则所述第一网络边缘设备确定所述路由协议报文的路由存在环路可能,若所述第二连接属性标识序列不同时满足所述第一条件和第二条件,则确定所述路由协议报文的路由不存在环路可能;所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。With reference to the first aspect, in a possible implementation, if the second connection attribute identification sequence satisfies the following first condition and the second condition, the first network edge device determines the routing protocol packet If the route is in the loop, if the second connection attribute identifier sequence is different, the first condition and the second condition are met, and the route of the routing protocol packet is determined to have no loop; the first condition is The number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three; the second condition is a network connection attribute in the connection attribute identification sequence except the first network connection attribute identifier and the last network connection attribute identifier. The first identifier is in the identifier, or the host network protocol IP address or the network segment IP address of the route carried in the routing protocol packet is an IP address connected to the non-boundary network edge device in the DC where the network edge device is located.
结合第一方面,在一种可能的实施方式中,所述第一网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。With reference to the first aspect, in a possible implementation manner, the first network connection attribute identifier is carried in a value field of an extended type length value TLV field of the routing protocol message.
结合第一方面,在一种可能的实施方式中,所述将第一网络连接属性标识添加到所述路由协议报文中之前,所述第一网络边缘设备根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识。所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述网络连接关系属性表为基于所述第一网络边缘设备的邻居关系配置的数据表,所述邻居网络边缘设备包括所述第二网络边缘设备。。With reference to the first aspect, in a possible implementation, before the adding the first network connection attribute identifier to the routing protocol packet, the first network edge device is configured according to the first network edge device. The network connection relationship attribute table determines the first network connection attribute identifier. The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and a neighbor network edge device of the first network edge device, where the network connection relationship attribute table is based on the A data table of a neighbor relationship configuration of the network edge device, the neighbor network edge device including the second network edge device. .
本申请中,通过网络边缘设备中的用于存储第一网络边缘设备与其第一邻居网络边缘设备的网络连接属性标识的数据表,使第一网络边缘设备在向其邻居网络边缘设备发送路由协议报文时,能够根据该数据表快速确定出对应的网络连接属性标识,并添加到路由协议报文中,提高了路由协议报文的处理效率。In the present application, the first network edge device sends a routing protocol to its neighbor network edge device by using a data table in the network edge device for storing the network connection attribute identifier of the first network edge device and its first neighbor network edge device. When the packet is received, the corresponding network connection attribute identifier can be quickly determined according to the data table and added to the routing protocol packet, which improves the processing efficiency of the routing protocol packet.
结合第一方面,在一种可能的实施方式中,所述网络连接关系属性表的每个表项中存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与所述一个邻居网络边缘设备的IP地址的对应关系;所述第一网络边缘设备在所述网络连接关系属性表中查找与所述第二网络边缘设备的IP地址相匹配的第一网络连接属性标识。With reference to the first aspect, in a possible implementation, each of the entries of the network connection relationship attribute table stores the first network edge device and a neighbor network edge device of the first network edge device. Corresponding relationship between the network connection attribute identifier and the IP address of the neighbor network edge device; the first network edge device searches for the IP address of the second network edge device in the network connection relationship attribute table The first network connection attribute identifier.
结合第一方面,在一种可能的实施方式中,所述虚拟局域网为以下网络中的任一网络:VXLAN、QinQ、VPLS网络。With reference to the first aspect, in a possible implementation manner, the virtual local area network is any one of the following networks: a VXLAN, a QinQ, and a VPLS network.
第二方面,本申请提供了一种路由协议报文的处理方法,所述方法应用于第一数据中心DC的第一网络边缘设备上,所述第一网络边缘设备为边界网络边缘设备。In a second aspect, the present application provides a method for processing a routing protocol packet, where the method is applied to a first network edge device of a first data center DC, where the first network edge device is a border network edge device.
所述第一网络边缘设备接收第二网络边缘设备发布的路由协议报文,其中,所述第二网络边缘设备为第二DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备。所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识,所述网络连接属性标识为第一标识或第二标识,所述第一标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备属于同一DC,所述第二标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备不属于同一DC;所述第一网络边缘设备根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到连接属性标识序列;所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由是否存在环路可能。The first network edge device receives a routing protocol message advertised by the second network edge device, where the second network edge device is a border network edge device of the second DC or the non-boundary network edge device of the first DC . The routing protocol packet carries a network connection attribute identifier that is added by each network edge device that the routing protocol packet passes in the forwarding process, and the network connection attribute identifier is a first identifier or a second identifier. The first identifier is used to identify that the network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet belong to the same DC, and the second identifier is used to identify that the routing protocol packet is advertised. The network edge device and the network edge device that receives the routing protocol packet do not belong to the same DC; the first network edge device obtains the connection attribute according to the sequentially added network connection attribute identifier carried in the routing protocol packet. And an identifier sequence; the first network edge device determines, according to the connection attribute identifier sequence, whether a route of the routing protocol packet has a loop possibility.
结合第二方面,在一种可能的实施方式中,若所述连接属性标识序列同时满足以下第一条件和第二条件,则所述第一网络边缘设备确定所述路由协议报文的路由存在环路可能,若所述连接属性标识序列不同时满足所述第一条件和所述第二条件,则所述第一网络边缘设备确定所述路由协议报文的路由不存在环路可能。所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个。所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。With reference to the second aspect, in a possible implementation, if the connection attribute identification sequence satisfies the following first condition and the second condition, the first network edge device determines that the route of the routing protocol message exists. The loop may be that if the connection attribute identification sequence is different, the first network condition and the second condition are met, and the first network edge device determines that the route of the routing protocol message does not have a loop. The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three. The second condition is that the first identifier exists in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or is carried in the routing protocol packet. The routed host network protocol IP address or network segment IP address is the IP address to which the non-boundary network edge device in the DC where the network edge device resides.
结合第二方面,在一种可能的实施方式中,若所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由不存在环路可能,所述第一网络边缘设备将 第一网络连接属性标识添加到所述路由协议报文中的所述依次添加的网络连接属性标识之后;所述第一网络边缘设备将添加后的所述路由协议报文发布至第三网络边缘设备。其中,所述第一网络连接属性标识为所述第一网络边缘设备与所述第三网络边缘设备之间的网络连接属性标识,所述第三网络边缘设备为第三DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备。With reference to the second aspect, in a possible implementation, if the first network edge device determines that the route of the routing protocol packet does not exist in a loop according to the connection attribute identification sequence, the first network edge After the device adds the first network connection attribute identifier to the sequentially added network connection attribute identifier in the routing protocol packet, the first network edge device issues the added routing protocol packet to the third Network edge device. The first network connection attribute identifier is a network connection attribute identifier between the first network edge device and the third network edge device, and the third network edge device is a third DC border network edge device. Or the non-boundary network edge device of the first DC.
结合第二方面,在一种可能的实施方式中,所述第一网络边缘设备将第一网络连接属性标识添加到所述路由协议报文之前,所述第一网络边缘设备根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识;其中,所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述网络连接关系属性表为基于所述第一网络边缘设备的邻居关系配置的数据表,所述邻居网络边缘设备包括所述第三网络边缘设备。With reference to the second aspect, in a possible implementation, the first network edge device adds a first network connection attribute identifier to the routing protocol packet, and the first network edge device is configured according to the first a network connection relationship attribute table in the network edge device, where the first network connection attribute identifier is determined; wherein the network connection relationship attribute table is used to record a neighbor of the first network edge device and the first network edge device a network connection attribute identifier between the network edge devices, the network connection relationship attribute table is a data table configured based on a neighbor relationship of the first network edge device, and the neighbor network edge device includes the third network edge device.
结合第二方面,在一种可能的实施方式中,所述网络连接关系属性表的每个表项存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与所述一个邻居网络边缘设备的IP地址的对应关系。所述第一网络边缘设备在所述网络连接关系属性表中查找与所述第三网络边缘设备的IP地址相对应的第一网络连接属性标识。With reference to the second aspect, in a possible implementation, each entry of the network connection relationship attribute table stores a network of the first network edge device and a neighbor network edge device of the first network edge device A connection attribute identifier corresponding to an IP address of the neighbor network edge device. The first network edge device searches, in the network connection relationship attribute table, a first network connection attribute identifier corresponding to an IP address of the third network edge device.
结合第二方面,在一种可能的实施方式中,若所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由存在环路可能,所述第一网络边缘设备丢弃所述路由协议报文。With reference to the second aspect, in a possible implementation manner, if the first network edge device determines that a route of the routing protocol packet exists in a loop according to the connection attribute identification sequence, the first network edge device Discard the routing protocol packet.
结合第二方面,在一种可能的实施方式中,所述每个网络边缘设备依次添加的网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。With reference to the second aspect, in a possible implementation manner, the network connection attribute identifier that is sequentially added by each network edge device is carried in a value field of an extended type length value TLV field of the routing protocol message.
第三方面,本申请提供了一种路由协议报文的处理装置,所述处理装置包括用于实现所述第一方面及其各实现方式中的方法的功能模块。In a third aspect, the present application provides a processing device for routing protocol messages, the processing device including functional modules for implementing the methods in the first aspect and various implementation manners thereof.
第四方面,本申请提供了一种路由协议报文的处理装置,所述装置包括用于实现所述第二方面及其各实现方式中的方法的功能模块。In a fourth aspect, the application provides a processing device for routing protocol messages, and the device includes functional modules for implementing the methods in the second aspect and various implementation manners thereof.
第五方面,本申请提供了一种网络边缘设备,所述网络边缘设备包括处理器和存储器;所述存储器用于存储可执行的计算机程序代码;所述处理器用于读取所述计算机程序代码来运行与所述计算机程序代码对应的计算机程序,以用于执行如本申请第一方面的任一种可能的实施方式中的路由协议报文的处理方法。In a fifth aspect, the application provides a network edge device, the network edge device comprising a processor and a memory; the memory for storing executable computer program code; the processor for reading the computer program code A computer program corresponding to the computer program code is executed for performing a processing method of a routing protocol message in any of the possible embodiments of the first aspect of the present application.
第六方面,本申请提供了一种计算机可读存储介质,所述可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如本申请第一方面的任一种可能的实施方式中的路由协议报文的处理方法。In a sixth aspect, the present application provides a computer readable storage medium having stored therein computer instructions that, when executed on a computer, cause the computer to perform any of the first aspect of the present application A method for processing a routing protocol message in a possible implementation manner.
第七方面,本申请提供了一种网络边缘设备,所述网络边缘设备包括处理器和存储器;所述存储器所述存储器用于存储可执行的计算机程序代码;所述处理器用于读取所述计算机程序代码来运行与所述计算机程序代码对应的计算机程序,以用于执行如本申请第二方面的任一种可能的实施方式中的路由协议报文的处理方法。In a seventh aspect, the application provides a network edge device, the network edge device comprising a processor and a memory; the memory is configured to store executable computer program code; the processor is configured to read the The computer program code is operative to execute a computer program corresponding to the computer program code for performing a method of processing a routing protocol message in any of the possible embodiments of the second aspect of the present application.
第八方面,本申请提供了一种计算机可读存储介质,所述可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如本申请第二方面的任一种可能的实施方式中的路由协议报文的处理方法。In an eighth aspect, the present application provides a computer readable storage medium having stored therein computer instructions that, when executed on a computer, cause the computer to perform any of the second aspect of the present application A method for processing a routing protocol message in a possible implementation manner.
附图说明DRAWINGS
图1示出了两个数据中心通过DCI转发报文的过程示意图;FIG. 1 is a schematic diagram showing a process in which two data centers forward messages through DCI;
图2示出了多个数据中心互联出现报文转发环路的示意图;2 is a schematic diagram showing a message forwarding loop in a plurality of data center interconnections;
图3示出了本申请实施例提供的一种网络架构的示意图;FIG. 3 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图4示出了本申请实施例提供的一种网络边缘设备的结构示意图;FIG. 4 is a schematic structural diagram of a network edge device according to an embodiment of the present disclosure;
图5示出了根据本申请实施例的一种路由协议报文的处理方法的流程示意图;FIG. 5 is a schematic flowchart diagram of a method for processing a routing protocol packet according to an embodiment of the present application;
图6示出了根据本申请实施例的扩展一次类型长度值(Type Length Value,TLV)字段的BGP EVPN协议报文的结构示意图;FIG. 6 is a schematic structural diagram of a BGP EVPN protocol packet of an extended type length value (TLV) field according to an embodiment of the present application;
图7示出了根据本申请实施例的TLV字段的结构示意图;FIG. 7 is a schematic structural diagram of a TLV field according to an embodiment of the present application;
图8示出了根据本申请实施例的扩展两次TLV字段的BGP EVPN协议报文的结构示意图;FIG. 8 is a schematic structural diagram of a BGP EVPN protocol packet that extends two TLV fields according to an embodiment of the present application;
图9示出了根据本申请实施例的一种路由协议报文的处理方法的流程示意图;FIG. 9 is a schematic flowchart diagram of a method for processing a routing protocol packet according to an embodiment of the present application;
图10示出了根据本申请一实施例的一种路由协议报文的处理装置的框示意性框图;FIG. 10 is a schematic block diagram of a processing apparatus for routing protocol messages according to an embodiment of the present application;
图11示出了根据本申请另一实施例的一种路由协议报文的处理装置的示意性框图;FIG. 11 is a schematic block diagram of a processing apparatus for routing protocol messages according to another embodiment of the present application;
图12示出了根据本申请再一实施例的一种路由协议报文的处理装置的示意性框图;FIG. 12 is a schematic block diagram of a processing apparatus for a routing protocol message according to still another embodiment of the present application;
图13示出了根据本申请一实施例的一种路由协议报文的处理装置的示意性框图;FIG. 13 is a schematic block diagram of a processing apparatus for routing protocol messages according to an embodiment of the present application;
图14示出了根据本申请再一实施例的一种路由协议报文的处理装置的示意性框图;FIG. 14 is a schematic block diagram of a processing apparatus for a routing protocol message according to still another embodiment of the present application;
图15示出了根据本申请又一实施例的一种路由协议报文的处理装置的示意性框图;FIG. 15 is a schematic block diagram of a processing apparatus for a routing protocol message according to still another embodiment of the present application;
图16示出了根据本申请实施例提供的一种网络边缘设备的示意性框图。FIG. 16 shows a schematic block diagram of a network edge device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种路由协议报文处理方法、装置、设备和存储介质,可以用于DC的网络边缘设备中,该DC可以采用VXLAN、QinQ、VPLS网络等多种网络架构。同一DC内的网络边缘设备之间通过DCN隧道通信。不同DC的网络边缘设备之间通过DCI隧道通信。本申请实施例的方法及装置,能够在DC互联时,及时识别出网络配置错误,避免网络环路的发生。The embodiment of the present application provides a method, a device, a device, and a storage medium for processing a routing protocol packet, which can be used in a network edge device of a DC. The DC can adopt various network architectures such as a VXLAN, a QinQ, and a VPLS network. Network edge devices in the same DC communicate through DCN tunnels. Network edge devices of different DCs communicate through DCI tunnels. The method and device of the embodiments of the present application can identify network configuration errors and avoid network loops when DC interconnection occurs.
网络边缘设备可以是DC中作为接入设备的网络边缘设备,也可以是DC中用于连接DC的网络边缘设备。本申请中,将作为接入设备的网络边缘设备被称为非边界网络边缘设备,将用于连接其他DC的网络边缘设备称为边界网络边缘设备。The network edge device may be a network edge device as an access device in the DC, or may be a network edge device in the DC for connecting to the DC. In this application, a network edge device that is an access device is referred to as a non-boundary network edge device, and a network edge device that is used to connect other DCs is referred to as a border network edge device.
可以理解的是,对于不同的虚拟局域网类型,网络边缘设备的类型和/或名称也可能不同。例如,在VXLAN中,网络边缘设备指是指DC中的VTEP,则DC中的网络边缘设备可以包括边界VTEP和非边界VTEP。对于QinQ网络、VPLS网络或多链接透明互联(Transparent Interconnection of Lots of Links,TRILL)网络,网络边缘设备为运营商网络边缘设备,如VPLS网络中的运营商边缘设备(provider edge,PE)、TRILL网络 中的边缘路由桥(routing bridge,RB)设备等。相应地,VPLS中的网络边缘设备可以包括边界PE和非边界PE,TRILL网络中的网络边缘设备可以包括边界RB和非边缘RB。It can be understood that the types and/or names of network edge devices may also be different for different types of virtual local area networks. For example, in VXLAN, a network edge device refers to a VTEP in a DC, and a network edge device in a DC may include a boundary VTEP and a non-boundary VTEP. For a QinQ network, a VPLS network, or a Transparent Interconnection of Lots of Links (TRILL) network, the network edge device is an operator network edge device, such as a provider edge (PE) and TRILL in a VPLS network. Edge routing bridge (RB) devices in the network. Correspondingly, the network edge device in the VPLS may include a border PE and a non-boundary PE, and the network edge device in the TRILL network may include a boundary RB and a non-edge RB.
本申请图1示出了VXLAN中两个DC之间通过DCI转发报文的过程示意图。如图1所示,A1、B1、C1、D1和E1为DC1中的VTEP,A2、B2、C2、D2和E2为DC2中的VTEP。其中,A1和B1为DC1中作为DC1连接DC2的边界VTEP,C1、D1和E1为DC1中作为接入设备的非边界VTEP,A2和B2为DC2中作为DC2连接DC1的边界VTEP,C2、D2和E2为DC2中作为接入设备的非边界VTEP。在VXLAN中,两个VTEP之间通过建立VXLAN隧道通信。其中,在VXLAN中,作为DC间连接设备的VTEP可以称为骨节点(Spine),作为接入设备的VTEP可以称为叶节点(Leaf)。FIG. 1 is a schematic diagram showing a process of forwarding a message between two DCs in a VXLAN through DCI. As shown in FIG. 1, A1, B1, C1, D1, and E1 are VTEPs in DC1, and A2, B2, C2, D2, and E2 are VTEPs in DC2. Among them, A1 and B1 are the boundary VTEP of DC1 connected to DC2 as DC1, C1, D1 and E1 are non-boundary VTEPs as access devices in DC1, and A2 and B2 are borders VTEP, C2 and D2 of DC2 connected to DC1 in DC2. And E2 is the non-boundary VTEP in DC2 as the access device. In VXLAN, two VTEPs communicate by establishing a VXLAN tunnel. Among them, in the VXLAN, the VTEP as the inter-DC connection device may be referred to as a bone node (Spine), and the VTEP as an access device may be referred to as a leaf node (Leaf).
图1所示的网络架构中,DC1和DC2之间可以采用三段式方式互通。如图1所示,当DC1中的与D1连接的主机1需要向DC2中与D2连接的主机2发送报文时,报文的转发路径可以如图1中箭头所示,D1为主机1发送来的第一报文添加包括B1的信息的第一VXLAN隧道头得到第一VXLAN报文,通过D1与B1之间的VXLAN-DCN隧道将该第一VXLAN报文发送至B1,B1删除该第一VXLAN报文的第一VXLAN隧道头得到该第一报文、再重新对该第一报文添加包括B2的信息的第二VXLAN隧道头得到第二VXLAN报文,将该第二VXLAN报文通过B1和B2之间的VXLAN-DCI隧道发送至DC2内的B2上,B2删除该第二VXLAN报文的第二VXLAN隧道头得到该第一报文、再重新为该第一报文添加包括D2的信息的第三VXLAN隧道头得到第三VXLAN报文,将该第三VXLAN报文通过B2与D2之间的VXLAN-DCN隧道发送至D2,最终由D2删除该第三VXLAN报文的第三VXLAN隧道头得到该第一报文,并将该第一报文发送到DC2内的主机2。In the network architecture shown in Figure 1, DC1 and DC2 can be interconnected in a three-stage manner. As shown in Figure 1, when the host 1 connected to D1 in DC1 needs to send packets to the host 2 connected to D2 in DC2, the forwarding path of the packet can be as shown by the arrow in Figure 1, and D1 is sent as the host 1. The first VXLAN tunnel header of the first packet added with the information of B1 obtains the first VXLAN packet, and the first VXLAN packet is sent to B1 through the VXLAN-DCN tunnel between D1 and B1, and the B1 deletes the first packet. The first VXLAN tunnel header of the VXLAN packet obtains the first packet, and the second VXLAN tunnel header including the B2 information is added to the first packet to obtain the second VXLAN packet, and the second VXLAN packet is obtained. The second VXLAN tunnel header of the second VXLAN packet is deleted by the VXLAN-DCI tunnel between B1 and B2, and the B2 deletes the second VXLAN tunnel header of the second VXLAN packet to obtain the first packet, and then adds the first packet to the first packet. The third VXLAN tunnel header of the D2 information obtains the third VXLAN packet, and the third VXLAN packet is sent to the D2 through the VXLAN-DCN tunnel between B2 and D2, and finally the third VXLAN packet is deleted by the D2. The third VXLAN tunnel header obtains the first packet and sends the first packet to the host 2 in the DC2.
若VTEP支持水平分割特性,则在报文转发过程中,B1在通过VXLAN-DCN隧道接收到D1发送的第一VXLAN报文之后,不会再通过DC1内的VXLAN-DCN隧道将该第一VXLAN报文发送至C1或E1,同样,B2在通过VXLAN-DCI隧道接收到B1发送的第二VXLAN报文后,也不会再通过VXLAN-DCI隧道将该第二VXLAN报文发送至其它DC。因此,支持水平分割特性的VTEP无法实现多DC之间的互联。If the VTEP supports the split horizon feature, after receiving the first VXLAN packet sent by D1 through the VXLAN-DCN tunnel, B1 will not pass the first VXLAN through the VXLAN-DCN tunnel in DC1. The message is sent to C1 or E1. Similarly, after receiving the second VXLAN message sent by B1 through the VXLAN-DCI tunnel, B2 will not send the second VXLAN message to other DCs through the VXLAN-DCI tunnel. Therefore, VTEP supporting horizontal splitting cannot achieve interconnection between multiple DCs.
为了实现DC内部之间的转发以及多个DC之间的互联,就需要取消VTEP上的水平分割特性。但取消水平分割特性,就可能会导致多个DC之间互联时出现数据转发环路的风险。如图2所示,四个数据中心DC1、DC2、DC3、DC4互联时,1、2、3、4分别表示DC1、DC2、DC3、DC4的Spine。如果某个Spine的配置信息出现错误,就会出现如图2中箭头方向所示的由DC1发送的报文又被转发回至DC1,出现网络环路。本申请实施例提供的路由协议报文的处理方法从网络控制平面有效避免了数据平面报文转发出现环路的可能。In order to achieve forwarding between DCs and interconnection between multiple DCs, it is necessary to cancel the horizontal splitting feature on VTEP. However, the elimination of the split horizon feature may result in the risk of data forwarding loops when interconnecting multiple DCs. As shown in FIG. 2, when four data centers DC1, DC2, DC3, and DC4 are interconnected, 1, 2, 3, and 4 represent Spines of DC1, DC2, DC3, and DC4, respectively. If the configuration information of a certain Spine is incorrect, the message sent by DC1 as shown by the direction of the arrow in Figure 2 is forwarded back to DC1, and a network loop occurs. The processing method of the routing protocol packet provided by the embodiment of the present application effectively avoids the possibility of looping in the data plane packet forwarding from the network control plane.
图3示出了本申请实施例适用的一种VXLAN架构的示意图。如图3中所示,该VXLAN架构包括多个数据中心,每个数据中心包括至少一个边界VTEP和至少一个非边界VTEP。作为示例,图3中示出了三个DC:DC10、DC20和DC30。其中,A 10、A 20和A 30为边界VTEP,且分别为DC10、DC20和DC30的Spine,B 10、B 20和B 30为非边界VTEP,且分别为DC10、DC20和DC30的Leaf,分别用于网段10、主机20和主机30的网络接入。A 10、A 20、A 30、B 10、B 20和B 30的IP地址分别为IP1、IP2、IP3、 IP4、IP5和IP6,网段10的网段IP地址为1.1.1.0/24。可以理解的是,B 10连接网段10是指B 10与网段10中的多个主机连接,实现该网段10中所有主机的网络接入。 FIG. 3 is a schematic diagram of a VXLAN architecture applicable to an embodiment of the present application. As shown in FIG. 3, the VXLAN architecture includes a plurality of data centers, each data center including at least one boundary VTEP and at least one non-boundary VTEP. As an example, three DCs are shown in FIG. 3: DC10, DC20, and DC30. Wherein, A 10 , A 20 and A 30 are border VTEPs, and Spines of DC10, DC20 and DC30, respectively, B 10 , B 20 and B 30 are non-boundary VTEPs, and are respectively DC10, DC20 and DC30, respectively Network access for network segment 10, host 20, and host 30. The IP addresses of A 10 , A 20 , A 30 , B 10 , B 20 , and B 30 are IP1, IP2, IP3, IP4, IP5, and IP6, respectively, and the network segment IP address of network segment 10 is 1.1.1.0/24. It can be understood that the B 10 connection network segment 10 means that the B 10 is connected to multiple hosts in the network segment 10 to implement network access of all hosts in the network segment 10.
A 10、A 20、A 30、B 10、B 20和B 30上均运行路由协议,该路由协议可以是边界网关协议(Border Gateway Protocol,BGP)以太网专用虚拟网络(Ethernet Virtual Private Network,EVPN)协议,中间系统到中间系统(Intermediate System to Intermediate System,IS-IS)协议,开放最短路径优先(Open Shortest Path First,OSPF)协议等。在对VTEP进行网络配置时,基于每个VTEP的邻居关系配置该VTEP与其邻居VTEP之间的网络连接属性,该网络连接属性用于标识一个VTEP与其邻居VTEP是否属于同一DC,即表示本VTEP去往邻居VTEP的路由是DCN)还是DCI。 A 10 , A 20 , A 30 , B 10 , B 20 , and B 30 all run a routing protocol, which may be a Border Gateway Protocol (BGP) Ethernet Virtual Private Network (EVPN). Protocol, Intermediate System to Intermediate System (IS-IS) protocol, Open Shortest Path First (OSPF) protocol, etc. During the network configuration of the VTEP, the network connection attribute between the VTEP and its neighbor VTEP is configured based on the neighbor relationship of each VTEP. The network connection attribute is used to identify whether a VTEP and its neighbor VTEP belong to the same DC, that is, the VTEP goes. The route to the neighbor VTEP is DCN) or DCI.
为描述方便,本申请实施例中,若一个VTEP与其邻居VTEP位于同一DC,则这两个VTEP之间的网络连接属性为DCN,若一个VTEP与其邻居VTEP不位于同一DC,则这两个VTEP之间的网络连接属性为DCI。其中,若网络连接属性为DCN,对应的网络连接属性标识可以直接用DCN表示,若网络连接属性为DCI,对应的网络连接属性标识也可以直接用DCI表示。当然,也可以通过设置其它不同的标识来表示两种网络连接属性,只要两种标识不同即可。例如,可以用于1表示网络连接属性为DCN,以0表示网络连接属性为DCI。For convenience of description, in the embodiment of the present application, if a VTEP and its neighbor VTEP are in the same DC, the network connection attribute between the two VTEPs is DCN. If a VTEP and its neighbor VTEP are not in the same DC, the two VTEPs are The network connection property between them is DCI. If the network connection attribute is DCN, the corresponding network connection attribute identifier can be directly represented by DCN. If the network connection attribute is DCI, the corresponding network connection attribute identifier can also be directly represented by DCI. Of course, you can also set two different network connection attributes by setting other different identifiers, as long as the two types of identifiers are different. For example, it can be used for 1 to indicate that the network connection attribute is DCN, and 0 to indicate that the network connection attribute is DCI.
基于图3所示的网络架构,A 10、A 20、A 30、B 10、B 20和B 30的BGP邻居关系为:B 10、A 20和A 30为A 10的邻居VTEP,B 20、A 10和A 30为A 20的邻居VTEP,B 30、A 10和A 20为A 30的邻居VTEP,A 10为B 10的邻居VTEP,A 20为B 20的邻居VTEP,A 30为B 30的邻居VTEP。每个VTEP与其邻居VTEP之间的网络连接属性标识如图3所示,如设备A 10和B 10之间的网络连接属性标识为DCN,设备A 10和A 20之间的网络连接属性标识为DCI。 Based on the network architecture shown in FIG. 3, the BGP neighbor relationships of A 10 , A 20 , A 30 , B 10 , B 20 , and B 30 are: B 10 , A 20 , and A 30 are neighbor VTEPs of A 10 , B 20 , A 10 and A 30 are neighbor VTEPs of A 20 , B 30 , A 10 and A 20 are neighbor VTEPs of A 30 , A 10 is a neighbor VTEP of B 10 , A 20 is a neighbor VTEP of B 20 , and A 30 is B 30 Neighbor VTEP. The network connection attribute identifier between each VTEP and its neighbor VTEP is as shown in FIG. 3. If the network connection attribute between the devices A 10 and B 10 is identified as DCN, the network connection attribute between the devices A 10 and A 20 is identified as DCI.
需要说明的是,同一DC中的Leaf之间无直连物理链路,同一DC中的Leaf之间需要通过本DC中的Spine通信,同一DC内的Spine之间一般也不直接通信。It should be noted that there is no direct physical link between the leafs in the same DC, and the Spine communication in the DC is required between the leaves in the same DC, and the Spine in the same DC does not generally communicate directly.
在VXLAN控制平面,为了实现多个DC之间的互通,DC中的Leaf需要发布其下属主机或网段的IP路由,否则Spine和其它Leaf就无法学习到对方的路由,从而无法进行数据平面的数据转发。下文中以B 10发布网段10的网段路由为例进行路由协议报文转发过程的说明。 On the VXLAN control plane, in order to implement interworking between multiple DCs, the leaf in the DC needs to advertise the IP route of its subordinate host or network segment. Otherwise, Spine and other leaves cannot learn the route of the other party, thus failing to perform data plane. Data forwarding. Hereinafter network route B 10 to release segment 10 will be described as an example routing protocol packet forwarding process.
B 10通过往A 10发布网段10的网络路由信息的路由协议报文时,B 10发布的路由协议报文中除包括B 10的IP地址IP4(封装后的VXLAN报文中的外层源IP地址)、A 10的IP地址IP1(封装后的VXLAN报文中的外层目的IP地址)、网段10的IP地址1.1.1.0/24(封装后的VXLAN报文中的内层源IP地址)等基本协议报文参数外,还携带有B 10去往A 10的网络连接属性标识即B 10与A 10之间的网络连接属性标识DCN。 B 10 through the network routing protocol packets to route A distribution network 10 information segment 10, B 10 release routing protocol packets comprising an outer layer, in addition to a source packet VXLAN (B IP address encapsulated in 10 IP4 IP address), IP address IP1 of A 10 (outer destination IP address in encapsulated VXLAN packet), IP address of network segment 10 1.1.1.0/24 (inner source IP in encapsulated VXLAN packet) external address) protocol packets basic parameters, also carry B 10 is connected to a network a 10 B 10 i.e. attribute identifies the attribute identifier a network connection 10 between the DCN.
A 10学习到B 10发布的路由协议报文时,首先由该路由协议报文中携带的DCN可知该协议报文是位于同一DC内的Leaf发送来的,A 10学习该路由协议报文中的路由信息即网段10的IP地址以及网段10对应的传输路径等信息,并将A 10与A 20之间的网络连接属性标识DCI添加到该路由协议报文中的DCN之后将该路由协议报文继续发布至A 20,A 10将A 10与A 30之间的网络连接属性标识DCI添加到该路由协议报文中的DCN与DCI之后继续将该路由协议报文发布至A 30。其中,A 20与A 30学习到设备A 10发布的 路由协议报文后的报文处理原则相同,下文中以A 20为例进行说明。 When A 10 learns the routing protocol message advertised by B 10 , the DCN carried in the routing protocol packet is first sent by the leaf in the same DC, and A 10 learns the routing protocol packet. The routing information is the IP address of the network segment 10 and the transmission path corresponding to the network segment 10, and the network connection attribute identifier DCI between A 10 and A 20 is added to the DCN in the routing protocol packet, and the route is added. The protocol message is further advertised to A 20 , and A 10 adds the network connection attribute identifier DCI between A 10 and A 30 to the DCN and DCI in the routing protocol message, and then advertises the routing protocol message to A 30 . The processing principle of the packet after the A 20 and the A 30 learn the routing protocol packet advertised by the device A 10 is the same. The following takes A 20 as an example for description.
A 20学习到设备A 10发布的该路由协议报文时,A 20根据该路由协议报文中的内层IP地址1.1.1.0/24可知该协议报文不是A 20所在的DC20中的设备发送的报文,A 20根据该路由协议报文中的网络连接属性标识序列为DCN-DCI,可以得知协议报文的路由信息是从与设备A 20不在同一DC的Spine发布的,不存在环路可能,设备A 20学习其接收到的路由协议报文的路由信息后,根据A 20的端口数复制该路由协议报文(当端口数为N时,共需要N-1个路由协议报文以便发往除接收端口之外的其他端口,在图3中,A 20复制得到两个路由协议报文),将设备A 20去往设备A 30的网络连接属性标识DCI添加到一个路由协议报文中的标识DCN、DCI之后,将该路由协议报文发布至A 30,将设备A 20去往设备B 20的网络连接属性标识DCN添加到另一个路由协议报文中的标识DCN、DCI之后,将该另一个路由协议报文继续发布至B 20When A 20 learns the routing protocol message advertised by the device A 10 , the A 20 sends the device according to the inner layer IP address 1.1.1.0/24 in the routing protocol message, and the protocol message is not sent by the device in the DC 20 where the A 20 is located. packets, routing information for DCN-DCI, can know the protocol packets according to the route protocol packet network connection attribute identifies the sequence of a 20 and 20 are not on the same DC from the apparatus a Spine released, the ring is not present After the device A 20 learns the routing information of the received routing protocol packet, the device A 20 copies the routing protocol packet according to the number of ports of the A 20 (when the number of ports is N, a total of N-1 routing protocol packets are required. In order to send to other ports than the receiving port, in FIG. 3, A 20 copies two routing protocol messages, and adds the network connection attribute identifier DCI of the device A 20 to the device A 30 to a routing protocol. After the DCN and DCI are identified in the text, the routing protocol message is advertised to A 30 , and the network connection attribute identifier DCN of the device A 20 to the device B 20 is added to the identifier DCN and DCI in another routing protocol message. , continue the other routing protocol message Published to B 20 .
B 20学习到A 20发布的路由协议报文时,由于B 20为非边界VTEP,B 20接收到的路由协议报文肯定是其所在DC的边界VTEP发送的,因此,无需确定是否存在DC互联环路可能。当配置了正确的路由策略时,B 20学习该路由协议报文的路由信息后,丢弃该BCP EVPN协议报文。当出现网络配置错误等异常情况时,B 20还可能将B 20去往A 20的网络连接属性DCN添加到该路由协议报中的网络连接属性标识DCN、DCI、DCN之后,再将该路由协议报文发布至A 20When B 20 learns the routing protocol message advertised by A 20 , since B 20 is a non-boundary VTEP, the routing protocol packet received by B 20 is definitely sent by the VTEP of the DC where the DC is located. Therefore, it is not necessary to determine whether there is a DC interconnection. The loop is possible. After When configured with the correct routing policy, B 20 to learn routing information of the routing protocol packets and discard the BCP EVPN protocol packets. When an abnormal situation such as a network configuration error occurs, the B 20 may also add the network connection attribute DCN of the B 20 to the A 20 to the network connection attribute identifiers DCN, DCI, and DCN in the routing protocol report, and then the routing protocol. The message is posted to A 20 .
A 30学习到A 20发布的协议报文时,A 30根据该路由协议报文中的内层IP地址1.1.1.0/24可知该路由协议报文不是A 30所在的DC30中的设备发送的报文,根据该路由协议报文中的网络连接属性标识序列为DCN-DCI-DCI,可以确定出该路由协议报文为由一个DC的Spine转发的另一个DC中的设备发送的报文,因此,不存在环路可能,A 30则将A 30与下一跳设备,如B 30,之间的网络连接属性标识添加到DCN-DCI-DCI之后将该路由协议报文发送给B 30When A 30 learns the protocol packet issued by the A 20 , the A 30 can know that the routing protocol packet is not sent by the device in the DC 30 where the A 30 is located according to the inner layer IP address 1.1.1.0/24 in the routing protocol packet. If the network connection attribute identification sequence in the routing protocol packet is DCN-DCI-DCI, the routing protocol packet is determined to be a packet sent by the device in another DC forwarded by one DC Spine, so There is no loop possibility. A 30 adds the network connection attribute identifier between the A 30 and the next hop device, such as B 30 , to the DCN-DCI-DCI, and then sends the routing protocol message to B 30 .
A 20学习到B 20发布的路由协议报文时,该路由协议报文中的连接属性标识序列为DCN-DCI-DCN-DCN,根据该序列可以确定出此时接收到的路由协议报文是从其它DC接收到的路由协议报文经A 20所在的DCN内部转发后再次转发出来的,如果将该路由协议报文再次发布出去,则有可能会导致该路由协议报文再次进入到初始发布该路由报文的DC中,导致路由协议报文的路由(转发路径)出现环路。因此,A 20直接丢弃该路由协议报文,从而避免出现环路的可能。 When A 20 learns the routing protocol message advertised by B 20 , the connection attribute identification sequence in the routing protocol message is DCN-DCI-DCN-DCN, and according to the sequence, it can be determined that the routing protocol message received at this time is The routing protocol packets received from other DCs are forwarded again after being forwarded by the DCN in which the A 20 is located. If the routing protocol packets are advertised again, the routing protocol packets may be re-entered into the initial release. The route of the routing protocol packet causes a loop in the routing (forwarding path) of the routing protocol packet. Therefore, A 20 directly discards the routing protocol packet, thereby avoiding the possibility of loops.
可见,根据本申请实施例,DC的边界VTEP能够在接收到路由协议报文时,检查出接收的路由协议报文是否存在环路的风险,防止错误路由配置导致网络故障。本申请实施例从网络控制平面避免了报文转发出现环路的可能,因此从源头上保证了DC之间数据平面报文的无环路转发。It can be seen that, according to the embodiment of the present application, the border VTEP of the DC can detect the risk of loops in the received routing protocol packet when the routing protocol packet is received, and prevent the network fault from being caused by the incorrect routing configuration. The embodiment of the present application avoids the possibility of loops in packet forwarding from the network control plane. Therefore, loop-free forwarding of data plane packets between DCs is ensured from the source.
图4示出了本申请实施例提供的一种网络边缘设备的结构示意图,该网络边缘设备具体可以实现为图3所示的网络架构中的任一VTEP。如图4所示,中央处理器(central processing unit,CPU)为网络边缘设备的控制单元,设备中运行的程序和静态配置的参数保存在闪存(flash)中,程序运行时执行的代码和数据可以放置在与CPU相连的随机存取存储器(random access memory,RAM)中。CPU控制以太网交换(LAN switch,LSW)芯片执行初始化、业务表项下发、协议报文收发、各类中断等操作。LSW芯片 可选用外置RAM用于存放转发的报文,可以解决LSW芯片内部缓存不足的某些场景。LSW芯片下挂的物理层(PHY)接口完成设备之间的光口或电口的以太网接口对接。本方法实施例的路由协议报文的处理方法具体可以由图4所示的网络边缘设备的CPU执行,由CPU控制LSW芯片对设备接收到的单播(Unicast)、广播、未知单播和多播(broadcast&unknown-unicast&multicast,BUM)路由协议报文的转发行为,从控制平面避免了路由转发出现环路的可能。FIG. 4 is a schematic structural diagram of a network edge device according to an embodiment of the present disclosure. The network edge device may be implemented as any VTEP in the network architecture shown in FIG. 3. As shown in FIG. 4, a central processing unit (CPU) is a control unit of a network edge device, and programs running in the device and statically configured parameters are saved in a flash memory, and code and data executed when the program is running. It can be placed in a random access memory (RAM) connected to the CPU. The CPU controls the Ethernet switch (LSW) chip to perform initialization, service entry delivery, protocol packet transmission and reception, and various types of interrupts. The LSW chip can be used to store the forwarded packets, which can solve some scenarios where the internal buffer of the LSW chip is insufficient. The physical layer (PHY) interface connected to the LSW chip completes the optical interface of the optical interface or electrical interface between the devices. The processing method of the routing protocol packet in the embodiment of the method may be specifically performed by the CPU of the network edge device shown in FIG. 4, and the CPU controls the unicast (unicast), broadcast, unknown unicast, and multiple received by the LSW chip to the device. The forwarding behavior of the routing protocol packets is broadcasted from the control plane. This avoids the possibility of loops in routing and forwarding.
图5示出了本申请实施例提供的一种路由协议报文处理方法的流程示意图,该路由协议报文处理方法适用于DC的网络边缘设备。该网络边缘设备可以为图1-图4所示的任一网络边缘设备。以下用第一DC的第一网络边缘设备指代该任一网络边缘设备如图5所示,该协议报文处理方法主要可以包括:FIG. 5 is a schematic flowchart of a method for processing a routing protocol packet according to an embodiment of the present disclosure. The method for processing a routing protocol packet is applicable to a network edge device of a DC. The network edge device can be any of the network edge devices shown in Figures 1-4. The first network edge device of the first DC is used to refer to the network edge device. As shown in FIG. 5, the protocol packet processing method may include:
步骤S10:第一网络边缘设备向第二网络边缘设备发布第一路由协议报文之前,将第一网络连接属性标识添加到该第一路由协议报文中。Step S10: Before the first network edge device issues the first routing protocol packet to the second network edge device, the first network connection attribute identifier is added to the first routing protocol packet.
本申请实施例中,第一网络边缘设备可以是边界网络边缘设备,也可以是非边界网络边缘设备,第二网络边缘设备为边界网络边缘设备。其中,若第一网络边缘设备为非边界网络边缘设备时,则第二网络边缘设备为第一DC的边界网络边缘设备,若第一网络边缘设备为边界网络边缘设备,则第二网络边缘设备为第二DC的边界网络边缘设备。In the embodiment of the present application, the first network edge device may be a border network edge device or a non-boundary network edge device, and the second network edge device is a border network edge device. If the first network edge device is a border network edge device, if the first network edge device is a border network edge device, the second network edge device is the second network edge device. A border network edge device for the second DC.
为了实现不同DC之间以及同一DC内的不同主机之间的互联通信,DC的网络边缘设备上运行路由协议,网络边缘设备通过向其邻居网络边缘设备发布路由协议报文,以使接收到路由协议报文的邻居网络边缘设备能够学习到路由协议报文中的相关路由信息,建立起两个网络边缘设备之间的隧道,基于建立的隧道实现两个网络边缘设备之间的通信。In order to implement the interconnection communication between different DCs and different hosts in the same DC, the network edge device of the DC runs a routing protocol, and the network edge device advertises the routing protocol packet to the neighboring network edge device to receive the route. The neighboring network edge device of the protocol packet can learn the relevant routing information in the routing protocol packet, establish a tunnel between the two network edge devices, and implement communication between the two network edge devices based on the established tunnel.
本申请实施例中,为了避免多DC互联时,出现报文转发环路(即从一个DC发出去的协议报文又转发回至该DC)的可能,第一网络边缘设备在向第二网络边缘设备发布路由协议报文之前,通过将第一网络连接属性标识添加到该路由协议报文中,该路由协议报文用于使第二网络边缘设备学习到该路由协议报文后,能够基于该路由协议报文中的内层IP地址(主机IP地址或网段IP地址)和第一连接属性标识序列确定出该路由协议报文的路由是否存在环路可能。其中,路由协议报文的路由指的是第一路由协议报文的转发路径,路由协议报文中的路由信息指的是该路由协议报文中携带的路由信息,如主机IP地址或网段的IP地址等。In the embodiment of the present application, in order to avoid the possibility of a packet forwarding loop (that is, a protocol packet sent from one DC is forwarded back to the DC), the first network edge device is in the second network. Before the routing device advertises the routing protocol packet, the edge device adds the first network connection attribute identifier to the routing protocol packet, where the routing protocol packet is used to enable the second network edge device to learn the routing protocol packet. The inner IP address (host IP address or network segment IP address) and the first connection attribute identification sequence in the routing protocol packet determine whether there is a loop in the route of the routing protocol packet. The routing protocol packet routing refers to the forwarding path of the first routing protocol packet. The routing information in the routing protocol packet refers to the routing information carried in the routing protocol packet, such as the host IP address or network segment. IP address, etc.
本申请实施例中,第一网络连接属性标识用于标识第一网络边缘设备和第二网络边缘设备是否属于同一DC,第一网络连接属性标识为第一标识或第二标识,第一标识用于标识第一网络边缘设备和第二网络边缘设备属于同一DC,第二标识用于标识第一网络边缘设备和第二网络边缘设备不属于同一DC。In the embodiment of the present application, the first network connection attribute identifier is used to identify whether the first network edge device and the second network edge device belong to the same DC, and the first network connection attribute identifier is the first identifier or the second identifier, and the first identifier is used by the first identifier. The first network edge device and the second network edge device are identified as belonging to the same DC, and the second identifier is used to identify that the first network edge device and the second network edge device do not belong to the same DC.
可以理解的是,上述第一标识和第二标识的具体形式可以根据需要设定。例如,第一标识可以为DCN,第二标识可以为DCI。再例如,第一标识可以为1,第二标识可以为0。It can be understood that the specific forms of the first identifier and the second identifier may be set as needed. For example, the first identifier may be a DCN and the second identifier may be a DCI. For another example, the first identifier may be 1 and the second identifier may be 0.
其中,第一连接属性标识序列为路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识所形成的序列,第一连接属性标识序列包括第一网络连接属性标识。The first connection attribute identification sequence is a sequence formed by the network connection attribute identifier sequentially added by each network edge device that the routing protocol message passes during the forwarding process, and the first connection attribute identification sequence includes the first network connection attribute identifier. .
也就是说,在路由协议报文的整个转发的过程中,每一个发送该路由协议报文的网络边缘设备在发送之前,都需要将本网络边缘设备与本网络边缘设备所要发送到的网络边缘设备之间的网络连接属性标识添加到该路由协议报文中,且在添加之前,如果该路由协议报文中已经存在至少一个网络连接属性标识时,本网络边缘设备所要添加的网络连接属性标识需要在已经存在的网络连接属性标识之后,即路由协议报文中的网络连接属性标识的先后顺序即代表了报文所经过的转发路径的信息。因此,第二网络边缘设备在接收到该路由协议报文时,能够根据路由协议报文中携带的连接属性标识序列确定出该路由协议报文的路由即转发路径是否存在环路可能。That is, in the process of forwarding the routing protocol packets, each network edge device that sends the routing protocol message needs to send the edge device of the network to the edge of the network to which the edge device of the network is to be sent before sending. The network connection attribute identifier of the device is added to the routing protocol packet. If at least one network connection attribute identifier already exists in the routing protocol packet, the network connection attribute identifier to be added by the network edge device is added before the addition. After the network connection attribute identifier is used, the sequence of the network connection attribute identifier in the routing protocol packet represents the forwarding path information of the packet. Therefore, when receiving the routing protocol packet, the second network edge device can determine, according to the connection attribute identification sequence carried in the routing protocol message, whether the route of the routing protocol packet, that is, the forwarding path, has a loop.
本申请实施例中,若第一网络边缘设备为边界网络边缘设备,第一网络边缘设备向第二网络边缘设备发布路由协议报文之前,将第一网络连接属性标识添加到该路由协议报文中,具体包括:In the embodiment of the present application, if the first network edge device is a border network edge device, the first network edge device adds the first network connection attribute identifier to the routing protocol packet before advertising the routing protocol packet to the second network edge device. Specifically, including:
第一网络边缘设备接收路由协议报文,其中,路由协议报文中携带有该路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识;The first network edge device receives the routing protocol packet, where the routing protocol packet carries the network connection attribute identifier sequentially added by each network edge device that the routing protocol packet passes during the forwarding process;
第一网络边缘设备根据路由协议报文中携带的依次添加的网络连接属性标识得到第二连接属性标识序列;The first network edge device obtains the second connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol packet;
第一网络边缘设备根据第二连接属性标识序列确定该路由协议报文的路由是否存在环路可能;Determining, by the first network edge device, whether a route of the routing protocol packet exists in a loop according to the second connection attribute identification sequence;
若第一网络边缘设备确定该路由协议报文的路由不存在环路可能,则第一网络边缘设备将第一网络连接属性标识添加到该路由协议报文中。If the first network edge device determines that there is no loop in the route of the routing protocol packet, the first network edge device adds the first network connection attribute identifier to the routing protocol packet.
本申请实施例中,若第一网络边缘设备确定路由协议报文的路由存在环路可能,该处理方法还包括:In the embodiment of the present application, if the first network edge device determines that the route of the routing protocol packet is in a loop, the processing method further includes:
第一网络边缘设备丢弃该路由协议报文。The first network edge device discards the routing protocol packet.
本申请实施例中,若第一网络边缘设备为边界网络边缘设备,则第一网络边缘设备在接收到该路由协议报文之后,也需要确定接收到的路由协议报文进行是否存在环路可能,在确定不存在环路可能后,再将第一网络连接属性标识添加到路由协议报文中,向第二网络边缘设备发送,如果确定存在环路可能,则直接丢弃该协议报文,不再继续进行转发。具体的,第一网络边缘设备可以根据接收到的路由协议报文携带的所有网络连接属性标识得到该协议报文对应的第二连接属性标识序列,基于该序列确定出接收到的路由协议报文的路由是否存在环路可能,只有在确定该路由协议报文不存在环路可能时,再对该路由协议报文进行进一步的处理。In the embodiment of the present application, if the first network edge device is a border network edge device, the first network edge device needs to determine whether the received routing protocol packet has a loop after receiving the routing protocol packet. After determining that there is no loop possibility, the first network connection attribute identifier is added to the routing protocol packet, and is sent to the second network edge device. If it is determined that there is a loop, the protocol packet is directly discarded. Continue forwarding. Specifically, the first network edge device may obtain the second connection attribute identification sequence corresponding to the protocol packet according to the identifier of all the network connection attributes carried in the received routing protocol packet, and determine the received routing protocol packet based on the sequence. If there is a loop in the route, the routing protocol packet is further processed only when it is determined that there is no loop in the routing protocol packet.
本申请实施例中,第一网络边缘设备根据第二连接属性标识序列确定路由协议报文的路由是否存在环路可能,包括:In the embodiment of the present application, the first network edge device determines, according to the second connection attribute identification sequence, whether a routing protocol packet has a loop, including:
若第二连接属性标识序列同时满足以下第一条件和第二条件,则确定路由协议报文的路由存在环路可能,若第二连接属性标识序列不同时满足第一条件和第二条件,则确定路由协议报文的路由不存在环路可能。If the second connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol packet is loopable, and if the second connection attribute identification sequence is different, the first condition and the second condition are met, The route of the routing protocol packet is determined to be loop-free.
其中,第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在第一标识,或者,路由协议报文中所携带路由的主机IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接 的IP地址。The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three; the second condition is that the connection attribute identification sequence is other than the first network connection attribute identifier and the last network connection attribute identifier. The first identifier is in the network connection attribute identifier, or the host IP address or the network segment IP address of the route carried in the routing protocol packet is the IP address connected to the non-boundary network edge device in the DC where the network edge device is located.
如图3所示的网络架构中,A 10若接收到B 10所发布的路由协议报文,则该路由协议报文中的内层IP地址为网段10的IP地址1.1.1.0/24,携带的网络连接属性标识只有一个即DCN。由于网络连接属性标识只有一个,不满足第一条件,因此,A 10确定所接收到的B 10发布的路由协议报文不存在环路可能。A 20若接收到B 20发布的内层IP地址为1.1.1.0/24、连接属性标识序列为DCN-DCI-DCN-DCN的路由协议报文,序列中的标识个数为四个,满足条件1,序列中除序列头的标识DCN和序列尾的标识DCN之外的标识中存在第一标识即DCN,满足条件2,则A 20确定所接收到的B 20发布的路由协议报文存在环路可能,A 20丢弃所接收到的该路由协议报文。 In the network architecture shown in FIG. 3, if the A 10 receives the routing protocol packet advertised by the B 10 , the inner IP address in the routing protocol packet is the IP address 1.1.1.0/24 of the network segment 10, The network connection attribute identifier carried is only one DCN. Because the network connection attribute identifier is only one, the first condition is not met. Therefore, A 10 determines that there is no loop possibility in the received routing protocol message advertised by B 10 . A 20 B 20 when receiving the inner IP address is published 1.1.1.0/24, connection attribute identifies the sequence of DCN-DCI-DCN-DCN routing protocol packets, the number of sequence identity is four, the condition 1. In the sequence, except for the identifier DCN of the sequence header and the identifier DCN of the sequence tail, there is a first identifier, that is, the DCN. If the condition 2 is satisfied, the A 20 determines that the received routing protocol message advertised by the B 20 exists. The path may be that A 20 discards the received routing protocol message.
本申请实施例中,第一网络连接属性标识被携带在路由协议报文的扩展的类型长度值TLV字段的值字段中。In the embodiment of the present application, the first network connection attribute identifier is carried in a value field of an extended type length value TLV field of the routing protocol message.
本申请实施例中,可以根据路由协议报文所基于的路由协议的具体报文格式,在路由协议报文中通过扩展TLV字段来携带网络连接属性标识,每个转发路由协议报文的网络边缘设备在转发路由协议报文之前,将本设备与路由协议报文所要发送的网络边缘设备的网络连接属性标识添加到一个扩展的TLV字段的值字段中。In the embodiment of the present application, the network connection attribute identifier may be carried in the routing protocol packet by using the extended TLV field according to the specific packet format of the routing protocol based on the routing protocol packet, and the network edge of each routing protocol packet is forwarded. Before forwarding the routing protocol packet, the device adds the network connection attribute identifier of the network edge device to be sent by the local device and the routing protocol packet to the value field of an extended TLV field.
例如,该路由协议报文为BCP EVPN报文。对于BGP EVPN协议,EVPN中定义了一种新的网络层可达信息((network layer reachability information,NLRI)即EVPN NLRI,EVPN NLRI定义了新的BGP EVPN路由类型,网络边缘设备可以通过携带发布以及学习BGP EVPN路由的BGP EVPN协议报文,实现同一DC和/或不同DC的网络边缘设备之间的IP地址学习和发布,以建立起两个网络边缘设备之间的隧道。For example, the routing protocol packet is a BCP EVPN packet. For the BGP EVPN protocol, a new network layer reachability information (NLRI) is defined in the EVPN. The EVPN NLRI defines a new BGP EVPN route type, and the network edge device can carry the release and The BGP EVPN protocol packets of the BGP EVPN route are learned to implement IP address learning and advertisement between the same DC and/or network edge devices of different DCs to establish a tunnel between two network edge devices.
图6示出了本申请实施例中BGP EVPN协议报文中的NLRI字段格式的部分内容示意图。如图6所示,该NLRI格式中除包括了路由区分符(route distinguisher,RD)、以太网网段标识(Ethernet segment identifier,ESI)、以太网标签标识(Ethernet tag ID)等固定格式字段信息外,还包括新扩展的TLV字段,即图6中所示的DCN Type字段,通过该TLV字段携带本网络边缘设备(发送协议报文的网络边缘设备)与其邻居网络边缘设备之间内的网络连接属性标识。FIG. 6 is a schematic diagram showing part of the content of the NLRI field format in the BGP EVPN protocol packet in the embodiment of the present application. As shown in FIG. 6, the NLRI format includes fixed format field information such as route distinguisher (RD), Ethernet segment identifier (ESI), and Ethernet tag ID. In addition, the newly extended TLV field, that is, the DCN Type field shown in FIG. 6, carries the network between the edge device of the network (the network edge device that sends the protocol packet) and the neighbor network edge device through the TLV field. Connection attribute ID.
图7示出了一个TLV字段的具体结构示意图。如图7所示,T字段(DCN类型)用于携带网络连接属性标识的类型,L字段(长度)用于表示V字段的总长度,V字段(DCN值)中携带具体的网络连接属性标识。例如,若第一网络边缘设备与第二网络边缘设备属于同一DC,则V字段的值可以为1,若第一网络边缘设备与第二网络边缘设备不属于同一DC,则V字段的值可以为0。FIG. 7 shows a schematic diagram of a specific structure of a TLV field. As shown in Figure 7, the T field (DCN type) is used to carry the type of the network connection attribute identifier, the L field (length) is used to indicate the total length of the V field, and the V field (DCN value) carries the specific network connection attribute identifier. . For example, if the first network edge device and the second network edge device belong to the same DC, the value of the V field may be 1. If the first network edge device and the second network edge device do not belong to the same DC, the value of the V field may be Is 0.
BGP EVPN协议报文每被发送一次,发送BGP EVPN协议报文的网络边缘设备则将其与接收该BGP EVPN协议报文的网络边缘设备之间的网络连接属性添加到新的扩展的TLV字段的V字段中。如图8所示,为一BGP EVPN协议报文被发送两次后,BGP EVPN协议报文的NLRI字段的示意图。Each time a BGP EVPN packet is sent, the network edge device that sends the BGP EVPN packet adds the network connection attribute between the network edge device and the network edge device that receives the BGP EVPN packet to the new extended TLV field. In the V field. As shown in Figure 8, the NLRI field of the BGP EVPN protocol packet is sent after the BGP EVPN protocol packet is sent twice.
本申请实施例中,将第一网络连接属性标识添加到路由协议报文之前,还包括:In the embodiment of the present application, before the first network connection attribute identifier is added to the routing protocol packet, the method further includes:
根据第一网络边缘设备中的网络连接关系属性表,确定第一网络连接属性标识;Determining, according to a network connection relationship attribute table in the first network edge device, a first network connection attribute identifier;
其中,网络连接关系属性表用于记录第一网络边缘设备与第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,网络连接关系属性表为基于第一网络边缘设备 的邻居关系配置的数据表,第一网络边缘设备的邻居网络边缘设备包括第二网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and the neighbor network edge device of the first network edge device, where the network connection relationship attribute table is a neighbor relationship configuration based on the first network edge device. The data table, the neighbor network edge device of the first network edge device includes a second network edge device.
可以理解的是,上述网络连接关系属性表可以是预配置在第一网络边缘设备中的,也可以是由第一网络边缘设备自动生成的,例如,可以是第一网络边缘设备在接收到其他网络边缘设备发送的路由协议报文后,根据路由协议报文中携带的其他网络边缘设备的IP地址,自动建立的第一网络边缘设备与其他网络边缘设备的网络连接关系属性表,该其他网络边缘设备即为第一网络边缘设备的邻居边缘设备。It can be understood that the foregoing network connection relationship attribute table may be pre-configured in the first network edge device, or may be automatically generated by the first network edge device, for example, the first network edge device may receive other After the routing protocol packet sent by the network edge device, the network connection relationship attribute table of the first network edge device and other network edge devices automatically established according to the IP address of the other network edge device carried in the routing protocol packet, the other network The edge device is the neighbor edge device of the first network edge device.
本申请实施例中,通过第一网络边缘设备中用于记录第一网络边缘设备与其邻居网络边缘设备的网络连接属性标识的数据表,使第一网络边缘设备在向其邻居网络边缘设备发送路由协议报文时,能够根据该数据表快速确定出对应的网络连接属性标识,并添加到路由协议报文中,从而提高了路由协议报文的处理效率。In the embodiment of the present application, the first network edge device sends a route to the neighbor network edge device by using a data table in the first network edge device for recording the network connection attribute identifier of the first network edge device and its neighbor network edge device. When the protocol packet is received, the corresponding network connection attribute identifier can be quickly determined according to the data table and added to the routing protocol packet, thereby improving the processing efficiency of the routing protocol packet.
本申请实施例中,网络连接关系属性表的每个表项中存储第一网络边缘设备和其一个邻居网络边缘设备的网络连接属性标识,与该一个邻居网络边缘设备的IP地址的对应关系。In the embodiment of the present application, each entry of the network connection relationship attribute table stores a correspondence between a network connection attribute identifier of the first network edge device and one of the neighbor network edge devices, and an IP address of the neighbor network edge device.
本申请实施例中,根据第一网络边缘设备中的网络连接关系属性表,确定第一网络连接属性标识,包括:In the embodiment of the present application, determining the first network connection attribute identifier according to the network connection relationship attribute table in the first network edge device, including:
根据第二网络边缘设备的IP地址,在网络连接关系属性表中查找与第二网络边缘设备的IP地址相匹配的第一网络连接属性标识。And searching, according to the IP address of the second network edge device, the first network connection attribute identifier that matches the IP address of the second network edge device in the network connection relationship attribute table.
本申请实施例中,可以直接以第一网络边缘设备的邻居网络边缘设备的IP地址作为索引,将邻居网络边缘设备的IP地址与该IP地址所对应的邻居网络边缘设备与第一网络边缘设备的网络连接属性关联存储在网络连接关系属性表。通过该方式,即可基于邻居网络边缘设备的IP地址快速查找到第一网络边缘设备与该邻居网络边缘设备的网络连接属性标识。In the embodiment of the present application, the IP address of the neighbor network edge device of the first network edge device may be directly used as an index, and the IP address of the neighbor network edge device and the neighbor network edge device corresponding to the IP address and the first network edge device may be used as an index. The network connection properties are associated with the network connection relationship property sheet. In this way, the network connection attribute identifier of the first network edge device and the neighbor network edge device can be quickly found based on the IP address of the neighbor network edge device.
作为一个具体示例,表1示出了图3所示的网络架构中,设备A 10上所配置的网络连接关系属性表的示意性结构。如表1中所示,A 10的邻居网络边缘设备为B 10、A 20和A 30,B 10与A 10属于同一DC,两者间的网络连接属性标识为1,A 20和A 10属于不同的DC,两者间的网络连接属性标识为0,A 30和A 10属于不同的DC,两者间的网络连接属性标识为0。B 10的IP地址为IP4,A 20的IP地址为IP2,A 30的IP地址为IP3。A 10向A 20发送路由协议报文时,即可基于A 20的IP地址,在表1中快速查找到对应的网络连接属性标识0。 As a specific example, Table 1 shows a schematic structure of a network connection relationship attribute table configured on the device A 10 in the network architecture shown in FIG. As shown in Table 1, the neighbor network edge device A 10 to B 10, A 20 and A 30, B 10 and A 10 the DC belong to the same, the network connection properties identified as one of the two, A 20 and A 10 belonging to For different DCs, the network connection attribute identifier between the two is 0, A 30 and A 10 belong to different DCs, and the network connection attribute identifier between the two is 0. The IP address of B 10 is IP4, the IP address of A 20 is IP2, and the IP address of A 30 is IP3. When A 10 sends a routing protocol packet to A 20 , it can quickly find the corresponding network connection attribute identifier 0 in Table 1 based on the IP address of A 20 .
表1Table 1
IP2IP2 00
IP3IP3 00
IP4 IP4 11
图9示出了本申请实施例提供的一种路由协议报文处理方法的流程示意图,该协议报文处理方法适用于DC的网络边缘设备,如适用于图1-图4中所示的任一网络边缘设备。以下用第一DC的第一网络边缘设备指代任一网络边缘设备。如图9所示,该路由协议报文处理方法主要可以包括:FIG. 9 is a schematic flowchart of a method for processing a routing protocol packet according to an embodiment of the present application. The protocol packet processing method is applicable to a network edge device of a DC, as applicable to any of the devices shown in FIG. A network edge device. The first network edge device using the first DC below refers to any network edge device. As shown in FIG. 9, the method for processing the routing protocol packet may include:
步骤S21:第一网络边缘设备接收第二网络边缘设备发布的路由协议报文。Step S21: The first network edge device receives the routing protocol packet advertised by the second network edge device.
其中,第一网络边缘设备为边界网络边缘设备,第二网络边缘设备为第二DC的边界网络边缘设备或第一DC的非边界网络边缘设备。The first network edge device is a border network edge device, and the second network edge device is a boundary network edge device of the second DC or a non-boundary network edge device of the first DC.
路由协议报文中携带有路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识,网络连接属性标识为第一标识或第二标识,第一标识用于标识发布路由协议报文的网络边缘设备和接收路由协议报文的网络边缘设备属于同一DC,第二标识用于标识发布路由协议报文的网络边缘设备和接收路由协议报文的网络边缘设备不属于同一DC。The routing protocol packet carries the network connection attribute identifier added by each network edge device that the routing protocol packet passes in the forwarding process. The network connection attribute identifier is the first identifier or the second identifier, and the first identifier is used to identify The network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet belong to the same DC. The second identifier is used to identify the network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet. The same DC.
可以理解的是,第一标识和第二标识的具体形式可以根据实际需要进行设定,只要两个标识不同,基于两种标识能够区分出两个网络边缘设备是否属于同一DC即可。It can be understood that the specific forms of the first identifier and the second identifier can be set according to actual needs. As long as the two identifiers are different, the two identifiers can distinguish whether the two network edge devices belong to the same DC.
步骤S22:第一网络边缘设备根据路由协议报文中携带的依次添加的网络连接属性标识得到连接属性标识序列。Step S22: The first network edge device obtains the connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol message.
步骤S23:第一网络边缘设备根据得到的连接属性标识序列确定路由协议报文的路由是否存在环路可能。Step S23: The first network edge device determines, according to the obtained connection attribute identification sequence, whether there is a loop of routing protocol packet routing.
本申请实施例中,每一个网络边缘设备(包括边界网络边缘设备和非边界网络边缘设备)在发送路由协议报文之前,都需要将本网络边缘设备与路由协议报文所要发送至对端网络边缘设备之间的网络连接关系属性标识添加到该路由协议报文中,以使后续接收到该路由协议报文的边界网络边缘设备能够基于路由协议报文的内层源IP地址和该路由协议报文中携带的所有网络连接属性标识对应的连接属性标识序列,确定出该路由协议报文是否存在环路的可能。In the embodiment of the present application, each network edge device (including the border network edge device and the non-boundary network edge device) needs to send the edge device and the routing protocol packet to the peer network before sending the routing protocol packet. The network connection relationship attribute identifier between the edge devices is added to the routing protocol packet, so that the border network edge device that subsequently receives the routing protocol packet can be based on the inner layer source IP address of the routing protocol packet and the routing protocol. The connection attribute identification sequence corresponding to all network connection attribute identifiers carried in the packet determines whether there is a loop in the routing protocol packet.
其中,上述每个网络边缘设备依次添加的网络连接属性标识被携带在路由协议报文的扩展的类型长度值TLV字段的值字段中。The network connection attribute identifier added by each of the network edge devices is carried in a value field of an extended type length value TLV field of the routing protocol packet.
本申请实施例中,若第一网络边缘设备根据得到的连接属性标识序列确定路由协议报文的路由不存在环路可能,该处理方法还可以包括:In the embodiment of the present application, if the first network edge device determines that the route of the routing protocol packet does not exist in the loop according to the obtained connection attribute identification sequence, the processing method may further include:
第一网络边缘设备将第一网络连接属性标识添加到路由协议报文中的上述依次添加的网络连接属性标识之后;The first network edge device adds the first network connection attribute identifier to the network connection attribute identifier added in the routing protocol packet.
第一网络边缘设备将添加后的路由协议报文发布至第三网络边缘设备。The first network edge device advertises the added routing protocol message to the third network edge device.
其中,第一网络连接属性标识为第一网络边缘设备与第三网络边缘设备之间的网络连接属性标识,第三网络边缘设备为第三DC的边界网络边缘设备或第一DC的非边界网络边缘设备即第三网络边缘设备可以是与第一网络边缘设备属于同一DC的非边界网络边缘设备,也可以是与第一网络边缘设备属于不同DC的边界网络边缘设备。The first network connection attribute identifier is a network connection attribute identifier between the first network edge device and the third network edge device, and the third network edge device is a third DC border network edge device or a first DC non-boundary network. The edge device, that is, the third network edge device, may be a non-border network edge device that belongs to the same DC as the first network edge device, or may be a border network edge device that belongs to a different DC from the first network edge device.
本申请实施例中,若第一网络边缘设备根据得到的连接属性标识序列确定路由协议报文的路由存在环路可能,该处理方法还可以包括:In the embodiment of the present application, if the first network edge device determines that the route of the routing protocol packet exists in a loop according to the obtained connection attribute identification sequence, the processing method may further include:
第一网络边缘设备丢弃该路由协议报文。The first network edge device discards the routing protocol packet.
本申请实施例中,如果第一网络边缘设备确定出路由协议报文存在环路可能时,则第一网络边缘设备将直接丢弃该路由协议报文,即不学习该协议报文中携带的路由信息并也不再继续转发该协议报文,以避免该协议报文的继续转发造成网络环路的出现。如果确定出不存在环路可能,则将相应的网络连接属性标识添加到报文中已存在的网络连接属性标识之后,继续转发该协议报文到其邻居网络边缘设备,继续网络中设备之间路 由的发布与学习的过程,为数据层面的数据转发提供基础。In the embodiment of the present application, if the first network edge device determines that there is a loop in the routing protocol packet, the first network edge device directly discards the routing protocol packet, that is, does not learn the route carried in the protocol packet. The information does not continue to be forwarded to avoid the occurrence of network loops due to the continued forwarding of the protocol packets. If it is determined that there is no loop possibility, the corresponding network connection attribute identifier is added to the existing network connection attribute identifier in the packet, and the protocol packet is further forwarded to the neighbor network edge device, and the devices in the network are continued. The process of routing and learning of routes provides the basis for data forwarding at the data level.
本申请实施例中,第一网络边缘设备根据连接属性标识序列确定第二路由协议报文的路由是否存在环路可能,具体包括:In the embodiment of the present application, the first network edge device determines, according to the connection attribute identifier sequence, whether a route of the second routing protocol packet exists in a loop, and specifically includes:
若连接属性标识序列同时满足以下第一条件和第二条件,则确定路由协议报文的路由存在环路可能,若连接属性标识序列不同时满足第一条件和第二条件,则确定路由协议报文的路由不存在环路可能,确定条件包括:If the connection attribute identification sequence satisfies the following first condition and the second condition, the route of the routing protocol packet is determined to be loopable. If the connection attribute identification sequence is different, the first condition and the second condition are met, and the routing protocol report is determined. There is no loop in the route of the text. The conditions for determining include:
第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three;
第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在第一标识,或者,路由协议报文中所携带路由的主机IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier is in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or the host IP of the route carried in the routing protocol packet The IP address of the address or network segment is the IP address of the non-boundary network edge device in the DC where the network edge device resides.
本申请实施例中,第一网络边缘设备根据第一条件和第二条件确定第二条件确定路由协议报文的路由是否存在环路可能的详细描述,具体可以参见前文中图5所对应的处理方法中,在第一网络边缘设备为边界网络边缘设备时,第一网络边缘设备根据第二连接属性标识序列确定路由协议报文的路由是否存在环路可能部分的描述,为了简单,在此不再赘述。In the embodiment of the present application, the first network edge device determines, according to the first condition and the second condition, the second condition to determine whether the route of the routing protocol packet has a detailed description of the loop. For details, refer to the processing corresponding to Figure 5 in the foregoing. In the method, when the first network edge device is a border network edge device, the first network edge device determines, according to the second connection attribute identification sequence, whether the route of the routing protocol message has a description of a possible part of the loop. Let me repeat.
本申请实施例中,第一网络边缘设备将第一网络连接属性标识添加到路由协议报文之前,还包括:In the embodiment of the present application, the first network edge device adds the first network connection attribute identifier to the routing protocol packet, and further includes:
第一网络边缘设备根据第一网络边缘设备中的网络连接关系属性表,确定第一网络连接属性标识。The first network edge device determines the first network connection attribute identifier according to the network connection relationship attribute table in the first network edge device.
本申请实施例中,网络连接关系属性表用于记录第一网络边缘设备与第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,网络连接关系属性表为基于第一网络边缘设备的邻居关系配置的数据表,第一网络边缘设备的邻居网络边缘设备包括第三网络边缘设备。In the embodiment of the present application, the network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and the neighbor network edge device of the first network edge device, where the network connection relationship attribute table is based on the first network edge device. The data table of the neighbor relationship configuration, the neighbor network edge device of the first network edge device includes a third network edge device.
本申请实施例中,网络连接关系属性表中存储第一网络边缘设备和第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与该一个邻居网络边缘设备的IP地址的对应关系。In the embodiment of the present application, the network connection relationship attribute table stores the network connection attribute identifier of the first network edge device and the neighbor network edge device of the first network edge device, and the corresponding relationship between the IP address of the neighbor network edge device.
相对应的,此时,第一网络边缘设备根据第一网络边缘设备中网络连接关系属性表,确定第一网络连接属性标识,具体可以包括:Correspondingly, the first network edge device determines the first network connection attribute identifier according to the network connection relationship attribute table in the first network edge device, which may include:
根据所述第三网络边缘设备的IP地址,在网络连接关系属性表中查找与第三网络边缘设备的IP地址相匹配的第一网络连接属性标识。And searching, according to the IP address of the third network edge device, a first network connection attribute identifier that matches an IP address of the third network edge device in the network connection relationship attribute table.
其中,第一网络边缘设备根据网络连接关系属性表确定第一网络连接属性标识的详细描述,具体可以参见前文中图5所对应的处理方法中的第一网络边缘设备根据网络连接关系属性表查找第一网络连接属性标识的相关部分的内容,为了简洁,在此不再赘述。The first network edge device determines a detailed description of the first network connection attribute identifier according to the network connection relationship attribute table. For details, refer to the first network edge device in the processing method corresponding to FIG. 5 in the foregoing method, searching according to the network connection relationship attribute table. The content of the relevant part of the first network connection attribute identifier is not described here for brevity.
需要说明的是,网络边缘设备在接收到路由协议报文时,都需要首先进行报文的封装头的解封装即删除接收到的路由协议报文中的封装头,如果根据解封装后的原始报文内容确定出报文的路由不存在环路可能,则学习原始报文中携带的路由信息后,需要将原始报文重新进行封装后再转发,由于每个网络边缘设备所添加的封装头的信息是不同的,因此,本申请实施例中,对于上述同一路由协议报文,不同网络边缘设备所发送出 的该协议报文中的并不是完全相同的,之所以将不同网络边缘设备接收和/或转发该协议报文统称为同一路由协议报文,是因为该协议报文中的原始报文的内容(不包括扩展的TLV字段)是相同的即转发的是同一原始报文。例如,对于上述路由协议报文,第一网络边缘设备将该报文发送至第二网络边缘设备时,封装头中的外层即封装头中的源IP地址即为第一网络边缘设备的IP地址,外层目的IP地址为第二网络边缘设备的IP地址,而第一网络边缘设备接收到该协议报文时,报文的外层目的地址为第一网络边缘设备的IP地址,源IP地址则是将该协议报文发送至第一网络边缘设备的其它网络边缘设备的IP地址。It should be noted that when receiving the routing protocol packet, the network edge device needs to first decapsulate the encapsulation header of the packet, that is, delete the encapsulation header in the received routing protocol packet, if the original encapsulation is based on the decapsulation The content of the packet indicates that there is no loop in the route of the packet. After learning the routing information carried in the original packet, the original packet needs to be encapsulated and then forwarded. The encapsulation header added by each network edge device is added. The information is different. Therefore, in the embodiment of the present application, the same routing protocol packet is not identical in the protocol packet sent by different network edge devices, and the different network edge devices are received. And/or forwarding the protocol packets are collectively referred to as the same routing protocol packet, because the content of the original packet in the protocol packet (excluding the extended TLV field) is the same, that is, the same original packet is forwarded. For example, for the foregoing routing protocol packet, when the first network edge device sends the packet to the second network edge device, the outer IP address of the encapsulation header in the encapsulation header is the IP address of the first network edge device. The IP address of the outer network destination device is the IP address of the second network edge device. When the first network edge device receives the protocol packet, the outer destination address of the packet is the IP address of the first network edge device. The address is the IP address of the other network edge device that sends the protocol message to the first network edge device.
对应于图5中所示的一种路由协议报文的处理方法,图10示出了本申请实施例提供的一种路由协议报文的处理装置100的框架结构示意图,该处理装置可应用于图1-图4所示的任一网络边缘设备。下文中以第一DC的第一网络边缘设备指代任一网络边缘设备,第一网络边缘设备为边界网络边缘设备或非边界网络边缘设备。处理装置100可以包括连接属性标识添加模块130。Corresponding to a processing method of a routing protocol packet shown in FIG. 5, FIG. 10 is a schematic structural diagram of a processing apparatus 100 of a routing protocol packet provided by an embodiment of the present application, where the processing apparatus is applicable to Any of the network edge devices shown in Figures 1 - 4. Hereinafter, the first network edge device of the first DC refers to any network edge device, and the first network edge device is a border network edge device or a non-boundary network edge device. The processing device 100 can include a connection attribute identification adding module 130.
连接属性标识添加模块130,用于在向第二网络边缘设备发布路由协议报文之前,将第一网络连接属性标识添加到该路由协议报文中,该路由协议报文用于使第二网络边缘设备学习到路由协议报文时,能够根据路由协议报文的第一连接属性标识序列确定该路由协议报文的路由是否存在环路可能;The connection attribute identifier adding module 130 is configured to add the first network connection attribute identifier to the routing protocol message before the routing protocol message is advertised to the second network edge device, where the routing protocol message is used to make the second network When the routing device learns the routing protocol packet, the edge device can determine whether the route of the routing protocol packet has a loop according to the first connection attribute identifier sequence of the routing protocol packet.
其中,第二网络边缘设备为边界网络边缘设备,第一网络连接属性标识为第一标识或第二标识,第一标识用于标识第一网络边缘设备和第二网络边缘设备属于同一DC,第二标识用于标识第一网络边缘设备和第二网络边缘设备不属于同一DC,第一连接属性标识序列为第一路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识所形成的序列,第一连接属性标识序列包括第一网络连接属性标识。The second network edge device is a border network edge device, and the first network connection attribute identifier is a first identifier or a second identifier, where the first identifier is used to identify that the first network edge device and the second network edge device belong to the same DC, The second identifier is used to identify that the first network edge device and the second network edge device do not belong to the same DC, and the first connection attribute identifier sequence is a network that is added by each network edge device that the first routing protocol packet passes in the forwarding process. A sequence formed by the connection attribute identifier, the first connection attribute identification sequence including the first network connection attribute identifier.
可以理解的是,根据本申请实施例的处理装置100,可对应于图5中所示的根据本申请实施例的路由协议报文的处理方法中的执行主体,处理装置100的连接属性标识添加模块130是为了实现图5所对应的本申请实施例的处理方法中的相应流程,连接属性标识添加模块130操作和/或功能的详细实现方式可参见图5所对应的本申请实施例的处理方法部分中的描述,为了简洁,在此不再赘述。It can be understood that the processing apparatus 100 according to the embodiment of the present application may correspond to the execution subject in the processing method of the routing protocol message according to the embodiment of the present application shown in FIG. 5, and the connection attribute identifier of the processing apparatus 100 is added. The module 130 is used to implement the corresponding process in the processing method of the embodiment of the present application corresponding to FIG. 5, and the detailed implementation of the operation and/or function of the connection attribute identifier adding module 130 can be referred to the processing of the embodiment of the present application corresponding to FIG. The description in the method section is not repeated here for brevity.
本申请一可选实施例中,若第一网络边缘设备为边界网络边缘设备,处理装置100还包括协议报文接收模块110和环路确定模块120,如图11所示。In an optional embodiment of the present application, if the first network edge device is a border network edge device, the processing device 100 further includes a protocol packet receiving module 110 and a loop determining module 120, as shown in FIG.
协议报文接收模块110,用于接收路由协议报文,其中,路由协议报文中携带有路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识。The protocol packet receiving module 110 is configured to receive a routing protocol packet, where the routing protocol packet carries a network connection attribute identifier sequentially added by each network edge device that the routing protocol packet passes during the forwarding process.
环路确定模块120,用于根据路由协议报文中携带的依次添加的网络连接属性标识得到第二连接属性标识序列,根据第二连接属性标识序列确定第一路由协议报文的路由是否存在环路可能。The loop determining module 120 is configured to obtain a second connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol message, and determine, according to the second connection attribute identification sequence, whether the route of the first routing protocol message exists. The road may be.
连接属性标识添加模块130,具体用于在环路确定模块确定路由协议报文的路由不存在环路可能时,则将第一网络连接属性标识添加到该路由协议报文中。The connection attribute identifier adding module 130 is configured to add the first network connection attribute identifier to the routing protocol message when the loop determining module determines that the route of the routing protocol message does not have a loop.
本申请一可选实施例中,处理装置100还可以包括报文丢弃模块140,如图12所示。In an optional embodiment of the present application, the processing apparatus 100 may further include a packet discarding module 140, as shown in FIG.
报文丢弃模块140,用于在环路确定模块确定路由协议报文的路由存在环路可能时,丢弃该路由协议报文。The packet discarding module 140 is configured to discard the routing protocol packet when the loop determining module determines that the route of the routing protocol packet exists in a loop.
本申请一可选实施例中,环路确定模块120具体用于:In an optional embodiment of the present application, the loop determining module 120 is specifically configured to:
在第二连接属性标识序列同时满足以下第一条件和第二条件,则确定该协议报文的路由存在环路可能,在第二连接属性标识序列不同时满足第一条件和第二条件时,则确定该协议报文的路由不存在环路可能。When the second connection attribute identification sequence satisfies the following first condition and the second condition, the route of the protocol packet is determined to be loopable, and when the second connection attribute identification sequence is different, the first condition and the second condition are met. Then, it is determined that there is no loop in the route of the protocol packet.
其中,第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个,第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在第一标识,或者,路由协议报文中所携带路由的主机IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three, and the second condition is that the connection attribute identification sequence is other than the first network connection attribute identifier and the last network connection attribute identifier. The first identifier is in the network connection attribute identifier, or the host IP address or the network segment IP address of the route carried in the routing protocol packet is the IP address connected to the non-boundary network edge device in the DC where the network edge device is located.
本申请一可选实施例中,第一网络连接属性标识被携带在路由协议报文的扩展的TLV字段的值字段中。In an optional embodiment of the present application, the first network connection attribute identifier is carried in a value field of an extended TLV field of the routing protocol message.
本申请一可选实施例中,连接属性标识添加模块130,还用于在将第一网络连接属性标识添加到路由协议报文之前,根据第一网络边缘设备中的网络连接关系属性表,确定第一网络连接属性标识。In an optional embodiment of the present application, the connection attribute identifier adding module 130 is further configured to determine, according to the network connection relationship attribute table in the first network edge device, before adding the first network connection attribute identifier to the routing protocol message. The first network connection attribute identifier.
其中,网络连接关系属性表用于记录第一网络边缘设备与第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,网络连接关系属性表为基于第一网络边缘设备的邻居关系配置的数据表,第一网络边缘设备的邻居网络边缘设备包括第二网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and the neighbor network edge device of the first network edge device, where the network connection relationship attribute table is a neighbor relationship configuration based on the first network edge device. The data table, the neighbor network edge device of the first network edge device includes a second network edge device.
本申请一可选实施例中,网络连接关系属性表中存储第一网络边缘设备和第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与该一个邻居网络边缘设备的IP地址的对应关系。In an optional embodiment of the present application, the network connection relationship attribute table stores a network connection attribute identifier of the first network edge device and a neighbor network edge device of the first network edge device, and an IP address of the neighbor network edge device Correspondence relationship.
对应的,连接属性标识添加模块130在根据网络连接关系属性表,确定第一网络连接属性标识时,具体用于:Correspondingly, when the connection attribute identifier adding module 130 determines the first network connection attribute identifier according to the network connection relationship attribute table, specifically:
根据第二网络边缘设备的IP地址,在第网络连接关系属性表中查找与第二网络边缘设备的IP地址相匹配的第一网络连接属性标识。And searching, according to the IP address of the second network edge device, the first network connection attribute identifier that matches the IP address of the second network edge device in the network connection relationship attribute table.
可以理解的是,本申请实施例的处理装置100,可对应于图5或基于图5所示的根据本申请实施例的路由协议报文的处理方法中的执行主体,处理装置100的各模块的操作和/或功能是为了实现图5或基于图5所对应的本申请实施例的处理方法中的相应流程,处理装置100的各模块的操作和/或功能的详细实现方式可参见前文中对应的处理方法部分中的描述,为了简洁,在此不再赘述。It can be understood that the processing apparatus 100 of the embodiment of the present application may correspond to the execution subject in the processing method of the routing protocol message according to the embodiment of the present application shown in FIG. 5 or the module of the processing apparatus 100. The operation and/or function is to implement the corresponding flow in the processing method of the embodiment of the present application corresponding to FIG. 5 or FIG. 5, and the detailed implementation manner of the operation and/or function of each module of the processing apparatus 100 can be referred to the foregoing. The description in the corresponding processing method section will not be repeated here for brevity.
对应于图9中所示的一种路由协议报文的处理方法,图13示出了本申请实施例的一种路由协议报文的处理装置200的框架结构示意图,该处理装置200可应用于图1-图4所示的任一网络边缘设备。下文中以处理装置以第一DC的第一网络边缘设备指代任一网络边缘设备,第一网络边缘设备为边界网络边缘设备。处理装置200包括协议报文接收模块210和环路确定模块220。Corresponding to the processing method of a routing protocol packet shown in FIG. 9, FIG. 13 is a schematic structural diagram of a processing apparatus 200 of a routing protocol packet according to an embodiment of the present application. The processing apparatus 200 is applicable to the processing apparatus 200. Any of the network edge devices shown in Figures 1 - 4. Hereinafter, the first network edge device of the first DC is referred to by the processing device as any boundary network device, and the first network edge device is a border network edge device. The processing device 200 includes a protocol message receiving module 210 and a loop determining module 220.
协议报文接收模块210,用于接收第二网络边缘设备发布的路由协议报文。The protocol packet receiving module 210 is configured to receive a routing protocol packet advertised by the second network edge device.
其中,第二网络边缘设备为边界网络边缘设备或非边界网络边缘设备,路由协议报文中携带有路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识,网络连接属性标识为第一标识或第二标识,第一标识用于标识发布路由协 议报文的网络边缘设备和接收路由协议报文的网络边缘设备属于同一DC,第二标识用于标识发布路由协议报文的网络边缘设备和接收路由协议报文的网络边缘设备不属于同一DC。The second network edge device is a border network edge device or a non-border network edge device, and the routing protocol packet carries the network connection attribute identifier added by each network edge device that the routing protocol packet passes in the forwarding process. The network connection attribute identifier is a first identifier or a second identifier, and the first identifier is used to identify that the network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet belong to the same DC, and the second identifier is used to identify the advertisement route. The network edge device of the protocol packet and the network edge device that receives the routing protocol packet do not belong to the same DC.
环路确定模块220,用于根据路由协议报文中携带的依次添加的网络连接属性标识得到连接属性标识序列,根据连接属性标识序列确定路由协议报文的路由是否存在环路可能。The loop determining module 220 is configured to obtain a connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol packet, and determine whether a route of the routing protocol packet has a loop according to the connection attribute identification sequence.
可以理解的是,根据本申请实施例的处理装置200,可对应于图9中所示的根据本申请实施例的路由协议报文的处理方法中的执行主体,处理装置200的协议报文接收模块210和环路确定模块220是为了实现图9所对应的本申请实施例的处理方法中的相应流程,协议报文接收模块210和环路确定模块220的操作和/或功能的详细实现方式可参见图9所对应的本申请实施例的处理方法部分中的描述,为了简洁,在此不再赘述。It can be understood that the processing apparatus 200 according to the embodiment of the present application may correspond to the execution body in the processing method of the routing protocol message according to the embodiment of the present application shown in FIG. 9, and the protocol message receiving of the processing apparatus 200 The module 210 and the loop determining module 220 are specific implementations of the operations and/or functions of the protocol packet receiving module 210 and the loop determining module 220 in order to implement the corresponding processes in the processing method of the embodiment of the present application corresponding to FIG. 9 . The description in the processing method part of the embodiment of the present application corresponding to FIG. 9 is omitted for brevity.
本申请一可选实施例中,环路确定模块220具体用于:在连接属性标识序列同时满足以下第一条件和第二条件时,则确定路由协议报文的路由存在环路可能,在第二连接属性标识序列不同时满足第一条件和第二条件,则确定路由协议报文的路由不存在环路可能。In an optional embodiment of the present application, the loop determining module 220 is specifically configured to: when the connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol packet exists in a loop may be If the second connection attribute identification sequence does not meet the first condition and the second condition, it is determined that there is no loop in the route of the routing protocol packet.
第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个。The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three.
第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在第一标识,或者,路由协议报文中所携带路由的主机IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier is in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or the host IP of the route carried in the routing protocol packet The IP address of the address or network segment is the IP address of the non-boundary network edge device in the DC where the network edge device resides.
本申请一可选实施例中,处理装置200还包括连接属性标识添加模块230和协议报文发送模块240,如图14所示。In an optional embodiment of the present application, the processing apparatus 200 further includes a connection attribute identifier adding module 230 and a protocol packet sending module 240, as shown in FIG.
连接属性标识添加模块230,用于在根据连接属性标识序列确定路由协议报文的路由不存在环路可能时,将第一网络连接属性标识添加到路由协议报文中的依次添加的网络连接属性标识之后。The connection attribute identifier adding module 230 is configured to add the first network connection attribute identifier to the sequentially added network connection attribute in the routing protocol packet when the route of the routing protocol packet is determined according to the connection attribute identification sequence. After the logo.
协议报文发送模块240,用于将添加后的路由协议报文发布至第三网络边缘设备。The protocol packet sending module 240 is configured to post the added routing protocol packet to the third network edge device.
其中,第一网络连接属性标识为第一网络边缘设备与第三网络边缘设备之间的网络连接属性标识,第三网络边缘设备为边界网络边缘设备或非边界网络边缘设备。The first network connection attribute identifier is a network connection attribute identifier between the first network edge device and the third network edge device, and the third network edge device is a border network edge device or a non-boundary network edge device.
本申请一可选实施例中,连接属性标识添加模块230,还用于在将第一网络连接属性标识添加到路由协议报文之前,根据第一网络边界设备中的网络连接关系属性表,确定第一网络连接属性标识。In an optional embodiment of the present application, the connection attribute identifier adding module 230 is further configured to determine, according to the network connection relationship attribute table in the first network border device, before adding the first network connection attribute identifier to the routing protocol message. The first network connection attribute identifier.
其中,网络连接关系属性表用于记录第一网络边缘设备与第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,网络连接关系属性表为基于第一网络边缘设备的邻居关系配置的数据表,第一网络边缘设备的邻居网络边缘设备包括第三网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and the neighbor network edge device of the first network edge device, where the network connection relationship attribute table is a neighbor relationship configuration based on the first network edge device. The data table, the neighbor network edge device of the first network edge device includes a third network edge device.
本申请一可选实施例中,网络连接关系属性表中存储第一网络边缘设备和第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与该一个邻居网络边缘设备的IP地址的对应关系。In an optional embodiment of the present application, the network connection relationship attribute table stores a network connection attribute identifier of the first network edge device and a neighbor network edge device of the first network edge device, and an IP address of the neighbor network edge device Correspondence relationship.
对应的,连接属性标识添加模块230,具体用于根据第三网络边缘设备的IP地址, 在网络连接关系属性表中查找与第三网络边缘设备的IP地址相匹配的第一网络连接属性标识。Correspondingly, the connection attribute identifier adding module 230 is configured to search, in the network connection relationship attribute table, the first network connection attribute identifier that matches the IP address of the third network edge device according to the IP address of the third network edge device.
本申请一可选实施例中,处理装置200还包括报文丢弃模块250,如图15所示。In an optional embodiment of the present application, the processing apparatus 200 further includes a packet discarding module 250, as shown in FIG.
报文丢弃模块250,用于在根据连接属性标识序列确定路由协议报文的路由存在环路可能时,丢弃该路由协议报文。The packet discarding module 250 is configured to discard the routing protocol packet when the route of the routing protocol packet is determined according to the connection attribute identifier sequence.
本申请一可选实施例中,每个网络边缘设备依次添加的网络连接属性标识被携带在路由协议报文的扩展的TLV字段的值字段中。In an optional embodiment of the present application, the network connection attribute identifier added by each network edge device is carried in a value field of an extended TLV field of a routing protocol message.
可以理解的是,本申请实施例的处理装置200,可对应于图9或基于图9所示的根据本申请实施例的路由协议报文的处理方法中的执行主体,处理装置200的各模块的操作和/或功能是为了实现图9或基于图9所对应的本申请实施例的处理方法中的相应流程,处理装置200的各模块的操作和/或功能的详细实现方式可参见前文中对应的处理方法部分中的描述,为了简洁,在此不再赘述。It can be understood that the processing device 200 of the embodiment of the present application may correspond to the execution body in the processing method of the routing protocol message according to the embodiment of the present application shown in FIG. 9 or the module of the processing device 200. The operation and/or function is to implement the corresponding process in the processing method of the embodiment of the present application corresponding to FIG. 9 or FIG. 9 , and the detailed implementation of the operation and/or function of each module of the processing device 200 can be referred to the foregoing. The description in the corresponding processing method section will not be repeated here for brevity.
图16是根据本申请一实施例的网络边缘设备300的示意性框图。如图16所示,网络边缘设备300包括处理器301、存储器302和通信接口303,存储器302用于存储可执行的计算机程序代码,处理器301通过读取存储器302中存储的的计算机程序代码来运行与计算机程序代码对应的计算机程序,以用于执行本申请任一实施例的路由协议报文的处理方法。通信接口303用于与外部设备通信,网络边缘设备300还可以包括总线304,总线304用于连接处理器301、存储器302和通信接口303,使处理器301、存储器302和通信接口303通过总线304进行相互通信。FIG. 16 is a schematic block diagram of a network edge device 300 in accordance with an embodiment of the present application. As shown in FIG. 16, the network edge device 300 includes a processor 301, a memory 302 for storing executable computer program code, and a communication interface 303 for reading the computer program code stored in the memory 302. The computer program corresponding to the computer program code is used to execute the processing method of the routing protocol message according to any embodiment of the present application. The communication interface 303 is configured to communicate with an external device, and the network edge device 300 can further include a bus 304 for connecting the processor 301, the memory 302, and the communication interface 303 such that the processor 301, the memory 302, and the communication interface 303 pass through the bus 304. Communicate with each other.
根据本申请实施例的网络边缘设备300,可对应于根据本申请实施例的路由协议报文的处理方法的执行主体,并且网络边缘设备300中的各个模块的操作和/或功能分别为了实现本申请各实施例中的处理方法的相应流程,为了简洁,在此不再赘述。The network edge device 300 according to the embodiment of the present application may correspond to the execution body of the processing method of the routing protocol message according to the embodiment of the present application, and the operations and/or functions of the respective modules in the network edge device 300 are respectively implemented to implement the present The corresponding processes of the processing methods in the respective embodiments are not described herein for the sake of brevity.
本申请实施例还提供了一种计算机可读存储介质,该可读存储介质中存储有计算机指令,当计算机指令在计算机上运行时,使得计算机执行本申请任一实施例的路由协议报文的处理方法。The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer protocol, and when the computer instruction is run on the computer, causes the computer to execute the routing protocol message of any embodiment of the present application. Approach.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质,例如固态硬盘(solid state disk,SSD)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium such as a solid state disk (SSD) or the like.

Claims (28)

  1. 一种路由协议报文的处理方法,其特征在于,所述方法应用于第一数据中心DC的第一网络边缘设备中,所述第一网络边缘设备为边界网络边缘设备或非边界网络边缘设备,所述方法包括:A method for processing a routing protocol packet, wherein the method is applied to a first network edge device of a first data center DC, where the first network edge device is a border network edge device or a non-boundary network edge device. , the method includes:
    所述第一网络边缘设备向第二网络边缘设备发布路由协议报文之前,将第一网络连接属性标识添加到所述路由协议报文中,所述路由协议报文用于使所述第二网络边缘设备学习到所述路由协议报文后,根据所述路由协议报文的第一连接属性标识序列确定所述路由协议报文的路由是否存在环路可能;Before the first network edge device advertises the routing protocol packet to the second network edge device, the first network connection attribute identifier is added to the routing protocol packet, and the routing protocol packet is used to enable the second After learning the routing protocol packet, the network edge device determines, according to the first connection attribute identifier sequence of the routing protocol packet, whether a route of the routing protocol packet exists in a loop;
    其中,所述第二网络边缘设备为边界网络边缘设备,所述第一网络连接属性标识为第一标识或第二标识,所述第一标识用于标识所述第一网络边缘设备和所述第二网络边缘设备属于同一DC,所述第二标识用于标识所述第一网络边缘设备和所述第二网络边缘设备不属于同一DC,所述第一连接属性标识序列为所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识所形成的序列,所述第一连接属性标识序列包括所述第一网络连接属性标识。The second network edge device is a border network edge device, and the first network connection attribute identifier is a first identifier or a second identifier, where the first identifier is used to identify the first network edge device and the The second network edge device belongs to the same DC, and the second identifier is used to identify that the first network edge device and the second network edge device do not belong to the same DC, and the first connection attribute identification sequence is the routing protocol. And the sequence formed by the network connection attribute identifier added by each network edge device that is passed by the packet in the forwarding process, where the first connection attribute identification sequence includes the first network connection attribute identifier.
  2. 根据权利要求1所述的方法,其特征在于,若所述第一网络边缘设备为边界网络边缘设备,所述第一网络边缘设备向第二网络边缘设备发布第一路由协议报文之前,将第一网络连接属性标识添加到所述路由协议报文中,包括:The method according to claim 1, wherein if the first network edge device is a border network edge device, the first network edge device sends a first routing protocol message to the second network edge device, The first network connection attribute identifier is added to the routing protocol packet, including:
    所述第一网络边缘设备接收所述路由协议报文,其中,所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识;The first network edge device receives the routing protocol packet, where the routing protocol packet carries the network connection attribute added by each network edge device that the routing protocol packet passes in the forwarding process. Identification
    所述第一网络边缘设备根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到第二连接属性标识序列;所述第二连接属性标识序列不包括所述第一网络连接属性标识;The first network edge device obtains a second connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol message; the second connection attribute identification sequence does not include the first network connection Attribute identifier
    所述第一网络边缘设备根据所述第二连接属性标识序列确定所述路由协议报文的路由是否存在环路可能;Determining, by the first network edge device, whether a route of the routing protocol packet exists in a loop according to the second connection attribute identifier sequence;
    若所述第一网络边缘设备确定所述路由协议报文的路由不存在环路可能,则所述第一网络边缘设备将所述第一网络连接属性标识添加到所述路由协议报文中。And if the first network edge device determines that there is no loop in the route of the routing protocol packet, the first network edge device adds the first network connection attribute identifier to the routing protocol packet.
  3. 根据权利要求2所述方法,其特征在于,若所述第一网络边缘设备确定所述路由协议报文的路由存在环路可能,所述方法还包括:The method according to claim 2, wherein the method further comprises: if the first network edge device determines that a route of the routing protocol message exists in a loop, the method further includes:
    所述第一网络边缘设备丢弃所述路由协议报文。The first network edge device discards the routing protocol packet.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一网络边缘设备根据所述第二连接属性标识序列确定所述路由协议报文的路由是否存在环路可能,包括:The method according to claim 2 or 3, wherein the first network edge device determines, according to the second connection attribute identification sequence, whether the route of the routing protocol message has a loop, including:
    若所述第二连接属性标识序列同时满足以下第一条件和第二条件,则确定所述路由协议报文的路由存在环路可能,若所述第二连接属性标识序列不同时满足所述第一条件和第二条件,则确定所述路由协议报文的路由不存在环路可能;If the second connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol packet is loopable, and if the second connection attribute identification sequence is different, the first a condition and a second condition, determining that there is no loop in the route of the routing protocol packet;
    所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three;
    所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所 携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier exists in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or is carried in the routing protocol packet. The routed host network protocol IP address or network segment IP address is the IP address to which the non-boundary network edge device in the DC where the network edge device resides.
  5. 根据权利要求1-4中任意一项所述的方法,其特征在于:所述第一网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。The method according to any one of claims 1 to 4, wherein the first network connection attribute identifier is carried in a value field of an extended type length value TLV field of the routing protocol message.
  6. 根据权利要求1-5中任意一项所述的方法,其特征在于,所述将第一网络连接属性标识添加到所述路由协议报文中之前,还包括:The method according to any one of claims 1-5, wherein before the adding the first network connection attribute identifier to the routing protocol message, the method further includes:
    根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识;Determining, according to the network connection relationship attribute table in the first network edge device, the first network connection attribute identifier;
    其中,所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述邻居网络边缘设备包括所述第二网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and a neighbor network edge device of the first network edge device, where the neighbor network edge device includes the Two network edge devices.
  7. 根据权利要求6所述的方法,其特征在于,所述网络连接关系属性表的每个表项中存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与所述一个邻居网络边缘设备的IP地址的对应关系;The method according to claim 6, wherein each of the entries of the network connection relationship attribute table stores a network of the first network edge device and a neighbor network edge device of the first network edge device. Corresponding relationship between the connection attribute identifier and the IP address of the neighbor network edge device;
    所述根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识,包括:Determining, according to the network connection relationship attribute table in the first network edge device, the first network connection attribute identifier, including:
    在所述网络连接关系属性表中查找与所述第二网络边缘设备的IP地址相匹配的第一网络连接属性标识。And searching, in the network connection relationship attribute table, a first network connection attribute identifier that matches an IP address of the second network edge device.
  8. 一种路由协议报文的处理方法,其特征在于,所述方法应用于第一数据中心DC的第一网络边缘设备上,所述第一网络边缘设备为边界网络边缘设备,所述方法包括:A method for processing a routing protocol packet, the method is applied to a first network edge device of a first data center DC, and the first network edge device is a border network edge device, and the method includes:
    所述第一网络边缘设备接收第二网络边缘设备发布的路由协议报文,其中,所述第二网络边缘设备为第二DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备;The first network edge device receives a routing protocol message advertised by the second network edge device, where the second network edge device is a border network edge device of the second DC or the non-boundary network edge device of the first DC ;
    其中,所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识,所述网络连接属性标识为第一标识或第二标识,所述第一标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备属于同一DC,所述第二标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备不属于同一DC;The routing protocol packet carries the network connection attribute identifier that is added by each network edge device that the routing protocol packet passes in the forwarding process, and the network connection attribute identifier is the first identifier or the second identifier. And the first identifier is used to identify that the network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet belong to the same DC, and the second identifier is used to identify the routing protocol. The network edge device of the packet and the network edge device receiving the routing protocol packet do not belong to the same DC;
    所述第一网络边缘设备根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到连接属性标识序列;The first network edge device obtains a connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol message;
    所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由是否存在环路可能。The first network edge device determines, according to the connection attribute identification sequence, whether a route of the routing protocol packet has a loop possibility.
  9. 根据权利要求8所述的方法,其特征在于,所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由是否存在环路可能,包括:The method according to claim 8, wherein the first network edge device determines, according to the connection attribute identification sequence, whether a route of the routing protocol message exists in a loop, including:
    若所述连接属性标识序列同时满足以下第一条件和第二条件,则确定所述路由协议报文的路由存在环路可能,若所述连接属性标识序列不同时满足所述第一条件和所述第二条件,则确定所述路由协议报文的路由不存在环路可能:If the connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol packet is loopable, if the connection attribute identification sequence is different, the first condition and the In the second condition, it is determined that there is no loop in the route of the routing protocol packet:
    所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three;
    所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所 携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier exists in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or is carried in the routing protocol packet. The routed host network protocol IP address or network segment IP address is the IP address to which the non-boundary network edge device in the DC where the network edge device resides.
  10. 根据权利要求8或9所述的方法,其特征在于,若所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由不存在环路可能,所述方法还包括:The method according to claim 8 or 9, wherein if the first network edge device determines that the route of the routing protocol message does not have a loop according to the connection attribute identification sequence, the method further includes :
    所述第一网络边缘设备将第一网络连接属性标识添加到所述路由协议报文中的所述依次添加的网络连接属性标识之后;Adding, by the first network edge device, the first network connection attribute identifier to the sequentially added network connection attribute identifier in the routing protocol packet;
    所述第一网络边缘设备将添加后的所述路由协议报文发布至第三网络边缘设备;The first network edge device issues the added routing protocol message to the third network edge device;
    其中,所述第一网络连接属性标识为所述第一网络边缘设备与所述第三网络边缘设备之间的网络连接属性标识,所述第三网络边缘设备为第三DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备。The first network connection attribute identifier is a network connection attribute identifier between the first network edge device and the third network edge device, and the third network edge device is a third DC border network edge device. Or the non-boundary network edge device of the first DC.
  11. 根据权利要求10所述的方法,其特征在于,所述第一网络边缘设备将第一网络连接属性标识添加到所述路由协议报文之前,还包括:The method according to claim 10, wherein the first network edge device adds the first network connection attribute identifier to the routing protocol message, and further includes:
    所述第一网络边缘设备根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识;Determining, by the first network edge device, the first network connection attribute identifier according to the network connection relationship attribute table in the first network edge device;
    其中,所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述邻居网络边缘设备包括所述第三网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and a neighbor network edge device of the first network edge device, where the neighbor network edge device includes the Three network edge devices.
  12. 根据权利要求11所述的方法,其特征在于,所述网络连接关系属性表的每个表项存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与所述一个邻居网络边缘设备的IP地址的对应关系;The method according to claim 11, wherein each entry of the network connection relationship attribute table stores a network connection of the first network edge device and a neighbor network edge device of the first network edge device. Attribute identifier, a correspondence relationship with an IP address of the neighbor network edge device;
    所述第一网络边缘设备根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识,包括:Determining, by the first network edge device, the first network connection attribute identifier according to the network connection relationship attribute table in the first network edge device, including:
    所述第一网络边缘设备在所述网络连接关系属性表中查找与所述第三网络边缘设备的IP地址相对应的第一网络连接属性标识。The first network edge device searches, in the network connection relationship attribute table, a first network connection attribute identifier corresponding to an IP address of the third network edge device.
  13. 根据权利要求8-12中任意一项所述的方法,其特征在于,若所述第一网络边缘设备根据所述连接属性标识序列确定所述路由协议报文的路由存在环路可能,所述方法还包括:The method according to any one of claims 8 to 12, wherein if the first network edge device determines, according to the connection attribute identification sequence, that a route of the routing protocol message exists, the loop may be The method also includes:
    所述第一网络边缘设备丢弃所述路由协议报文。The first network edge device discards the routing protocol packet.
  14. 根据权利要求8-13中任意一项所述的方法,其特征在于,所述每个网络边缘设备依次添加的网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。The method according to any one of claims 8 to 13, wherein the network connection attribute identifier sequentially added by each network edge device is carried in an extended type length value TLV field of the routing protocol message. In the value field.
  15. 一种路由协议报文的处理装置,其特征在于,所述处理装置应用于第一数据中心DC的第一网络边缘设备中,所述第一网络边缘设备为边界网络边缘设备或非边界网络边缘设备,所述处理装置包括:A processing device for routing protocol packets, wherein the processing device is applied to a first network edge device of a first data center DC, where the first network edge device is a border network edge device or a non-boundary network edge The device, the processing device includes:
    连接属性标识添加模块,用于在向第二网络边缘设备发布路由协议报文之前,将第一网络连接属性标识添加到所述路由协议报文中,所述路由协议报文用于使所述第二网络边缘设备学习到所述路由协议报文后,根据所述路由协议报文的第一连接属性标识序列确定所述路由协议报文的路由是否存在环路可能;a connection attribute identifier adding module, configured to add a first network connection attribute identifier to the routing protocol packet before the routing protocol packet is advertised to the second network edge device, where the routing protocol packet is used to enable the After learning the routing protocol packet, the second network edge device determines, according to the first connection attribute identifier sequence of the routing protocol packet, whether a route of the routing protocol packet exists in a loop;
    其中,所述第二网络边缘设备为边界网络边缘设备,所述第一网络连接属性标识为第一标识或第二标识,所述第一标识用于标识所述第一网络边缘设备和所述第二网络边缘设备属于同一DC,所述第二标识用于标识所述第一网络边缘设备和所述第二网络边缘设备不属于同一DC,所述第一连接属性标识序列为所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识所形成的序列,所述第一连接属性标识序列包括所述第一网络连接属性标识。The second network edge device is a border network edge device, and the first network connection attribute identifier is a first identifier or a second identifier, where the first identifier is used to identify the first network edge device and the The second network edge device belongs to the same DC, and the second identifier is used to identify that the first network edge device and the second network edge device do not belong to the same DC, and the first connection attribute identification sequence is the routing protocol. And the sequence formed by the network connection attribute identifier added by each network edge device that is passed by the packet in the forwarding process, where the first connection attribute identification sequence includes the first network connection attribute identifier.
  16. 根据权利要求15所述的装置,其特征在于,若所述第一网络边缘设备为边界网络边缘设备,所述装置还包括:The device according to claim 15, wherein if the first network edge device is a border network edge device, the device further includes:
    协议报文接收模块,用于接收所述路由协议报文,其中,所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识;The protocol packet receiving module is configured to receive the routing protocol packet, where the routing protocol packet carries a network connection sequentially added by each network edge device that the routing protocol packet passes during the forwarding process. Attribute identifier
    环路确定模块,用于根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到第二连接属性标识序列,根据所述第二连接属性标识序列确定所述路由协议报文的路由是否存在环路可能;a loop determining module, configured to obtain a second connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol packet, and determine the routing protocol packet according to the second connection attribute identification sequence Whether there is a loop in the route;
    所述连接属性标识添加模块,具体用于在所述环路确定模块确定所述路由协议报文的路由不存在环路可能时,将所述第一网络连接属性标识添加到所述路由协议报文中。The connection attribute identifier adding module is specifically configured to add the first network connection attribute identifier to the routing protocol report when the loop determining module determines that the route of the routing protocol packet does not exist in a loop. In the text.
  17. 根据权利要求16所述装置,其特征在于,所述装置还包括:The device according to claim 16, wherein the device further comprises:
    报文丢弃模块,用于在所述环路确定模块确定所述路由协议报文的路由存在环路可能时,丢弃所述路由协议报文。The packet discarding module is configured to discard the routing protocol packet when the loop determining module determines that the route of the routing protocol packet exists in a loop.
  18. 根据权利要求16或17所述的装置,其特征在于,所述环路确定模块具体用于:The device according to claim 16 or 17, wherein the loop determining module is specifically configured to:
    在所述第二连接属性标识序列同时满足以下第一条件和第二条件时,则确定所述路由协议报文的路由存在环路可能,在所述第二连接属性标识序列不同时满足所述第一条件和第二条件时,则确定所述路由协议报文的路由不存在环路可能;When the second connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol message has a loop possibility, and satisfying when the second connection attribute identification sequence is different When the first condition and the second condition are met, determining that the route of the routing protocol packet does not have a loop;
    所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three;
    所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier exists in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or is carried in the routing protocol packet. The routed host network protocol IP address or network segment IP address is the IP address to which the non-boundary network edge device in the DC where the network edge device resides.
  19. 根据权利要求15至18中任意一项所述的装置,其特征在于:所述第一网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。The apparatus according to any one of claims 15 to 18, wherein the first network connection attribute identifier is carried in a value field of an extended type length value TLV field of the routing protocol message.
  20. 根据权利要求15至19中任意一项所述的装置,其特征在于,Apparatus according to any one of claims 15 to 19, wherein
    所述连接属性标识添加模块,还用于在将第一网络连接属性标识添加到所述路由协议报文之前,根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识;The connection attribute identifier adding module is further configured to determine, according to the network connection relationship attribute table in the first network edge device, the first before adding the first network connection attribute identifier to the routing protocol message Network connection attribute identifier;
    其中,所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述邻居网络边缘设备包括所述第二网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and a neighbor network edge device of the first network edge device, where the neighbor network edge device includes the Two network edge devices.
  21. 根据权利要求20所述的装置,其特征在于,所述网络连接关系属性表的每个表项中存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备 的网络连接属性标识,与所述一个邻居网络边缘设备的IP地址的对应关系;The device according to claim 20, wherein each of the entries of the network connection relationship attribute table stores a network of the first network edge device and a neighbor network edge device of the first network edge device Corresponding relationship between the connection attribute identifier and the IP address of the neighbor network edge device;
    所述连接属性标识添加模块在根据网络连接关系属性表,确定所述第一网络连接属性标识时,具体用于:The connection attribute identifier adding module is specifically configured to: when determining the first network connection attribute identifier according to the network connection relationship attribute table,
    在所述网络连接关系属性表中查找与所述第二网络边缘设备的IP地址相匹配的第一网络连接属性标识。And searching, in the network connection relationship attribute table, a first network connection attribute identifier that matches an IP address of the second network edge device.
  22. 一种路由协议报文的处理装置,其特征在于,所述装置应用于第一数据中心DC的第一网络边缘设备上,所述第一网络边缘设备为边界网络边缘设备,所述装置包括:A device for processing a routing protocol packet, wherein the device is applied to a first network edge device of a first data center DC, and the first network edge device is a border network edge device, and the device includes:
    协议报文接收模块,用于接收第二网络边缘设备发布的路由协议报文;The protocol packet receiving module is configured to receive a routing protocol packet advertised by the second network edge device;
    其中,所述第二网络边缘设备为第二DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备,所述路由协议报文中携带有所述路由协议报文在转发过程中所经过的每个网络边缘设备依次添加的网络连接属性标识,所述网络连接属性标识为第一标识或第二标识,所述第一标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备属于同一DC,所述第二标识用于标识发布所述路由协议报文的网络边缘设备和接收所述路由协议报文的网络边缘设备不属于同一DC;The second network edge device is a border network edge device of the second DC or the non-boundary network edge device of the first DC, and the routing protocol packet carries the routing protocol packet in the forwarding process. a network connection attribute identifier that is added to each of the network edge devices that are passed through, and the network connection attribute identifier is a first identifier or a second identifier, where the first identifier is used to identify a network edge device that advertises the routing protocol packet. The network edge device that receives the routing protocol packet belongs to the same DC, and the second identifier is used to identify that the network edge device that advertises the routing protocol packet and the network edge device that receives the routing protocol packet do not belong to the same DC. DC;
    环路确定模块,用于根据所述路由协议报文中携带的所述依次添加的网络连接属性标识得到连接属性标识序列,根据所述连接属性标识序列确定所述路由协议报文的路由是否存在环路可能。a loop determining module, configured to obtain a connection attribute identification sequence according to the sequentially added network connection attribute identifier carried in the routing protocol packet, and determine, according to the connection attribute identification sequence, whether the routing protocol packet routing exists The loop is possible.
  23. 根据权利要求22所述的装置,其特征在于,所述环路确定模块具体用于:The device according to claim 22, wherein the loop determining module is specifically configured to:
    在所述连接属性标识序列同时满足以下第一条件和第二条件时,则确定所述路由协议报文的路由存在环路可能,在所述第二连接属性标识序列不同时满足所述第一条件和所述第二条件,则确定所述路由协议报文的路由不存在环路可能;When the connection attribute identification sequence satisfies the following first condition and the second condition, determining that the route of the routing protocol packet has a loop possibility, and satisfying the first when the second connection attribute identification sequence is different The condition and the second condition determine that there is no loop in the route of the routing protocol packet;
    所述第一条件为连接属性标识序列中的网络连接属性标识的个数大于等于三个;The first condition is that the number of network connection attribute identifiers in the connection attribute identification sequence is greater than or equal to three;
    所述第二条件为连接属性标识序列中除第一个网络连接属性标识和最后一个网络连接属性标识之外的网络连接属性标识中存在所述第一标识,或者,路由协议报文中所携带路由的主机网络协议IP地址或者网段IP地址为本网络边缘设备所在DC中的非边界网络边缘设备所连接的IP地址。The second condition is that the first identifier exists in the network connection attribute identifier of the connection attribute identifier sequence except the first network connection attribute identifier and the last network connection attribute identifier, or is carried in the routing protocol packet. The routed host network protocol IP address or network segment IP address is the IP address to which the non-boundary network edge device in the DC where the network edge device resides.
  24. 根据权利要求22或23所述的装置,其特征在于,所述装置还包括:The device according to claim 22 or 23, wherein the device further comprises:
    连接属性标识添加模块,用于在根据所述连接属性标识序列确定所述路由协议报文的路由不存在环路可能时,将第一网络连接属性标识添加到所述路由协议报文中的所述依次添加的网络连接属性标识之后;a connection attribute identifier adding module, configured to add a first network connection attribute identifier to the routing protocol packet when determining that the route of the routing protocol packet does not have a loop according to the connection attribute identifier sequence After the network connection attribute identifiers are added in sequence;
    协议报文发送模块,用于将添加后的所述路由协议报文发布至第三网络边缘设备;a protocol packet sending module, configured to advertise the added routing protocol packet to a third network edge device;
    其中,所述第一网络连接属性标识为所述第一网络边缘设备与所述第三网络边缘设备之间的网络连接属性标识,所述第三网络边缘设备为第三DC的边界网络边缘设备或所述第一DC的非边界网络边缘设备。The first network connection attribute identifier is a network connection attribute identifier between the first network edge device and the third network edge device, and the third network edge device is a third DC border network edge device. Or the non-boundary network edge device of the first DC.
  25. 根据权利要求24所述的装置,其特征在于,The device according to claim 24, wherein
    所述连接属性标识添加模块,还用于在将第一网络连接属性标识添加到所述路由协议报文之前,根据所述第一网络边缘设备中的网络连接关系属性表,确定所述第一网络连接属性标识;The connection attribute identifier adding module is further configured to determine, according to the network connection relationship attribute table in the first network edge device, the first before adding the first network connection attribute identifier to the routing protocol message Network connection attribute identifier;
    其中,所述网络连接关系属性表用于记录所述第一网络边缘设备与所述第一网络边缘设备的邻居网络边缘设备之间的网络连接属性标识,所述邻居网络边缘设备包括所述第三网络边缘设备。The network connection relationship attribute table is configured to record a network connection attribute identifier between the first network edge device and a neighbor network edge device of the first network edge device, where the neighbor network edge device includes the Three network edge devices.
  26. 根据权利要求25所述的装置,其特征在于,所述网络连接关系属性表中的每个表项存储所述第一网络边缘设备和所述第一网络边缘设备的一个邻居网络边缘设备的网络连接属性标识,与所述一个网络边缘设备的IP地址的对应关系;The apparatus according to claim 25, wherein each entry in the network connection relationship attribute table stores a network of the first network edge device and a neighbor network edge device of the first network edge device Corresponding relationship between the connection attribute identifier and the IP address of the network edge device;
    所述连接属性标识添加模块,具体用于在所述网络连接关系属性表中查找与所述第三网络边缘设备的IP地址相匹配的第一网络连接属性标识。The connection attribute identifier adding module is specifically configured to search, in the network connection relationship attribute table, a first network connection attribute identifier that matches an IP address of the third network edge device.
  27. 根据权利要求22至26中任意一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 22 to 26, wherein the device further comprises:
    报文丢弃模块,用于在根据所述连接属性标识序列确定所述路由协议报文的路由存在环路可能时,丢弃所述路由协议报文。The packet discarding module is configured to discard the routing protocol packet when the route of the routing protocol packet is determined according to the connection attribute identifier sequence.
  28. 根据权利要求22至27中任意一项所述的装置,其特征在于,所述每个网络边缘设备依次添加的网络连接属性标识被携带在所述路由协议报文的扩展的类型长度值TLV字段的值字段中。The device according to any one of claims 22 to 27, wherein the network connection attribute identifier sequentially added by each network edge device is carried in an extended type length value TLV field of the routing protocol message. In the value field.
PCT/CN2018/118276 2017-12-25 2018-11-29 Method and device for processing routing protocol packet WO2019128612A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711425078.8 2017-12-25
CN201711425078.8A CN109962846B (en) 2017-12-25 2017-12-25 Method and device for processing routing protocol message

Publications (1)

Publication Number Publication Date
WO2019128612A1 true WO2019128612A1 (en) 2019-07-04

Family

ID=67021424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/118276 WO2019128612A1 (en) 2017-12-25 2018-11-29 Method and device for processing routing protocol packet

Country Status (2)

Country Link
CN (1) CN109962846B (en)
WO (1) WO2019128612A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688873A (en) * 2019-10-18 2021-04-20 瞻博网络公司 Deploying secure neighbor discovery in EVPN
CN112953822A (en) * 2019-12-10 2021-06-11 华为技术有限公司 Method, device and system for reducing routing loop

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311645A (en) * 2019-07-31 2021-02-02 中兴通讯股份有限公司 Method, system and first GW for realizing DCI three-layer communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874290A (en) * 2005-11-02 2006-12-06 华为技术有限公司 Method for avoiding message loop
US7792021B1 (en) * 2005-08-22 2010-09-07 Sprint Communications Company L.P. Solutions for preventing routing loops and load balancing when connected to a multihomed autonomous system
CN102752190A (en) * 2011-04-22 2012-10-24 中兴通讯股份有限公司 Method and device for preventing loop from forming
US9276843B2 (en) * 2013-03-12 2016-03-01 International Business Machines Corporation Virtual link aggregation extension (vLAG+) enabled in a trill-based fabric network
WO2016062169A1 (en) * 2014-10-22 2016-04-28 华为技术有限公司 Message transmission method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7864712B2 (en) * 2007-07-20 2011-01-04 Cisco Technology, Inc. Preventing loops in networks operating different protocols to provide loop-free topology
CN102684985B (en) * 2011-03-17 2017-03-29 中兴通讯股份有限公司 A kind of method and system of multi-link interference networks point domain interconnection
CN103200100A (en) * 2013-03-12 2013-07-10 杭州华三通信技术有限公司 Method and device for packet transmitting
CN104869063B (en) * 2014-02-21 2019-02-12 华为技术有限公司 Host routes processing method and relevant device and communication system in virtual subnet
CN105591692A (en) * 2015-11-04 2016-05-18 杭州华三通信技术有限公司 Method and device of loop elimination in Ethernet passive optical network (EPON)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792021B1 (en) * 2005-08-22 2010-09-07 Sprint Communications Company L.P. Solutions for preventing routing loops and load balancing when connected to a multihomed autonomous system
CN1874290A (en) * 2005-11-02 2006-12-06 华为技术有限公司 Method for avoiding message loop
CN102752190A (en) * 2011-04-22 2012-10-24 中兴通讯股份有限公司 Method and device for preventing loop from forming
US9276843B2 (en) * 2013-03-12 2016-03-01 International Business Machines Corporation Virtual link aggregation extension (vLAG+) enabled in a trill-based fabric network
WO2016062169A1 (en) * 2014-10-22 2016-04-28 华为技术有限公司 Message transmission method and apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688873A (en) * 2019-10-18 2021-04-20 瞻博网络公司 Deploying secure neighbor discovery in EVPN
CN112688873B (en) * 2019-10-18 2023-04-21 瞻博网络公司 Deploying secure neighbor discovery in EVPN
CN112953822A (en) * 2019-12-10 2021-06-11 华为技术有限公司 Method, device and system for reducing routing loop
CN113261246A (en) * 2019-12-10 2021-08-13 华为技术有限公司 Method, device and system for reducing routing loop
CN113261246B (en) * 2019-12-10 2022-06-24 华为技术有限公司 Method, device and system for reducing routing loop

Also Published As

Publication number Publication date
CN109962846B (en) 2020-09-25
CN109962846A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
CN109218178B (en) Message processing method and network equipment
US10164838B2 (en) Seamless segment routing
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
EP3065342B1 (en) Update of mac routes in evpn single-active topology
US10122614B2 (en) Failure protection for traffic-engineered bit indexed explicit replication
US9509609B2 (en) Forwarding packets and PE devices in VPLS
US11159341B2 (en) Forwarding packet
US10033539B1 (en) Replicating multicast state information between multi-homed EVPN routing devices
US9300524B2 (en) Message forwarding between geographically dispersed network sites
CN107113241B (en) Route determining method, network configuration method and related device
WO2016101646A1 (en) Access method and apparatus for ethernet virtual network
US11652735B2 (en) Multicast data packet processing method, and apparatus
US20210119906A1 (en) Loop Avoidance Communications Method, Device, and System
WO2019128612A1 (en) Method and device for processing routing protocol packet
US9531564B2 (en) Single hop overlay architecture for line rate performance in campus networks
WO2021077971A1 (en) Communication method and device
WO2016124049A1 (en) Method and apparatus for obtaining port path
US9479420B2 (en) Forwarding a packet in a network
JP2019521619A (en) Packet forwarding
JP2022537296A (en) EVPN message transfer method, system, storage medium and terminal
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
US9686381B1 (en) Control word decapsulation in a hybrid BGP-VPLS network
CN113328949A (en) Method, network device and system for updating routing attribute
US10855572B2 (en) Area abstraction extensions to routing protocols

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

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

Country of ref document: EP

Kind code of ref document: A1