CN114205207A - Network management method and device - Google Patents

Network management method and device Download PDF

Info

Publication number
CN114205207A
CN114205207A CN202111286980.2A CN202111286980A CN114205207A CN 114205207 A CN114205207 A CN 114205207A CN 202111286980 A CN202111286980 A CN 202111286980A CN 114205207 A CN114205207 A CN 114205207A
Authority
CN
China
Prior art keywords
state
disk
port
master control
service
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
Application number
CN202111286980.2A
Other languages
Chinese (zh)
Other versions
CN114205207B (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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN202111286980.2A priority Critical patent/CN114205207B/en
Publication of CN114205207A publication Critical patent/CN114205207A/en
Application granted granted Critical
Publication of CN114205207B publication Critical patent/CN114205207B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • 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/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • H04L49/1515Non-blocking multistage, e.g. Clos

Landscapes

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

Abstract

The application discloses a network management method and device. The network management method is applied to a service disk and comprises the following steps: and receiving first information sent by a master control disk in a first communication mode, wherein the first information represents that a set protocol of the master control disk is in a normal running state. And under the condition that the first information of the master control disk is not received within the set time length, adjusting the first port of the first exchange chip of the service disk to be in a first state. Wherein the first state is indicative of port blocking. And when the first port is in the first state, the first communication mode of the service disk and the master control disk is disconnected.

Description

Network management method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network management method and apparatus.
Background
The rack-mounted system comprises at least one access device, each access device comprises a main control panel and at least one service panel, the main control panel realizes the management and core control functions of the access device, and the service panels realize the service functions of data forwarding, signal processing and the like. The port corresponding to the master control panel is an electrical port, the port corresponding to the service panel is an optical port, and the master control panel and the service panel can normally communicate only by relying on the switching chip. In the related art, when the master control disk and the service disk communicate through the cascade of the switching chips in the ring network, the risk of network storm is extremely high.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for network management to solve the problem in the related art that the risk of a network storm is very high when a master control disk and a service disk in a ring network communicate through a cascade of switch chips.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
the embodiment of the application provides a network management method, which is applied to a service disk, and comprises the following steps:
receiving first information sent by a master control panel in a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
under the condition that the first information of the master control disk is not received within a set time length, adjusting a first port of a first exchange chip of the service disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In the foregoing solution, before the receiving the first information sent by the master control disk through the first communication method, the method further includes:
sending second information to the master control disk; the second information represents the current state of the first port;
under the condition that a first response of the master control panel about the second information is received, adjusting the first port to a state corresponding to the first response; wherein,
the first response is sent by the master control disk when the second information does not match the state of the first port of the master control disk storage; the first response corresponds to a state of the first port of the master disk storage.
In the above solution, when the state of the first port is the first state, the service disk and the master control disk communicate in the second communication mode; when the state of the first port is a second state, the service disk and the master control disk communicate in a first communication mode;
after the adjusting the first port of the first switch chip of the service disk to the first state, the method further includes:
sending a first request to the master control disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
under the condition that a second response of the master control disk about the first request is received, adjusting the state of the first port to a state corresponding to the second response; wherein,
the second response corresponds to a second state of the first port.
In the foregoing solution, before the receiving the first information sent by the master control disk through the first communication method, the method further includes:
configuring an address forwarding table of the first switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
The embodiment of the application also provides a network management method, which is applied to a master control disk and comprises the following steps:
sending first information to the service disk through a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
under the condition that a third response of the service disk about the first information is not received within a set time length, adjusting a second port of a second exchange chip of the master control disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In the foregoing solution, before the sending the first information to the service disk through the first communication method, the method further includes:
receiving second information sent by the service disk; the second information represents the current state of the first port;
under the condition that the second information is not matched with the state of the first port stored in the main control disk, sending a first response to the service disk; wherein,
the first response corresponds to a state of a first port stored in the master control disk, and is used for the service disk to adjust the state of the first port to a state corresponding to the first response.
In the above solution, when the state of the second port is the first state, the master control disk and the service disk communicate in the second communication mode; when the state of the second port is a second state, the master control disk and the service disk communicate in a first communication mode;
after the adjusting the second port of the second switch chip of the master control to the first state, the method further comprises:
receiving a first request of the service disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
sending a second response to the service disk regarding the first request; wherein,
the second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to the state corresponding to the second response.
In the foregoing solution, before the sending the first information to the service disk through the first communication method, the method further includes:
configuring an address forwarding table of the second switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
An embodiment of the present application further provides a network management apparatus, where the apparatus includes:
the receiving unit is used for receiving first information sent by the master control panel through a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
the adjusting unit is used for adjusting the first port of the first switching chip of the service disk to be in a first state under the condition that the first information of the master control disk is not received within a set time length; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
An embodiment of the present application further provides a network management apparatus, where the apparatus includes:
a sending unit, configured to send first information to the service disk in a first communication manner; the first information represents that a set protocol of the master control panel is in a normal running state;
an adjusting unit, configured to adjust a second port of a second switch chip of the master control panel to a first state when a third response of the service panel about the first information is not received within a set duration; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is adapted to perform the steps of any of the above methods when running the computer program.
Embodiments of the present application further provide a storage medium on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, first information sent by a master control panel is received through a first communication mode, and the first information represents that a set protocol of the master control panel is in a normal operation state. And under the condition that the first information of the master control disk is not received within the set time length, adjusting the first port of the first exchange chip of the service disk to be in a first state. Wherein the first state is indicative of port blocking. And when the first port is in the first state, the first communication mode of the service disk and the master control disk is disconnected. Therefore, under the condition that the master control panel and the service panel are communicated through the cascade connection of the switching chips, and when the service panel does not receive the first information of the master control panel within the set time, the set protocol of the master control panel is considered to be in an abnormal operation state, at the moment, the service panel can adjust the first port of the first switching chip to be in a port blocking state, the first communication mode with the master control panel is disconnected, and network faults are avoided under the condition that the set protocol of the master control panel is abnormal in operation. When the network management method of the embodiment of the application is applied to the ring network and the set protocol is the ring network protocol, and the service disk does not receive the first information of the master control disk within the set time length, the ring network protocol of the master control disk is considered to be in an abnormal operation state, at this time, the service disk adjusts the first port to be in a port blocking state and disconnects the first communication mode with the master control disk, so that a network loop is prevented from being caused in the ring network, and a network storm is avoided.
Drawings
Fig. 1 is a schematic diagram of an access device according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a network management method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an access device networking provided in an embodiment of the present application;
fig. 4 is a flowchart illustrating an implementation of another network management method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a network management apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a network management apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, the terms "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a particular order or sequence. The term "and/or" is merely an associative relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
A data center is a globally collaborative network of devices that is used to communicate, accelerate, present, compute, store data information over a network Internet infrastructure.
Downlink Control Information (DCI) networking of a data center needs to implement redundancy backup of a network. When any node in DCI networking has a problem, the network of all the access devices can still be ensured not to be influenced, and the DCI networking is restored to a redundant backup state after the node is repaired.
The redundancy backup of the DCI networking is usually realized by using a corresponding network protocol stack, and the DCI networking may be divided into two-layer networking and three-layer networking. Wherein, the two-layer networking runs a two-layer spanning tree protocol, and the three-layer networking runs a three-layer routing protocol. Generally, three-layer networking is used for large-scale networking, cross-network section networking and cross-server networking, and two-layer networking is used for small-scale networking and networking without cross-network section networking. Or a small two-layer network can be embedded in a large network.
In actual deployment, the two-layer networking has unique advantages, and the two-layer networking avoids complex command configuration of the three-layer networking. That is to say, when actual engineering deployment is performed, the two-layer packet network can operate without any command configuration performed by related personnel, and the two-layer packet network can be powered on. When the access device in the two-layer networking fails and needs to replace the master control disk or the service disk, the access device can be replaced at will without causing network problems.
The ports of the service tray are typically optical ports, i.e., fiber optic interfaces for connecting optical cables, while the ports of the master tray are electrical ports, i.e., ports for connecting network cables to coaxial transmission cables. When the service disk communicates with the master control disk, the switching chip needs to be configured to normally communicate. The port number of the master control disk is small, and the number of the expansion ports of the switching chip also needs to be configured. The switching chips have a cascade function, i.e. two or more switching chips can be connected to each other in a certain way. The two-layer networking is easy to realize on a single exchange chip, the realization is complex under the condition that the exchange chips are cascaded, and particularly under the condition that programs are arranged on a master control disk and a service disk and can be plugged and unplugged, the problems exist and places needing attention are many.
In the related art, when the master control disk and the service disk communicate through the cascade of the switching chips in the ring network, the risk of network storm is extremely high.
Based on this, an embodiment of the present application provides a network management method and apparatus, where first information sent by a master control disk is received through a first communication mode, and the first information represents that a setting protocol of the master control disk is in a normal operating state. And under the condition that the first information of the master control disk is not received within the set time length, adjusting the first port of the first exchange chip of the service disk to be in a first state. Wherein the first state is indicative of port blocking. And when the first port is in the first state, the first communication mode of the service disk and the master control disk is disconnected. Therefore, under the condition that the master control panel and the service panel are communicated through the cascade connection of the switching chips, and when the service panel does not receive the first information of the master control panel within the set time, the set protocol of the master control panel is considered to be in an abnormal operation state, at the moment, the service panel can adjust the first port of the first switching chip to be in a port blocking state, the first communication mode with the master control panel is disconnected, and network faults are avoided under the condition that the set protocol of the master control panel is abnormal in operation. When the network management method of the embodiment of the application is applied to the ring network and the set protocol is the ring network protocol, and the service disk does not receive the first information of the master control disk within the set time length, the ring network protocol of the master control disk is considered to be in an abnormal operation state, at this time, the service disk adjusts the first port to be in a port blocking state and disconnects the first communication mode with the master control disk, so that a network loop is prevented from being caused in the ring network, and a network storm is avoided.
The present application will be described in further detail with reference to the following drawings and examples.
Fig. 1 is a schematic diagram of an access device provided in an embodiment of the present application, as shown in fig. 1:
the access device comprises a main control disk and at least one service disk, wherein the main control disk and each service disk are provided with a central processing unit and a switching chip, and corresponding programs run on the respective central processing units. The master control disk and the service disk can be plugged and unplugged.
The second port of the second exchange chip of the master control panel is connected with the first port of the first exchange chip of each service panel, and based on the connection between the second exchange chip and the first exchange chip, the master control panel can communicate with the service panels.
Fig. 2 is a schematic view of an implementation flow of a network management method provided in an embodiment of the present application, where the method is applied to a service disk. As shown in fig. 2, the method includes:
step 201: receiving first information sent by a master control panel in a first communication mode; the first information represents that the set protocol of the master control disk is in a normal running state.
Here, in the first communication mode, the service disk and the master control disk can send and receive normal network messages to and from each other, that is, in the first communication mode, the network connection between the service disk and the master control disk is in a normal state.
The service disk receives first information sent by the master control disk through a first communication mode. The first information represents that the set protocol of the master control disk is in a normal running state.
When the access device is in the ring network, the master control panel needs to run a setting protocol, and the setting protocol is used for eliminating the physical loop of the data link layer in the local area network. Because the main control panel normally runs the setting protocol, and the setting protocol can avoid the physical loop, even if the access device is in the ring network, the network loop can not be caused, and the network storm can not be caused.
In practical applications, the setting Protocol may be Rapid Spanning Tree Protocol (RSTP). Media Access Control (MAC) addresses need to be configured for the Access device to which the master Control disk belongs, and the MAC address of the Access device and the MAC addresses of other Access devices cannot conflict with each other.
In practical application, the master control disk sends first information to the service disk circularly at regular time intervals.
Step 202: under the condition that the first information of the master control disk is not received within a set time length, adjusting a first port of a first exchange chip of the service disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
Here, if the first information of the master control disk is not received within the set duration, which indicates that the set protocol of the master control disk may not be in a normal operating state, at this time, to avoid the occurrence of a network loop, the first port of the first switch chip of the service disk is adjusted to the first state, that is, the first port is adjusted to the port blocking state. And when the first port is in a port blocking state, the first communication mode of the service disk and the main control disk is disconnected. The set duration may be set to a value of 10s, 20s, 30s, and the like, and a specific value of the set duration may be set according to an actual situation, which is not limited in this embodiment of the application. It should be noted that the set time cannot be set too short, otherwise, the master control disk and the service disk will frequently communicate with each other, which brings a large load to the access device; the set time length cannot be set too large, otherwise, when the set protocol of the master control disk is in an abnormal operation state, the service disk cannot adjust the state of the first port to the first state in time, so that a network loop is caused, and a network storm is brought.
In practical application, the second port of the second switch chip of the master control panel is connected with the first port of the first switch chip of the service panel, and communication between the master control panel and the service panel is realized through cascade connection of the second switch chip and the first switch chip. The first exchange chip and the second exchange chip are respectively configured with different chip numbers.
Fig. 3 is a schematic diagram of an access device networking provided in the embodiment of the present application, as shown in fig. 3:
the access devices 1-5 are connected to the same server to form a multi-dimensional ring network topology. Each access device comprises a master control disk and at least one service disk.
In such a ring network topology, if the master controller of each access device does not operate the set protocol normally, a network storm will be caused, which not only makes each access device inaccessible, but also affects other networks. If the main control panel of each access device normally runs the set protocol, the occurrence of network storm can be avoided.
An access device runs a set protocol, the set protocol runs on a main control panel of the access device, and a central processing unit of the main control panel uniformly manages the state of a first port of a first switching chip of each service panel. When the master control disk of one access device is plugged or in an abnormal reset state, the protocol message set by the master control disk of the access device cannot be forwarded to the interconnected access devices. According to the principle of redundancy backup, when a link in a ring network topology is broken, other access devices in the network topology can sense the broken link, and then the ports included in the access devices are configured to be forwarded to a Forward state, and the access device with an abnormal master control panel cannot manage the state of the first port of the first switch chip of each service panel any more.
If the service disk does not receive the first information of the master control disk within the set time length, the state of the first port of the first exchange chip is adjusted to be a port blocking state, and the first communication mode of the master control disk and the service disk is disconnected, a network loop can be cut off, and a network storm can be avoided.
In an embodiment, before the receiving the first information sent by the master control disk through the first communication mode, the method further includes:
sending second information to the master control disk; the second information represents the current state of the first port;
under the condition that a first response of the master control panel about the second information is received, adjusting the first port to a state corresponding to the first response; wherein,
the first response is sent by the master control disk when the second information does not match the state of the first port of the master control disk storage; the first response corresponds to a state of the first port of the master disk storage.
Here, the service disk transmits the second information to the master disk before receiving the first information transmitted from the master disk by the first communication method, and when receiving a first response of the master disk with respect to the second information, the first port is adjusted to a state corresponding to the first response. The second information represents the current state of the first port of the first exchange chip of the service disk. The first response is issued by the master disk in the event that the current state of the first port does not match the state of the first port of the master disk storage. The first response corresponds to a state of the first port of the master disk storage.
The central processing unit of the master control disk stores the state of the first port of the first switching chip of the service disk, when receiving the second information, the second information is compared with the stored state of the first port, and if the second information is not matched with the first information, a first response is sent to the service disk. And after the service disk receives the first response, the state of the first port is adjusted to be the state corresponding to the first response.
Illustratively, the second information sent by the service disk indicates that the first port is in a learning state, and the first port stored in the master control disk is in a Forward state, at this time, because the second information is not matched with the state of the first port stored in the master control disk, the master control disk sends a first response to the service disk, and the first response corresponds to the Forward state. And after receiving the first response, the service disk adjusts the state of the first port to a Forward state, so that the synchronization of the state of the first port stored in the master control disk and the state of the first port in the service disk is realized.
It should be noted that, if the state of the first port of the main control disk storage of the access device is inconsistent with the current state of the first port of the service disk, the access device may be unable to access, that is, the access device may be disconnected, and therefore, the state of the first port of the main control disk storage and the state of the first port of the service disk need to be synchronized.
In some application scenarios, the master control disk may not send the first information to the service disk in time within a set time length in a state where the protocol is set to operate normally, and at this time, the service disk adjusts the state of the first port to a blocking state, which causes the state of the first port stored in the master control disk to be inconsistent with the state of the first port of the service disk, resulting in loss of connection of the access device.
By sending the second information to the master control disk and modifying the state of the first port into the state corresponding to the first response under the condition of receiving the first response, the synchronization of the state of the first port stored in the master control disk and the state of the first port of the service disk can be realized, and the master control disk can accurately manage the state of the first port of the service disk.
In an embodiment, when the state of the first port is a first state, the service disk and the master control disk communicate in a second communication mode; when the state of the first port is a second state, the service disk and the master control disk communicate in a first communication mode;
after the adjusting the first port of the first switch chip of the service disk to the first state, the method further includes:
sending a first request to the master control disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
under the condition that a second response of the master control disk about the first request is received, adjusting the state of the first port to a state corresponding to the second response; wherein,
the second response corresponds to a second state of the first port.
Here, when the first port is in the first state, that is, when the first port is in the port blocking state, the service disk communicates with the master control disk in the second communication method. When the first port is in the second state, that is, the first port is in a learning state or a forwarding state, the service disk communicates with the master control disk in the first communication mode, that is, communicates through normal network messages.
After the first port is adjusted to the first state, the service disk may send a first request to the master control disk through the second communication mode, where the first request is used to request establishment of the first communication mode with the master control disk. And under the condition that a second response of the master control disk about the first request is received, adjusting the state of the first port to the state corresponding to the second response. The second response corresponds to the second state of the first port, so that the adjusted state of the first port is the second state, and the service disk and the master control disk are communicated in the first communication mode.
It should be noted that, in the second communication mode, normal network packets cannot be transmitted and received between the master control disk and the service disk, and only Bridge Protocol Data Unit (BPDU) packets can be transmitted and received, so that the state of the first port can be adjusted according to the packet content of the BPDU packets. Therefore, the first request is a BPDU message.
In practical application, in some application scenarios, after the service disk is unplugged, the master control disk may consider the state of the first port as the first state. When the service disk is in an upgrade state or the service disk and the master control disk are disconnected in the first communication mode, the master control disk can keep the state of the first port when the service disk and the master control disk are normally communicated last time, namely, when the service disk and the master control disk are communicated in the first communication mode. When receiving a first request sent by the service disk through the second communication mode, the main control disk inquires the state of the reserved first port and returns the state of the first port to the service disk under the normal communication condition, so that the first communication mode is reestablished between the service disk and the main control disk.
By sending the first request to the master control disk and adjusting the state of the first port to the state corresponding to the second response under the condition of receiving the second response, the normal communication connection between the service disk and the master control disk can be recovered in time, so that the network state of the access device is recovered to be normal.
In an embodiment, before the receiving the first information sent by the master control disk through the first communication mode, the method further includes:
configuring an address forwarding table of the first switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
Here, before receiving the first information sent by the master controller by the first communication method, an Address Transfer Unit (ATU) of the first switch chip is configured, and the service controller and the master controller communicate based on the Address transfer table.
Specifically, the port number of the second port of the second switch chip of the master control panel may be configured in the address forwarding table of the first switch chip, and after the configuration of the address forwarding table is completed, the BPDU message sent by the service panel is only forwarded to the second port of the second switch chip of the master control panel through the first port of the first switch chip, and is not forwarded to other ports.
The uniqueness of the flow direction of the BPDU message sent by the service disk is ensured by configuring the address forwarding table of the first switching chip, which is beneficial to ensuring the stability of the network state of the access equipment.
In the embodiment of the application, first information sent by a master control panel is received through a first communication mode, and the first information represents that a set protocol of the master control panel is in a normal operation state. And under the condition that the first information of the master control disk is not received within the set time length, adjusting the first port of the first exchange chip of the service disk to be in a first state. Wherein the first state is indicative of port blocking. And when the first port is in the first state, the first communication mode of the service disk and the master control disk is disconnected. Therefore, under the condition that the master control panel and the service panel are communicated through the cascade connection of the switching chips, and when the service panel does not receive the first information of the master control panel within the set time, the set protocol of the master control panel is considered to be in an abnormal operation state, at the moment, the service panel can adjust the first port of the first switching chip to be in a port blocking state, the first communication mode with the master control panel is disconnected, and network faults are avoided under the condition that the set protocol of the master control panel is abnormal in operation. When the network management method of the embodiment of the application is applied to the ring network and the set protocol is the ring network protocol, and the service disk does not receive the first information of the master control disk within the set time length, the ring network protocol of the master control disk is considered to be in an abnormal operation state, at this time, the service disk adjusts the first port to be in a port blocking state and disconnects the first communication mode with the master control disk, so that a network loop is prevented from being caused in the ring network, and a network storm is avoided.
Fig. 4 is a schematic view of an implementation flow of a network management method provided in the embodiment of the present application, where the method is applied to a master control disk. As shown in fig. 4, the method includes:
step 401: sending first information to the service disk through a first communication mode; the first information represents that the set protocol of the master control disk is in a normal running state.
Here, the master control disk sends first information to the service disk through a first communication mode, and the first information represents that a set protocol of the master control disk is in a normal operation state.
In practical applications, the setting protocol may be RSTP. When the RSTP is configured for the master disk, the number of ports managed by the RSTP is also required to be configured, and the ports managed by the RSTP include the first port of the first switch chip of each service disk. Writing a Socket program in a central processing unit of a master control disk, receiving and transmitting a BPDU message through the Socket program, establishing a timing task through the Socket program, polling the state of a managed first port, and updating the state of the first port of the master control disk according to the state of the first port and the content of the received and transmitted BPDU message, wherein the state of the first port comprises blocking Block, Learning and Forward.
In practical application, the master control disk sends the first information to the service disk in a cycle at regular time intervals.
Step 402: under the condition that a third response of the service disk about the first information is not received within a set time length, adjusting a second port of a second exchange chip of the master control disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
Here, if the first communication mode between the master control disk and the service disk is normal, after the master control disk sends the first information each time, a third response of the service disk about the first information is received, and the third response represents that the service disk successfully receives the first information.
If the third response of the service disk about the first information is not received within the set time length, which indicates that the service disk does not successfully receive the first information, at this time, a problem may possibly occur in the first communication mode between the master control disk and the service disk, and in this case, in order to avoid the generation of a network loop, the second port of the second switch chip of the master control disk is adjusted to be in the first state, that is, the port blocking state. And under the condition that the second port of the second exchange chip is in a port blocking state, the first communication mode of the main control panel and the service panel is disconnected.
It should be noted that the second port of the second switch chip of the master control panel is connected to the first port of the first switch chip of the service panel, and the communication between the master control panel and the service panel is realized through the cascade connection of the second switch chip and the first switch chip. The second exchange chip and the first exchange chip are respectively configured with different chip numbers. In practical applications, the second port of the second switch chip is also referred to as a cascade port, and the cascade port is configured in a distributed flag DSATag mode and configured with a corresponding port number. By configuring the second port of the second switching chip to the DSATag mode, when a message forwarded by the second port is received, forwarding processing can be performed only according to relevant information of DSATag in the message, so that the forwarding speed of the message is improved to the greatest extent.
In an embodiment, before the sending the first information to the service disk through the first communication mode, the method further includes:
receiving second information sent by the service disk; the second information represents the current state of the first port;
under the condition that the second information is not matched with the state of the first port stored in the main control disk, sending a first response to the service disk; wherein,
the first response corresponds to a state of a first port stored in the master control disk, and is used for the service disk to adjust the state of the first port to a state corresponding to the first response.
Here, before sending the first information to the service disk through the first communication mode, the master control disk receives second information sent by the service disk, and the second information represents a current state of the first port of the first switch chip of the service disk. The central processing unit of the master control disk stores the state of the first port of the first switching chip of the service disk, when receiving the second information, the second information is compared with the stored state of the first port, and if the second information is not matched with the first information, a first response is sent to the service disk. And after the service disk receives the first response, the state of the first port is adjusted to be the state corresponding to the first response.
Illustratively, the second information sent by the service disk indicates that the first port is in a learning state, and the first port stored in the master control disk is in a Forward state, at this time, because the second information is not matched with the state of the first port stored in the master control disk, the master control disk sends a first response to the service disk, and the first response corresponds to the Forward state. And after receiving the first response, the service disk adjusts the state of the first port to a Forward state, so that the synchronization of the state of the first port stored in the master control disk and the state of the first port in the service disk is realized.
It should be noted that, if the state of the first port of the main control disk storage of the access device is inconsistent with the current state of the first port of the service disk, the access device may be unable to access, that is, the access device may be disconnected, and therefore, the state of the first port of the main control disk storage and the state of the first port of the service disk need to be synchronized.
In some application scenarios, the master control disk may not send the first information to the service disk in time within a set time length in a state where the protocol is set to operate normally, and at this time, the service disk adjusts the state of the first port to a blocking state, which causes the state of the first port stored in the master control disk to be inconsistent with the state of the first port of the service disk, resulting in loss of connection of the access device.
By sending the second information to the master control disk and modifying the state of the first port into the state corresponding to the first response under the condition of receiving the first response, the synchronization of the state of the first port stored in the master control disk and the state of the first port of the service disk can be realized, and the master control disk can accurately manage the state of the first port of the service disk.
In an embodiment, when the state of the second port is the first state, the master control disk communicates with the service disk in a second communication mode; when the state of the second port is a second state, the master control disk and the service disk communicate in a first communication mode;
after the adjusting the second port of the second switch chip of the master control to the first state, the method further comprises:
receiving a first request of the service disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
sending a second response to the service disk regarding the first request; wherein,
the second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to the state corresponding to the second response.
Here, when the second port is in the first state, that is, when the second port is in the port blocking state, the master and the service disks communicate with each other in the second communication method. When the second port is in the second state, that is, the first port is in the learning state or the forwarding state, the master control disk communicates with the service disk in the first communication mode, that is, communicates through a normal network message.
After the second port is adjusted to the first state, the master control disk receives a first request of the service disk through the second communication mode, and the first request is used for requesting to establish the first communication mode with the master control disk. After receiving the first request, the master control disk sends a second response about the first request to the service disk. The second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to a state corresponding to the second response.
And the service disk adjusts the state of the first port to the state corresponding to the second response under the condition that the second response of the master control disk is received. The second response corresponds to the second state of the first port, so that the adjusted state of the first port is the second state, and the service disk and the master control disk are communicated in the first communication mode.
It should be noted that, in the second communication mode, the master control disk and the service disk cannot receive and transmit normal network messages, and only can receive and transmit BPDU messages, so the state of the first port can be adjusted according to the message content of the BPDU messages. Therefore, the first request is a BPDU message.
In practical application, in some application scenarios, after the service disk is unplugged, the master control disk may consider the state of the first port as the first state. When the service disk is in an upgrade state or the service disk and the master control disk are disconnected in the first communication mode, the master control disk can keep the state of the first port when the service disk and the master control disk are normally communicated last time, namely, when the service disk and the master control disk are communicated in the first communication mode. When receiving a first request sent by the service disk through the second communication mode, the main control disk inquires the state of the reserved first port and returns the state of the first port to the service disk under the normal communication condition, so that the first communication mode is reestablished between the service disk and the main control disk.
By receiving the first request of the service disk and sending the second response, the service disk adjusts the state of the first port to the state corresponding to the second response, so that the normal communication connection between the service disk and the master control disk can be timely recovered, and the network state of the access device is recovered to be normal.
In an embodiment, before the sending the first information to the service disk through the first communication mode, the method further includes:
configuring an address forwarding table of the second switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
Before the first information is sent to the service disk through the first communication mode, an address forwarding table of the second switching chip is configured, and the service disk and the master control disk communicate based on the address forwarding table.
Specifically, the port number of the first port of the first switch chip of the service disk may be configured in the address forwarding table of the second switch chip, and after the configuration of the address forwarding table is completed, the BPDU message sent by the master control disk is only forwarded to the first port of the first switch chip of the service disk through the second port of the second switch chip, and is not forwarded to other ports. And the BPDU message received by the master control disk is only forwarded to the port connected with the central processing unit of the master control disk through the second port of the second exchange chip, and the received BPDU message is reported to the software protocol layer of the master control disk for processing.
By configuring the address forwarding table of the second switch chip, the uniqueness of the flow direction of the BPDU message received and transmitted by the master control panel is ensured, which is beneficial to ensuring the stability of the network state of the access device.
To implement the method shown in fig. 2 according to the embodiment of the present application, an embodiment of the present application further provides a network management device, and fig. 5 is a schematic diagram of the network management device provided in the embodiment of the present application, and as shown in fig. 5, the device includes:
a receiving unit 501, configured to receive first information sent by a master control disk through a first communication mode; the first information represents that the set protocol of the master control disk is in a normal running state.
An adjusting unit 502, configured to adjust a first port of a first switch chip of the service disk to a first state when first information of the master control disk is not received within a set time length; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In an embodiment, the adjusting unit 502 is further configured to send second information to the master control panel; the second information represents the current state of the first port;
under the condition that a first response of the master control panel about the second information is received, adjusting the first port to a state corresponding to the first response; wherein,
the first response is sent by the master control disk when the second information does not match the state of the first port of the master control disk storage; the first response corresponds to a state of the first port of the master disk storage.
In an embodiment, when the state of the first port is a first state, the service disk and the master control disk communicate in a second communication mode; when the state of the first port is a second state, the service disk communicates with the master control disk in a first communication manner, and the adjusting unit 502 is further configured to send a first request to the master control disk through the second communication manner; the first request is used for requesting to establish a first communication mode with the master control panel;
under the condition that a second response of the master control disk about the first request is received, adjusting the state of the first port to a state corresponding to the second response; wherein,
the second response corresponds to a second state of the first port.
In one embodiment, the apparatus further comprises: a configuration unit, configured to configure an address forwarding table of the first switch chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
In practical applications, the receiving Unit 501, the adjusting Unit 502, and the configuring Unit may be implemented by a Processor in a terminal, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA).
It should be noted that: in the network management device according to the above embodiment, when displaying information, the division of each program module is merely used as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the above-described processing. In addition, the network management apparatus provided in the foregoing embodiment and the network management method embodiment shown in fig. 2 belong to the same concept, and details of a specific implementation process thereof are referred to as method embodiments, and are not described herein again.
To implement the method shown in fig. 4 according to the embodiment of the present application, an embodiment of the present application further provides a network management device, and fig. 6 is a schematic diagram of the network management device provided in the embodiment of the present application, and as shown in fig. 6, the device includes:
a sending unit 601, configured to send first information to the service disk through a first communication method; the first information represents that a set protocol of the master control panel is in a normal running state;
an adjusting unit 602, configured to adjust a second port of a second switch chip of the master control disk to a first state when a third response of the service disk about the first information is not received within a set time duration; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In an embodiment, the sending unit 601 is further configured to receive second information sent by the service disk; the second information represents the current state of the first port;
under the condition that the second information is not matched with the state of the first port stored in the main control disk, sending a first response to the service disk; wherein,
the first response corresponds to a state of a first port stored in the master control disk, and is used for the service disk to adjust the state of the first port to a state corresponding to the first response.
In an embodiment, when the state of the second port is the first state, the master control disk communicates with the service disk in a second communication mode; when the state of the second port is the second state, the master control disk communicates with the service disk in the first communication mode, and the unit 502 is further configured to perform the second communication.
In an embodiment, the sending unit 601 is further configured to receive a first request of the service disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
sending a second response to the service disk regarding the first request; wherein,
the second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to the state corresponding to the second response.
In one embodiment, the apparatus further comprises: the configuration unit is used for configuring an address forwarding table of the second switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
In practical applications, the sending Unit 601, the adjusting Unit 602, and the configuring Unit may be implemented by a Processor in the terminal, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA).
It should be noted that: in the network management device according to the above embodiment, when displaying information, the division of each program module is merely used as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the above-described processing. In addition, the network management apparatus provided in the foregoing embodiment and the network management method embodiment shown in fig. 4 belong to the same concept, and details of a specific implementation process thereof are referred to as method embodiments, and are not described herein again.
Based on the hardware implementation of the program module, in order to implement the method of the embodiment of the present application, an embodiment of the present application further provides an electronic device. Fig. 7 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device includes:
a communication interface 701 capable of performing information interaction with other devices such as a network device and the like;
and the processor 702 is connected with the communication interface 701 to implement information interaction with other devices, and is configured to execute the method provided by one or more technical solutions of the terminal side when running a computer program. And the computer program is stored on the memory 703.
Specifically, the communication interface 701 is configured to receive first information sent by a master control panel through a first communication mode; the first information represents that the set protocol of the master control disk is in a normal running state.
The processor 702 is configured to adjust a first port of a first switch chip of the service disk to a first state when first information of the master control disk is not received within a set time duration; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In an embodiment, before the receiving of the first information sent by the master control disk through the first communication mode, the communication interface 701 is further configured to send second information to the master control disk; the second information represents the current state of the first port;
the processor 702 is further configured to, in a case where a first response of the master control disk about the second information is received, adjust the first port to a state corresponding to the first response; wherein,
the first response is sent by the master control disk when the second information does not match the state of the first port of the master control disk storage; the first response corresponds to a state of the first port of the master disk storage.
In an embodiment, when the state of the first port is a first state, the service disk and the master control disk communicate in a second communication mode; when the state of the first port is a second state, the service disk and the master control disk communicate in a first communication mode;
after the first port of the first switch chip of the service disk is adjusted to the first state, the communication interface 701 is further configured to send a first request to the master control disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
the processor 702 is further configured to, in a case that a second response of the master control disk is received with respect to the first request, adjust the state of the first port to a state corresponding to the second response; wherein,
the second response corresponds to a second state of the first port.
In an embodiment, before the receiving the first information sent by the master controller through the first communication mode, the processor 702 is further configured to configure an address forwarding table of the first switch chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
In an embodiment, the communication interface 701 is further configured to send first information to the service disk through a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
the processor 702 is further configured to adjust the second port of the second switch chip of the master control disk to a first state if a third response of the service disk about the first information is not received within a set time length; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
In an embodiment, before the first information is sent to the service disk through the first communication mode, the communication interface 701 is further configured to receive second information sent by the service disk; the second information represents the current state of the first port;
under the condition that the second information is not matched with the state of the first port stored in the main control disk, sending a first response to the service disk; wherein,
the first response corresponds to a state of a first port stored in the master control disk, and is used for the service disk to adjust the state of the first port to a state corresponding to the first response.
In an embodiment, when the state of the second port is the first state, the master control disk communicates with the service disk in a second communication mode; when the state of the second port is a second state, the master control disk and the service disk communicate in a first communication mode; after the second port of the second switch chip of the master control disk is adjusted to the first state, the communication interface 701 is further configured to receive a first request of the service disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
sending a second response to the service disk regarding the first request; wherein,
the second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to the state corresponding to the second response.
In an embodiment, before the sending the first information to the service disk through the first communication manner, the processor 702 is further configured to configure an address forwarding table of the second switch chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
Of course, in practice, the various components in the electronic device are coupled together by the bus system 704. It is understood that the bus system 704 is used to enable communications among the components. The bus system 704 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 7 as the bus system 704.
The memory 703 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 703 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 703 described in the embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The methods disclosed in the embodiments of the present application may be implemented in the processor 702 or implemented by the processor 702. The processor 702 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 702. The processor 702 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 702 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 703, and the processor 702 reads the program in the memory 703 and performs the steps of the foregoing methods in combination with its hardware.
The processor 702, when executing the program, implements the corresponding flow in the methods of the embodiments of the present application.
In an exemplary embodiment, the present application further provides a storage medium, specifically a computer storage medium, for example, a memory 703 storing a computer program, which can be executed by the processor 702 to perform the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A network management method, applied to a service disk, the method comprising:
receiving first information sent by a master control panel in a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
under the condition that the first information of the master control disk is not received within a set time length, adjusting a first port of a first exchange chip of the service disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
2. The network management method according to claim 1, wherein before the receiving the first information sent by the master control disk through the first communication mode, the method further comprises:
sending second information to the master control disk; the second information represents the current state of the first port;
under the condition that a first response of the master control panel about the second information is received, adjusting the first port to a state corresponding to the first response; wherein,
the first response is sent by the master control disk when the second information does not match the state of the first port of the master control disk storage; the first response corresponds to a state of the first port of the master disk storage.
3. The network management method according to claim 1, wherein, when the state of the first port is a first state, the service disk communicates with the master disk in a second communication mode; when the state of the first port is a second state, the service disk and the master control disk communicate in a first communication mode;
after the adjusting the first port of the first switch chip of the service disk to the first state, the method further includes:
sending a first request to the master control disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
under the condition that a second response of the master control disk about the first request is received, adjusting the state of the first port to a state corresponding to the second response; wherein,
the second response corresponds to a second state of the first port.
4. The network management method according to claim 1, wherein before the receiving the first information sent by the master control disk through the first communication mode, the method further comprises:
configuring an address forwarding table of the first switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
5. A network management method is applied to a master control disk, and comprises the following steps:
sending first information to the service disk through a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
under the condition that a third response of the service disk about the first information is not received within a set time length, adjusting a second port of a second exchange chip of the master control disk to be in a first state; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
6. The method for managing the network according to claim 5, wherein before the sending the first information to the service disk through the first communication mode, the method further comprises:
receiving second information sent by the service disk; the second information represents the current state of the first port;
under the condition that the second information is not matched with the state of the first port stored in the main control disk, sending a first response to the service disk; wherein,
the first response corresponds to a state of a first port stored in the master control disk, and is used for the service disk to adjust the state of the first port to a state corresponding to the first response.
7. The network management method according to claim 5, wherein, when the state of the second port is the first state, the master control disk communicates with the service disk in a second communication mode; when the state of the second port is a second state, the master control disk and the service disk communicate in a first communication mode;
after the adjusting the second port of the second switch chip of the master control to the first state, the method further comprises:
receiving a first request of the service disk through the second communication mode; the first request is used for requesting to establish a first communication mode with the master control panel;
sending a second response to the service disk regarding the first request; wherein,
the second response corresponds to a second state of the first port, and is used for the service disk to adjust the state of the first port to the state corresponding to the second response.
8. The method for managing the network according to claim 5, wherein before the sending the first information to the service disk through the first communication mode, the method further comprises:
configuring an address forwarding table of the second switching chip; wherein,
and the service disk and the master control disk communicate based on the address forwarding table.
9. A network management apparatus, the apparatus comprising:
the receiving unit is used for receiving first information sent by the master control panel through a first communication mode; the first information represents that a set protocol of the master control panel is in a normal running state;
the adjusting unit is used for adjusting the first port of the first switching chip of the service disk to be in a first state under the condition that the first information of the master control disk is not received within a set time length; wherein,
the first state is indicative of port blocking; and when the first port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
10. A network management apparatus, the apparatus comprising:
a sending unit, configured to send first information to the service disk in a first communication manner; the first information represents that a set protocol of the master control panel is in a normal running state;
an adjusting unit, configured to adjust a second port of a second switch chip of the master control panel to a first state when a third response of the service panel about the first information is not received within a set duration; wherein,
the first state is indicative of port blocking; and when the second port is in the first state, the first communication mode between the service disk and the master control disk is disconnected.
11. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is adapted to perform the steps of the method of any one of claims 1-4 or claims 5-8 when running the computer program.
12. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method as set forth in any one of claims 1-4 or claims 5-8.
CN202111286980.2A 2021-11-02 2021-11-02 Network management method and device Active CN114205207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111286980.2A CN114205207B (en) 2021-11-02 2021-11-02 Network management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111286980.2A CN114205207B (en) 2021-11-02 2021-11-02 Network management method and device

Publications (2)

Publication Number Publication Date
CN114205207A true CN114205207A (en) 2022-03-18
CN114205207B CN114205207B (en) 2024-06-04

Family

ID=80646603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111286980.2A Active CN114205207B (en) 2021-11-02 2021-11-02 Network management method and device

Country Status (1)

Country Link
CN (1) CN114205207B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208618A1 (en) * 2002-01-07 2003-11-06 Gal Mor Fast failure protection using redundant network edge ports
US6751191B1 (en) * 1999-06-29 2004-06-15 Cisco Technology, Inc. Load sharing and redundancy scheme
US20060050741A1 (en) * 1998-04-16 2006-03-09 Avaya Communication Israel Ltd. Distributed port-blocking method
JP2007174119A (en) * 2005-12-20 2007-07-05 Mitsubishi Electric Corp Layer 2 network
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system
CN101917648A (en) * 2010-08-27 2010-12-15 中兴通讯股份有限公司 Method for implementing service control in all-fiber protection system and device thereof
JP2012178749A (en) * 2011-02-28 2012-09-13 Mitsubishi Electric Corp Ring shaped network system
US20130170507A1 (en) * 2011-12-13 2013-07-04 Canning Hsueh Time synchronization for network testing equipment
US20130258840A1 (en) * 2012-03-30 2013-10-03 Ciena Corporation Generalized service protection systems and methods
CN110945847A (en) * 2017-10-13 2020-03-31 华为技术有限公司 Method, device and system for rapidly recovering service in path switching process
CN111130943A (en) * 2019-12-27 2020-05-08 深圳市丰润达科技有限公司 Method for realizing fast ring network switching, switch and computer readable storage medium
CN111865637A (en) * 2019-04-30 2020-10-30 烽火通信科技股份有限公司 Fault recovery method and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050741A1 (en) * 1998-04-16 2006-03-09 Avaya Communication Israel Ltd. Distributed port-blocking method
US6751191B1 (en) * 1999-06-29 2004-06-15 Cisco Technology, Inc. Load sharing and redundancy scheme
US20030208618A1 (en) * 2002-01-07 2003-11-06 Gal Mor Fast failure protection using redundant network edge ports
JP2007174119A (en) * 2005-12-20 2007-07-05 Mitsubishi Electric Corp Layer 2 network
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system
CN101917648A (en) * 2010-08-27 2010-12-15 中兴通讯股份有限公司 Method for implementing service control in all-fiber protection system and device thereof
JP2012178749A (en) * 2011-02-28 2012-09-13 Mitsubishi Electric Corp Ring shaped network system
US20130170507A1 (en) * 2011-12-13 2013-07-04 Canning Hsueh Time synchronization for network testing equipment
US20130258840A1 (en) * 2012-03-30 2013-10-03 Ciena Corporation Generalized service protection systems and methods
CN110945847A (en) * 2017-10-13 2020-03-31 华为技术有限公司 Method, device and system for rapidly recovering service in path switching process
CN111865637A (en) * 2019-04-30 2020-10-30 烽火通信科技股份有限公司 Fault recovery method and system
CN111130943A (en) * 2019-12-27 2020-05-08 深圳市丰润达科技有限公司 Method for realizing fast ring network switching, switch and computer readable storage medium

Also Published As

Publication number Publication date
CN114205207B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
CN101841408A (en) Primary/standby route equipment switching method and route equipment
CN112787960B (en) Stack splitting processing method, device and equipment and storage medium
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
JP2005354362A (en) Network repeater and its controlling method
CN104468231A (en) SDN interchanger and controller dynamic registration method
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN104486128A (en) System and method for realizing redundant heartbeat between nodes of double-controller
CN107547374B (en) Aggregation route processing method and device
CN109194592B (en) Method and system for solving island problem in multi-link network
CN110011912A (en) Case type switching equipment uplink switching method and device
JP2008131614A (en) Communication device processing operation administration and maintenance frame, data structure, and program
CN114124667A (en) Dual-network-port redundancy backup method and system
CN105763442A (en) PON system and method avoiding interruption of LACP aggregation link in main-standby switching process
CN106027313B (en) Network link disaster tolerance system and method
KR101358995B1 (en) Method and system for managing high availability
KR20160090485A (en) Method and apparatus for operating distributed controllers of software defined network
JP4806382B2 (en) Redundant system
CN108337162B (en) System and method for supporting dual-homing protection
CN104158694B (en) The hot spare method and device of DHCPv6 servers
CN114205207A (en) Network management method and device
CN114124803B (en) Device management method and device, electronic device and storage medium
CN102868616A (en) Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system
CN108881070A (en) Method and apparatus for the selection port in Smart Link group
CN102984490B (en) A kind of network video recorder
CN103916280A (en) Blade server management network driving DHCP allocating method

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