CN115150317B - Routing table entry issuing method and device, electronic equipment and computer readable medium - Google Patents

Routing table entry issuing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115150317B
CN115150317B CN202210714998.6A CN202210714998A CN115150317B CN 115150317 B CN115150317 B CN 115150317B CN 202210714998 A CN202210714998 A CN 202210714998A CN 115150317 B CN115150317 B CN 115150317B
Authority
CN
China
Prior art keywords
routing table
control board
service
main control
board
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
CN202210714998.6A
Other languages
Chinese (zh)
Other versions
CN115150317A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202210714998.6A priority Critical patent/CN115150317B/en
Publication of CN115150317A publication Critical patent/CN115150317A/en
Application granted granted Critical
Publication of CN115150317B publication Critical patent/CN115150317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/021Ensuring consistency of routing table updates, e.g. by using epoch numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a routing table entry issuing method, a device, electronic equipment and a computer readable medium of a deep service switching gateway. The method comprises the following steps: the main control board of the deep service switching gateway obtains the synchronous count value of the routing table item by the service board; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; and when the information updating time meets a preset strategy, the main control board issues the locally stored routing table item to the service board. The method, the device, the electronic equipment and the computer readable medium for issuing the routing table entry of the deep service switching gateway can automatically check and synchronize the consistency of the routing table entry, and avoid the situation that the forwarding flow is abnormal for a long time because of the routing table entry error of the service board.

Description

Routing table entry issuing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of communication information processing, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for issuing a routing table entry of a deep service switching gateway.
Background
In order to simplify management and networking of a deep service switching gateway (DPX) environment, reduce maintenance difficulty and operation and maintenance cost, and improve usability, a DPX equipment main control board is responsible for managing complete machine configuration, routing table item management and part of complex service processing. The routing table items are generated by the main control through dynamic routing protocol or static configuration of users, the generated routing table items are issued to each service board by the main control through an internal channel, if the rate of the main control issuing routing table items exceeds the performance of the internal channel, the issued information packet loss occurs, the routing table items on the service board are incorrect, and whether the routing table items of the main control are consistent with the routing table items of the service board is required to be checked.
In the prior art, whether the routing table entries of the main control and the service board are consistent or not can be checked through manual participation, and when the routing table entries of the main control and the service board are inconsistent, the routing table entries of the main control are manually modified, so that the main control can issue the routing table entries with problems to the service board again, and the effect of consistent routing table entries of the main control and the service board is achieved. The method needs to be manually checked, and can not ensure that the inconsistent routing table items of the main control and the service board can be checked in real time. Moreover, if the dynamic routing protocol used by the master control generates a routing table entry, the dynamic routing protocol is manually modified, which can cause the routing protocol to oscillate.
In the prior art, the rate of the main control issuing service board routing table entry can be reduced, so that the rate cannot exceed the performance of an internal channel, and the situation of packet loss is avoided. The slow down of this way can result in slow down of the routing table entry, affecting the service board routing table entry validation time. And because each service board shares an internal channel, the speed of the channel can be influenced by the number of the service boards and the performance of the service boards, and the speed of the master control for issuing the routing table item is difficult to control the routing table item to be at a proper value so as to achieve a flexible application scheme suitable for different service boards and different service boards.
Therefore, there is a need for a new routing table entry issuing method, apparatus, electronic device, and computer readable medium for a deep traffic switching gateway.
The above information disclosed in the background section is only for enhancement of understanding of the background of the application and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present application provides a method, apparatus, electronic device and computer readable medium for issuing routing table entries of a deep service switching gateway, which can automatically perform consistency check and synchronization of routing table entries, so as to avoid long-term abnormality of forwarding traffic caused by error routing table entries of a service board.
Other features and advantages of the application will be apparent from the following detailed description, or may be learned by the practice of the application.
According to an aspect of the present application, a routing table entry issuing method of a deep service switching gateway is provided, which can be applied to a main control board, and the method includes: the main control board of the deep service switching gateway obtains the synchronous count value of the routing table item by the service board; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; and when the information updating time meets a preset strategy, the main control board issues the locally stored routing table item to the service board.
In an exemplary embodiment of the present application, a master control board of a deep service switching gateway obtains a synchronization count value of a routing table entry from a service board, including: the master control board of the deep service switching gateway receives the synchronous confirmation message from the service board; and extracting the slot number of the service board and the synchronization count value of the routing table item from the synchronization confirmation message.
In an exemplary embodiment of the present application, further comprising: and when the main control board performs the routing table entry issuing process, ignoring the synchronous confirmation message sent by the service board.
In an exemplary embodiment of the present application, comparing the synchronization count value with a synchronization count value locally stored in a main control board includes: extracting a local synchronous count value corresponding to the service board according to the slot number of the service board; and comparing the local synchronous count value with the synchronous count value corresponding to the service board.
In an exemplary embodiment of the present application, the main control board extracts information update time in a routing table entry in the service board based on the synchronization check message, including: the main control board acquires the routing information from the service board based on the synchronous checking information; and extracting the information updating time of each route in the routing table entries from the routing message.
In an exemplary embodiment of the present application, when the information update time meets a preset policy, the main control board issues a locally stored routing table entry to the service board, including: extracting a local routing table entry corresponding to the service board according to the slot number of the service board; comparing each entry in the local routing table entry with the corresponding entry in the routing table entry corresponding to the service board; and when inconsistent entries exist, the main control board issues the entries in the locally stored routing table entries to the service board.
In an exemplary embodiment of the present application, after the master control board issues the locally stored routing table entry to the service board, the method further includes: and the master control board synchronizes the locally stored synchronization count value to the service board.
According to an aspect of the present application, a routing table entry issuing method of a deep service switching gateway is provided, which is applicable to a service board, and the method includes: the service board sends the synchronous count value of the route table item to the main control board at regular time; receiving a synchronization check message from a main control board based on the synchronization count value; generating a routing message through a routing table entry stored in the service board based on the synchronization check message; sending the routing information to the main control board; and receiving a routing table entry issued by the main control board based on the routing message.
In an exemplary embodiment of the present application, after receiving the routing table entry issued by the main control board based on the routing message, the method includes: and receiving the synchronous count value from the main control board and updating the locally stored synchronous count value.
According to an aspect of the present application, a routing table entry issuing device of a deep service switching gateway is provided, which is applicable to a main control board, and the device includes: the counting module is used for acquiring the synchronous count value of the routing table item by the service board through the main control board of the deep service switching gateway; the comparison module is used for comparing the synchronous count value with the synchronous count value locally stored in the main control board; the synchronous module is used for sending a synchronous check message to the service board by the main control board when the comparison is inconsistent; the extraction module is used for extracting the information updating time in the routing table item in the service board by the main control board based on the synchronous check message; and the issuing module is used for issuing the locally stored routing table item to the service board by the main control board when the information updating time meets a preset strategy.
According to an aspect of the present application, a routing table entry issuing device of a deep service switching gateway is provided, which is applicable to a service board, and the device includes: the sending module is used for the service board to send the synchronous count value of the routing table item to the main control board at regular time; the checking module is used for receiving a synchronous checking message from the main control board based on the synchronous counting value; the generating module is used for generating a routing message through a routing table item stored in the service board based on the synchronous checking message; the message module is used for sending the routing message to the main control board; and the receiving module is used for receiving the routing table entry issued by the main control board based on the routing message.
According to an aspect of the present application, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the application, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the routing table entry issuing method, the routing table entry issuing device, the electronic equipment and the computer readable medium of the deep service switching gateway, the synchronous count value of the routing table entry is obtained by a service board through a main control board of the deep service switching gateway; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; when the information updating time meets a preset strategy, the main control board can automatically check and synchronize the consistency of the routing table entries in a mode of transmitting the locally stored routing table entries to the service board, and the condition that forwarding traffic is abnormal for a long time due to the fact that the routing table entries of the service board are wrong is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are only some embodiments of the present application and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a deep traffic switching gateway.
Fig. 2 is a flow chart illustrating a routing table entry issuing method of a deep traffic switching gateway according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating a routing table entry issuing apparatus of a deep traffic switching gateway according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a routing table entry issuing apparatus of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Fig. 9 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the application may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the present inventive concept. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the application and therefore should not be taken to limit the scope of the application.
The technical abbreviations involved in the present application are explained as follows:
service board: the board card for realizing various network services, security services and application functions can be inserted into frame equipment.
And (3) a main control board: the method is used for complete machine configuration management, routing table entry management and partial complex business processing.
DPX: the deep service switching gateway is a frame type distributed system integrating three functions of route switching, network security and application delivery. The system consists of a machine frame and a plurality of board cards which can be flexibly inserted and pulled out. The main control board is used for complete machine configuration management, route management and partial complex business processing; the service board is mainly used for carrying network forwarding, security service and application delivery service processing. All configuration information and routing forwarding entries are stored in a unified manner on the nonvolatile memory of the main control board except that the software version is stored on the nonvolatile memory (such as a CF card) of each board. The service board carries out software version management and data such as files, user configuration, routing forwarding list items and the like required by service processing, and the data are all required to be sent to the service board by the main control board.
Fig. 1 is a schematic diagram of a deep traffic switching gateway. As shown in fig. 1, the deep service switching gateway 10 may include service boards 101, 102, 103, a standby board 104, and a main control board 105. The service boards 101, 102, 103 may interact with the standby master control board 104 and the master control board 105 to receive or send messages, etc.
For the configuration and routing table automatic issuing flow of the user, the standby main control board 104 can be used as a special service board, the main control board 105 can issue all user configuration, forwarding table items and the like to the standby main control board 104, and only configuration, forwarding table items and the like related to a designated service board are issued to the designated service board, so that service boards mentioned later herein can comprise service boards 101, 102, 103 and standby main control board 104 in practical application.
The service boards 101, 102, 103 and the standby master control board 104 can send the synchronization count value of the routing table item to the master control board 105 at regular time, for example; the service boards 101, 102, 103, the standby master board 104 may receive a synchronization check message from the master board 105, e.g. based on the synchronization count value; the service boards 101, 102, 103, the standby master control board 104 may generate a routing message through a self-stored routing table entry, for example, based on the synchronization check message; the service boards 101, 102, 103, the standby master control board 104 may for example send the routing message to the master control board 105; the service boards 101, 102, 103, the standby master control board 104 may receive the routing table entries issued by the master control board 105, for example, based on the routing message.
The master control board 105 may obtain the synchronization count value of the routing table entry, for example, by the service boards 101, 102, 103, and the standby master control board 104; the master control board 105 may, for example, compare the synchronization count value with a synchronization count value locally stored by the master control board; the main control board 105 may send a synchronization check message to the service boards 101, 102, 103, the standby main control board 104, for example, when the comparison is inconsistent; the master control board 105 may extract the information update time in the routing table entry in the service board, e.g. based on the synchronization check message; when the information update time satisfies the preset policy, the main control board 105 may, for example, issue locally stored routing table entries to the service boards 101, 102, 103 and the standby main control board 104.
Fig. 2 is a flow chart illustrating a routing table entry issuing method of a deep traffic switching gateway according to an exemplary embodiment. The routing table entry issuing method 20 of the deep service switching gateway may be applied to a main control board, and at least includes steps S202 to S210.
As shown in fig. 2, in S202, the master control board of the deep service switching gateway obtains the synchronization count value of the routing table entry from the service board. The master control board of the deep service switching gateway receives the synchronous confirmation message from the service board; and extracting the slot number of the service board and the synchronization count value of the routing table item from the synchronization confirmation message.
The route list item includes network segment information, outgoing interface information, next hop information, etc. when the main control in the scheme updates a certain route, it needs to record the update time (UNIX time stamp) into the route list item (as in table 1), and simultaneously it needs to send the update time to the service board along with the route list item, the main control stores a count value of the number of times of issuing the route list item for each service board, and each service board itself stores a count value of the number of times of receiving the route list item.
Table 1:
network segment Outlet interface Next hop Update time Other information
0.0.0.0/0 Eth1 1.1.1.1 Timestamp 1 Other information such as routing overhead
10.0.0.0/8 Eth2 2.2.2.2 Timestamp 2 Other information such as routing overhead
In one embodiment, the synchronization confirmation message sent by the service board is ignored when the master control board performs the routing entry issuing process. If the master control is in the route issuing process, the confirmation message sent by the service board is ignored.
In S204, the synchronization count value is compared with a synchronization count value locally stored in the main control board. Extracting a local synchronous count value corresponding to the service board according to the slot number of the service board; and comparing the local synchronous count value with the synchronous count value corresponding to the service board.
In S206, when the comparison is inconsistent, the main control board sends a synchronization check message to the service board. And if the master control receives the confirmation message sent by the service board and finds that the count values at the two ends are inconsistent, sending a synchronous check message to the corresponding service board.
In S208, the main control board extracts the information update time in the routing table entry in the service board based on the synchronization check message. The main control board can acquire the routing information from the service board based on the synchronous check information; and extracting the information updating time of each route in the routing table entries from the routing message.
In S210, when the information update time satisfies the preset policy, the main control board issues the locally stored routing table entry to the service board. Extracting a local routing table item corresponding to the service board according to the slot number of the service board; comparing each entry in the local routing table entry with the corresponding entry in the routing table entry corresponding to the service board; and when inconsistent entries exist, the main control board issues the entries in the locally stored routing table entries to the service board.
In one embodiment, further comprising: and the master control board synchronizes the locally stored synchronization count value to the service board.
After receiving the synchronous check message, the service board sorts the route check message to the main control for checking, and the route check message contains the network segment information of all the route tables in the service board and the update time of the route. The following table:
when the master control finds the route checking information received from the service board, if the update time of a network segment is inconsistent with the update time of the corresponding route on the master control, all information of the route table item is automatically re-synchronized to the service board, and when all inconsistent route synchronization is completed, the master control sends an update completion message to the service board to synchronize the count values of the master control and the service board for indicating that synchronization is finished, and the count values of two ends are still different when the subsequent service board sends a confirmation message to the master control again.
According to the routing table entry issuing method of the deep service switching gateway, the synchronous count value of the routing table entry is obtained by a service board through the main control board of the deep service switching gateway; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; when the information updating time meets a preset strategy, the main control board can automatically check and synchronize the consistency of the routing table entries in a mode of transmitting the locally stored routing table entries to the service board, and the condition that forwarding traffic is abnormal for a long time due to the fact that the routing table entries of the service board are wrong is avoided.
It should be clearly understood that the present application describes how to make and use specific examples, but the principles of the present application are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flow chart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment. The process 30 shown in fig. 3 is applicable to a service board, and includes at least steps S302 to S310.
As shown in fig. 3, in S302, the service board periodically transmits the synchronization count value of the routing table entry to the main control board. The service board sends synchronous confirmation information to the main control at regular time, wherein the confirmation information comprises slot position information of the service board and a count value of the receiving times of the routing table item. The master control compares the issuing information of the slot according to the received information to confirm whether the count values at the two ends are the same.
In order to save network resources, the synchronization confirmation message only contains the synchronization count value of the routing table entry, so that the master control determines whether an abnormality exists according to the count value.
In S304, a synchronization check message from the main control board is received based on the synchronization count value.
In S306, a routing message is generated through the routing table entry stored in the service board based on the synchronization check message. In order to save network resources, the routing message only contains routing segment information and update time to the master control, so that the master control determines whether a certain routing table item is abnormal according to the update time.
In S308, the routing message is sent to the main control board.
In S310, a routing table entry issued by the main control board is received based on the routing message.
In one embodiment, further comprising: and receiving the synchronous count value from the main control board and updating the locally stored synchronous count value.
Fig. 4 is a flowchart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment. The flow 40 shown in fig. 4 is a detailed description of "when the information update time satisfies the preset policy, the main control board issues the locally stored routing table entry to the service board".
As shown in fig. 4, in S402, a route confirmation message of the service board is received.
In S404, it is determined whether or not the route update times coincide.
In S406, whether all the detections are completed.
In S408, the routing message is synchronized to the service board.
In S410, the next route entry is continuously checked.
In S412, a synchronization detection end message is sent to the service board.
Fig. 5 is a flowchart illustrating a routing table entry issuing method of a deep traffic switching gateway according to another exemplary embodiment. The flow 50 shown in fig. 5 is a detailed description of the interaction between the main control board and the service board.
As shown in fig. 5, in S501, the service board periodically transmits the synchronization count value of the routing table entry to the main control board.
In S502, the master control board compares the synchronization count value with a synchronization count value locally stored in the master control board.
In S503, when the comparison is inconsistent, the main control board sends a synchronization check message to the service board.
In S504, the service board generates a routing message through the routing table entry based on the synchronization check message.
In S505, the routing message is sent to the main control board.
In S506, the main control board extracts the information update time in the routing table entry in the service board based on the synchronization check message.
In S507, when the information update time satisfies the preset policy, the main control board issues the locally stored routing table entry to the service board.
In S508, the routing table entry issued by the main control board is received and updated based on the routing message.
The routing table entry issuing method of the deep service switching gateway is a method for automatically checking and synchronizing the consistency of the routing table entries between the main control and the service boards in the distributed system, does not need manual participation, can automatically find out the inconsistency of the main control and the service boards in the distributed system, and automatically synchronizes the related routing table entries when the inconsistency occurs, thereby avoiding the situation of long-time abnormity of forwarding flow caused by the error of the routing table entries of the service boards.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. When executed by a CPU, performs the functions defined by the above-described method provided by the present application. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiment of the present application, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 6 is a block diagram illustrating a routing table entry issuing apparatus of a deep traffic switching gateway according to another exemplary embodiment. As shown in fig. 6, the routing table entry issuing device 60 of the deep service switching gateway may be applied to a main control board, and includes: the system comprises a counting module 602, a comparing module 604, a synchronizing module 606, an extracting module 608 and a issuing module 610.
The counting module 602 is used for obtaining the synchronous count value of the routing table item by the service board through the main control board of the deep service switching gateway;
the comparison module 604 is used for comparing the synchronization count value with the synchronization count value locally stored in the main control board;
the synchronization module 606 is configured to send a synchronization check message to the service board by the main control board when the comparison is inconsistent;
the extracting module 608 is configured to extract, by using the main control board, information update time in a routing table entry in the service board based on the synchronization check message;
the issuing module 610 is configured to issue, when the information update time satisfies a preset policy, a locally stored routing table entry to the service board by using the main control board.
Fig. 7 is a block diagram illustrating a routing table entry issuing apparatus of a deep traffic switching gateway according to an exemplary embodiment. As shown in fig. 7, the routing table entry issuing apparatus 70 of the deep service switching gateway may be applied to a service board, including: the sending module 702, the checking module 704, the generating module 706, the message module 708, the receiving module 710.
The sending module 702 is configured to send, to the main control board, the synchronization count value of the routing table entry at regular time by using the service board;
the checking module 704 is configured to receive a synchronization check message from the main control board based on the synchronization count value;
the generating module 706 is configured to generate a routing message through a routing table entry stored in the service board based on the synchronization check message;
the message module 708 is configured to send the routing message to the main control board;
the receiving module 710 is configured to receive a routing table entry issued by the main control board based on the routing message.
According to the routing table entry issuing device of the deep service switching gateway, the synchronous count value of the routing table entry is obtained by a service board through the main control board of the deep service switching gateway; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; when the information updating time meets a preset strategy, the main control board can automatically check and synchronize the consistency of the routing table entries in a mode of transmitting the locally stored routing table entries to the service board, and the condition that forwarding traffic is abnormal for a long time due to the fact that the routing table entries of the service board are wrong is avoided.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 800 according to such an embodiment of the application is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 8, the electronic device 800 is embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one memory unit 820, a bus 830 that connects the different system components (including memory unit 820 and processing unit 810), a display unit 840, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 810 such that the processing unit 810 performs steps according to various exemplary embodiments of the present application described in the present specification. For example, the processing unit 810 may perform the steps as shown in fig. 2, 3, 4, 5.
The storage unit 820 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) 8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 830 may be 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.
The electronic device 800 may also communicate with one or more external devices 800' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 800, and/or any devices (e.g., routers, modems, etc.) that the electronic device 800 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 850. Also, electronic device 800 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 860. Network adapter 860 may communicate with other modules of electronic device 800 via bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 800, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 9, the technical solution according to the embodiment of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiment of the present application.
The software product may employ 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 can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium 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 readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind 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., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: the main control board of the deep service switching gateway obtains the synchronous count value of the routing table item by the service board; comparing the synchronous count value with a synchronous count value locally stored in a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the main control board extracts information updating time in a routing table item in the service board based on the synchronous check message; and when the information updating time meets a preset strategy, the main control board issues the locally stored routing table item to the service board. The computer readable medium may also implement the following functions: the service board sends the synchronous count value of the route table item to the main control board at regular time; receiving a synchronization check message from a main control board based on the synchronization count value; generating a routing message through a routing table entry stored in the service board based on the synchronization check message; sending the routing information to the main control board; and receiving a routing table entry issued by the main control board based on the routing message.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present application.
The exemplary embodiments of the present application have been particularly shown and described above. It is to be understood that this application is not limited to the precise arrangements, instrumentalities and instrumentalities described herein; on the contrary, the application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (6)

1. The routing table entry issuing method of the deep service switching gateway can be applied to a main control board and is characterized by comprising the following steps of:
the main control board of the deep service switching gateway obtains the synchronous count value of the routing table item by the service board;
comparing the synchronous count value with a synchronous count value locally stored in a main control board;
when the comparison is inconsistent, the main control board sends a synchronous check message to the service board;
the main control board extracts the information update time in the routing table item in the service board based on the synchronous check message, and comprises the following steps: the main control board acquires the routing information from the service board based on the synchronous checking information and extracts the information updating time of each route in the routing table item from the routing information;
when the information updating time meets a preset strategy, the main control board issues a locally stored routing table item to the service board, and the method comprises the following steps: and extracting a local routing table item corresponding to the service board according to the slot number of the service board, comparing each item in the local routing table item with a corresponding item in the routing table item corresponding to the service board, and when inconsistent items exist, issuing the items in the locally stored routing table item to the service board by the main control board.
2. The method of claim 1, wherein the master control board of the deep service switching gateway obtains the synchronization count value of the routing table entry from the service board, comprising:
the master control board of the deep service switching gateway receives the synchronous confirmation message from the service board;
and extracting the slot number of the service board and the synchronization count value of the routing table item from the synchronization confirmation message.
3. The method as recited in claim 2, further comprising:
and when the main control board performs the routing table entry issuing process, ignoring the synchronous confirmation message sent by the service board.
4. The method of claim 2, wherein comparing the synchronization count value with a locally stored synchronization count value of the master control board comprises:
extracting a local synchronous count value corresponding to the service board according to the slot number of the service board;
and comparing the local synchronous count value with the synchronous count value corresponding to the service board.
5. The method of claim 1, wherein after the master control board issues the locally stored routing table entry to the service board, further comprising:
and the master control board synchronizes the locally stored synchronization count value to the service board.
6. The routing table entry issuing device of the deep service switching gateway can be applied to a main control board and is characterized by comprising the following components:
the counting module is used for acquiring the synchronous count value of the routing table item by the service board through the main control board of the deep service switching gateway;
the comparison module is used for comparing the synchronous count value with the synchronous count value locally stored in the main control board;
the synchronous module is used for sending a synchronous check message to the service board by the main control board when the comparison is inconsistent;
the extraction module is used for extracting the information update time in the routing table item in the service board by the main control board based on the synchronous check message, and comprises the following steps: the main control board acquires the routing information from the service board based on the synchronous checking information and extracts the information updating time of each route in the routing table item from the routing information;
the issuing module is used for issuing the locally stored routing table item to the service board by the main control board when the information updating time meets a preset strategy, and comprises the following steps: and extracting a local routing table item corresponding to the service board according to the slot number of the service board, comparing each item in the local routing table item with a corresponding item in the routing table item corresponding to the service board, and when inconsistent items exist, issuing the items in the locally stored routing table item to the service board by the main control board.
CN202210714998.6A 2022-06-22 2022-06-22 Routing table entry issuing method and device, electronic equipment and computer readable medium Active CN115150317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210714998.6A CN115150317B (en) 2022-06-22 2022-06-22 Routing table entry issuing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210714998.6A CN115150317B (en) 2022-06-22 2022-06-22 Routing table entry issuing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN115150317A CN115150317A (en) 2022-10-04
CN115150317B true CN115150317B (en) 2023-09-12

Family

ID=83407599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210714998.6A Active CN115150317B (en) 2022-06-22 2022-06-22 Routing table entry issuing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115150317B (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731400A (en) * 2005-08-16 2006-02-08 杭州华为三康技术有限公司 Method of data query and method of inter-board data synchronization in distributed system
CN1980192A (en) * 2005-12-01 2007-06-13 丛林网络公司 Non-stop forwarding in a multi-chassis router
CN101022451A (en) * 2006-02-14 2007-08-22 杭州华为三康技术有限公司 Connection state synchronizing method in data communication and applied communication node thereof
JP2007281872A (en) * 2006-04-06 2007-10-25 Hitachi Kokusai Electric Inc Path assign controller of receiver
CN101110608A (en) * 2007-08-23 2008-01-23 华为技术有限公司 Method, system and device for data detection of main and spare plate
CN101197657A (en) * 2007-11-12 2008-06-11 中兴通讯股份有限公司 Data synchronization method of distributed system single panel
CN101425961A (en) * 2007-10-31 2009-05-06 华为技术有限公司 Method for implementing link state database synchronization, router, circuit board and main control board
CN101540724A (en) * 2009-04-28 2009-09-23 杭州华三通信技术有限公司 Retransmitting method of supporting policy routing and device thereof
CN101980476A (en) * 2010-11-16 2011-02-23 北京星网锐捷网络技术有限公司 Warm backup method and network equipment
CN102801612A (en) * 2012-07-06 2012-11-28 武汉虹信通信技术有限责任公司 Improved method and system for updating routing information of main engine on exchanging chip
WO2017000831A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Operating method of packet switching optical transmission system and packet switching optical transmission system
CN108011819A (en) * 2017-12-26 2018-05-08 杭州迪普科技股份有限公司 Route sending-down method and device
CN108616337A (en) * 2018-04-26 2018-10-02 新华三信息安全技术有限公司 A kind of link list item synchronous method, device and equipment
CN108632151A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 Cluster routers board access method, device and cluster routers
CN108777668A (en) * 2018-06-08 2018-11-09 烽火通信科技股份有限公司 A kind of the route resource control method and system of three-tier switch
CN109981353A (en) * 2019-03-06 2019-07-05 北京全路通信信号研究设计院集团有限公司 Neighboring station redundancy protected method and system in a kind of machine frame formula network communication equipment
CN110910660A (en) * 2019-11-13 2020-03-24 苏州中亿通智能系统有限公司 Road traffic signal controller
CN111273924A (en) * 2020-01-10 2020-06-12 杭州迪普科技股份有限公司 Software updating method and device
CN112333098A (en) * 2020-10-29 2021-02-05 杭州迪普科技股份有限公司 Message forwarding method and device between service board cards
CN113347221A (en) * 2020-03-02 2021-09-03 海能达通信股份有限公司 Data synchronization method, communication station, cluster system and storage device
CN113626221A (en) * 2021-08-10 2021-11-09 迈普通信技术股份有限公司 Message enqueuing method and device
CN113835715A (en) * 2020-06-24 2021-12-24 中兴通讯股份有限公司 Case board card, cluster system, software deployment method and storage medium
CN114189895A (en) * 2020-09-14 2022-03-15 大唐移动通信设备有限公司 Base station board card upgrading method and device
CN114204687A (en) * 2021-12-16 2022-03-18 山东泰开直流技术有限公司 Centralized electric energy router control protection device

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731400A (en) * 2005-08-16 2006-02-08 杭州华为三康技术有限公司 Method of data query and method of inter-board data synchronization in distributed system
CN1980192A (en) * 2005-12-01 2007-06-13 丛林网络公司 Non-stop forwarding in a multi-chassis router
CN101022451A (en) * 2006-02-14 2007-08-22 杭州华为三康技术有限公司 Connection state synchronizing method in data communication and applied communication node thereof
JP2007281872A (en) * 2006-04-06 2007-10-25 Hitachi Kokusai Electric Inc Path assign controller of receiver
CN101110608A (en) * 2007-08-23 2008-01-23 华为技术有限公司 Method, system and device for data detection of main and spare plate
CN101425961A (en) * 2007-10-31 2009-05-06 华为技术有限公司 Method for implementing link state database synchronization, router, circuit board and main control board
CN101197657A (en) * 2007-11-12 2008-06-11 中兴通讯股份有限公司 Data synchronization method of distributed system single panel
CN101540724A (en) * 2009-04-28 2009-09-23 杭州华三通信技术有限公司 Retransmitting method of supporting policy routing and device thereof
CN101980476A (en) * 2010-11-16 2011-02-23 北京星网锐捷网络技术有限公司 Warm backup method and network equipment
CN102801612A (en) * 2012-07-06 2012-11-28 武汉虹信通信技术有限责任公司 Improved method and system for updating routing information of main engine on exchanging chip
WO2017000831A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Operating method of packet switching optical transmission system and packet switching optical transmission system
CN108632151A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 Cluster routers board access method, device and cluster routers
CN108011819A (en) * 2017-12-26 2018-05-08 杭州迪普科技股份有限公司 Route sending-down method and device
CN108616337A (en) * 2018-04-26 2018-10-02 新华三信息安全技术有限公司 A kind of link list item synchronous method, device and equipment
CN108777668A (en) * 2018-06-08 2018-11-09 烽火通信科技股份有限公司 A kind of the route resource control method and system of three-tier switch
CN109981353A (en) * 2019-03-06 2019-07-05 北京全路通信信号研究设计院集团有限公司 Neighboring station redundancy protected method and system in a kind of machine frame formula network communication equipment
CN110910660A (en) * 2019-11-13 2020-03-24 苏州中亿通智能系统有限公司 Road traffic signal controller
CN111273924A (en) * 2020-01-10 2020-06-12 杭州迪普科技股份有限公司 Software updating method and device
CN113347221A (en) * 2020-03-02 2021-09-03 海能达通信股份有限公司 Data synchronization method, communication station, cluster system and storage device
CN113835715A (en) * 2020-06-24 2021-12-24 中兴通讯股份有限公司 Case board card, cluster system, software deployment method and storage medium
CN114189895A (en) * 2020-09-14 2022-03-15 大唐移动通信设备有限公司 Base station board card upgrading method and device
CN112333098A (en) * 2020-10-29 2021-02-05 杭州迪普科技股份有限公司 Message forwarding method and device between service board cards
CN113626221A (en) * 2021-08-10 2021-11-09 迈普通信技术股份有限公司 Message enqueuing method and device
CN114204687A (en) * 2021-12-16 2022-03-18 山东泰开直流技术有限公司 Centralized electric energy router control protection device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
分布式FCoE交换机链路模块的设计与实现;周航;《CNKI中国知网》;全文 *

Also Published As

Publication number Publication date
CN115150317A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN105787077A (en) Data synchronizing method and device
CN104615455B (en) A kind of the IPMC program remote upgrading methods and device of ATCA frameworks
CN109766082A (en) The method and apparatus that the application program page jumps
CN109617646A (en) Message forwarding method, device, computer equipment and computer readable storage medium
CN109309736A (en) The generation method and generating means of globally unique ID
CN110351715A (en) AT command processing method, terminal adapter and computer readable storage medium
CN111277483B (en) Multi-terminal message synchronization method, server and storage medium
CN110019346A (en) A kind of data processing method and device based on double primary databases
CN114064668A (en) Method, electronic device and computer program product for storage management
CN114780519A (en) DBC file generation method, device, equipment and medium based on CAN communication
CN106708879B (en) Service data processing method and device
CN115150317B (en) Routing table entry issuing method and device, electronic equipment and computer readable medium
CN111078463A (en) Data backup method, device and system
CN110740197A (en) core network equipment, core network system and communication method
CN102647473A (en) Information synchronization method, device and communication equipment
CN113453371B (en) Method, base station, and computer storage medium for wireless communication
CN113556414B (en) Method, gateway device and storage medium for inter-network communication
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN115964436A (en) Method and device for managing database cluster
CN113346974A (en) Method, apparatus, communication system and storage medium for clock synchronization
CN110022300B (en) Edge calculation implementation method, device, system and storage medium
CN108984134A (en) A kind of method and apparatus of log printing
CN107454021B (en) Communication method and device
CN113315594A (en) Time synchronization method, device and storage medium
CN112837156A (en) Transaction method and device with fixed execution sequence

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
GR01 Patent grant
GR01 Patent grant