CN115150317A - Routing table item issuing method and device, electronic equipment and computer readable medium - Google Patents
Routing table item issuing method and device, electronic equipment and computer readable medium Download PDFInfo
- Publication number
- CN115150317A CN115150317A CN202210714998.6A CN202210714998A CN115150317A CN 115150317 A CN115150317 A CN 115150317A CN 202210714998 A CN202210714998 A CN 202210714998A CN 115150317 A CN115150317 A CN 115150317A
- Authority
- CN
- China
- Prior art keywords
- routing table
- control board
- main control
- service
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/021—Ensuring consistency of routing table updates, e.g. by using epoch numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/252—Store 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 method and a device for issuing a routing table entry of a deep service switching gateway, an electronic device and a computer readable medium. 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 items by the service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry 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 items to the service board. The method, the device, the electronic equipment and the computer readable medium for issuing the routing table items of the deep service switching gateway can automatically check and synchronize the consistency of the routing table items, and avoid the condition that the forwarding flow is abnormal for a long time due to the error of the routing table items of the service board.
Description
Technical Field
The present disclosure relates to the field of communication information processing, and in particular, to a method and an apparatus for issuing a routing table entry of a deep service switching gateway, an electronic device, and a computer-readable medium.
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 entry is generated by the master control through a dynamic routing protocol or user static configuration, the generated routing table entry is issued to each service board card through an internal channel by the master control, if the rate of issuing the routing table entry by the master control exceeds the performance of the internal channel, the issued information packet is lost, the routing table entry on the service board is incorrect, and whether the routing table entry of the master control is consistent with the routing table entry of the service board needs to be checked.
In the prior art, whether the routing table entries of the master control and the service board are consistent or not can be checked through manual participation, and when the routing table entries of the master control and the service board are inconsistent, the routing table entries of the master control are manually modified, so that the master control re-issues the routing table entries with problems to the service board, and the effect of consistency of the routing table entries of the master control and the service board is achieved. This method requires manual work to participate in the inspection, and cannot guarantee that the routing table entry inconsistent with the main control board and the service board can be inspected in real time. Moreover, if the master controller uses a routing table entry generated by the dynamic routing protocol, the dynamic routing protocol is modified manually, which may cause the routing protocol to oscillate.
In the prior art, the rate of issuing the routing table entry of the service board by the master control can be reduced, so that the rate cannot exceed the performance of the internal channel, and the condition of packet loss is avoided. The speed reduction in this way can cause the slow down process of the routing table entry, and influence the effective time of the routing table entry of the service board. And because each service board shares the 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 issuing the routing table items by the master control is difficult to control to be a proper value so as to achieve the flexible application scheme suitable for different service board performances and different service board numbers.
Therefore, a new method, an apparatus, an electronic device, and a computer-readable medium for issuing a routing table entry of a deep service switching gateway are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the application and therefore it may contain information that does not constitute 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, an apparatus, an electronic device and a computer readable medium for issuing a routing table entry of a deep service switching gateway, which can automatically perform consistency check and synchronization of the routing table entry, and avoid a long-time abnormal condition of forwarding traffic due to a wrong routing table entry of a service board.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the present application, a method for issuing a routing table entry of a deep service switching gateway is provided, which is applicable 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 items by the service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry in the service board based on the synchronous check message; and when the information updating time meets a preset strategy, the main control board transmits the routing table items stored locally to the service board.
In an exemplary embodiment of the present application, the obtaining, by a service board, a synchronous count value of a routing table entry by a master control board of a deep service switching gateway includes: a main control board of the deep service switching gateway receives a synchronous confirmation message from a service board; and extracting the slot number of the service board and the synchronous count value of the routing table entry from the synchronous confirmation message.
In an exemplary embodiment of the present application, further comprising: when the main control board issues the routing table item, the synchronous confirmation message sent by the service board is ignored.
In an exemplary embodiment of the present application, comparing the synchronization count value with a synchronization count value locally stored by a main control board includes: extracting a local synchronous count value corresponding to the service board according to the slot position 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 extracting, by the master control board, information update time in a routing table entry in the service board based on the synchronization check message includes: the main control board acquires a routing message from the service board based on the synchronous check message; and extracting the information updating time of each route in the routing table entry from the routing message.
In an exemplary embodiment of the present application, when the information update time satisfies a preset policy, the issuing, by the master control board, the locally stored routing table entry to the service board includes: extracting a local routing table entry corresponding to the service board according to the slot position number of the service board; comparing each entry in the local routing table entry with a corresponding entry in the routing table entry corresponding to the service board; and when the inconsistent entries exist, the main control board issues the entries in the locally stored routing entries to the service board.
In an exemplary embodiment of the present application, after the main control board issues the locally stored routing table entry to the service board, the method further includes: and the main control board synchronizes the locally stored synchronous count value to the service board.
According to an aspect of the present application, a method for issuing a routing table entry 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 routing table item to the main control board at regular time; receiving a synchronization check message from a master control board based on the synchronization count value; generating a routing message through a routing table entry stored in a service board based on the synchronization check message; sending the routing message to the main control board; and receiving the routing table item issued by the main control board based on the routing message.
In an exemplary embodiment of the present application, after receiving a routing table entry issued by the main control board based on the routing message, the method includes: and receiving the synchronization count value from the main control board and updating the locally stored synchronization count value according to the synchronization count value.
According to an aspect of the present application, a device for issuing a routing table entry 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 the main control board of the deep service switching gateway to obtain the synchronous count value of the routing table items by the service board; the comparison module is used for comparing the synchronous count value with a synchronous count value locally stored by the main control board; the synchronization module is used for sending a synchronization 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 entry in the service board by the main control board based on the synchronous check message; and the issuing module is used for issuing the routing table items stored locally 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 device for issuing a routing table entry 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 sending the synchronous count value of the routing table item to the main control board by the service 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 routing information through the routing table entry stored in the service board based on the synchronous check information; 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 items issued by the main control board based on the routing message.
According to an aspect of the present application, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the application, a computer-readable medium is proposed, on which a computer program is stored which, when being executed by a processor, carries out the method as above.
According to the method, the device, the electronic equipment and the computer readable medium for issuing the routing table items of the deep service switching gateway, the main control board of the deep service switching gateway obtains the synchronous count value of the routing table items by the service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry in the service board based on the synchronous check message; when the information updating time meets the preset strategy, the master control board issues the locally stored routing table items to the service board, so that consistency check and synchronization of the routing table items can be automatically performed, and the condition that the forwarding flow is abnormal for a long time due to the error of the routing table items of the service board 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.
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 derived from those drawings by those skilled in the art without inventive effort.
Fig. 1 is a schematic diagram of a deep traffic switching gateway.
Fig. 2 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a method for issuing a routing table entry 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 illustrating an electronic device in accordance with an example embodiment.
FIG. 9 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different 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 example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, 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 subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to 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 actual execution sequence may be changed according to the actual situation.
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. Thus, a first component discussed below may be termed a second component without departing from the teachings of the present concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be appreciated by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present application and are, therefore, not intended to limit the scope of the present application.
The technical abbreviations referred to in this application are explained as follows:
a service board: the board card for realizing various network services, security services and application functions can be inserted into the frame type equipment.
The main control board: the method is used for complete machine configuration management, routing table item management and part of complex service processing.
DPX: the deep service switching gateway is a frame type distributed system integrating three functions of routing switching, network security and application delivery. The system is composed of a machine frame and a plurality of board cards which can be flexibly plugged and unplugged. The main control board is used for complete machine configuration management, routing management and part of complex business processing; the service board is mainly used for carrying network forwarding, security service and application delivery service processing. Except that the software version is stored in the nonvolatile memory of each board card (such as a CF card), all the configuration information and the routing forwarding table entry are stored in the nonvolatile memory of the main control board. Data such as files, user configuration, routing forwarding table entries and the like required by the service board for software version management and service processing 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 main control board 104 and the main control board 105 to receive or send messages, etc.
For the automatic issuing process of the configuration and routing table entry of the user, the standby main control board 104 may be used as a special service board, the main control board 105 may issue all the configuration and forwarding table entries of the user to the standby main control board 104, and only the configuration and forwarding table entries related to the specified service board are issued to the specified service board, so that the service boards mentioned later herein may include the service boards 101, 102, 103 and the standby main control board 104 in practical application.
The service boards 101, 102, 103 and the standby main control board 104 may send the synchronous count value of the routing table entry to the main 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 and the standby control board 104 may generate routing messages through their own stored routing table entries, for example, based on the synchronization check message; the service boards 101, 102, 103 and the standby main control board 104 may, for example, send the routing message to the main control board 105; the service boards 101, 102, 103 and the standby main control board 104 may receive the routing table entry issued by the main control board 105, for example, based on the routing message.
The master control board 105 may obtain a synchronous count value of the routing table entry, for example, from 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 stored locally by the master control board; the main control board 105 may, for example, send a synchronization check message to the service boards 101, 102, 103 and the standby main control board 104 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 the locally stored routing table entry to the service boards 101, 102, and 103 and the standby main control board 104.
Fig. 2 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to an exemplary embodiment. The routing table entry issuing method 20 of the deep service switching gateway can 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 synchronous count value of the routing table entry from the service board. A main control board of the deep service switching gateway receives a synchronous confirmation message from a service board; and extracting the slot number of the service board and the synchronous count value of the routing table entry from the synchronous confirmation message.
The routing table entry includes network segment information, outgoing interface information, next hop information and the like of a route, when a master control in the scheme updates a certain route, update time (UNIX timestamp) needs to be recorded into the routing table entry (as shown in table 1), the update time needs to be issued to the service boards along with the routing table entry at the same time, the master control stores a count value of the issuing times of the routing table entry for each service board, and each service board also stores a count value of the receiving times of the routing table entry.
Table 1:
network segment | Outlet interface | Next hop | Update time | Other information |
0.0.0.0/0 | Eth1 | 1.1.1.1 | Time stamp 1 | Routing overhead and other information |
10.0.0.0/8 | Eth2 | 2.2.2.2 | Time stamp 2 | Routing overhead and other information |
In one embodiment, when the master control board issues the routing table entry, the synchronization acknowledgement message sent by the service board is ignored. And if the master control is in the route issuing process, ignoring the confirmation message sent by the service board.
In S204, the synchronization count value is compared with the synchronization count value locally stored by the main control board. Extracting a local synchronous count value corresponding to the service board according to the slot position 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, the master control sends 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 master control board can obtain a routing message from the service board based on the synchronous check message; and extracting the information updating time of each route in the routing table entry 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 entry corresponding to the service board according to the slot position number of the service board; comparing each entry in the local routing table entry with a corresponding entry in the routing table entry corresponding to the service board; when inconsistent entries exist, the main control board issues the entries in the locally stored routing entries to the service board.
In one embodiment, further comprising: and the main control board synchronizes the locally stored synchronous count value to the service board.
After receiving the synchronous check message, the service board sorts the route check message to the master control for checking, and the route check message includes the network segment information of all the route tables in the service board and the update time of the route. As in the following table:
when the master control finds out the route check message received from the service board, if the update time of a certain network segment is inconsistent with the update time of the corresponding route on the master control, all the information of the route table item is automatically resynchronized to the service board, and when all the inconsistent routes are synchronously completed, the master control sends the update completion message to the service board to synchronize the master control and the count value of the service board, so as to indicate the synchronization completion and avoid the situation that the count values at the two ends are still different when the follow-up service board sends the confirmation message to the master control.
According to the routing table item issuing method of the deep service switching gateway, a main control board of the deep service switching gateway obtains a synchronous count value of the routing table item by a service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry in the service board based on the synchronous check message; when the information updating time meets the preset strategy, the master control board issues the locally stored routing table items to the service board, so that consistency check and synchronization of the routing table items can be automatically performed, and the condition that the forwarding flow is abnormal for a long time due to the error of the routing table items of the service board is avoided.
It should be clearly understood that this application describes how to make and use particular examples, but the principles of this 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 flowchart illustrating a method for issuing a routing table entry 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 at least includes steps S302 to S310.
As shown in fig. 3, in S302, the service board periodically sends the synchronization count value of the routing table entry to the master control board. And the service board sends a synchronous confirmation message to the master control at regular time, wherein the confirmation message comprises the slot position information of the service board and the count value of the receiving times of the routing table item. The master control compares the issued information of the slot position 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 controller determines whether an exception exists according to the count value.
In S304, a synchronization check message is received from the master board based on the synchronization count value.
In S306, a routing message is generated through a 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 network segment information and updating time to the master control, so that the master control determines whether a certain routing table entry is abnormal or not according to the updating 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 synchronization count value from the main control board and updating the locally stored synchronization count value according to the synchronization count value.
Fig. 4 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to another exemplary embodiment. The process 40 shown in fig. 4 is a detailed description of "when the information update time satisfies the preset policy, the main control board sends 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 routing entry is checked continuously.
In S412, a synchronization detection end message is sent to the service board.
Fig. 5 is a flowchart illustrating a method for issuing a routing table entry of a deep traffic switching gateway according to another exemplary embodiment. The flow 50 shown in fig. 5 is a detailed description of the information interaction between the main control board and the service board.
As shown in fig. 5, in S501, the service board periodically sends the synchronization count value of the routing table entry to the master control board.
In S502, the main control board compares the synchronization count value with a synchronization count value locally stored by the main 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 based on the routing message and updated.
According to the routing table entry issuing method of the deep service switching gateway, the method is a method for automatically checking and synchronizing the consistency of the routing table entries between the main control board and the service board in the sectional system, manual participation is not needed, the inconsistency of the main control board and the service board in the sectional system can be automatically found, and when the inconsistency occurs, related routing table entries are automatically synchronized, so that the condition that the forwarding flow is abnormal for a long time due to the error of the routing table entries of the service board is avoided.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the methods provided herein. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to exemplary embodiments of the present application, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made 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: a counting module 602, a comparing module 604, a synchronizing module 606, an extracting module 608, and a sending module 610.
The counting module 602 is configured to enable a main control board of the deep service switching gateway to obtain a synchronous count value of a routing table entry from a service board;
the comparison module 604 is configured to compare the synchronization count value with a synchronization count value locally stored by 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 result is inconsistent;
the extracting module 608 is configured to extract, by the master 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, when the information update time meets a preset policy, the main control board issues the locally stored routing table entry to the service 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 device 70 of the deep service switching gateway may be applied to a service board, and includes: a sending module 702, a checking module 704, a generating module 706, a message module 708, and a receiving module 710.
The sending module 702 is configured to send the synchronous count value of the routing table entry to the main control board at regular time by 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 item issuing device of the deep service switching gateway, a main control board of the deep service switching gateway obtains a synchronous count value of the routing table item through a service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry in the service board based on the synchronous check message; when the information updating time meets the preset strategy, the master control board issues the locally stored routing table items to the service board, so that consistency check and synchronization of the routing table items can be automatically performed, and the condition that the forwarding flow is abnormal for a long time due to the error of the routing table items of the service board is avoided.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 800 according to this embodiment of the application is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the 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 couples various system components including the memory unit 820 and the processing unit 810, a display unit 840, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 810, such that the processing unit 810 performs the 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 memory unit 820 may include readable media in the form of volatile memory units 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 memory unit 820 may also include a program/utility module 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 of which or some combination thereof may comprise an implementation of a network environment.
The electronic device 800 may also communicate with one or more external devices 800' (e.g., keyboard, pointing device, bluetooth device, etc.) such that a user can communicate with devices with which the electronic device 800 interacts, and/or any devices (e.g., router, modem, etc.) with which the electronic device 800 can communicate with one or more other computing devices. Such communication may occur over input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. The network adapter 860 may communicate with other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having 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 disc 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 propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a 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 and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices 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 external computing devices (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, 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 items by the service board; comparing the synchronous count value with a synchronous count value locally stored by a main control board; when the comparison is inconsistent, the main control board sends a synchronous check message to the service board; the master control board extracts the information updating time in the routing table entry 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 items to the service board. The computer readable medium may also implement the following functions: the service board sends the synchronous count value of the routing table item to the main control board at regular time; receiving a synchronization check message from a master control board based on the synchronization count value; generating a routing message through a routing table entry stored in a service board based on the synchronization check message; sending the routing message to the main control board; and receiving the routing table item issued by the main control board based on the routing message.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus as described in the embodiments, and that corresponding changes may be made in one or more apparatus that are unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present application 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 disk, a removable hard disk, etc.) or on a network, and includes 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 embodiment of the present application.
Exemplary embodiments of the present application are specifically illustrated and described above. It is to be understood that the application is not limited to the details of construction, arrangement, or method of implementation described herein; on the contrary, the intention is to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (13)
1. A method for issuing routing table item of deep service switching gateway can be applied to a main control board, and is characterized by comprising the following steps:
the main control board of the deep service switching gateway obtains the synchronous count value of the routing table items by the service board;
comparing the synchronous count value with a synchronous count value locally stored by a main control board;
when the comparison is inconsistent, the main control board sends a synchronous check message to the service board;
the master control board extracts the information updating time in the routing table entry 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 items to the service board.
2. The method of claim 1, wherein the master control board of the deep traffic switching gateway obtaining the synchronization count value of the routing table entry from the traffic board comprises:
a main control board of the deep service switching gateway receives a synchronous confirmation message from a service board;
and extracting the slot number of the service board and the synchronous count value of the routing table entry from the synchronous confirmation message.
3. The method of claim 2, further comprising:
when the main control board issues the routing table item, the synchronous confirmation message sent by the service board is ignored.
4. The method of claim 2, wherein comparing the synchronization count value to a synchronization count value stored locally by a master control board comprises:
extracting a local synchronous count value corresponding to the service board according to the slot position 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 3, wherein the master board extracting the information update time in the routing table entry in the service board based on the synchronization check message comprises:
the main control board acquires a routing message from the service board based on the synchronous check message;
and extracting the information updating time of each route in the routing table entry from the routing message.
6. The method of claim 5, wherein when the information update time satisfies a preset policy, the main control board sends the locally stored routing table entry to the service board, and the method comprises:
extracting a local routing table entry corresponding to the service board according to the slot position number of the service board;
comparing each entry in the local routing table entry with a corresponding entry in the routing table entry corresponding to the service board;
and when the inconsistent entries exist, the main control board issues the entries in the locally stored routing entries to the service board.
7. The method of claim 1, wherein after the master control board sends the locally stored routing table entry to the service board, the method further comprises:
and the main control board synchronizes the locally stored synchronous count value to the service board.
8. A method for issuing routing table items of a deep service switching gateway is applicable to a service board and is characterized by comprising the following steps:
the service board sends the synchronous count value of the routing table item to the master control board at regular time;
receiving a synchronization check message from a master control board based on the synchronization count value;
generating a routing message through a routing table entry stored in a service board based on the synchronization check message;
sending the routing message to the main control board;
and receiving the routing table item issued by the main control board based on the routing message.
9. The method of claim 1, wherein after receiving a routing table entry issued by the master control board based on the routing message, the method comprises:
and receiving the synchronization count value from the main control board and updating the locally stored synchronization count value according to the synchronization count value.
10. A device for issuing routing table items of a 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 the main control board of the deep service switching gateway to obtain the synchronous count value of the routing table items by the service board;
the comparison module is used for comparing the synchronous count value with a synchronous count value locally stored by the main control board;
the synchronization module is used for sending a synchronization 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 entry in the service board by the main control board based on the synchronous check message;
and the issuing module is used for issuing the routing table items stored locally to the service board by the main control board when the information updating time meets a preset strategy.
11. A routing table item issuing device of a deep service switching gateway is applicable to a service board, and is characterized by comprising:
the sending module is used for sending the synchronous count value of the routing table item to the main control board by the service 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 routing information through the routing table entry stored in the service board based on the synchronous check information;
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 items issued by the main control board based on the routing messages.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7 or 8-9.
13. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7 or 8-9.
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 true CN115150317A (en) | 2022-10-04 |
CN115150317B 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)
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 | 北京全路通信信号研究设计院集团有限公司 | Method and system for protecting adjacent station redundancy in frame type 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 |
-
2022
- 2022-06-22 CN CN202210714998.6A patent/CN115150317B/en active Active
Patent Citations (24)
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 | 北京全路通信信号研究设计院集团有限公司 | Method and system for protecting adjacent station redundancy in frame type 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 (2)
Title |
---|
ZHENQIANG SU: "High-speed real-time multi-channel data-acquisition unit: Challenges and results", 《IEEE XPLORE》 * |
周航: "分布式FCoE交换机链路模块的设计与实现", 《CNKI中国知网》 * |
Also Published As
Publication number | Publication date |
---|---|
CN115150317B (en) | 2023-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103460203A (en) | Cluster unique identifier | |
CN110688828A (en) | File processing method and device, file processing system and computer equipment | |
CN108139964A (en) | Cloud service configuration method and device, storage medium and cloud service system | |
CN110019346A (en) | A kind of data processing method and device based on double primary databases | |
CN105610953A (en) | Distributed data synchronizing system and method | |
CN114077518B (en) | Data snapshot method, device, equipment and storage medium | |
CN110019539A (en) | A kind of method and apparatus that the data of data warehouse are synchronous | |
CN111259022A (en) | Information synchronization method, synchronization system, computer equipment and medium | |
US7839798B2 (en) | Seamlessly switching overlay network relay trees | |
CN108984334B (en) | Method and apparatus for managing sessions | |
CN106708879B (en) | Service data processing method and device | |
CN110022323A (en) | A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux | |
CN113346974A (en) | Method, apparatus, communication system and storage medium for clock synchronization | |
CN115150317B (en) | Routing table entry issuing method and device, electronic equipment and computer readable medium | |
CN102647473A (en) | Information synchronization method, device and communication equipment | |
CN114615025A (en) | Method and device for synchronously processing secret keys | |
CN110378641A (en) | A kind of method and apparatus counting unmanned vehicle information | |
US7171613B1 (en) | Web-based application for inbound message synchronization | |
CN114328464A (en) | Data maintenance method, device, equipment and readable medium for distributed storage equipment | |
CN114157604A (en) | Method, device and system for adjusting congestion of switching network board | |
CN114327563A (en) | Data synchronization method, device, system, storage medium and computer system | |
CN113487411A (en) | Method, device, equipment and computer readable medium for information interaction | |
CN107454021B (en) | Communication method and device | |
CN112783924A (en) | Dirty data identification method, device and system | |
CN116233154A (en) | Configuration data synchronization method and device for multiple systems |
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 |