Method, device, equipment and medium for controlling BFD information transmission with transfer and control separation
By monitoring the congestion of message transmission channels in real time in network equipment and opening the backup channel, the problems of BFD session monitoring delay and routing protocol oscillation are solved, and the timeliness and service stability of information interaction is improved.
Patent Information
- Application Number
- CN202111583239.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In network equipment with a switching and control separation architecture, the message transmission delay between the control surface device and the forwarding surface device is large or the channel is blocked, resulting in BFD session monitoring timeout, which may cause BFD session oscillation and routing protocol oscillation, affecting traffic forwarding.
The first message transmission channel congestion between the control surface device and the forwarding surface device is monitored in real time. When congestion is detected, the second message transmission channel is turned on to ensure the timely transmission of BFD configuration information.
By opening the second message transmission channel, the timeliness of information interaction between the control surface device and the forwarding surface device is improved, the stable operation of the service state is ensured, and the stable migration of the service state is achieved when the link is abnormal.
Smart Images

Figure CN116346256B_ABST
Abstract
Description
Background Art
[0002] The modern information society is increasingly dependent on the Internet, and the requirements for network reliability and availability are becoming higher and higher, such as in the fields of security, finance, and data centers. The network is built by related equipment and transmission lines. With the increasing degree of IP (Internet Protocol, the protocol for interconnection between networks, that is, Internet Protocol), the proportion of data network equipment used in the network (including fixed and mobile networks) is gradually increasing, so the requirements for the reliability and availability of data network equipment are also becoming higher and higher.
[0003] Data network equipment is composed of hardware and software running on it. In order to enhance the reliability and availability of equipment, the equipment in the core part of the network is deployed in a master-slave mode. The core large switching capacity equipment is dual-master control mode. In some applications, several devices form a virtual system, and the devices are master and standby to each other. In order to achieve the purpose of the backup device taking over and ensuring uninterrupted services when the main device fails, the software between the main control board and the backup control board in the equipment or the main device and the backup device in the virtual system needs to have a hot switching function, usually using NSR (Non-Stopping Routing) technology. NSR is a high reliability technology in data network equipment and is the basis of hot migration. Its implementation basis is data synchronization between the main control board and the backup control board. When the main control board fails, the main and backup switches are performed, and the backup control board uses synchronized data to go online, which can achieve uninterrupted routing and forwarding.
[0004] In related technologies, under the separation of forwarding and control, network equipment needs to implement millisecond-level link fault monitoring so that the system can quickly switch links and ensure the connectivity of network links. In order to achieve the maximum degree of module decoupling and independence between the control plane device and the forwarding plane device, configuration databases, platform controls, forwarding databases and other modules are added to the upper and lower information interaction channels for segmentation and isolation.
[0005] In a network device with a forwarding-control separation architecture, since the forwarding plane device is deployed separately from the control plane device, when the control plane device generates link information or configuration information changes, it will trigger the creation, update, and deletion of a bidirectional forwarding detection (BFD) session, and send the configuration information to the forwarding plane device, which will be processed by the forwarding plane device according to the sent configuration information. However, if the message transmission channel between the forwarding plane device and the control plane device has a large delay or communication anomalies such as channel congestion, the forwarding plane device cannot update the configuration information sent by the control plane device in time, resulting in a timeout of the BFD monitoring of the peer device, which may cause the BFD session to oscillate, thereby causing the routing protocol to oscillate, and further affecting traffic forwarding.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] The present disclosure provides a method, device, equipment and medium for controlling BFD information transmission with separation of forwarding and control, which at least to some extent overcomes the problem that the timeliness of the control plane device and the forwarding plane device under the separation of forwarding and control provided in the related art cannot be guaranteed.
[0008] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0009] According to one aspect of the present disclosure, a method for controlling BFD information transmission with transfer and control separation is provided, comprising:
[0010] Real-time monitoring of congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device;
[0011] When it is monitored that the first message transmission channel is in a congested state, a second message transmission channel is controlled to be opened, and the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information issued by the control plane device to the forwarding plane device.
[0012] In one embodiment of the present disclosure, real-time monitoring of congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device includes:
[0013] Real-time monitoring of the real-time occupancy rate of module process resources in the first message transmission channel;
[0014] Determine whether the real-time occupancy rate of the module process resources is greater than a preset occupancy rate threshold within a first preset time period;
[0015] If it is greater, it is determined that the first message transmission channel is in a congested state.
[0016] In one embodiment of the present disclosure, after the controlling of opening the second message transmission channel, the method further includes:
[0017] When it is monitored that the real-time occupancy rate of the module process resources is less than or equal to the preset occupancy rate threshold within the first preset time period, idle prompt information is sent to the control plane device so that the control plane device determines the opening time of the first message transmission channel according to the idle prompt information.
[0018] In one embodiment of the present disclosure, real-time monitoring of congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device includes:
[0019] The module issuer in the first message transmission channel sends a configuration message, wherein the configuration message includes a BFD configuration message and a response request message;
[0020] Record the time interval between the module sending party sending a response request message and receiving a response reply message initiated by the module receiving party;
[0021] Determining whether the time interval is greater than a preset time interval threshold;
[0022] If it is greater, it is determined that the first message transmission channel is in a congested state.
[0023] In one embodiment of the present disclosure, after the controlling of opening the second message transmission channel, the method further includes:
[0024] When the time interval between the module sending party sending a response request message and receiving a response reply message initiated by the module receiving party is less than a preset time interval threshold, an idle prompt message is sent to the control plane device so that the control plane device determines the timing of opening the first message transmission channel according to the idle prompt message.
[0025] In one embodiment of the present disclosure, after the controlling of opening the second message transmission channel, the method further includes:
[0026] If it is monitored that no message is transmitted in the second message transmission channel within the second preset time period, the second message transmission channel is controlled to be closed.
[0027] In one embodiment of the present disclosure, the second message transmission channel is a Unix socket channel.
[0028] According to another aspect of the present disclosure, a BFD information transmission control device with transfer and control separation is provided, comprising:
[0029] A monitoring module, used to monitor in real time the congestion of a first message transmission channel used for data transmission between the control plane device and the forwarding plane device;
[0030] The control module is used to control the opening of a second message transmission channel when it is detected that the first message transmission channel is in a congested state, and the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information issued by the control plane device to the forwarding plane device.
[0031] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned transfer-control separation BFD information transmission control method by executing the executable instructions.
[0032] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned BFD information transmission control method with transfer and control separation is implemented.
[0033] The embodiments of the present invention provide a method, device, equipment and medium for controlling BFD information transmission with separation of control and forwarding. By opening a second message transmission channel between the control plane device and the forwarding plane device and monitoring the congestion of the first message transmission channel in real time, the timing for opening the second message transmission channel is determined. This solves the technical problem of delayed sending of BFD session information when the equipment business is extremely busy and messages are congested, greatly improves the timeliness of information interaction between the control plane device and the forwarding plane device, ensures the stable operation of the business status, and helps to stabilize the migration of the business status when the link is abnormal.
[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0036] Figure 1 A system architecture diagram of a network device in an embodiment of the present disclosure is shown;
[0037] Figure 2 A flow chart showing the transmission of network device information in an embodiment of the present disclosure;
[0038] Figure 3 A flow chart of a method for controlling BFD information transmission with transfer and control separation in an embodiment of the present disclosure is shown;
[0039] Figure 4 A flow chart of a method for controlling BFD information transmission with transfer and control separation in another embodiment of the present disclosure is shown;
[0040] Figure 5 A flow chart of a method for controlling BFD information transmission with transfer and control separation in another embodiment of the present disclosure is shown;
[0041] Figure 6 A system architecture diagram showing a network device after a second message transmission channel is added in an embodiment of the present disclosure;
[0042] Figure 7 A flowchart showing network device information transmission after adding a second message transmission channel in an embodiment of the present disclosure is shown;
[0043] Figure 8 A schematic diagram of a BFD information transmission control device with transfer and control separation in an embodiment of the present disclosure is shown;
[0044] Fig. 9 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0045] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0046] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0047] Figure 1 A system architecture diagram of an exemplary network device that can be applied to the method for controlling BFD information transmission with transfer and control separation or the device for controlling BFD information transmission with transfer and control separation according to an embodiment of the present disclosure is shown.
[0048] like Figure 1As shown, the network device may include a control plane device 101 and a forwarding plane device 102. In addition, the network is also provided with terminal devices, which may be switches, routers, PON (Passive Optical Network) central office devices, PTN (Packet Transport Network) devices or other similar devices. The switch may be, for example, Figure 1 Access switch 103, uplink switch 104, etc.
[0049] Specifically, the control plane device 101 includes an active main control board and a standby main control board, and the control plane device 101 and the terminal device communicate via a TCP connection. In normal operation, a TCP connection is completed between the active main control board and the terminal device. When the active main control board is actively switched or passively switched due to a failure, the standby main control board is promoted to the active main control board, replacing the original active main control board, and completes a TCP connection with the terminal device to achieve link conversion.
[0050] VxLAN GW (Virtual eXtensible Local Area Network Gateway), RPC (Remote Procedure Call), etc. can be set in the control plane device 101.
[0051] The forwarding plane device 102 may also be provided with a VxLAN GW, a NIC (Network Interface Controller) agent, and a monitoring function (Monitoer).
[0052] The control plane device 101 exchanges information with the forwarding plane device 102 through the first message transmission channel, and the first information transmission channel uses floating IP technology for communication. Specifically, the information transmission channel is configured to communicate using the first floating IP address and the second floating IP address. Floating IP technology refers to a floating IP address set when doing dual machines. By accessing this floating IP address, one of the machines in the background can be accessed, which is determined by certain rules.
[0053] The first message transmission channel includes a configuration database, a platform control and a forwarding database. The configuration database is used to store the configuration information sent by the control plane device 101, the platform control is used to monitor the configuration update of the configuration database, and the forwarding database is used to store the BFD configuration information sent by the platform control.
[0054] Specifically, Figure 2As shown, when the control plane device 101 generates link information or configuration information changes, the control plane device 101 will trigger operations such as creation, update and deletion of the BFD session, and send the configuration information to the configuration database for configuration update. When the platform control monitors the configuration update of the configuration database, the platform control triggers the new configuration and checks whether the new configuration meets the forwarding condition. If the forwarding condition is not met, the platform control issues an error prompt and ignores the new configuration. If the forwarding condition is met, the platform control assembles the new configuration with the forwarding plane device 102 information and sends it to the forwarding database; when the BFD configuration information update of the forwarding database is monitored, the forwarding plane device 102 obtains the BFD configuration information from the forwarding database, and checks whether the obtained BFD configuration information meets the forwarding condition. If so, the obtained BFD configuration information is used to update the configuration information of the hardware device (such as a network card, chip), and the hardware device completes the forwarding; if not, the forwarding plane device 102 issues an error prompt and ignores the new configuration.
[0055] In this process, when the equipment business is extremely busy, the first information transmission channel between the control plane device 101 and the forwarding plane device 102 will be seriously congested, and the BFD configuration information sent by the control plane device cannot be sent and updated in time to the forwarding plane device, which may cause BFD session oscillation, thereby causing routing protocol oscillation, and further affecting traffic forwarding. In order to solve the above problem, in this application, a second message transmission channel is added between the control plane device and the forwarding plane device, and the congestion of the first message transmission channel is monitored in real time. When the first message transmission channel is congested, the second message transmission channel is opened to ensure the timeliness of the transmission of the BFD configuration information sent by the control plane device.
[0056] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0057] First, an embodiment of the present disclosure provides a method for controlling BFD information transmission with transfer-control separation, which can be executed by any system with computing and processing capabilities.
[0058] Figure 3 A flow chart of a method for controlling BFD information transmission with transfer and control separation in an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the BFD information transmission control method provided in the embodiment of the present disclosure includes the following steps:
[0059] S302: monitor in real time the congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device;
[0060] Specifically, the congestion of the first message transmission channel can be monitored through a status monitor, which monitors the real-time occupancy rate of the process resources of each module in the first message transmission channel in real time, or, when each module in the first message transmission channel transmits BFD configuration information, increases the sending of response request messages and response reply messages, thereby realizing the monitoring of the congestion of the first message transmission channel.
[0061] S304: When it is monitored that the first message transmission channel is in a congested state, control to open the second message transmission channel, and the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information sent by the control plane device to the forwarding plane device.
[0062] Specifically, Figure 6 As shown, a second message transmission channel is set between the control plane device 101 and the forwarding plane device 102. The second message transmission channel is a Unix Socket channel. Socket is a set of programming interfaces (APIs) between the transport layer and the application layer, providing a unified programming interface to the application layer. The application layer does not need to understand the details of the TCP / IP protocol, and directly completes the transmission of data in the IP network by calling the Socket interface function. When creating a Socket, the address domain and type need to be specified. Only when the addresses and types of the two processes are the same can communication be possible. Two common address domains include the Unix domain and the Internet domain. The Unix domain treats the Socket as a file under the file system, while the Internet domain is suitable for process communication in different hosts. In the Internet domain, the Socket needs to specify the address and port number, so as to realize the transmission of the BFD configuration information issued by the control plane device to the forwarding plane device through the second message transmission channel.
[0063] In this embodiment, when it is monitored that the first transmission channel is in an idle state, the timeliness of information transmission can be guaranteed through the first message transmission channel, and there is no need to open the second message transmission channel; when it is monitored that the first message transmission channel is in a congested state, the timeliness of BFD configuration message transmission can no longer be guaranteed through the first message transmission channel, and the second message transmission channel needs to be opened.
[0064] Specifically, when the control plane device 101 generates link information or configuration information changes, the control plane device 101 will trigger operations such as creation, update and deletion of the BFD session, and send the configuration information to the configuration database 601 for configuration update. When the platform control 602 monitors the configuration update of the configuration database 601, the platform control 602 triggers the new configuration, and the platform control 602 assembles the new configuration with the forwarding plane device 102 information and sends it to the forwarding database 603; when the BFD configuration information update of the forwarding database 603 is monitored, the forwarding plane device 102 obtains the BFD configuration information from the forwarding database 603 to complete the transmission of the BFD configuration message.
[0065] When it is monitored that the first message transmission channel is in a congested state, the control plane device 101 receives a prompt signal that the first message transmission channel is in a congested state, and the control plane device 101 opens the second message transmission channel and transmits the subsequently transmitted BFD configuration information to the forwarding plane device 102 through the second message transmission channel.
[0066] The present embodiment provides a forwarding-and-control-separated BFD information transmission control method, which opens a second message transmission channel between the control plane device and the forwarding plane device, monitors the congestion of the first message transmission channel in real time, and then determines the opening time of the second message transmission channel. This solves the technical problem of delayed sending of BFD session information when the equipment business is extremely busy and the message is congested, greatly improves the timeliness of information interaction between the control plane device and the forwarding plane device, ensures the stable operation of the business status, and helps to stably migrate the business status when the link is abnormal.
[0067] In one embodiment of the present disclosure, Figure 4 As shown, step S302 monitors the congestion of the first message transmission channel used for data transmission between the control plane device and the forwarding plane device in real time, including:
[0068] S402, real-time monitoring of the real-time occupancy rate of module process resources in the first message transmission channel;
[0069] S404: determining whether the real-time occupancy rate of the module process resources is greater than a preset occupancy rate threshold within a first preset time period;
[0070] S406: If it is greater than, it is determined that the first message transmission channel is in a congested state.
[0071] In the process of the control plane device transmitting BFD configuration information to the forwarding plane device through the first message transmission channel, the status monitor monitors the real-time occupancy rate of the module process resources in the first message transmission channel in real time. For example, the status monitor can monitor the real-time occupancy rate of the process resources of the configuration database, platform control and / or forwarding database in real time. The following is an example of monitoring the real-time occupancy rate of the process resources of the platform control. If the status monitor detects that the real-time occupancy rate of the process resources of the platform control within the first preset time period is greater than the preset occupancy rate threshold, the status monitor sends a congestion alarm message to the control plane device. When the control plane device receives the congestion alarm message, it opens the second message transmission channel to continue to complete the transmission of the BFD configuration information.
[0072] In this embodiment, the first preset time length is pre-configured in the status monitor, and the first preset time length is 3s to 5s. Specifically, the first preset time length can also be determined according to actual conditions, and this application does not make any specific limitation.
[0073] The preset occupancy threshold is pre-configured in the domain status monitor. Different modules can use the same occupancy threshold or different occupancy thresholds. Optionally, the occupancy threshold of each module is between 90% and 95%. The size of the occupancy threshold can be determined according to actual conditions, and this application does not make specific limitations.
[0074] Figure 7 A flowchart of network device information transmission after adding a second message transmission channel in an embodiment of the present disclosure is shown. Figure 7 As shown, while the control plane device sends BFD configuration information to the forwarding plane device through the first message transmission channel, the status monitor monitors the resource occupancy rate of the platform control in the first message transmission channel in real time. Within a period of time, if the two virtual machines monitor that the resource occupancy rate of the platform control is greater than the preset occupancy rate threshold, it is determined that the first message transmission channel is in a congested state, and the status monitor sends a congestion alarm message to the control plane device. After the control plane device receives the congestion alarm message, it controls to open the second message transmission channel. The control plane device sends the BFD configuration information to the forwarding plane device through the second message transmission channel. The forwarding plane device monitors whether the new configuration meets the hardware forwarding conditions. If the hardware forwarding conditions are not met, the forwarding plane device issues an error prompt and ignores the new configuration. If the hardware forwarding conditions are met, the hardware configuration information is updated to complete the transmission of BFD configuration information between the control plane device and the forwarding plane device.
[0075] The forwarding-control separation BFD information transmission control method provided in this embodiment monitors the real-time occupancy rate of the process resources of the module in the first message transmission channel in real time through a status monitor. When the real-time occupancy rate is greater than a preset occupancy rate threshold, it indicates that the first message transmission channel is in a congested state, and the timeliness of message transmission cannot be guaranteed by transmitting BFD configuration information through the first message transmission channel. The status monitor sends a congestion alarm message to the control plane device, so that the control plane device opens the second message transmission channel in time, and completes the subsequent BFD configuration information to be preferentially sent from the second message transmission channel to the forwarding plane device, so that the service remains stable and the user experience is improved.
[0076] In one embodiment of the present disclosure, after the control in step S304 opens the second message transmission channel, the method further includes:
[0077] When it is monitored that the real-time occupancy rate of the module process resources is less than or equal to the preset occupancy rate threshold within the first preset time period, idle prompt information is sent to the control plane device so that the control plane device determines the opening time of the first message transmission channel according to the idle prompt information.
[0078] Specifically, when the second message transmission channel is turned on, the status monitor monitors the real-time occupancy rate of the process resources of the module in the first message transmission channel in real time. If the real-time occupancy rate of the module process resources is less than or equal to the preset occupancy rate threshold value within the first preset time period, it is determined that the first message transmission channel has escaped from the congestion state and is in an idle state. At this time, the status monitor sends an idle prompt message to the control plane device, and the control plane device determines whether to restart the first message transmission channel based on the received idle prompt message. After receiving the idle prompt message, the control plane device can close or continue to open the second message transmission channel according to the actual situation.
[0079] After the second message transmission channel is opened, in order to prevent frequent switching of the message transmission channel, in an embodiment, after controlling to open the second message transmission channel, the method further includes:
[0080] If it is monitored that no message is transmitted in the second message transmission channel within the second preset time period, the second message transmission channel is controlled to be closed.
[0081] Specifically, the second preset time length is pre-configured in the control plane device. The second preset time length can be determined according to actual conditions, and this application does not make any specific limitation.
[0082] For example, if the control plane device does not send a BFD configuration message within the second preset time period, it indicates that there is no message transmission in the second message transmission channel. At this time, the second message transmission channel has completed the task of forwarding the BFD configuration message issued by the control plane device to the forwarding plane device, and the second message transmission channel can be closed.
[0083] The forwarding-control separated BFD information transmission control method provided in the embodiment of the present disclosure monitors the message transmission status in the second message transmission channel in real time. When the message transmission in the second message transmission channel is completed, it switches to the first message transmission channel without frequent channel switching, thereby achieving efficient message transmission, ensuring the correctness of the BFD configuration information processing by the control plane device and the forwarding plane device, making the service more stable, and improving the user experience.
[0084] In one embodiment of the present disclosure, Figure 5 As shown, step S302 monitors the congestion of the first message transmission channel used for data transmission between the control plane device and the forwarding plane device in real time, including:
[0085] S502: The module issuer in the first message transmission channel sends a configuration message, where the configuration message includes a BFD configuration message and a response request message;
[0086] S504, recording the time interval between the sending module sending side sending the response request message and receiving the response reply message initiated by the receiving module;
[0087] S506, determining whether the time interval is greater than a preset time interval threshold;
[0088] S508: If it is greater than, it is determined that the first message transmission channel is in a congested state.
[0089] Specifically, in the process of the control plane device sending the BFD configuration message to the forwarding plane device through the first message transmission channel, the module sender in the first message transmission channel sends the configuration message. For example, when the configuration database sends the configuration message to the platform control, the module sender is the configuration database and the module receiver is the platform control; when the platform control sends the configuration message to the forwarding database, the module sender is the platform control and the module receiver is the forwarding database.
[0090] The configuration message includes the BFD configuration message to be forwarded and also includes a response request message to determine the time interval between the module sender and the module receiver for sending and receiving messages.
[0091] The message response mechanism is described by taking the platform control as the module issuer as an example. In a unit of time, every time a certain number of BFD configuration messages are issued, a response request message is also issued along with the BFD configuration message, and the timer is triggered at the same time. When the configuration database receives the response request message, the configuration database immediately sends a response reply message to the platform control. When the platform control receives the response reply message, it turns off the timer and completes the timing.
[0092] If the platform control does not receive the response reply information within the preset time interval threshold, it is considered that the first message transmission channel is in a congested state, and the platform control sends a congestion alarm message to the control plane device, thereby triggering the opening of the second message transmission channel.
[0093] The forwarding-control separated BFD information transmission control method provided in this embodiment synchronously sends a response request message when transmitting a BFD configuration message on a first message transmission channel. The module sender records the time interval between sending and receiving the response message, and compares the relationship between the time interval and a preset time interval threshold, thereby determining whether the first message transmission channel is in a congested state to control the opening of the second message transmission channel. By adding a message response mechanism to determine the congestion state of the first message transmission channel, there is no need to add a state monitor, thereby reducing costs. At the same time, the timeliness of information interaction between the control plane device and the forwarding plane device is greatly improved, thereby ensuring the stable operation of the service state and facilitating the stable migration of the service state when the link is abnormal.
[0094] In one embodiment of the present disclosure, after the controlling of opening the second message transmission channel, the method further includes:
[0095] When the time interval for the module sending party to receive the response reply initiated by the module receiving party is less than the preset time interval threshold, idle prompt information is sent to the control plane device, so that the control plane device determines the opening time of the first message transmission channel according to the idle prompt information.
[0096] After the second message transmission channel is opened, the platform control should continue to send (such as at intervals of 1s) response request information. When the platform control can continuously receive response reply information sent by the configuration database within a period of time, it indicates that the first message transmission channel has exited the congested state and is in an idle state. The platform control sends an idle prompt message to the control plane device. The control plane can determine whether to close the second message transmission channel and whether to open the first message transmission channel according to the actual situation.
[0097] In one embodiment of the present disclosure, after the control in step S304 opens the second message transmission channel, the method further includes:
[0098] If it is monitored that no message is transmitted in the second message transmission channel within the second preset time period, the second message transmission channel is controlled to be closed.
[0099] The disclosed embodiment provides a method for controlling BFD information transmission with separation of forwarding and control, which monitors the message transmission status in the second message transmission channel in real time. When the message transmission in the second message transmission channel is completed, it switches to the first message transmission channel without frequent channel switching, thereby achieving efficient message transmission, ensuring the correctness of BFD configuration information processing by the control plane device and the forwarding plane device, making the service more stable, and improving the user experience.
[0100] Based on the same inventive concept, the embodiment of the present disclosure also provides a BFD information transmission control device with transfer and control separation, as described in the following embodiment. Since the principle of solving the problem in the embodiment of the device is similar to that in the above method embodiment, the implementation of the embodiment of the device can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0101] Figure 8 A schematic diagram of a BFD information transmission control device with transfer and control separation in an embodiment of the present disclosure is shown. Figure 8 As shown, the device includes a monitoring module 801 and a control module 802, wherein:
[0102] A monitoring module 801, configured to monitor in real time the congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device;
[0103] The control module 802 is used to control the opening of the second message transmission channel when it is monitored that the first message transmission channel is in a congested state, and the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information issued by the control plane device to the forwarding plane device.
[0104] In one embodiment of the present disclosure, the device further includes a judgment module.
[0105] The monitoring module 801 is used to monitor the real-time occupancy rate of the module process resources in the first message transmission channel in real time;
[0106] A judgment module, used to judge whether the real-time occupancy rate of the module process resources is greater than a preset occupancy rate threshold within a first preset time period;
[0107] The control module 802 is configured to determine that the first message transmission channel is in a congested state if the real-time occupancy rate of the module process resources is greater than a preset occupancy rate threshold.
[0108] In one embodiment of the present disclosure, the monitoring module 801 is also used to send idle prompt information to the control plane device after the control opens the second message transmission channel, when it is monitored that the real-time occupancy rate of the module process resources is less than or equal to a preset occupancy rate threshold within a first preset time period, so that the control plane device determines the opening time of the first message transmission channel according to the idle prompt information.
[0109] In one embodiment of the present disclosure, the control module 802 is also used to control closing of the second message transmission channel after the control opens the second message transmission channel, when the monitoring module 801 detects that there is no message transmission in the second message transmission channel within a second preset time period.
[0110] In one embodiment of the present disclosure, the device further includes a configuration module, a timing module, and a judgment module which are not shown in the drawings, wherein:
[0111] A configuration module, used for the module issuing party in the first message transmission channel to send a configuration message, wherein the configuration message includes a BFD configuration message and a response request message;
[0112] A timing module is used to record the time interval between the module sending party sending a response request message and receiving a response reply message initiated by the module receiving party;
[0113] A judging module, used to judge whether the time interval is greater than a preset time interval threshold;
[0114] The control module 802 is configured to determine that the first message transmission channel is in a congested state if the time interval is greater than a preset time interval threshold.
[0115] In one embodiment of the present disclosure, the monitoring module 801 is used to send idle prompt information to the control plane device after the control opens the second message transmission channel, when the time interval between the module sending party receiving the response reply initiated by the module receiving party is less than a preset time interval threshold, so that the control plane device determines the opening timing of the first message transmission channel according to the idle prompt information.
[0116] In one embodiment of the present disclosure, the control module 802 is also used to control closing of the second message transmission channel after the control opens the second message transmission channel, when the monitoring module 801 detects that there is no message transmission in the second message transmission channel within a second preset time period.
[0117] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0118] The present embodiment provides a forwarding-and-control-separated BFD information transmission control method and device, which opens a second message transmission channel between the control plane device and the forwarding plane device, monitors the congestion of the first message transmission channel in real time, and then determines the opening time of the second message transmission channel. This solves the technical problem of delayed sending of BFD session information when the equipment business is extremely busy and the message is congested, greatly improves the timeliness of information interaction between the control plane device and the forwarding plane device, ensures the stable operation of the business status, and helps to stabilize the migration of the business status when the link is abnormal.
[0119] Refer to the following Fig. 9 An electronic device 900 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0120] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).
[0121] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 910 can perform the following steps: Figure 3 The real-time monitoring shown in the figure is to monitor the congestion of the first message transmission channel used for data transmission between the control plane device and the forwarding plane device; when it is monitored that the first message transmission channel is in a congested state, control is controlled to open the second message transmission channel to complete the data transmission between the control plane device and the forwarding plane device.
[0122] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .
[0123] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0124] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0125] The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the system 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. In addition, the system 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0126] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0127] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0128] A program product for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0129] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0130] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0131] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0132] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0133] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0134] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0135] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0136] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for controlling the transmission of BFD information with separation of transfer and control, characterized in that: include: real-time monitoring of congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device, wherein the first message transmission channel communicates with the control plane device and the forwarding plane device using floating-point IP technology, the first message transmission channel includes a configuration database, a platform control, and a forwarding database, the configuration database is used to store configuration information issued by the control plane device, the platform control is used to monitor configuration updates of the configuration database, and the forwarding database is used to store BFD configuration information issued by the platform control; When it is detected that the first message transmission channel is in a congested state, a second message transmission channel is controlled to be opened, and the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information issued by the control plane device to the forwarding plane device, and the second message transmission channel is a Unix socket channel; The real-time monitoring of the congestion of the first message transmission channel used for data transmission between the control plane device and the forwarding plane device includes: the module issuer in the first message transmission channel sends a configuration message, wherein the configuration message includes a BFD configuration message and a response request message; recording the time interval between the module issuer sending the response request message and receiving the response reply message initiated by the module receiver; judging whether the time interval is greater than a preset time interval threshold; if greater, judging that the first message transmission channel is in a congested state.
2. The method for controlling the transmission of BFD information with transfer and control separation according to claim 1, characterized in that: The real-time monitoring of the congestion of the first message transmission channel for data transmission between the control plane device and the forwarding plane device may be replaced by the following method: Real-time monitoring of the real-time occupancy rate of module process resources in the first message transmission channel; Determine whether the real-time occupancy rate of the module process resources is greater than a preset occupancy rate threshold within a first preset time period; If it is greater, it is determined that the first message transmission channel is in a congested state.
3. The method for controlling the transmission of BFD information with transfer and control separation according to claim 2, characterized in that: When the congestion of the first message transmission channel is determined by real-time monitoring of the real-time occupancy rate of the module process resources in the first message transmission channel, after the control opens the second message transmission channel, the method further includes: When it is monitored that the real-time occupancy rate of the module process resources is less than or equal to the preset occupancy rate threshold within the first preset time period, idle prompt information is sent to the control plane device so that the control plane device determines the opening time of the first message transmission channel according to the idle prompt information.
4. The method for controlling the transmission of BFD information with transfer and control separation according to claim 1, characterized in that: After the control opens the second message transmission channel, the method further includes: When the time interval between the module sending party sending a response request message and receiving a response reply message initiated by the module receiving party is less than a preset time interval threshold, an idle prompt message is sent to the control plane device so that the control plane device determines the timing of opening the first message transmission channel according to the idle prompt message.
5. The method for controlling the transmission of BFD information with transfer and control separation according to any one of claims 1 to 4, characterized in that: After the control opens the second message transmission channel, the method further includes: If it is monitored that no message is transmitted in the second message transmission channel within the second preset time period, the second message transmission channel is controlled to be closed.
6. A BFD information transmission control device with transfer and control separation, characterized in that: include: A monitoring module, used for real-time monitoring of congestion of a first message transmission channel for data transmission between a control plane device and a forwarding plane device, wherein the first message transmission channel communicates with the control plane device and the forwarding plane device using floating-point IP technology, and the first message transmission channel includes a configuration database, a platform control, and a forwarding database, wherein the configuration database is used to store configuration information issued by the control plane device, the platform control is used to monitor configuration updates of the configuration database, and the forwarding database is used to store BFD configuration information issued by the platform control; A control module, configured to control the opening of a second message transmission channel when it is detected that the first message transmission channel is in a congested state, wherein the second message transmission channel transmits the bidirectional forwarding monitoring BFD configuration information issued by the control plane device to the forwarding plane device, and the second message transmission channel is a Unix socket channel; The monitoring module is used for the module sender in the first message transmission channel to send a configuration message, wherein the configuration message includes a BFD configuration message and a response request message; to record the time interval between the module sender sending the response request message and receiving the response reply message initiated by the module receiver; to determine whether the time interval is greater than a preset time interval threshold; if so, it is determined that the first message transmission channel is in a congested state.
7. An electronic device, characterized in that: include: processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the BFD information transmission control method with transfer and control separation as described in any one of claims 1-5 by executing the executable instructions.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for controlling BFD information transmission with transfer and control separation as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Traffic forwarding method and device
CN107306216A
Link detection method and system for communication equipment of multi-core processor
CN112953785A
Network forwarding equipment, link fault detection method and device and storage medium
CN113497740A