CN112769653B - Network detection and switching method, system and medium based on network port binding - Google Patents

Network detection and switching method, system and medium based on network port binding Download PDF

Info

Publication number
CN112769653B
CN112769653B CN202110061964.7A CN202110061964A CN112769653B CN 112769653 B CN112769653 B CN 112769653B CN 202110061964 A CN202110061964 A CN 202110061964A CN 112769653 B CN112769653 B CN 112769653B
Authority
CN
China
Prior art keywords
address
host
network
network port
link
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
CN202110061964.7A
Other languages
Chinese (zh)
Other versions
CN112769653A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110061964.7A priority Critical patent/CN112769653B/en
Publication of CN112769653A publication Critical patent/CN112769653A/en
Application granted granted Critical
Publication of CN112769653B publication Critical patent/CN112769653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network detection and switching method based on network port binding, which comprises the following steps: selecting a network port corresponding to any network port address as a main network port; setting a detection item; acquiring a target address and configuration information; the host executes detection action on the target address according to the detection item to obtain a detection result; the host executes a switching action and an alarming action according to the detection result and the configuration information; the invention can detect the link of the upper-layer switch in real time, judge the failed switch and adopt the corresponding network port switching action, thereby realizing the automatic judgment of the network condition and switching the corresponding normal network, improving the use efficiency and reliability of the network and improving the maintainability of the network service.

Description

Network detection and switching method, system and medium based on network port binding
Technical Field
The present invention relates to the field of network configuration technologies, and in particular, to a network detection and switching method, system, and medium based on network port binding.
Background
The network is realized by binding the network ports and the switch links, wherein in the whole deployed network architecture, each link connection exists between upper-layer switches, and the binding between each network port and each switch is under each switch; in the network use process, the method for judging whether the network is normal is to detect whether the network cable/optical fiber/direct connection medium used for binding the network port and the switch has faults or not; the method can only solve the problem of the connection layer, but cannot judge whether the upper layer switch has a fault or not, and cannot switch the binding of the switch and the network port, so that the use efficiency of the network is low, and the network service is interrupted.
Disclosure of Invention
The invention mainly solves the problems of low network use efficiency and network service interruption caused by the fact that network faults cannot be accurately judged.
In order to solve the technical problems, the invention adopts a technical scheme that: the network detection and switching method based on network port binding is applied to a core server and a host connected with the core server, a switch link is configured between the core server and the host, a core switch is configured between the core server and the switch link, a network port is configured between the host and the switch link, the network port, the switch link and the core switch are sequentially connected, the network port is configured with a network port address, the host is configured with a host address, and the network port address is bound to the host address, and the method comprises the following steps:
selecting a network port corresponding to any one network port address as a main network port;
setting a detection item;
acquiring a target address and configuration information;
the host executes a detection action on the target address according to the detection item to obtain a detection result;
the host executes a switching action and an alarming action according to the detection result and the configuration information;
the switching action comprises: the host detects whether the network port connected with the switch link corresponding to the detection result is the main network port, and if so, the host switches the main network port;
the alert action includes: and the host reports the target address and the configuration information corresponding to the detection result.
Further, the step of obtaining the target address and the configuration information further comprises:
acquiring a first address of the core server and a second address of the core switch to which the core server is connected; defining the first address and the second address to be the target address;
acquiring authentication information of the switch in the switch link; the authentication information is matched with the switch link; defining the authentication information as the configuration information.
Further, the detection items include: a first period, a second period, a third period, a detection medium and a medium quantity;
the detection action is as follows:
the host sends the detection media corresponding to the media quantity to the target address every third period; the host counts the feedback condition of the target address to the detection medium every second period; and the host collects the feedback condition every the first period to obtain the detection result.
Further, the feedback condition includes: the first address and the second address both feed back successfully and the first address and the second address both feed back unsuccessfully.
Further, the step of summarizing the feedback situation every other first period to obtain the detection result further comprises:
in the first period, if the feedback condition is that the feedback of both the first address and the second address is successful, the detection result is: the switch link connected with the core switch corresponding to the second address is a normal link;
in the first period, if the feedback condition is that the feedback of both the first address and the second address fails, the detection result is: the switch link connected with the core switch corresponding to the second address is an abnormal link;
in the first period, if the feedback condition is not that both the first address and the second address successfully feed back, and the feedback condition has that both the first address and the second address successfully feed back, the detection result is: the second address corresponds to the switch link to which the core switch is connected being a delay link.
Further, the alert action further comprises a first alert action and a second alert action;
the step of executing the switching action and the warning action according to the detection result and the configuration information further comprises the following steps:
when the detection result is an abnormal link, the host executes the switching action and executes the first alarm action according to the configuration information;
and when the detection result is a delay link, the host executes the second alarm action.
Further, the switching action further comprises: the host detects whether the network port connected with the abnormal link is the main network port, if so, the host closes the abnormal link and sets the network port connected with the normal link as the main network port; the host records the current time point and acquires the network port address corresponding to the network port connected with the abnormal link and the network port address corresponding to the network port connected with the normal link; defining the network port address corresponding to the network port connected with the abnormal link as a third address, and defining the network port address corresponding to the network port connected with the normal link as a fourth address; the host packs the current time point, the third address and the fourth address into a switching log and reports the switching log;
the first alert action includes: the host acquires the authentication information of the switch in the abnormal link and defines the authentication information of the switch in the abnormal link as first acquired information; the host retrieves the authentication information of the switch matched with the abnormal link in the configuration information, and defines the authentication information of the switch matched with the abnormal link in the configuration information as second acquisition information; and the host reports the authentication information except the first acquisition information in the second acquisition information.
Further, the feedback condition further comprises that the feedback of the first address or the second address is successful;
the second alert action includes: the host judges whether the feedback condition has the first address or the second address, if so, the host judges that the core server corresponding to the first address or the core switch corresponding to the second address is abnormal equipment and reports the first address or the second address; if not, the host judges that the core server corresponding to the first address and the core switch corresponding to the second address are both the abnormal equipment, and reports the first address and the second address.
The invention also provides a network detection and switching system based on network port binding, which is applied to a core server and a host connected with the core server, wherein a switch link is configured between the core server and the host, a core switch is configured between the core server and the switch link, a network port is configured between the host and the switch link, the network port, the switch link and the core switch are sequentially connected, the network port is configured with a network port address, the host is configured with a host address, and the network port address is bound on the host address, the system comprises:
the device comprises an initialization module, a network detection module and a processing module;
the initialization module is used for selecting a network port corresponding to any one network port address as a main network port and setting a detection item;
the network detection module is used for acquiring a target address and configuration information and controlling the host to execute a detection action on the target address according to the detection item to obtain a detection result;
the processing module is used for controlling the host to execute a switching action and an alarming action according to the detection result and the configuration information;
the switching action comprises: the host detects whether a network port connected with the switch link corresponding to the detection result is the main network port, and if so, the host switches the main network port;
the alert action includes: and the host reports the target address and the configuration information corresponding to the detection result.
The invention also provides a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the network detection and handover method based on internet access binding.
The invention has the beneficial effects that:
1. the network detection and switching method based on the network port binding can realize real-time detection of the link of the upper-layer switch, judge the failed switch and adopt the corresponding network port switching action, thereby realizing automatic judgment of the network condition and switching of the corresponding normal network, improving the use efficiency and reliability of the network and improving the maintainability of network services.
2. The network detection and switching system based on the network port binding can realize real-time detection of the link of the upper-layer switch through the mutual cooperation of the initialization module, the network detection module and the processing module, judge the failed switch, adopt the corresponding network port switching action, further realize automatic judgment of the network condition and switch the corresponding normal network, improve the use efficiency and reliability of the network and improve the maintainability of network services.
3. The computer-readable storage medium can realize the cooperation of the guide initialization module, the network detection module and the processing module, further realize the real-time detection of the link of the upper-layer switch, judge the failed switch, adopt the corresponding network port switching action, further realize the automatic judgment of the network condition and the switching of the corresponding normal network, improve the use efficiency and the reliability of the network, improve the maintainability of network services and effectively increase the operability of the network detection and switching method based on the network port binding.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a network detection and handover method based on internet access binding according to embodiment 1 of the present invention;
fig. 2 is a topology diagram of a switch link according to embodiment 1 of the present invention;
fig. 3 is an architecture diagram of a network detecting and switching system based on internet access binding according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
In the description of the present invention, it should be noted that the described embodiments of the present invention are 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.
In the description of the present invention, it should be noted that IP (Internet protocol) is an Internet protocol, ping (packet Internet groper) is an Internet packet finder, arp (address Resolution protocol) is a protocol for obtaining a physical address according to an IP address, and snmp (simple Network Management protocol) is a Network Management protocol.
In the description of the present invention, it should be noted that the terms "first", "second", "third", "fourth", "fifth" and "sixth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "core switch", "core server", "main portal", "abnormal link", "normal link", and "delayed link" are to be understood in a broad sense. The specific meanings of the above terms in the present invention can be understood in a specific case to those of ordinary skill in the art.
Example 1
The embodiment provides a network detection and handover method based on network port binding, as shown in fig. 1 and fig. 2, including the following steps:
s100, setting a network configuration item, and acquiring a target address and configuration information;
the method specifically comprises the following steps:
setting a server of a network demand end as a first server (namely a host); binding all network ports configured on a first server into a link total node; and sets the first IP address of the link master node to 192.168.1.1 (i.e., host address);
setting a plurality of second IP addresses of the internet access according to the first IP address; changes are made in the second IP address only to the host address bits, i.e., 192.168.1.101, 192.168.1.102, etc.;
selecting a network port corresponding to any one second IP address as a main network port; the main network port is used for data receiving and transmitting between the network demand end server and the network output end core server;
acquiring port numbers of all switches of a link where each network port is located or other unique authentication information which can be acquired through signals, and summarizing the port numbers into a switch information table (namely configuration information) corresponding to the link;
acquiring a third IP address (namely, a first address) of a core server at a network input end; a fourth IP address (i.e., a second address) of a core switch directly connected to a core server at the network input is obtained.
S200, setting a detection item, and executing a detection action on the target address according to the detection item to obtain a detection result;
the method specifically comprises the following steps:
the detection items comprise: sending interval of PING packet/ARP packet; the sending number of PING packets/ARP packets; a transmission period; counting the period;
for example: the sending interval of the PING packets/ARP packets is 1 second, the sending number of the PING packets/ARP packets is 3, the sending period is 10 seconds, and the statistical period is 30 seconds; the corresponding detection action is:
within a statistical period of 30 seconds, the first server simultaneously sends 3 PING packets/ARP packets to the third IP address and the fourth IP address every other 1 second through the second IP address, and the first server detects whether reply information of the corresponding PING packets/ARP packets is received every other 10 seconds of the sending period;
if the reply information of the corresponding PING packet/ARP packet is not received within 30 seconds of the statistical period, judging that a network link (namely a switch link) where a network port corresponding to the second IP address is located is a fault link;
if the reply information of the corresponding PING packet/ARP packet is received within 30 seconds of the statistical period, judging that a network link where a network port corresponding to the second IP address is located has network delay, wherein the link is a delay link;
if the reply information of the corresponding PING packet/ARP packet is received within 30 seconds of the statistical period, the detection result is judged as follows: and the network link where the network port corresponding to the second IP address is located is a normal link.
S300, executing a solving action according to the detection result;
the resolving action includes: switching action and alarming action;
when the detection result is as follows: when the network link where the network port corresponding to the second IP address is located is a fault link, executing a switching action and a first alarm action;
the first alert action is: the first server sends an acquisition instruction to the fault link to acquire the port number of the switch on the link; the first server judges that the switch corresponding to the switch port number except the switch port number in the switch information table corresponding to the link fails; the first server acquires a sixth IP address of the network management server and reports the switch port numbers except the switch port number in the switch information table corresponding to the fault link to the sixth IP address;
the switching action is as follows: the first server closes the fault link; if the network port corresponding to the fault link is a main network port, the first server sets the network port corresponding to the normal link as a new main network port, records the current time point and second IP addresses (namely a third address and a fourth address) corresponding to the fault link and the normal link, packs the second IP address and the current time point into a network port switching log, and reports the network port switching log to a network management server through an SNMP (simple network management protocol);
when the detection result is: when network delay occurs in a network link where a network port corresponding to the second IP address is located, executing a second alarm action;
the second alarm action is as follows: detecting a fifth IP address corresponding to the reply message; if the fifth IP address is the fourth IP address, judging that a delay fault occurs in the server at the network input end; if the fifth IP address is the third IP address, judging a delay fault of a switch directly connected with a server at the network input end; acquiring a sixth IP address of the network management server, and sending the third IP address of the network input end server and a fourth IP address of a switch directly connected with the network input end server to the sixth IP address; sending suspension information to the first IP address; the suspension information is used for prompting the user that the network has a delay condition and is being repaired, and the like.
Example 2
The present embodiment provides a network detecting and switching system based on internet access binding, as shown in fig. 3, including:
the device comprises an initialization module, a network detection module and a processing module;
the initialization module is used for initializing a network configuration item and setting a detection item;
the method comprises the following specific steps:
the initialization module sets a server of a network demand end as a first server; the initialization module binds all network ports configured on the first server into a link total node; the initialization module sets the first IP address of the link master node to be 192.168.1.1;
the initialization module sets a plurality of second IP addresses of the internet access according to the first IP address; changes are made in this second IP address only to the host address, i.e., 192.168.1.101, 192.168.1.102, etc.;
the initialization module selects a network port corresponding to any second IP address as a main network port; the main network port is used for data receiving and transmitting between the network demand end server and the network output end core server;
the initialization module acquires port numbers of all switches of a link where each network port is located or other unique authentication information which can be acquired through signals, and the initialization module collects the port numbers into a switch information table corresponding to the link;
the initialization module acquires a third IP address of the server at the network input end; the initialization module acquires a fourth IP address of a switch directly connected with a server at the network input end;
the detection items comprise: sending interval of PING packet/ARP packet; the sending number of PING packets/ARP packets; a transmission period; and (5) counting the period.
The network detection module is used for executing detection actions according to the network configuration items and the detection items to obtain detection results;
the method comprises the following specific steps:
for example: the initialization module sets the sending interval of the PING packets/ARP packets to be 1 second, the sending number of the PING packets/ARP packets to be 3, the sending period to be 10 seconds, and the counting period to be 30 seconds; the corresponding detection action is:
the network detection module controls the first server to execute detection actions: within a statistical period of 30 seconds, the first server simultaneously sends 3 PING packets/ARP packets to the third IP address and the fourth IP address every other 1 second through the second IP address, and the first server detects whether reply information of the corresponding PING packets/ARP packets is received every other 10 seconds of the sending period; if the first server does not receive the reply information of the corresponding PING packet/ARP packet within 30 seconds of the statistical period, the network detection module judges that a network link where a network port corresponding to the second IP address is located is a fault link;
if the first server receives the reply information of the corresponding PING packet/ARP packet within 30 seconds of the statistical period, the network detection module judges that the network link of the network port corresponding to the second IP address has network delay;
if the first server receives the reply information of the corresponding PING packet/ARP packet within 30 seconds of the statistical period, the detection result is judged as follows: and the network detection module judges that the network link of the network port corresponding to the second IP address is a normal link.
The processing module is used for controlling the first server to execute a solving action according to the detection result;
the processing module comprises a switching module and an alarm module;
the solution action comprises a switching action and an alarm action;
when the detection result is as follows: when the network link where the network port corresponding to the second IP address is located is a fault link, the alarm module controls the first server to execute a first alarm action; the switching module controls the first server to execute switching action;
the first alert action is: the alarm module sends a first alarm instruction to the first server, and after receiving the first alarm instruction, the first server sends an acquisition instruction to the fault link and acquires the port number of the switch on the link; the first server judges that the switch corresponding to the switch port number except the switch port number in the switch information table corresponding to the link fails; the first server acquires a sixth IP address of the network management server, and reports a second IP address corresponding to the fault link and the switch port number except the switch port number in the switch information table corresponding to the link to the sixth IP address;
the switching action is as follows: the switching module sends a switching instruction to the first server, and the first server closes the fault link after receiving the switching instruction; if the network port corresponding to the fault link is the main network port, the first server sets the network port corresponding to the normal link as a new main network port; the first server records the current time point and the second IP address corresponding to the fault link and the normal link, and packs the second IP address and the current time point into a network port switching log, and the first server reports the network port switching log to the network management server through an SNMP protocol;
when the detection result is as follows: when network delay occurs in a network link where a network port corresponding to the second IP address is located, the alarm module controls the first server to execute a second alarm action;
the second warning action is as follows: the alarm module sends a second alarm instruction to the first server, and after receiving the second alarm instruction, the first server detects a fifth IP address corresponding to the reply message; if the fifth IP address is the fourth IP address, the first server judges that a delay fault occurs in the network input end server; if the fifth IP address is the third IP address, the first server judges the delay fault of the switch directly connected with the server at the network input end; the first server acquires a sixth IP address of the network management server and sends the third IP address of the server at the network input end and a fourth IP address of a switch directly connected with the server at the network input end to the sixth IP address; the first server sends suspension information to the first IP address; the suspension information is used for prompting the user that the network has a delay condition and is being repaired, and the like.
Based on the same inventive concept as the network detection and switching method based on the internet access binding in the foregoing embodiments, an embodiment of the present specification further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the network detection and switching method based on the internet access binding are implemented.
Different from the prior art, the network detection and switching method, system and medium based on network port binding can be used for detecting the link of the upper-layer switch in real time, judging the failed switch, and adopting the corresponding network port switching action, so that the automatic judgment of the network condition and the switching of the corresponding normal network are realized, the use efficiency and reliability of the network are improved, and the maintainability of network services is improved.
The numbers of the embodiments disclosed in the above embodiments of the present invention are merely for description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are included in the scope of the present invention.

Claims (10)

1. A network detection and switching method based on network port binding is applied to a core server and a host connected with the core server, a switch link is configured between the core server and the host, a core switch is configured between the core server and the switch link, a network port is configured between the host and the switch link, the network port, the switch link and the core switch are sequentially connected, the network port is configured with a network port address, and the host is configured with a host address, wherein the network port address is bound on the host address, and the method comprises the following steps:
selecting a network port corresponding to any one network port address as a main network port;
setting a detection item; acquiring a target address and configuration information;
the host executes a detection action on the target address according to the detection item to obtain a detection result;
the host executes a switching action and an alarming action according to the detection result and the configuration information;
the switching action comprises: the host detects whether a network port connected with the switch link corresponding to the detection result is the main network port, and if so, the host switches the main network port;
the alert action includes: and the host reports the target address and the configuration information corresponding to the detection result.
2. The network detecting and switching method based on internet access binding as claimed in claim 1, wherein: the step of obtaining the target address and the configuration information further comprises:
acquiring a first address of the core server and a second address of the core switch to which the core server is connected; defining the first address and the second address to be the target address;
acquiring authentication information of the switch in the switch link; the authentication information is matched with the switch link; defining the authentication information as the configuration information.
3. The network detecting and switching method based on internet access binding as claimed in claim 2, wherein: the detection items comprise: a first period, a second period, a third period, a detection medium and the number of media;
the detection action is as follows:
the host sends the detection media corresponding to the media quantity to the target address every third period; the host counts the feedback condition of the target address to the detection medium every second period; and the host summarizes the feedback condition every the first period to obtain the detection result.
4. The network detecting and switching method based on network port binding as claimed in claim 3, wherein: the feedback situation comprises: the first address and the second address both feed back successfully and the first address and the second address both feed back unsuccessfully.
5. The network detecting and switching method based on network port binding as claimed in claim 4, wherein: the step of summarizing the feedback situation every other first period to obtain the detection result further comprises the following steps:
in the first period, if the feedback condition is that the feedback of both the first address and the second address is successful, the detection result is: the switch link connected with the core switch corresponding to the second address is a normal link;
in the first period, if the feedback condition is that the feedback of both the first address and the second address fails, the detection result is: the switch link connected with the core switch corresponding to the second address is an abnormal link;
in the first period, if the feedback condition is not that both the first address and the second address are fed back successfully, and the feedback condition has that both the first address and the second address are fed back successfully, the detection result is: the second address corresponds to the switch link to which the core switch is connected being a delay link.
6. The network detecting and switching method based on network port binding as claimed in claim 5, wherein: the alert action further comprises a first alert action and a second alert action;
the step of executing the switching action and the warning action according to the detection result and the configuration information further comprises the following steps:
when the detection result is an abnormal link, the host executes the switching action and executes the first alarm action according to the configuration information;
and when the detection result is a delay link, the host executes the second alarm action.
7. The network detecting and switching method based on internet access binding as claimed in claim 6, wherein: the switching action further comprises:
the host detects whether the network port connected with the abnormal link is the main network port, if so, the host closes the abnormal link and sets the network port connected with the normal link as the main network port; the host records the current time point and acquires the network port address corresponding to the network port connected with the abnormal link and the network port address corresponding to the network port connected with the normal link; defining the network port address corresponding to the network port connected with the abnormal link as a third address, and defining the network port address corresponding to the network port connected with the normal link as a fourth address; the host packs the current time point, the third address and the fourth address into a switching log and reports the switching log;
the first alert action includes: the host acquires the authentication information of the switch in the abnormal link and defines the authentication information of the switch in the abnormal link as first acquired information; the host retrieves the authentication information of the switch matched with the abnormal link in the configuration information, and defines the authentication information of the switch matched with the abnormal link in the configuration information as second acquisition information; and the host reports the authentication information except the first acquisition information in the second acquisition information.
8. The network detection and handover method based on internet access binding as claimed in claim 6 or 7, wherein: the feedback condition further comprises that the first address or the second address feedback is successful;
the second alert action includes: the host judges whether the feedback condition has the first address or the second address, if so, the host judges that the core server corresponding to the first address or the core switch corresponding to the second address is abnormal equipment and reports the first address or the second address; if not, the host judges that the core server corresponding to the first address and the core switch corresponding to the second address are both the abnormal equipment, and reports the first address and the second address.
9. The utility model provides a network detects and switching system based on net gape is bound, be applied to core server and with the host computer that core server connects, core server with dispose the switch link between the host computer, core server with dispose the core switch between the switch link, the host computer with dispose the net gape between the switch link, the net gape the switch link with the core switch connects gradually, the net gape all disposes the net gape address, the host computer disposes the host computer address, a serial communication port, the net gape address all binds on the host computer address, the system includes:
the device comprises an initialization module, a network detection module and a processing module;
the initialization module is used for selecting a network port corresponding to any one network port address as a main network port and setting a detection item;
the network detection module is used for acquiring a target address and configuration information and controlling the host to execute a detection action on the target address according to the detection item to obtain a detection result;
the processing module is used for controlling the host to execute a switching action and an alarming action according to the detection result and the configuration information;
the switching action comprises: the host detects whether a network port connected with the switch link corresponding to the detection result is the main network port, and if so, the host switches the main network port;
the alert action includes: and the host reports the target address and the configuration information corresponding to the detection result.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the network interface binding-based network detection and handover method according to any one of claims 1 to 8.
CN202110061964.7A 2021-01-18 2021-01-18 Network detection and switching method, system and medium based on network port binding Active CN112769653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110061964.7A CN112769653B (en) 2021-01-18 2021-01-18 Network detection and switching method, system and medium based on network port binding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110061964.7A CN112769653B (en) 2021-01-18 2021-01-18 Network detection and switching method, system and medium based on network port binding

Publications (2)

Publication Number Publication Date
CN112769653A CN112769653A (en) 2021-05-07
CN112769653B true CN112769653B (en) 2022-07-12

Family

ID=75702765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110061964.7A Active CN112769653B (en) 2021-01-18 2021-01-18 Network detection and switching method, system and medium based on network port binding

Country Status (1)

Country Link
CN (1) CN112769653B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442268B (en) * 2022-08-30 2023-06-09 烽火通信科技股份有限公司 Network element port state detection and positioning system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729312A (en) * 2009-12-03 2010-06-09 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
WO2013026380A1 (en) * 2011-08-25 2013-02-28 中兴通讯股份有限公司 Method and device for realizing collaborative protection of ptn device and mstp device
CN106034037A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Disaster recovery switching method and device based on virtual machine
CN109831341A (en) * 2019-03-19 2019-05-31 中国电子科技集团公司第三十六研究所 A kind of fast switch over method and device of redundancy double netcard
CN112202592A (en) * 2020-09-02 2021-01-08 烽火通信科技股份有限公司 Alarm delay diagnosis method, system and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729312A (en) * 2009-12-03 2010-06-09 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
WO2013026380A1 (en) * 2011-08-25 2013-02-28 中兴通讯股份有限公司 Method and device for realizing collaborative protection of ptn device and mstp device
CN106034037A (en) * 2015-03-13 2016-10-19 腾讯科技(深圳)有限公司 Disaster recovery switching method and device based on virtual machine
CN109831341A (en) * 2019-03-19 2019-05-31 中国电子科技集团公司第三十六研究所 A kind of fast switch over method and device of redundancy double netcard
CN112202592A (en) * 2020-09-02 2021-01-08 烽火通信科技股份有限公司 Alarm delay diagnosis method, system and readable storage medium

Also Published As

Publication number Publication date
CN112769653A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US10917322B2 (en) Network traffic tracking using encapsulation protocol
EP1603272B1 (en) Communication network event logging systems and methods
CN107547252A (en) A kind of network failure processing method and device
US7430688B2 (en) Network monitoring method and apparatus
CN101026505A (en) Method and apparatus for monitoring malicious traffic in communication networks
CN108429629A (en) Equipment fault restoration methods and device
US10447561B2 (en) BFD method and apparatus
CN107026790B (en) A kind of transmission control method and equipment
CN101667941A (en) Method for detecting link performance and device therefor
US20120051263A1 (en) Network System, Network Management Server, and OAM Test Method
CN111010298B (en) PON (passive optical network) network fault monitoring method and device
CN102263651A (en) Method for detecting connection state of local end equipment in SNMP (simple network management protocol) network management system (NMS)
JP2006501717A (en) Telecom network element monitoring
CN112994971A (en) Equipment offline monitoring method based on cloud server and related device
JP2001127761A (en) Communication data confirmation test method in mpls communication system, and router, exchange and communication system utilizing the method
US8559317B2 (en) Alarm threshold for BGP flapping detection
CN112769653B (en) Network detection and switching method, system and medium based on network port binding
WO2011137766A2 (en) Method and relevant device and system for determining network element running state
US7593323B2 (en) Apparatus and methods for managing nodes on a fault tolerant network
CN110380981B (en) Flow distribution method and equipment
KR100964392B1 (en) System and method for managing network failure
EP3252995B1 (en) Method for detecting network failures
CN115720181A (en) Control method and system of bare metal node, electronic device and readable storage medium
CN109257268A (en) A kind of network attack test system and method across vlan
JPH08102756A (en) Network management system

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