CN108123848B - Equipment monitoring method and device - Google Patents

Equipment monitoring method and device Download PDF

Info

Publication number
CN108123848B
CN108123848B CN201711374912.5A CN201711374912A CN108123848B CN 108123848 B CN108123848 B CN 108123848B CN 201711374912 A CN201711374912 A CN 201711374912A CN 108123848 B CN108123848 B CN 108123848B
Authority
CN
China
Prior art keywords
bgp
bmp
monitoring
condition
running 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.)
Active
Application number
CN201711374912.5A
Other languages
Chinese (zh)
Other versions
CN108123848A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711374912.5A priority Critical patent/CN108123848B/en
Publication of CN108123848A publication Critical patent/CN108123848A/en
Application granted granted Critical
Publication of CN108123848B publication Critical patent/CN108123848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Abstract

The disclosure relates to a device monitoring method and device. The method comprises the following steps: acquiring running state information of the BGP equipment; setting the BMP function of the BGP equipment in a non-working state as a working state under the condition that the running state information of the BGP equipment meets a preset condition; and sending a monitoring message aiming at the running state of the BGP equipment to the BMP monitoring server. The equipment monitoring method and the equipment monitoring device can ensure that the BMP monitoring server can normally monitor the running state of BGP equipment, relieve the pressure of the BMP monitoring server, reduce the data volume received and processed by the BMP monitoring server and save the resources of the BMP monitoring server.

Description

Equipment monitoring method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a device monitoring method and apparatus.
Background
In the related art, a bmp (BGP Monitoring Protocol) Monitoring server may monitor an operation state of a BGP (Border Gateway Protocol) session on a BGP device in a network in real time. Through the BMP monitoring server, a manager can clearly master the running state of BGP equipment in the network at any time.
Disclosure of Invention
In view of this, the present disclosure provides a device monitoring method and apparatus to solve the problem in the related art that the amount of data received and processed by a BMP monitoring server is large.
According to an aspect of the present disclosure, there is provided a device monitoring method for a BGP device, including:
acquiring running state information of the BGP equipment;
setting the BMP function of the BGP equipment in a non-working state as a working state under the condition that the running state information of the BGP equipment meets a preset condition;
and sending a monitoring message aiming at the running state of the BGP equipment to the BMP monitoring server.
According to another aspect of the present disclosure, there is provided a device monitoring apparatus for a BGP device, including:
a state obtaining module, configured to obtain running state information of the BGP device;
the first setting module is used for setting the BMP function of the BGP equipment in a non-working state as a working state under the condition that the running state information of the BGP equipment meets a preset condition;
and the message sending module is used for sending the monitoring message aiming at the running state of the BGP equipment to the BMP monitoring server.
According to the equipment monitoring method and device, the running state information of the BGP equipment is obtained, the BMP function of the BGP equipment in the non-working state is set to be in the working state under the condition that the running state information of the BGP equipment meets the preset condition, and the monitoring message aiming at the running state of the BGP equipment is sent to the BMP monitoring server, so that the running state of the BGP equipment can be normally monitored by the BMP monitoring server, the pressure of the BGP monitoring server can be relieved, the data volume received and processed by the BMP monitoring server is reduced, and the resources of the BMP monitoring server are saved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of BMP networking, according to an embodiment of the present disclosure.
Fig. 2 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure.
Fig. 3a shows a schematic diagram of a header according to an embodiment of the present disclosure.
Fig. 3b shows a schematic diagram of an alert message according to an embodiment of the present disclosure.
Fig. 4 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure.
Fig. 5 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure.
FIG. 6 shows a block diagram of a device monitoring apparatus according to an embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating an apparatus 900 for equipment monitoring according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the related art, after configuring the address and the monitoring port number (for example, the configured port number is 179) of the BMP monitoring server on the BGP device, the BGP device may automatically establish a TCP (Transmission control protocol) connection with the BMP monitoring server, so as to interact with the monitoring packet. And when monitoring, the BMP monitoring server collects the running state of the monitored BGP equipment. When the number of BGP devices monitored by the BMP monitoring server is large or the number of BGP device routes is large, the pressure of the BMP monitoring server is large. When the BMP monitoring server is deployed, if all BGP devices in the network are monitored, the pressure of the BMP monitoring server is enormous.
Fig. 1 shows a schematic diagram of BMP networking, according to an embodiment of the present disclosure. AS shown in fig. 1, the device R1, the device R2, and the device R3 belong to an AS (Autonomous System) 100. A BGP device that configures the BMP protocol may be referred to as a client, e.g., device R1. The BMP monitoring Server may be referred to as a monitoring terminal, such as BMP Server1 and BMP Server 2. The client can be connected with a plurality of monitoring terminals, for example, R1 is connected with BMP Server1 and BMP Server 2. The TCP connection between the BGP equipment and the BMP monitoring server is established by configuring the address and the monitoring port number of the BMP monitoring server on the BGP equipment, and then the BGP equipment informs the running state and the data information of the BMP monitoring server BGP equipment through the monitoring message.
Fig. 2 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure. The method is used in BGP equipment. As shown in fig. 2, the method may include steps S21 through S23.
In step S21, the operation state information of the BGP device is acquired.
In step S22, if the operation state information of the BGP device satisfies the preset condition, the BMP function in which the BGP device is in the inactive state is set to the active state.
In step S23, a monitoring message for the operating status of the BGP device is sent to the BMP monitoring server.
The BMP function can be switched by the BGP device according to a preset condition and an operating state of the BGP device. In other words, the BGP device may set the BMP function in the non-operating state to the operating state, or may set the BMP function in the operating state to the non-operating state. Under the condition that the BMP function is in a non-working state, the BGP equipment does not inform the BMP monitoring server of a monitoring message. Under the condition that the BMP function is in a working state, the BGP device may notify the BMP monitoring server of the monitoring packet. The monitoring message may be a BMP message.
The BGP device may refer to a device running the BGP protocol, for example, a router running the BGP protocol, and the like, which is not limited in this disclosure. A BMP protocol is configured on BGP equipment, for example, an address and a monitoring port number (for example, 179 port) of a BMP monitoring server are configured on BGP equipment, so that BGP equipment can serve as a client, establish TCP connection with the BMP monitoring server serving as a monitoring end, and use it to interact monitoring packets. The monitoring packet may carry an operation state of the BGP device, such as establishment or release of a peer relationship, which is not limited in this disclosure.
In one implementation manner, the preset condition includes one or more of that the number of neighbor oscillations reaches a first threshold, that the number of route oscillations reaches a second threshold, that the number of routes reaches a third threshold, that a preset route is received, and that the system memory occupancy reaches a fourth threshold.
The neighbor oscillation may refer to a situation that a peer relationship of the BGP device is frequently established or released, which may result in unavailable service and unstable network. In the related art, there may be various reasons for causing the neighbor oscillation, such as a device problem, a link problem, or a policy configuration problem. The first threshold may be set empirically, for example, the first threshold may be 100, which is not limited by the present disclosure. In this case, the BGP device may monitor the neighbor oscillation, that is, notify the BMP monitoring server when the number of neighbor oscillations reaches the first threshold.
In one implementation, the cause of the BGP neighbor oscillation may include: keep-alive message timeout (e.g., Keepalive message timeout), message header error (e.g., BGP message header error), Update message error (e.g., receiving an illegal Update message, receiving an erroneous message, etc.), Open message error (e.g., neighbor BGP capability change), BGP state machine error (e.g., receiving a message in an abnormal state under a normal state machine), or normal exit (e.g., the other party actively initiates a neighbor interrupt message), and the like, which are not limited by the present disclosure. The reason for the BGP neighbor oscillation may be recorded by a BGP protocol, and the device monitoring method of the present disclosure may call BGP data to obtain the reason for the neighbor outage.
As an example, the preset condition is that the number of neighboring oscillations reaches a first threshold, which is 100 as an example. As shown in fig. 1, R1 monitors its own operating state. The neighbor AS number configured by R1 is wrong, so that the peer relationship of R1 is frequently established or released, and the neighbor vibrates. R1 neighbor oscillation frequency reaches more than 100 times, and the neighbor oscillation frequency reaches a first threshold value, so that the preset condition is met. Therefore, the R1 sets the BMP function in the non-working state to be in the working state, establishes connection with the BMPServer1 and the BMP Server2, and sends monitoring messages for the running state of the R1 to the BMP Server1 and the BMP Server2, respectively.
The route oscillation may refer to a situation that the BGP device continuously recalculates the route, which results in unavailable service and unstable network. In the related art, there may be various reasons for causing routing oscillation, such as device problems, link problems, or policy configuration problems. The second threshold may be set empirically, for example, the second threshold may be 100, which is not limited by the present disclosure. In this case, the BGP device may monitor the route oscillation, that is, notify the BMP monitoring server when the number of times of the route oscillation reaches the second threshold.
In one implementation, the BGP local route oscillation may not be a preset condition for initiating BMP monitoring. BGP neighbor route oscillation, that is, the route oscillation caused by BGP neighbor repeatedly publishing and revoking the route, may be used as a preset condition for initiating BMP monitoring. A BGP neighbor route shock may also be a route shock caused by a neighbor of a neighbor. For example, it may be caused by a change in the configuration of the remote BGP, a change in the interface, or a device hang. In addition, the BGP protocol suppresses the oscillation routes, and routes that oscillate many times are suppressed and marked as suppressed routes.
In the related art, the specific route oscillation times are difficult to be counted, for example, route 1 oscillates 10 times, route 2 oscillates 2 times, route 3 oscillates 1 time, and the like. In addition, some routing oscillations are normal routing changes. Therefore, a BGP routing oscillation attenuation mechanism may be used as a preset condition for initiating BMP monitoring. For example, the number of route hunting is reflected by suppressing the number of routes. In other words, the device monitoring method of the present disclosure may use the number of inhibited routes as a preset condition for initiating BMP monitoring, that is, the preset condition is that the number of inhibited routes in the routes advertised by the neighbor reaches the fifth threshold. BMP monitoring may be initiated, for example, when 100 routes advertised by neighbor R3 in a BGP device are suppressed.
As an example, the preset condition is that the number of times of the route oscillation reaches a second threshold, and the second threshold is taken as 100 as an example. As shown in fig. 1, R1 monitors its own operating state. The link between R2 and R3 goes up or down frequently, causing R2 to recalculate routes without stopping, causing route oscillation. The R1 route oscillation frequency reaches more than 100 times, and the route oscillation frequency reaches a second threshold value, so that the preset condition is met. Therefore, the R1 sets the BMP function in the non-working state to be in the working state, establishes connection with the BMP Server1 and the BMP Server2, and sends monitoring messages for the running state of the R1 to the BMP Server1 and the BMP Server2, respectively.
The number of routes may refer to the current number of routes of the BGP device. The third threshold value may be set empirically, for example, the third threshold value may be equal to the system upper limit value. In this case, the BGP device may monitor the number of routes, i.e., notify the BMP monitoring server when the number of routes reaches the third threshold.
As an example, the preset condition is that the number of routes reaches a third threshold, which is 5000 as an example. As shown in fig. 1, R1 monitors its own operating state. The number of R1 routes reaches more than 5000, and since the number of routes reaches the third threshold, the preset condition is met, so that R1 sets the BMP function in the non-working state to the working state, establishes connection with BMPServer1 and BMP Server2, and sends monitoring messages for the running state of R1 to BMP Server1 and BMP Server2, respectively.
Wherein the user can preset one or more routes to trigger the preset condition. In this case, the BGP device may monitor the preset route, i.e., notify the BMP monitoring server when the preset route is received.
As an example, the preset condition is that a preset route is received, taking the preset route as route 1 and route 2 as an example. As shown in fig. 1, R1 monitors its own operating state. R1 receives route 1, and since route 1 is a preset route, the preset condition is satisfied. Therefore, the R1 sets the BMP function in the non-working state to be in the working state, establishes connection with the BMP Server1 and the BMP Server2, and sends monitoring messages for the running state of the R1 to the BMP Server1 and the BMP Server2, respectively.
The system memory occupation may refer to an occupation amount or an occupation ratio of the system memory. The fourth threshold may be set empirically, for example, the fourth threshold may be equal to the upper limit of the system memory. In this case, the BGP device may monitor the system memory usage, that is, notify the BMP monitoring server when the system memory usage reaches the fourth threshold.
As an example, the preset condition is that the system memory usage reaches a fourth threshold, and the fourth threshold is 80% as an example. As shown in fig. 1, R1 monitors its own operating state. The system memory occupation ratio of the R1 reaches more than 80%, and the system memory occupation ratio reaches a fourth threshold value and meets the preset condition, so that the R1 sets the BMP function in a non-working state to a working state, establishes connection with the BMP Server1 and the BMP Server2, and respectively sends monitoring messages aiming at the running state of the R1 to the BMP Server1 and the BMP Server 2.
It should be noted that, although the preset conditions are described above by taking neighbor oscillation, route oscillation, number of routes, preset routes, or system memory occupation as examples, those skilled in the art can understand that the disclosure should not be limited thereto. The preset conditions can be flexibly set by those skilled in the art according to the actual application scenario, for example, the preset conditions may also include that no neighbor relation is established or a restart process exists.
In one implementation manner, sending a monitoring packet for an operating state of the BGP device to a BMP monitoring server includes: and sending a monitoring message carrying the running state information of the BGP equipment to a BMP monitoring server, wherein the running state information of the BGP equipment comprises abnormal running state information and/or normal running state information.
In the related art, the monitoring message may include a Common Header (Common Header) and a dedicated message. The header and the special message may be Type fields, respectively. The Type field in the header may indicate the Type of the dedicated message. The Type field in the dedicated message may indicate the content of the dedicated message.
Fig. 3a shows a schematic diagram of a header according to an embodiment of the present disclosure. As shown in fig. 3 a:
in the Type field of the header of the monitoring message, the following may be set: the Monitoring Message with the Type of 0 may indicate Route Monitoring (Type 0: Route Monitoring), the Monitoring Message with the Type of 1 may indicate a statistical Report (Type 1: Statistics Report), the Monitoring Message with the Type of 2 may indicate Peer offline notification (Type 2: Peer offline notification), the Monitoring Message with the Type of 3 may indicate Peer online notification (Type 3: Peer update), the Monitoring Message with the Type of 4 may indicate a start Message (Type 4: Initiation Message), and the Monitoring Message with the Type of 5 may indicate a Termination Message (Type 5: Termination Message).
In one implementation, an Alarm Message with a Type of 6 in a header of the monitoring Message may be newly defined (Type ═ 6: Alarm Message). The warning message may be used to notify a warning message to the BMP monitoring server, where the warning message carries information indicating that the operation state of the BGP device is abnormal and the reason for the abnormality. A monitoring message may carry one or more alert messages, which is not limited by this disclosure. For example, one or more TLV (Type length value) fields may be added after the header of the monitoring packet, and the TLV fields are used for storing the alarm message.
Fig. 3b shows a schematic diagram of an alert message according to an embodiment of the present disclosure. As shown in fig. 3 b:
in the Type field of the alert message, there may be set: the alarm message with the Type of 0 may indicate that the number of neighbor oscillations reaches a first threshold (Type ═ 0: the number of neighbor oscillations reaches the first threshold), the alarm message with the Type of 1 may indicate that the number of routing oscillations reaches a second threshold (Type ═ 1: the number of routing oscillations reaches the second threshold), the alarm message with the Type of 2 may indicate that the number of routes reaches a third threshold (Type ═ 2: the number of routes reaches the third threshold), the alarm message with the Type of 3 may indicate that a preset route is received (Type ═ 3: a preset route is received), and the alarm message with the Type of 4 may indicate that the system memory occupancy reaches a fourth threshold (Type ═ 4: the system memory occupancy reaches a fourth threshold).
In the Variable field of the alarm message, it is possible to set: in the alarm message with the Type of 0, Variable may indicate neighbor information of a shock and the number of times of the shock (Type is 0, and Variable is neighbor information of the shock and the number of times of the shock); in the alarm message with Type 1, Variable may indicate the routing information of the oscillation and the number of oscillations (Type is 1, and Variable is the routing information of the oscillation and the number of oscillations); in the alarm message with Type 2, Variable may indicate the current number of routes and the system upper limit value (Type is 2, Variable is the current number of routes and the system upper limit value); in the alarm message with Type 3, Variable may indicate a preset route (Type is 3, and Variable is a preset route); in the alarm message with the Type of 4, Variable may indicate system memory information (Type is 2, and Variable is system memory information).
According to the equipment monitoring method, the running state information of the BGP equipment is obtained, the BMP function of the BGP equipment in the non-working state is set to be in the working state under the condition that the running state information of the BGP equipment meets the preset condition, and the monitoring message aiming at the running state of the BGP equipment is sent to the BMP monitoring server, so that the running state of the BGP equipment can be normally monitored by the BMP monitoring server, the pressure of the BMP monitoring server can be relieved, the data volume received and processed by the BMP monitoring server is reduced, and the resources of the BMP monitoring server are saved.
Fig. 4 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure. As shown in fig. 4, the method may include steps S21 through S24.
In step S21, the operation state information of the BGP device is acquired.
In step S22, if the operation state information of the BGP device satisfies the preset condition, the BMP function in which the BGP device is in the inactive state is set to the active state.
In step S23, a monitoring message for the operating status of the BGP device is sent to the BMP monitoring server.
In step S24, if the operation state information of the BGP device does not satisfy the preset condition, the BMP function in the active state of the BGP device is set to the inactive state.
As an example, the preset condition is that the number of neighboring oscillations reaches a first threshold, which is 100 as an example. As shown in fig. 1, R1 monitors its own operating state. The neighbor AS number configured by R1 is wrong, so that the peer relationship of R1 is frequently established or released, and the neighbor vibrates. R1 neighbor oscillation frequency reaches more than 100 times, and the neighbor oscillation frequency reaches a first threshold value, so that the preset condition is met. Therefore, the R1 sets the BMP function in the non-working state to be in the working state, establishes connection with the BMPServer1 and the BMP Server2, and sends monitoring messages for the running state of the R1 to the BMP Server1 and the BMP Server2, respectively. After the R1 finishes notifying the BMP Server1 and BMP Server2 of the monitoring message, if the neighbor oscillation is released, the BMP function of the BGP device in the working state is set to the non-working state, and the BGP device is disconnected from the BMP Server1 and BMPServer2, thereby releasing the resource of the BMP monitoring Server.
Fig. 5 shows a flow diagram of a device monitoring method according to an embodiment of the present disclosure. As shown in fig. 5, the method may include steps S51 through S55.
In step S51, the address and listening port number of the BMP monitoring server are configured on the BGP device.
In step S52, the BMP function of the BGP device is controlled to be in the inactive state or the active state according to the level corresponding to the BGP device.
In one implementation, the corresponding tiers of BGP devices may include critical nodes and noncritical nodes. For the BGP device of the critical node, the BMP function may be permanently set to the working state. For the BGP equipment of the non-critical node, the BMP function can be set to be in a non-working state, and whether the BMP function needs to be awakened or not is judged according to a preset condition and the running state of the BGP equipment. Under the condition that the BMP function is in a non-working state, the BGP equipment does not inform the BMP monitoring server of a monitoring message. And awakening the BMP function under the condition that the running state of the BGP equipment meets the preset condition. Therefore, the running state of the BGP equipment can be normally monitored by the BMP monitoring server, the pressure of the BMP monitoring server can be relieved, the data volume received and processed by the BMP monitoring server is reduced, and the resources of the BMP monitoring server are saved.
In step S53, the operation state information of the BGP device is acquired.
In step S54, if the operation state information of the BGP device satisfies the preset condition, the BMP function in which the BGP device is in the inactive state is set to the active state.
In step S55, a monitoring message for the operating status of the BGP device is sent to the BMP monitoring server.
As an example, as shown in FIG. 1, the address of BMP Server1 is 1.1.1.1, and the address of BMP Server2 is 2.2.2.2. On R1, address 1.1.1.1 of BMP Server1, address 2.2.2.2 of BMP Server2, and listening port number 179 are configured. Therefore, the R1 automatically establishes TCP connection with the BMP Server1 and the BMP Server2 for interacting with the monitoring messages. If the R1 belongs to the noncritical node, the BMP function may be set to a non-working state, and whether the BMP function needs to be awakened is determined according to a preset condition and an operating state of the BGP device. Under the condition that the BMP function is in a non-working state, R1 does not notify monitoring messages to BMPServer1 and BMP Server 2. And awakening the BMP function under the condition that the running state of the R1 meets the preset condition. The R1 establishes connection with the BMP Server1 and the BMP Server2, and sends monitoring messages aiming at the running state of the R1 to the BMP Server1 and the BMP Server 2.
FIG. 6 shows a block diagram of a device monitoring apparatus according to an embodiment of the present disclosure. The device is used in BGP equipment. As shown in fig. 6, the apparatus includes:
a state obtaining module 61, configured to obtain running state information of the BGP device; a first setting module 62, configured to set, when the running state information of the BGP device meets a preset condition, a BMP function of the BGP device in a non-working state to a working state; a message sending module 63, configured to send a monitoring message for the running state of the BGP device to the BMP monitoring server.
In one implementation, the apparatus further comprises: a second setting module 64, configured to set, when the running state information of the BGP device does not satisfy a preset condition, a BMP function of the BGP device in a working state to a non-working state.
In one implementation manner, the preset condition includes one or more of that the number of neighbor oscillations reaches a first threshold, that the number of route oscillations reaches a second threshold, that the number of routes reaches a third threshold, that a preset route is received, and that the system memory occupancy reaches a fourth threshold.
In an implementation manner, the message sending module 63 is further configured to: and sending a monitoring message carrying running state information of the BGP equipment to the BMP monitoring server, wherein the running state information of the BGP equipment comprises abnormal running state information and/or normal running state information.
In one implementation, the apparatus further comprises: an information configuration module 65, configured to configure an address and a monitoring port number of the BMP monitoring server on the BGP device; and a state control module 66, configured to control, according to the level corresponding to the BGP device, a BMP function of the BGP device to be in a non-working state or in a working state.
According to the equipment monitoring device, the running state information of the BGP equipment is obtained, the BMP function of the BGP equipment in the non-working state is set to be in the working state under the condition that the running state information of the BGP equipment meets the preset condition, and the monitoring message aiming at the running state of the BGP equipment is sent to the BMP monitoring server, so that the running state of the BGP equipment can be normally monitored by the BMP monitoring server, the pressure of the BMP monitoring server can be relieved, the data volume received and processed by the BMP monitoring server is reduced, and the resources of the BMP monitoring server are saved.
Fig. 7 is a block diagram illustrating an apparatus 900 for equipment monitoring according to an example embodiment. Referring to fig. 7, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the device monitoring method described above by reading machine-executable instructions in the machine-readable storage medium 902 corresponding to the device monitoring logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A device monitoring method, for a BGP device, comprising:
acquiring running state information of the BGP equipment;
setting the BMP function of the BGP equipment in a non-working state as a working state under the condition that the running state information of the BGP equipment meets a preset condition;
sending a monitoring message aiming at the running state of the BGP equipment to the BMP monitoring server;
before obtaining the running state information of the BGP device, the method further includes:
controlling the BMP function of the BGP equipment to be in a non-working state or in a working state according to the grade corresponding to the BGP equipment,
the grade corresponding to the BGP equipment comprises a non-critical node, and the BGP equipment of the non-critical node sets the BMP function to be in a non-working state.
2. The method of claim 1, wherein after setting the BMP function that is inactive for the BGP device to active, the method further comprises:
and under the condition that the running state information of the BGP equipment does not meet the preset condition, setting the BMP function of the BGP equipment in the working state as a non-working state.
3. The method of claim 1,
the preset conditions comprise one or more of the condition that the neighbor oscillation frequency reaches a first threshold value, the condition that the route oscillation frequency reaches a second threshold value, the condition that the number of routes reaches a third threshold value, the condition that a preset route is received and the condition that the system memory occupation reaches a fourth threshold value.
4. The method according to claim 1, wherein sending the monitoring packet for the operating status of the BGP device to the BMP monitoring server includes:
and sending a monitoring message carrying running state information of the BGP equipment to the BMP monitoring server, wherein the running state information of the BGP equipment comprises abnormal running state information and/or normal running state information.
5. The method of claim 1, wherein prior to obtaining operational status information for the BGP device, the method further comprises:
and configuring the address and the monitoring port number of the BMP monitoring server on the BGP equipment.
6. A device monitoring apparatus, for a BGP device, comprising:
a state obtaining module, configured to obtain running state information of the BGP device;
the first setting module is used for setting the BMP function of the BGP equipment in a non-working state as a working state under the condition that the running state information of the BGP equipment meets a preset condition;
a message sending module, configured to send a monitoring message for the operating state of the BGP device to the BMP monitoring server;
the device further comprises:
a state control module, configured to control, according to the level corresponding to the BGP device, a BMP function of the BGP device to be in a non-operating state or in an operating state,
the grade corresponding to the BGP equipment comprises a non-critical node, and the BGP equipment of the non-critical node sets the BMP function to be in a non-working state.
7. The apparatus of claim 6, further comprising:
and the second setting module is used for setting the BMP function of the BGP equipment in the working state to be in the non-working state under the condition that the running state information of the BGP equipment does not meet the preset condition.
8. The apparatus of claim 6,
the preset conditions comprise one or more of the condition that the neighbor oscillation frequency reaches a first threshold value, the condition that the route oscillation frequency reaches a second threshold value, the condition that the number of routes reaches a third threshold value, the condition that a preset route is received and the condition that the system memory occupation reaches a fourth threshold value.
9. The apparatus of claim 6, wherein the messaging module is further configured to:
and sending a monitoring message carrying running state information of the BGP equipment to the BMP monitoring server, wherein the running state information of the BGP equipment comprises abnormal running state information and/or normal running state information.
10. The apparatus of claim 6, further comprising:
and the information configuration module is used for configuring the address and the monitoring port number of the BMP monitoring server on the BGP equipment.
CN201711374912.5A 2017-12-19 2017-12-19 Equipment monitoring method and device Active CN108123848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711374912.5A CN108123848B (en) 2017-12-19 2017-12-19 Equipment monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711374912.5A CN108123848B (en) 2017-12-19 2017-12-19 Equipment monitoring method and device

Publications (2)

Publication Number Publication Date
CN108123848A CN108123848A (en) 2018-06-05
CN108123848B true CN108123848B (en) 2020-10-09

Family

ID=62230347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711374912.5A Active CN108123848B (en) 2017-12-19 2017-12-19 Equipment monitoring method and device

Country Status (1)

Country Link
CN (1) CN108123848B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110932921B (en) * 2018-09-19 2022-10-11 华为技术有限公司 Method for determining route oscillation information and related equipment thereof
CN110708207B (en) * 2018-12-24 2021-10-29 新华三技术有限公司 Route oscillation positioning method, server and machine readable storage medium
CN112787930B (en) * 2019-11-06 2024-04-09 华为技术有限公司 Method, device and storage medium for monitoring running state of peer
CN112822103B (en) * 2019-11-15 2022-09-23 华为技术有限公司 Information reporting method, information processing method and equipment
CN111106970B (en) * 2019-12-31 2023-05-09 腾讯科技(深圳)有限公司 Data monitoring method and device, electronic equipment and readable storage medium
CN113572685B (en) 2020-04-29 2023-03-10 华为技术有限公司 Information reporting method, information processing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591904A (en) * 2015-09-08 2016-05-18 杭州华三通信技术有限公司 Method and device for suppressing BGP neighbor shock
CN106161256A (en) * 2016-07-26 2016-11-23 杭州华三通信技术有限公司 A kind of processing method and processing device of Border Gateway Protocol (BGP) route
CN106169978A (en) * 2016-07-07 2016-11-30 杭州华三通信技术有限公司 The treating method and apparatus of BMP message
CN106487709A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of file transmitting method and system
CN107070713A (en) * 2017-04-10 2017-08-18 广州油融互联网金融信息服务有限公司 A kind of data monitoring processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7710865B2 (en) * 2005-02-25 2010-05-04 Cisco Technology, Inc. Disaster recovery for active-standby data center using route health and BGP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487709A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of file transmitting method and system
CN105591904A (en) * 2015-09-08 2016-05-18 杭州华三通信技术有限公司 Method and device for suppressing BGP neighbor shock
CN106169978A (en) * 2016-07-07 2016-11-30 杭州华三通信技术有限公司 The treating method and apparatus of BMP message
CN106161256A (en) * 2016-07-26 2016-11-23 杭州华三通信技术有限公司 A kind of processing method and processing device of Border Gateway Protocol (BGP) route
CN107070713A (en) * 2017-04-10 2017-08-18 广州油融互联网金融信息服务有限公司 A kind of data monitoring processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"BGP Monitoring Protocol(BMP) DOI:10.17487/RFC7854";J.Scudder,et al.,;《IETF》;20160630;第4、6小节 *

Also Published As

Publication number Publication date
CN108123848A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN108123848B (en) Equipment monitoring method and device
CN112868206B (en) Method, system and computer readable medium for providing service broker functionality
EP2720418B1 (en) Lacp link switching and data transmission method and device
JP2006229967A (en) High-speed multicast path switching
US9813286B2 (en) Method for virtual local area network fail-over management, system therefor and apparatus therewith
CN111031598A (en) Network communication control method, device, communication equipment and storage medium
CN106789638B (en) Method for processing route and network equipment
CN106059793B (en) Routing information processing method and device based on graceful restart
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
KR20120084777A (en) Connectivity fault management timeout period control
EP3132567B1 (en) Event processing in a network management system
CN106059934B (en) Routing information processing method and device
US9081567B1 (en) Method and apparatus to control routing convergence during node reboot by entering a freeze state that inhibits routing convergence during the reboot process
US20200099609A1 (en) Method for determining link state, and device
CN111447101A (en) Link detection method and device, computer equipment and storage medium
CN107645394B (en) Switch configuration method in SDN network
JP6983904B2 (en) Methods, systems, and computer-readable media for access node gateway (AN-GW) non-usable periods and message flood suppression after AN-GW recovery.
EP3425850B1 (en) Method and device for processing communication path
EP2804352B1 (en) Method and apparatus for processing residual information
US20230164596A1 (en) Alarm log management system and method during failure in o-ran
US20200136946A1 (en) System and method for determining branch gateway device availability in computer networks
CN113824595B (en) Link switching control method and device and gateway equipment
WO2018077313A1 (en) Connection capability notification method and device
CN110535712B (en) BFD parameter setting method and device and electronic equipment
JP2008529356A (en) Method and apparatus for facilitating operation of foreign agent regarding non-response of home agent

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