CN113300950B - Data processing method and device, electronic equipment and computer readable medium - Google Patents

Data processing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113300950B
CN113300950B CN202010253685.6A CN202010253685A CN113300950B CN 113300950 B CN113300950 B CN 113300950B CN 202010253685 A CN202010253685 A CN 202010253685A CN 113300950 B CN113300950 B CN 113300950B
Authority
CN
China
Prior art keywords
bgp routing
routing device
bgp
message
graceful restart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010253685.6A
Other languages
Chinese (zh)
Other versions
CN113300950A (en
Inventor
王永灿
区海迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010253685.6A priority Critical patent/CN113300950B/en
Publication of CN113300950A publication Critical patent/CN113300950A/en
Application granted granted Critical
Publication of CN113300950B publication Critical patent/CN113300950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing

Landscapes

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

Abstract

The embodiment of the application provides a data processing method and device, electronic equipment and a computer readable medium, and relates to the technical field of Internet. The method comprises the following steps: when detecting that a graceful restart function of second BGP routing equipment establishing BGP connection with first BGP routing equipment needs to be started aiming at operation of the first BGP routing equipment, sending a first message for informing starting of the graceful restart function of the second BGP routing equipment to the second BGP routing equipment by using a dynamic capability message, so that when the first BGP routing equipment is disconnected from the second BGP routing equipment, the second BGP routing equipment forwards service traffic to the first BGP routing equipment on the basis of routing information of the first BGP routing equipment; and when the first BGP routing equipment and the second BGP routing equipment are disconnected, receiving the routing information and the forwarded service flow of the second BGP routing equipment based on the first BGP routing equipment. By the embodiment of the application, the problem of black holes in service flow generated by BGP routing equipment can be effectively solved.

Description

Data processing method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a data processing method and device, electronic equipment and a computer readable medium.
Background
BGP (Border Gateway Protocol) is a dynamic routing Protocol that can be used both between different ASs (Autonomous systems) and within the same AS. When BGP runs inside the same AS, it is called IBGP (Internal BGP); when BGP runs between different ases, it is called EBGP (External BGP). The AS is a group of routers which have the same routing strategy and belong to the same technical management department. The focus of BGP is to control the propagation of routes and to select the best route.
BGP GR (Graceful Restart) is a mechanism that ensures uninterrupted forwarding service when a BGP router is protocol restarted or switched between main and standby boards. Specifically, as shown in fig. 1A, when BGP router a establishes a BGP connection with BGP router B, a port of BGP router a and a port of BGP router B negotiate and determine an execution action of BGP GR. After determining the performing actions for BGP GR, BGP router B enters a mode that assists BGP router A in completing BGP GR. When the BGP router a and the BGP router B are disconnected from each other, the BGP router B keeps forwarding the service traffic to the BGP router a according to the routing information of the BGP router a, and cannot perceive a situation in which the BGP router a disconnects the BGP connection, that is, the BGP router B cannot distinguish whether the BGP router a disconnects the BGP connection normally or disconnects the BGP connection abnormally. When the BGP router A abnormally cuts off BGP connection due to failure, the BGP router B keeps the service flow continuously forwarded to the BGP router A, and the BGP router A cannot continuously forward the service flow due to failure, so that the problem of long-time service flow black holes is caused.
Therefore, how to effectively solve the problem of black holes in the traffic flow generated by the BGP routing device becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The present application aims to provide a data processing method, an apparatus, an electronic device, and a computer readable medium, which are used to solve the technical problem in the prior art how to effectively solve a black hole of a service traffic generated by a BGP routing device.
According to a first aspect of embodiments of the present application, a data processing method is provided. The method comprises the following steps: when detecting that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started aiming at operation of the first BGP routing device, sending a first message for informing starting of the graceful restart function of the second BGP routing device to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment.
According to a second aspect of embodiments of the present application, there is provided a data processing method. The method comprises the following steps: receiving a first message which is sent by a first BGP routing device through a dynamic capability message and used for informing the starting of a smooth restarting function of a second BGP routing device, wherein the second BGP routing device establishes BGP connection with the first BGP routing device; and starting a graceful restart function of the second BGP routing device based on the first message, so as to forward the service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device.
According to a third aspect of embodiments of the present application, there is provided a data processing method. The method comprises the following steps: when the upgrade operation of a BGP process aiming at a first BGP routing device is detected, a graceful restart function of a second BGP routing device establishing BGP connection with the first BGP routing device is required to be started, a first message for informing the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment.
According to a fourth aspect of embodiments herein, there is provided a data processing apparatus. The device comprises: a first sending module, configured to send, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started to the second BGP routing device by using a dynamic capability message, so that, when the first BGP routing device and the second BGP routing device disconnect BGP routing, the second BGP routing device forwards a service traffic to the first BGP routing device based on routing information of the first BGP routing device; and a first receiving module, configured to receive, when the first BGP routing device disconnects BGP from the second BGP routing device, the service traffic forwarded by the second BGP routing device based on the routing information of the first BGP routing device.
According to a fifth aspect of embodiments of the present application, there is provided a data processing apparatus. The device comprises: a second receiving module, configured to receive a first message, which is sent by a first BGP routing device through a dynamic capability message and is used to notify that a graceful restart function of a second BGP routing device is started, where the second BGP routing device establishes a BGP connection with the first BGP routing device; and a starting module, configured to start a graceful restart function of the second BGP routing device based on the first message, so as to forward the service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device disconnects BGP from the first BGP routing device.
According to a sixth aspect of embodiments of the present application, there is provided an electronic apparatus, including: one or more processors; a computer readable medium configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in the first, second or third aspect of the embodiments above.
According to a seventh aspect of embodiments of the present application, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements a data processing method as described in the first, second or third aspect of the embodiments above.
According to the data processing scheme provided by the embodiment of the application, when the operation of a first BGP routing device is detected, a graceful restart function of a second BGP routing device which establishes BGP connection with the first BGP routing device needs to be started, a first message for informing the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device and the second BGP routing device are disconnected from each other, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; when the first BGP routing equipment and the second BGP routing equipment are disconnected from the BGP connection, receiving routing information and forwarded service flow of the second BGP routing equipment based on the first BGP routing equipment, and compared with the existing other modes, when detecting that the graceful restart function of the second BGP routing equipment establishing the BGP connection with the first BGP routing equipment needs to be started aiming at the operation of the first BGP routing equipment, sending a first message for informing the start of the graceful restart function of the second BGP routing equipment to the second BGP routing equipment by using a dynamic capability message, starting the graceful restart function of the second BGP routing equipment establishing the BGP connection with the first BGP routing equipment as required, and enabling the second BGP routing equipment to sense that the situation of the subsequent BGP connection disconnection of the first BGP routing equipment is normal through the first message, thereby effectively solving the problem of black holes of the service flow generated by the BGP routing equipment.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1A is an interactive schematic diagram of a BGP GR process provided in accordance with the prior art;
FIG. 1B is a flowchart illustrating steps of a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating steps of a data processing method according to a second embodiment of the present application;
FIG. 3A is a flowchart illustrating steps of a data processing method according to a third embodiment of the present application;
fig. 3B is a schematic diagram of an interaction process between BGP routing devices according to a third embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of a data processing method according to a fourth embodiment of the present application;
FIG. 5 is a schematic structural diagram of a data processing apparatus according to a fifth embodiment of the present application;
FIG. 6 is a schematic structural diagram of a data processing apparatus according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in a seventh embodiment of the present application;
fig. 8 is a hardware structure of an electronic device according to an eighth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1B, a flowchart illustrating steps of a data processing method according to a first embodiment of the present application is shown.
This embodiment explains the data processing method provided in this embodiment from the perspective of the first BGP routing device. Specifically, the data processing method provided by this embodiment includes the following steps:
in step S101, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started is sent to the second BGP routing device by using a dynamic capability message, so that the second BGP routing device forwards a traffic flow to the first BGP routing device based on routing information of the first BGP routing device when the first BGP routing device and the second BGP routing device are disconnected from each other.
In an embodiment of the present application, the operation for the first BGP routing device includes at least one of: upgrading operation aiming at the BGP process of the first BGP routing equipment, restarting operation aiming at the BGP process of the first BGP routing equipment and TCP connection operation aiming at the first BGP routing equipment. Specifically, the upgrade operation for the BGP process of the first BGP routing device may be an upgrade operation for the BGP process of the first BGP routing device by a user, for example, when the first BGP routing device prompts the user whether to upgrade for the BGP process of the first BGP routing device, the upgrade operation is executed for the BGP process of the first BGP routing device in response to a click operation for a determination control by the user. The upgrade operation for the BGP process of the first BGP routing device may also be an upgrade operation that the first BGP routing device automatically performs for the BGP process of the first BGP routing device, for example, when the first BGP routing device detects a new version of the BGP process, the upgrade operation is automatically performed for the BGP process of the first BGP routing device. In order to ensure that the first BGP routing device can continuously forward the traffic flow during the upgrade operation performed on the BGP process of the first BGP routing device, the graceful restart function of the second BGP routing device that establishes the BGP connection with the first BGP routing device needs to be started, so that when the BGP connection between the first BGP routing device and the second BGP routing device is disconnected due to the warm restart operation during the upgrade operation, the second BGP routing device forwards the traffic flow to the first BGP routing device based on the routing information of the first BGP routing device. The restart operation performed on the BGP process of the first BGP routing device may be a restart operation performed on the BGP process of the first BGP routing device by a user, for example, in response to the user pressing a restart key of the first BGP routing device when the user presses the restart key of the first BGP routing device, the restart operation performed on the BGP process of the first BGP routing device. In order to ensure that the first BGP routing device can continuously forward the service traffic, the graceful restart function of the second BGP routing device that establishes the BGP connection with the first BGP routing device needs to be started in the process of performing the restart operation for the BGP process of the first BGP routing device, so that when the BGP connection between the first BGP routing device and the second BGP routing device is disconnected due to the restart operation, the second BGP routing device forwards the service traffic to the first BGP routing device based on the routing information of the first BGP routing device. The TCP connection operation for the first BGP routing device may be an operation that, after the BGP connection is established between the first BGP routing device and the second BGP routing device, the TCP connection between the first BGP routing device and the second BGP routing device is disconnected, and the TCP connection needs to be executed for the first BGP routing device and the second BGP routing device. In the process of executing TCP connection operation for the first BGP routing device, in order to ensure that the first BGP routing device can continuously forward traffic, a graceful restart function of a second BGP routing device that establishes a BGP connection with the first BGP routing device needs to be started, so that when the first BGP routing device and the second BGP routing device do not establish a BGP connection, the second BGP routing device forwards traffic to the first BGP routing device based on the routing information of the first BGP routing device. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In this embodiment of the present application, the first BGP routing device and the second BGP routing device may both be understood as routing devices based on a BGP protocol, for example, BGP routers. The first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, and multi-cloud service networks. The BGP connection may be understood as a connection established by the first BGP routing device and the second BGP routing device based on a BGP protocol. The TCP connection may be understood as a connection established by the first BGP routing device and the second BGP routing device based on the TCP protocol. The graceful restart function may be understood as a function for ensuring stability of a network without deleting corresponding routing information when a BGP routing device is disconnected for a short time. The dynamic capability message may be understood as a message used to dynamically send messages due to the dynamic capability. The dynamic capability message may have an initialization field, an acknowledgement request field, a reservation field, an action field, a sequence number field, a capability code field, a capability length field, a capability value field, and the like. In this embodiment, the dynamic capability message may be extended to support an attribute advertisement related to the graceful restart function, that is, to support an attribute of the graceful restart capability message related to the graceful restart function, so as to send a message notifying that the graceful restart function of the second BGP routing device is started or closed. The traffic may be multimedia traffic, such as video traffic, audio traffic, text traffic, image traffic. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, the first message carries an update parameter for updating a graceful restart function of the second BGP routing device. Such as a restart timeout, a restart flag, an address family flag, etc. Therefore, the graceful restart function of the second BGP routing equipment can be dynamically updated through the update parameter which is carried in the first message and used for updating the graceful restart function of the second BGP routing equipment. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S102, when the first BGP routing device disconnects from the second BGP routing device, the forwarded service traffic is received based on the routing information of the first BGP routing device by the second BGP routing device.
In some optional embodiments, the method further comprises: when the first BGP routing device reestablishes the BGP connection with the second BGP routing device, send, by using the dynamic capability message, a second message for notifying that the graceful restart function of the second BGP routing device is closed to the second BGP routing device, so that when the second BGP routing device disconnects the BGP connection with the first BGP routing device again, the second BGP routing device deletes the routing information of the first BGP routing device, and forwards the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices. Specifically, when the graceful restart function of the second BGP routing device is turned off, if the second BGP routing device disconnects BGP from the first BGP routing device, the second BGP routing device may determine that the first BGP routing device abnormally disconnects BGP, for example, abnormally disconnects BGP due to a failure. At this time, the second BGP routing device may delete the routing information of the first BGP routing device. Thereby, routing information for the second BGP routing device can be converged quickly. The second BGP routing device may also forward the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices, instead of continuously maintaining forwarding of the traffic to the first BGP routing device, so as to achieve a purpose of quickly recovering the network routing failure. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
By the data processing method provided by the embodiment of the application, when it is detected that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started for operation of the first BGP routing device, a first message for notifying the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; when the first BGP routing equipment and the second BGP routing equipment are disconnected from the BGP connection, receiving routing information and forwarded service flow of the second BGP routing equipment based on the first BGP routing equipment, and compared with the existing other modes, when detecting that the graceful restart function of the second BGP routing equipment establishing the BGP connection with the first BGP routing equipment needs to be started aiming at the operation of the first BGP routing equipment, sending a first message for informing the start of the graceful restart function of the second BGP routing equipment to the second BGP routing equipment by using a dynamic capability message, starting the graceful restart function of the second BGP routing equipment establishing the BGP connection with the first BGP routing equipment as required, and enabling the second BGP routing equipment to sense that the situation of the subsequent BGP connection disconnection of the first BGP routing equipment is normal through the first message, thereby effectively solving the problem of black holes of the service flow generated by the BGP routing equipment.
The data processing method of the present embodiment may be performed by any suitable device having data processing capabilities, including but not limited to: a camera, a terminal, a mobile terminal, a PC, a server, an in-vehicle device, an entertainment device, an advertising device, a Personal Digital Assistant (PDA), a tablet computer, a laptop computer, a handheld game console, smart glasses, a smart watch, a wearable device, a virtual display device, a display enhancement device, or the like.
Referring to fig. 2, a flowchart illustrating steps of a data processing method according to a second embodiment of the present application is shown.
This embodiment explains the data processing method provided in this embodiment from the perspective of the second BGP routing device. Specifically, the data processing method provided by this embodiment includes the following steps:
in step S201, a first message, which is sent by the first BGP routing device by using the dynamic capability message and used for notifying the start of the graceful restart function of the second BGP routing device, is received.
In this embodiment of the present application, the second BGP routing device establishes a BGP connection with the first BGP routing device. The first BGP routing device may be understood as a BGP protocol-based routing device, e.g., a BGP router. The first BGP routing device is located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks. The BGP connection may be understood as a connection established by the first BGP routing device and the second BGP routing device based on a BGP protocol. The graceful restart function may be understood as a function for ensuring stability of a network without deleting corresponding routing information when a BGP routing device is disconnected for a short time. The dynamic capability message may be understood as a message used to dynamically send messages due to the dynamic capability. The dynamic capability message may have an initialization field, an acknowledgement request field, a reservation field, an action field, a sequence number field, a capability code field, a capability length field, a capability value field, etc. In this embodiment, the dynamic capability message may be extended to support an attribute advertisement related to the graceful restart function, that is, to support an attribute of the graceful restart capability message related to the graceful restart function, so as to send a message notifying that the graceful restart function of the second BGP routing device is started or closed. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, the first message carries an update parameter for updating a graceful restart function of the second BGP routing device, and before starting the graceful restart function of the second BGP routing device based on the first message, the method further includes: updating the graceful restart function of the second BGP routing device based on the update parameter carried in the first message, where starting the graceful restart function of the second BGP routing device based on the first message includes: and starting the updated graceful restart function of the second BGP routing equipment based on the first message. Wherein, the update parameter may be a restart timeout time, a restart identifier, an address family identifier, etc. Therefore, the graceful restart function of the second BGP routing device is updated based on the update parameter carried in the first message, and the graceful restart function of the second BGP routing device can be dynamically updated without renegotiation through a port of the BGP routing device. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S202, based on the first message, a graceful restart function of the second BGP routing device is started, so that when the second BGP routing device disconnects BGP from the first BGP routing device, service traffic is forwarded to the first BGP routing device based on the routing information of the first BGP routing device.
In the embodiment of the present application, the second BGP routing device may be understood as a BGP protocol-based routing device, for example, a BGP router. The second BGP routing device is located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks. The traffic may be multimedia traffic, such as video traffic, audio traffic, text traffic, image traffic. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In some optional embodiments, the method further comprises: when the first BGP routing equipment and the second BGP routing equipment reestablish BGP connection, receiving a second message which is sent by the first BGP routing equipment through the dynamic capability message and used for informing the closing of the smooth restarting function of the second BGP routing equipment; and based on the second message, closing a graceful restart function of the second BGP routing device, deleting the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device again, and forwarding the service traffic to other BGP routing devices based on the routing information of other BGP routing devices. Specifically, when the graceful restart function of the second BGP routing device is turned off, if the second BGP routing device disconnects BGP from the first BGP routing device, the second BGP routing device may determine that the first BGP routing device abnormally disconnects BGP, for example, abnormally disconnects BGP due to a failure. At this time, the second BGP routing device may delete the routing information of the first BGP routing device. Thereby, routing information for the second BGP routing device can be converged quickly. The second BGP routing device may also forward the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices, instead of continuously maintaining forwarding of the traffic to the first BGP routing device, so as to achieve a purpose of quickly recovering the network routing failure. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
According to the data processing method provided by the embodiment of the application, a first message which is sent by a first BGP routing device through a dynamic capability message and used for informing the start of the graceful restart function of a second BGP routing device establishing BGP connection with the first BGP routing device is received, the graceful restart function of the second BGP routing device is started based on the first message, so that when the second BGP routing device is disconnected from the first BGP routing device, service flow is forwarded to the first BGP routing device based on the routing information of the first BGP routing device.
The data processing method of the present embodiment may be performed by any suitable device having data processing capabilities, including but not limited to: a camera, a terminal, a mobile terminal, a PC, a server, an in-vehicle device, an entertainment device, an advertising device, a Personal Digital Assistant (PDA), a tablet computer, a laptop computer, a handheld game console, smart glasses, a smart watch, a wearable device, a virtual display device, a display enhancement device, or the like.
Referring to fig. 3A, a flowchart of steps of a data processing method in the third embodiment of the present application is shown.
In this embodiment, the data processing method provided in this embodiment is described from the perspective of interaction between a first BGP routing device and a second BGP routing device. Specifically, the data processing method provided by this embodiment includes the following steps:
in step S301, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started is sent to the second BGP routing device by using a dynamic capability message.
Since the embodiment of step S301 is similar to that of step S101, it is not described herein again.
In step S302, a first message sent by the first BGP routing device for notifying that the graceful restart function of the second BGP routing device is started is received.
Since the embodiment of step S302 is similar to that of step S201, it is not repeated herein.
In step S303, based on the first message, a graceful restart function of the second BGP routing device is started, so that when the second BGP routing device disconnects BGP from the first BGP routing device, service traffic is forwarded to the first BGP routing device based on the routing information of the first BGP routing device.
Since the embodiment of step S303 is similar to that of step S202, it is not repeated herein.
In step S304, when the first BGP routing device disconnects from the second BGP routing device, the service traffic forwarded by the second BGP routing device based on the routing information of the first BGP routing device is received.
Since the embodiment of step S304 is similar to that of step S102, it is not repeated herein.
In one specific example, as shown in fig. 3B, a TCP connection is first established between a first BGP routing device and a second BGP routing device. And establishing BGP connection on the basis of establishing TCP connection. When it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an upgrade operation of a BGP process of the first BGP routing device, a first message for notifying the start of the graceful restart function of the second BGP routing device may be sent to the second BGP routing device by using a dynamic capability message before the upgrade operation is performed for the BGP process of the first BGP routing device, and the second BGP routing device starts the graceful restart function according to the first message, that is, enters a mode assisting the first BGP routing device. After the graceful restart function is initiated, an acknowledgement message for the first message is sent to the first BGP routing device. And when the first BGP routing equipment is disconnected from the second BGP routing equipment due to hot restart operation in the upgrading operation process, the second BGP routing equipment forwards service traffic to the first BGP routing equipment based on the routing information of the first BGP routing equipment. After the hot restart operation in the upgrade operation process is completed, the first BGP routing device and the second BGP routing device reestablish BGP connection. After the first BGP routing device reestablishes the BGP connection with the second BGP routing device, send, by using the dynamic capability message, a second message for notifying that the graceful restart function of the second BGP routing device is closed to the second BGP routing device, where the second BGP routing device receives, by using the dynamic capability message, the second message that is sent by the first BGP routing device and used for notifying that the graceful restart function of the second BGP routing device is closed, and closes, based on the second message, the graceful restart function of the second BGP routing device, that is, closes the mode assisting the first BGP routing device. Under the condition that the graceful restart function of the second BGP routing device is turned off, if the second BGP routing device disconnects BGP from the first BGP routing device again, the second BGP routing device may determine that the first BGP routing device abnormally disconnects BGP, for example, abnormally disconnects BGP due to a failure. At this time, the second BGP routing device may delete the routing information of the first BGP routing device, and forward the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices, and stop forwarding the traffic to the first BGP routing device, thereby achieving the purpose of quickly recovering the network routing failure. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
By the data processing method provided by the embodiment of the application, when detecting that a graceful restart function of a second BGP routing device establishing a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, the first BGP routing device sends, to the second BGP routing device, a first message for notifying the start of the graceful restart function of the second BGP routing device by using a dynamic capability message, the second BGP routing device receives the first message for notifying the start of the graceful restart function of the second BGP routing device, which is sent by the first BGP routing device, and starts the graceful restart function of the second BGP routing device based on the first message, so that when the second BGP routing device is disconnected from the first BGP routing device, traffic is forwarded to the first BGP routing device based on routing information of the first BGP routing device, and when the first BGP routing device is disconnected from the second BGP routing device, receiving a service flow forwarded by a second BGP routing device based on routing information of a first BGP routing device, wherein when detecting that a graceful restart function of the second BGP routing device establishing a BGP connection with the first BGP routing device needs to be started for an operation of the first BGP routing device, the first BGP routing device sends a first message for notifying the start of the graceful restart function of the second BGP routing device to the second BGP routing device by using a dynamic capability message, and the second BGP routing device receives the first message for notifying the start of the graceful restart function of the second BGP routing device sent by the first BGP routing device and starts the graceful restart function of the second BGP routing device based on the first message, so as to start the graceful restart function of the second BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device, the method comprises the steps of forwarding service traffic to the first BGP routing equipment, starting a graceful restart function of second BGP routing equipment establishing BGP connection with the first BGP routing equipment as required, and enabling the second BGP routing equipment to sense that the situation that the BGP connection is disconnected subsequently by the first BGP routing equipment is normal through the first message, thereby effectively solving the problem of black holes of the service traffic generated by the BGP routing equipment.
The data processing method of the present embodiment may be performed by any suitable device having data processing capabilities, including but not limited to: a camera, a terminal, a mobile terminal, a PC, a server, an in-vehicle device, an entertainment device, an advertising device, a Personal Digital Assistant (PDA), a tablet computer, a notebook computer, a handheld game console, smart glasses, a smart watch, a wearable device, a virtual display device, a display enhancement device, or the like.
Referring to fig. 4, a flowchart of steps of a data processing method in the fourth embodiment of the present application is shown.
The present embodiment explains the data processing method provided in this embodiment from the perspective of the first BGP routing device. Specifically, the data processing method provided by this embodiment includes the following steps:
in step S401, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an upgrade operation of a BGP process of the first BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device and the second BGP routing device are disconnected from each other, the second BGP routing device forwards a traffic to the first BGP routing device based on routing information of the first BGP routing device.
In this embodiment of the present application, the upgrade operation for the BGP process of the first BGP routing device may be an upgrade operation for the BGP process of the first BGP routing device by a user, for example, when the first BGP routing device prompts the user whether to upgrade the BGP process of the first BGP routing device, the upgrade operation is executed for the BGP process of the first BGP routing device in response to a click operation of the user on the determination control. The upgrade operation for the BGP process of the first BGP routing device may also be an upgrade operation that is automatically performed by the first BGP routing device for the BGP process of the first BGP routing device, for example, when the first BGP routing device detects a new version of the BGP process, the upgrade operation is automatically performed for the BGP process of the first BGP routing device. In order to ensure that the first BGP routing device can continuously forward the traffic flow during the upgrade operation performed on the BGP process of the first BGP routing device, the graceful restart function of the second BGP routing device that establishes the BGP connection with the first BGP routing device needs to be started, so that when the BGP connection between the first BGP routing device and the second BGP routing device is disconnected due to the warm restart operation during the upgrade operation, the second BGP routing device forwards the traffic flow to the first BGP routing device based on the routing information of the first BGP routing device. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In this embodiment of the present application, the first BGP routing device and the second BGP routing device may both be understood as routing devices based on a BGP protocol, for example, BGP routers. The first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks. The BGP connection may be understood as a connection established by the first BGP routing device and the second BGP routing device based on a BGP protocol. The graceful restart function may be understood as a function for ensuring stability of a network without deleting corresponding routing information when a BGP routing device is disconnected for a short time. The dynamic capability message may be understood as a message used to dynamically send messages due to the dynamic capability. The dynamic capability message may have an initialization field, an acknowledgement request field, a reservation field, an action field, a sequence number field, a capability code field, a capability length field, a capability value field, etc. In this embodiment, the dynamic capability message may be extended to support an attribute advertisement related to the graceful restart function, that is, to support an attribute of the graceful restart capability message related to the graceful restart function, so as to send a message notifying that the graceful restart function of the second BGP routing device is started or closed. The traffic may be multimedia traffic, such as video traffic, audio traffic, text traffic, image traffic. It should be understood that the above description is only exemplary, and the embodiments of the present application are not limited in this respect.
In step S402, when the first BGP routing device disconnects from the second BGP routing device, the service traffic forwarded by the second BGP routing device based on the routing information of the first BGP routing device is received.
Since the embodiment of step S402 is similar to that of step S102, it is not repeated herein.
By the data processing method provided by the embodiment of the application, when it is detected that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started for upgrading operation of a BGP process of the first BGP routing device, a first message for notifying the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; when the first BGP routing equipment and the second BGP routing equipment are disconnected with each other, receiving routing information and forwarded service flow of the second BGP routing equipment based on the first BGP routing equipment, and compared with the existing other modes, when upgrading operation of a BGP process aiming at the first BGP routing equipment is detected and a graceful restart function of the second BGP routing equipment establishing BGP connection with the first BGP routing equipment needs to be started, sending a first message for informing the start of the graceful restart function of the second BGP routing equipment to the second BGP routing equipment by using a dynamic capability message, starting the graceful restart function of the second BGP routing equipment establishing BGP connection with the first BGP routing equipment as required, and enabling the second BGP routing equipment to sense that the situation of the subsequent BGP connection disconnection of the first BGP routing equipment is normal through the first message, thereby effectively solving the problem of black holes of the service flow generated by the BGP routing equipment.
The data processing method of the present embodiment may be performed by any suitable device having data processing capabilities, including but not limited to: a camera, a terminal, a mobile terminal, a PC, a server, an in-vehicle device, an entertainment device, an advertising device, a Personal Digital Assistant (PDA), a tablet computer, a laptop computer, a handheld game console, smart glasses, a smart watch, a wearable device, a virtual display device, a display enhancement device, or the like.
Referring to fig. 5, a schematic structural diagram of a data processing apparatus in the fifth embodiment of the present application is shown.
The data processing apparatus provided by the embodiment includes: a first sending module 501, configured to, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, send, to the second BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started by using a dynamic capability message, so that, when the first BGP routing device and the second BGP routing device are disconnected from each other, the second BGP routing device forwards a service traffic to the first BGP routing device based on routing information of the first BGP routing device; a first receiving module 502, configured to receive the service traffic forwarded by the second BGP routing device based on the routing information of the first BGP routing device when the first BGP routing device disconnects BGP connection from the second BGP routing device.
Optionally, the apparatus further comprises: a second sending module 503, configured to send, to the second BGP routing device, a second message for notifying that the graceful restart function of the second BGP routing device is closed by using the dynamic capability message when the BGP connection between the first BGP routing device and the second BGP routing device is reestablished, so that, when the BGP connection between the second BGP routing device and the first BGP routing device is disconnected again, the second BGP routing device deletes the routing information of the first BGP routing device, and forwards the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices.
Optionally, the first message carries an update parameter for updating a graceful restart function of the second BGP routing device.
Optionally, the operation with the first BGP routing device comprises at least one of: upgrading operation aiming at the BGP process of the first BGP routing equipment, restarting operation aiming at the BGP process of the first BGP routing equipment and TCP connection operation aiming at the first BGP routing equipment.
Optionally, the first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, and multi-cloud service networks.
The data processing apparatus of this embodiment is configured to implement the corresponding data processing method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Referring to fig. 6, a schematic structural diagram of a data processing apparatus according to a sixth embodiment of the present application is shown.
The data processing apparatus provided by the embodiment includes: a second receiving module 601, configured to receive a first message, which is sent by a first BGP routing device through a dynamic capability message and is used to notify that a graceful restart function of a second BGP routing device is started, where the second BGP routing device establishes a BGP connection with the first BGP routing device; a starting module 603, configured to start a graceful restart function of the second BGP routing device based on the first message, so as to forward a service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device disconnects from the first BGP routing device.
Optionally, the apparatus further comprises: a third receiving module 604, configured to receive, when the first BGP routing device reestablishes the BGP connection with the second BGP routing device, a second message that is sent by the first BGP routing device by using the dynamic capability message and is used to notify that the graceful restart function of the second BGP routing device is closed; a closing module 605, configured to close a graceful restart function of the second BGP routing device based on the second message, so as to delete the routing information of the first BGP routing device when the second BGP routing device disconnects BGP from the first BGP routing device again, and forward the service traffic to the other BGP routing devices based on the routing information of the other BGP routing devices.
Optionally, the first message carries an update parameter for updating a graceful restart function of the second BGP routing device, and before the starting module 603, the apparatus further includes: an updating module 602, configured to update a graceful restart function of the second BGP routing device based on the update parameter carried in the first message, where the starting module 603 is specifically configured to: and starting the updated graceful restart function of the second BGP routing equipment based on the first message.
Optionally, the first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks.
The data processing apparatus of this embodiment is configured to implement the corresponding data processing method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic device in a seventh embodiment of the present application; the electronic device may include:
one or more processors 701;
a computer-readable medium 702, which may be configured to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to the first embodiment, the second embodiment, the third embodiment, or the fourth embodiment.
Fig. 8 is a hardware structure of an electronic device according to an eighth embodiment of the present application; as shown in fig. 8, the hardware structure of the electronic device may include: a processor 801, a communication interface 802, a computer-readable medium 803, and a communication bus 804;
wherein the processor 801, the communication interface 802, and the computer readable medium 803 communicate with each other via a communication bus 804;
alternatively, the communication interface 802 may be an interface of a communication module, such as an interface of a GSM module;
the processor 801 may be specifically configured to: when detecting that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started aiming at operation of the first BGP routing device, sending a first message for informing starting of the graceful restart function of the second BGP routing device to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment. Further, the processor 801 may be further configured to: receiving a first message which is sent by a first BGP routing device through a dynamic capability message and is used for informing the starting of a smooth restarting function of a second BGP routing device, wherein the second BGP routing device establishes BGP connection with the first BGP routing device; and starting a graceful restart function of the second BGP routing device based on the first message, so as to forward the service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device. Further, the processor 801 may be further configured to: when the upgrade operation of a BGP process aiming at a first BGP routing device is detected, a graceful restart function of a second BGP routing device establishing BGP connection with the first BGP routing device is required to be started, a first message for informing the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment.
The Processor 801 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The computer-readable medium 803 may be, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code configured to perform the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program performs the above-mentioned functions defined in the method of the present application when executed by a Central Processing Unit (CPU). It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory medium (RAM), a read-only memory medium (ROM), an erasable programmable read-only memory medium (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations for the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may operate over any of a variety of networks: including a Local Area Network (LAN) or a Wide Area Network (WAN) -to the user's computer, or the connection may be made to an external computer (for example, through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured for implementing the specified logical function(s). In the above embodiments, there are specific precedence relationships, but these precedence relationships are only exemplary, and in particular implementation, the steps may be fewer, more, or the execution order may be adjusted. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a second receiving module and an initiating module. The names of these modules do not constitute a limitation to the modules themselves in some cases, for example, the second receiving module may also be described as a module that receives a first message sent by the first BGP routing device by using the dynamic capability message and used for notifying that the graceful restart function of the second BGP routing device is started.
As another aspect, the present application also provides a computer-readable medium on which a computer program is stored, where the computer program, when executed by a processor, implements the data processing method described in the above first embodiment, second embodiment, third embodiment, or fourth embodiment.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: when detecting that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started aiming at operation of the first BGP routing device, sending a first message for informing starting of the graceful restart function of the second BGP routing device to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment. Further, the apparatus is caused to: receiving a first message which is sent by a first BGP routing device through a dynamic capability message and used for informing the starting of a smooth restarting function of a second BGP routing device, wherein the second BGP routing device establishes BGP connection with the first BGP routing device; and starting a graceful restart function of the second BGP routing device based on the first message, so as to forward service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device. Further, the apparatus is caused to: when the upgrade operation of a BGP process aiming at a first BGP routing device is detected, and a graceful restart function of a second BGP routing device establishing BGP connection with the first BGP routing device is required to be started, a first message for informing the start of the graceful restart function of the second BGP routing device is sent to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device based on routing information of the first BGP routing device; and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment.
The expressions "first", "second", "said first" or "said second" used in various embodiments of the present disclosure may modify various components without regard to order and/or importance, but these expressions do not limit the respective components. The above description is only configured for the purpose of distinguishing elements from other elements. For example, the first user equipment and the second user equipment represent different user equipment, although both are user equipment. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure.
When an element (e.g., a first element) is referred to as being "operably or communicatively coupled" or "connected" (operably or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the element is directly connected to the other element or the element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), no element (e.g., a third element) is interposed therebetween.
The foregoing description is only exemplary of the preferred embodiments of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (20)

1. A method of data processing, the method comprising:
when detecting that a graceful restart function of a second BGP routing device establishing BGP connection with a first BGP routing device needs to be started aiming at operation of the first BGP routing device, sending a first message for informing starting of the graceful restart function of the second BGP routing device to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device is disconnected from the second BGP routing device, the second BGP routing device forwards service traffic to the first BGP routing device on the basis of routing information of the first BGP routing device, wherein the dynamic capability message is a message which has a capability code field, a capability length field and a capability value field and is used for dynamically sending messages due to dynamic capability;
and when the first BGP routing equipment and the second BGP routing equipment are disconnected from BGP connection, receiving the service flow forwarded by the second BGP routing equipment based on the routing information of the first BGP routing equipment.
2. The method of claim 1, wherein the method further comprises:
when the first BGP routing device reestablishes the BGP connection with the second BGP routing device, send, by using the dynamic capability message, a second message for notifying that the graceful restart function of the second BGP routing device is closed to the second BGP routing device, so that when the second BGP routing device disconnects the BGP connection with the first BGP routing device again, the second BGP routing device deletes the routing information of the first BGP routing device, and forwards the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices.
3. The method of claim 1, wherein the first message carries an update parameter for updating a graceful restart function of the second BGP routing device.
4. The method of any one of claims 1-3, wherein the operation directed to the first BGP routing device comprises at least one of:
upgrading operation aiming at the BGP process of the first BGP routing equipment, restarting operation aiming at the BGP process of the first BGP routing equipment and TCP connection operation aiming at the first BGP routing equipment.
5. The method of any of claims 1-3, wherein the first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks.
6. A method of data processing, the method comprising:
receiving a first message which is sent by a first BGP routing device by using a dynamic capability message and used for notifying the starting of a smooth restarting function of a second BGP routing device, wherein the second BGP routing device establishes BGP connection with the first BGP routing device, and the dynamic capability message is a message which has a capability code field, a capability length field and a capability value field and is used for dynamically sending messages due to dynamic capability;
and starting a graceful restart function of the second BGP routing device based on the first message, so as to forward the service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device is disconnected from the first BGP routing device.
7. The method of claim 6, wherein the method further comprises:
when the first BGP routing equipment and the second BGP routing equipment reestablish BGP connection, receiving a second message which is sent by the first BGP routing equipment through the dynamic capability message and is used for informing the closing of the smooth restarting function of the second BGP routing equipment;
and based on the second message, closing the graceful restart function of the second BGP routing device, so as to delete the routing information of the first BGP routing device when the second BGP routing device and the first BGP routing device are disconnected again, and forward the service traffic to other BGP routing devices based on the routing information of other BGP routing devices.
8. The method of claim 6, wherein the first message carries an update parameter for updating a graceful restart function of the second BGP routing device,
before initiating a graceful restart function of the second BGP routing device based on the first message, the method further comprises:
updating a graceful restart function of the second BGP routing device based on the update parameter carried in the first message,
the initiating, based on the first message, a graceful restart function of the second BGP routing device includes:
and starting the updated graceful restart function of the second BGP routing equipment based on the first message.
9. The method of any of claims 6-8, wherein the first BGP routing device and the second BGP routing device are located in at least one of the following networks: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, and multi-cloud service networks.
10. A data processing apparatus, the apparatus comprising:
a first sending module, configured to send, when it is detected that a graceful restart function of a second BGP routing device that establishes a BGP connection with a first BGP routing device needs to be started for an operation of the first BGP routing device, a first message for notifying that the graceful restart function of the second BGP routing device is started to the second BGP routing device by using a dynamic capability message, so that when the first BGP routing device disconnects the BGP connection with the second BGP routing device, the second BGP routing device forwards a traffic to the first BGP routing device based on routing information of the first BGP routing device, where the dynamic capability message is a message that has a capability code field, a capability length field, and a capability value field and is used to dynamically send a message due to having a dynamic capability;
and a first receiving module, configured to receive, when the first BGP routing device disconnects BGP from the second BGP routing device, the service traffic forwarded by the second BGP routing device based on the routing information of the first BGP routing device.
11. The apparatus of claim 10, wherein the apparatus further comprises:
a second sending module, configured to send, to the second BGP routing device, a second message for notifying that the graceful restart function of the second BGP routing device is closed by using the dynamic capability message when the BGP connection between the first BGP routing device and the second BGP routing device is reestablished, so that, when the BGP connection between the second BGP routing device and the first BGP routing device is disconnected again, the second BGP routing device deletes the routing information of the first BGP routing device, and forwards the traffic to the other BGP routing devices based on the routing information of the other BGP routing devices.
12. The apparatus of claim 10, wherein the first message carries an update parameter for updating a graceful restart function of the second BGP routing device.
13. The apparatus of any one of claims 10-12, wherein the operation for the first BGP routing device comprises at least one of:
upgrading operation aiming at the BGP process of the first BGP routing equipment, restarting operation aiming at the BGP process of the first BGP routing equipment and TCP connection operation aiming at the first BGP routing equipment.
14. The apparatus of any of claims 10-12, wherein the first BGP routing device and the second BGP routing device are located in at least one of: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks.
15. A data processing apparatus, the apparatus comprising:
a second receiving module, configured to receive a first message, which is sent by a first BGP routing device through a dynamic capability message and is used to notify that a graceful restart function of a second BGP routing device is started, where the second BGP routing device establishes a BGP connection with the first BGP routing device, and the dynamic capability message is a message that has a capability code field, a capability length field, and a capability value field and is used to dynamically send a message because of having a dynamic capability;
and a starting module, configured to start a graceful restart function of the second BGP routing device based on the first message, so as to forward the service traffic to the first BGP routing device based on the routing information of the first BGP routing device when the second BGP routing device disconnects BGP from the first BGP routing device.
16. The apparatus of claim 15, wherein the apparatus further comprises:
a third receiving module, configured to receive, when the first BGP routing device reestablishes the BGP connection with the second BGP routing device, a second message that is sent by the first BGP routing device by using the dynamic capability message and is used to notify that the graceful restart function of the second BGP routing device is closed;
and a shutdown module, configured to shutdown a graceful restart function of the second BGP routing device based on the second message, to delete the routing information of the first BGP routing device when the second BGP routing device disconnects BGP from the first BGP routing device again, and forward the service traffic to the other BGP routing devices based on the routing information of the other BGP routing devices.
17. The apparatus of claim 15, wherein the first message carries an update parameter for updating a graceful restart function of the second BGP routing device,
before the starting module, the device further comprises:
an updating module, configured to update a graceful restart function of the second BGP routing device based on the update parameter carried in the first message,
the starting module is specifically configured to:
and starting the updated graceful restart function of the second BGP routing equipment based on the first message.
18. The apparatus of any one of claims 15-17, wherein the first BGP routing device and the second BGP routing device are located in at least one of: public cloud service networks, proprietary cloud service networks, hybrid cloud service networks, multi-cloud service networks.
19. An electronic device, the device comprising:
one or more processors;
a computer readable medium configured to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of claims 1-5, or to implement a data processing method as claimed in any one of claims 6-9.
20. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the data processing method of any one of claims 1 to 5 or carries out the data processing method of any one of claims 6 to 9.
CN202010253685.6A 2020-04-01 2020-04-01 Data processing method and device, electronic equipment and computer readable medium Active CN113300950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010253685.6A CN113300950B (en) 2020-04-01 2020-04-01 Data processing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010253685.6A CN113300950B (en) 2020-04-01 2020-04-01 Data processing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN113300950A CN113300950A (en) 2021-08-24
CN113300950B true CN113300950B (en) 2023-03-24

Family

ID=77317870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010253685.6A Active CN113300950B (en) 2020-04-01 2020-04-01 Data processing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113300950B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708290B (en) * 2023-08-04 2023-10-10 腾讯科技(深圳)有限公司 Routing detection method and device based on hybrid cloud network, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209469A (en) * 2016-07-21 2016-12-07 杭州迪普科技有限公司 The method and device that process is restarted
CN110519076A (en) * 2019-07-25 2019-11-29 新华三大数据技术有限公司 It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399824B (en) * 2007-09-29 2011-12-07 华为技术有限公司 Method, system and router realizing elegant restart of route information protocol
CN101521616B (en) * 2008-02-27 2012-07-04 华为技术有限公司 Method and system for neighbor migration in Border Gateway Protocol (BGP) distributed system
CN101610208A (en) * 2008-06-19 2009-12-23 华为技术有限公司 The method of announcing between bgp neighbor, system and router
CN101364927A (en) * 2008-09-24 2009-02-11 华为技术有限公司 Method, apparatus and system realizing fault recovery of virtual private network
CN101753454B (en) * 2009-12-21 2013-01-30 华为技术有限公司 Graceful restart method for router, router and network system
CN102315969A (en) * 2011-09-22 2012-01-11 中兴通讯股份有限公司南京分公司 Neighbor discovery protocol graceful restart (GR) processing method and device
JP5835043B2 (en) * 2012-03-19 2015-12-24 富士通株式会社 Restart method and node device
US9338055B2 (en) * 2013-03-15 2016-05-10 Cisco Technology, Inc. Virtual router upgrade via graceful restart
CN103986649B (en) * 2014-05-28 2017-08-11 新华三技术有限公司 A kind of Border Gateway Protocol smooth restarting method and routing device
CN105763477B (en) * 2016-02-03 2019-09-06 新华三技术有限公司 A kind of flow control policy processing method and processing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209469A (en) * 2016-07-21 2016-12-07 杭州迪普科技有限公司 The method and device that process is restarted
CN110519076A (en) * 2019-07-25 2019-11-29 新华三大数据技术有限公司 It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system

Also Published As

Publication number Publication date
CN113300950A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
KR102555806B1 (en) Method, apparatus, device and storage medium for establishing wireless connection
WO2017107542A1 (en) Video program obtaining method, device and system
CN108063773B (en) Application service access method and device based on mobile edge computing
CN110166791B (en) Connection establishing method, device, equipment and storage medium
CN110750393A (en) Method, device, medium and equipment for avoiding network service dual-computer hot standby split brain
CN112019914B (en) Screen projection method and device, electronic equipment and computer readable medium
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
WO2017097128A1 (en) Method and apparatus for taking over task between devices
CN110996372A (en) Message routing method, device and system and electronic equipment
CN113300950B (en) Data processing method and device, electronic equipment and computer readable medium
CN112328318A (en) Method and device for automatic planning of proprietary cloud platform and storage medium
CN110489244B (en) Information processing method, system, apparatus and computer readable storage medium
CN114938395A (en) Service response method, device, equipment and storage medium
WO2024066864A1 (en) Media content sharing method and apparatus, electronic device, and storage medium
CN111641693B (en) Session data processing method and device and electronic equipment
CN111294888B (en) Network selection method and device
US20240205463A1 (en) Recording and push-based streaming method and apparatus, device, and medium
WO2022033458A1 (en) Network transition method and apparatus, and device
CN115996187A (en) Routing information processing method and device, routing information interaction system and routing equipment
CN114828010B (en) Method for safely accessing network slice based on application attribute and related equipment
CN111258739A (en) Server process updating method, device, server and medium
EP4180966A1 (en) Method and device for backup management, medium and system
CN113179211B (en) Method and device for routing and for setting up a communication connection
WO2017121368A1 (en) Emergency communication method and apparatus
CN111142740A (en) Data updating method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40059151

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant