CN112953740A - Method and device for monitoring routing information - Google Patents
Method and device for monitoring routing information Download PDFInfo
- Publication number
- CN112953740A CN112953740A CN201911255643.XA CN201911255643A CN112953740A CN 112953740 A CN112953740 A CN 112953740A CN 201911255643 A CN201911255643 A CN 201911255643A CN 112953740 A CN112953740 A CN 112953740A
- Authority
- CN
- China
- Prior art keywords
- routing
- information
- route
- data network
- change information
- 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
- 238000012544 monitoring process Methods 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000008859 change Effects 0.000 claims abstract description 81
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 28
- 238000012545 processing Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000012216 screening Methods 0.000 description 6
- 241000721662 Juniperus Species 0.000 description 5
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000002354 daily effect Effects 0.000 description 3
- 230000003203 everyday effect Effects 0.000 description 3
- 101100136092 Drosophila melanogaster peng gene Proteins 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003370 grooming effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- 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/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for monitoring routing information, wherein the method comprises the following steps: periodically collecting routing information of each routing device in the data network, and storing the routing information as a corresponding routing snapshot file; comparing next-hop network addresses corresponding to the same target network segment according to the route snapshot files of two adjacent periods; determining the route change information of each routing device in the data network according to the comparison result; and outputting the route change information of each routing device in the data network. The invention monitors the route change information of each routing device in the data network based on the route information snapshot file which is periodically collected and stored, and does not need to arrange a route receiving device which specially collects the route information, thereby greatly reducing the equipment investment cost.
Description
Technical Field
The present invention relates to the field of data networks, and in particular, to a method and an apparatus for monitoring routing information.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In a data network, a routing device is used to connect two or more network hardware devices, and can analyze a destination IP address contained in a data packet, look up a routing table, and forward the data packet to the destination IP address in an optimal path. The reliability of which directly affects the data transmission of the data network.
At present, data network faults caused by abnormal routing happen occasionally, and once the faults happen, the influence surface is large. In the traditional route monitoring, route receiving equipment needs to be deployed and is realized by a way of making a neighbor receiving route (BGP) with a route transmitter (RR) or adding an intra-subnet receiving route (IGP), and the route monitoring mode causes higher equipment investment cost.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method for monitoring route information, which is used for solving the technical problem of higher equipment investment cost caused by the fact that route receiving equipment needs to be deployed to receive the route information in the existing route monitoring scheme, and comprises the following steps: periodically collecting routing information of each routing device in the data network, and storing the routing information as a corresponding routing snapshot file; comparing next-hop network addresses corresponding to the same target network segment according to the route snapshot files of two adjacent periods; determining the route change information of each routing device in the data network according to the comparison result; and outputting the route change information of each routing device in the data network.
An embodiment of the present invention further provides a device for monitoring routing information, so as to solve a technical problem that an input cost of a device is relatively high due to a need to deploy a route receiving device to receive the routing information in an existing route monitoring scheme, where the device includes: the route snapshot acquisition module is used for periodically acquiring the route information of each route device in the data network and storing the route information as a corresponding route snapshot file; the routing information comparison module is used for comparing next hop network addresses corresponding to the same target network segment according to the routing snapshot files of two adjacent periods; the routing change information determining module is used for determining routing change information of each routing device in the data network according to the comparison result; and the route change information output module is used for outputting the route change information of each routing device in the data network.
The embodiment of the present invention further provides a computer device, which is used to solve the technical problem that in the existing route monitoring scheme, a route receiving device needs to be deployed to receive route information, so that the equipment investment cost is relatively high.
An embodiment of the present invention further provides a computer-readable storage medium, which is used to solve the technical problem that in an existing route monitoring scheme, a route receiving device needs to be deployed to receive route information, so that the device investment cost is relatively high.
In the embodiment of the invention, the routing information of each routing device in the data network is periodically acquired and stored as the corresponding routing snapshot file, so that the next hop network address corresponding to the same target network segment can be compared according to the routing snapshot files of two adjacent periods, the routing change information of each routing device in the data network is determined according to the comparison result, and finally the routing change information of each routing device in the data network is output.
According to the embodiment of the invention, the route change information of each routing device in the data network is monitored based on the route information snapshot file which is periodically collected and stored, and a route receiving device which is specially used for collecting the route information is not required to be deployed, so that the equipment investment cost can be greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart of a method for monitoring routing information according to an embodiment of the present invention;
fig. 2 is a vrf message diagram of a cisco 76 series device provided in an embodiment of the present invention;
fig. 3 is a schematic diagram of routing table information of cisco 76-series devices provided in an embodiment of the present invention;
fig. 4 is a schematic diagram of routing information with a reduced number of next hop addresses of a same destination network segment of cisco 76-series devices according to an embodiment of the present invention;
fig. 5 is a schematic diagram of routing information of a cisco 76-series device in which a next hop address of a same destination network segment changes according to an embodiment of the present invention;
fig. 6 is a schematic diagram of routing information of cisco 76-series devices with destination network segment loss according to an embodiment of the present invention;
fig. 7 is a schematic diagram of vpn example information of hua is NE series devices provided in the embodiment of the present invention;
fig. 8 is a schematic diagram of routing table information of a device hua is an NE series provided in the embodiment of the present invention;
fig. 9 is a schematic diagram of routing information with a reduced number of next hop addresses of a same destination network segment for NE series devices according to an embodiment of the present invention;
fig. 10 is a schematic diagram of routing information showing that next hop addresses of NE series devices in the same destination network segment are changed according to the embodiment of the present invention;
fig. 11 is a schematic diagram of routing information that is used for generating a destination network segment loss in NE series devices according to an embodiment of the present invention;
fig. 12 is a schematic view of vrf information of an ericsson SE series device provided in an embodiment of the present invention;
fig. 13 is a schematic diagram of context information of an ericsson SE series device provided in the embodiment of the present invention;
fig. 14 is a schematic diagram of routing table information of an ericsson SE series device provided in the embodiment of the present invention;
fig. 15 is a schematic diagram of routing information of an ericsson SE series device according to an embodiment of the present invention, where a next hop address of the same destination network segment changes;
fig. 16 is a schematic diagram of routing information of an ericsson SE series device in which a destination network segment is lost in an embodiment of the present invention;
fig. 17 is a schematic diagram of a routing change information query page provided in an embodiment of the present invention;
fig. 18 is a schematic view of an instant route acquisition comparison operation page provided in an embodiment of the present invention;
fig. 19 is a schematic diagram of a display page of an instant routing acquisition comparison result according to an embodiment of the present invention;
fig. 20 is a schematic diagram of a monitoring apparatus for routing information according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
An embodiment of the present invention provides a method for monitoring routing information, and fig. 1 is a flowchart of a method for monitoring routing information provided in an embodiment of the present invention, and as shown in fig. 1, the method may include the following steps:
s101, route information of each routing device in the data network is periodically collected and stored as a corresponding route snapshot file.
It should be noted that the data network in the embodiment of the present invention may be, but is not limited to, a core network, a bearer network, and the like.
Optionally, the embodiment of the present invention may log in each routing device in the data network periodically in a manner of a command line, collect routing information of each routing device, and store the routing information as a corresponding routing snapshot file.
And S102, comparing the next hop network addresses corresponding to the same target network segment according to the route snapshot files of two adjacent periods.
Since the routing information includes the destination IP address, when comparing the two-cycle route snapshot files, it is only necessary to compare whether the next-hop network address (i.e., the next-hop IP address) corresponding to the same destination network segment changes.
S103, determining the route change information of each routing device in the data network according to the comparison result.
In an optional implementation manner, in the above S103, new, reduced, or modified route change information in the data network may be determined according to a comparison result of the route information of all the routing devices in two adjacent cycles.
In another alternative embodiment, in the above S103, the route change information of the single routing device may be determined according to a comparison result of the route information of the single routing device in two adjacent cycles.
And S104, outputting the route change information of each routing device in the data network.
It should be noted that, for different requirements of a scenario, the route change information of each routing device in the data network may be output in multiple ways, for example, the route change information may be the total route change information of the data network, or the route change information of a single routing device in the data network.
As an alternative implementation, the S104 may include the following steps: receiving a route query instruction, wherein the route query instruction is used for specifying any one of the following query conditions: data network information, routing equipment information, routing change types and comparison time; and outputting the route change information of each routing device in the data network according to the route query instruction.
As can be seen from the above, the method for monitoring routing information provided in the embodiment of the present invention can compare the next-hop network addresses corresponding to the same destination network segment according to the routing snapshot files in two adjacent periods by periodically acquiring the routing information of each routing device in the data network and storing the routing information as the corresponding routing snapshot file, so as to determine the routing change information of each routing device in the data network according to the comparison result, and finally output the routing change information of each routing device in the data network.
The method for monitoring the routing information provided by the embodiment of the invention monitors the routing change information of each routing device in the data network based on the routing information snapshot file which is periodically acquired and stored, does not need to deploy the routing receiving device which specially acquires the routing information, and can greatly reduce the equipment investment cost.
In an optional embodiment, the method for monitoring routing information provided in the embodiment of the present invention may further include the following steps: collecting the routing information of each routing device at the current moment, and storing the routing information as a corresponding routing snapshot file; obtaining a route snapshot file of each routing device at the same historical time; comparing a target network segment and a next hop network address corresponding to each routing device at two moments according to the routing snapshot file of each routing device at the current moment and the same historical moment; determining real-time routing change information of each routing device in the data network according to the comparison result; and outputting the real-time route change information of each routing device in the data network. By the embodiment, the routing information of each routing device in the data network is monitored in real time.
The following describes embodiments of the present invention in detail by taking a core network and a bearer network as examples.
Because many routing devices are in the data network, in the specific implementation process, for a core network (CMNET) and a bearer network, the concerned routing information can be combed by taking a service as a unit, the concerned routing information is periodically collected (for example, by taking one hour as a unit), and is stored in a storage as a routing snapshot, the latest routing snapshot is compared with the routing snapshot collected and stored in the previous storage, whether a new, reduced or changed routing device exists or not is judged, and the related information of the specific new, reduced or changed routing device can be output. Optionally, manual intervention may be supported for the key monitoring routes, requiring manual confirmation of the process and recording of the corresponding process personnel.
Traffic routing and grooming logic:
(1) a core network:
BR router (core router) collection logic: after the whole network routes are collected, the east cyber-letter game routes, the Peng doctor game routes and the group routes are eliminated.
A. The collection commands are as follows:
collecting all routes:
juniper:show route table inet.0;
hua is & Hua III:
display ip routing;
routes to be excluded:
# east netletter game routing
juniper:show route community 64510:56040table inet.0;
The method comprises the following steps: display by gp routing-table community 64510: 56040;
# Peng doctor Game routing
juniper:show route community 65050:56040table inet.0;
The method comprises the following steps: display by gp routing-table community 65050: 56040;
# group routing
juniper:show route aspath-regex".*9808.*"table inet.0;
The method comprises the following steps: display by gp routing-table | include 9808.
B. An example of routing is as follows:
in the above example, the bold part is the destination route, and the underlined part is the next hop address.
And (3) excluding the route:
in the above example, the bold part is the route to be excluded.
Collecting logic by the CR router (the export router of the city): and directly collecting the full routes of the equipment without removing and collecting the routes, wherein the next hop is used as the attribute of the routes.
A. The collection commands are as follows:
collecting all routes
juniper:show route table inet.0
Hua is & Hua III:
display ip routing。
B. an example of routing is as follows:
the method comprises the following steps:
in the above example, the bold part is the destination route, and the underlined part is the next hop address.
(II) carrying net:
76 series equipment
A. View vrf example:
and (3) operating commands: show ip vrf;
and (4) checking standard: executing a command "show ip vrf" to obtain all vrf information of the device, as shown in fig. 2, vrf information includes Name, Default RD, and Interfaces, and only needs to pay attention to the Name, which includes all vrf instance names of the device.
B. Acquiring and storing the routing table information of the VPN:
and (3) operating commands: show ip route vrf China Mobile _ GD _ Gb;
and (4) checking standard: after the Name vrf is obtained, the route information can be obtained by inputting "show ip route vrf + Name". As shown in fig. 3, after the command "show ip route vrf china mobile _ GD _ Gb" is executed, the routing table information of the VPN with china mobile _ GD _ Gb is obtained, and then the obtained VPN routing table is stored.
C. Collecting and storing a routing table of a public network:
Show ip route。
D. the routing table for each vrf instance is collected and stored.
E. Comparing the vrf routing table stored every day with the public network IP routing table to obtain the difference.
The comparison is made by daily stored routes, such as yesterday's route table versus today's route table. During comparison, only the information of the target network segment and the next IP address in the routing table needs to be compared in a difference mode.
The first difference case: the route changes.
The next hop IP address of the segment of the routing table of today (IP after via field) is compared to the next hop IP address of the segment of the routing table of yesterday, and if the next hop egress is changed (e.g. the number of next hop addresses of the same destination segment is reduced or changed), the routing is considered changed. FIG. 4 illustrates routing information for a reduced number of next hop addresses for the same destination network segment; fig. 5 shows routing information for a change in the next hop address of the same destination network segment.
The second difference case: the route is lost.
And comparing the network segment of the today routing table with the network segment of the yesterday routing table, finding that the today destination network segment is lost, and considering that the route is changed at the moment. Fig. 6 shows the missing routing information of the destination network segment.
A. Viewing a device VPN instance;
and (3) operating commands: display ip vpn-instance;
and (4) checking standard: an execution command "display ip VPN-Instance" acquires all VPN Instance information of the device, as shown in fig. 7, the VPN Instance information includes VPN-Instance Name, RD, Address-family, and only needs to pay attention to the "VPN-Instance Name", and the VPN-Instance Name includes all VPN Instance names of the device.
B. Acquiring and storing routing table information of the VPN;
and (3) operating commands: display ip routing-table vpn-instance China Mobile _ GD _ Gb;
and (4) checking standard: after the vpn Name is obtained, a command display ip routing-table vpn-instance + Name is executed, and routing information is obtained. As shown in fig. 8, when the command "display ip routing-table VPN-instance chinese mobile _ GD _ Gb" is executed, the user can obtain the routing table information of the chinese mobile _ GD _ Gb VPN.
C. Collecting and storing a public network IP routing table:
Display ip routing-table。
D. collecting and storing the routing table of each VPN example;
E. and comparing the VPN routing tables stored every day to obtain the routing difference.
The comparison is made by daily stored routes, such as yesterday's route table versus today's route table. When comparing, only the information of Destination/Mask (for example, 10.126.3.0/26) and NextHop (i.e. the next hop address information) in the routing table needs to be compared.
The first difference case: the route changes.
The next IP address of the segment of the routing table today is compared with the next IP address of the segment of the routing table yesterday. That is, NextHop for today's routing table Destination/Mask is compared to NextHop for yesterday routing table Destination/Mask, and if there is a change in NextHop (the number of Nexthop addresses to the same Destination segment is reduced or changed), then the route is considered changed. FIG. 9 illustrates a situation where the number of next hop addresses for the same destination network segment is reduced; fig. 10 shows a schematic diagram of routing information with changed next hop addresses of the same destination network segment.
The second difference case: the route is lost.
Comparing the today routing table Destination/Mask with the yesterday routing table Destination/Mask, finding that the today Destination/Mask segment is missing, and considering that the route is changed at the moment. Fig. 11 shows the situation where the destination network segment is missing.
Irish SE series equipment:
A. view vrf example
And (3) operating commands: show context all;
and (4) checking standard: executing the command "show context all" to obtain all the context information of the device, as shown in fig. 12, the context information includes a context name, a context ID, and a VPN-Rd, and only the context name needs to be concerned, and the context name includes all the context names of the device.
B. Entering context corresponding to the VPN:
and (3) operating commands: context China Mobile _ IUPS _ Media;
and (4) checking standard: and after the Context Name is obtained according to the first step, inputting 'Context + Context Name' to enter the corresponding Context. As shown in fig. 13, the "context chinese _ IUPS _ Media" is executed, and the party can enter the context of chinese _ IUPS _ Media.
C. Obtaining routing table information:
and (3) operating commands: show ip route;
and (4) checking standard: after executing the "show ip route", the routing table is as shown in fig. 14, and the ericsson SE800 routing table includes a routing Type, a Network, a Next Hop, a Dist, a Metric, an Uptime, and an Interface, and then we need to store the whole routing table information at this time.
D. And collecting and storing the routing table of each context.
E. The difference is obtained by comparing the context routing table stored every day.
The comparison is made by daily stored routes, such as yesterday's route table versus today's route table. During comparison, only the difference comparison of the Network information and the Next Hop information in the routing table is needed.
The first difference case: route change
Next Hop of today's routing table network is compared with Next Hop of yesterday's routing table network, and if the Next Hop address changes, the route is considered to have changed. Fig. 15 shows a situation where the next hop address of the same destination network segment changes.
The second difference case: route loss
Comparing the network segment under the yesterday routing table network with the network segment of the network today, finding that the network segment of the network today is lost, and considering that the route is changed at the moment. Fig. 16 shows the case where the destination network segment is missing.
Tables 1 to 3 show the structure of the relevant tables, and table 1 shows the device full routing table (DevRouteInfo table); table 2 shows a device route change table (DevRouteChangeH table) at hour granularity; table 3 shows an immediate acquisition device route change table (DevRouteChangeIM table).
Table 1 device full routing table (DevRouteInfo table)
TABLE 2 hours granularity Equipment routing Change Table (DevRouteChangeH Table)
For the route snapshot comparison of hour granularity, the collection processing logic is as follows:
for example, route collection is performed once for a device (bearer network, CMNET) at an interval of one hour (time point is normalized to hour) (because the route collection command is single but output time is long, concurrent execution can be considered, and the number of concurrent execution is according to actual conditions), and route comparison is performed by taking a single unit as a unit (following a previous hour result, the previous hour result is obtained from a DevRouteInfo table, and a corresponding device value of the previous day is obtained), and if the comparison result is found to be increased or decreased, data is inserted into the DevRouteChangeH table (state 1). And finally updates the DevRouteInfo table into the current result (acquisition time is normalized to the current hour).
Special case processing:
firstly, if the device has no data in the previous hour, the DevRouteInfo is directly updated without comparison.
Supporting multiple executions within one hour, comparing the current hour, and entering data after the data of the current hour are cleared by the DevRouteInfo and the DevRouteChangeH.
③ the full scale table reserves seven days data at most, deletes seven days before DevRouteInfo information, the change table reserves one month data
And fourthly, adding, reducing and modifying the change types. The modification is that the route is not changed but the corresponding next hop is changed (the new and the next hop are reduced).
Judging the professional and city information according to the node where the equipment is located.
Table 3 instant acquisition device route change table (DevRouteChangeIM table)
For the instant route acquisition comparison, the acquisition processing logic is as follows:
acquiring according to needs, receiving the scheduling parameters of the foreground: the time of acquisition (to the nearest second) device ID, the route information from the device instant login device was acquired and compared to this device route information at 22:00 yesterday. The comparison result information is input into a DevRouteChangeIM table, the table has no state, the information of the person is processed, and only the comparison result needs to be fed back. And the acquisition time enters the foreground scheduling time. The collection logic is the same as the demand one. The collected route full result is also put into the DevRouteInfo table.
FIG. 17 shows a schematic diagram of a routing change information query page, the functions including but not limited to:
firstly, realizing the query function of the changed route through condition screening;
secondly, the network element can be manually input and can also support equipment selection, and an equipment selection module is called and equipment is singly selected when the network element is clicked for selection. The manual input supports fuzzy matching;
and thirdly, the pull-down of the route change type supports the addition, reduction and modification of ADD, DEL and MOD values corresponding to the ChangeType of the DevRouteChangeH table. And may provide all types of choices (empty or all types);
professional and city filtering needs to provide screening according to the value actually existing in the DevRouteChangeH table, and no screening is provided if no value exists in the corresponding field in the table;
drop-down processing state provides unprocessed, processed and processed completion for screening, corresponding to 1, 2 and 0 values of DevRouteChangeH table Status;
sixthly, screening the hour according to the comparison time, and giving the time of the current hour of the day by default
Seventh, click and modify editable processing state and remark information in the queried result, if the processing state is modified to be completed, obtain the ID of the current handler and enter the ID into the handler field
Clicking the export execl to export the current queried result.
Fig. 18 is a schematic view of an operation page for collecting and comparing an instant route provided in an embodiment of the present invention, and fig. 19 is a schematic view of a display page of a result of collecting and comparing an instant route provided in an embodiment of the present invention, as shown in fig. 18 and fig. 19, including but not limited to the following functions:
the query function of historical instant acquisition and comparison results can be realized through condition screening
Secondly, the network element can be manually input and can also support equipment selection, and an equipment selection module is called and equipment is singly selected when the network element is clicked for selection. The manual input supports fuzzy matching.
And thirdly, the pull-down of the route change type supports the addition, reduction and modification of ADD, DEL and MOD values corresponding to the ChangeType of the DevRouteChangeIM. And may provide all types of options (empty or all types)
And fourthly, the contrast time is accurate to the day, and the default is the day. And after selection, all the instant acquisition comparison results of the current day are inquired.
And fifthly, clicking the real-time collection and comparison of the route, triggering the real-time route information collection of the equipment by a scheduling background program, wherein the parameter is the equipment id at the current time (accurate to second).
And sixthly, the page waits for the background to acquire the comparison result, if the comparison result fails, the acquisition failure is returned, and the entry and exit of the background stdout are captured and presented as failure reasons. If the comparison is successful, obtaining a comparison result from the DevRouteChangeIM table according to the acquisition time and presenting the comparison result.
And seventhly, clicking export execl can export the current query result.
The embodiment of the invention saves the route snapshot at regular time by taking the equipment as a unit, compares the routes, increases and reduces the routes, generates the change history when the routes are changed, presents the change history on the page according to the time granularity or the dimension of the equipment and the like, saves the route snapshot actively initiated by the page, compares the route snapshot with the snapshot of the previous day, and feeds back the comparison condition in the form of the page. Therefore, the embodiment of the invention periodically checks the route change condition in a simple mode without deploying route receiving equipment, and can greatly reduce the equipment investment cost. A manually-mediated approach is provided for points at risk of changing routes to prevent route anomalies and hence failures.
It should be noted that, the routing devices in the embodiment of the present invention include, but are not limited to, a BR (provincial core router), a CR (city outlet router), and a bearer network CE (service router), and the embodiment of the present invention can perform full-scale collection on all routes of all routing devices in a network, including BGP, IGP, static state, and the like, so as to perform differentiation comparison in a week period.
Based on the same inventive concept, the embodiment of the present invention further provides a device for monitoring routing information, as described in the following embodiments. Because the principle of solving the problem of the embodiment of the device is similar to the monitoring method of the routing information, the implementation of the embodiment of the device can refer to the implementation of the method, and repeated parts are not described again.
Fig. 20 is a schematic diagram of a monitoring apparatus for routing information provided in an embodiment of the present invention, and as shown in fig. 20, the apparatus may include: the system comprises a route snapshot acquisition module 201, a route information comparison module 202, a route change information determination module 203 and a route change information output module 204.
The route snapshot acquiring module 201 is configured to periodically acquire route information of each routing device in the data network, and store the route information as a corresponding route snapshot file; the routing information comparison module 202 is configured to compare next-hop network addresses corresponding to the same destination network segment according to the routing snapshot files in two adjacent periods; a routing change information determining module 203, configured to determine routing change information of each routing device in the data network according to the comparison result; and a route change information output module 204, configured to output route change information of each routing device in the data network.
As can be seen from the above, the monitoring apparatus for routing information provided in the embodiment of the present invention periodically collects, through the routing information collection module 201, routing information of each routing device in the data network, and stores the routing information as a corresponding routing snapshot file; comparing next hop network addresses corresponding to the same target network segment according to the route snapshot files of two adjacent periods through a route information comparison module 202; and determining the routing change information of each routing device in the data network according to the comparison result by the routing change information determining module 203, and finally outputting the routing change information of each routing device in the data network by the routing change information output module 204.
The route information monitoring device provided by the embodiment of the invention monitors the route change information of each route device in the data network based on the route information snapshot file which is periodically acquired and stored, and does not need to arrange a route receiving device which specially acquires the route information, thereby greatly reducing the equipment investment cost.
In an optional embodiment, in the monitoring apparatus for routing information provided in the embodiment of the present invention, the routing information collecting module 201 may be configured to log in each routing device in the data network periodically in a command line manner, collect routing information of each routing device, and store the routing information as a corresponding routing snapshot file.
In an optional embodiment, in the monitoring apparatus for routing information provided in the embodiment of the present invention, the routing change information determining module 203 may be configured to determine, according to comparison results of routing information of all routing devices in two adjacent cycles, new, reduced, or modified routing change information in a data network.
In an optional embodiment, in the monitoring apparatus for routing information provided in the embodiment of the present invention, the routing change information determining module 203 may be configured to determine the routing change information of a single routing device according to a comparison result of routing information of the single routing device in two adjacent cycles.
In an optional embodiment, in the monitoring apparatus for routing information provided in the embodiment of the present invention, the routing snapshot collecting module 201 is further configured to collect routing information of each routing device at the current time, and store the routing information as a corresponding routing snapshot file; the routing information comparison module 202 is further configured to obtain a routing snapshot file of each routing device at the same historical time, and compare a destination network segment and a next hop network address corresponding to each routing device at two times according to the current time and the routing snapshot file of each routing device at the same historical time; the routing change information determining module 203 is further configured to determine real-time routing change information of each routing device in the data network according to the comparison result; the route change information output module 204 is further configured to output real-time route change information of each routing device in the data network.
In an optional embodiment, in the routing information monitoring apparatus provided in the embodiment of the present invention, the routing change information output module is further configured to receive a routing query instruction, and output routing change information of each routing device in the data network according to the routing query instruction, where the routing query instruction is used to specify any one of the following query conditions: data network information, routing equipment information, routing change types and comparison time.
In the monitoring apparatus for routing information provided in the embodiment of the present invention, the data network may include, but is not limited to, at least one of the following: core network, bearer network.
The embodiment of the invention also provides a computer device, which is used for solving the technical problem that the existing route monitoring scheme needs to deploy route receiving equipment to receive the route information, so that the equipment investment cost is higher.
The embodiment of the present invention further provides a computer-readable storage medium, so as to solve the technical problem that in the existing route monitoring scheme, a route receiving device needs to be deployed to receive route information, so that the device investment cost is relatively high.
In summary, embodiments of the present invention provide a method, an apparatus, a computer device, and a computer-readable storage medium for monitoring routing information, which can achieve the following technical effects: simplifying route snapshot collection: by combing the concerned routes of professional contents, equipment is logged in periodically in a command line mode to collect the equipment routes and stored as a route snapshot, so that the cost is far lower than the cost of independently deploying route receivers in a network; secondly, comparing and analyzing the whole quantity of the route snapshots: aiming at the collected routing information, carrying out full-quantity routing comparison by taking an hour as a period, and analyzing newly increased, reduced and changed conditions of the routing and specific increased, reduced and changed routing; comparing and analyzing the instant route of the single device: and by taking a single device as a dimension, instant routing information acquisition can be triggered on a page, and the acquired routing information is compared with the data of the previous day and the routing change condition of the device is fed back.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for monitoring routing information is characterized by comprising the following steps:
periodically collecting routing information of each routing device in the data network, and storing the routing information as a corresponding routing snapshot file;
comparing next-hop network addresses corresponding to the same target network segment according to the route snapshot files of two adjacent periods;
determining the route change information of each routing device in the data network according to the comparison result;
and outputting the route change information of each routing device in the data network.
2. The method of claim 1, wherein periodically collecting routing information of each routing device in the data network and saving the routing information as a corresponding routing snapshot file comprises:
and periodically logging in each routing device in the data network in a command line mode, collecting routing information of each routing device, and storing the routing information as a corresponding routing snapshot file.
3. The method of claim 1, wherein determining the route change information of each routing device in the data network according to the comparison result comprises:
and determining the routing change information which is added, reduced or modified in the data network according to the comparison results of the routing information of all the routing devices in two adjacent periods.
4. The method of claim 1, wherein determining the route change information of each routing device in the data network according to the comparison result comprises:
and determining the routing change information of the single routing device according to the comparison result of the routing information of the single routing device in two adjacent periods.
5. The method of claim 1, wherein the method further comprises:
collecting the routing information of each routing device at the current moment, and storing the routing information as a corresponding routing snapshot file;
obtaining a route snapshot file of each routing device at the same historical time;
comparing a target network segment and a next hop network address corresponding to each routing device at two moments according to the routing snapshot file of each routing device at the current moment and the same historical moment;
determining real-time routing change information of each routing device in the data network according to the comparison result;
and outputting the real-time route change information of each routing device in the data network.
6. The method of claim 1, wherein outputting route change information for each routing device within the data network comprises:
receiving a route query instruction, wherein the route query instruction is used for specifying any one of the following query conditions: data network information, routing equipment information, routing change types and comparison time;
and outputting the route change information of each routing device in the data network according to the route query instruction.
7. The method of any of claims 1 to 6, wherein the data network comprises at least one of: core network, bearer network.
8. An apparatus for monitoring routing information, comprising:
the route snapshot acquisition module is used for periodically acquiring the route information of each route device in the data network and storing the route information as a corresponding route snapshot file;
the routing information comparison module is used for comparing next hop network addresses corresponding to the same target network segment according to the routing snapshot files of two adjacent periods;
the routing change information determining module is used for determining routing change information of each routing device in the data network according to the comparison result;
and the route change information output module is used for outputting the route change information of each routing device in the data network.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for monitoring routing information according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the monitoring method of routing information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911255643.XA CN112953740B (en) | 2019-12-10 | 2019-12-10 | Method and device for monitoring route information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911255643.XA CN112953740B (en) | 2019-12-10 | 2019-12-10 | Method and device for monitoring route information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112953740A true CN112953740A (en) | 2021-06-11 |
CN112953740B CN112953740B (en) | 2023-11-03 |
Family
ID=76225387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911255643.XA Active CN112953740B (en) | 2019-12-10 | 2019-12-10 | Method and device for monitoring route information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112953740B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114124811A (en) * | 2021-10-21 | 2022-03-01 | 中盈优创资讯科技有限公司 | Real-time monitoring method for route leakage |
CN115426295A (en) * | 2022-03-03 | 2022-12-02 | 北京润通丰华科技有限公司 | Automatic monitoring method for IDC internetwork routing abnormity |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5412654A (en) * | 1994-01-10 | 1995-05-02 | International Business Machines Corporation | Highly dynamic destination-sequenced destination vector routing for mobile computers |
US20010036161A1 (en) * | 2000-04-10 | 2001-11-01 | Thomas Eidenschink | Satellite routing protocol with dynamic IP addressing |
CN1581821A (en) * | 2003-08-15 | 2005-02-16 | 华为技术有限公司 | Key route information monitoring method based on virtual router redundant protocol |
CN101247278A (en) * | 2007-08-06 | 2008-08-20 | 北京高信达网络科技有限公司 | Routing monitoring apparatus |
CN104348672A (en) * | 2013-07-29 | 2015-02-11 | 中国电信股份有限公司 | Large-scale IP network BGP routing entry detection method and device |
-
2019
- 2019-12-10 CN CN201911255643.XA patent/CN112953740B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5412654A (en) * | 1994-01-10 | 1995-05-02 | International Business Machines Corporation | Highly dynamic destination-sequenced destination vector routing for mobile computers |
US20010036161A1 (en) * | 2000-04-10 | 2001-11-01 | Thomas Eidenschink | Satellite routing protocol with dynamic IP addressing |
CN1581821A (en) * | 2003-08-15 | 2005-02-16 | 华为技术有限公司 | Key route information monitoring method based on virtual router redundant protocol |
CN101247278A (en) * | 2007-08-06 | 2008-08-20 | 北京高信达网络科技有限公司 | Routing monitoring apparatus |
CN104348672A (en) * | 2013-07-29 | 2015-02-11 | 中国电信股份有限公司 | Large-scale IP network BGP routing entry detection method and device |
Non-Patent Citations (2)
Title |
---|
唐敏等: "路由监控分析系统的设计和实现", 《计算机科学》 * |
郑萌等: "基于下一跳变化的细粒度路由事件识别方法", 《华中科技大学学报(自然科学版)》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114124811A (en) * | 2021-10-21 | 2022-03-01 | 中盈优创资讯科技有限公司 | Real-time monitoring method for route leakage |
CN115426295A (en) * | 2022-03-03 | 2022-12-02 | 北京润通丰华科技有限公司 | Automatic monitoring method for IDC internetwork routing abnormity |
Also Published As
Publication number | Publication date |
---|---|
CN112953740B (en) | 2023-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11102124B2 (en) | System and method for managing bandwidth usage rates in a packet-switched network | |
EP3905589B1 (en) | Slice resource deployment method and apparatus, and slice manager and computer storage medium | |
JP3737385B2 (en) | Optimization path setting method and network management system using the same | |
CN111541560B (en) | Method and apparatus for partial software defined network switch replacement in IP networks | |
US20040202158A1 (en) | Packet communication network and packet transfer control method | |
CN108259215B (en) | Equipment management method and device | |
EP3477894B1 (en) | Method and device for controlling virtualized broadband remote access server (vbras), and communication system | |
WO2018010555A1 (en) | Northbound interface lte service automatic configuration method, northbound interface apparatus, and storage medium | |
US11736365B2 (en) | System and method for network management automation | |
CN112953740A (en) | Method and device for monitoring routing information | |
Francois et al. | Avoiding disruptions during maintenance operations on BGP sessions | |
CN106383668A (en) | Information storage method, storage management device and client | |
CN116760834A (en) | Load balancing method, system, equipment and storage medium | |
CN114301818A (en) | Service flow detection method, device, system, terminal and storage medium | |
JP4273669B2 (en) | Node information management system and node | |
CN107483238A (en) | A kind of blog management method, cluster management node and system | |
CN111106970A (en) | Data monitoring method and device, electronic equipment and readable storage medium | |
JP2005236881A (en) | Bgp path information management system and program thereof | |
WO2024159954A1 (en) | Uplink port identification method and apparatus, device, medium, and product | |
CN114448868B (en) | Path scheduling method, device and equipment based on segmented routing strategy | |
CN109684058B (en) | Efficient crawler platform capable of being linearly expanded for multiple tenants and using method thereof | |
CN109542482A (en) | A kind of piece of storage service upgrade method, device, equipment and readable storage medium storing program for executing | |
CN112714008B (en) | Network topology analysis method, device and storage medium | |
CN116668296B (en) | Gateway node scheduling method, system, equipment and storage medium | |
CN112751760B (en) | Automatic routing method and system based on two-layer multi-service path |
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 |