CN111064669B - Route storage method, device, equipment and storage medium - Google Patents

Route storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN111064669B
CN111064669B CN201911316859.2A CN201911316859A CN111064669B CN 111064669 B CN111064669 B CN 111064669B CN 201911316859 A CN201911316859 A CN 201911316859A CN 111064669 B CN111064669 B CN 111064669B
Authority
CN
China
Prior art keywords
route
information
routing
storage server
attribute
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
CN201911316859.2A
Other languages
Chinese (zh)
Other versions
CN111064669A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201911316859.2A priority Critical patent/CN111064669B/en
Publication of CN111064669A publication Critical patent/CN111064669A/en
Application granted granted Critical
Publication of CN111064669B publication Critical patent/CN111064669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The present disclosure relates to a method, an apparatus, a device and a storage medium for storing a route, and relates to the technical field of communications, and an embodiment of the present disclosure includes: acquiring routing information of a plurality of gateway protocols stored in network equipment; converting the routing information of various gateway protocols into target routing information of a preset gateway protocol; and sending the target routing information to a preset routing storage server through a preset gateway protocol so that the routing storage server stores the target routing information. The technical scheme provided by the embodiment of the disclosure has the advantage that the routing query system has low expandability.

Description

Route storage method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for storing a route.
Background
In the related art, the routing table of the network device is usually stored in the memory of the network device.
In the case that the routing table is stored in the memory of the network device, the querying system user usually needs to log in the network device to query the routing table of the network device in a command line manner. However, in practice, there are many manufacturers of network devices. The network devices of different manufacturers have different presentation forms of command lines and routing tables when inquiring the routing tables. In order to be compatible with the query of the routing tables in the network devices of different manufacturers, the query system needs to be individually adapted to the network devices of each manufacturer, and the expandability of the routing query system is not strong.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device and a storage medium for storing a route, so as to at least solve the problem of poor expandability of a route query system in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a route storage method applied to a network device, the method including:
acquiring routing information of a plurality of gateway protocols stored in the network equipment;
converting the routing information of the multiple gateway protocols into target routing information of a preset gateway protocol;
and sending the target routing information to a preset routing storage server through the preset gateway protocol so as to enable the routing storage server to store the target routing information.
Optionally, the step of sending the target routing information to a preset routing storage server through the preset gateway protocol includes:
generating a first route updating message of the preset gateway protocol, wherein the first route updating message carries the target route information;
and sending the first route updating message to a preset route storage server.
Optionally, after sending the first route update packet to a preset route storage server, the method further includes:
when the route attribute of first route information in the target route information of the network equipment changes, generating a second route updating message of the preset gateway protocol, wherein the second route updating message carries the first route information and the route attribute of the changed first route information;
and sending the second route updating message to the route storage server so that the route storage server updates the first route information in the route storage server according to the route attribute after the change of the first route information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server by the route storage server according to the first attribute;
and when the route attribute after the change of the first route information is the second attribute, the route storage server revokes the first route information in the route storage server according to the second attribute.
Optionally, the preset gateway protocol is one of the following gateway protocols:
border Gateway Protocol (BGP);
intermediate System to Intermediate System gateway protocol (ISIS);
open Shortest Path First gateway protocol (OSPF).
According to a second aspect of the embodiments of the present disclosure, there is provided a route storage method applied to a route storage server, the method including:
receiving target routing information sent by network equipment through a preset gateway protocol, wherein the target routing information is obtained by converting stored routing information of multiple gateway protocols by the network equipment;
and storing the target routing information.
Optionally, the step of receiving, by using a preset gateway protocol, the target routing information sent by the network device includes:
receiving a first route updating message of a preset gateway protocol sent by network equipment, wherein the first route updating message carries target route information.
Optionally, after storing the target routing information, the method further includes:
receiving a second route updating message of the preset gateway protocol sent by the network equipment, wherein the second route updating message carries first route information with changed route attributes in the target route information and route attributes after the first route information is changed;
and updating the first routing information in the routing storage server according to the changed routing attribute of the first routing information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
the step of updating the first routing information in the routing storage server according to the changed routing attribute of the first routing information includes:
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server;
and when the route attribute after the change of the first route information is the second attribute, revoking the first route information in the route storage server.
Optionally, the preset gateway protocol is one of the following gateway protocols:
BGP;
ISIS;
OSPF。
according to a third aspect of the embodiments of the present disclosure, there is provided a route storage apparatus, applied to a network device, the apparatus including:
an acquisition unit configured to perform acquisition of routing information of a plurality of gateway protocols stored in the network device;
a conversion unit configured to perform conversion of the routing information of the plurality of gateway protocols into target routing information of a preset gateway protocol;
a sending unit configured to execute sending the target routing information to a preset routing storage server through the preset gateway protocol, so that the routing storage server stores the target routing information.
Optionally, the sending unit is configured to specifically execute:
generating a first route updating message of the preset gateway protocol, wherein the first route updating message carries the target route information; and sending the first route updating message to a preset route storage server.
Optionally, the sending unit is configured to further perform:
after sending the first route update message to a preset route storage server, when a route attribute of first route information in the target route information of the network device changes, generating a second route update message of a preset gateway protocol, wherein the second route update message carries the first route information and the route attribute of the changed first route information; and sending the second route updating message to the route storage server so that the route storage server updates the first route information in the route storage server according to the route attribute after the change of the first route information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server by the route storage server according to the first attribute;
and when the route attribute after the change of the first route information is the second attribute, the route storage server revokes the first route information in the route storage server according to the second attribute.
Optionally, the preset gateway protocol is one of the following gateway protocols:
BGP;
ISIS;
OSPF。
according to a fourth aspect of the embodiments of the present disclosure, there is provided a route storage apparatus, applied to a route storage server, the apparatus including:
the receiving unit is configured to execute receiving of target routing information sent by network equipment through a preset gateway protocol, wherein the target routing information is obtained by converting stored routing information of multiple gateway protocols by the network equipment;
a storage unit configured to perform storing the target routing information.
Optionally, the receiving unit is configured to specifically perform:
receiving a first route updating message of a preset gateway protocol sent by network equipment, wherein the first route updating message carries target route information.
Optionally, the receiving unit is configured to further perform, after storing the target routing information, receiving a second routing update packet of the preset gateway protocol sent by the network device, where the second routing update packet carries first routing information with a changed routing attribute in the target routing information and a routing attribute after the first routing information is changed;
the storage unit is configured to further perform updating of the first routing information in the routing storage server according to the changed routing attribute of the first routing information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
the storage unit is configured to specifically perform:
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server;
and when the route attribute after the change of the first route information is the second attribute, revoking the first route information in the route storage server.
Optionally, the preset gateway protocol is one of the following gateway protocols:
BGP;
ISIS;
OSPF。
according to a fifth aspect of the embodiments of the present disclosure, there is provided a network device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the route storage method as described above in the first aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a route storage server, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the route storage method of the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of a network device, enable the network device to perform the route storage method as described in the first aspect above.
According to an eighth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a route storage server, enable the route storage server to perform the route storage method as described in the second aspect above.
According to a ninth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein the instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the route storage method as described in the first aspect above.
According to a tenth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein the instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the route storage method as described in the second aspect above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the network equipment stores the routing information into a preset routing storage server through a preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a block diagram illustrating a routing memory system in accordance with an exemplary embodiment;
fig. 2 is a signaling diagram illustrating a route storage method applied to a route storage system according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a route storage method applied to a network device according to an example embodiment.
FIG. 4 is a schematic diagram of routing information based on the storage system shown in FIG. 1.
Fig. 5 is a flow chart illustrating another method of route storage applied to a network device in accordance with an exemplary embodiment.
Fig. 6 is a flow chart illustrating another method of route storage applied to a network device in accordance with an example embodiment.
Fig. 7 is a flowchart illustrating a route storage method applied to a route storage server according to an exemplary embodiment.
Fig. 8 is a flowchart illustrating another route storage method applied to a route storage server according to an example embodiment.
Fig. 9 is a flowchart illustrating another route storage method applied to a route storage server according to an example embodiment.
Fig. 10 is a block diagram illustrating a route storage applied to a network device according to an example embodiment.
FIG. 11 is a block diagram illustrating a route storage device applied to a route storage server according to an example embodiment.
Fig. 12 is a block diagram illustrating a network device in accordance with an example embodiment.
Fig. 13 is a block diagram illustrating another network device in accordance with an example embodiment.
FIG. 14 is a block diagram illustrating a route storage server in accordance with an exemplary embodiment.
FIG. 15 is a block diagram illustrating a route storage server in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure provides a route storage method, which is applied to a route storage system. Wherein, the route storage system is shown in fig. 1, the route storage system may comprise network devices 11-13 and a route storage server 14. The route storage system may include a plurality of network devices, and here, only 3 network devices are taken as an example for illustration and are not used for limitation.
The network devices 11-13 establish a connection with the route storage server 14 through a preset network protocol. The pre-network protocol may be one of BGP, ISIS, OSPF, and the like. For example, where the pre-network protocol is BGP, network devices 11-13 establish a BGP neighbor relationship with route storage server 14.
After the network devices 11-13 establish a connection with the route storage server 14, the flow of route storage is shown in fig. 2.
In step S21, the network devices 11-13 acquire routing information of a plurality of gateway protocols stored in the network devices.
In step S22, the network devices 11-13 convert the routing information of the plurality of gateway protocols into target routing information of the preset gateway protocol.
In step S23, the network device 11-13 sends the destination routing information to the preset routing storage server 14 through the preset gateway protocol.
In step S24, the route storage server 14 stores the target route information.
In the embodiment of the disclosure, the network device stores all the routing information into the preset routing storage server through the preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
Fig. 3 is a flowchart illustrating a route storage method applied to a network device according to an exemplary embodiment, where the route storage method is applied to a network device, as shown in fig. 3, and the method may include the following steps.
In step S31, routing information of a plurality of gateway protocols stored in the network device is acquired.
In the embodiment of the present disclosure, the network device may store routing information of multiple gateway protocols, such as routing information of an OSPF protocol, routing information of an ISIS protocol, routing information of a static protocol, routing information of a BGP protocol, and the like. When the technical scheme provided by the embodiment of the disclosure is implemented, the network equipment stores routing information of a plurality of gateway protocols. The routing information may include a prefix, a next hop, and path information (AS-path) of an Autonomous System (AS).
As shown in fig. 4, the network device 11 stores routing information 1 of the OSPF protocol, routing information 2 of the ISIS protocol, and routing information 3 of the static protocol. When the technical solution provided by the embodiment of the present disclosure is implemented, the network device 11 obtains routing information 1 of the OSPF protocol, routing information 2 of the ISIS protocol, and routing information 3 of the static protocol stored in the network device 11.
In step S32, the route information of the plurality of gateway protocols is converted into the target route information of the preset gateway protocol.
In the embodiment of the present disclosure, the preset gateway protocol is a protocol used for establishing a connection between a network device and a route storage server. For example, if the network device and the route storage server establish a BGP neighbor relationship through BGP, the gateway protocol is preset to BGP.
In one implementation, a network device establishes a BGP neighbor relationship with a storage server. When the network device and the route storage server are located in the same AS, the network device may establish an Internal Border Gateway Protocol (IBGP) neighbor relationship with the storage server, and when the network device and the route storage server are located in different AS, the network device may establish an External Border Gateway Protocol (EBGP) neighbor relationship with the storage server.
In the embodiment of the present disclosure, after acquiring the routing information of multiple gateway protocols, the network device converts the routing information of the multiple gateway protocols into target routing information of a preset gateway protocol.
Still taking the network device 11 in fig. 4 as an example for explanation, the predetermined gateway protocol is BGP. After acquiring the routing information 1 of the OSPF protocol, the routing information 2 of the ISIS protocol, and the routing information 3 of the static protocol, the network device 11 converts the routing information 1 of the OSPF protocol into the target routing information 1 of the BGP, converts the routing information of the ISIS protocol into the target routing information 2 of the BGP, and converts the routing information of the static protocol into the target routing information 3 of the BGP.
In step S33, the target routing information is transmitted to a preset routing storage server through a preset gateway protocol, so that the routing storage server stores the target routing information.
Still taking the network device 11 in fig. 4 as an example for explanation, the network device 11 obtains the target routing information 1-3 of BGP, and sends the target routing information 1-3 to the route storage server through BGP. The route storage server receives the target route information 1-3 and stores the target route information 1-3.
In the embodiment of the present disclosure, the network device may execute the above steps S31-33 regularly, so that the routing information stored in the routing storage server is accurate. The network device may also execute the above steps S31-33 after receiving the route update instruction. The embodiment of the present disclosure is not particularly limited to this.
By applying the technical scheme shown in fig. 3, the network device stores the routing information into the preset routing storage server through the preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
In addition, in the embodiment of the disclosure, the route information is stored in the route storage server, so that the user can inquire the route information from the route storage server. Under the condition that the routing storage server adopts a database system, the query efficiency of routing information can be effectively improved, and the query efficiency can be improved to ten thousand per second from the original 'hundred pieces per second'. And thirdly, the routing information originally stored in each network device is stored in the routing storage server in a centralized manner, so that the routing table information of the whole network system can be inquired from the routing storage server, and the inquiry mode is simplified.
Fig. 5 is a flowchart illustrating another route storage method applied to a network device according to an exemplary embodiment, where the route storage method is applied to a network device, as shown in fig. 5, and step S33 in the method can be subdivided into steps S331-S332, which are described as follows.
In step S31, routing information of a plurality of gateway protocols stored in the network device is acquired.
In step S32, the route information of the plurality of gateway protocols is converted into the target route information of the preset gateway protocol.
In step S331, a first route update packet of a preset gateway protocol is generated, where the first route update packet carries target route information.
In step S332, the first route update packet is sent to a preset route storage server, so that the route storage server stores the target route information.
After determining the target routing information, the network device generates a first routing update message of a preset gateway protocol, carries the target routing information in the first routing update message and sends the first routing update message to the routing storage server, and then the routing storage server acquires the target routing information from the first routing update message and stores the target routing information.
For example, if the preset gateway protocol is BGP, the first route update packet is a BGP route update packet. After determining the target routing information, the network device generates a BGP routing update message carrying the target routing information, and sends the BGP routing update message to a preset routing storage server. Correspondingly, the route storage server receives a BGP route update message sent by the network equipment, acquires target route information from the BGP route update message, and stores the target route information.
In this embodiment of the present disclosure, each first route update packet may include a piece of target route information, so that the route storage server may quickly acquire and store the target route information in the first route update packet. Each first route updating message may also include multiple pieces of target route information, so as to reduce network resources occupied by the network device sending the route information to the route storage server.
Fig. 6 is a flowchart illustrating another route storage method applied to a network device according to an exemplary embodiment, where as shown in fig. 6, the route storage method is applied to the network device, and in the method, after step S332, step S34 and step S35 may also be performed, as follows.
In step S31, routing information of a plurality of gateway protocols stored in the network device is acquired.
In step S32, the route information of the plurality of gateway protocols is converted into the target route information of the preset gateway protocol.
In step S331, a first route update packet of a preset gateway protocol is generated, where the first route update packet carries target route information.
In step S332, the first route update packet is sent to a preset route storage server, so that the route storage server stores the target route information.
In step S34, when the route attribute of the first route information in the target route information of the network device changes, a second route update packet of the preset gateway protocol is generated, where the second route update packet carries the first route information and the route attribute after the change of the first route information.
In one implementation, the route attributes may include a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route.
When the network device newly determines that one piece of routing information is the target routing information, the routing information is the first routing information in the target routing information and is a newly added piece of routing information, and the network device generates a second routing update message carrying the first routing information and the first attribute.
When one piece of routing information in the target routing information of the network equipment is updated, the routing information is first routing information in the target routing information, and the network equipment generates a second routing update message carrying the first routing information and a first attribute.
When one piece of routing information in the target routing information of the network equipment fails, the routing information is first routing information in the target routing information, and the network equipment generates a second routing update message carrying the first routing information and a second attribute.
In the disclosed embodiment, the first attribute may be represented using update (update) and the second attribute may be represented using undo (withdraw). The first attribute and the second attribute may also be represented by other characters, which are not specifically limited in this disclosure.
In step S35, the second route update message is sent to the route storage server, so that the route storage server updates the first route information in the route storage server according to the changed route attribute of the first route information.
In one implementation, the route attributes may include a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route. And if the routing attribute carried in the second routing update message is the first attribute, adding the first routing information in the routing storage server by the routing storage server according to the first attribute. And if the routing attribute carried in the second routing update message is the second attribute, the routing storage server cancels the first routing information in the routing storage server according to the second attribute.
In the embodiment of the present disclosure, the second route update message carries the route attribute after the first route information is changed, which can ensure that the route storage server can accurately update the route information, and further ensure that the user can obtain correct route information.
Fig. 7 is a flowchart illustrating a route storage method applied to a route storage server according to an exemplary embodiment, where the route storage method is applied to a route storage server, as shown in fig. 7, and includes the following steps.
In step S71, target routing information sent by the network device is received through the preset gateway protocol, where the target routing information is obtained by converting the stored routing information of multiple gateway protocols by the network device.
In the embodiment of the present disclosure, the network device may store routing information of multiple gateway protocols, such as routing information of an OSPF protocol, routing information of an ISIS protocol, routing information of a static protocol, routing information of a BGP protocol, and the like. When the technical scheme provided by the embodiment of the disclosure is implemented, the network equipment stores routing information of a plurality of gateway protocols. The routing information may include a prefix, a next hop, and an AS-path of the AS. After the network equipment acquires the routing information of the multiple gateway protocols, the routing information of the multiple gateway protocols is converted into target routing information of a preset gateway protocol, and the target routing information is sent to a preset routing storage server through the preset gateway protocol. And the route storage server receives the target route information sent by the network equipment through a preset gateway protocol.
In step S72, the destination route information is stored.
By applying the technical scheme shown in fig. 7, the network device stores all the routing information in the preset routing storage server through the preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
Fig. 8 is a flowchart illustrating another route storage method applied to a route storage server according to an exemplary embodiment, where the route storage method is applied to a route storage server, as shown in fig. 8, and step S71 in the method can be subdivided into step S711, which is described as follows.
In step S711, a first route update packet of a preset gateway protocol sent by the network device is received, where the first route update packet carries target route information.
In step S72, the destination route information is stored.
After determining the target routing information, the network device generates a first routing update message of a preset gateway protocol, carries the target routing information in the first routing update message and sends the first routing update message to the routing storage server, and then the routing storage server acquires the target routing information from the first routing update message and stores the target routing information.
For example, if the preset gateway protocol is BGP, the first route update packet is a BGP route update packet. After determining the target routing information, the network device generates a BGP routing update message carrying the target routing information, and sends the BGP routing update message to a preset routing storage server. Correspondingly, the route storage server receives a BGP route update message sent by the network equipment, acquires target route information from the BGP route update message, and stores the target route information.
In this embodiment of the present disclosure, each first route update packet may include a piece of target route information, so that the route storage server may quickly acquire and store the target route information in the first route update packet. Each first route updating message may also include multiple pieces of target route information, so as to reduce network resources occupied by the network device sending the route information to the route storage server.
Fig. 9 is a flowchart illustrating another route storage method applied to a route storage server according to an exemplary embodiment, where as shown in fig. 9, the route storage method is applied to a route storage server, and step S72 in the method can be subdivided into steps S73 and 74, which are described as follows.
In step S711, a first route update packet of a preset gateway protocol sent by the network device is received, where the first route update packet carries target route information.
In step S72, the destination route information is stored.
In step S73, a second route update packet of a preset gateway protocol sent by the network device is received, where the second route update packet carries the first route information with the changed route attribute in the target route information and the route attribute after the change of the first route information.
In one implementation, the route attributes may include a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route.
When the network device newly determines that one piece of routing information is the target routing information, the routing information is the first routing information in the target routing information and is a newly added piece of routing information, and the network device generates a second routing update message carrying the first routing information and the first attribute.
When one piece of routing information in the target routing information of the network equipment is updated, the routing information is first routing information in the target routing information, and the network equipment generates a second routing update message carrying the first routing information and a first attribute.
When one piece of routing information in the target routing information of the network equipment fails, the routing information is first routing information in the target routing information, and the network equipment generates a second routing update message carrying the first routing information and a second attribute.
In the embodiment of the present disclosure, the first attribute may be represented by update, and the second attribute may be represented by withdaw. The first attribute and the second attribute may also be represented by other characters, which are not specifically limited in this disclosure.
In step S74, the first routing information in the route storage server is updated according to the changed route attribute of the first routing information.
In one implementation, the route attributes may include a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route. And if the routing attribute carried in the second routing update message is the first attribute, adding the first routing information in the routing storage server by the routing storage server according to the first attribute. And if the routing attribute carried in the second routing update message is the second attribute, the routing storage server cancels the first routing information in the routing storage server according to the second attribute.
In one implementation, the route storage server may structurally store the target route information into a database. For example, the destination routing information in the database may include a prefix, a next hop, a status, and an as-path, as shown in table one.
Watch 1
Prefix Next hop Status of state as-path
1.1.1.1/32 1.1.1.2 1 /
1.1.1.2/32 1.1.1.2 1 /
In table one, each row represents a piece of routing information. The state is 1, which indicates that the piece of routing information is valid routing information; the state is 0, which indicates that the piece of routing information is invalid routing information.
The following describes a route update procedure provided in the embodiment of the present disclosure with reference to table one. Wherein the first attribute is represented by update and the second attribute is represented by withdraw.
If the network device detects a new piece of routing information a 1: prefix: 1.1.1.3/32, next hop: 1.1.1.2, as-path: and if so, generating a routing update message L1 carrying the routing information a1 and update, and sending the routing update message L1 to the routing storage server. The route storage server receives the route update message L1, obtains the route information a1 from the route storage server, and stores the route information a1, as shown in table two.
Watch two
Prefix Next hop Status of state as-path
1.1.1.1/32 1.1.1.2 1 /
1.1.1.2/32 1.1.1.2 1 /
1.1.1.3/32 1.1.1.2 1 /
If the network device detects that a piece of routing information a2 is invalid routing information, the routing information a2 is a prefix: 1.1.1.2/32, next hop: 1.1.1.2, as-path: and if so, generating a route updating message L2 carrying the route information a2 and the withdraw, and sending the route updating message L2 to the route storage server. The route storage server receives the route update message L2, acquires the route information a2 from the route storage server, and sets the state of the route information a2 to 0 to revoke the route information a2, as shown in table three.
Prefix Next hop Status of state as-path
1.1.1.1/32 1.1.1.2 1 /
1.1.1.2/32 1.1.1.2 0 /
1.1.1.3/32 1.1.1.2 1 /
In the embodiment of the present disclosure, the second route update message carries the route attribute after the first route information is changed, which can ensure that the route storage server can accurately update the route information, and further ensure that the user can obtain correct route information.
Fig. 10 is a block diagram illustrating a route storage applied to a network device according to an example embodiment. As shown in fig. 10, the apparatus is applied to a network device, and includes an acquisition unit 1001, a conversion unit 1002, and a transmission unit 1003.
An acquisition unit 1001 configured to perform acquisition of routing information of a plurality of gateway protocols stored in a network device;
a conversion unit 1002 configured to perform conversion of routing information of a plurality of gateway protocols into target routing information of a preset gateway protocol;
a sending unit 1003 configured to execute sending the target routing information to a preset routing storage server through a preset gateway protocol, so that the routing storage server stores the target routing information.
By applying the technical scheme shown in fig. 10, the network device stores all the routing information in the preset routing storage server through the preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
Optionally, the sending unit 1003 is configured to specifically execute:
generating a first route updating message of a preset gateway protocol, wherein the first route updating message carries target route information; and sending the first route updating message to a preset route storage server.
Optionally, the sending unit 1003 is configured to further perform:
after the first routing update message is sent to a preset routing storage server, when the routing attribute of the first routing information in the target routing information of the network equipment changes, a second routing update message of a preset gateway protocol is generated, wherein the second routing update message carries the first routing information and the routing attribute of the changed first routing information; and sending the second route updating message to a route storage server so that the route storage server updates the first route information in the route storage server according to the route attribute after the change of the first route information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server by the route storage server according to the first attribute;
and when the route attribute after the change of the first route information is the second attribute, the route storage server cancels the first route information in the route storage server according to the second attribute.
Optionally, the preset gateway protocol is one of the following gateway protocols:
BGP;ISIS;OSPF。
fig. 11 is a block diagram illustrating another route storage apparatus applied to a route storage server according to an exemplary embodiment, and the apparatus, as shown in fig. 11, applied to the route storage server includes a receiving unit 1101 and a storage unit 1102.
A receiving unit 1101 configured to execute a receiving unit, configured to receive target routing information sent by the network device through a preset gateway protocol, where the target routing information is obtained by converting routing information of multiple stored gateway protocols by the network device;
a storage unit 1102 configured to perform storing the target routing information.
By applying the technical scheme shown in fig. 11, the network device stores all the routing information in the preset routing storage server through the preset gateway protocol. At this time, the route storage server may store all the route information of the entire network system. The query system can query the required routing information from the routing storage server, the query system only needs to be adapted to the routing storage server, and does not need to be adapted to the network equipment of each manufacturer independently, so that the expandability of the query system is improved, and the problem of poor expandability of the routing query system in the related technology is solved.
Optionally, the receiving unit 1101 is configured to specifically perform:
receiving a first route updating message of a preset gateway protocol sent by network equipment, wherein the first route updating message carries target route information.
Optionally, the receiving unit 1101 is configured to further perform, after storing the target routing information, receiving a second routing update packet of a preset gateway protocol sent by the network device, where the second routing update packet carries the first routing information with a changed routing attribute in the target routing information and the routing attribute after the first routing information is changed;
and the storage unit is configured to update the first routing information in the routing storage server according to the changed routing attribute of the first routing information.
Optionally, the route attribute includes a first attribute indicating addition of a route and a second attribute indicating withdrawal of the route;
the storage unit 1102 is configured to specifically perform:
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server;
and when the route attribute after the change of the first route information is the second attribute, revoking the first route information in the route storage server.
Optionally, the preset gateway protocol is one of the following gateway protocols:
BGP;ISIS;OSPF。
with regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 12 is a block diagram illustrating a network device for route storage in accordance with an exemplary embodiment. The network device includes: a processor 1201; a memory 1202 for storing instructions executable by the processor 1201; wherein the processor 1201 is configured to execute the above instructions to implement any of the above route storage method steps applied to the network device.
Fig. 13 is a block diagram illustrating a network device 1300 for route storage according to an example embodiment. The network device 1300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
Referring to fig. 13, network device 1300 may include one or more of the following components: processing component 1302, memory 1304, power component 1306, multimedia component 1308, audio component 1310, Input/Output (I/O) interface 1312, sensor component 1314, and communications component 1316.
The processing component 1302 generally controls overall operation of the network device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operation at the network device 1300. Examples of such data include instructions for any application or method operating on network device 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 404 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk, and so on.
The power supply component 1306 provides power to the various components of the network device 1300. The power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the network device 1300.
The multimedia component 1308 includes a screen of an output interface provided between the network device 1300 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the network device 1300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when the network device 1300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 may also include a speaker for outputting audio signals.
I/O interface 1312 provides an interface between processing component 1302 and peripheral interface modules. The peripheral interface module can be a keyboard, a click wheel, a button and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, a lock button, etc.
The sensor component 1314 includes one or more sensors for providing various aspects of state assessment for the network device 1300. For example, the sensor component 1314 can detect the open/closed status of the network device 1300, the relative positioning of components such as a display and keypad of the network device 1300. The sensor component 1314 can also detect a change in location of the network device 1300 or a component of the network device 1300, the presence or absence of user contact with the network device 1300, orientation or acceleration/deceleration of the network device 1300, a change in temperature of the network device 1300, and the like. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a photosensor, such as a Complementary Metal Oxide Semiconductor (CMOS) sensor or a Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a temperature sensor, or the like.
The communication component 1316 is configured to facilitate communications between the network device 1300 and other devices in a wired or wireless manner. The network device 1300 may access a Wireless network based on a communication standard, such as Wireless Fidelity (WiFi), a carrier network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 1316 may include a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the network Device 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the steps of the above-described route storage method applied to the network Device.
For the embodiment of the network device, since it is basically similar to the embodiment of the route storage method, the description is relatively simple, and relevant points can be referred to the partial description of the embodiment of the route storage method shown in fig. 1 to 6.
In an exemplary embodiment, a storage medium is also provided that includes instructions, such as the memory 1202/the memory 1304 that includes instructions executable by a processor of a network device to perform any of the route storage method steps described above as applied to the network device. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product, which includes program instructions, when the program instructions in the computer program product are executed by a processor of a network device, the network device is caused to execute the above-mentioned route storage method applied to the network device.
FIG. 14 is a block diagram illustrating a route storage server for route storage in accordance with an illustrative embodiment. The route storage server includes: a processor 1401; a memory 1402 for storing instructions executable by the processor 1401; wherein the processor 1401 is configured to execute the above-mentioned instructions to implement any of the above-mentioned route storage method steps applied to the route storage server.
Fig. 15 is a block diagram illustrating a route storage server 1500 for route storage according to an example embodiment. The routing storage server 1500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
Referring to fig. 15, routing storage server 1500 may include one or more of the following components: processing component 1502, memory 1504, power component 1506, multimedia component 1508, audio component 1510, I/O interface 1512, sensor component 1514, and communications component 1516.
The processing component 1502 generally controls overall operations of the routing storage server 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1502 may include one or more processors 1520 executing instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1502 may include one or more modules that facilitate interaction between processing component 1502 and other components. For example, processing component 1502 may include a multimedia module to facilitate interaction between multimedia component 1508 and processing component 1502.
The memory 1504 is configured to store various types of data to support operations at the route storage server 1500. Examples of such data include instructions for any application or method operating on routing storage server 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile storage devices, such as SRAM, EEPROM, EPROM, PROM, ROM, magnetic memory, flash memory, magnetic or optical disks, and the like.
The power component 1506 provides power to the various components of the routing storage server 1500. The power components 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the routing storage server 1500.
Multimedia component 1508 includes a screen of an output interface provided between routing storage server 1500 and the user. In some embodiments, the screen may include an LCD and a TP. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1508 includes a front facing camera and/or a rear facing camera. When the routing storage server 1500 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a MIC, and the microphone is configured to receive external audio signals when the routing storage server 1500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, audio component 1510 may also include a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules. The peripheral interface module can be a keyboard, a click wheel, a button and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, a lock button, etc.
The sensor component 1514 includes one or more sensors for providing status evaluation of various aspects for the routing storage server 1500. For example, the sensor component 1514 may detect the open/closed status of the routing storage server 1500, the relative positioning of components such as the display and keypad of the routing storage server 1500. The sensor component 1514 can also detect a change in location of the routing storage server 1500 or a component of the routing storage server 1500, the presence or absence of user contact with the routing storage server 1500, changes in the orientation or acceleration/deceleration of the routing storage server 1500, temperature of the routing storage server 1500, and the like. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS sensor or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor, among others.
The communication component 1516 is configured to facilitate routing communications between the storage server 1500 and other devices in a wired or wireless manner. The route storage server 1500 may have access to a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 can include an NFC module to facilitate short-range communications. For example, the NFC module may be implemented based on RFID technology, IrDA technology, UWB technology, BT technology, and other technologies.
In an exemplary embodiment, the route storage server 1500 may be implemented by one or more ASICs, DSPs, DSPDs, PLDs, FPGAs, controllers, microcontrollers, microprocessors or other electronic components for performing the steps of the route storage method as described above as applied to the route storage server.
For the embodiment of the route storage server, since it is basically similar to the embodiment of the route storage method, the description is relatively simple, and relevant points can be referred to the partial description of the embodiment of the route storage method shown in fig. 7 to 9.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as memory 1402/memory 1504 comprising instructions executable by a processor of a storage server to perform any of the route storage method steps described above as applied to a route storage server. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising program instructions that, when executed by a processor of a route storage server, cause the route storage server to perform the above-mentioned route storage method applied to the route storage server.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A route storage method is applied to a network device, and comprises the following steps:
acquiring routing information of a plurality of gateway protocols stored in the network equipment;
converting the routing information of the multiple gateway protocols into target routing information of a preset gateway protocol;
and sending the target routing information to a preset routing storage server through the preset gateway protocol so as to enable the routing storage server to store the target routing information.
2. The method according to claim 1, wherein the step of sending the target routing information to a predetermined routing storage server via the predetermined gateway protocol comprises:
generating a first route updating message of the preset gateway protocol, wherein the first route updating message carries the target route information;
and sending the first route updating message to a preset route storage server.
3. The method according to claim 2, wherein after sending the first route update packet to a predetermined route storage server, further comprising:
when the route attribute of first route information in the target route information of the network equipment changes, generating a second route updating message of the preset gateway protocol, wherein the second route updating message carries the first route information and the route attribute of the changed first route information;
and sending the second route updating message to the route storage server so that the route storage server updates the first route information in the route storage server according to the route attribute after the change of the first route information.
4. The method of claim 3, wherein the route attributes comprise a first attribute indicating route addition and a second attribute indicating route withdrawal;
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server by the route storage server according to the first attribute;
and when the route attribute after the change of the first route information is the second attribute, the route storage server revokes the first route information in the route storage server according to the second attribute.
5. The method according to any of claims 1-4, wherein the predetermined gateway protocol is one of the following gateway protocols:
border gateway protocol BGP;
intermediate system to intermediate system gateway protocol ISIS;
open shortest path first gateway protocol OSPF.
6. A route storage method is applied to a route storage server, and comprises the following steps:
receiving target routing information sent by network equipment through a preset gateway protocol, wherein the target routing information is obtained by converting stored routing information of multiple gateway protocols by the network equipment;
and storing the target routing information.
7. The method of claim 6, wherein the step of receiving the target routing information sent by the network device via the predetermined gateway protocol comprises:
receiving a first route updating message of a preset gateway protocol sent by network equipment, wherein the first route updating message carries target route information.
8. The method of claim 7, wherein after storing the target routing information, the method further comprises:
receiving a second route updating message of the preset gateway protocol sent by the network equipment, wherein the second route updating message carries first route information with changed route attributes in the target route information and route attributes after the first route information is changed;
and updating the first routing information in the routing storage server according to the changed routing attribute of the first routing information.
9. The method of claim 8, wherein the route attributes comprise a first attribute indicating route addition and a second attribute indicating route withdrawal;
the step of updating the first routing information in the routing storage server according to the changed routing attribute of the first routing information includes:
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server;
and when the route attribute after the change of the first route information is the second attribute, revoking the first route information in the route storage server.
10. The method according to any of claims 6-9, wherein the predetermined gateway protocol is one of the following gateway protocols:
border gateway protocol BGP;
intermediate system to intermediate system gateway protocol ISIS;
open shortest path first gateway protocol OSPF.
11. A route storage apparatus, applied to a network device, the apparatus comprising:
an acquisition unit configured to perform acquisition of routing information of a plurality of gateway protocols stored in the network device;
a conversion unit configured to perform conversion of the routing information of the plurality of gateway protocols into target routing information of a preset gateway protocol;
a sending unit configured to execute sending the target routing information to a preset routing storage server through the preset gateway protocol, so that the routing storage server stores the target routing information.
12. The apparatus according to claim 11, wherein the sending unit is configured to specifically perform:
generating a first route updating message of the preset gateway protocol, wherein the first route updating message carries the target route information; and sending the first route updating message to a preset route storage server.
13. The apparatus of claim 12, wherein the sending unit is configured to further perform:
after sending the first route update message to a preset route storage server, when a route attribute of first route information in the target route information of the network device changes, generating a second route update message of a preset gateway protocol, wherein the second route update message carries the first route information and the route attribute of the changed first route information; and sending the second route updating message to the route storage server so that the route storage server updates the first route information in the route storage server according to the route attribute after the change of the first route information.
14. The apparatus of claim 13, wherein the routing attributes comprise a first attribute indicating route addition and a second attribute indicating route withdrawal;
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server by the route storage server according to the first attribute;
and when the route attribute after the change of the first route information is the second attribute, the route storage server revokes the first route information in the route storage server according to the second attribute.
15. The apparatus according to any of claims 11-14, wherein the predetermined gateway protocol is one of the following gateway protocols:
border gateway protocol BGP;
intermediate system to intermediate system gateway protocol ISIS;
open shortest path first gateway protocol OSPF.
16. A route storage apparatus, applied to a route storage server, the apparatus comprising:
the receiving unit is configured to execute receiving of target routing information sent by network equipment through a preset gateway protocol, wherein the target routing information is obtained by converting stored routing information of multiple gateway protocols by the network equipment;
a storage unit configured to perform storing the target routing information.
17. The apparatus according to claim 16, wherein the receiving unit is configured to specifically perform:
receiving a first route updating message of a preset gateway protocol sent by network equipment, wherein the first route updating message carries target route information.
18. The apparatus of claim 17,
the receiving unit is configured to further perform, after storing the target routing information, receiving a second routing update packet of the preset gateway protocol sent by the network device, where the second routing update packet carries first routing information with a changed routing attribute in the target routing information and the routing attribute after the change of the first routing information;
the storage unit is configured to further perform updating of the first routing information in the routing storage server according to the changed routing attribute of the first routing information.
19. The apparatus of claim 18, wherein the routing attributes comprise a first attribute indicating route addition and a second attribute indicating route withdrawal;
the storage unit is configured to specifically perform:
when the route attribute after the change of the first route information is the first attribute, adding the first route information in the route storage server;
and when the route attribute after the change of the first route information is the second attribute, revoking the first route information in the route storage server.
20. The apparatus according to any of claims 16-19, wherein the predetermined gateway protocol is one of the following gateway protocols:
border gateway protocol BGP;
intermediate system to intermediate system gateway protocol ISIS;
open shortest path first gateway protocol OSPF.
21. A network device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the route storage method of any of claims 1 to 5.
22. A route storage server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the route storage method of any one of claims 6 to 10.
23. A storage medium in which instructions, when executed by a processor of a network device, enable the network device to perform the route storage method of any one of claims 1 to 5.
24. A storage medium having instructions which, when executed by a processor of a route storage server, enable the route storage server to perform the route storage method of any one of claims 6 to 10.
CN201911316859.2A 2019-12-19 2019-12-19 Route storage method, device, equipment and storage medium Active CN111064669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911316859.2A CN111064669B (en) 2019-12-19 2019-12-19 Route storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911316859.2A CN111064669B (en) 2019-12-19 2019-12-19 Route storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111064669A CN111064669A (en) 2020-04-24
CN111064669B true CN111064669B (en) 2022-03-25

Family

ID=70302424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911316859.2A Active CN111064669B (en) 2019-12-19 2019-12-19 Route storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111064669B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184204A (en) * 2020-09-30 2021-01-05 银盛支付服务股份有限公司 Data operation method and system based on data routing rule and database and table division

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373335B2 (en) * 2001-09-27 2008-05-13 Accudata Technologies, Inc. System and method for processing database queries
CN101335697B (en) * 2007-06-25 2012-04-04 华为技术有限公司 Route information publishing method, data packet routing implementing method, system and apparatus
CN103138987A (en) * 2013-02-04 2013-06-05 迈普通信技术股份有限公司 Method and device of route management
CN103688510B (en) * 2013-09-13 2016-05-25 华为技术有限公司 Outgoing telecommunication method and device
CN104168154B (en) * 2014-07-31 2018-01-02 中国人民解放军91655部队 The multi-level network system and its construction method of network-oriented Situation Awareness
CN108924011A (en) * 2018-08-14 2018-11-30 赛尔网络有限公司 Monitoring system, relevant device, method and medium for OSPF+ Routing Protocol

Also Published As

Publication number Publication date
CN111064669A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
US11057853B2 (en) Methods and apparatus for indicating and determining synchronization block, and base station and user equipment
CN108064466B (en) Period information indication method of public control resource set of residual key system information
US20200366560A1 (en) Method and apparatus for configuring information, method and apparatus for determining time-frequency position, and base station
WO2019084879A1 (en) Method and device for searching for common resource set of remaining mission-critical system information
CN109451847B (en) Paging message receiving method and device and paging configuration method and device
JP2016535523A (en) Network connection method, apparatus, program, and recording medium
CN108476421B (en) Transmission configuration method and device
US11457437B2 (en) Method and apparatus for configuring information, base station and user equipment
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN109075856B (en) Flight path configuration method and device
WO2021081796A1 (en) Paging signaling receiving method and apparatus, and paging signaling transmitting method and apparatus
WO2018120186A1 (en) Method, apparatus, and system for acquiring system information
JP2023532565A (en) Cell determination method and cell determination device
CN106792966B (en) Communication method and device
CN109565650B (en) Method and device for broadcasting and receiving configuration information of synchronous signal block
US10798772B2 (en) Method, device and medium for establishing service connection
CN111064669B (en) Route storage method, device, equipment and storage medium
CN109451799B (en) Time domain information indication method of public control resource set of residual key system information
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN109155668B (en) Flight path configuration method and device
CN113163467B (en) Node hop count updating method, device, terminal and storage medium in Mesh network
US20220295461A1 (en) Downlink control channel receiving and transmitting method and device
WO2019227442A1 (en) Synchronization broadcast block configuration and parsing methods and devices, base station and user equipment
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN106161808B (en) Method and device for updating information of telephone number, terminal equipment and server

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