CN112636999A - Port detection method and network monitoring system - Google Patents
Port detection method and network monitoring system Download PDFInfo
- Publication number
- CN112636999A CN112636999A CN202011357643.3A CN202011357643A CN112636999A CN 112636999 A CN112636999 A CN 112636999A CN 202011357643 A CN202011357643 A CN 202011357643A CN 112636999 A CN112636999 A CN 112636999A
- Authority
- CN
- China
- Prior art keywords
- port
- storage
- switch
- storage node
- state
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present specification provides a port detection method and a network monitoring system, the method including: the storage node sends a subscription message to a storage switch, so that the storage switch determines a switch port needing to be monitored on the storage switch according to the subscription message, receives a port state of the switch port obtained by monitoring of the storage switch, and judges a working state of the storage port corresponding to the switch port according to the port state. By the method, the storage switch can actively monitor the port state of the switch port corresponding to the storage port and inform the storage node of the port state, so that the storage node determines the working state of the storage port according to the port state of the switch port.
Description
Technical Field
The present disclosure relates to the field of network monitoring, and in particular, to a port detection method and a network monitoring system.
Background
Driven by explosive growth of data, distributed storage is favored by more and more enterprises and solutions by virtue of the advantages of online capacity expansion, free capacity expansion, uninterrupted service and nearly linear growth of performance along with the increase of the number of nodes. However, how to report the health state of the distributed storage nodes to the distributed storage quickly and accurately is a difficult problem which always puzzles the distributed storage. The customer has higher and higher requirement on the availability of the storage, the tolerable degree of the IO interruption time of the front-end service during the node failure is realized, from the original minute level to the 30s level, more enterprises put forward the IO service interruption requirement of the <10s level at present, and put forward higher requirement on the failure switching of the distributed storage, and in addition, from the service operation and maintenance perspective, the enterprises and administrators need to clearly distinguish whether the network failure of the distributed storage or the single machine power failure abnormality of a certain node of the distributed storage.
Disclosure of Invention
Embodiments of the present description provide a port detection method and a network monitoring system, which enable a storage switch to actively monitor a port state of a switch port corresponding to a storage port, and notify the port state to a storage node, so that the storage node determines a working state of the storage port according to the port state of the switch port.
An embodiment of the present specification provides a method for detecting a port, including:
the storage node sends a subscription message to a storage switch, so that the storage switch determines a switch port needing to be monitored on the storage switch according to the subscription message;
receiving the port state of the switch port monitored by the storage switch, and judging the working state of the storage port corresponding to the switch port according to the port state.
Optionally, before the storage node sends the subscription packet to the storage switch, the method further includes:
acquiring a corresponding relation between a switch port and a storage port of the storage switch;
and generating the subscription message according to the corresponding relation, and carrying the port information of the switch port corresponding to the storage port in the subscription message so as to enable the storage switch to monitor the port state of the switch port corresponding to the storage port.
Specifically, the obtaining of the corresponding relationship between the switch port and the storage port of the storage switch specifically includes:
the storage node sends a detection message to a storage switch connected with the storage node through a storage port;
determining a switch port corresponding to the storage port according to switch port information carried in a feedback message sent by the storage switch aiming at the detection message, and establishing a corresponding relation between the switch port and the storage port; alternatively, the first and second electrodes may be,
and configuring the corresponding relation between the switch port and the storage port in the storage node.
The embodiment can show that the storage node can send the subscription message to the storage switch, so that the storage switch monitors the switch port of the storage switch according to the subscription message, receives the port information monitored by the storage switch, and determines the working state of the storage port according to the port information, thereby avoiding the technical problems of excessive detection information and overlong detection time caused by the Ping detection without adopting the Ping detection.
An embodiment of the present specification further provides a method for detecting a port, where the method includes:
receiving a subscription message sent by a storage node, and determining a switch port needing to be monitored according to the subscription message;
and acquiring the port state of the switch port, and sending the port state to the storage node, so that the storage node determines the working state of the storage port corresponding to the switch port according to the port state.
Optionally, the receiving a subscription packet sent by the storage node, and determining, according to the subscription packet, a switch port that needs to be monitored specifically includes:
receiving a subscription message sent by a storage node, wherein the subscription message carries switch port information corresponding to a storage port of the storage node;
and monitoring the switch port corresponding to the switch port information according to the switch port information.
Optionally, the obtaining the port state of the switch port specifically includes:
and acquiring the up or down state of the port of the switch, and sending the up or down state to a storage node.
Optionally, the method further includes:
receiving a detection message sent by a storage node, wherein the detection message carries an MAC address of the storage node;
inquiring switch port information related to the MAC address of the storage node according to a local MAC address table;
and sending the switch port information to a storage node through a feedback message.
The embodiment shows that the storage switch can receive the subscription message sent by the storage node, monitor the switch port according to the switch port number carried in the subscription message, and feed back the monitored port information to the storage node, so that the storage node determines the working state of the storage port according to the port information, thereby avoiding the occurrence of excessive detection messages caused by Ping detection.
An embodiment of the present specification further provides a network monitoring system, where the system includes a storage node and a storage switch communicatively connected to the storage node, and the system includes: the storage node sends a subscription message to a storage switch, wherein the subscription message comprises switch port information corresponding to a storage port of the storage node;
the storage switch receives a subscription message sent by a storage node, monitors a switch port according to switch port information carried in the subscription message, acquires a monitored port state of the switch port, and sends the port state to the storage node;
the storage node receives a port state of an exchanger port sent by a storage exchanger, and judges the working state of the storage port corresponding to the exchanger port according to the port state.
Optionally, the port state of the switch port includes: up or down state of the switch port.
According to the embodiment, when the storage port in the system is detected, the Ping mode detection is not needed, so that the technical problems that the detection messages are too many due to the Ping mode detection, and the working state instantaneity of the storage port acquired by the storage node is low are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a port detection method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a network architecture according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the current detection method of the port, as shown in fig. 1, each node mainly detects whether the communication of neighboring nodes is reachable through a Ping command, and all nodes need to detect other nodes to form full-mesh detection in order to detect a fault as soon as possible and prevent split brain or misjudgment caused by network reasons. Therefore, due to the staggered detection periods, the purpose of reporting the fault node can be realized as soon as possible.
However, with the technique similar to ping, it is first determined that there are a plurality of pings without response, and the number of non-responses cannot be too small to prevent misdetermination, and the waiting time of the plurality of pings is generally in the order of seconds. After Ping reports, in order to prevent false reports due to self or network reasons, the management node generally needs to wait until more than half of the nodes report, and the management node can finally determine that the node is unreachable, so that the waiting time increases the time for fault determination.
For faster detection, the interval of each probe cycle needs to be reduced, but the probe message is mostly a packet and is a non-storage service type message, and full-mesh probing may cause a reduction in the effective utilization rate of the network for transmitting the storage service, thereby affecting service performance.
In order to solve the above technical problem, an embodiment of the present disclosure provides a method for detecting a port, as shown in fig. 2, the method includes:
s101, a storage node sends a subscription message to a storage switch, so that the storage switch determines a switch port needing to be monitored on the storage switch according to the subscription message;
s102, receiving the port state of the switch port monitored by the storage switch, and judging the working state of the storage port corresponding to the switch port according to the port state.
In the embodiment, a distributed storage networking structure is exemplified, in the distributed storage networking, in order to prevent a single point failure of a switch, the switch is configured with 2 (or more than 2) switches for stacking, and is interconnected with 2 network ports/optical ports of storage nodes by means of link aggregation, wherein the storage node may be a storage server, as shown in fig. 3, switch-1 and switch-2 are stacked via IRF, and as corresponding storage ports (i.e., switch ports for storage) via switch port numbers 1/0/1, 1/0/2, 1/0/3, 1/0/4, 1/0/5, 2/0/1, 2/0/2, 2/0/3, 2/0/4, 2/0/5.
In this embodiment, a storage server (i.e., the storage node described in this embodiment) may configure a corresponding relationship between a storage port and a switch port (i.e., a switch port number) to identify that those ports on a switch are used for storage, and if the administrator does not know the corresponding relationship, a probe packet may be sent to the switch connected to the storage server (in this embodiment, when the storage server sends a probe packet, a subscription packet, and other packets, the storage server may instruct a decision node to send the probe packet, where the decision node may be a node disposed between the server and the switch, and in order to describe that sending various packets by the storage server described later may instruct the decision node to send by the storage server, which will not be explained later).
Generally, when a storage server sends a probe message to a storage switch, the storage switch receives the probe message through a communication relationship with the storage server, and the storage switch may determine who is a switch port associated with the storage server by identifying which storage switch port receives the probe message (i.e., storage switch port information corresponding to the storage port).
Or in another mode, the detection message sent by the storage server to the storage switch may carry the MAC address of the storage server, and after receiving the detection message, the storage switch may query the MAC address table according to the carried MAC address, so as to obtain switch port information associated with the carried MAC address, and further determine that the associated switch port corresponds to the storage port.
After the storage switch determines that some switch ports (switch port numbers) of the storage switch correspond to storage ports (the corresponding meaning includes that the switch ports are storage ports), the storage switch may send the switch port information (switch port numbers) to the server through a feedback message, so that the storage server executes step S101.
In step S101, the storage server may carry switch port information corresponding to the storage port in the subscription message sent to the storage switch (i.e. the switch port number used for communicating with the storage server in the storage switch acquired by the storage server in the above embodiment), and the message format thereof is as follows (it should be noted that the message structure is merely an exemplary illustration):
after the storage switch receives the subscription message, the switch port corresponding to the storage port on the switch can be monitored.
Specifically, the storage switch monitors the corresponding switch port according to the switch port number carried in the subscription message, the main monitoring content of the storage switch includes, but is not limited to, the up or down state of the switch port, and after the port state of the switch port is obtained, the port state is sent to the storage server, and the message format of the storage switch is as follows (it should be noted that the message structure is only an exemplary description)
After receiving the feedback message sent by the storage switch, the storage server can determine whether the corresponding storage port works normally according to the port state of the switch port carried in the feedback message.
In another embodiment, the storage switch may monitor a port state of a switch port corresponding to the storage port in real time, and actively send a feedback message to the storage server when the port state of a certain switch port changes, so that the storage server can master the port state of the switch port for executing the storage function in the storage switch in real time.
When the scheme is executed, because the feedback message sent by the storage switch can be sent in a multicast mode, each node in the group can receive the feedback message, when the port down state exists in the feedback message received by each node, an alarm can be sent to the alarm module, and an administrator can set that the switch port with the alarm is true down after the received alarm reaches a certain number of times, so that the occurrence of false alarm is avoided.
It can be seen from the foregoing embodiments that, in this embodiment, the storage node sends the subscription packet to the storage switch, so that the storage switch monitors according to the switch port number carried in the subscription packet, and can actively and quickly send the port state of the switch port corresponding to the storage port to the storage server, so that the storage server can timely know the failed port existing on the storage switch.
An embodiment of the present specification further provides a network monitoring system, where the system includes a storage node and a storage switch communicatively connected to the storage node, where the storage node may be a storage server, and the storage switch may be a network switch, and the system includes:
the storage node storage switch sends a subscription message, wherein the subscription message comprises switch port information corresponding to a storage port of the storage node;
the storage switch receives a subscription message sent by the storage node, monitors the switch port according to the switch port information carried in the subscription message, acquires the monitored port state of the switch port, and sends the port state to the storage node.
And the storage node receives the port state of the switch port sent by the storage switch and judges the working state of the storage port corresponding to the switch port according to the port state.
Wherein, the port state of the switch port includes: up or down state of the switch port.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (9)
1. A method for probing a port, the method comprising:
the storage node sends a subscription message to a storage switch, so that the storage switch determines a switch port needing to be monitored on the storage switch according to the subscription message;
receiving the port state of the switch port monitored by the storage switch, and judging the working state of the storage port corresponding to the switch port according to the port state.
2. The method of claim 1, wherein before the storage node sends a subscription message to a storage switch, the method further comprises:
acquiring a corresponding relation between a switch port and a storage port of the storage switch;
and generating the subscription message according to the corresponding relation, and carrying the port information of the switch port corresponding to the storage port in the subscription message so as to enable the storage switch to monitor the port state of the switch port corresponding to the storage port.
3. The method according to claim 2, wherein the obtaining of the correspondence between the switch port and the storage port of the storage switch specifically includes:
the storage node sends a detection message to a storage switch connected with the storage node through a storage port;
determining a switch port corresponding to the storage port according to switch port information carried in a feedback message sent by the storage switch aiming at the detection message, and establishing a corresponding relation between the switch port and the storage port; alternatively, the first and second electrodes may be,
and configuring the corresponding relation between the switch port and the storage port in the storage node.
4. A method for probing a port, the method comprising:
receiving a subscription message sent by a storage node, and determining a switch port needing to be monitored according to the subscription message;
and acquiring the port state of the switch port, and sending the port state to the storage node, so that the storage node determines the working state of the storage port corresponding to the switch port according to the port state.
5. The method according to claim 4, wherein the receiving a subscription packet sent by a storage node, and determining a switch port that needs to be monitored according to the subscription packet specifically includes:
receiving a subscription message sent by a storage node, wherein the subscription message carries switch port information corresponding to a storage port of the storage node;
and monitoring the switch port corresponding to the switch port information according to the switch port information.
6. The method according to claim 4, wherein the obtaining the port status of the switch port specifically includes:
and acquiring the up or down state of the port of the switch, and sending the up or down state to a storage node.
7. The method of claim 4, further comprising:
receiving a detection message sent by a storage node, wherein the detection message carries an MAC address of the storage node;
inquiring switch port information related to the MAC address of the storage node according to a local MAC address table;
and sending the switch port information to a storage node through a feedback message.
8. A network monitoring system comprising a storage node and a storage switch communicatively coupled to the storage node, the system comprising:
the storage node sends a subscription message to a storage switch, wherein the subscription message comprises switch port information corresponding to a storage port of the storage node;
the storage switch receives a subscription message sent by a storage node, monitors a switch port according to switch port information carried in the subscription message, acquires a monitored port state of the switch port, and sends the port state to the storage node;
the storage node receives a port state of an exchanger port sent by a storage exchanger, and judges the working state of the storage port corresponding to the exchanger port according to the port state.
9. The system of claim 8, wherein the port state of the switch port comprises: up or down state of the switch port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011357643.3A CN112636999A (en) | 2020-11-26 | 2020-11-26 | Port detection method and network monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011357643.3A CN112636999A (en) | 2020-11-26 | 2020-11-26 | Port detection method and network monitoring system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112636999A true CN112636999A (en) | 2021-04-09 |
Family
ID=75306562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011357643.3A Pending CN112636999A (en) | 2020-11-26 | 2020-11-26 | Port detection method and network monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112636999A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115277879A (en) * | 2022-06-13 | 2022-11-01 | 新华三技术有限公司 | Message forwarding method and device, intelligent network card and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243239A (en) * | 2014-09-23 | 2014-12-24 | 杭州华三通信技术有限公司 | State inspection method and device for controllers in SDN clusters |
CN106533846A (en) * | 2016-12-30 | 2017-03-22 | 盛科网络(苏州)有限公司 | Network configuration method and test method for testing forwarding performance of switch |
US20190288871A1 (en) * | 2016-12-06 | 2019-09-19 | Huawei Technologies Co., Ltd. | Loop Failure Handling Method and Switch |
-
2020
- 2020-11-26 CN CN202011357643.3A patent/CN112636999A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243239A (en) * | 2014-09-23 | 2014-12-24 | 杭州华三通信技术有限公司 | State inspection method and device for controllers in SDN clusters |
US20190288871A1 (en) * | 2016-12-06 | 2019-09-19 | Huawei Technologies Co., Ltd. | Loop Failure Handling Method and Switch |
CN106533846A (en) * | 2016-12-30 | 2017-03-22 | 盛科网络(苏州)有限公司 | Network configuration method and test method for testing forwarding performance of switch |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115277879A (en) * | 2022-06-13 | 2022-11-01 | 新华三技术有限公司 | Message forwarding method and device, intelligent network card and storage medium |
CN115277879B (en) * | 2022-06-13 | 2023-05-30 | 新华三技术有限公司 | Message forwarding method and device, intelligent network card and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7697440B2 (en) | Scalable selective alarm suppression for data communication network | |
US7639605B2 (en) | System and method for detecting and recovering from virtual switch link failures | |
EP1919138B1 (en) | A method for implementing backup of the uplink | |
CN101132320B (en) | Method for detecting interface trouble and network node equipment | |
CN102315975B (en) | Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof | |
CN104243239B (en) | The condition detection method and device of controller in a kind of SDN clusters | |
CN111490903B (en) | Network data acquisition and processing method and device | |
CN110677282B (en) | Hot backup method of distributed system and distributed system | |
CN111030877A (en) | Main/standby equipment switching method and device | |
CN112636999A (en) | Port detection method and network monitoring system | |
CN110830310B (en) | Cross-data-center disaster backup method and BRAS system | |
CN113518020A (en) | Method, device and equipment for detecting disconnection return and readable storage medium | |
JP3542980B2 (en) | Network system, network entity monitoring method, recording medium | |
US20230106077A1 (en) | Distributed Storage System, Exception Handling Method Thereof, and Related Apparatus | |
CN112769653B (en) | Network detection and switching method, system and medium based on network port binding | |
CN112073270B (en) | Link fault detection method and device | |
CN113542052A (en) | Node fault determination method and device and server | |
CN110601972A (en) | Message transmission method and device and intelligent elastic architecture system | |
CN112714060A (en) | Link detection method and device | |
CN114827052B (en) | ECMP node health condition diagnosis method and device | |
CN115102897B (en) | Stacking splitting protection method based on link aggregation | |
CN100525216C (en) | Scalable selective alarm suppression for data communication network | |
CN116170294B (en) | Network anomaly detection method and system for distributed system | |
CN109802863B (en) | Protocol oscillation processing method and device | |
CN116886574A (en) | Fault detection method and device, home node, detection system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210409 |
|
RJ01 | Rejection of invention patent application after publication |