CN112532410A - Trap quick response method for large-scale interconnection network - Google Patents
Trap quick response method for large-scale interconnection network Download PDFInfo
- Publication number
- CN112532410A CN112532410A CN201910879822.4A CN201910879822A CN112532410A CN 112532410 A CN112532410 A CN 112532410A CN 201910879822 A CN201910879822 A CN 201910879822A CN 112532410 A CN112532410 A CN 112532410A
- Authority
- CN
- China
- Prior art keywords
- network
- port
- available
- network card
- trap
- 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
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000004044 response Effects 0.000 title claims abstract description 25
- 230000008859 change Effects 0.000 claims abstract description 11
- 230000003213 activating effect Effects 0.000 abstract description 5
- 230000008569 process Effects 0.000 abstract description 5
- 230000001960 triggered effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
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 Trap quick response method for a large-scale interconnection network, which comprises the following steps: the network management receives the Trap message, judges whether the node type connected with the port with the changed state is a network card, if so, executes the next step, otherwise, re-explores the network; judging the change condition of the port, if the port is changed from available to unavailable, maintaining the current state unchanged without responding to the Trap message, and if the port is changed from unavailable to available, continuing to execute the next step; and judging whether the available bit of the port software is available, if so, activating the network card to enable the network card to become available, and otherwise, re-probing the network. The invention optimizes the processing process of the change of the state of the network card port, and starts the exploration network only when the network card port is changed from unavailable to available and the available bit of the software of the switch port connected with the network card port is unavailable, thereby saving unnecessary network exploration time and greatly improving the response speed of network management.
Description
Technical Field
The invention belongs to the technical field of high-speed interconnection networks, and particularly relates to a Trap quick response method for a large-scale interconnection network.
Background
When the link state of the network card port changes, the switch connected with the network card port sends a Trap packet to the network management to report the change condition of the port state. After receiving the Trap packet, if the connection relation is changed due to the change of the port state, the network management triggers topology detection to re-detect the topology structure of the network.
The number of network cards of the super-large scale network is huge, and can reach tens of thousands or even more than one hundred thousand, and the number of ports of the network cards reaches hundreds of thousands. When the network card is restarted and the state of the network card port is changed, the connected switches all send Trap packets to network management, a large number of Trap packets may exist in the system, and the traditional method needs to explore the network again, calculate the route, distribute the route table, activate the network and the like, so that the process is long in time consumption and the response speed of the network management is low.
Disclosure of Invention
The invention aims to provide a Trap quick response method for a large-scale interconnection network, which optimizes the processing process of changing the state of a network card port and greatly improves the response speed of network management.
In order to achieve the purpose, the invention adopts the technical scheme that: a Trap quick response method for a large-scale interconnection network is disclosed, which is based on the judgment of the port state of a network card and the port state of a switch connected with the network card, and is used for making quick response aiming at the Trap message of which the type of a node connected with the port is the network card, and comprises the following steps:
s1, configuring a network management module, for detecting and recording the topological connection relationship in the network, wherein the topological connection relationship includes the connection relationship between nodes, node type and port information;
s2, when the topological connection relation in the network changes, the exchanger actively sends the port information after the exchanger changes to the network management module;
s3, the network management module receives a Trap message containing the port information after the switch is changed from the switch, judges whether the node type connected with the switch port with the changed state is a network card or not by comparing the port information in the Trap message with the port information of the switch recorded before the network management module, if so, executes the next step, otherwise, re-explores the network;
s4, the network management module judges the change condition of the port according to the received Trap message, if the port is changed from available to unavailable, the network management module does not respond to the Trap message, maintains the current state unchanged, sets the state of the port recorded before the network management module as unavailable, and if the port is changed from unavailable to available, continues to execute the next step;
s5, the network management module judges whether the software available bit of the port is available according to the received Trap message, if so, the network management module sends a port enabled management packet to the network card, sets the software available bit register of the network card to be 1, activates the network card to enable the network card to become available, otherwise, the network is probed again.
The technical scheme of further improvement in the technical scheme is as follows:
1. in the above scheme, the modes of probing the network include heavy scanning, half-heavy scanning, and light scanning.
2. In the above scheme, the Trap message includes an ID number of the switch that transmits the Trap message, the number of times of transmission, and port information of the switch.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages:
the invention relates to a Trap quick response method of a large-scale interconnection network, which optimizes the processing process of the change of the state of a network card port, improves the method that the topology exploration is triggered to re-explore the topology structure of the network when the state of the port is changed in the traditional method, and only when the network card port is changed from unavailable to available and the available bit of software of a switch port connected with the network card port is unavailable, the exploration network is required to be started, and when the available bit of the software of the switch port is available, the operation of directly activating the network card is used to enable the port to become available, thereby saving the operations of re-exploring the network, calculating a routing table and the like, avoiding the unnecessary time for exploring the network and greatly improving the response speed of network management.
Drawings
FIG. 1 is a schematic flow chart of a Trap quick response method of a large-scale interconnection network according to the present invention;
FIG. 2 is a flow chart of the method for rapid response of the large-scale interconnection network Trap of the invention.
Detailed Description
The invention is further described below with reference to the following examples:
example (b): a Trap quick response method for a large-scale interconnection network is disclosed, which is based on the judgment of the port state of a network card and the port state of a switch connected with the network card, and is used for making quick response aiming at the Trap message of which the type of a node connected with the port is the network card, and comprises the following steps:
s1, configuring a network management module, for detecting and recording the topological connection relationship in the network, wherein the topological connection relationship includes the connection relationship between nodes, node type and port information;
s2, when the topological connection relation in the network changes, the exchanger actively sends the port information after the exchanger changes to the network management module;
s3, the network management module receives a Trap message containing the port information after the switch is changed from the switch, judges whether the node type connected with the switch port with the changed state is a network card or not by comparing the port information in the Trap message with the port information of the switch recorded before the network management module, if so, executes the next step, otherwise, re-explores the network;
s4, the network management module judges the change condition of the port according to the received Trap message, if the port is changed from available to unavailable, the network management module does not respond to the Trap message, maintains the current state unchanged, sets the state of the port recorded before the network management module as unavailable, and if the port is changed from unavailable to available, continues to execute the next step;
s5, the network management module judges whether the software available bit of the port is available according to the received Trap message, if so, the network management module sends a port enabled management packet to the network card, sets the software available bit register of the network card to be 1, activates the network card to enable the network card to become available, otherwise, the network is probed again.
The above modes of probing the network include heavy scanning, half-heavy scanning, and light scanning.
The Trap message includes a switch ID number for transmitting the Trap message, the number of transmission times, and port information of the switch.
The examples are further explained below:
the invention provides a Trap quick response method of a large-scale interconnection network,
when the network card port is changed from available to unavailable, the Trap packet is not processed in real time; when the network card port is changed from unavailable to available, as long as the software available bit of the switch port connected with the network card port is 1, the routing table of the port is still available, namely the network card port is directly activated to be immediately available without re-probing and writing the routing table, and the response speed of network management is greatly improved.
If the node type connected with the port in the Trap message is a network card, the Trap quick response method can be used; the type of the node connected with the port is a network card, and when the state of the port is changed from non-down to down, the Trap message does not need to be responded; the type of the node connected with the port is a network card, the state of the port is changed from down to non-down, and when the available bit of port software is 1, the network card is directly activated.
The complete Trap quick response implementation method of the invention is shown in figure 1.
Step 1: and the network management receives the Trap message and judges the type of the node connected with the port with the changed state.
Step 2: a heavy scan is triggered if the port is not connected to a network card.
And step 3: if the port is connected with the network card, the change condition of the port is judged.
And 4, step 4: there is no need to respond to the Trap message if the port changes from non-down to down.
And 5: and if the port is changed from down to non-down, judging the software available bit of the port.
Step 6: if the software available bit is not available, a heavy scan is triggered.
And 7: if the software available bit is available, the network card is directly activated and made available.
The invention relates to a Trap quick response method of a large-scale interconnection network, which optimizes the processing process of the change of the state of a network card port, improves the method that the topology exploration is triggered to re-explore the topology structure of the network when the state of the port is changed in the traditional method, and only when the network card port is changed from unavailable to available and the available bit of software of a switch port connected with the network card port is unavailable, the exploration network is required to be started, and when the available bit of the software of the switch port is available, the operation of directly activating the network card is used to enable the port to become available, thereby saving the operations of re-exploring the network, calculating a routing table and the like, avoiding the unnecessary time for exploring the network and greatly improving the response speed of network management.
To facilitate a better understanding of the invention, the terms used herein will be briefly explained as follows:
trap message: when the port state of the switch changes, the switch actively sends a notification message to the network management, wherein the notification message comprises the port number and the port state change condition.
Switch port software available bit: if the available bit is 1, it indicates that the switch has configured the routing table and is available; otherwise, it indicates that the switch is unavailable.
Activating a network card port: activating the network card port indicates that the network card enters a software available state.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and the purpose thereof is to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the protection scope of the present invention. All equivalent changes and modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.
Claims (3)
1. A Trap quick response method of a large-scale interconnection network is characterized in that: based on the judgment of the port state of the network card and the port state of the switch connected with the network card, the method for quickly responding to the trap message of which the node type connected with the port is the network card comprises the following steps:
s1, configuring a network management module, for detecting and recording the topological connection relationship in the network, wherein the topological connection relationship includes the connection relationship between nodes, node type and port information;
s2, when the topological connection relation in the network changes, the exchanger actively sends the port information after the exchanger changes to the network management module;
s3, the network management module receives a Trap message containing the port information after the switch is changed from the switch, judges whether the node type connected with the switch port with the changed state is a network card or not by comparing the port information in the Trap message with the port information of the switch recorded before the network management module, if so, executes the next step, otherwise, re-explores the network;
s4, the network management module judges the change condition of the port according to the received Trap message, if the port is changed from available to unavailable, the network management module does not respond to the Trap message, maintains the current state unchanged, sets the state of the port recorded before the network management module as unavailable, and if the port is changed from unavailable to available, continues to execute the next step;
s5, the network management module judges whether the software available bit of the port is available according to the received Trap message, if so, the network management module sends a port enabled management packet to the network card, sets the software available bit register of the network card to be 1, activates the network card to enable the network card to become available, otherwise, the network is probed again.
2. The large scale interconnect network Trap quick response method according to claim 1, wherein: the modes for probing the network include heavy scanning, half-heavy scanning and light scanning.
3. The large scale interconnect network Trap quick response method according to claim 1, wherein: the Trap message includes the ID number of the switch which sends the Trap message, the sending times and the port information of the switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910879822.4A CN112532410B (en) | 2019-09-18 | 2019-09-18 | Rapid response method for large-scale interconnection network Trap |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910879822.4A CN112532410B (en) | 2019-09-18 | 2019-09-18 | Rapid response method for large-scale interconnection network Trap |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112532410A true CN112532410A (en) | 2021-03-19 |
CN112532410B CN112532410B (en) | 2023-10-31 |
Family
ID=74974980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910879822.4A Active CN112532410B (en) | 2019-09-18 | 2019-09-18 | Rapid response method for large-scale interconnection network Trap |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112532410B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030018780A1 (en) * | 2001-06-26 | 2003-01-23 | Masanori Kawashima | Method and apparatus for managing network devices |
US20030208572A1 (en) * | 2001-08-31 | 2003-11-06 | Shah Rajesh R. | Mechanism for reporting topology changes to clients in a cluster |
US20060253561A1 (en) * | 2003-02-04 | 2006-11-09 | Oyvind Holmeide | Method and apparatus for fast re-configuration of a network topology |
CN1937524A (en) * | 2006-08-25 | 2007-03-28 | 华为技术有限公司 | Method and system for webmaster to processing TRAP message |
CN101060498A (en) * | 2007-06-22 | 2007-10-24 | 杭州华三通信技术有限公司 | A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch |
JP2008141564A (en) * | 2006-12-04 | 2008-06-19 | Oki Electric Ind Co Ltd | Communication system including network monitoring device |
CN101595678A (en) * | 2006-12-20 | 2009-12-02 | 艾利森电话股份有限公司 | Be used to find the method for the physical topology of communication network |
US7675869B1 (en) * | 2004-07-06 | 2010-03-09 | Marvell International Limited | Apparatus and method for master election and topology discovery in an Ethernet network |
CN101785283A (en) * | 2007-06-28 | 2010-07-21 | 空中客车运营公司 | Methods and devices for communicating diagnosis data in a real time communication network |
CN101821990A (en) * | 2007-10-09 | 2010-09-01 | Lm爱立信电话有限公司 | Arrangement and method for handling failures in network |
CN102143007A (en) * | 2011-05-03 | 2011-08-03 | 中国南方电网有限责任公司 | Distribution-based hierarchical network topology discovery method |
CN102195857A (en) * | 2010-03-18 | 2011-09-21 | 武汉迈威光电技术有限公司 | Network topology structure and node information gathering method |
CN108696436A (en) * | 2018-08-15 | 2018-10-23 | 无锡江南计算技术研究所 | A kind of distributed network topology is detected and route distribution system and method |
-
2019
- 2019-09-18 CN CN201910879822.4A patent/CN112532410B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030018780A1 (en) * | 2001-06-26 | 2003-01-23 | Masanori Kawashima | Method and apparatus for managing network devices |
US20030208572A1 (en) * | 2001-08-31 | 2003-11-06 | Shah Rajesh R. | Mechanism for reporting topology changes to clients in a cluster |
US20060253561A1 (en) * | 2003-02-04 | 2006-11-09 | Oyvind Holmeide | Method and apparatus for fast re-configuration of a network topology |
US7675869B1 (en) * | 2004-07-06 | 2010-03-09 | Marvell International Limited | Apparatus and method for master election and topology discovery in an Ethernet network |
CN1937524A (en) * | 2006-08-25 | 2007-03-28 | 华为技术有限公司 | Method and system for webmaster to processing TRAP message |
JP2008141564A (en) * | 2006-12-04 | 2008-06-19 | Oki Electric Ind Co Ltd | Communication system including network monitoring device |
CN101595678A (en) * | 2006-12-20 | 2009-12-02 | 艾利森电话股份有限公司 | Be used to find the method for the physical topology of communication network |
CN101060498A (en) * | 2007-06-22 | 2007-10-24 | 杭州华三通信技术有限公司 | A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch |
CN101785283A (en) * | 2007-06-28 | 2010-07-21 | 空中客车运营公司 | Methods and devices for communicating diagnosis data in a real time communication network |
CN101821990A (en) * | 2007-10-09 | 2010-09-01 | Lm爱立信电话有限公司 | Arrangement and method for handling failures in network |
CN102195857A (en) * | 2010-03-18 | 2011-09-21 | 武汉迈威光电技术有限公司 | Network topology structure and node information gathering method |
CN102143007A (en) * | 2011-05-03 | 2011-08-03 | 中国南方电网有限责任公司 | Distribution-based hierarchical network topology discovery method |
CN108696436A (en) * | 2018-08-15 | 2018-10-23 | 无锡江南计算技术研究所 | A kind of distributed network topology is detected and route distribution system and method |
Non-Patent Citations (4)
Title |
---|
MOHAMMAD SAMIZADEH NIKOO等: "On-Chip High-Voltage Sensors Based on Trap-Assisted 2DEG Channel Control", vol. 40, no. 4, XP011717506, DOI: 10.1109/LED.2019.2898043 * |
刘雪飞;张光磊;王申强;: "网络设备接口工作状态监控的实现", no. 14 * |
柴艳娜;李佳;: "网络拓扑多端扫描机制的研究", 计算机技术 与发展, no. 09 * |
许刚;王展;臧大伟;安学军;: "基于链路状态数据库的数据中心网络异常检测算法", no. 04 * |
Also Published As
Publication number | Publication date |
---|---|
CN112532410B (en) | 2023-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1919138B1 (en) | A method for implementing backup of the uplink | |
CN101282276B (en) | Method and apparatus for protecting Ethernet tree service | |
US8320236B2 (en) | Method for processing ethernet ring message and an ethernet ring protection system using the method | |
CN104243239B (en) | The condition detection method and device of controller in a kind of SDN clusters | |
CN102857377B (en) | The online topological automatic generation method of a kind of train network | |
WO2021056793A1 (en) | Power transmission line distributed fault diagnosis system and method | |
CN107947994B (en) | Network topology self-discovery method and device, network equipment and computer storage medium | |
CN108055156B (en) | AP management method and device | |
US8681604B2 (en) | Address refresh method and system | |
CN109756422B (en) | Forwarding routing node selection method | |
CN103259687A (en) | Air traffic control data access platform in civil aviation | |
CN101227479A (en) | Method and apparatus of topology linkage | |
CN103312579B (en) | Circuit switching method and device | |
CN112532410A (en) | Trap quick response method for large-scale interconnection network | |
CN101102231B (en) | An automatic discovery method and device of PPP link routing device | |
CN101360050A (en) | Method and apparatus setting flow control mode | |
CN107154871B (en) | VOIP business master-slave conversion system and method based on distributed DSP | |
CN112087400B (en) | Network flow mirroring system and method based on EtherCAT slave station chip | |
CN112543142B (en) | Method and device for realizing RSTP ring network protocol based on FPGA | |
EP4148549A1 (en) | Distributed storage system, abnormality processing method therefor, and related device | |
CN112532411B (en) | Semi-severe scanning method for large-scale interconnection network | |
CN112769650A (en) | Multi-VLAN loop detection method and system | |
CN104754762B (en) | Automatically method, controller and the system of controller are found in the customized network of software | |
CN113612636A (en) | Software defined network topology discovery method and system | |
JP2021064843A (en) | Network management device, failure section determination method, and program |
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 |