[go: up one dir, main page]

CN115378861A - Message transmission method and device, communication system - Google Patents

Message transmission method and device, communication system Download PDF

Info

Publication number
CN115378861A
CN115378861A CN202110539694.6A CN202110539694A CN115378861A CN 115378861 A CN115378861 A CN 115378861A CN 202110539694 A CN202110539694 A CN 202110539694A CN 115378861 A CN115378861 A CN 115378861A
Authority
CN
China
Prior art keywords
bgp
node
connections
message
nlri
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110539694.6A
Other languages
Chinese (zh)
Inventor
庞东磊
王海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN202110539694.6A priority Critical patent/CN115378861A/en
Publication of CN115378861A publication Critical patent/CN115378861A/en
Pending legal-status Critical Current

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
    • 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/24Multipath

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a message transmission method, message transmission equipment and a communication system, and belongs to the technical field of communication. The method comprises the following steps: after obtaining a network layer reachability information NLRI message, a first node determines part of BGP connections in a plurality of BGP connections established between the first node and a second node; and then, the first node sends the NLRI message to the second node through the part of BGP connection. The method and the device can reduce the repetition rate of NLRI message transmission between nodes, reduce the pressure of receiving and transmitting the NLRI message by the nodes, reduce the load of a BGP system, and improve the network topology switching efficiency.

Description

报文传输方法及设备、通信系统Message transmission method and device, communication system

技术领域technical field

本申请涉及通信技术领域,特别涉及一种报文传输方法及设备、通信系统。The present application relates to the technical field of communication, and in particular to a message transmission method and equipment, and a communication system.

背景技术Background technique

边界网关协议(Border Gateway Protocol,BGP)系统是一种应用较为广泛的通信系统,BGP系统包含多个节点,且这些节点之间可以基于BGP进行通信。A Border Gateway Protocol (Border Gateway Protocol, BGP) system is a widely used communication system. The BGP system includes multiple nodes, and these nodes can communicate based on BGP.

BGP系统中的节点之间可以建立BGP连接,并且,对于建立有BGP连接的两个节点,这两个节点之间可以建立有一个或多个BGP连接。这两个节点可以基于建立的BGP连接互相通告网络层可达信息(network layer reachability information,NLRI)报文。示例地,对于BGP系统中的每个节点,该节点可以查询本地建立的每个BGP连接,并将NLRI报文通过每个BGP连接发送给BGP连接的对端节点。BGP connections can be established between nodes in the BGP system, and, for two nodes with established BGP connections, one or more BGP connections can be established between these two nodes. The two nodes may advertise network layer reachability information (network layer reachability information, NLRI) messages to each other based on the established BGP connection. For example, for each node in the BGP system, the node may query each locally established BGP connection, and send the NLRI message to the peer node of the BGP connection through each BGP connection.

但是,目前BGP系统的负载较高,影响BGP系统的正常运行。However, the load of the BGP system is relatively high at present, which affects the normal operation of the BGP system.

发明内容Contents of the invention

本申请提供了一种报文传输方法及设备、通信系统,可以解决目前BGP系统的负载较高,影响BGP系统的正常运行的问题,所述技术方案如下:The application provides a message transmission method, equipment, and communication system, which can solve the problem that the current BGP system has a high load and affects the normal operation of the BGP system. The technical solution is as follows:

第一方面,提供了一种报文传输方法,所述方法包括:第一节点在获得NLRI报文之后,在第一节点和第二节点之间建立的多个BGP连接中确定部分BGP连接;之后,第一节点通过该部分BGP连接向第二节点发送NLRI报文。In a first aspect, a message transmission method is provided, the method comprising: after the first node obtains the NLRI message, determining a part of the BGP connection among multiple BGP connections established between the first node and the second node; Afterwards, the first node sends the NLRI message to the second node through the part of the BGP connection.

第一节点在获得NLRI报文之后,可以将该NLRI报文向其他节点转发。当第一节点在向第二节点转发NLRI报文时,第一节点可以在第一节点和第二节点之间的多个BGP连接中筛选部分BGP连接,作为向第二节点转发NLRI报文的通道。After obtaining the NLRI message, the first node may forward the NLRI message to other nodes. When the first node is forwarding the NLRI message to the second node, the first node can filter some BGP connections among multiple BGP connections between the first node and the second node, as a means of forwarding the NLRI message to the second node aisle.

本申请提供的报文传输方法中,在第一节点和第二节点之间建立有多个BGP连接时,第一节点仅通过部分BGP连接向第二节点发送NLRI报文。这样一来,减轻NLRI报文在节点间传输的重复率,降低节点收发NLRI报文的压力,降低BGP系统的负载,提升网络拓扑切换效率。In the message transmission method provided by the present application, when multiple BGP connections are established between the first node and the second node, the first node only sends NLRI messages to the second node through some of the BGP connections. In this way, the repetition rate of NLRI message transmission between nodes is reduced, the pressure on nodes to send and receive NLRI messages is reduced, the load of the BGP system is reduced, and the network topology switching efficiency is improved.

第一节点和第二节点可以是BGP系统中的任意两个节点,且第一节点与第二节点建立有多个BGP连接。BGP系统也可以称为BGP网络。BGP网络可以有多种实现方式,例如,数据中心网络(data center network,DCN)、园区网络、软件定义广域网(Software Defined-Wide Area Network,SD-WAN)等。BGP系统中的节点之间可以建立BGP连接,建立BGP连接的节点互为BGP邻居或BGP对等体(PEER)。BGP连接具有对应的链路(一条或多条),在该BGP连接上传输的报文会在该BGP连接对应的链路传输。The first node and the second node may be any two nodes in the BGP system, and multiple BGP connections are established between the first node and the second node. A BGP system may also be referred to as a BGP network. The BGP network may be implemented in multiple manners, for example, a data center network (data center network, DCN), a campus network, a software-defined wide area network (Software Defined-Wide Area Network, SD-WAN), etc. Nodes in the BGP system can establish BGP connections, and the nodes establishing BGP connections are BGP neighbors or BGP peers (PEERs). The BGP connection has corresponding links (one or more), and the message transmitted on the BGP connection will be transmitted on the link corresponding to the BGP connection.

可选地,当第一节点确定的部分BGP连接包括至少两个BGP连接(如两个BGP连接)时,在该部分BGP连接中的某些BGP连接故障时,该部分BGP连接还有除该某些BGP连接之外的其他BGP连接能够正常工作,保证NLRI报文能够有效传输至第二节点。并且,由于至少两个BGP连接的数量少于上述多个BGP连接的数量,因此,NLRI报文的重复传输率也较低。Optionally, when the part of the BGP connections determined by the first node includes at least two BGP connections (such as two BGP connections), when some BGP connections in the part of the BGP connections fail, the part of the BGP connections also has Other BGP connections other than some BGP connections can work normally, ensuring that the NLRI message can be effectively transmitted to the second node. Moreover, since the number of at least two BGP connections is less than the number of the above multiple BGP connections, the repeated transmission rate of the NLRI message is also low.

可选地,当部分BGP连接包括1个BGP连接时,第一节点无需复制NLRI报文,而是直接将S101中获得的NLRI报文通过该1个BGP连接发送给第二节点即可。这种情况下,NLRI报文的重复传输率较低。Optionally, when some BGP connections include one BGP connection, the first node does not need to copy the NLRI message, but directly sends the NLRI message obtained in S101 to the second node through the one BGP connection. In this case, the repeated transmission rate of the NLRI message is low.

可选地,第一节点可以根据以下三种方式中的任一种方式在多个BGP连接中筛选部分BGP连接。Optionally, the first node may filter some BGP connections among multiple BGP connections according to any one of the following three manners.

在第一种方式中,部分BGP连接包括:多个BGP连接中带宽较高的至少一个BGP连接。第一节点可以确定该多个BGP连接中每个BGP连接的带宽,并将带宽较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高带宽的BGP连接上传输,提升NLRI报文的传输速率。In the first manner, some BGP connections include: at least one BGP connection with higher bandwidth among the multiple BGP connections. The first node may determine the bandwidth of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with higher bandwidth as the above-mentioned partial BGP connections. In this way, NLRI packets can be guaranteed to be transmitted on the higher-bandwidth BGP connection, and the transmission rate of NLRI packets can be increased.

在第二种方式中,部分BGP连接包括:多个BGP连接中报文传输质量较高的至少一个BGP连接;第一节点可以确定该多个BGP连接中每个BGP连接的报文传输质量,并将报文传输质量较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高报文传输质量的BGP连接上传输,提升NLRI报文的传输质量。In the second manner, the partial BGP connections include: at least one BGP connection with higher message transmission quality among multiple BGP connections; the first node can determine the message transmission quality of each BGP connection among the multiple BGP connections, One or at least two BGP connections with higher packet transmission quality are used as the above-mentioned partial BGP connections. In this way, it can be ensured that the NLRI message is transmitted on the BGP connection with higher message transmission quality, and the transmission quality of the NLRI message can be improved.

在第三种方式中,部分BGP连接包括:多个BGP连接中地址较小的至少一个BGP连接。第一节点可以确定该多个BGP连接中每个BGP连接的地址,并将地址较小的一个或至少两个BGP连接作为上述部分BGP连接。In the third manner, the partial BGP connections include: at least one BGP connection with a smaller address among the multiple BGP connections. The first node may determine the address of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with smaller addresses as the above-mentioned partial BGP connections.

以上内容中以第一节点根据BGP连接的带宽、报文传输质量和地址这三个参数中的任一参数来确定部分BGP连接为例。可选地,第一节点还可以根据其他参数确定部分BGP连接,第一节点还可以结合多个参数来确定部分BGP连接,本申请实施例对此不作限定。In the above content, it is taken as an example that the first node determines a part of the BGP connection according to any one of the three parameters of BGP connection bandwidth, packet transmission quality and address. Optionally, the first node may also determine a part of the BGP connection according to other parameters, and the first node may also determine a part of the BGP connection in combination with multiple parameters, which is not limited in this embodiment of the present application.

可选地,第一节点可以自行生成该NLRI报文,以获得NLRI报文。或者,第一节点可以接收其他节点(与第二节点不同)发送的NLRI报文,以获得NLRI报文。Optionally, the first node may generate the NLRI message by itself to obtain the NLRI message. Or, the first node may receive the NLRI message sent by other nodes (different from the second node), so as to obtain the NLRI message.

可选地,所述第一节点和所述第二节点属于相同或不同的自制系统(autonomoussystem,AS)。Optionally, the first node and the second node belong to the same or different autonomous systems (autonomous system, AS).

第二方面,提供了一种报文传输设备,所述报文传输设备属于第一节点,所述第一节点与第二节点建立有多个BGP连接,所述报文传输设备包括:获得模块、确定模块和发送模块。其中,获得模块,用于获得NLRI报文;确定模块,用于在所述多个BGP连接中确定部分BGP连接;发送模块,用于通过所述部分BGP连接向所述第二节点发送所述NLRI报文。In a second aspect, a packet transmission device is provided, the packet transmission device belongs to a first node, and multiple BGP connections are established between the first node and the second node, and the packet transmission device includes: an obtaining module , determine the module and send the module. Wherein, the obtaining module is used to obtain the NLRI message; the determining module is used to determine part of the BGP connections in the multiple BGP connections; the sending module is used to send the part of the BGP connection to the second node. NLRI message.

在第一节点和第二节点之间建立有多个BGP连接时,本申请提供的报文传输设备仅通过部分BGP连接向第二节点发送NLRI报文。这样一来,减轻NLRI报文在节点间传输的重复率,降低节点收发NLRI报文的压力,降低BGP系统的负载,提升网络拓扑切换效率。When multiple BGP connections are established between the first node and the second node, the message transmission device provided in the present application only sends NLRI messages to the second node through some of the BGP connections. In this way, the repetition rate of NLRI message transmission between nodes is reduced, the pressure on nodes to send and receive NLRI messages is reduced, the load of the BGP system is reduced, and the network topology switching efficiency is improved.

第一节点确定的部分BGP连接包括1个或至少两个BGP连接。The part of BGP connections determined by the first node includes one or at least two BGP connections.

当部分BGP连接包括1个BGP连接时,第一节点无需复制NLRI报文,而是直接将S101中获得的NLRI报文通过该1个BGP连接发送给第二节点即可。这种情况下,NLRI报文的重复传输率较低。When some BGP connections include one BGP connection, the first node does not need to copy the NLRI message, but directly sends the NLRI message obtained in S101 to the second node through the one BGP connection. In this case, the repeated transmission rate of the NLRI message is low.

当第一节点确定的部分BGP连接包括至少两个BGP连接(如两个BGP连接)时,在该部分BGP连接中的某些BGP连接故障时,该部分BGP连接还有除该某些BGP连接之外的其他BGP连接能够正常工作,保证NLRI报文能够有效传输至第二节点。并且,由于至少两个BGP连接的数量少于上述多个BGP连接的数量,因此,NLRI报文的重复传输率也较低。When the part of the BGP connection determined by the first node includes at least two BGP connections (such as two BGP connections), when some BGP connections in the part of the BGP connection fail, the part of the BGP connection also has some BGP connections other than the BGP connection. Other BGP connections other than can work normally, ensuring that the NLRI message can be effectively transmitted to the second node. Moreover, since the number of at least two BGP connections is less than the number of the above multiple BGP connections, the repeated transmission rate of the NLRI message is also low.

可选地,报文传输设备可以根据以下三种方式中的任一种方式在多个BGP连接中筛选部分BGP连接。Optionally, the packet transmission device may filter some BGP connections among multiple BGP connections according to any one of the following three manners.

在第一种方式中,部分BGP连接包括:多个BGP连接中带宽较高的至少一个BGP连接。报文传输设备可以确定该多个BGP连接中每个BGP连接的带宽,并将带宽较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高带宽的BGP连接上传输,提升NLRI报文的传输速率。In the first manner, some BGP connections include: at least one BGP connection with higher bandwidth among the multiple BGP connections. The packet transmission device may determine the bandwidth of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with higher bandwidth as the above-mentioned partial BGP connections. In this way, NLRI packets can be guaranteed to be transmitted on the higher-bandwidth BGP connection, and the transmission rate of NLRI packets can be increased.

在第二种方式中,部分BGP连接包括:多个BGP连接中报文传输质量较高的至少一个BGP连接;报文传输设备可以确定该多个BGP连接中每个BGP连接的报文传输质量,并将报文传输质量较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高报文传输质量的BGP连接上传输,提升NLRI报文的传输质量。In the second method, some BGP connections include: at least one BGP connection with higher packet transmission quality among multiple BGP connections; the packet transmission device can determine the packet transmission quality of each BGP connection among the multiple BGP connections , and use one or at least two BGP connections with higher packet transmission quality as the above-mentioned partial BGP connections. In this way, it can be ensured that the NLRI message is transmitted on the BGP connection with higher message transmission quality, and the transmission quality of the NLRI message can be improved.

在第三种方式中,部分BGP连接包括:多个BGP连接中地址较小的至少一个BGP连接。报文传输设备可以确定该多个BGP连接中每个BGP连接的地址,并将地址较小的一个或至少两个BGP连接作为上述部分BGP连接。In the third manner, the partial BGP connections include: at least one BGP connection with a smaller address among the multiple BGP connections. The packet transmission device may determine the address of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with smaller addresses as the above-mentioned partial BGP connections.

可选地,所述获得模块用于:生成或接收所述NLRI报文。Optionally, the obtaining module is configured to: generate or receive the NLRI message.

可选地,所述第一节点和所述第二节点属于相同的AS。当然,第一节点和第二节点也可以属于不同的AS,本申请实施例对此不作限定。Optionally, the first node and the second node belong to the same AS. Certainly, the first node and the second node may also belong to different ASs, which is not limited in this embodiment of the present application.

第三方面,提供了一种通信设备,所述通信设备包括:处理器和存储器,所述存储器中存储有程序;所述处理器用于调用所述存储器中存储的程序,以使得所述通信设备执行第一方面中任一种设计所述的报文传输方法。In a third aspect, a communication device is provided, and the communication device includes: a processor and a memory, and a program is stored in the memory; the processor is used to call the program stored in the memory, so that the communication device Perform any one of the message transmission methods described in the design of the first aspect.

第四方面,提供了一种通信系统,所述通信系统包括:第一节点和第二节点,所述第一节点和所述第二节点之间建立有多个BGP连接,所述第一节点包括第二方面中任一种设计所述的报文传输设备。In a fourth aspect, a communication system is provided, and the communication system includes: a first node and a second node, a plurality of BGP connections are established between the first node and the second node, and the first node It includes the message transmission device described in any design of the second aspect.

第五方面,提供了一种计算机存储介质,所述计算机存储介质内存储有计算机程序;所述计算机程序在计算机上运行时,使得计算机执行第一方面中任一种设计所述的报文传输方法。In a fifth aspect, a computer storage medium is provided, wherein a computer program is stored in the computer storage medium; when the computer program runs on a computer, the computer executes the message transmission described in any one of the designs in the first aspect method.

第六方面,提供了一种包含指令的计算机程序产品,当计算机程序产品在报文传输设备上运行时,使得报文传输设备执行如第一方面任一设计所述的报文传输方法。In a sixth aspect, a computer program product containing instructions is provided, and when the computer program product is run on a message transmission device, the message transmission device is made to execute the message transmission method described in any design of the first aspect.

第二方面至第六方面中任一种设计方式所带来的技术效果可参见第一方面中相应设计方式所带来的技术效果,此处不再赘述。For the technical effect brought by any one of the design methods in the second aspect to the sixth aspect, please refer to the technical effect brought by the corresponding design method in the first aspect, which will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application;

图2为本申请实施例提供的一种通信设备的结构示意图;FIG. 2 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

图3为本申请实施例提供的一种报文传输方法的流程图;FIG. 3 is a flow chart of a message transmission method provided by an embodiment of the present application;

图4为本申请实施例提供的一种部分BGP连接的示意图;FIG. 4 is a schematic diagram of a partial BGP connection provided by an embodiment of the present application;

图5为本申请实施例提供的一种报文传输设备的结构示意图。FIG. 5 is a schematic structural diagram of a packet transmission device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的原理和技术方案更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the principles and technical solutions of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

BGP系统是一种应用BGP作为底层(underLay)协议的通信系统,其中,底层协议用于设备间网络互通,以支撑上层业务转发。The BGP system is a communication system using BGP as an underlay protocol, wherein the underlay protocol is used for network intercommunication between devices to support upper layer service forwarding.

BGP系统也可以称为BGP网络。BGP网络可以有多种实现方式,例如,数据中心网络(data center network,DCN)、园区网络、软件定义广域网(Software Defined-Wide AreaNetwork,SD-WAN)等。A BGP system may also be referred to as a BGP network. The BGP network may be implemented in multiple manners, for example, a data center network (data center network, DCN), a campus network, a software-defined wide area network (Software Defined-Wide Area Network, SD-WAN), and the like.

BGP系统包含多个节点,且这些节点之间可以基于BGP进行通信。The BGP system includes multiple nodes, and these nodes can communicate based on BGP.

示例地,图1为本申请实施例提供的一种BGP系统的结构示意图,如图1所示,BGP系统包括:节点1、2、3、4、5、6、7和8。需要说明的是,BGP系统中节点的个数可以是任意数值,图1中仅示意性地示出了三个节点。BGP系统中的多个节点可以属于相同或不同的AS。Exemplarily, FIG. 1 is a schematic structural diagram of a BGP system provided by an embodiment of the present application. As shown in FIG. 1 , the BGP system includes: nodes 1, 2, 3, 4, 5, 6, 7 and 8. It should be noted that the number of nodes in the BGP system can be any value, and only three nodes are schematically shown in FIG. 1 . Multiple nodes in a BGP system can belong to the same or different ASs.

节点可以是一个设备,也可以是设备中的一部分(如设备的接口单元)。设备可以是网际互连协议(Internet Protocol,IP)设备,如网关、路由器、交换机、服务器或服务器集群等。节点支持基本的二层和三层转发能力,支持BGP协议。A node can be a device, or a part of a device (such as an interface unit of a device). The device may be an Internet Protocol (Internet Protocol, IP) device, such as a gateway, a router, a switch, a server or a server cluster, and the like. The node supports basic layer 2 and layer 3 forwarding capabilities, and supports the BGP protocol.

比如,图1中的节点2是核心层设备,节点3和4是汇聚层设备,节点5、6、7和8是接入层设备。示例地,节点1为园区网络的出口路由器,节点2为园区网络核心层交换机,节点3和4均为汇聚层交换机,节点5和8均为有线接入层交换机,节点6和7均为无线接入层交换机。For example, node 2 in FIG. 1 is a core layer device, nodes 3 and 4 are aggregation layer devices, and nodes 5, 6, 7 and 8 are access layer devices. For example, node 1 is the egress router of the campus network, node 2 is the core layer switch of the campus network, nodes 3 and 4 are aggregation layer switches, nodes 5 and 8 are wired access layer switches, and nodes 6 and 7 are wireless Access layer switches.

节点可以看做是通信设备,通信设备可以包括:处理器;处理器用于与存储器耦合,并读取存储器中的指令之后,根据指令执行如本申请实施例描述的由通信设备执行的方法。A node can be regarded as a communication device, and the communication device may include: a processor; the processor is used to couple with the memory, and after reading the instructions in the memory, execute the method performed by the communication device as described in the embodiment of the present application according to the instructions.

在该通信设备中,处理器的个数可以为多个,与处理器耦合的存储器可以独立于处理器之外或独立于通信设备之外,也可以在处理器或网络设备之内。存储器可以是物理上独立的单元,也可以是云服务器上的存储空间或网络硬盘等。可选地,存储器可以为一个或多个。当存储器的个数为多个时,可以位于相同的或不同的位置,并且可以独立或配合使用。In the communication device, there may be multiple processors, and the memory coupled to the processor may be independent of the processor or the communication device, or within the processor or the network device. The storage can be a physically independent unit, or it can be a storage space on a cloud server or a network hard disk. Optionally, there may be one or more memories. When there are multiple memories, they can be located at the same or different locations, and can be used independently or in conjunction.

示例性地,当存储器位于通信设备内部时,请参考图2,图2为本申请实施例提供的一种通信设备的结构示意图。该通信设备200包括:处理器202和存储器201,其中,存储器201用于存储程序,处理器202用于调用存储器201中存储的程序,以使得该通信设备执行相应的方法或功能。For example, when the memory is located inside the communication device, please refer to FIG. 2 , which is a schematic structural diagram of a communication device provided by an embodiment of the present application. The communication device 200 includes: a processor 202 and a memory 201, wherein the memory 201 is used to store a program, and the processor 202 is used to call the program stored in the memory 201, so that the communication device executes a corresponding method or function.

可选地,如图2所示,该通信设备200还可以包括至少一个通信接口203和至少一个通信总线204,本申请实施例中的接口(如通信接口203)也称端口。存储器201、处理器202以及通信接口203通过通信总线204通信连接。其中,通信接口203用于在处理器202的控制下与其他设备通信,处理器202可以通过通信总线204调用存储器201中存储的程序。Optionally, as shown in FIG. 2 , the communication device 200 may further include at least one communication interface 203 and at least one communication bus 204 , and the interface (such as the communication interface 203 ) in this embodiment of the application is also called a port. The memory 201 , the processor 202 and the communication interface 203 are communicatively connected through a communication bus 204 . Wherein, the communication interface 203 is used for communicating with other devices under the control of the processor 202 , and the processor 202 can call the program stored in the memory 201 through the communication bus 204 .

本申请实施例提供的通信设备可以用于执行本申请后续实施例提供的报文传输方法中由第一节点执行操作。The communication device provided in the embodiment of the present application may be used to perform operations performed by the first node in the packet transmission method provided in the subsequent embodiments of the present application.

BGP系统中的节点之间可以建立BGP连接,建立BGP连接的节点互为BGP邻居或BGP对等体(PEER)。BGP连接具有对应的链路(一条或多条),在该BGP连接上传输的报文会在该BGP连接对应的链路传输。Nodes in the BGP system can establish BGP connections, and the nodes establishing BGP connections are BGP neighbors or BGP peers (PEERs). The BGP connection has corresponding links (one or more), and the message transmitted on the BGP connection will be transmitted on the link corresponding to the BGP connection.

BGP系统中的节点可以记录有该节点建立的BGP连接的信息,该信息包括:BGP连接对应的链路的信息(如链路的标识、链路所经过的端口等),BGP连接的地址,以及BGP连接关联的BGP PEER(或者BGP邻居)的信息。BGP连接关联的BGP PEER(或者BGP邻居)的信息包括:该BGP连接的对端节点的信息(如标识或地址等)。A node in the BGP system can record the information of the BGP connection established by the node, which includes: the information of the link corresponding to the BGP connection (such as the identification of the link, the port through which the link passes, etc.), the address of the BGP connection, And the BGP PEER (or BGP neighbor) information associated with the BGP connection. The information of the BGP PEER (or BGP neighbor) associated with the BGP connection includes: the information (such as identification or address, etc.) of the peer node of the BGP connection.

节点之间可以建立有一个或多个BGP连接。One or more BGP connections can be established between nodes.

示例地,请继续参考图1,节点1和节点2之间建立有一个BGP连接;节点2和节点3之间建立有3个BGP连接,节点2和节点4之间建立有1个BGP连接;节点3和节点5之间建立有2个BGP连接,节点3和节点8之间建立有1个BGP连接;节点4和节点5、6、7、8之间均建立有1个BGP连接。当两个节点之间建立有多个BGP连接时,不同BGP连接对应的链路不同,在不同BGP连接上传输的报文会在不同的链路上传输。For example, please continue to refer to Figure 1, there is one BGP connection established between node 1 and node 2; three BGP connections are established between node 2 and node 3, and one BGP connection is established between node 2 and node 4; Two BGP connections are established between node 3 and node 5, one BGP connection is established between node 3 and node 8, and one BGP connection is established between node 4 and nodes 5, 6, 7, and 8. When multiple BGP connections are established between two nodes, different BGP connections correspond to different links, and packets transmitted on different BGP connections are transmitted on different links.

BGP系统中的节点会生成NLRI报文,并通过该节点建立的BGP连接向其他节点传输NLRI报文。节点也会接收到其他节点发送的NLRI报文,节点也可以通过该节点建立的BGP连接向其他节点传输NLRI报文。其中,节点生成的NLRI报文包括:该节点的信息(如标识或地址等),该节点直连的每个节点之间链路的信息,以及该节点的路由信息(如该节点的路由地址、路由标识等)。其中,节点的标识可以是能够在全网唯一确定出该节点的信息,根据节点的标识可以唯一确定出该节点,不同节点的标识互不相同。A node in the BGP system generates an NLRI message, and transmits the NLRI message to other nodes through the BGP connection established by the node. The node will also receive the NLRI message sent by other nodes, and the node can also transmit the NLRI message to other nodes through the BGP connection established by the node. Wherein, the NLRI message generated by the node includes: the information of the node (such as identification or address, etc.), the information of the link between each node directly connected to the node, and the routing information of the node (such as the routing address of the node , routing ID, etc.). Wherein, the identifier of a node may be information that can uniquely determine the node in the whole network, and the node can be uniquely determined according to the identifier of the node, and the identifiers of different nodes are different from each other.

这样一来,BGP系统中每个节点生成的NLRI报文便能够在全网进行泛洪,使得BGP系统中的每个节点能够获得BGP系统中所有节点生成的NLRI报文,并根据这些NLRI报文确定BGP系统的网络拓扑,进而根据该网络拓扑进行业务报文的转发。In this way, the NLRI packets generated by each node in the BGP system can be flooded on the entire network, so that each node in the BGP system can obtain the NLRI packets generated by all nodes in the BGP system, and based on these NLRI packets The document determines the network topology of the BGP system, and then forwards service packets according to the network topology.

比如,节点在向目的节点转发业务报文时,可以根据该网络拓扑,按照最短路径优先(Shortest path first,SPF)算法计算到达该目的节点的路径,进而沿该路径转发业务报文。For example, when a node forwards a service packet to a destination node, it may calculate a path to the destination node according to the network topology and a Shortest path first (SPF) algorithm, and then forward the service packet along the path.

另外,在BGP系统的拓扑结构发生改变时,被改变的节点(如新增的节点,或者所连接的节点故障的节点等)会重新生成NLRI报文,以及在全网泛洪该NLRI报文,以便于BGP系统中的所有节点对网络拓扑进行更新。In addition, when the topology of the BGP system changes, the changed node (such as a newly added node, or a node that is connected to a failed node, etc.) will regenerate an NLRI message, and flood the NLRI message in the entire network , so that all nodes in the BGP system can update the network topology.

但是,当BGP系统中的某两个节点之间建立有多个BGP连接时,这两个节点中的一个节点向另一节点发送NLRI报文时,该一个节点会将NLRI报文复制多份,并通过该多个BGP连接中的每个BGP连接发送一份NLRI报文。这样就导致一个节点向另一个节点重复多次的发送了NLRI报文。However, when multiple BGP connections are established between two nodes in the BGP system, when one of the two nodes sends an NLRI message to the other node, the one node will make multiple copies of the NLRI message , and send an NLRI message through each BGP connection in the multiple BGP connections. This causes one node to repeatedly send the NLRI message to another node.

例如,请继续参考图1,假设节点3接收到节点5发送的NLRI报文,节点3可以确定节点3和节点2之间建立有3个BGP连接,此时,节点3会将NLRI报文复制2份,从而得到3份NLRI报文。之后,节点3会将这3份NLRI报文一一通过这3个BGP连接发送给节点2。For example, please continue to refer to Figure 1, assuming that node 3 receives the NLRI message sent by node 5, node 3 can determine that there are 3 BGP connections established between node 3 and node 2, at this time, node 3 will copy the NLRI message 2, thus obtaining 3 NLRI messages. Afterwards, node 3 will send the three NLRI messages to node 2 through the three BGP connections one by one.

但其实节点2只需要获取到一份NLRI报文即可,这三份NLRI报文中的两份NLRI报文都是重复无用的。若NLRI报文的数据量为X,那么节点3发送给节点2的3份NLRI报文的数据量为3X。其中有2X的数据量都是重复无用的。But in fact, node 2 only needs to obtain one NLRI message, and two of the three NLRI messages are redundant and useless. If the data volume of the NLRI message is X, then the data volume of the three NLRI messages sent by node 3 to node 2 is 3X. Among them, 2X the amount of data is repetitive and useless.

可以看出,当BGP系统中的某两个节点之间建立有多个BGP连接时,这两个节点之间会重复传输NLRI报文,造成BGP系统的负载较高,影响BGP系统的正常运行。It can be seen that when multiple BGP connections are established between two nodes in the BGP system, NLRI packets will be repeatedly transmitted between the two nodes, causing a high load on the BGP system and affecting the normal operation of the BGP system .

并且,在BGP系统的规模较大时,BGP系统中需要传输的NLRI报文较多,此时BGP系统中节点收发NLRI报文的压力较大,影响BGP系统的稳定运行以及网络拓扑切换(如节点故障时切换节点)效率。Moreover, when the scale of the BGP system is large, there are many NLRI messages that need to be transmitted in the BGP system. At this time, the pressure on the nodes in the BGP system to send and receive NLRI messages is relatively high, which affects the stable operation of the BGP system and network topology switching (such as switch node when node failure) efficiency.

本申请实施例提供了一种报文传输方法,该方法能够使得在节点间建立有多个BGP连接时,仅通过部分BGP连接向邻居节点发送NLRI报文,从而减轻NLRI报文在节点间传输的重复率,降低节点收发NLRI报文的压力,降低BGP系统的负载,提升网络拓扑切换效率。The embodiment of the present application provides a message transmission method, the method can make it possible to send NLRI messages to neighbor nodes through only some BGP connections when multiple BGP connections are established between nodes, thereby reducing the transmission of NLRI messages between nodes The repetition rate reduces the pressure on nodes to send and receive NLRI messages, reduces the load on the BGP system, and improves the efficiency of network topology switching.

示例地,图3为本申请实施例提供的一种报文传输方法的流程图,如图3所示,该报文传输方法包括:Exemplarily, FIG. 3 is a flow chart of a message transmission method provided in an embodiment of the present application. As shown in FIG. 3, the message transmission method includes:

S101、第一节点获得NLRI报文。S101. The first node obtains the NLRI message.

第一节点和第二节点可以是BGP系统中的任意两个节点,且第一节点与第二节点建立有多个BGP连接。The first node and the second node may be any two nodes in the BGP system, and multiple BGP connections are established between the first node and the second node.

在S101中,第一节点可以自行生成该NLRI报文,以获得NLRI报文。或者,第一节点可以接收其他节点(与第二节点不同)发送的NLRI报文,以获得NLRI报文。In S101, the first node may generate the NLRI message by itself to obtain the NLRI message. Or, the first node may receive the NLRI message sent by other nodes (different from the second node), so as to obtain the NLRI message.

S102、第一节点在与第二节点之间建立的多个BGP连接中确定部分BGP连接。S102. The first node determines part of the BGP connections among the multiple BGP connections established with the second node.

第一节点在获得NLRI报文之后,可以将该NLRI报文向其他节点转发。当第一节点在向第二节点转发NLRI报文时,第一节点可以在第一节点和第二节点之间的多个BGP连接中筛选部分BGP连接,作为向第二节点转发NLRI报文的通道。After obtaining the NLRI message, the first node may forward the NLRI message to other nodes. When the first node is forwarding the NLRI message to the second node, the first node can filter some BGP connections among multiple BGP connections between the first node and the second node, as a means of forwarding the NLRI message to the second node aisle.

例如,请继续参考图1,假设节点3为第一节点,节点2为第二节点。节点3和节点2之间建立有3个BGP连接。如图4所示,这3个BGP连接分别为BGP连接A、B、C,节点3可以确定这三个BGP连接中的BGP连接B为用于传输NLRI报文的上述部分BGP连接。For example, please continue to refer to FIG. 1 , assuming that node 3 is the first node, and node 2 is the second node. Three BGP connections are established between node 3 and node 2. As shown in FIG. 4 , these three BGP connections are BGP connections A, B, and C respectively, and node 3 can determine that BGP connection B among the three BGP connections is the above-mentioned partial BGP connection for transmitting NLRI messages.

可见,BGP连接B作为传输NLRI报文的BGP连接,而BGP连接A和C不用于传输NLRI报文。It can be seen that BGP connection B is used as a BGP connection for transmitting NLRI packets, while BGP connections A and C are not used for transmitting NLRI packets.

第一节点可以根据以下三项中的任一项在多个BGP连接中筛选部分BGP连接。The first node may filter some BGP connections among multiple BGP connections according to any one of the following three items.

1、部分BGP连接包括:多个BGP连接中带宽较高的至少一个BGP连接。1. Part of the BGP connection includes: at least one BGP connection with higher bandwidth among multiple BGP connections.

第一节点可以确定该多个BGP连接中每个BGP连接的带宽,并将带宽较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高带宽的BGP连接上传输,提升NLRI报文的传输速率。The first node may determine the bandwidth of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with higher bandwidth as the above-mentioned partial BGP connections. In this way, NLRI packets can be guaranteed to be transmitted on the higher-bandwidth BGP connection, and the transmission rate of NLRI packets can be increased.

2、部分BGP连接包括:多个BGP连接中报文传输质量较高的至少一个BGP连接;2. Some BGP connections include: at least one BGP connection with higher message transmission quality among multiple BGP connections;

第一节点可以确定该多个BGP连接中每个BGP连接的报文传输质量,并将报文传输质量较高的一个或至少两个BGP连接作为上述部分BGP连接。这样一来,可以保证NLRI报文在较高报文传输质量的BGP连接上传输,提升NLRI报文的传输质量。The first node may determine the packet transmission quality of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with higher packet transmission quality as the above-mentioned partial BGP connections. In this way, it can be ensured that the NLRI message is transmitted on the BGP connection with higher message transmission quality, and the transmission quality of the NLRI message can be improved.

报文传输质量可以与丢包率、误码率等参数中的至少一种参数相关。Packet transmission quality may be related to at least one parameter among parameters such as packet loss rate and bit error rate.

3、部分BGP连接包括:多个BGP连接中地址较小的至少一个BGP连接。3. The partial BGP connection includes: at least one BGP connection with a smaller address among the multiple BGP connections.

第一节点可以记录有该第一节点与第二节点建立的每个BGP连接的信息,该信息包括:BGP连接对应的链路的信息,以及BGP连接的地址。并且,不同BGP连接的地址不同。The first node may record information about each BGP connection established between the first node and the second node, and the information includes: information about a link corresponding to the BGP connection, and an address of the BGP connection. Also, the addresses of different BGP connections are different.

第一节点可以确定该多个BGP连接中每个BGP连接的地址,并将地址较小的一个或至少两个BGP连接作为上述部分BGP连接。The first node may determine the address of each BGP connection among the multiple BGP connections, and use one or at least two BGP connections with smaller addresses as the above-mentioned partial BGP connections.

比如,第一节点与第二节点建立有三个BGP连接,这三个BGP连接的地址分别为1.1.1、2.2.2和3.3.3。第一节点可以将地址为1.1.1的BGP连接作为上述部分BGP连接。For example, the first node establishes three BGP connections with the second node, and the addresses of the three BGP connections are 1.1.1, 2.2.2, and 3.3.3 respectively. The first node may use the BGP connection with the address 1.1.1 as the aforementioned partial BGP connection.

以上内容中以第一节点根据BGP连接的带宽、报文传输质量和地址这三个参数中的任一参数来确定部分BGP连接为例。In the above content, it is taken as an example that the first node determines a part of the BGP connection according to any one of the three parameters of BGP connection bandwidth, packet transmission quality and address.

可选地,第一节点还可以根据其他参数确定部分BGP连接,第一节点还可以结合多个参数来确定部分BGP连接,本申请实施例对此不作限定。Optionally, the first node may also determine a part of the BGP connection according to other parameters, and the first node may also determine a part of the BGP connection in combination with multiple parameters, which is not limited in this embodiment of the present application.

S103、第一节点通过该部分BGP连接向第二节点发送NLRI报文。S103. The first node sends the NLRI message to the second node through the part of the BGP connection.

第一节点在确定该部分BGP连接后,便可以通过该部分BGP连接中的每个BGP连接,向第二节点发送NLRI报文。After the first node determines the part of the BGP connections, it can send the NLRI message to the second node through each BGP connection in the part of the BGP connections.

当部分BGP连接包括1个BGP连接时,第一节点无需复制NLRI报文,而是直接将S101中获得的NLRI报文通过该1个BGP连接发送给第二节点即可。这种情况下,S101中NLRI报文的重复传输率较低。When some BGP connections include one BGP connection, the first node does not need to copy the NLRI message, but directly sends the NLRI message obtained in S101 to the second node through the one BGP connection. In this case, the repeated transmission rate of the NLRI message in S101 is low.

当部分BGP连接包括至少两个BGP连接时,第一节点可以将S101中的NLRI报文进行复制,得到与该至少两个BGP连接的一一对应的至少两份NLRI报文,并通过每个BGP连接向第二节点发送对应的一份NLRI报文。When some BGP connections include at least two BGP connections, the first node can copy the NLRI message in S101 to obtain at least two NLRI messages corresponding to the at least two BGP connections one-to-one, and pass each The BGP connection sends a corresponding NLRI message to the second node.

需要说明的是,当第一节点确定的部分BGP连接包括至少两个BGP连接(如两个BGP连接)时,在该部分BGP连接中的某些BGP连接故障时,该部分BGP连接还有除该某些BGP连接之外的其他BGP连接能够正常工作,保证NLRI报文能够有效传输至第二节点。It should be noted that when the part of the BGP connections determined by the first node includes at least two BGP connections (such as two BGP connections), when some BGP connections in the part of the BGP connections fail, the part of the BGP connections has Other BGP connections other than the certain BGP connections can work normally, ensuring that the NLRI message can be effectively transmitted to the second node.

并且,由于至少两个BGP连接的数量少于上述多个BGP连接的数量,因此,S101中NLRI报文的重复传输率也较低。Moreover, since the number of at least two BGP connections is less than the number of the above multiple BGP connections, the repeated transmission rate of the NLRI message in S101 is also low.

示例地,假设第一节点为图4中的节点3,第二节点为图4中的节点2,且节点3确定出的部分BGP连接为图4中的BGP连接B,那么节点3可以将S101中的NLRI报文通过BGP连接B发送给节点2。For example, assuming that the first node is node 3 in FIG. 4, the second node is node 2 in FIG. 4, and the part of the BGP connection determined by node 3 is BGP connection B in FIG. The NLRI message in is sent to node 2 through BGP connection B.

可以看出,节点3并未通过图4中的BGP连接A和C向第二节点发送NLRI报文。因此,节点1和节点3之间传输的重复的NLRI报文较少。It can be seen that node 3 does not send the NLRI message to the second node through BGP connections A and C in FIG. 4 . Therefore, there are fewer repeated NLRI messages transmitted between node 1 and node 3 .

综上所述,本申请实施例提供的报文传输方法中,在第一节点和第二节点之间建立有多个BGP连接时,第一节点仅通过部分BGP连接向第二节点发送NLRI报文。这样一来,减轻NLRI报文在节点间传输的重复率,降低节点收发NLRI报文的压力,降低BGP系统的负载,提升网络拓扑切换效率。To sum up, in the message transmission method provided by the embodiment of the present application, when multiple BGP connections are established between the first node and the second node, the first node only sends NLRI messages to the second node through some BGP connections. arts. In this way, the repetition rate of NLRI message transmission between nodes is reduced, the pressure on nodes to send and receive NLRI messages is reduced, the load of the BGP system is reduced, and the network topology switching efficiency is improved.

上文中结合图1至图4,详细描述了本申请所提供的报文传输方法,可以理解的是,节点为了实现上述各方法所描述的功能,其需包含执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各方法的执行过程,本申请能够以硬件或硬件和计算机软件的结合形式来实现。The message transmission method provided by this application is described in detail above in conjunction with Fig. 1 to Fig. 4. It can be understood that, in order to realize the functions described in the above-mentioned methods, the node needs to include the corresponding hardware and/or software modules. In combination with the execution process of each method described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software.

某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方式来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different ways to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本实施例可以根据上述方法实施例对相应的设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。In this embodiment, functional modules of corresponding devices may be divided according to the above method embodiments. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware.

需要说明的是,本实施例中对模块的划分是示意性的,具体作为一种逻辑功能可能的划分方式,实际实现时可以有另外的划分方式。It should be noted that the division of the modules in this embodiment is schematic, specifically as a possible division of logical functions, and there may be another division in actual implementation.

当采用功能模块划分方式时,下面将结合图5描述本申请所提供的报文传输设备。When the functional module division method is adopted, the message transmission device provided by the present application will be described below with reference to FIG. 5 .

图5为本申请实施例提供的一种报文传输设备的框图,该报文传输设备例如可以属于前述实施例中的第一节点。第一节点与第二节点建立有多个BGP连接。FIG. 5 is a block diagram of a packet transmission device provided by an embodiment of the present application. For example, the packet transmission device may belong to the first node in the foregoing embodiments. The first node establishes multiple BGP connections with the second node.

如图5所示,该报文传输设备包括:获得模块501、确定模块502和发送模块503。As shown in FIG. 5 , the packet transmission device includes: an obtaining module 501 , a determining module 502 and a sending module 503 .

获得模块501用于获得NLRI报文;获得模块501用于执行的操作可以参考上述S101中的相关内容。The obtaining module 501 is used to obtain the NLRI message; for operations performed by the obtaining module 501, reference may be made to relevant content in S101 above.

确定模块502用于在所述多个BGP连接中确定部分BGP连接;确定模块502用于执行的操作可以参考上述S102中的相关内容。The determining module 502 is configured to determine part of the BGP connections among the plurality of BGP connections; for operations performed by the determining module 502, reference may be made to relevant content in S102 above.

发送模块503用于通过所述部分BGP连接向所述第二节点发送所述NLRI报文。发送模块503用于执行的操作可以参考上述S103中的相关内容。The sending module 503 is configured to send the NLRI message to the second node through the partial BGP connection. For operations performed by the sending module 503, reference may be made to related content in S103 above.

第一节点确定的部分BGP连接包括1个或至少两个BGP连接。The part of BGP connections determined by the first node includes one or at least two BGP connections.

当部分BGP连接包括1个BGP连接时,第一节点无需复制NLRI报文,而是直接将S101中获得的NLRI报文通过该1个BGP连接发送给第二节点即可。这种情况下,NLRI报文的重复传输率较低。When some BGP connections include one BGP connection, the first node does not need to copy the NLRI message, but directly sends the NLRI message obtained in S101 to the second node through the one BGP connection. In this case, the repeated transmission rate of the NLRI message is low.

当第一节点确定的部分BGP连接包括至少两个BGP连接(如两个BGP连接)时,在该部分BGP连接中的某些BGP连接故障时,该部分BGP连接还有除该某些BGP连接之外的其他BGP连接能够正常工作,保证NLRI报文能够有效传输至第二节点。When the part of the BGP connection determined by the first node includes at least two BGP connections (such as two BGP connections), when some BGP connections in the part of the BGP connection fail, the part of the BGP connection also has some BGP connections other than the BGP connection. Other BGP connections other than can work normally, ensuring that the NLRI message can be effectively transmitted to the second node.

并且,由于至少两个BGP连接的数量少于上述多个BGP连接的数量,因此,NLRI报文的重复传输率也较低。Moreover, since the number of at least two BGP connections is less than the number of the above multiple BGP connections, the repeated transmission rate of the NLRI message is also low.

可选地,所述部分BGP连接包括:所述多个BGP连接中带宽较高的至少一个BGP连接;Optionally, the partial BGP connections include: at least one BGP connection with higher bandwidth among the multiple BGP connections;

或者,所述部分BGP连接包括:所述多个BGP连接中报文传输质量较高的至少一个BGP连接;Alternatively, the partial BGP connections include: at least one BGP connection with higher message transmission quality among the multiple BGP connections;

或者,所述部分BGP连接包括:所述多个BGP连接中地址较小的至少一个BGP连接。第一节点可以根据这三项中的任一项在多个BGP连接中筛选部分BGP连接。Alternatively, the partial BGP connections include: at least one BGP connection with a smaller address among the multiple BGP connections. The first node may filter some BGP connections among multiple BGP connections according to any one of these three items.

可选地,获得模块501用于:生成或接收NLRI报文。Optionally, the obtaining module 501 is configured to: generate or receive an NLRI message.

可选地,第一节点和第二节点属于不同的AS。Optionally, the first node and the second node belong to different ASs.

当然,第一节点和第二节点也可以属于相同的AS,本申请实施例对此不作限定。Certainly, the first node and the second node may also belong to the same AS, which is not limited in this embodiment of the present application.

综上所述,本申请实施例提供的报文传输设备中,在第一节点和第二节点之间建立有多个BGP连接时,发送模块仅通过部分BGP连接向第二节点发送NLRI报文。这样一来,减轻NLRI报文在节点间传输的重复率,降低节点收发NLRI报文的压力,降低BGP系统的负载,提升网络拓扑切换效率。To sum up, in the message transmission device provided by the embodiment of the present application, when multiple BGP connections are established between the first node and the second node, the sending module only sends NLRI messages to the second node through some BGP connections . In this way, the repetition rate of NLRI message transmission between nodes is reduced, the pressure on nodes to send and receive NLRI messages is reduced, the load of the BGP system is reduced, and the network topology switching efficiency is improved.

在采用集成的单元的情况下,本申请所提供的用于第一节点的报文传输设备可以包括处理模块、存储模块和通信模块。In the case of using an integrated unit, the message transmission device for the first node provided in the present application may include a processing module, a storage module, and a communication module.

其中,处理模块可以用于对报文传输设备的动作进行控制管理,例如,可以用于支持报文传输设备执行上述S101至S103中由第一节点执行的动作。Wherein, the processing module may be used to control and manage actions of the message transmission device, for example, may be used to support the message transmission device to perform the actions performed by the first node in S101 to S103 above.

存储模块可以用于支持报文传输设备执行存储程序代码和数据等。The storage module can be used to support the message transmission device to execute stored program codes and data.

通信模块,可以用于报文传输设备与其他设备的通信。The communication module can be used for communication between the message transmission device and other devices.

其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。Wherein, the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like.

存储模块可以是存储器。The storage module may be a memory.

通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他设备交互的设备。Specifically, the communication module may be a device that interacts with other devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.

在一个实施例中,当处理模块为处理器,存储模块为存储器,通信模块为通信接口时,本实施例所涉及的报文传输设备可以为具有图2所示结构的通信设备。In one embodiment, when the processing module is a processor, the storage module is a memory, and the communication module is a communication interface, the packet transmission device involved in this embodiment may be a communication device with the structure shown in FIG. 2 .

在一种实现方式中,本报文传输设备中包括的上述各个模块等可以为存储器中存储的计算机程序,并由处理器调用以实现各个模块相应的执行功能。In an implementation manner, the above-mentioned modules and the like included in the message transmission device may be computer programs stored in a memory, and invoked by a processor to implement corresponding execution functions of each module.

根据以上内容可知,本申请实施例提供的通信系统包括:第一节点和第二节点,第一节点和第二节点之间建立有多个BGP连接。该第一节点可以包括图5所示的报文传输设备。According to the above content, it can be seen that the communication system provided by the embodiment of the present application includes: a first node and a second node, and multiple BGP connections are established between the first node and the second node. The first node may include the packet transmission device shown in FIG. 5 .

该通信系统还可以包括除第一节点和第二节点之外的其他节点,本申请实施例在此不做赘述。The communication system may further include other nodes except the first node and the second node, which will not be described in detail here in this embodiment of the present application.

本申请实施例提供了一种计算机存储介质,所述存储介质内存储有计算机程序;所述计算机程序在计算机上运行时,使得计算机执行本申请实施例提供的任一种报文传输方法中由第一节点执行的方法。An embodiment of the present application provides a computer storage medium, and a computer program is stored in the storage medium; when the computer program runs on a computer, the computer executes any one of the message transmission methods provided by the embodiment of the present application. The method executed by the first node.

本申请实施例还提供了一种包含指令的计算机程序产品,当计算机程序产品在报文传输设备上运行时,使得报文传输设备执行本申请实施例提供的任一种报文传输方法中由第一节点执行的方法。The embodiment of the present application also provides a computer program product containing instructions, when the computer program product runs on the message transmission device, the message transmission device is made to execute any one of the message transmission methods provided in the embodiments of the present application. The method executed by the first node.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现,所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、计算机网络、或者其他可编程装置。In the above embodiments, all or part of them may be implemented 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 comprising one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer may be a general purpose computer, a computer network, or other programmable devices.

所述计算机指令可以存储在计算机的可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者包含一个或多个可用介质集成的服务器、数据中心等数据存储装置。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质,或者半导体介质(例如固态硬盘)等。The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data The center transmits to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium (for example, a solid-state hard disk).

在本申请中,术语“第一”和“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。术语“至少一个”指一个或多个,“多个”指两个或两个以上,除非另有明确的限定。In the present application, the terms "first" and "second" etc. are used for descriptive purposes only, and should not be construed as indicating or implying relative importance. The term "at least one" means one or more, and "plurality" means two or more, unless otherwise clearly defined.

本申请实施例提供的方法实施例和设备实施例等不同类型的实施例均可以相互参考,本申请实施例对此不做限定。Different types of embodiments such as method embodiments and device embodiments provided in the embodiments of the present application may refer to each other, and the embodiments of the present application do not limit this.

本申请实施例提供的方法实施例操作的先后顺序能够进行适当调整,操作也能够根据情况进行相应增减,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。The sequence of operations in the method embodiments provided in the embodiments of this application can be appropriately adjusted, and the operations can also be increased or decreased according to the situation. Any person familiar with the technical field can easily think of changes within the technical scope disclosed in this application. Methods should be covered within the scope of protection of the present application, so they will not be repeated here.

在本申请提供的相应实施例中,应该理解到,所揭露的系统和设备等可以通过其它的构成方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性或其它的形式。In the corresponding embodiments provided in the present application, it should be understood that the disclosed systems and devices may be implemented in other configurations. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules can be combined or integrated into another A system, or some feature, can be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元描述的部件可以是或者也可以不是物理单元,既可以位于一个地方,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component described as a unit may or may not be a physical unit, and may be located in one place or distributed to multiple devices. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。The above is only a specific embodiment of the application, but the scope of protection of the application is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the scope of the technology disclosed in the application. Modifications or replacements, these modifications or replacements shall be covered within the scope of protection of this application.

Claims (13)

1.一种报文传输方法,其特征在于,所述方法由第一节点执行,所述第一节点与第二节点建立有多个边界网关协议BGP连接,所述方法包括:1. A message transmission method, characterized in that, the method is performed by the first node, and the first node and the second node are set up with a plurality of Border Gateway Protocol BGP connections, and the method comprises: 获得网络层可达信息NLRI报文;Obtain the network layer reachability information NLRI message; 在所述多个BGP连接中确定部分BGP连接;determining a portion of BGP connections among the plurality of BGP connections; 通过所述部分BGP连接向所述第二节点发送所述NLRI报文。Send the NLRI message to the second node through the part of the BGP connection. 2.根据权利要求1所述的方法,其特征在于,所述部分BGP连接包括:至少两个BGP连接。2. The method according to claim 1, wherein the partial BGP connections comprise: at least two BGP connections. 3.根据权利要求1或2所述的方法,其特征在于,所述部分BGP连接包括:所述多个BGP连接中带宽较高的至少一个BGP连接;3. The method according to claim 1 or 2, wherein the partial BGP connections comprise: at least one BGP connection with higher bandwidth among the plurality of BGP connections; 所述部分BGP连接包括:所述多个BGP连接中报文传输质量较高的至少一个BGP连接;The part of BGP connections includes: at least one BGP connection with higher message transmission quality among the multiple BGP connections; 或者,所述部分BGP连接包括:所述多个BGP连接中地址较小的至少一个BGP连接。Alternatively, the partial BGP connections include: at least one BGP connection with a smaller address among the multiple BGP connections. 4.根据权利要求1至3任一所述的方法,其特征在于,所述获得NLRI报文,包括:4. The method according to any one of claims 1 to 3, wherein said obtaining the NLRI message comprises: 生成或接收所述NLRI报文。Generate or receive the NLRI message. 5.根据权利要求1至4任一所述的方法,其特征在于,所述第一节点和所述第二节点属于同一自治系统AS。5. The method according to any one of claims 1 to 4, wherein the first node and the second node belong to the same autonomous system (AS). 6.一种报文传输设备,其特征在于,所述报文传输设备属于第一节点,所述第一节点与第二节点建立有多个边界网关协议BGP连接,所述报文传输设备包括:6. A message transmission device, characterized in that, the message transmission device belongs to a first node, and the first node and the second node have a plurality of border gateway protocol BGP connections, and the message transmission device includes : 获得模块,用于获得网络层可达信息NLRI报文;An obtaining module, configured to obtain a network layer reachability information NLRI message; 确定模块,用于在所述多个BGP连接中确定部分BGP连接;A determining module, configured to determine some BGP connections among the plurality of BGP connections; 发送模块,用于通过所述部分BGP连接向所述第二节点发送所述NLRI报文。A sending module, configured to send the NLRI message to the second node through the partial BGP connection. 7.根据权利要求6所述的报文传输设备,其特征在于,所述部分BGP连接包括:至少两个BGP连接。7. The packet transmission device according to claim 6, wherein the part of BGP connections comprises: at least two BGP connections. 8.根据权利要求6或7所述的报文传输设备,其特征在于,所述部分BGP连接包括:所述多个BGP连接中带宽较高的至少一个BGP连接;8. The packet transmission device according to claim 6 or 7, wherein the partial BGP connections include: at least one BGP connection with higher bandwidth among the multiple BGP connections; 所述部分BGP连接包括:所述多个BGP连接中报文传输质量较高的至少一个BGP连接;The part of BGP connections includes: at least one BGP connection with higher message transmission quality among the multiple BGP connections; 或者,所述部分BGP连接包括:所述多个BGP连接中地址较小的至少一个BGP连接。Alternatively, the partial BGP connections include: at least one BGP connection with a smaller address among the multiple BGP connections. 9.根据权利要求6至8任一所述的报文传输设备,其特征在于,所述获得模块用于:9. The message transmission device according to any one of claims 6 to 8, wherein the obtaining module is used for: 生成或接收所述NLRI报文。Generate or receive the NLRI message. 10.根据权利要求6至9任一所述的报文传输设备,其特征在于,所述第一节点和所述第二节点属于同一自治系统AS。10. The packet transmission device according to any one of claims 6 to 9, wherein the first node and the second node belong to the same autonomous system (AS). 11.一种通信设备,其特征在于,所述通信设备包括:处理器和存储器,所述存储器中存储有程序;11. A communication device, characterized in that the communication device comprises: a processor and a memory, and a program is stored in the memory; 所述处理器用于调用所述存储器中存储的程序,以使得所述通信设备执行如权利要求1至5任一项所述的报文传输方法。The processor is used to call the program stored in the memory, so that the communication device executes the message transmission method according to any one of claims 1 to 5. 12.一种通信系统,其特征在于,所述通信系统包括:第一节点和第二节点,所述第一节点和所述第二节点之间建立有多个边界网关协议BGP连接,所述第一节点包括权利要求6至10任一所述的报文传输设备。12. A communication system, characterized in that the communication system comprises: a first node and a second node, a plurality of Border Gateway Protocol BGP connections are established between the first node and the second node, the The first node comprises the message transmission device described in any one of claims 6 to 10. 13.一种计算机存储介质,其特征在于,所述计算机存储介质内存储有计算机程序;13. A computer storage medium, wherein a computer program is stored in the computer storage medium; 所述计算机程序在计算机上运行时,使得计算机执行权利要求1至5任一所述的报文传输方法。When the computer program runs on the computer, the computer executes the message transmission method described in any one of claims 1 to 5.
CN202110539694.6A 2021-05-18 2021-05-18 Message transmission method and device, communication system Pending CN115378861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110539694.6A CN115378861A (en) 2021-05-18 2021-05-18 Message transmission method and device, communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110539694.6A CN115378861A (en) 2021-05-18 2021-05-18 Message transmission method and device, communication system

Publications (1)

Publication Number Publication Date
CN115378861A true CN115378861A (en) 2022-11-22

Family

ID=84059387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110539694.6A Pending CN115378861A (en) 2021-05-18 2021-05-18 Message transmission method and device, communication system

Country Status (1)

Country Link
CN (1) CN115378861A (en)

Similar Documents

Publication Publication Date Title
CN106375231B (en) A kind of flow switching method, equipment and system
US11611509B2 (en) Communication method, communications device, and communications system
CN101771618B (en) Host routing reachable method and system in access ring of packet transport network
EP3958509A1 (en) Method, apparatus and system for communication between controllers in tsn
US9515927B2 (en) System and method for layer 3 proxy routing
WO2011144082A2 (en) Route calculation method and master node device in virtual network element
WO2022253087A1 (en) Data transmission method, node, network manager, and system
WO2022121707A1 (en) Packet transmission method, device, and system
CN109600326B (en) Method, node and system for forwarding data or message
US12052165B2 (en) Fault diagnosis method and apparatus thereof
WO2020173424A1 (en) Message processing method, and gateway device
CN113872868B (en) Notification message transmission method, device and system and storage medium
JP7273125B2 (en) Method and first network device for transmitting BIERv6 packets
CN112995027B (en) Route publishing method and VTEP node
CN112838982B (en) Message transmission path switching method, device and system
CN113556283A (en) Route management method and tunnel endpoint device
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN102843253A (en) Multi-sub-rack communication device and method and device of communication of multi-sub-rack communication device
CN115378861A (en) Message transmission method and device, communication system
WO2022213783A1 (en) Traffic forwarding method and apparatus
CN116055393A (en) Private line communication method, device and system
CN114079584A (en) Method and device for keeping a client alive
WO2021233168A1 (en) Method and device for sending packet
WO2022194193A1 (en) Method and apparatus for acquiring path
CN116846807A (en) Communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination