WO2023221968A1 - Message transmission method, and network device and communication system - Google Patents

Message transmission method, and network device and communication system Download PDF

Info

Publication number
WO2023221968A1
WO2023221968A1 PCT/CN2023/094468 CN2023094468W WO2023221968A1 WO 2023221968 A1 WO2023221968 A1 WO 2023221968A1 CN 2023094468 W CN2023094468 W CN 2023094468W WO 2023221968 A1 WO2023221968 A1 WO 2023221968A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
message
keep
protocol
alive
Prior art date
Application number
PCT/CN2023/094468
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 WO2023221968A1 publication Critical patent/WO2023221968A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service

Definitions

  • the present application relates to the field of communication technology, and in particular, to a message transmission method, network equipment and communication system.
  • Border gateway protocol is a routing protocol that implements route exchange within or between autonomous systems (AS). Two network devices that exchange BGP messages are called BGP peers or BGP neighbors.
  • a route reflector (RR) based on the BGP protocol can connect multiple BGP devices (i.e. neighbors).
  • BGP protocol messages include keep alive (KA) messages used to maintain BGP connections and BGP update (Update) messages.
  • KA keep alive
  • Update BGP update
  • Various BGP protocol messages are based on first input first output (FIFO). Queued for sending.
  • This application provides a message transmission method that transmits keep-alive messages through the first stream carried by the higher-priority first transport layer protocol, which reduces BGP connection disconnections caused by untimely sending and receiving of keep-alive messages, and can improve Stability of BGP services and reduction of route flapping.
  • the first aspect of the present application provides a message transmission method, including: a first network device sends a first keep-alive message to a second network device through a first flow carried by a first transport layer protocol; the first network device A first routing protocol update message is sent to the second network device through the second flow carried by the second transport layer protocol, and the first keepalive message and the first routing protocol update message both correspond to the first route session, the priority of the first network device sending the first keepalive message through the first flow is higher than the priority of the first network device sending the first routing protocol update message through the second flow. priority.
  • the first transport layer protocol and the second transport layer protocol may or may not be the same.
  • This application provides a message transmission method, because the first network device sends the first keepalive message and the first routing protocol corresponding to the same routing session to the second network device respectively through two streams carried by the transport layer protocol.
  • Update message, and the keep-alive message sent through the first flow carried by the first transport layer protocol has a higher priority. Therefore, it is guaranteed that the first keep-alive message and the first routing protocol update message exist in the same routing session.
  • the first keep-alive message is sent first, the first keep-alive message is sent first, thereby reducing the BGP service interruption caused by the failure of the first keep-alive message to be sent on time due to the first network device sending the first routing protocol update message, and reducing the continuous disconnection between neighbors. and route flapping caused by reconnection.
  • the first network device sends the first keepalive message through the first flow with a higher priority than all routing protocol update messages sent by the first network device. priority of the document.
  • the first network device can establish a connection with a plurality of second network devices.
  • the connection between the first network device and each second network device is The established connections can be maintained through keep-alive messages respectively.
  • the priority of the first keep-alive message sent by the first network device is higher than the priority of all routing protocol update messages, and also That is to say, when multiple second network devices need to send and receive routing protocol update messages due to route changes, the first network device sends the first keep-alive message with the highest priority, and will not cause problems due to sending multiple routing protocol update messages.
  • BGP service interruption caused by the failure of the first keep-alive message to be sent on time reduces route flapping caused by continuous disconnection and reconnection between neighbors.
  • the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is different from the second stream identifier.
  • the first network device sends a first keep-alive message based on the first flow carried by the QUIC protocol, and sends the first route based on the second flow carried by the QUIC protocol.
  • the protocol update message makes the solution applicable to BGP scenarios carried on the QUIC protocol.
  • the first transport layer protocol includes muilti-TCP or user datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first transport layer protocol carrying the first flow is the muilti-TCP protocol
  • the second transport layer protocol carrying the second flow is the muilti-TCP protocol
  • the first transport layer protocol carrying the first stream and the second transport layer protocol carrying the second stream are UDP protocols
  • the first transport layer carrying the first stream The first layer protocol is the TCP protocol
  • the second transport layer protocol carrying the second stream is the UDP protocol
  • the first transport layer protocol carrying the first stream is the UDP protocol
  • the second transport layer protocol carrying the second stream is the UDP protocol.
  • the transport layer protocol is TCP protocol.
  • the transport layer protocol corresponding to the solution can be flexibly selected based on needs, so that the method of this application can be applied to BGP scenarios carried on TCP protocol, BGP scenarios carried on UDP protocol, or BGP scenarios carried on mixed transmission of TCP and UDP. middle.
  • the first routing protocol update message includes a BGP update message.
  • the first keep-alive message and the first routing protocol update message correspond to the same routing session, including: the first keep-alive message and the first routing protocol update message.
  • the first BGP update protocol message corresponds to the same BGP session.
  • the first network device includes a backup board; the first network device backs up the first routing protocol update message in the backup board; the first network device backs up the first routing protocol update message in the backup board; The network device does not back up the first keep-alive message in the backup board.
  • the message transmission method provided by this application in the scenario where the same network device has a main board and a backup board, the first network device does not back up the keep-alive messages in the backup board, which can reduce the waste of network device processing resources and improve the processing capability of the network device. .
  • the first network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
  • the first network device has a main board and a backup board. After the main board and the backup board are switched, the routing protocol update message can be transmitted based on the original channel, and the first network device will be created to transmit the first keep-alive message. For the keep-alive channel, the first keep-alive message is sent first.
  • a second aspect of the present application provides a message transmission method, including: a second network device receiving a first keep-alive message sent by a first network device through a first stream carried by a first transport layer protocol; the second network device The device communicates through the second transport layer The second flow carried by the protocol receives the first routing protocol update message sent by the first network device, and the first keep-alive message and the first routing protocol update message both correspond to the first routing session, so The priority of the second network device in processing the first keep-alive message received through the first flow is higher than the priority of the second network device in processing the first routing protocol update message.
  • This application provides a message transmission method.
  • the second network device receives the first keep-alive message and the first routing protocol sent by the first network device corresponding to the same routing session through two streams carried by the transport layer protocol. update message, and the priority of processing the keep-alive message received through the first flow is higher. Therefore, it can be guaranteed that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first one will be processed first. keep-alive messages, thereby reducing BGP service interruption caused by the failure of the first keep-alive message to be received on time due to the second network device processing routing protocol update messages, and reducing route flapping caused by continuous disconnection and reconnection between neighbors.
  • the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device through the third stream.
  • the priority of the routing protocol update message received by the second stream is not limited to the third stream.
  • the second network device can establish connections with multiple first network devices, and the connections established by the second network device and each first network device can be maintained through keep-alive messages respectively.
  • the priority of the second network device receiving and processing the first keepalive message is higher than the priority of all routing protocol update messages. That is to say, when multiple first network devices send routing protocols to the second network device due to route changes, When updating the message, the second network device has the highest priority in processing the first keep-alive message. It will not interrupt the BGP service due to the failure of the first keep-alive message to be sent on time due to receiving multiple routing protocol update messages, and reduce the BGP service interruption caused by the failure to send the first keep-alive message on time. Route flapping caused by constant disconnection and reconnection between neighbors.
  • the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is different from the second stream identifier.
  • This application provides a message transmission method.
  • the second network device receives the first keep-alive message based on the first flow under the QUIC protocol, and receives the third keep-alive message based on the second flow under the QUIC protocol.
  • a routing protocol update message makes the solution applicable to BGP scenarios carried on the QUIC protocol.
  • the first transport layer protocol includes muilti-TCP or user datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first transport layer protocol carrying the first flow is the muilti-TCP protocol
  • the second transport layer protocol carrying the second flow is the muilti-TCP protocol.
  • the first transport layer protocol carrying the first stream and the second transport layer protocol carrying the second stream are UDP protocols
  • the third transport layer protocol carrying the first stream is the TCP protocol
  • the second transport layer protocol carrying the second stream is the UDP protocol.
  • the transport layer protocol corresponding to the specific implementation method of the solution can be flexibly selected based on needs, so that the method of this application can be applied to BGP scenarios carried on the TCP protocol, BGP scenarios carried on the UDP protocol, or carried on mixed transmission of TCP and UDP. In the BGP scenario.
  • the first routing protocol update message includes a BGP update message.
  • the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  • the second network device sends messages based on the BGP protocol.
  • the first keep-alive message and the first BGP update protocol message both correspond to the same BGP session.
  • the BGP session passes the first keep-alive message. The message is maintained.
  • the second network device includes a backup board; the second network device backs up the first routing protocol update message in the backup board; the second The network device does not back up the first keep-alive message in the backup board.
  • the message transmission method provided by this application can reduce the waste of network device processing resources and improve the processing capabilities of network devices in a scenario where the same network device has a main board and a backup board.
  • the second network device does not back up the keep-alive messages on the backup board.
  • the second network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
  • the second network device has a main board and a backup board. After the main board and the backup board are switched, the routing protocol update message can be transmitted based on the original channel, and the second network device will be created to transmit the first keep-alive message.
  • the keep-alive channel gives priority to the first keep-alive message.
  • a third aspect of the present application provides a first network device, including: a transceiver module, configured to send a first keep-alive message to a second network device through a first flow carried by a first transport layer protocol; the transceiver module further For sending a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol, where the first keep-alive message and the first routing protocol update message both correspond to the first routing protocol update message.
  • a routing session, the first network device sending the first keepalive message through the first flow has a higher priority than the first network device sending the first routing protocol update message through the second flow. priority of the document.
  • the priority of the first network device sending the first keep-alive message through the first flow is higher than that of the first network device sending the first keep-alive message through the second flow.
  • the priority for sending routing protocol update messages is higher than that of the first network device sending the first keep-alive message through the second flow.
  • the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is different from the second stream identifier.
  • the first transport layer protocol includes muilti-TCP or user datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first routing protocol update message includes a BGP update message.
  • the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  • the first network device includes a backup board; the first network device further includes: a backup module for backing up the first routing protocol in the backup board Update message; the backup module is also configured for the first network device not to back up the first keep-alive message in the backup board.
  • the first network device further includes: a processing module configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first Keep alive message.
  • a fourth aspect of the present application provides a second network device, including: a transceiver module configured to receive a first keep-alive message sent by the first network device through a first stream carried by the first transport layer protocol; the transceiver module , further configured to receive the first routing protocol update message sent by the first network device through the second stream carried by the second transport layer protocol, the first keep-alive message and the first routing protocol update message are corresponding to the first routing session, the second network device processes the The priority of the first keep-alive message received by the first flow is higher than the priority of the second network device processing the first routing protocol update message.
  • the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device through the third stream.
  • the priority of the routing protocol update message received by the second stream is not limited to the third stream.
  • the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is different from the second stream identifier.
  • the first transport layer protocol includes muilti-TCP or user datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first routing protocol update message includes a BGP update message.
  • the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  • the second network device includes a backup board; the second network device further includes: a backup module for backing up the first routing protocol in the backup board Update message; the backup module is also configured not to back up the first keep-alive message in the backup board.
  • the first network device further includes: a processing module configured to create a keep-alive channel after the active/standby switchover, the keep-alive channel being used to transmit the first Keep alive message.
  • the fifth aspect of the present application provides a network device, including: a memory, computer-readable instructions are stored in the memory; and a processor connected to the memory, when the computer-readable instructions are executed by the processor, The network device is caused to implement the method described in any one of the above first aspect, the second aspect, and various possible implementation manners.
  • a sixth aspect of the present application provides a computer program product, which includes computer-readable instructions.
  • the computer-readable instructions When the computer-readable instructions are run on a computer, the computer is caused to perform the above-mentioned first aspect, second aspect, and various possibilities. The method described in any of the implementation methods.
  • a seventh aspect of the present application provides a computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, they cause the computer to execute the above-mentioned first aspect, The method described in any one of the second aspect and various possible implementations.
  • An eighth aspect of this application provides a chip including a processor.
  • the processor is configured to read and execute the computer program stored in the memory to perform the method described in any one of the above first aspect, the second aspect, and various possible implementations.
  • the chip should include a memory, and the memory and the processor are connected to the memory through circuits or wires.
  • the chip also includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used to receive data and/or information that needs to be processed.
  • the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing results through the communication interface.
  • the communication interface may be an input-output interface.
  • a ninth aspect of the present application provides a communication system, including a first network device and a second network device, wherein the first network device sends a first flow carried by a first transport layer protocol to the second network device.
  • the second flow sends the first routing protocol update message with a priority, and the second network device processes the first keepalive message received through the first flow with a higher priority
  • the first network device is also configured to perform the method described in any one of the above first aspect and various possible implementations, and the second network device is further For performing the method described in any one of the above second aspect and various possible implementations.
  • the technical effects brought about by the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect or the ninth aspect and any of the implementation methods can be found in the first aspect.
  • the technical effects brought about by the corresponding implementation methods in the first aspect and the second aspect will not be described again here.
  • the network device transmits the first keep-alive message and the first routing protocol update message respectively through two streams, in which the priority of sending and receiving the first keep-alive message is higher than the first routing protocol update
  • the priority of the message therefore, can ensure that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first keep-alive message will be transmitted first, reducing the delay of the first keep-alive message.
  • BGP service interruption caused by sending and receiving can reduce route flapping caused by continuous disconnection, reconnection and disconnection between neighbors.
  • Figure 1 is an application scenario architecture diagram of the message transmission method provided by the embodiment of the present application.
  • Figure 2 is a schematic diagram of an embodiment of the message transmission method in the embodiment of the present application.
  • Figure 3a is a schematic diagram of a packet sent by a network device in an embodiment of the present application.
  • Figure 3b is a schematic diagram of a network device receiving a message in an embodiment of the present application.
  • Figure 4 is a schematic diagram of another embodiment of the message transmission method in the embodiment of the present application.
  • Figure 5 is a schematic diagram of packet transmission within a network device in an embodiment of the present application.
  • Figure 6 is a schematic diagram of the message sending process in the active and standby scenarios in the embodiment of the present application.
  • Figure 7 is a schematic diagram of the message receiving process in the active and standby scenarios in the embodiment of the present application.
  • Figure 8 is a schematic diagram of a network device in an embodiment of the present application.
  • Figure 9 is a schematic diagram of another embodiment of the network device in the embodiment of the present application.
  • Figure 10 is a schematic diagram of another embodiment of the network device in the embodiment of the present application.
  • the embodiment of the present application provides a message transmission method for transmitting keep-alive messages and routing protocol update messages through two streams respectively, and the keep-alive messages are transmitted with priority, thus reducing the delay of keep-alive messages on time.
  • BGP service interruption caused by sending and receiving.
  • Border gateway protocol (BGP)
  • BGP is a routing protocol that implements route exchange between network devices within an autonomous system (AS) or between ASs.
  • AS autonomous system
  • Two network devices running BGP can call each other neighbors. After establishing a neighbor relationship, they can exchange routing information. Usually, complete information is only exchanged once at startup. Subsequently, only triggered updates are required to notify network changes.
  • BGP defines four message types in order to realize its functions:
  • a network device When a network device receives an OPEN message from a neighbor, it will send a keep alive (KA) message. Before exchanging routing information between network devices, both parties must send an OPEN message and receive a KEEPALIVE message.
  • the KEEPALIVE message can be used as a confirmation of the OPEN message.
  • the BGP neighbors After BGP neighbors have established a transport layer protocol connection and successfully received the KEEPALIVE confirmation message for the OPEN message, the BGP neighbors can use UPDATE messages to advertise network reachability information.
  • the content of the announcement can be a new reachable destination network, or it can be an announcement to revoke the reachability of some original destination networks.
  • Keep-alive messages are used to regularly test network connectivity between two BGP neighbors and confirm that the BGP neighbor device sending the keep-alive messages is working normally. If the transport layer protocol that carries the connection is the TCP protocol, since the TCP protocol itself does not provide an automatic connection status notification mechanism, regular exchange of keep-alive messages between BGP neighbors can enable BGP neighbor devices to detect whether the TCP connection is working properly.
  • a BGP device When a BGP device detects an error (or needs to take control), it can use notification messages to notify its BGP neighbors. Once an error is detected, the BGP device will send a notification message to the BGP neighbor, and then disconnect and terminate the communication.
  • IBGP Internal/Interior BGP
  • EBGP External/Exterior BGP
  • one network device acts as a route reflector
  • other network devices act as clients to establish IBGP connections with the route reflector.
  • Route reflectors pass between network devices (Reflect) routing information, so that there is no need to establish BGP connections between network devices, and only need to establish connections with route reflectors, reducing the number of connections.
  • the application scenario architecture diagram includes a network device 1 and multiple network devices 2 (including network devices 2a to 2n).
  • Network device 1 and multiple network devices 2 belong to network devices in the same autonomous system. Multiple network devices 2 are respectively connected to network device 1 for communication.
  • Network device 1 is a router or switch.
  • network device 1 serves as a route reflector, hereinafter referred to as a reflector.
  • network device 1 and network device 2 communicate through the BGP protocol, and network device 1 and network device 2 are peers or neighbors of each other.
  • the network device 2 may be different devices.
  • the network device 2 may be the same as the enterprise branch client device ( customer premises equipment (CPE); in the backbone network or metropolitan area network, the network device 2 can be a router, specifically a provider edge equipment (provider edge, PE).
  • CPE customer premises equipment
  • PE provider edge equipment
  • the BGP protocol is based on the transport layer TCP protocol to send and receive BGP messages. After the TCP connection is established, the BGP messages are transmitted based on the TCP connection. Generally speaking, in BGP messages, except for keep-alive messages that need to be sent periodically, the rest of the BGP messages are sent in a triggered manner. Various BGP messages are queued for transmission based on the first input first output (FIFO) method.
  • FIFO first input first output
  • network device 1 has a large number of neighbors (that is, it establishes BGP connections with a large number of network devices 2, and network device 1 and network device 2 can send and receive messages based on the BGP protocol). For example, network device 1 is connected to 1,000 network devices 2. If some of the second network devices cause routing updates due to network changes or other reasons, the first network device needs to send 1,000 BGP update messages to 1,000 network devices 2 respectively. At the same time, keep-alive messages need to be sent regularly between each pair of the first network device and the second network device, and BGP update messages and keep-alive messages are queued in a FIFO manner through a unique message sending queue.
  • the keep-alive time and protection period between network devices are short (for example, the keep-alive period is 1 second and the keep-alive time is 3 seconds), the timeliness requirements for the transmission of keep-alive messages are higher. .
  • the keepalive messages are not transmitted in time, network devices will be disconnected, causing BGP service interruption. Repeated disconnection and reconnection between network devices will cause route flapping.
  • inventions of the present application provide a message transmission method and network device.
  • the first network device uses a first flow carried by a first transport layer protocol and a second flow carried by a second transport layer protocol.
  • Sending keep-alive messages first through offloading can reduce the delay in sending keep-alive messages in time. The resulting BGP service interruption and route flapping.
  • the message sending method 310 includes steps S311-S312:
  • the first network device sends the first keepalive message to the second network device through the first flow carried by the first transport layer protocol;
  • the first network device Before the first network device sends a message to the second network device, the first network device needs to establish a first routing session with the second network device.
  • the routing session is specifically a BGP session.
  • the routing session can also be a BGP Monitoring Protocol (BGP Monitoring Protocol, BMP) session, a BGP link state BGP-LS (BGP Link-state) protocol session, a flow rule (BGP Flow Specification, Flowspec) session, which are not specified here. Make limitations.
  • BGP session (sometimes also referred to as a BGP connection) is established between the first network device and the second network device
  • the first network device and the second network device communicate through the established BGP session.
  • the session sends or receives BGP messages.
  • BGP sessions refer to the description of BGP sessions, which are not listed here.
  • the BGP session is established based on the transport layer connection.
  • TCP is used as the transport layer protocol
  • the TCP port number is 179.
  • BGP messages are transmitted and reliability is guaranteed based on the TCP session.
  • the first network device and the second network device first establish a TCP session, and then confirm the neighbor relationship by sending and receiving open messages, and establish the first routing session.
  • BGP messages corresponding to a BGP session are transmitted through a TCP session, that is, carried in a TCP stream.
  • two TCP sessions need to be established, that is, two TCP flows.
  • the first flow is used to transmit keep-alive messages
  • the second flow is used to transmit routing update messages.
  • the keep-alive message transmitted by the first stream and the route update message transmitted by the second stream both correspond to the first routing session, and the first transport layer protocol carrying the first stream and the transport layer protocol carrying the second stream.
  • the first transport layer protocol and the second transport layer protocol are both QUIC protocols.
  • the first network device sends keep-alive messages and route update messages in offload based on the QUIC protocol.
  • the first stream identifier of the first stream is the same as the first stream identifier of the second stream.
  • the second stream identifier is different and is suitable for BGP over QUIC scenarios.
  • the first transport layer protocol and the second transport layer protocol are muilti-TCP
  • the two flows correspond to different five-tuples
  • the first destination port number of the first flow is the same as the first destination port number of the second flow.
  • the second destination port number is different.
  • the first network device sends a first keep-alive message to the second network device through the first port, and the destination port number carried in the keep-alive message corresponds to the second port of the second network device; the first network device sends the first keep-alive message to the second network device through the first port.
  • the three ports send a first routing protocol update message to the second network device, and the destination port number carried in the first routing protocol update message corresponds to the fourth port of the second network device.
  • the first transport layer protocol is UDP and the second transport layer protocol is TCP.
  • the keep-alive message is sent based on the UDP protocol, and the routing protocol update message is sent based on the TCP protocol.
  • the first network device sends the first keep-alive message to the second network device through the first port; the destination port number carried in the keep-alive message corresponds to At the second port of the second network device; the first network device sends a first routing protocol update message to the second network device through the first port based on the user datagram protocol.
  • the first network device needs to send keep-alive messages periodically to maintain the BGP neighbor connection.
  • the second network The device will also periodically send keepalive messages to the first network device to maintain the BGP neighbor connection.
  • the first network device sends a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol.
  • the first keepalive message corresponds to the first routing protocol update message.
  • the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends the first routing protocol through the second flow. Update the priority of the message;
  • the first routing protocol update message is triggered by an event and is sent. For example, when the network equipment network of the autonomous system changes and the route needs to be updated, the first network equipment will send the first routing protocol update message to the second network equipment through the second flow. Routing protocol update message, the second network device receives the first routing protocol update message sent by the first network device through the second stream.
  • the first network device and the second network device establish a connection based on the BGP protocol, the first routing protocol update message is a BGP update message, and the first keepalive message is the first BGP update protocol message.
  • the documents correspond to the same BGP session.
  • step S311 is executed before step S312.
  • the first keep-alive message is queued and sent in the first queue through the first channel
  • the first routing protocol update message is queued and sent in the second queue through the second channel.
  • the first network device sends messages based on the queue scheduling algorithm of strict priority (strict priority, SP), in which the keep-alive messages of the first queue are given priority. Send, when there is no keep-alive message to be sent in the first queue, send the first routing protocol update message in the second queue.
  • strict priority strict priority
  • the first network device sends a keep-alive message of the first queue and a first routing protocol update message of the second queue based on a weighted round robin (WRR) algorithm, where the first queue The weight of the keep-alive packet is higher than the weight of the first routing protocol update packet in the second queue.
  • WRR weighted round robin
  • the first network device may be connected to multiple second network devices.
  • the first network device may need to send the first route to multiple second network devices.
  • Protocol update message at this time, the priority of the first network device sending the first keep-alive message through the first flow is higher than the priority of the first network device sending the routing protocol update message through the second flow.
  • the keep-alive message and the first routing protocol update message are respectively sent through the first flow and the second flow, and the keep-alive message is sent based on a higher priority, so that Reduce BGP service interruption due to the failure of the first keepalive message to be sent on time due to the first network device sending the first routing protocol update message, and reduce route flapping caused by continuous disconnection and reconnection between neighbors.
  • the timeliness of keep-alive message transmission is required to be higher.
  • the priority of the first network device sending the keep-alive message to the second network device through the first flow is higher than the priority of sending the routing protocol update message through the second flow. Higher, it can ensure that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first keep-alive message will be sent first, thus ensuring the timeliness of sending keep-alive messages and reducing BGP Service interruption reduces route flapping caused by continuous disconnection and reconnection between neighbors.
  • the first network device In a massive neighbor scenario, the first network device is connected to a large number of second network devices, and the first network device needs to transmit a large number of packets. If some second network devices cause routing updates due to network changes or other reasons, the first network device The device needs to send multiple routing protocol update messages. In the message transmission method provided by the embodiment of this application, the first network device passes all The priority of the keep-alive message sent by the first flow to the second network device is higher than the priority of the first routing protocol update message sent by the second flow. Therefore, the timeliness of sending the keep-alive message can be guaranteed. Reduce BGP service interruption and reduce route flapping caused by continuous disconnection and reconnection between neighbors.
  • the message receiving method 320 includes steps S321-S322:
  • the second network device receives the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol;
  • the second network device needs to establish a first routing session with the first network device.
  • the routing session is specifically a BGP session.
  • the routing session can also be a BGP Monitoring Protocol (BGP Monitoring Protocol, BMP) session, a BGP link state BGP-LS (BGP Link-state) protocol session, a flow rule (BGP Flow Specification, Flowspec) session, which are not specified here. Make limitations.
  • a BGP session (sometimes also referred to as a BGP connection) is established between the first network device and the second network device
  • the BGP session established between the first network device and the second network device is The session sends or receives BGP messages.
  • BGP sessions refer to the description of BGP sessions, which are not listed here.
  • the BGP session is established based on the transport layer connection.
  • TCP is used as the transport layer protocol
  • the TCP port number is 179.
  • BGP messages are transmitted and reliability is guaranteed based on the TCP session.
  • the second network device first establishes a TCP session with the first network device, and then confirms the neighbor relationship by sending and receiving open messages, and establishes the first routing session.
  • BGP messages corresponding to a BGP session are transmitted through a TCP session, that is, carried in a TCP stream.
  • two TCP sessions need to be established, that is, two TCP flows.
  • the first flow is used to transmit keep-alive messages
  • the second flow is used to transmit routing update messages.
  • the keep-alive message transmitted by the first stream and the route update message transmitted by the second stream both correspond to the first routing session, and the first transport layer protocol carrying the first stream and the transport layer protocol carrying the second stream.
  • the first transport layer protocol and the second transport layer protocol are both QUIC protocols.
  • the second network device offloads the keep-alive messages and routing update messages based on the QUIC protocol.
  • the first flow identifier of the first flow is the same as the first flow identifier of the second flow.
  • the second stream identifier is different and is suitable for BGP over QUIC scenarios.
  • the first transport layer protocol and the second transport layer protocol are muilti-TCP, the two flows correspond to different five-tuples, and the first destination port number of the first flow is the same as the first destination port number of the second flow.
  • the second destination port number is different.
  • the second network device receives the first keepalive message sent by the first network device through the second port; the second network device receives the first routing protocol update message sent by the first network device through the fourth port.
  • the first transport layer protocol is UDP and the second transport layer protocol is TCP.
  • the keep-alive message is sent based on the UDP protocol, and the routing protocol update message is sent based on the TCP protocol.
  • the second network device receives the keep-alive message sent by the first network device through the first port; the second network device receives the keep-alive message based on the user datagram protocol through the first port.
  • the first port receives a first routing protocol update message sent by the first network device.
  • the second network device needs to send keep-alive messages periodically to maintain the BGP neighbor connection.
  • the first network device will also periodically send keepalive messages to the second network device to maintain the BGP neighbor connection.
  • the second network device receives the first path sent by the first network device through the second stream carried by the second transport layer protocol.
  • the first keepalive message and the first routing protocol update message both correspond to a first routing session, and the second network device processes the first message received through the first flow.
  • the priority of the keep-alive message is higher than the priority of the second network device in processing the first routing protocol update message;
  • the first routing protocol update message is triggered by an event and is sent. For example, when the network device network of the autonomous system changes and the route needs to be updated, the first network device sends the first routing protocol update message to the second network device.
  • the second network device receives the first routing protocol update message sent by the first network device through the second stream.
  • the second network device establishes a connection with the first network device based on the BGP protocol, the first routing protocol update message is a BGP update message, and the first keepalive message is the first BGP update protocol message.
  • the documents correspond to the same BGP session.
  • step S321 is executed before step S322.
  • the second network device receives messages based on a strict priority (strict priority, SP) queue scheduling algorithm, in which the first queue Keep-alive messages are received with priority.
  • a strict priority strict priority
  • SP strict priority
  • the first routing protocol update message transmitted by the second stream is received.
  • the second network device receives a keep-alive message based on the first stream transmission and receives a first routing protocol update message based on the second stream transmission based on a weighted round robin (WRR) algorithm, where , the weight of the keep-alive message based on the first stream transmission is higher than the weight of the first routing protocol update message based on the second stream transmission.
  • WRR weighted round robin
  • the first network device may be connected to multiple second network devices.
  • the first network device may need to send the first route to multiple second network devices.
  • Protocol update message at this time, the priority of the first network device sending the first keep-alive message through the first flow is higher than the priority of the first network device sending the routing protocol update message through the second flow.
  • the priority of the second network device receiving the first keep-alive message through the first flow is higher than the priority of the second network device receiving the routing protocol update message.
  • This embodiment of the present application proposes a message transmission method.
  • This method can be applied to the scenario shown in Figure 1, where network device 1 is equivalent to network device 1 in the application scenario shown in Figure 1, and network device 2 and network device 3 can be network device 1 in the application scenario shown in Figure 1.
  • the method 400 includes:
  • Network device 1 and network device 2 establish a first routing session
  • Network device 1 and network device 3 establish a second routing session
  • step S401 and step S402 reference may be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
  • Network device 1 sends the first keepalive message to network device 2 through the first flow carried by the first transport layer protocol;
  • step S403 For the specific implementation method of step S403, reference can be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
  • Network device 2 receives the first keep-alive message sent by network device 1 through the first flow 1 carried by the first transport layer protocol;
  • step S404 For the specific implementation method of step S404, reference can be made to step S321 in the embodiment corresponding to Figure 3b, which will not be described again here.
  • Network device 1 sends the second keepalive message to network device 3 through the second flow carried by the first transport layer protocol;
  • step S405 For the specific implementation method of step S405, reference can be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
  • Network device 1 sends a first keep-alive message to network device 2 through the first flow according to the keep-alive cycle, and network device 1 sends a second keep-alive message to network device 3 through the second flow. It can be understood that steps S403 and S405 The execution sequence is not limited here. Step S403 may be executed first, and then step S405 may be executed, or step S405 may be executed first and then step S403.
  • Network device 2 receives the second keep-alive message sent by network device 1 through the second stream carried by the first transport layer protocol;
  • step S406 For the specific implementation method of step S406, reference can be made to step S321 in the embodiment corresponding to Figure 3b, which will not be described again here.
  • the network device 1 can generate and send the first keep-alive message and the second keep-alive message through the first queue through the same channel.
  • Network device 1 sends the first routing protocol update message to network device 2 through the third flow carried by the second transport layer protocol;
  • the network device 1 When the sending of the first routing protocol update message is triggered, the network device 1 sends the first routing protocol update message to the network device 2 through the third flow.
  • the network device 1 sends the first routing protocol update message to the network device 2 through the third flow.
  • Network device 2 receives the first routing protocol update message sent by network device 1 through the third stream carried by the second transport layer protocol;
  • step S408 For the specific implementation method of step S408, reference can be made to step S322 in the embodiment corresponding to Figure 3b, which will not be described again here.
  • Network device 1 sends a second routing protocol update message to network device 3 through the fourth flow carried by the second transport layer protocol;
  • the network device 1 When the sending of the second routing protocol update message is triggered, the network device 1 sends the second routing protocol update message to the network device 3 through the fourth flow.
  • the network device 1 sends the second routing protocol update message to the network device 3 through the fourth flow.
  • the specific implementation method please refer to step S322 in the corresponding embodiment of Figure 3b, where No longer.
  • Network device 3 receives the second routing protocol update message sent by network device 1 through the fourth stream carried by the second transport layer protocol;
  • step S410 For the specific implementation method of step S410, reference can be made to step S322 in the embodiment corresponding to Figure 3b, which will not be described again here.
  • network device 1 since network device 1 has a higher priority for sending keep-alive messages, if there are a first keep-alive message, a second first keep-alive message, a first routing protocol update message and a first keep-alive message in the sending queue, When two routing protocol update messages are sent, the first keep-alive message is sent prior to the first routing protocol update message and the second routing protocol update message. Similarly, the second routing protocol update message is also sent prior to the first routing protocol update message. message and the second routing protocol update message are sent. In another possible implementation, the keep-alive message is sent with priority over all routing protocol update messages. That is to say, in this embodiment, the first keep-alive message has priority over the first routing protocol update message and the first routing protocol update message. The second routing protocol message is sent, and the second keepalive message takes precedence over the first routing protocol update message and the second routing protocol message.
  • step S407 and step S409 are not limited here. Step S407 may be executed first and then step S409, or step S409 may be executed first and then step S407.
  • the message transmission process within the network device is introduced below. Please refer to Figure 5.
  • the method 500 can correspond to any network device in the scenario shown in Figure 1.
  • the network device transmits messages based on the TCP/IP protocol and the BGP protocol.
  • the network device processes messages through two channels, where the first channel is used to process keep-alive messages, and the second channel is used to process keep-alive messages.
  • the channel is used to process routing protocol update messages.
  • Keep-alive messages in the first channel are sent and received through the first stream carried by the first transport layer protocol.
  • Routing protocol update messages in the second channel are sent and received through the third stream carried by the second transport layer protocol. Second-stream transmission and reception, the keep-alive message and the routing protocol update message correspond to the same routing session, where the first channel has a higher priority.
  • the first network device has a main board and a backup board, and the main board of the network device is used to pass all Describing the packets received by the second stream, in the existing technology, before sending the packet, all packets need to be backed up by the backup board. After the network device receives the packet, all packets also need to be backed up by the backup board and then processed. . Since all messages sent and received by the first network device need to be backed up by the backup board, when the number of messages is large, congestion is prone to occur, affecting the timeliness of sending and receiving keep-alive messages, which may lead to network failure caused by delayed sending and receiving of keep-alive messages. The connection between devices is disconnected, causing business interruption. Please refer to Figure 6 and Figure 7, which respectively show the process of sending packets and receiving packets by network devices in the active and backup scenarios.
  • Figure 6 is a method 600 of active and backup transmission in a first network device.
  • the first network device sends a keep-alive message through the first channel through the first flow carried by the first transport layer protocol, and through the second channel , back up the routing protocol update message to the backup board (601), and then send it through the second stream carried by the second transport layer protocol.
  • keep-alive messages do not need to be backed up by the standby board and can be sent directly, which can improve the efficiency of sending keep-alive messages.
  • the first network device will create a keep-alive channel, and the keep-alive channel is used to transmit the keep-alive message.
  • Figure 7 is a method 700 for active and backup transmission in a second network device.
  • the second network device receives the keep-alive message through the first stream carried by the first transport layer protocol, and transmits it through the first channel in the device;
  • the network device receives the routing protocol update message through the second stream carried by the second transport layer protocol, transmits the routing protocol update message through the second channel within the device, and backs up the routing protocol update message to the backup board (701).
  • keep-alive messages do not need to be backed up by the standby board and can be processed directly, which improves the processing efficiency of keep-alive messages.
  • the second network device will create a keep-alive channel, and the keep-alive channel is used to transmit the keep-alive message.
  • keep-alive messages can be transmitted without being backed up by the standby board, the efficiency of keep-alive message processing can be improved and network devices can be reduced from disconnecting BGP connections due to delayed sending and receiving of keep-alive messages, thus reducing BGP service interruptions.
  • the message transmission method provided by the present application has been introduced above.
  • the first network device and the second network device that implement the message transmission method will be introduced below. Please refer to Figure 8, which shows the first network device in the embodiment of the present application. Schematic diagram of an embodiment.
  • the first network device 800 may be used to perform method 310, method 400, method 500, and method 600 in the above embodiments.
  • the first network device 800 is equivalent to the first network device in the method 310.
  • the first network device 800 is equivalent to the network device 1 in the method 400, and the first network device 800 can be applied to the application scenario shown in Figure 1, For example, it can be the network device 1 in the scenario shown in Figure 1 .
  • a transceiver module 801 configured to send a first keep-alive message to a second network device through a first stream carried by a first transport layer protocol; the transceiver module 801 is also configured to transmit a second stream carried by a second transport layer protocol.
  • the flow sends a first routing protocol update message to the second network device, the first keep-alive message and the first routing protocol update message both correspond to the first routing session, and the first network device passes the The priority of the first keepalive message sent by the first flow is higher than the priority of the first routing protocol update message sent by the first network device through the second flow.
  • the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends the routing protocol update through the second flow. The priority of the message.
  • the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is the same as the first flow identifier of the first flow.
  • the second-rate logo is different for the second-rate.
  • the first transport layer protocol includes multiple transmission control protocol muilti-TCP or user Datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first destination port number of the first flow is different from the second destination port number of the second flow.
  • the first routing protocol update message includes a BGP update message.
  • the first keepalive message and the first BGP update protocol message correspond to the same BGP session.
  • the first network device includes a backup board; the first network device further includes: a backup module 802 for backing up the first routing protocol update message in the backup board ;
  • the backup module 802 is also configured for the first network device not to back up the first keep-alive message in the backup board.
  • the first network device further includes: a processing module 803, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive report. arts.
  • FIG. 9 is a schematic diagram of a second network device in an embodiment of the present application.
  • the second network device 900 may be used to perform method 320, method 400, method 500 or method 700 in the above embodiments.
  • the second network device 900 is equivalent to the second network device in the method 320.
  • the second network device 900 is equivalent to the network device 2 or the network device 3 in the method 400, and the second network device 900 can be applied to the network device shown in Figure 1 In the application scenario, it may be, for example, the network device 2a in the scenario shown in Figure 1 .
  • a transceiver module 901 configured to receive the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol; the transceiver module 901 is also used for receiving the first keep-alive message carried by the second transport layer protocol.
  • the second stream receives the first routing protocol update message sent by the first network device. Both the first keepalive message and the first routing protocol update message correspond to the first routing session.
  • the second network The priority of the device in processing the first keep-alive message received through the first flow is higher than the priority of the second network device in processing the first routing protocol update message.
  • the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device receives through the second flow.
  • the priority of routing protocol update packets are not limited to:
  • the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol
  • the second transport layer protocol includes the QUIC protocol
  • the first flow identifier of the first flow is the same as the first flow identifier of the first flow.
  • the second-rate logo is different for the second-rate.
  • the first transport layer protocol includes muilti-TCP or user datagram protocol UDP
  • the second transport layer protocol includes muilti-TCP or UDP
  • the first flow The first destination port number is different from the second destination port number of the second flow.
  • the first routing protocol update message includes a BGP update message.
  • the first keepalive message and the first BGP update protocol message correspond to the same BGP session.
  • the second network device includes a backup board; the second network device further includes: a backup module configured to back up the first routing protocol update message in the backup board; The backup module 902 is also configured not to back up the first keep-alive message in the backup board.
  • the first network device further includes: a processing module 903, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive report. arts.
  • the above division of various modules of the first network device or the second network device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or it can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
  • ASICs application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • Figure 10 is a schematic diagram of another embodiment of the network device in the embodiment of the present application.
  • the network device 1000 provided in this embodiment may be a switch, a router, or other network device, and the specific device form is not limited in the embodiment of this application.
  • the network device 1000 can be used to perform method 310, method 320, method 400, method 500, method 600 or method 700 in the above embodiments.
  • the network device 1000 is equivalent to the second network device in the method 320.
  • the network device 1000 is equivalent to the network device 1, network device 2 or network device 3 in the method 400.
  • the network device 1000 can be applied to the application shown in Figure 1 In the scenario, it may be, for example, the network device 2a in the scenario shown in Figure 1 .
  • the memory 1002 can be volatile storage or non-volatile storage.
  • the processor 1001 is one or more central processing units (CPUs), which may be single-core CPUs or multi-core CPUs.
  • the processor 1001 can communicate with the memory 1002 to execute a series of instructions in the memory 1002 on the network device 1000 .
  • the network device 1000 also includes one or more wired or wireless network interfaces 1003, such as an Ethernet interface.
  • the network device 1000 may also include one or more power supplies; one or more input and output interfaces, which may be used to connect a monitor, mouse, keyboard, touch screen device or sensor.
  • input and output interfaces are optional components, which may or may not exist, and are not limited here.
  • the process executed by the processor 1001 in the network device 1000 may refer to the method process described in the foregoing method embodiment, and will not be described again here.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication through some interfaces, devices or units. Connection may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .

Abstract

Disclosed in the embodiments of the present application are a message transmission method and a network device, which are used for transmitting a keep-alive message by means of a first stream carried by a first transmission layer protocol, and for transmitting a first routing protocol update message by means of a second stream carried by a second transmission layer protocol, wherein the priority of a network device receiving and transmitting the keep-alive message is higher than the priority of the network device receiving and transmitting the first routing protocol update message. Therefore, the interruption of a BGP service, which results from a failure to process a keep-alive message in a timely manner due to a network device receiving and transmitting a routing protocol update message, may be reduced.

Description

报文传输方法、网络设备和通信系统Message transmission method, network equipment and communication system
本申请要求于2022年5月17日提交中国专利局、申请号为202210540416.7、发明名称为“一种利用BGP Over Quic技术解决海量邻居的方法、设备及系统”的中国专利申请的优先权,以及,于2022年8月17日提交中国国家知识产权局、申请号为202210988619.2、发明名称为“报文传输方法、网络设备和通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requests the priority of the Chinese patent application submitted to the China Patent Office on May 17, 2022, with the application number 202210540416.7 and the invention title "A method, equipment and system for solving massive neighbors using BGP Over Quic technology", and , the priority of a Chinese patent application submitted to the State Intellectual Property Office of China on August 17, 2022, with application number 202210988619.2 and the invention name "Message transmission method, network equipment and communication system", the entire content of which is incorporated by reference in in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种报文传输方法、网络设备和通信系统。The present application relates to the field of communication technology, and in particular, to a message transmission method, network equipment and communication system.
背景技术Background technique
边界网关协议(border gateway protocol,BGP)是实现自治系统(autonomous system,AS)内部或之间的路由交换的路由协议。互通BGP报文的两个网络设备互称BGP对等体(peer)或BGP邻居。Border gateway protocol (BGP) is a routing protocol that implements route exchange within or between autonomous systems (AS). Two network devices that exchange BGP messages are called BGP peers or BGP neighbors.
基于BGP协议的路由反射器(route reflector,RR)可以连接多个BGP设备(即邻居)。BGP协议报文包括用于保持BGP连接的保活(keep alive,KA)报文以及BGP更新(Update)报文等,各种BGP协议报文基于先进先出(first input first output,FIFO)的方式排队进行发送。A route reflector (RR) based on the BGP protocol can connect multiple BGP devices (i.e. neighbors). BGP protocol messages include keep alive (KA) messages used to maintain BGP connections and BGP update (Update) messages. Various BGP protocol messages are based on first input first output (FIFO). Queued for sending.
由于经RR传输的各种BGP协议报文数量大,若出现传输保活报文不及时的情况,将导致RR与邻居断开BGP连接,造成BGP业务中断。进一步地,由于两台网络设备断开连接后需要重连,网络设备间不断地断开重连,将造成BGP路由震荡。Due to the large number of various BGP protocol messages transmitted through the RR, if the keep-alive messages are not transmitted in time, the BGP connection between the RR and the neighbor will be disconnected, causing BGP service interruption. Furthermore, since two network devices need to be reconnected after being disconnected, the network devices are constantly disconnected and reconnected, which will cause BGP route flapping.
发明内容Contents of the invention
本申请提供了一种报文传输方法,通过更高优先级的第一传输层协议承载的第一流传输保活报文,减少了保活报文收发不及时导致的BGP连接断开,可以提升BGP业务的稳定性并减少路由震荡。This application provides a message transmission method that transmits keep-alive messages through the first stream carried by the higher-priority first transport layer protocol, which reduces BGP connection disconnections caused by untimely sending and receiving of keep-alive messages, and can improve Stability of BGP services and reduction of route flapping.
本申请的第一方面提供了一种报文传输方法,包括:第一网络设备通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;所述第一网络设备通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级。需要说明的是,第一传输层协议与第二传输层协议可能相同,也可能不相同。The first aspect of the present application provides a message transmission method, including: a first network device sends a first keep-alive message to a second network device through a first flow carried by a first transport layer protocol; the first network device A first routing protocol update message is sent to the second network device through the second flow carried by the second transport layer protocol, and the first keepalive message and the first routing protocol update message both correspond to the first route session, the priority of the first network device sending the first keepalive message through the first flow is higher than the priority of the first network device sending the first routing protocol update message through the second flow. priority. It should be noted that the first transport layer protocol and the second transport layer protocol may or may not be the same.
本申请提供了一种报文传输方法,由于第一网络设备通过传输层协议承载的两条流分别向第二网络设备发送对应于同一个路由会话的第一保活报文和第一路由协议更新报文,且通过第一传输层协议承载的第一流发送保活报文的优先级更高,因此,可以保证在同一个路由会话存在第一保活报文和第一路由协议更新报文时,优先发送第一保活报文,从而减少由于第一网络设备发送第一路由协议更新报文导致第一保活报文无法按时发送导致的BGP业务中断,减少由于邻居间不断地断开和重新连接造成的路由震荡。This application provides a message transmission method, because the first network device sends the first keepalive message and the first routing protocol corresponding to the same routing session to the second network device respectively through two streams carried by the transport layer protocol. Update message, and the keep-alive message sent through the first flow carried by the first transport layer protocol has a higher priority. Therefore, it is guaranteed that the first keep-alive message and the first routing protocol update message exist in the same routing session. When the first keep-alive message is sent first, the first keep-alive message is sent first, thereby reducing the BGP service interruption caused by the failure of the first keep-alive message to be sent on time due to the first network device sending the first routing protocol update message, and reducing the continuous disconnection between neighbors. and route flapping caused by reconnection.
在第一方面的一种可能的实现方式中,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备发送所有路由协议更新报文的优先级。In a possible implementation of the first aspect, the first network device sends the first keepalive message through the first flow with a higher priority than all routing protocol update messages sent by the first network device. priority of the document.
第一网络设备可与多个第二网络设备建立连接,第一网络设备与每个第二网络设备所建 立的连接均可分别通过保活报文保持,本申请提供的报文传输方法中,第一网络设备发送第一保活报文的优先级高于所有路由协议更新报文的优先级,也就是说,当多个第二网络设备由于路由变化需要收发路由协议更新报文时,第一网络设备发送第一保活报文的优先级最高,不会由于发送多个路由协议更新报文导致第一保活报文无法按时发送导致的BGP业务中断,减少由于邻居间不断地断开和重新连接造成的路由震荡。The first network device can establish a connection with a plurality of second network devices. The connection between the first network device and each second network device is The established connections can be maintained through keep-alive messages respectively. In the message transmission method provided by this application, the priority of the first keep-alive message sent by the first network device is higher than the priority of all routing protocol update messages, and also That is to say, when multiple second network devices need to send and receive routing protocol update messages due to route changes, the first network device sends the first keep-alive message with the highest priority, and will not cause problems due to sending multiple routing protocol update messages. BGP service interruption caused by the failure of the first keep-alive message to be sent on time reduces route flapping caused by continuous disconnection and reconnection between neighbors.
在第一方面的一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation of the first aspect, the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow The second stream identifier is different from the second stream identifier.
本申请提供的报文传输方法,在一种可能的实现方式中,第一网络设备基于QUIC协议承载的第一流发送第一保活报文,并基于QUIC协议下的第二流发送第一路由协议更新报文,使得方案可以适用于承载在QUIC协议的BGP的场景。In a possible implementation of the message transmission method provided by this application, the first network device sends a first keep-alive message based on the first flow carried by the QUIC protocol, and sends the first route based on the second flow carried by the QUIC protocol. The protocol update message makes the solution applicable to BGP scenarios carried on the QUIC protocol.
在第一方面的一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation of the first aspect, the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
本申请提供的报文传输方法,在一种可能的实现方式中,承载第一流的第一传输层协议为muilti-TCP协议,承载第二流的第二传输层协议为muilti-TCP协议;在另一种可能的实现方式中,承载第一流的第一传输层协议以及承载第二流的第二传输层协议为UDP协议;在另一种可能的实现方式中,承载第一流的第一传输层协议为TCP协议,承载第二流的第二传输层协议为UDP协议;在另一种可能的实现方式中,承载第一流的第一传输层协议为UDP协议,承载第二流的第二传输层协议为TCP协议。在实际应用中,可以基于需求灵活选择方案对应的传输层协议,使得本申请方法可以应用在承载在TCP协议的BGP场景、承载在UDP协议的BGP场景或承载在TCP和UDP混合传输的BGP场景中。In a possible implementation of the message transmission method provided by this application, the first transport layer protocol carrying the first flow is the muilti-TCP protocol, and the second transport layer protocol carrying the second flow is the muilti-TCP protocol; in In another possible implementation, the first transport layer protocol carrying the first stream and the second transport layer protocol carrying the second stream are UDP protocols; in another possible implementation, the first transport layer carrying the first stream The first layer protocol is the TCP protocol, and the second transport layer protocol carrying the second stream is the UDP protocol; in another possible implementation, the first transport layer protocol carrying the first stream is the UDP protocol, and the second transport layer protocol carrying the second stream is the UDP protocol. The transport layer protocol is TCP protocol. In practical applications, the transport layer protocol corresponding to the solution can be flexibly selected based on needs, so that the method of this application can be applied to BGP scenarios carried on TCP protocol, BGP scenarios carried on UDP protocol, or BGP scenarios carried on mixed transmission of TCP and UDP. middle.
在第一方面的一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation manner of the first aspect, the first routing protocol update message includes a BGP update message.
在第一方面的一种可能的实现方式中,所述第一保活报文与所述第一路由协议更新报文对应于相同的路由会话,包括:所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。In a possible implementation of the first aspect, the first keep-alive message and the first routing protocol update message correspond to the same routing session, including: the first keep-alive message and the first routing protocol update message. The first BGP update protocol message corresponds to the same BGP session.
在第一方面的一种可能的实现方式中,所述第一网络设备包括备板;所述第一网络设备在所述备板中备份所述第一路由协议更新报文;所述第一网络设备不在所述备板中备份所述第一保活报文。In a possible implementation of the first aspect, the first network device includes a backup board; the first network device backs up the first routing protocol update message in the backup board; the first network device backs up the first routing protocol update message in the backup board; The network device does not back up the first keep-alive message in the backup board.
本申请提供的报文传输方法,在同一个网络设备存在主板和备板的场景下,第一网络设备不在备板中备份保活报文,可以减少网络设备处理资源浪费,提升网络设备处理能力。The message transmission method provided by this application, in the scenario where the same network device has a main board and a backup board, the first network device does not back up the keep-alive messages in the backup board, which can reduce the waste of network device processing resources and improve the processing capability of the network device. .
在第一方面的一种可能的实现方式中,所述第一网络设备在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation manner of the first aspect, the first network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
本申请提供的报文传输方法,第一网络设备具有主板和备板,当主备倒换之后,路由协议更新报文可以基于原通道传输,第一网络设备将创建用于传输第一保活报文保活通道,优先发送第一保活报文。In the message transmission method provided by this application, the first network device has a main board and a backup board. After the main board and the backup board are switched, the routing protocol update message can be transmitted based on the original channel, and the first network device will be created to transmit the first keep-alive message. For the keep-alive channel, the first keep-alive message is sent first.
本申请的第二方面提供了一种报文传输方法,包括:第二网络设备通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;所述第二网络设备通过第二传输层协 议承载的第二流接收所述第一网络设备发送的第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。A second aspect of the present application provides a message transmission method, including: a second network device receiving a first keep-alive message sent by a first network device through a first stream carried by a first transport layer protocol; the second network device The device communicates through the second transport layer The second flow carried by the protocol receives the first routing protocol update message sent by the first network device, and the first keep-alive message and the first routing protocol update message both correspond to the first routing session, so The priority of the second network device in processing the first keep-alive message received through the first flow is higher than the priority of the second network device in processing the first routing protocol update message.
本申请提供的一种报文传输方法,第二网络设备通过传输层协议承载的两条流分别接收第一网络设备发送的对应于同一个路由会话的第一保活报文和第一路由协议更新报文,且处理通过第一流接收的保活报文的优先级更高,因此,可以保证同一个路由会话存在第一保活报文和第一路由协议更新报文时,优先处理第一保活报文,从而减少由于第二网络设备处理路由协议更新报文导致第一保活报文无法按时接收导致的BGP业务中断,减少由于邻居间不断地断开和重新连接造成的路由震荡。This application provides a message transmission method. The second network device receives the first keep-alive message and the first routing protocol sent by the first network device corresponding to the same routing session through two streams carried by the transport layer protocol. update message, and the priority of processing the keep-alive message received through the first flow is higher. Therefore, it can be guaranteed that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first one will be processed first. keep-alive messages, thereby reducing BGP service interruption caused by the failure of the first keep-alive message to be received on time due to the second network device processing routing protocol update messages, and reducing route flapping caused by continuous disconnection and reconnection between neighbors.
在第二方面的一种可能的实现方式中,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备通过所述第二流接收的路由协议更新报文的优先级。In a possible implementation of the second aspect, the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device through the third stream. The priority of the routing protocol update message received by the second stream.
第二网络设备可与多个第一网络设备建立连接,第二网络设备与每个第一网络设备所建立的连接均可分别通过保活报文保持,本申请提供的报文传输方法中,第二网络设备接收并处理第一保活报文的优先级高于所有路由协议更新报文的优先级,也就是说,当多个第一网络设备由于路由变化向第二网络设备发送路由协议更新报文时,第二网络设备处理第一保活报文的优先级最高,不会由于接收多个路由协议更新报文导致第一保活报文无法按时发送导致的BGP业务中断,减少由于邻居间不断地断开和重新连接造成的路由震荡。The second network device can establish connections with multiple first network devices, and the connections established by the second network device and each first network device can be maintained through keep-alive messages respectively. In the message transmission method provided by this application, The priority of the second network device receiving and processing the first keepalive message is higher than the priority of all routing protocol update messages. That is to say, when multiple first network devices send routing protocols to the second network device due to route changes, When updating the message, the second network device has the highest priority in processing the first keep-alive message. It will not interrupt the BGP service due to the failure of the first keep-alive message to be sent on time due to receiving multiple routing protocol update messages, and reduce the BGP service interruption caused by the failure to send the first keep-alive message on time. Route flapping caused by constant disconnection and reconnection between neighbors.
在第二方面的一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation of the second aspect, the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow The second stream identifier is different from the second stream identifier.
本申请提供的一种报文传输方法,在一种可能的实现方式中,第二网络设备基于QUIC协议下的第一流接收第一保活报文,并基于QUIC协议下的第二流接收第一路由协议更新报文,使得方案可以适用于承载在QUIC协议的BGP的场景。This application provides a message transmission method. In a possible implementation manner, the second network device receives the first keep-alive message based on the first flow under the QUIC protocol, and receives the third keep-alive message based on the second flow under the QUIC protocol. A routing protocol update message makes the solution applicable to BGP scenarios carried on the QUIC protocol.
在第二方面的一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation of the second aspect, the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
本申请提供的一种报文传输方法,在一种可能的实现方式中,承载第一流的第一传输层协议为muilti-TCP协议,承载第二流的第二传输层协议为muilti-TCP协议;在另一种可能的实现方式中,承载第一流的第一传输层协议以及承载第二流的第二传输层协议为UDP协议;在另一种可能的实现方式中,承载第一流的第一传输层协议为TCP协议,承载第二流的第二传输层协议为UDP协议。在实际应用中,可以基于需求灵活选择方案具体实现方式对应的传输层协议,使得本申请方法可以应用在承载在TCP协议的BGP场景、承载在UDP协议的BGP场景或承载在TCP和UDP混合传输的BGP场景中。In a possible implementation of a message transmission method provided by this application, the first transport layer protocol carrying the first flow is the muilti-TCP protocol, and the second transport layer protocol carrying the second flow is the muilti-TCP protocol. ; In another possible implementation, the first transport layer protocol carrying the first stream and the second transport layer protocol carrying the second stream are UDP protocols; in another possible implementation, the third transport layer protocol carrying the first stream The first transport layer protocol is the TCP protocol, and the second transport layer protocol carrying the second stream is the UDP protocol. In practical applications, the transport layer protocol corresponding to the specific implementation method of the solution can be flexibly selected based on needs, so that the method of this application can be applied to BGP scenarios carried on the TCP protocol, BGP scenarios carried on the UDP protocol, or carried on mixed transmission of TCP and UDP. In the BGP scenario.
在第二方面的一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation of the second aspect, the first routing protocol update message includes a BGP update message.
在第二方面的一种可能的实现方式中,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。 In a possible implementation manner of the second aspect, the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
本申请提供的报文传输方法,第二网络设备基于BGP协议发送报文,第一保活报文与第一BGP更新协议报文均对应于相同的BGP会话,该BGP会话通过第一保活报文保持。In the message transmission method provided by this application, the second network device sends messages based on the BGP protocol. The first keep-alive message and the first BGP update protocol message both correspond to the same BGP session. The BGP session passes the first keep-alive message. The message is maintained.
在第二方面的一种可能的实现方式中,所述第二网络设备包括备板;所述第二网络设备在所述备板中备份所述第一路由协议更新报文;所述第二网络设备不在所述备板中备份所述第一保活报文。In a possible implementation of the second aspect, the second network device includes a backup board; the second network device backs up the first routing protocol update message in the backup board; the second The network device does not back up the first keep-alive message in the backup board.
本申请提供的报文传输方法,在同一个网络设备存在主板和备板的场景下,第二网络设备不在备板备份保活报文,可以减少网络设备处理资源浪费,提升网络设备处理能力。The message transmission method provided by this application can reduce the waste of network device processing resources and improve the processing capabilities of network devices in a scenario where the same network device has a main board and a backup board. The second network device does not back up the keep-alive messages on the backup board.
在第二方面的一种可能的实现方式中,所述第二网络设备在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation manner of the second aspect, the second network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
本申请提供的报文传输方法,第二网络设备具有主板和备板,当主备倒换之后,路由协议更新报文可以基于原通道传输,第二网络设备将创建用于传输第一保活报文保活通道,优先处理第一保活报文。In the message transmission method provided by this application, the second network device has a main board and a backup board. After the main board and the backup board are switched, the routing protocol update message can be transmitted based on the original channel, and the second network device will be created to transmit the first keep-alive message. The keep-alive channel gives priority to the first keep-alive message.
本申请第三方面提供了一种第一网络设备,包括:收发模块,用于通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;所述收发模块,还用于通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级。A third aspect of the present application provides a first network device, including: a transceiver module, configured to send a first keep-alive message to a second network device through a first flow carried by a first transport layer protocol; the transceiver module further For sending a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol, where the first keep-alive message and the first routing protocol update message both correspond to the first routing protocol update message. A routing session, the first network device sending the first keepalive message through the first flow has a higher priority than the first network device sending the first routing protocol update message through the second flow. priority of the document.
在第三方面的一种可能的实现方式中,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送路由协议更新报文的优先级。In a possible implementation manner of the third aspect, the priority of the first network device sending the first keep-alive message through the first flow is higher than that of the first network device sending the first keep-alive message through the second flow. The priority for sending routing protocol update messages.
在第三方面的一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation of the third aspect, the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow The second stream identifier is different from the second stream identifier.
在第三方面的一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation of the third aspect, the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
在第三方面的一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation manner of the third aspect, the first routing protocol update message includes a BGP update message.
在第三方面的一种可能的实现方式中,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。In a possible implementation manner of the third aspect, the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
在第三方面的一种可能的实现方式中,所述第一网络设备包括备板;所述第一网络设备还包括:备份模块,用于在所述备板中备份所述第一路由协议更新报文;所述备份模块,还用于所述第一网络设备不在所述备板中备份所述第一保活报文。In a possible implementation of the third aspect, the first network device includes a backup board; the first network device further includes: a backup module for backing up the first routing protocol in the backup board Update message; the backup module is also configured for the first network device not to back up the first keep-alive message in the backup board.
在第三方面的一种可能的实现方式中,所述第一网络设备还包括:处理模块,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation of the third aspect, the first network device further includes: a processing module configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first Keep alive message.
本申请的第四方面提供了一种第二网络设备,包括:收发模块,用于通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;所述收发模块,还用于通过第二传输层协议承载的第二流接收所述第一网络设备发送的第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述 第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。A fourth aspect of the present application provides a second network device, including: a transceiver module configured to receive a first keep-alive message sent by the first network device through a first stream carried by the first transport layer protocol; the transceiver module , further configured to receive the first routing protocol update message sent by the first network device through the second stream carried by the second transport layer protocol, the first keep-alive message and the first routing protocol update message are corresponding to the first routing session, the second network device processes the The priority of the first keep-alive message received by the first flow is higher than the priority of the second network device processing the first routing protocol update message.
在第四方面的一种可能的实现方式中,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备通过所述第二流接收的路由协议更新报文的优先级。In a possible implementation of the fourth aspect, the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device through the third stream. The priority of the routing protocol update message received by the second stream.
在第四方面的一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation of the fourth aspect, the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow The second stream identifier is different from the second stream identifier.
在第四方面的一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation of the fourth aspect, the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
在第四方面的一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation of the fourth aspect, the first routing protocol update message includes a BGP update message.
在第四方面的一种可能的实现方式中,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。In a possible implementation manner of the fourth aspect, the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
在第四方面的一种可能的实现方式中,所述第二网络设备包括备板;所述第二网络设备还包括:备份模块,用于在所述备板中备份所述第一路由协议更新报文;所述备份模块,还用于不在所述备板中备份所述第一保活报文。In a possible implementation of the fourth aspect, the second network device includes a backup board; the second network device further includes: a backup module for backing up the first routing protocol in the backup board Update message; the backup module is also configured not to back up the first keep-alive message in the backup board.
在第四方面的一种可能的实现方式中,所述第一网络设备还包括:处理模块,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation of the fourth aspect, the first network device further includes: a processing module configured to create a keep-alive channel after the active/standby switchover, the keep-alive channel being used to transmit the first Keep alive message.
本申请第五方面提供了一种网络设备,包括:存储器,所述存储器中存储有计算机可读指令;与所述存储器相连的处理器,所述计算机可读指令被所述处理器执行时,使得所述网络设备实现如上述第一方面、第二方面以及各种可能的实现方式中任一项所述的方法。The fifth aspect of the present application provides a network device, including: a memory, computer-readable instructions are stored in the memory; and a processor connected to the memory, when the computer-readable instructions are executed by the processor, The network device is caused to implement the method described in any one of the above first aspect, the second aspect, and various possible implementation manners.
本申请第六方面提供了一种计算机程序产品,包括计算机可读指令,当所述计算机可读指令在计算机上运行时,使得所述计算机执行如上述第一方面、第二方面以及各种可能的实现方式中任一项所述的方法。A sixth aspect of the present application provides a computer program product, which includes computer-readable instructions. When the computer-readable instructions are run on a computer, the computer is caused to perform the above-mentioned first aspect, second aspect, and various possibilities. The method described in any of the implementation methods.
本申请第七方面提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行如上述第一方面、第二方面以及各种可能的实现方式中任一项所述的方法。A seventh aspect of the present application provides a computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, they cause the computer to execute the above-mentioned first aspect, The method described in any one of the second aspect and various possible implementations.
本申请第八方面提供了一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行上述第一方面、第二方面以及各种可能的实现方式中任一项所述的方法。可选地,该芯片该包括存储器,该存储器与该处理器通过电路或电线与存储器连接。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收需要处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理,并通过该通信接口输出处理结果。该通信接口可以是输入输出接口。An eighth aspect of this application provides a chip including a processor. The processor is configured to read and execute the computer program stored in the memory to perform the method described in any one of the above first aspect, the second aspect, and various possible implementations. Optionally, the chip should include a memory, and the memory and the processor are connected to the memory through circuits or wires. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and/or information that needs to be processed. The processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing results through the communication interface. The communication interface may be an input-output interface.
本申请第九方面提供了一种通信系统,包括第一网络设备和第二网络设备,其中,所述第一网络设备通过第一传输层协议承载的第一流向所述第二网络设备发送第一保活报文;所述第二网络设备通过所述第一流接收所述第一保活报文;所述第一网络设备通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文;所述第二网络设备通过 所述第二流接收所述第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。A ninth aspect of the present application provides a communication system, including a first network device and a second network device, wherein the first network device sends a first flow carried by a first transport layer protocol to the second network device. A keep-alive message; the second network device receives the first keep-alive message through the first stream; the first network device sends the second stream to the second network device through the second stream carried by the second transport layer protocol Send a first routing protocol update message; the second network device passes The second flow receives the first routing protocol update message, the first keep-alive message and the first routing protocol update message both correspond to the first routing session, and the first keep-alive message Both the first routing protocol update message and the first routing protocol update message correspond to the first routing session, and the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends through the first flow. The second flow sends the first routing protocol update message with a priority, and the second network device processes the first keepalive message received through the first flow with a higher priority than the second The network device processes the priority of the first routing protocol update message.
在第九方面的一种可能的实现方式中,所述第一网络设备还用于执行上述第一方面以及各种可能的实现方式中任一项所述的方法,所述第二网络设备还用于执行上述第二方面以及各种可能的实现方式中任一项所述的方法。In a possible implementation of the ninth aspect, the first network device is also configured to perform the method described in any one of the above first aspect and various possible implementations, and the second network device is further For performing the method described in any one of the above second aspect and various possible implementations.
其中,第二方面、第三方面、第四方面、第五方面、第六方面、第七方面、第八方面或第九方面以及其中任一种实现方式所带来的技术效果可参见第一方面及第二方面中相应实现方式所带来的技术效果,此处不再赘述。Among them, the technical effects brought about by the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, the seventh aspect, the eighth aspect or the ninth aspect and any of the implementation methods can be found in the first aspect. The technical effects brought about by the corresponding implementation methods in the first aspect and the second aspect will not be described again here.
本申请提供的报文传输方法,网络设备通过两个流分别传输第一保活报文和第一路由协议更新报文,其中收发第一保活报文的优先级高于第一路由协议更新报文的优先级,因此,可以保证在同一个路由会话存在第一保活报文和第一路由协议更新报文时,优先传输第一保活报文,减少第一保活报文无法按时收发导致的BGP业务中断,由此,可以减少由于邻居间不断地断开重新连接和断开造成的路由震荡。In the message transmission method provided by this application, the network device transmits the first keep-alive message and the first routing protocol update message respectively through two streams, in which the priority of sending and receiving the first keep-alive message is higher than the first routing protocol update The priority of the message, therefore, can ensure that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first keep-alive message will be transmitted first, reducing the delay of the first keep-alive message. BGP service interruption caused by sending and receiving can reduce route flapping caused by continuous disconnection, reconnection and disconnection between neighbors.
附图说明Description of the drawings
图1为本申请实施例提供的报文传输方法的一个应用场景架构图;Figure 1 is an application scenario architecture diagram of the message transmission method provided by the embodiment of the present application;
图2为本申请实施例中报文传输方法的一个实施例示意图;Figure 2 is a schematic diagram of an embodiment of the message transmission method in the embodiment of the present application;
图3a为本申请实施例中网络设备发送报文的一个实施例示意图;Figure 3a is a schematic diagram of a packet sent by a network device in an embodiment of the present application;
图3b为本申请实施例中网络设备接收报文的一个实施例示意图;Figure 3b is a schematic diagram of a network device receiving a message in an embodiment of the present application;
图4为本申请实施例中报文传输方法的另一个实施例示意图;Figure 4 is a schematic diagram of another embodiment of the message transmission method in the embodiment of the present application;
图5为本申请实施例中的网络设备内报文传输的示意图;Figure 5 is a schematic diagram of packet transmission within a network device in an embodiment of the present application;
图6为本申请实施例中主备场景发送报文过程的示意图;Figure 6 is a schematic diagram of the message sending process in the active and standby scenarios in the embodiment of the present application;
图7为本申请实施例中主备场景接收报文过程的示意图;Figure 7 is a schematic diagram of the message receiving process in the active and standby scenarios in the embodiment of the present application;
图8为本申请实施例中网络设备的一个实施例示意图;Figure 8 is a schematic diagram of a network device in an embodiment of the present application;
图9为本申请实施例中网络设备的另一个实施例示意;Figure 9 is a schematic diagram of another embodiment of the network device in the embodiment of the present application;
图10为本申请实施例中网络设备的另一个实施例示意图。Figure 10 is a schematic diagram of another embodiment of the network device in the embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种报文传输的方法,用于通过两个流分别传输保活报文和路由协议更新报文,并且保活报文优先传输,因此可减少保活报文无法按时收发导致的BGP业务中断。The embodiment of the present application provides a message transmission method for transmitting keep-alive messages and routing protocol update messages through two streams respectively, and the keep-alive messages are transmitted with priority, thus reducing the delay of keep-alive messages on time. BGP service interruption caused by sending and receiving.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Persons of ordinary skill in the art know that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似 的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules and need not be limited to those explicitly listed. Those steps or modules may instead include other steps or modules not expressly listed or inherent to the processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time/logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can be implemented according to the purpose to be achieved. The order of execution can be changed for technical purposes, as long as the same or similar technical effect can be achieved.
为了便于理解,下面对本申请实施例涉及的部分技术术语进行简要介绍:For ease of understanding, some technical terms involved in the embodiments of this application are briefly introduced below:
1、边界网关协议(border gateway protocol,BGP)1. Border gateway protocol (BGP)
BGP是实现自治系统(autonomous system,AS)内部或AS之间的网络设备进行路由交换的路由协议。运行BGP的两个网络设备可互称邻居,建立邻居关系后可交换路由信息,通常只在启动时交换一次完整信息,后续只需触发式更新通告网络的变化信息。BGP is a routing protocol that implements route exchange between network devices within an autonomous system (AS) or between ASs. Two network devices running BGP can call each other neighbors. After establishing a neighbor relationship, they can exchange routing information. Usually, complete information is only exchanged once at startup. Subsequently, only triggered updates are required to notify network changes.
2、BGP报文2. BGP messages
BGP为了实现其功能定义了4种报文类型:BGP defines four message types in order to realize its functions:
(1)打开(OPEN)报文(1) Open (OPEN) message
当两个BGP邻居之间建立传输层协议连接之后,就分别发送一个打开报文,声明各自的自治系统号,并确定其他操作参数。When two BGP neighbors establish a transport layer protocol connection, they each send an open message to declare their respective autonomous system numbers and determine other operating parameters.
网络设备接收来自邻居的OPEN报文时,将发送一个保活(keep alive,KA)报文。在网络设备之间交换路由信息之前,双方都必须发送一个OPEN报文,并接收一个KEEPALIVE报文。KEEPALIVE报文可以用作对OPEN报文的确认。When a network device receives an OPEN message from a neighbor, it will send a keep alive (KA) message. Before exchanging routing information between network devices, both parties must send an OPEN message and receive a KEEPALIVE message. The KEEPALIVE message can be used as a confirmation of the OPEN message.
(2)更新(UPDATE)报文(2)Update (UPDATE) message
BGP邻居之间创建了传输层协议连接,并成功接收到对OPEN报文的KEEPALIVE确定报文,BGP邻居之间就可以使用UPDATE报文来通告网络的可达性信息。通告的内容可以是新的可达的目的网络,也可以是通告撤销原来的某些目的网络的可达性。After BGP neighbors have established a transport layer protocol connection and successfully received the KEEPALIVE confirmation message for the OPEN message, the BGP neighbors can use UPDATE messages to advertise network reachability information. The content of the announcement can be a new reachable destination network, or it can be an announcement to revoke the reachability of some original destination networks.
(3)保活(KEEP ALIVE)报文(3)Keep alive (KEEP ALIVE) message
保活报文用于在两个BGP邻居之间定期测试网络连接性,并证实发送保活报文的BGP邻居设备在正常工作。若承载连接的传输层协议为TCP协议,由于TCP协议本身没有提供自动的连接状态的通知机制,BGP邻居之间定时交换保活报文可以使BGP邻居设备能够检测TCP连接是否工作正常。Keep-alive messages are used to regularly test network connectivity between two BGP neighbors and confirm that the BGP neighbor device sending the keep-alive messages is working normally. If the transport layer protocol that carries the connection is the TCP protocol, since the TCP protocol itself does not provide an automatic connection status notification mechanism, regular exchange of keep-alive messages between BGP neighbors can enable BGP neighbor devices to detect whether the TCP connection is working properly.
(4)通知(NOTIFICATION)报文(4) NOTIFICATION message
BGP设备在发现错误时(或需要进行控制时),可以利用通知报文来通知其BGP邻居。一旦检查到错误,BGP设备就会向BGP邻居发送一个通知报文,然后断开连接终止通信。When a BGP device detects an error (or needs to take control), it can use notification messages to notify its BGP neighbors. Once an error is detected, the BGP device will send a notification message to the BGP neighbor, and then disconnect and terminate the communication.
3、路由反射器(route reflector,RR)3. Route reflector (RR)
同一个自治系统(AS)中的两个或多个BGP设备之间运行的BGP被称为IBGP(Internal/Interior BGP)。归属不同的AS的BGP设备之间运行的BGP称为EBGP(External/Exterior BGP)。在一个AS内,其中一台网络设备作为路由反射器,其它网络设备作为客户机(Client)与路由反射器之间建立IBGP连接。路由反射器在网络设备之间传递 (反射)路由信息,这样网络设备之间就不需要建立BGP连接,只需要和路由反射器建立连接即可,降低了连接的数目。BGP running between two or more BGP devices in the same autonomous system (AS) is called IBGP (Internal/Interior BGP). BGP running between BGP devices belonging to different ASs is called EBGP (External/Exterior BGP). Within an AS, one network device acts as a route reflector, and other network devices act as clients to establish IBGP connections with the route reflector. Route reflectors pass between network devices (Reflect) routing information, so that there is no need to establish BGP connections between network devices, and only need to establish connections with route reflectors, reducing the number of connections.
4、QUIC(Quick UDP Internet Connection)4. QUIC (Quick UDP Internet Connection)
是一种基于UDP的低时延的互联网传输层协议。It is a low-latency Internet transport layer protocol based on UDP.
5、流5. flow
在一段时间内,一个源IP地址和目的IP地址之间传输的单向报文流,同一流中所有报文具有相同的源端口号、目的端口号、协议号和源、目的IP地址,即五元组内容相同。Within a period of time, a unidirectional flow of packets transmitted between a source IP address and a destination IP address. All packets in the same flow have the same source port number, destination port number, protocol number, and source and destination IP addresses, that is, The contents of the quintuple are the same.
下面对本申请实施例中报文传输方法的应用场景架构进行介绍,请参阅图1,为本申请实施例中报文传输方法的应用场景架构图。The application scenario architecture of the message transmission method in the embodiment of the present application is introduced below. Please refer to Figure 1, which is an application scenario architecture diagram of the message transmission method in the embodiment of the present application.
该应用场景架构图中包括网络设备1和多个网络设备2(包括网络设备2a至网络设备2n)。网络设备1和多个网络设备2属于同一个自治系统中的网络设备,其中,多个网络设备2分别与网络设备1连接进行通信,网络设备1为路由器或交换机,在一个典型的实现方式中,网络设备1为作为路由反射器,以下称为反射器。在一种可能的实现方式中,网络设备1和网络设备2通过BGP协议进行通信,网络设备1和网络设备2互为对等体或称邻居。在不同的应用场景下网络设备2具体可以是不同的设备,示例性地,在软件定义广域网(software defined wide area network,SD-WAN)中,网络设备2可以是与企业分支机构客户端设备(customer premises equipment,CPE);在骨干网络或城域网络中,网络设备2可以是路由器,具体为运营商边缘设备(provider edge,PE)。The application scenario architecture diagram includes a network device 1 and multiple network devices 2 (including network devices 2a to 2n). Network device 1 and multiple network devices 2 belong to network devices in the same autonomous system. Multiple network devices 2 are respectively connected to network device 1 for communication. Network device 1 is a router or switch. In a typical implementation, , network device 1 serves as a route reflector, hereinafter referred to as a reflector. In a possible implementation, network device 1 and network device 2 communicate through the BGP protocol, and network device 1 and network device 2 are peers or neighbors of each other. In different application scenarios, the network device 2 may be different devices. For example, in a software defined wide area network (SD-WAN), the network device 2 may be the same as the enterprise branch client device ( customer premises equipment (CPE); in the backbone network or metropolitan area network, the network device 2 can be a router, specifically a provider edge equipment (provider edge, PE).
通常,BGP协议是基于传输层TCP协议收发BGP报文,BGP报文在TCP连接建立后,基于TCP的连接进行传输。一般来说,在BGP报文中,除了保活报文需周期性发送,其余的BGP报文为触发式发送。各种BGP报文基于先进先出(first input first output,FIFO)的方式排队进行发送。Usually, the BGP protocol is based on the transport layer TCP protocol to send and receive BGP messages. After the TCP connection is established, the BGP messages are transmitted based on the TCP connection. Generally speaking, in BGP messages, except for keep-alive messages that need to be sent periodically, the rest of the BGP messages are sent in a triggered manner. Various BGP messages are queued for transmission based on the first input first output (FIFO) method.
在一些应用场景中,网络设备1拥有海量邻居(即与数量较多的网络设备2建立BGP连接,网络设备1与网络设备2之间可以基于BGP协议收发报文)。例如,网络设备1与1000个网络设备2连接,若部分第二网络设备由于组网变化或其他原因导致路由更新,第一网络设备需要分别向1000个网络设备2发送1000个BGP更新报文,于此同时,每一对第一网络设备和第二网络设备之间还需要定时发送保活报文,并且BGP更新报文和保活报文是通过唯一的报文发送队列以FIFO的方式排队发送,可能导致部分保活报文由于排队在1000个BGP更新报文之后,由于传输不及时导致网络设备之间断开BGP连接,造成BGP业务中断,进一步地,由于网络设备之间反复断开连接并重新连接将造成路由震荡。In some application scenarios, network device 1 has a large number of neighbors (that is, it establishes BGP connections with a large number of network devices 2, and network device 1 and network device 2 can send and receive messages based on the BGP protocol). For example, network device 1 is connected to 1,000 network devices 2. If some of the second network devices cause routing updates due to network changes or other reasons, the first network device needs to send 1,000 BGP update messages to 1,000 network devices 2 respectively. At the same time, keep-alive messages need to be sent regularly between each pair of the first network device and the second network device, and BGP update messages and keep-alive messages are queued in a FIFO manner through a unique message sending queue. sending, it may cause some keep-alive messages to be queued after 1000 BGP update messages, causing BGP connections to be disconnected between network devices due to untimely transmission, resulting in BGP service interruption. Furthermore, due to repeated disconnections between network devices And reconnecting will cause route flapping.
在一些应用场景中,由于网络设备之间的保活时间及保护周期均较短(例如保活周期为1秒,保活时间为3秒),对于保活报文传输的及时性要求更高。在这种场景中,若保活报文传输不及时将导致网络设备之间断开连接,造成BGP业务中断,网络设备之间反复断开连接并重新连接将造成路由震荡。In some application scenarios, because the keep-alive time and protection period between network devices are short (for example, the keep-alive period is 1 second and the keep-alive time is 3 seconds), the timeliness requirements for the transmission of keep-alive messages are higher. . In this scenario, if keepalive messages are not transmitted in time, network devices will be disconnected, causing BGP service interruption. Repeated disconnection and reconnection between network devices will cause route flapping.
有鉴于此,本申请实施例提供了一种报文传输方法和网络设备,请参阅图2,第一网络设备通过第一传输层协议承载的第一流和第二传输层协议承载的第二流分别发送保活报文和路由协议更新报文,其中,通过所述第一流发送的保活报文具有更高优先级,通过分流优先发送保活报文可以减少因保活报文发送不及时造成的BGP业务中断与路由震荡。 In view of this, embodiments of the present application provide a message transmission method and network device. Please refer to Figure 2. The first network device uses a first flow carried by a first transport layer protocol and a second flow carried by a second transport layer protocol. Send keep-alive messages and routing protocol update messages respectively, where the keep-alive messages sent through the first flow have a higher priority. Sending keep-alive messages first through offloading can reduce the delay in sending keep-alive messages in time. The resulting BGP service interruption and route flapping.
下面对本申请实施例提供的报文传输方法进行具体介绍,请参见图3a和图3b,分别介绍本申请实施例的报文传输方法中的报文发送方法310和报文接收方法320。该报文发送方法和报文接收方法可以应用于图1所示的场景中,其中,第一网络设备相当于图1所示的应用场景中的网络设备1,需要说明的是,第二网络设备可以是图1所示应用场景中的任意一个网络设备2(包括网络设备2a-网络设备2n),该报文发送方法310包括步骤S311-S312:The following is a detailed introduction to the message transmission method provided by the embodiment of the present application. Please refer to Figure 3a and Figure 3b to introduce respectively the message sending method 310 and the message receiving method 320 in the message transmission method of the embodiment of the present application. The message sending method and the message receiving method can be applied to the scenario shown in Figure 1, where the first network device is equivalent to the network device 1 in the application scenario shown in Figure 1. It should be noted that the second network device The device can be any network device 2 in the application scenario shown in Figure 1 (including network device 2a-network device 2n). The message sending method 310 includes steps S311-S312:
S311、第一网络设备通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;S311. The first network device sends the first keepalive message to the second network device through the first flow carried by the first transport layer protocol;
在第一网络设备向第二网络设备发送报文之前,第一网络设备需要与第二网络设备建立第一路由会话。Before the first network device sends a message to the second network device, the first network device needs to establish a first routing session with the second network device.
在一种可能的实现方式中,路由会话具体为BGP会话。此外,路由会话还可以是BGP监控协议(BGP Monitoring Protocol,BMP)会话,BGP链路状态BGP-LS(BGP Link-state)协议会话,流规则(BGP Flow Specification,Flowspec)会话,具体此处不做限定。In a possible implementation manner, the routing session is specifically a BGP session. In addition, the routing session can also be a BGP Monitoring Protocol (BGP Monitoring Protocol, BMP) session, a BGP link state BGP-LS (BGP Link-state) protocol session, a flow rule (BGP Flow Specification, Flowspec) session, which are not specified here. Make limitations.
应理解,在本申请实施例中,当第一网络设备和第二网络设备之间建立BGP会话时(有时也称为BGP连接),第一网络设备和第二网络设备之间通过建立的BGP会话发送或接收BGP报文。对于其他协议会话的情况,参考BGP会话的描述,此处不再一一列出。It should be understood that in this embodiment of the present application, when a BGP session (sometimes also referred to as a BGP connection) is established between the first network device and the second network device, the first network device and the second network device communicate through the established BGP session. The session sends or receives BGP messages. For other protocol sessions, refer to the description of BGP sessions, which are not listed here.
BGP会话基于传输层连接建立,一般情况下,使用TCP为传输层协议,TCP端口号179,BGP报文在TCP会话建立后,基于TCP的会话来进行传输及可靠性的保障。第一网络设备与第二网络设备首先建立TCP的会话,然后通过收发open报文,确认邻居关系,建立第一路由会话。The BGP session is established based on the transport layer connection. Generally, TCP is used as the transport layer protocol, and the TCP port number is 179. After the TCP session is established, BGP messages are transmitted and reliability is guaranteed based on the TCP session. The first network device and the second network device first establish a TCP session, and then confirm the neighbor relationship by sending and receiving open messages, and establish the first routing session.
一般情况下,一个BGP会话对应的BGP报文通过一个TCP会话传输,也就是承载在一条TCP流中。Generally, BGP messages corresponding to a BGP session are transmitted through a TCP session, that is, carried in a TCP stream.
本申请实施例中,对应于同一个BGP会话,需要建立两个TCP会话,也就是两条TCP流,其中第一流用于传输保活报文,第二流用于传输路由更新报文,通过所述第一流传输的保活报文和通过所述第二流传输的所述路由更新报文均对应于第一路由会话,承载第一流的第一传输层协议与承载第二流的传输层协议的协议类型有多种可能的实现方式。In the embodiment of this application, corresponding to the same BGP session, two TCP sessions need to be established, that is, two TCP flows. The first flow is used to transmit keep-alive messages, and the second flow is used to transmit routing update messages. Through all The keep-alive message transmitted by the first stream and the route update message transmitted by the second stream both correspond to the first routing session, and the first transport layer protocol carrying the first stream and the transport layer protocol carrying the second stream There are many possible implementations of protocol types.
作为一个示例,第一传输层协议和第二传输层协议均为QUIC协议,第一网络设备基于QUIC协议分流发送保活报文和路由更新报文,第一流的第一流标识与第二流的第二流标识不同,适用于BGP over QUIC的场景。As an example, the first transport layer protocol and the second transport layer protocol are both QUIC protocols. The first network device sends keep-alive messages and route update messages in offload based on the QUIC protocol. The first stream identifier of the first stream is the same as the first stream identifier of the second stream. The second stream identifier is different and is suitable for BGP over QUIC scenarios.
作为另一个示例,第一传输层协议和第二传输层协议均为muilti-TCP,两条流对应于不同的五元组,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。具体地,第一网络设备通过第一端口向第二网络设备发送第一保活报文,保活报文携带的目的端口号对应于第二网络设备的第二端口;第一网络设备通过第三端口向第二网络设备的发送第一路由协议更新报文,第一路由协议更新报文携带的目的端口号对应于第二网络设备的第四端口。As another example, the first transport layer protocol and the second transport layer protocol are muilti-TCP, the two flows correspond to different five-tuples, and the first destination port number of the first flow is the same as the first destination port number of the second flow. The second destination port number is different. Specifically, the first network device sends a first keep-alive message to the second network device through the first port, and the destination port number carried in the keep-alive message corresponds to the second port of the second network device; the first network device sends the first keep-alive message to the second network device through the first port. The three ports send a first routing protocol update message to the second network device, and the destination port number carried in the first routing protocol update message corresponds to the fourth port of the second network device.
作为另一个示例,第一传输层协议为UDP,第二传输层协议为TCP。保活报文基于UDP协议发送,路由协议更新报文基于TCP协议发送,第一网络设备通过第一端口向第二网络设备发送第一保活报文;保活报文携带的目的端口号对应于第二网络设备的第二端口;第一网络设备基于用户数据报协议通过第一端口向第二网络设备发送第一路由协议更新报文。As another example, the first transport layer protocol is UDP and the second transport layer protocol is TCP. The keep-alive message is sent based on the UDP protocol, and the routing protocol update message is sent based on the TCP protocol. The first network device sends the first keep-alive message to the second network device through the first port; the destination port number carried in the keep-alive message corresponds to At the second port of the second network device; the first network device sends a first routing protocol update message to the second network device through the first port based on the user datagram protocol.
后续第一网络设备需要周期发送保活报文进行BGP邻居连接的保持。类似地,第二网络 设备也会周期性向第一网络设备发送保活报文进行BGP邻居连接的保持。Subsequently, the first network device needs to send keep-alive messages periodically to maintain the BGP neighbor connection. Similarly, the second network The device will also periodically send keepalive messages to the first network device to maintain the BGP neighbor connection.
S312、第一网络设备通过第二传输层协议承载的第二流向第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级;S312. The first network device sends a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol. The first keepalive message corresponds to the first routing protocol update message. In the first routing session, the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends the first routing protocol through the second flow. Update the priority of the message;
一般情况下,第一路由协议更新报文由事件触发发送,例如,当自治系统的网络设备组网变化时需要更新路由,第一网络设备将通过所述第二流向第二网络设备发送第一路由协议更新报文,第二网络设备通过第二流接收第一网络设备发送的第一路由协议更新报文。在一种可能的实现方式中,第一网络设备与第二网络设备基于BGP协议建立连接,第一路由协议更新报文为BGP更新报文,第一保活报文与第一BGP更新协议报文对应于相同的BGP会话。Generally, the first routing protocol update message is triggered by an event and is sent. For example, when the network equipment network of the autonomous system changes and the route needs to be updated, the first network equipment will send the first routing protocol update message to the second network equipment through the second flow. Routing protocol update message, the second network device receives the first routing protocol update message sent by the first network device through the second stream. In a possible implementation, the first network device and the second network device establish a connection based on the BGP protocol, the first routing protocol update message is a BGP update message, and the first keepalive message is the first BGP update protocol message. The documents correspond to the same BGP session.
需要说明的是,第一保活报文和第一路由协议更新报文均对应于第一网络设备与第二网络设备之间的第一路由会话。由于通过所述第一流发送第一保活报文的优先级更高,因此步骤S311先于步骤S312执行。It should be noted that both the first keepalive message and the first routing protocol update message correspond to the first routing session between the first network device and the second network device. Since the priority of sending the first keepalive message through the first stream is higher, step S311 is executed before step S312.
可选地,第一网络设备中,第一保活报文通过第一通道在第一队列排队发送,第一路由协议更新报文通过第二通道在第二队列排队发送,需要说明的是,第一网络设备的队列调度方法有多种,作为一种具体示例,第一网络设备基于严格优先级(strict priority,SP)的队列调度算法发送报文,其中第一队列的保活报文优先发送,当第一队列没有待发送的保活报文时,发送第二队列的第一路由协议更新报文。作为另一种具体示例,第一网络设备基于加权循环调度算法(weighted round robin,WRR)发送第一队列的保活报文和第二队列的第一路由协议更新报文,其中,第一队列的保活报文的权重高于第二队列的第一路由协议更新报文的权重。Optionally, in the first network device, the first keep-alive message is queued and sent in the first queue through the first channel, and the first routing protocol update message is queued and sent in the second queue through the second channel. It should be noted that, There are many queue scheduling methods for the first network device. As a specific example, the first network device sends messages based on the queue scheduling algorithm of strict priority (strict priority, SP), in which the keep-alive messages of the first queue are given priority. Send, when there is no keep-alive message to be sent in the first queue, send the first routing protocol update message in the second queue. As another specific example, the first network device sends a keep-alive message of the first queue and a first routing protocol update message of the second queue based on a weighted round robin (WRR) algorithm, where the first queue The weight of the keep-alive packet is higher than the weight of the first routing protocol update packet in the second queue.
需要说明的是,如图1应用场景架构图所示,第一网络设备可能连接多个第二网络设备,当路由更新时,第一网络设备可能需要向多个第二网络设备发送第一路由协议更新报文,此时,第一网络设备通过所述第一流发送第一保活报文的优先级高于第一网络设备通过所述第二流发送路由协议更新报文的优先级。It should be noted that, as shown in the application scenario architecture diagram of Figure 1, the first network device may be connected to multiple second network devices. When the route is updated, the first network device may need to send the first route to multiple second network devices. Protocol update message, at this time, the priority of the first network device sending the first keep-alive message through the first flow is higher than the priority of the first network device sending the routing protocol update message through the second flow.
本申请实施例中报文传输方法,通过所述第一流和所述第二流分别发送保活报文和第一路由协议更新报文,且保活报文基于更高的优先级发送,从而减少由于第一网络设备发送第一路由协议更新报文导致第一保活报文无法按时发送导致的BGP业务中断,减少由于邻居间不断地断开和重新连接造成的路由震荡。In the message transmission method in the embodiment of the present application, the keep-alive message and the first routing protocol update message are respectively sent through the first flow and the second flow, and the keep-alive message is sent based on a higher priority, so that Reduce BGP service interruption due to the failure of the first keepalive message to be sent on time due to the first network device sending the first routing protocol update message, and reduce route flapping caused by continuous disconnection and reconnection between neighbors.
可以理解的是,在短超时场景中,由于保活时间和保护周期均较短,对于保活报文传输的及时性要求更高。本申请实施例提供的报文传输方法中,第一网络设备通过所述第一流向第二网络设备发送保活报文的优先级较通过所述第二流发送路由协议更新报文的优先级更高,可以保证在同一个路由会话存在第一保活报文和第一路由协议更新报文时,优先发送第一保活报文,因此可保障保活报文发送的及时性,减少BGP业务中断,减少由于邻居间不断地断开重新连接造成的路由震荡。It is understandable that in a short timeout scenario, since the keep-alive time and protection period are both short, the timeliness of keep-alive message transmission is required to be higher. In the message transmission method provided by the embodiment of the present application, the priority of the first network device sending the keep-alive message to the second network device through the first flow is higher than the priority of sending the routing protocol update message through the second flow. Higher, it can ensure that when the first keep-alive message and the first routing protocol update message exist in the same routing session, the first keep-alive message will be sent first, thus ensuring the timeliness of sending keep-alive messages and reducing BGP Service interruption reduces route flapping caused by continuous disconnection and reconnection between neighbors.
在海量邻居场景中,第一网络设备与大量第二网络设备连接,第一网络设备需要传输的报文数量多,若部分第二网络设备由于组网变化或其他原因导致路由更新,第一网络设备需要发送多个路由协议更新报文,本申请实施例提供的报文传输方法中,第一网络设备通过所 述第一流向第二网络设备发送保活报文的优先级较通过上所述第二流发送第一路由协议更新报文的优先级更高,因此可保障保活报文发送的及时性,减少BGP业务中断,减少由于邻居间不断地断开重新连接造成的路由震荡。In a massive neighbor scenario, the first network device is connected to a large number of second network devices, and the first network device needs to transmit a large number of packets. If some second network devices cause routing updates due to network changes or other reasons, the first network device The device needs to send multiple routing protocol update messages. In the message transmission method provided by the embodiment of this application, the first network device passes all The priority of the keep-alive message sent by the first flow to the second network device is higher than the priority of the first routing protocol update message sent by the second flow. Therefore, the timeliness of sending the keep-alive message can be guaranteed. Reduce BGP service interruption and reduce route flapping caused by continuous disconnection and reconnection between neighbors.
接下来,介绍本申请实施例提供的一种报文接收方法,该报文接收方法320包括步骤S321-S322:Next, a message receiving method provided by an embodiment of the present application is introduced. The message receiving method 320 includes steps S321-S322:
S321、第二网络设备通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;S321. The second network device receives the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol;
首先,第二网络设备需要与第一网络设备建立第一路由会话,在一种可能的实现方式中,路由会话具体为BGP会话。此外,路由会话还可以是BGP监控协议(BGP Monitoring Protocol,BMP)会话,BGP链路状态BGP-LS(BGP Link-state)协议会话,流规则(BGP Flow Specification,Flowspec)会话,具体此处不做限定。First, the second network device needs to establish a first routing session with the first network device. In a possible implementation, the routing session is specifically a BGP session. In addition, the routing session can also be a BGP Monitoring Protocol (BGP Monitoring Protocol, BMP) session, a BGP link state BGP-LS (BGP Link-state) protocol session, a flow rule (BGP Flow Specification, Flowspec) session, which are not specified here. Make limitations.
应理解,在本申请实施例中,当第一网络设备和第二网络设备之间建立BGP会话时(有时也称为BGP连接),第一网络设备和第二网络设备之间通过建立的BGP会话发送或接收BGP报文。对于其他协议会话的情况,参考BGP会话的描述,此处不再一一列出。It should be understood that in this embodiment of the present application, when a BGP session (sometimes also referred to as a BGP connection) is established between the first network device and the second network device, the BGP session established between the first network device and the second network device is The session sends or receives BGP messages. For other protocol sessions, refer to the description of BGP sessions, which are not listed here.
BGP会话基于传输层连接建立,一般情况下,使用TCP为传输层协议,TCP端口号179,BGP报文在TCP会话建立后,基于TCP的会话来进行传输及可靠性的保障。第二网络设备与第一网络设备首先建立TCP的会话,然后通过收发open报文,确认邻居关系,建立第一路由会话。The BGP session is established based on the transport layer connection. Generally, TCP is used as the transport layer protocol, and the TCP port number is 179. After the TCP session is established, BGP messages are transmitted and reliability is guaranteed based on the TCP session. The second network device first establishes a TCP session with the first network device, and then confirms the neighbor relationship by sending and receiving open messages, and establishes the first routing session.
一般情况下,一个BGP会话对应的BGP报文通过一个TCP会话传输,也就是承载在一条TCP流中。Generally, BGP messages corresponding to a BGP session are transmitted through a TCP session, that is, carried in a TCP stream.
本申请实施例中,对应于同一个BGP会话,需要建立两个TCP会话,也就是两条TCP流,其中第一流用于传输保活报文,第二流用于传输路由更新报文,通过所述第一流传输的保活报文和通过所述第二流传输的所述路由更新报文均对应于第一路由会话,承载第一流的第一传输层协议与承载第二流的传输层协议的协议类型有多种可能的实现方式。In the embodiment of this application, corresponding to the same BGP session, two TCP sessions need to be established, that is, two TCP flows. The first flow is used to transmit keep-alive messages, and the second flow is used to transmit routing update messages. Through all The keep-alive message transmitted by the first stream and the route update message transmitted by the second stream both correspond to the first routing session, and the first transport layer protocol carrying the first stream and the transport layer protocol carrying the second stream There are many possible implementations of protocol types.
作为一个示例,第一传输层协议和第二传输层协议均为QUIC协议,第二网络设备基于QUIC协议分流接收保活报文和路由更新报文,第一流的第一流标识与第二流的第二流标识不同,适用于BGP over QUIC的场景。As an example, the first transport layer protocol and the second transport layer protocol are both QUIC protocols. The second network device offloads the keep-alive messages and routing update messages based on the QUIC protocol. The first flow identifier of the first flow is the same as the first flow identifier of the second flow. The second stream identifier is different and is suitable for BGP over QUIC scenarios.
作为另一个示例,第一传输层协议和第二传输层协议均为muilti-TCP,两条流对应于不同的五元组,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。具体地,第二网络设备通过第二端口接收第一网络设备发送第一保活报文;第二网络设备通过第四端口接收第一网络设备发送的第一路由协议更新报文。As another example, the first transport layer protocol and the second transport layer protocol are muilti-TCP, the two flows correspond to different five-tuples, and the first destination port number of the first flow is the same as the first destination port number of the second flow. The second destination port number is different. Specifically, the second network device receives the first keepalive message sent by the first network device through the second port; the second network device receives the first routing protocol update message sent by the first network device through the fourth port.
作为另一个示例,第一传输层协议为UDP,第二传输层协议为TCP。保活报文基于UDP协议发送,路由协议更新报文基于TCP协议发送,第二网络设备通过第一端口接收第一网络设备发送的第保活报文;第二网络设备基于用户数据报协议通过第一端口接收第一网络设备发送的第一路由协议更新报文。As another example, the first transport layer protocol is UDP and the second transport layer protocol is TCP. The keep-alive message is sent based on the UDP protocol, and the routing protocol update message is sent based on the TCP protocol. The second network device receives the keep-alive message sent by the first network device through the first port; the second network device receives the keep-alive message based on the user datagram protocol through the first port. The first port receives a first routing protocol update message sent by the first network device.
后续第二网络设备需要周期发送保活报文进行BGP邻居连接的保持。类似地,第一网络设备也会周期性向第二网络设备发送保活报文进行BGP邻居连接的保持。Subsequently, the second network device needs to send keep-alive messages periodically to maintain the BGP neighbor connection. Similarly, the first network device will also periodically send keepalive messages to the second network device to maintain the BGP neighbor connection.
S322、第二网络设备通过第二传输层协议承载的第二流接收第一网络设备发送的第一路 由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级;S322. The second network device receives the first path sent by the first network device through the second stream carried by the second transport layer protocol. The first keepalive message and the first routing protocol update message both correspond to a first routing session, and the second network device processes the first message received through the first flow. The priority of the keep-alive message is higher than the priority of the second network device in processing the first routing protocol update message;
一般情况下,第一路由协议更新报文由事件触发发送,例如,当自治系统的网络设备组网变化时需要更新路由,第一网络设备向第二网络设备发送第一路由协议更新报文,第二网络设备通过所述第二流接收第一网络设备发送第一路由协议更新报文。在一种可能的实现方式中,第二网络设备与第一网络设备基于BGP协议建立连接,第一路由协议更新报文为BGP更新报文,第一保活报文与第一BGP更新协议报文对应于相同的BGP会话。Generally, the first routing protocol update message is triggered by an event and is sent. For example, when the network device network of the autonomous system changes and the route needs to be updated, the first network device sends the first routing protocol update message to the second network device. The second network device receives the first routing protocol update message sent by the first network device through the second stream. In a possible implementation, the second network device establishes a connection with the first network device based on the BGP protocol, the first routing protocol update message is a BGP update message, and the first keepalive message is the first BGP update protocol message. The documents correspond to the same BGP session.
需要说明的是,第一保活报文和第一路由协议更新报文均对应于第二网络设备与第一网络设备之间的第一路由会话。由于通过所述第一流发送第一保活报文的优先级更高,因此步骤S321先于步骤S322执行。It should be noted that both the first keepalive message and the first routing protocol update message correspond to the first routing session between the second network device and the first network device. Since the priority of sending the first keepalive message through the first stream is higher, step S321 is executed before step S322.
需要说明的是,第二网络设备的队列调度方法有多种,作为一种具体示例,第二网络设备基于严格优先级(strict priority,SP)的队列调度算法接收报文,其中第一队列的保活报文优先接收,当第一流没有待接收的保活报文时,接收由第二流传输的第一路由协议更新报文。作为另一种具体示例,第二网络设备基于加权循环调度算法(weighted round robin,WRR)接收基于第一流传输的保活报文和接收基于第二流传输的第一路由协议更新报文,其中,基于第一流传输的保活报文的权重高于基于第二流传输的第一路由协议更新报文的权重。It should be noted that there are many queue scheduling methods for the second network device. As a specific example, the second network device receives messages based on a strict priority (strict priority, SP) queue scheduling algorithm, in which the first queue Keep-alive messages are received with priority. When the first stream has no keep-alive messages to be received, the first routing protocol update message transmitted by the second stream is received. As another specific example, the second network device receives a keep-alive message based on the first stream transmission and receives a first routing protocol update message based on the second stream transmission based on a weighted round robin (WRR) algorithm, where , the weight of the keep-alive message based on the first stream transmission is higher than the weight of the first routing protocol update message based on the second stream transmission.
需要说明的是,如图1应用场景架构图所示,第一网络设备可能连接多个第二网络设备,当路由更新时,第一网络设备可能需要向多个第二网络设备发送第一路由协议更新报文,此时,第一网络设备通过所述第一流发送第一保活报文的优先级高于第一网络设备通过所述第二流发送路由协议更新报文的优先级,第二网络设备通过所述第一流接收第一保活报文的优先级高于第二网络设备接收所述路由协议更新报文的优先级。It should be noted that, as shown in the application scenario architecture diagram of Figure 1, the first network device may be connected to multiple second network devices. When the route is updated, the first network device may need to send the first route to multiple second network devices. Protocol update message, at this time, the priority of the first network device sending the first keep-alive message through the first flow is higher than the priority of the first network device sending the routing protocol update message through the second flow. The priority of the second network device receiving the first keep-alive message through the first flow is higher than the priority of the second network device receiving the routing protocol update message.
下面请参阅图4,本申请实施例提出了一种报文传输方法。该方法可以应用于图1所示的场景中,其中,网络设备1相当于图1所示的应用场景中的网络设备1,网络设备2和网络设备3可以是图1所示应用场景中的任意两个网络设备2(包括网络设备2a-网络设备2n),该方法400包括:Please refer to Figure 4 below. This embodiment of the present application proposes a message transmission method. This method can be applied to the scenario shown in Figure 1, where network device 1 is equivalent to network device 1 in the application scenario shown in Figure 1, and network device 2 and network device 3 can be network device 1 in the application scenario shown in Figure 1. For any two network devices 2 (including network device 2a-network device 2n), the method 400 includes:
S401、网络设备1和网络设备2建立第一路由会话;S401. Network device 1 and network device 2 establish a first routing session;
S402、网络设备1和网络设备3建立第二路由会话;S402. Network device 1 and network device 3 establish a second routing session;
步骤S401和步骤S402可参考图3a对应的实施例中步骤S311,此处不再赘述。For step S401 and step S402, reference may be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
S403、网络设备1通过第一传输层协议承载的第一流向网络设备2发送第一保活报文;S403. Network device 1 sends the first keepalive message to network device 2 through the first flow carried by the first transport layer protocol;
步骤S403的具体实现方法可参考图3a对应的实施例中步骤S311,此处不再赘述。For the specific implementation method of step S403, reference can be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
S404、网络设备2通过第一传输层协议承载的第一流1接收网络设备1发送的第一保活报文;S404. Network device 2 receives the first keep-alive message sent by network device 1 through the first flow 1 carried by the first transport layer protocol;
步骤S404的具体实现方法可参考图3b对应的实施例中步骤S321,此处不再赘述。For the specific implementation method of step S404, reference can be made to step S321 in the embodiment corresponding to Figure 3b, which will not be described again here.
S405、网络设备1通过第一传输层协议承载的第二流向网络设备3发送第二保活报文;S405. Network device 1 sends the second keepalive message to network device 3 through the second flow carried by the first transport layer protocol;
步骤S405的具体实现方法可参考图3a对应的实施例中步骤S311,此处不再赘述。For the specific implementation method of step S405, reference can be made to step S311 in the embodiment corresponding to Figure 3a, which will not be described again here.
网络设备1根据保活周期通过所述第一流向网络设备2发送第一保活报文,网络设备1通过所述第二流向网络设备3发送第二保活报文。可以理解的是,步骤S403和步骤S405的 执行顺序此处不做限定,可以先执行步骤S403,再执行步骤S405,也可以先执行步骤S405再执行步骤S403。Network device 1 sends a first keep-alive message to network device 2 through the first flow according to the keep-alive cycle, and network device 1 sends a second keep-alive message to network device 3 through the second flow. It can be understood that steps S403 and S405 The execution sequence is not limited here. Step S403 may be executed first, and then step S405 may be executed, or step S405 may be executed first and then step S403.
S406、网络设备2通过第一传输层协议承载的第二流接收网络设备1发送的第二保活报文;S406. Network device 2 receives the second keep-alive message sent by network device 1 through the second stream carried by the first transport layer protocol;
步骤S406的具体实现方法可参考图3b对应的实施例中步骤S321,此处不再赘述。For the specific implementation method of step S406, reference can be made to step S321 in the embodiment corresponding to Figure 3b, which will not be described again here.
可以理解的是,网络设备1可以通过同一通道生成经并经第一队列排队发送第一保活报文和第二保活报文。It can be understood that the network device 1 can generate and send the first keep-alive message and the second keep-alive message through the first queue through the same channel.
S407、网络设备1通过第二传输层协议承载的第三流向网络设备2发送第一路由协议更新报文;S407. Network device 1 sends the first routing protocol update message to network device 2 through the third flow carried by the second transport layer protocol;
当触发发送第一路由协议更新报文时,网络设备1通过所述第三流向网络设备2发送第一路由协议更新报文,具体实现方法可参考图3a对应的实施例中步骤S312,此处不再赘述。When the sending of the first routing protocol update message is triggered, the network device 1 sends the first routing protocol update message to the network device 2 through the third flow. For the specific implementation method, refer to step S312 in the embodiment corresponding to Figure 3a, where No longer.
S408、网络设备2接收网络设备1通过第二传输层协议承载的第三流发送的第一路由协议更新报文;S408. Network device 2 receives the first routing protocol update message sent by network device 1 through the third stream carried by the second transport layer protocol;
步骤S408的具体实现方法可参考图3b对应的实施例中步骤S322,此处不再赘述。For the specific implementation method of step S408, reference can be made to step S322 in the embodiment corresponding to Figure 3b, which will not be described again here.
S409、网络设备1通过第二传输层协议承载的第四流向网络设备3发送第二路由协议更新报文;S409. Network device 1 sends a second routing protocol update message to network device 3 through the fourth flow carried by the second transport layer protocol;
当触发发送第二路由协议更新报文时,网络设备1通过所述第四流向网络设备3发送第二路由协议更新报文,具体实现方法可参考图3b对应的实施例中步骤S322,此处不再赘述。When the sending of the second routing protocol update message is triggered, the network device 1 sends the second routing protocol update message to the network device 3 through the fourth flow. For the specific implementation method, please refer to step S322 in the corresponding embodiment of Figure 3b, where No longer.
S410、网络设备3接收网络设备1通过第二传输层协议承载的第四流发送的第二路由协议更新报文;S410. Network device 3 receives the second routing protocol update message sent by network device 1 through the fourth stream carried by the second transport layer protocol;
步骤S410的具体实现方法可参考图3b对应的实施例中步骤S322,此处不再赘述。For the specific implementation method of step S410, reference can be made to step S322 in the embodiment corresponding to Figure 3b, which will not be described again here.
需要说明的是,由于网络设备1发送保活报文的优先级较高,若发送队列中存在第一保活报文、第二第一保活报文、第一路由协议更新报文和第二路由协议更新报文时,第一保活报文优先于第一路由协议更新报文及第二路由协议更新报文发送,类似的,第二报文报文也优先于第一路由协议更新报文及第二路由协议更新报文发送。在另一种可能的实现方式中,保活报文优先于所有路由协议更新报文发送,也就是说,本实施例中,第一保活报文优先于第一路由协议更新报文及第二路由协议报文发送,第二保活报文优先于第一路由协议更新报文及第二路由协议报文发送。It should be noted that since network device 1 has a higher priority for sending keep-alive messages, if there are a first keep-alive message, a second first keep-alive message, a first routing protocol update message and a first keep-alive message in the sending queue, When two routing protocol update messages are sent, the first keep-alive message is sent prior to the first routing protocol update message and the second routing protocol update message. Similarly, the second routing protocol update message is also sent prior to the first routing protocol update message. message and the second routing protocol update message are sent. In another possible implementation, the keep-alive message is sent with priority over all routing protocol update messages. That is to say, in this embodiment, the first keep-alive message has priority over the first routing protocol update message and the first routing protocol update message. The second routing protocol message is sent, and the second keepalive message takes precedence over the first routing protocol update message and the second routing protocol message.
可以理解的是,步骤S407和步骤S409的执行顺序此处不做限定,可以先执行步骤S407,再执行步骤S409,也可以先执行步骤S409,再执行步骤S407。It can be understood that the execution order of step S407 and step S409 is not limited here. Step S407 may be executed first and then step S409, or step S409 may be executed first and then step S407.
下面对网络设备内报文传输过程进行介绍,请参阅图5,该方法500可对应于图1所示的场景中任一网络设备。The message transmission process within the network device is introduced below. Please refer to Figure 5. The method 500 can correspond to any network device in the scenario shown in Figure 1.
在一种可能的实现方式中,网络设备基于TCP/IP协议以及BGP协议进行报文传输,网络设备中通过两个通道处理报文,其中,第一通道用于处理保活报文,第二通道用于处理路由协议更新报文,第一通道中的保活报文通过第一传输层协议承载的第一流收发,第二通道中的路由协议更新报文通过第二传输层协议承载的第二流收发,所述保活报文和所述路由协议更新报文对应于相同的路由会话,其中,第一通道的优先级更高。In a possible implementation, the network device transmits messages based on the TCP/IP protocol and the BGP protocol. The network device processes messages through two channels, where the first channel is used to process keep-alive messages, and the second channel is used to process keep-alive messages. The channel is used to process routing protocol update messages. Keep-alive messages in the first channel are sent and received through the first stream carried by the first transport layer protocol. Routing protocol update messages in the second channel are sent and received through the third stream carried by the second transport layer protocol. Second-stream transmission and reception, the keep-alive message and the routing protocol update message correspond to the same routing session, where the first channel has a higher priority.
在一些可能的实现方式中,第一网络设备具有主板和备板,网络设备的主板用于通过所 述第二流接收的报文,现有技术中,在发送报文之前,所有报文需要通过备板备份,网络设备接收报文后,所有的报文也需要通过备板备份,然后进行处理。由于第一网络设备收发的所有报文均需要通过备板备份,当报文数量较多时,易于出现阻塞,影响保活报文收发的及时性,可能导致保活报文收发不及时导致的网络设备之间断开连接,使得业务中断。请参阅图6和图7,分别示出了主备场景下网络设备发送报文和接收报文的过程,In some possible implementations, the first network device has a main board and a backup board, and the main board of the network device is used to pass all Describing the packets received by the second stream, in the existing technology, before sending the packet, all packets need to be backed up by the backup board. After the network device receives the packet, all packets also need to be backed up by the backup board and then processed. . Since all messages sent and received by the first network device need to be backed up by the backup board, when the number of messages is large, congestion is prone to occur, affecting the timeliness of sending and receiving keep-alive messages, which may lead to network failure caused by delayed sending and receiving of keep-alive messages. The connection between devices is disconnected, causing business interruption. Please refer to Figure 6 and Figure 7, which respectively show the process of sending packets and receiving packets by network devices in the active and backup scenarios.
如图6所示,图6为第一网络设备内主备传输的方法600,第一网络设备经第一通道,通过第一传输层协议承载的第一流发送保活报文,经第二通道,将路由协议更新报文备份至备板(601),然后通过第二传输层协议承载的第二流发送。可以理解的是,保活报文无需经过备板备份,可以直接发送,可以提高保活报文的发送效率。需要说明的是,第一网络设备进行主备倒换之后,第一网络设备将创建一条保活通道,所述保活通道用于传输所述保活报文。As shown in Figure 6, Figure 6 is a method 600 of active and backup transmission in a first network device. The first network device sends a keep-alive message through the first channel through the first flow carried by the first transport layer protocol, and through the second channel , back up the routing protocol update message to the backup board (601), and then send it through the second stream carried by the second transport layer protocol. It is understandable that keep-alive messages do not need to be backed up by the standby board and can be sent directly, which can improve the efficiency of sending keep-alive messages. It should be noted that after the first network device performs active/standby switching, the first network device will create a keep-alive channel, and the keep-alive channel is used to transmit the keep-alive message.
如图7所示,图7为第二网络设备内主备传输的方法700,第二网络设备通过第一传输层协议承载的第一流接收保活报文,在设备内通过第一通道传输;网络设备通过第二传输层协议承载的第二流接收路由协议更新报文,在设备内通过第二通道传输,将路由协议更新报文备份至备板(701)。可以理解的是,保活报文无需经过备板备份,可以直接处理,提高了保活报文的处理效率。需要说明的是,第二网络设备进行主备倒换之后,第二网络设备将创建一条保活通道,所述保活通道用于传输所述保活报文。As shown in Figure 7, Figure 7 is a method 700 for active and backup transmission in a second network device. The second network device receives the keep-alive message through the first stream carried by the first transport layer protocol, and transmits it through the first channel in the device; The network device receives the routing protocol update message through the second stream carried by the second transport layer protocol, transmits the routing protocol update message through the second channel within the device, and backs up the routing protocol update message to the backup board (701). It is understandable that keep-alive messages do not need to be backed up by the standby board and can be processed directly, which improves the processing efficiency of keep-alive messages. It should be noted that after the second network device performs active/standby switching, the second network device will create a keep-alive channel, and the keep-alive channel is used to transmit the keep-alive message.
由于保活报文无需经过备板备份即可进行传输,可以提高保活报文处理效率,减少由于保活报文收发不及时导致的网络设备断开BGP连接,从而减少了BGP业务中断。Since keep-alive messages can be transmitted without being backed up by the standby board, the efficiency of keep-alive message processing can be improved and network devices can be reduced from disconnecting BGP connections due to delayed sending and receiving of keep-alive messages, thus reducing BGP service interruptions.
上面介绍了本申请提供的报文传输方法,下面对实现该报文传输方法的第一网络设备和第二网络设备进行介绍,请参阅图8,为本申请实施例中第一网络设备的一个实施例示意图。The message transmission method provided by the present application has been introduced above. The first network device and the second network device that implement the message transmission method will be introduced below. Please refer to Figure 8, which shows the first network device in the embodiment of the present application. Schematic diagram of an embodiment.
该第一网络设备800可以用于执行以上实施例中的方法310、方法400、方法500、方法600。当第一网络设备800用于执行以上实施例中的方法310时,第一网络设备800相当于方法310中的第一网络设备。当第一网络设备800用于执行以上实施例中的方法400时,第一网络设备800相当于方法400中的网络设备1,第一网络设备800可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络设备1。包括:收发模块801,用于通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;所述收发模块801,还用于通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级。The first network device 800 may be used to perform method 310, method 400, method 500, and method 600 in the above embodiments. When the first network device 800 is used to perform the method 310 in the above embodiment, the first network device 800 is equivalent to the first network device in the method 310. When the first network device 800 is used to execute the method 400 in the above embodiment, the first network device 800 is equivalent to the network device 1 in the method 400, and the first network device 800 can be applied to the application scenario shown in Figure 1, For example, it can be the network device 1 in the scenario shown in Figure 1 . It includes: a transceiver module 801, configured to send a first keep-alive message to a second network device through a first stream carried by a first transport layer protocol; the transceiver module 801 is also configured to transmit a second stream carried by a second transport layer protocol. The flow sends a first routing protocol update message to the second network device, the first keep-alive message and the first routing protocol update message both correspond to the first routing session, and the first network device passes the The priority of the first keepalive message sent by the first flow is higher than the priority of the first routing protocol update message sent by the first network device through the second flow.
在一种可能的实现方式中,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送路由协议更新报文的优先级。In a possible implementation, the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends the routing protocol update through the second flow. The priority of the message.
在一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation, the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow is the same as the first flow identifier of the first flow. The second-rate logo is different for the second-rate.
在一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户 数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation, the first transport layer protocol includes multiple transmission control protocol muilti-TCP or user Datagram protocol UDP, the second transport layer protocol includes muilti-TCP or UDP, and the first destination port number of the first flow is different from the second destination port number of the second flow.
在一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation manner, the first routing protocol update message includes a BGP update message.
在一种可能的实现方式中,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。In a possible implementation manner, the first keepalive message and the first BGP update protocol message correspond to the same BGP session.
在一种可能的实现方式中,所述第一网络设备包括备板;所述第一网络设备还包括:备份模块802,用于在所述备板中备份所述第一路由协议更新报文;所述备份模块802,还用于所述第一网络设备不在所述备板中备份所述第一保活报文。In a possible implementation, the first network device includes a backup board; the first network device further includes: a backup module 802 for backing up the first routing protocol update message in the backup board ; The backup module 802 is also configured for the first network device not to back up the first keep-alive message in the backup board.
在一种可能的实现方式中,所述第一网络设备还包括:处理模块803,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation, the first network device further includes: a processing module 803, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive report. arts.
请参阅图9,为本申请实施例中第二网络设备的一个实施例示意图。Please refer to FIG. 9 , which is a schematic diagram of a second network device in an embodiment of the present application.
该第二网络设备900可以用于执行以上实施例中的方法320、方法400、方法500或方法700。当第二网络设备900用于执行以上实施例中的方法320时,第二网络设备900相当于方法320中的第二网络设备。当第二网络设备900用于执行以上实施例中的方法400时,第二网络设备900相当于方法400中的网络设备2或网络设备3,第二网络设备900可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络设备2a。包括:收发模块901,用于通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;所述收发模块901,还用于通过第二传输层协议承载的第二流接收所述第一网络设备发送的第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。The second network device 900 may be used to perform method 320, method 400, method 500 or method 700 in the above embodiments. When the second network device 900 is used to perform the method 320 in the above embodiment, the second network device 900 is equivalent to the second network device in the method 320. When the second network device 900 is used to perform the method 400 in the above embodiment, the second network device 900 is equivalent to the network device 2 or the network device 3 in the method 400, and the second network device 900 can be applied to the network device shown in Figure 1 In the application scenario, it may be, for example, the network device 2a in the scenario shown in Figure 1 . It includes: a transceiver module 901, configured to receive the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol; the transceiver module 901 is also used for receiving the first keep-alive message carried by the second transport layer protocol. The second stream receives the first routing protocol update message sent by the first network device. Both the first keepalive message and the first routing protocol update message correspond to the first routing session. The second network The priority of the device in processing the first keep-alive message received through the first flow is higher than the priority of the second network device in processing the first routing protocol update message.
在一种可能的实现方式中,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备通过所述第二流接收的路由协议更新报文的优先级。In a possible implementation, the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device receives through the second flow. The priority of routing protocol update packets.
在一种可能的实现方式中,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。In a possible implementation, the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first flow identifier of the first flow is the same as the first flow identifier of the first flow. The second-rate logo is different for the second-rate.
在一种可能的实现方式中,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。In a possible implementation, the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, the second transport layer protocol includes muilti-TCP or UDP, and the first flow The first destination port number is different from the second destination port number of the second flow.
在一种可能的实现方式中,所述第一路由协议更新报文包括BGP更新报文。In a possible implementation manner, the first routing protocol update message includes a BGP update message.
在一种可能的实现方式中,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。In a possible implementation manner, the first keepalive message and the first BGP update protocol message correspond to the same BGP session.
在一种可能的实现方式中,所述第二网络设备包括备板;所述第二网络设备还包括:备份模块,用于在所述备板中备份所述第一路由协议更新报文;所述备份模块902,还用于不在所述备板中备份所述第一保活报文。In a possible implementation, the second network device includes a backup board; the second network device further includes: a backup module configured to back up the first routing protocol update message in the backup board; The backup module 902 is also configured not to back up the first keep-alive message in the backup board.
在一种可能的实现方式中,所述第一网络设备还包括:处理模块903,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。In a possible implementation, the first network device further includes: a processing module 903, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive report. arts.
应理解以上第一网络设备或第二网络设备的各个模块的划分仅仅是一种逻辑功能的划分, 实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块以硬件的形式实现。例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。It should be understood that the above division of various modules of the first network device or the second network device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or it can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call programs. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
请参阅图10,为本申请实施例中网络设备的另一个实施例示意图;Please refer to Figure 10, which is a schematic diagram of another embodiment of the network device in the embodiment of the present application;
本实施例提供的网络设备1000,可以为交换机、路由器或其他网络设备,本申请实施例中对其具体设备形态不做限定。The network device 1000 provided in this embodiment may be a switch, a router, or other network device, and the specific device form is not limited in the embodiment of this application.
该网络设备1000,可以用于执行以上实施例中的方法310、方法320、方法400、方法500、方法600或方法700。当网络设备1000用于执行以上实施例中的方法320时,网络设备1000相当于方法320中的第二网络设备。当网络设备1000用于执行以上实施例中的方法400时,网络设备1000相当于方法400中的网路设备1、网络设备2或网络设备3,网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络设备2a。可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器1001和存储器1002,该存储器1002中存储有程序或数据。The network device 1000 can be used to perform method 310, method 320, method 400, method 500, method 600 or method 700 in the above embodiments. When the network device 1000 is used to perform the method 320 in the above embodiment, the network device 1000 is equivalent to the second network device in the method 320. When the network device 1000 is used to perform the method 400 in the above embodiment, the network device 1000 is equivalent to the network device 1, network device 2 or network device 3 in the method 400. The network device 1000 can be applied to the application shown in Figure 1 In the scenario, it may be, for example, the network device 2a in the scenario shown in Figure 1 . There may be relatively large differences due to different configurations or performance, and may include one or more processors 1001 and memory 1002, with programs or data stored in the memory 1002.
其中,存储器1002可以是易失性存储或非易失性存储。可选地,处理器1001是一个或多个中央处理器(central processing unit,CPU),该CPU可以是单核CPU,也可以是多核CPU。处理器1001可以与存储器1002通信,在网络设备1000上执行存储器1002中的一系列指令。Among them, the memory 1002 can be volatile storage or non-volatile storage. Optionally, the processor 1001 is one or more central processing units (CPUs), which may be single-core CPUs or multi-core CPUs. The processor 1001 can communicate with the memory 1002 to execute a series of instructions in the memory 1002 on the network device 1000 .
该网络设备1000还包括一个或一个以上有线或无线网络接口1003,例如以太网接口。The network device 1000 also includes one or more wired or wireless network interfaces 1003, such as an Ethernet interface.
可选地,尽管图10中未示出,网络设备1000还可以包括一个或一个以上电源;一个或一个以上输入输出接口,输入输出接口可以用于连接显示器、鼠标、键盘、触摸屏设备或传感设备等,输入输出接口为可选部件,可以存在也可以不存在,此处不做限定。Optionally, although not shown in Figure 10, the network device 1000 may also include one or more power supplies; one or more input and output interfaces, which may be used to connect a monitor, mouse, keyboard, touch screen device or sensor. Equipment, etc., input and output interfaces are optional components, which may or may not exist, and are not limited here.
本实施例中网络设备1000中的处理器1001所执行的流程可以参考前述方法实施例中描述的方法流程,此处不加赘述。In this embodiment, the process executed by the processor 1001 in the network device 1000 may refer to the method process described in the foregoing method embodiment, and will not be described again here.
针对图8至图10未详细描述的内容可以参考对方法实施例相关部分的描述。For content not described in detail in FIGS. 8 to 10 , please refer to the description of the relevant parts of the method embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信 连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. In another point, the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication through some interfaces, devices or units. Connection may be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions in each embodiment of the present application.

Claims (37)

  1. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized by including:
    第一网络设备通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;The first network device sends a first keep-alive message to the second network device through the first flow carried by the first transport layer protocol;
    所述第一网络设备通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级。The first network device sends a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol, and the first keepalive message and the first routing protocol update message Both correspond to the first routing session, and the priority of the first network device sending the first keep-alive message through the first flow is higher than that of the first network device sending the first keep-alive message through the second flow. The priority of routing protocol update packets.
  2. 根据权利要求1所述的方法,其特征在于,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送路由协议更新报文的优先级。The method according to claim 1, characterized in that the priority of the first network device sending the first keep-alive message through the first flow is higher than that of the first network device sending the first keep-alive message through the second flow. The priority for sending routing protocol update messages.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。The method according to claim 1 or 2, characterized in that the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first stream of the first stream The first-stream identifier is different from the second-stream identifier of the second stream.
  4. 根据权利要求3所述的方法,其特征在于,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。The method according to claim 3, wherein the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一路由协议更新报文包括边界网关协议BGP更新报文。The method according to any one of claims 1 to 4, characterized in that the first routing protocol update message includes a Border Gateway Protocol BGP update message.
  6. 根据权利要求5所述的方法,其特征在于,所述第一保活报文与所述第一路由协议更新报文对应于相同的路由会话,包括:The method of claim 5, wherein the first keepalive message and the first routing protocol update message correspond to the same routing session, including:
    所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。The first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一网络设备包括备板;The method according to any one of claims 1 to 6, characterized in that the first network device includes a backup board;
    所述第一网络设备在所述备板中备份所述第一路由协议更新报文;The first network device backs up the first routing protocol update message in the backup board;
    所述第一网络设备不在所述备板中备份所述第一保活报文。The first network device does not back up the first keep-alive message in the backup board.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一网络设备在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。The method according to any one of claims 1 to 7, characterized in that the first network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive channel. message.
  9. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized by including:
    第二网络设备通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;The second network device receives the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol;
    所述第二网络设备通过第二传输层协议承载的第二流接收所述第一网络设备发送的第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。The second network device receives the first routing protocol update message sent by the first network device through the second stream carried by the second transport layer protocol, and the first keep-alive message is consistent with the first routing protocol update message. The messages all correspond to the first routing session, and the second network device processes the first keepalive message received through the first flow with a higher priority than the second network device processes the first routing protocol. Update the priority of the message.
  10. 根据权利要求9所述的方法,其特征在于,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备通过所述第二流接收的路由协议更新报文的优先级。The method according to claim 9, characterized in that the second network device processes the first keep-alive message received through the first flow with a higher priority than the second network device through the third stream. The priority of the routing protocol update message received by the second stream.
  11. 根据权利要求9或10所述的方法,其特征在于,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。 The method according to claim 9 or 10, characterized in that the first transport layer protocol includes the Fast User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the first stream of the first stream The first-stream identifier is different from the second-stream identifier of the second stream.
  12. 根据权利要求11所述的方法,其特征在于,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。The method according to claim 11, wherein the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, so The first destination port number of the first flow is different from the second destination port number of the second flow.
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,所述第一路由协议更新报文包括边界网关协议BGP更新报文。The method according to any one of claims 9 to 12, characterized in that the first routing protocol update message includes a Border Gateway Protocol BGP update message.
  14. 根据权利要求13所述的方法,其特征在于,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。The method according to claim 13, wherein the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  15. 根据权利要求9至14中任一项所述的方法,其特征在于,所述第二网络设备包括备板;The method according to any one of claims 9 to 14, characterized in that the second network device includes a backup board;
    所述第二网络设备在所述备板中备份所述第一路由协议更新报文;The second network device backs up the first routing protocol update message in the backup board;
    所述第二网络设备不在所述备板中备份所述第一保活报文。The second network device does not back up the first keep-alive message in the backup board.
  16. 根据权利要求9至15中任一项所述的方法,其特征在于,所述第二网络设备在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。The method according to any one of claims 9 to 15, characterized in that the second network device creates a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive channel. message.
  17. 一种第一网络设备,其特征在于,包括:A first network device, characterized by including:
    收发模块,用于通过第一传输层协议承载的第一流向第二网络设备发送第一保活报文;A transceiver module configured to send the first keepalive message to the second network device through the first flow carried by the first transport layer protocol;
    所述收发模块,还用于通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级。The transceiver module is also configured to send a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol. The first keep-alive message is consistent with the first routing protocol update message. The messages all correspond to the first routing session, and the first network device sends the first keepalive message through the first flow with a higher priority than the first network device sends the first keepalive message through the second flow. The priority of the first routing protocol update message.
  18. 根据权利要求17所述的第一网络设备,其特征在于,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送路由协议更新报文的优先级。The first network device according to claim 17, wherein the priority of the first network device sending the first keep-alive message through the first flow is higher than that of the first network device sending the first keep-alive message through the first flow. The second stream sends the priority of the routing protocol update message.
  19. 根据权利要求17或18所述的第一网络设备,其特征在于,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。The first network device according to claim 17 or 18, wherein the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the third The first stream identifier of a stream is different from the second stream identifier of said second stream.
  20. 根据权利要求19所述的第一网络设备,其特征在于,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。The first network device according to claim 19, characterized in that the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, the first destination port number of the first flow is different from the second destination port number of the second flow.
  21. 根据权利要求17至20中任一项所述的第一网络设备,其特征在于,所述第一路由协议更新报文包括BGP更新报文。The first network device according to any one of claims 17 to 20, characterized in that the first routing protocol update message includes a BGP update message.
  22. 根据权利要求21所述的第一网络设备,其特征在于,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。The first network device according to claim 21, wherein the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  23. 根据权利要求17至22中任一项所述的第一网络设备,其特征在于,所述第一网络设备包括备板;The first network device according to any one of claims 17 to 22, characterized in that the first network device includes a backup board;
    所述第一网络设备还包括:The first network device also includes:
    备份模块,用于在所述备板中备份所述第一路由协议更新报文;A backup module, configured to back up the first routing protocol update message in the backup board;
    所述备份模块,还用于所述第一网络设备不在所述备板中备份所述第一保活报文。The backup module is also configured for the first network device not to back up the first keep-alive message in the backup board.
  24. 根据权利要求17至23中任一项所述的第一网络设备,其特征在于,所述第一网络设 备还包括:The first network device according to any one of claims 17 to 23, characterized in that the first network device Preparation also includes:
    处理模块,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。A processing module, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
  25. 一种第二网络设备,其特征在于,包括:A second network device, characterized by including:
    收发模块,用于通过第一传输层协议承载的第一流接收第一网络设备发送的第一保活报文;A transceiver module configured to receive the first keep-alive message sent by the first network device through the first flow carried by the first transport layer protocol;
    所述收发模块,还用于通过第二传输层协议承载的第二流接收所述第一网络设备发送的第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。The transceiver module is also configured to receive the first routing protocol update message sent by the first network device through the second stream carried by the second transport layer protocol, and the first keep-alive message is consistent with the first routing message. The protocol update messages all correspond to the first routing session, and the second network device processes the first keep-alive message received through the first flow with a higher priority than the second network device processes the first The priority of routing protocol update packets.
  26. 根据权利要求25所述的第二网络设备,其特征在于,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备通过所述第二流接收的路由协议更新报文的优先级。The second network device according to claim 25, characterized in that the second network device processes the first keep-alive message received through the first flow with a higher priority than the second network device through which the first keep-alive message is received. The priority of the routing protocol update message received by the second flow.
  27. 根据权利要求25或26所述的第二网络设备,其特征在于,所述第一传输层协议包括快速用户数据报协议互联网连接QUIC协议,所述第二传输层协议包括QUIC协议,所述第一流的第一流标识与所述第二流的第二流标识不同。The second network device according to claim 25 or 26, wherein the first transport layer protocol includes the Quick User Datagram Protocol Internet Connection QUIC protocol, the second transport layer protocol includes the QUIC protocol, and the third The first stream identifier of a stream is different from the second stream identifier of said second stream.
  28. 根据权利要求27所述的第二网络设备,其特征在于,所述第一传输层协议包括多传输控制协议muilti-TCP或用户数据报协议UDP,所述第二传输层协议包括muilti-TCP或UDP,所述第一流的第一目的端口号与所述第二流的第二目的端口号不同。The second network device according to claim 27, wherein the first transport layer protocol includes muilti-TCP or user datagram protocol UDP, and the second transport layer protocol includes muilti-TCP or UDP, the first destination port number of the first flow is different from the second destination port number of the second flow.
  29. 根据权利要求25至28中任一项所述的第二网络设备,其特征在于,所述第一路由协议更新报文包括BGP更新报文。The second network device according to any one of claims 25 to 28, characterized in that the first routing protocol update message includes a BGP update message.
  30. 根据权利要求29所述的第二网络设备,其特征在于,所述第一保活报文与所述第一BGP更新协议报文对应于相同的BGP会话。The second network device according to claim 29, wherein the first keep-alive message and the first BGP update protocol message correspond to the same BGP session.
  31. 根据权利要求25至30中任一项所述的第二网络设备,其特征在于,所述第二网络设备包括备板;The second network device according to any one of claims 25 to 30, characterized in that the second network device includes a backup board;
    所述第二网络设备还包括:The second network device also includes:
    备份模块,用于在所述备板中备份所述第一路由协议更新报文;A backup module, configured to back up the first routing protocol update message in the backup board;
    所述备份模块,还用于不在所述备板中备份所述第一保活报文。The backup module is also configured not to back up the first keep-alive message in the backup board.
  32. 根据权利要求25至31中任一项所述的第二网络设备,其特征在于,所述第一网络设备还包括:The second network device according to any one of claims 25 to 31, characterized in that the first network device further includes:
    处理模块,用于在主备倒换之后创建一条保活通道,所述保活通道用于传输所述第一保活报文。A processing module, configured to create a keep-alive channel after the active/standby switchover, and the keep-alive channel is used to transmit the first keep-alive message.
  33. 一种网络设备,其特征在于,包括:A network device, characterized by including:
    存储器,所述存储器中存储有计算机可读指令;A memory having computer readable instructions stored therein;
    与所述存储器相连的处理器,所述计算机可读指令被所述处理器执行时,使得所述网络设备实现如权利要求1至16中任一项所述的方法。A processor is connected to the memory. When the computer readable instructions are executed by the processor, the network device implements the method according to any one of claims 1 to 16.
  34. 一种计算机程序产品,其特征在于,包括计算机可读指令,当所述计算机可读指令在处理器上运行时,实现如权利要求1至16任一项所述的方法。 A computer program product, characterized in that it includes computer-readable instructions. When the computer-readable instructions are run on a processor, the method according to any one of claims 1 to 16 is implemented.
  35. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在处理器上运行时,实现如权利要求1至16中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a processor, the method according to any one of claims 1 to 16 is implemented. .
  36. 一种通信系统,其特征在于,包括第一网络设备和第二网络设备,其中,A communication system, characterized by including a first network device and a second network device, wherein,
    所述第一网络设备通过第一传输层协议承载的第一流向所述第二网络设备发送第一保活报文;The first network device sends a first keep-alive message to the second network device through the first flow carried by the first transport layer protocol;
    所述第二网络设备通过所述第一流接收所述第一保活报文;The second network device receives the first keep-alive message through the first stream;
    所述第一网络设备通过第二传输层协议承载的第二流向所述第二网络设备发送第一路由协议更新报文;The first network device sends a first routing protocol update message to the second network device through the second flow carried by the second transport layer protocol;
    所述第二网络设备通过所述第二流接收所述第一路由协议更新报文,所述第一保活报文与所述第一路由协议更新报文均对应于第一路由会话,所述第一网络设备通过所述第一流发送所述第一保活报文的优先级高于所述第一网络设备通过所述第二流发送所述第一路由协议更新报文的优先级,所述第二网络设备处理通过所述第一流接收的所述第一保活报文的优先级高于所述第二网络设备处理所述第一路由协议更新报文的优先级。The second network device receives the first routing protocol update message through the second stream, and the first keepalive message and the first routing protocol update message both correspond to the first routing session, so The priority of the first network device sending the first keep-alive message through the first flow is higher than the priority of the first network device sending the first routing protocol update message through the second flow, The priority of the second network device in processing the first keep-alive message received through the first flow is higher than the priority of the second network device in processing the first routing protocol update message.
  37. 根据权利要求36所述的通信系统,所述第一网络设备还用于执行如权利要求2至8中任一项所述的方法,所述第二网络设备还用于执行如权利要求10至16中任一项所述的方法。 The communication system according to claim 36, the first network device is further configured to perform the method as claimed in any one of claims 2 to 8, and the second network device is further configured to perform the method as claimed in any one of claims 10 to 8. The method described in any one of 16.
PCT/CN2023/094468 2022-05-17 2023-05-16 Message transmission method, and network device and communication system WO2023221968A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210540416 2022-05-17
CN202210540416.7 2022-05-17
CN202210988619.2 2022-08-17
CN202210988619.2A CN117118912A (en) 2022-05-17 2022-08-17 Message transmission method, network equipment and communication system

Publications (1)

Publication Number Publication Date
WO2023221968A1 true WO2023221968A1 (en) 2023-11-23

Family

ID=88807920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094468 WO2023221968A1 (en) 2022-05-17 2023-05-16 Message transmission method, and network device and communication system

Country Status (2)

Country Link
CN (1) CN117118912A (en)
WO (1) WO2023221968A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491011A (en) * 2013-09-05 2014-01-01 杭州华三通信技术有限公司 BGP conversation changing method and device
US9491107B1 (en) * 2014-06-30 2016-11-08 Juniper Networks, Inc. Non-stop routing with internal session mirroring and adaptive application-level rate limiting
CN106656857A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Message speed limiting method and device
CN110505176A (en) * 2018-05-16 2019-11-26 中兴通讯股份有限公司 Determination, sending method and device, the route system of message priority

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491011A (en) * 2013-09-05 2014-01-01 杭州华三通信技术有限公司 BGP conversation changing method and device
US9491107B1 (en) * 2014-06-30 2016-11-08 Juniper Networks, Inc. Non-stop routing with internal session mirroring and adaptive application-level rate limiting
CN106656857A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Message speed limiting method and device
CN110505176A (en) * 2018-05-16 2019-11-26 中兴通讯股份有限公司 Determination, sending method and device, the route system of message priority

Also Published As

Publication number Publication date
CN117118912A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
EP1763204B1 (en) System and method for redundant switches taking into account learning bridge functionality
US9647954B2 (en) Method and system for optimizing a network by independently scaling control segments and data flow
US8121136B2 (en) Dynamic discovery mechanisms via inter-domain routing protocol
TWI393401B (en) System, apparatus, method and memory having computer program embodied thereon for managing multicast routing
US7801135B2 (en) Transport protocol connection synchronization
US8135771B2 (en) Digital signal processor clustering in integrated media-services gateways
US8638692B2 (en) System and method for end-to-end automatic configuration of network elements using a link-level protocol
JP2005537764A (en) Mechanism for providing QoS in a network using priority and reserve bandwidth protocols
WO2010037318A1 (en) Data transmission system and data transmission method
WO2022253087A1 (en) Data transmission method, node, network manager, and system
US10298694B1 (en) Flow timeout control within a network
Junginger et al. The multi-ring topology-high-performance group communication in peer-to-peer networks
US8462952B2 (en) Synchronizing management signaling in a network
US7933291B2 (en) Protocol neutral channel-based application communication
WO2023221968A1 (en) Message transmission method, and network device and communication system
US9374274B2 (en) System and method for automated DCB configuration of access switches
CN110381007B (en) TCP acceleration method and device
JP2006165879A (en) Call control system, call control method and call control program
US8140888B1 (en) High availability network processing system
JP3570506B2 (en) Network server and control method thereof
US11570080B1 (en) Multiple state control interfaces between a control plane and a user plane in a disaggregated broadband network gateway architecture
Syrivelis et al. VirtueMAN: A software-defined network architecture for WiFi-based metropolitan applications
CN114363342A (en) Fault convergence method and related device and load balancing cluster thereof
JP5896054B2 (en) Communication device
CN115967679A (en) Data request method, communication device and communication system

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

Country of ref document: EP

Kind code of ref document: A1