CN111193670B - Method for establishing routing table and monitoring on line - Google Patents

Method for establishing routing table and monitoring on line Download PDF

Info

Publication number
CN111193670B
CN111193670B CN201911381104.0A CN201911381104A CN111193670B CN 111193670 B CN111193670 B CN 111193670B CN 201911381104 A CN201911381104 A CN 201911381104A CN 111193670 B CN111193670 B CN 111193670B
Authority
CN
China
Prior art keywords
switch
equipment
line
establishing
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.)
Active
Application number
CN201911381104.0A
Other languages
Chinese (zh)
Other versions
CN111193670A (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.)
Chongqing Qinsong Technology Co ltd
Original Assignee
Chongqing Qinsong 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 Chongqing Qinsong Technology Co ltd filed Critical Chongqing Qinsong Technology Co ltd
Priority to CN201911381104.0A priority Critical patent/CN111193670B/en
Publication of CN111193670A publication Critical patent/CN111193670A/en
Application granted granted Critical
Publication of CN111193670B publication Critical patent/CN111193670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The invention discloses a method for establishing and monitoring a routing table on line, which comprises the following steps; the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table; enumerating the current port, and pushing the ID connected with the opposite switch to the current port; fourthly, the switch enumeration is completed, if the next switch exists, the next switch is enumerated and pushed to the current port; by designing the monitoring system adopted in the process of establishing the routing table, any two devices can access through the maintenance packet, when the devices are on line and off line, the configuration of a new node is dynamically accessed and completed, the information of the devices in the network is deleted for the devices which are accidentally off line, a reset function and an error recovery mechanism are adopted, and when an error occurs at a port of a Switch, a corresponding error recovery mechanism is made according to the type of the error.

Description

Method for establishing routing table and monitoring on line
Technical Field
The invention relates to the technical field of routing tables, in particular to a method for establishing and monitoring a routing table on line.
Background
By routing table is meant a table stored on a router or other internet network device that stores paths to a particular network terminal and, in some cases, metrics associated with those paths. In computer networks, a routing table or routing domain information base (RIB) is a spreadsheet (file) or class database stored in a router or networked computer. The routing table stores the path (and in some cases, the route metric value of the path) that points to a particular network address. The routing table contains topology information of the network periphery. The main goal of routing table establishment is to implement routing protocols and static routing.
In modern router architectures, the routing table is not directly involved in the transmission of packets, but is used to generate a small lookup table containing only the packet transmission priority paths selected by the routing algorithm, which is usually compressed or compiled in advance for optimized hardware storage and lookup. The establishment process of the routing table is also an enumeration process, in the existing enumeration process, any two devices cannot be accessed through a maintenance package, and a monitoring system is not arranged in the establishment process of the routing table, so that the devices cannot be dynamically accessed and complete the configuration of a new node when going on and off, and when going off accidentally, the information of the devices in the network cannot be deleted for the devices which are accidentally going off the line.
Disclosure of Invention
Technical problem to be solved
The invention aims to provide a method for establishing a routing table and monitoring on line, which aims to solve the problems that the existing routing table proposed in the background art does not adopt a monitoring system in the use process, any two devices cannot be accessed through a maintenance packet, cannot be dynamically accessed and complete the configuration of a new node, and cannot delete the information of the devices which are offline unexpectedly in a network when the devices are offline unexpectedly.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme: a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
Preferably, in the first step, during enumeration, online monitoring is started synchronously.
Preferably, in the second step, after the connection is established, any two devices in the network can access through the maintenance package.
Preferably, in the third step, enumerating the next switch is also pushed to the current port.
Preferably, in the fourth step, if there is no next switch, the enumeration process is ended.
Preferably, in the fourth step, if the device is an Endpoint, the device is enumerated, and the target device is added to the routing table information, then enumerated to the next port, and then pushed to the current port.
Preferably, in the fifth step, the online monitoring monitors the device in real time, and deletes the information of the device in the network for the device which is unexpectedly offline.
Preferably, in the sixth step, if the offline device is a switch, the whole network is enumerated again and the network information is updated, and if the offline device is not a switch, the device information is deleted from the routing table and the network information is updated.
Preferably, in the sixth step, if the online device is a switch, the whole network is enumerated again and the network information is updated, and if the online device is not a switch, the device information is added to the routing table and the network information is updated.
Preferably, in the seventh step, each CPU on the interface processing module a1 is directly connected to the OBC.
Advantageous effects
Compared with the prior art, the invention provides a method for establishing and monitoring a routing table on line, which has the following beneficial effects:
by designing the monitoring system adopted in the process of establishing the routing table, any two devices can access through the maintenance packet, when the devices are on line and off line, the configuration of a new node is dynamically accessed and completed, the information of the devices in the network is deleted for the devices which are accidentally off line, a reset function and an error recovery mechanism are adopted, and when an error occurs at a port of a Switch, a corresponding error recovery mechanism is made according to the type of the error.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
The first embodiment is as follows:
a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; when the equipment is enumerated, the online monitoring is started synchronously;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
Example two:
a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; when the equipment is enumerated, the online monitoring is started synchronously;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table; after the connection is established, any two devices in the network can access through the maintenance package;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
Example three:
a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; when the equipment is enumerated, the online monitoring is started synchronously;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table; after the connection is established, any two devices in the network can access through the maintenance package;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port; enumerating the next switch and pushing the next switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
Example four:
a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; when the equipment is enumerated, the online monitoring is started synchronously;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table; after the connection is established, any two devices in the network can access through the maintenance package;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port; enumerating the next switch and pushing the next switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated; if the next switch does not exist, the enumeration process is ended, if the device is an Endpoint, the device is enumerated, the target device is added into the routing table information, then the next port is enumerated, and then the next port is pushed to the current port;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
Example five:
a routing table establishment and online monitoring method comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out; when the equipment is enumerated, the online monitoring is started synchronously;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table; after the connection is established, any two devices in the network can access through the maintenance package;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port; enumerating the next switch and pushing the next switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated; if the next switch does not exist, the enumeration process is ended, if the device is an Endpoint, the device is enumerated, the target device is added into the routing table information, then the next port is enumerated, and then the next port is pushed to the current port;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states; the online monitoring carries out real-time monitoring on the equipment, and deletes the information of the equipment in the network for the equipment which is accidentally off-line;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch; if the offline device is a switch, re-enumerating the whole network and updating the network information, if the offline device is not the switch, deleting the device information in the routing table and updating the network information, in the sixth step, if the online device is the switch, re-enumerating the whole network and updating the network information, and if the online device is not the switch, adding the device information into the routing table and updating the network information;
seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPU can immediately process the interrupt, the SRIO port of the CPU is reset, the OBC resets a switching chip, and each CPU on the interface processing module A1 is directly connected with the OBC.
By designing the monitoring system adopted in the process of establishing the routing table, any two devices can access through the maintenance packet, when the devices are on line and off line, the configuration of a new node is dynamically accessed and completed, the information of the devices in the network is deleted for the devices which are accidentally off line, a reset function and an error recovery mechanism are adopted, and when an error occurs at a port of a Switch, a corresponding error recovery mechanism is made according to the type of the error.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A method for establishing a routing table and monitoring online is characterized in that: comprises the following steps;
the method comprises the following steps that firstly, enumeration is initiated, ID scanning is carried out through equipment, and enumeration is carried out;
secondly, establishing connection, namely establishing connection between the ID scanned by the equipment and the opposite switch, and adding the Host to a routing table;
enumerating the current port, and pushing the ID connected with the opposite switch to the current port;
fourthly, the enumeration of the switch is completed, if the next switch exists, the next switch is enumerated and pushed to the current port, and if the enumeration of the switch is not completed, the type of the equipment is judged, the equipment is added into a routing table, and the next port is enumerated;
fifthly, starting on-line monitoring, polling according to ports and acquiring port states;
sixthly, judging whether equipment is off-line or not, if so, acquiring off-line equipment information and judging whether the off-line equipment information is a switch, and if not, acquiring on-line equipment information and judging whether the on-line equipment information is a switch;
and seventhly, a reset function is realized, when any one CPU calls a reset interface, the OBC can generate an interrupt signal to other CPUs, the CPUs can immediately process the interrupt, the SRIO port of the CPU is reset, and the OBC resets the switching chip.
2. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the first step, during enumeration, online monitoring is started synchronously.
3. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the second step, after the connection is established, any two devices in the network can access through the maintenance package.
4. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the third step, enumerating the next switch and pushing the next switch to the current port.
5. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the fourth step, if there is no next switch, the enumeration process is ended.
6. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the fourth step, if the device is an Endpoint, the device is enumerated, the target device is added to the routing table information, then enumerated to the next port, and then pushed to the current port.
7. The method for establishing and online monitoring of routing tables according to claim 1, wherein: and in the fifth step, the online monitoring carries out real-time monitoring on the equipment, and deletes the information of the equipment in the network for the equipment which is unexpectedly offline.
8. The method for establishing and online monitoring of routing tables according to claim 1, wherein: and in the sixth step, if the offline device is a switch, enumerating the whole network again and updating the network information, and if the offline device is not the switch, deleting the device information in the routing table and updating the network information.
9. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the sixth step, if the on-line device is a switch, the whole network is enumerated again and the network information is updated, and if the on-line device is not a switch, the device information is added into the routing table and the network information is updated.
10. The method for establishing and online monitoring of routing tables according to claim 1, wherein: in the seventh step, each CPU on the interface processing module a1 is directly connected to the OBC.
CN201911381104.0A 2019-12-27 2019-12-27 Method for establishing routing table and monitoring on line Active CN111193670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911381104.0A CN111193670B (en) 2019-12-27 2019-12-27 Method for establishing routing table and monitoring on line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911381104.0A CN111193670B (en) 2019-12-27 2019-12-27 Method for establishing routing table and monitoring on line

Publications (2)

Publication Number Publication Date
CN111193670A CN111193670A (en) 2020-05-22
CN111193670B true CN111193670B (en) 2021-10-29

Family

ID=70710484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911381104.0A Active CN111193670B (en) 2019-12-27 2019-12-27 Method for establishing routing table and monitoring on line

Country Status (1)

Country Link
CN (1) CN111193670B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087348A (en) * 2020-09-09 2020-12-15 中国航空工业集团公司雷华电子技术研究所 Digital processor enumeration method and state monitoring method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487208B1 (en) * 1999-09-09 2002-11-26 International Business Machines Corporation On-line switch diagnostics
CN103346982A (en) * 2013-07-12 2013-10-09 中国人民解放军总参谋部第六十三研究所 Star-shaped structure Rapid IO interconnecting system and exchanger configuration method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7680096B2 (en) * 2005-10-28 2010-03-16 Qnx Software Systems Gmbh & Co. Kg System for configuring switches in a network
US9479434B2 (en) * 2013-07-19 2016-10-25 Fabric Embedded Tools Corporation Virtual destination identification for rapidio network elements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487208B1 (en) * 1999-09-09 2002-11-26 International Business Machines Corporation On-line switch diagnostics
CN103346982A (en) * 2013-07-12 2013-10-09 中国人民解放军总参谋部第六十三研究所 Star-shaped structure Rapid IO interconnecting system and exchanger configuration method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于RapidIo高速信号处理系统的网络枚举技术;石炜等;《电子设计工程》;20130220(第04期);全文 *

Also Published As

Publication number Publication date
CN111193670A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN109905251B (en) Network management method, device, electronic equipment and storage medium
CN101640610B (en) Method and system for automatic discovery of Ethernet link
CN105704045B (en) The method of virtual machine location information synchronizing, gateway and system between data center's gateway
JPH10283236A (en) Method for inquiry as to copy data base and network utilizing this method
US6785735B2 (en) Determining a path through a managed network
US20070203909A1 (en) Methods, systems, and computer program products for indexing, validating, recovering, and consolidating a database indexed by range-bound numeric data
CN108965137B (en) Message processing method and device
WO2007092205A2 (en) Methods, systems, and computer program products for indexing, validating, recovering and consolidating a database indexed by range-bound numeric data
CN109194585B (en) Message forwarding method and network equipment
GB2527273A (en) Executing loops
US20130080629A1 (en) Method and apparatus for detecting devices on a local area network
CN111193670B (en) Method for establishing routing table and monitoring on line
US20030145069A1 (en) Virtual network configuration verification
CN102638627A (en) Default gateway, terminal equipment and networking protocol speech signaling switching method
EP1222724A1 (en) Identyfying a failed device in a network
US20030084187A1 (en) Prefix aggregation algorithm for routing coordination protocol in a loosely coupled massively parallel router
CN101102231B (en) An automatic discovery method and device of PPP link routing device
CN115720181A (en) Control method and system of bare metal node, electronic device and readable storage medium
CN104113475B (en) The network route implementation method and system of home gateway based on Linux
CN109889619B (en) Abnormal domain name monitoring method and device based on block chain
CN111884954A (en) Switch link selection method, system, terminal and storage medium
CN112637053A (en) Method and device for determining backup forwarding path of route
CN111585951A (en) SDN network host position attack detection method and device and controller
CN111953590B (en) Routing table entry outlet switching method and device, electronic equipment and storage medium
CN117376282B (en) Switch view display method, device and computer readable storage medium

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