A data processing method, device and system
By sending extended ECA instances between network management equipment and network equipment, the problem of difficulty in associating network events and telemetry functions in the prior art is solved, and the automated monitoring and data transmission of network equipment are realized, and the real-time performance of network management is improved. efficiency.
Patent Information
- Application Number
- CN201911061787.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-10-16
- Filing Date
- 2019-11-01
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2039-11-01
AI Technical Summary
The existing network management protocols are difficult to automatically associate network events and telemetry functions, resulting in network devices being unable to automatically start the telemetry function and send related data when an event occurs.
By sending an extended ECA instance between the network management device and the network device, including events, conditions and actions, the action part triggers the telemetry function of the network device, and automatically correlates the network event and telemetry data.
The automatic association between network events and telemetry functions is realized, allowing network devices to automatically start telemetry functions according to the occurrence of network events, and send corresponding data, improving the real-time monitoring and management efficiency of network devices.
Smart Images

Figure CN112671549B_ABST
Abstract
Description
[0001] This application is required to be submitted to the State Intellectual Property Office of China on October 16, 2019, with application number CN
[0002] 201910984111.3, the priority of the Chinese patent application entitled “A data processing method, device and system”, the entire contents of which are incorporated into this application by reference. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a data processing method, device and system. Background Art
[0004] The Network Configuration Protocol (NETCONF) is a network management protocol based on the extensible markup language (XML). It provides a programmable method for configuring and managing network devices. Users can use this protocol to set parameters, obtain parameter values, obtain statistical information, etc. NETCONF messages use the XML format and have powerful filtering capabilities. Each data item has a fixed element name and position, which allows different devices from the same manufacturer to have the same access method and result presentation method. Devices from different manufacturers can also get the same effect by mapping XML, which makes it very convenient for third-party software development. It is easy to develop specially customized network management software in an environment with mixed different manufacturers and different devices. With the assistance of such network management software, using the NETCONF function will make the configuration management of network devices simpler and more efficient.
[0005] YANG (Yet Another Next Generation) is a data modeling language for NETCONF access. NETCONF uses YANG to model various operations, data, and notifications, which has good readability and scalability. Both devices and clients can use YANG for modeling. After the device side provides the YANG model, the client can automatically generate the corresponding access model code based on the tool to save development workload.
[0006] Restconf is a protocol based on the Hypertext Transfer Protocol (HTTP) that configures data in YANG through the data storage concept defined in NETCONF.
[0007] Telemetry technology is a technology that collects data from physical or virtual network devices at high speed. Through the push mode, it provides more real-time and high-speed data collection functions. At the same time, it improves the utilization rate of network devices and networks during the collection process.
[0008] The event-condition-action (ECA) model can model general policies, allowing monitoring of a certain type of parameters in a device / controller, and when the trigger condition is met, the event occurs. In actual network scenarios, the action part of the ECA model only supports reconfiguration of network devices running the ECA model or recording the trigger of related time. Summary of the invention
[0009] In view of this, the embodiment of the present application provides a data processing method, device and system, wherein a network management device sends an extended ECA instance to a network device, and the action part included in the extended ECA instance can trigger the telemetry function of the network device. Thus, the network device can trigger the telemetry function according to the event part included in the extended ECA instance, and send the corresponding telemetry data to the network management device. Thus, based on the extended ECA model, the automatic association of network events and telemetry is realized.
[0010] The technical solutions provided in the embodiments of the present application are as follows.
[0011] In a first aspect, a data processing method is provided, the method comprising: a network management device generates an extended ECA instance, the extended ECA instance comprises a first event, a first condition and a first action, the first action comprises a first object identifier and a first indicator type, the first object identifier indicates a first object to be detected, the first indicator type indicates a performance indicator of the first object to be detected, the extended ECA instance is used to instruct the network device managed by the network management device to send first detection data to the network management device according to the first event and the first condition, and the network device comprises the first object to be detected. Then, the network management device sends a first message to the network device, the first message comprises the extended ECA instance. Furthermore, the network management device receives a second message sent by the network device, the second message comprises the first detection data.
[0012] Based on the solution provided in the embodiment, the network device can trigger the telemetry function according to the event part included in the extended ECA instance, and send the corresponding telemetry data to the network management device. Thus, based on the extended ECA model, the automatic association between network events and telemetry is achieved.
[0013] In a possible implementation manner of the first aspect, before the network management device receives the second message sent by the network device, the method further includes: the network management device sends a request message to the network device, where the request message is used to request the network device to send the second message.
[0014] In another possible implementation manner of the first aspect, the network management device sending the request message to the network device includes: the network management device sending the request message to the network device at a preset frequency.
[0015] In another possible implementation of the first aspect, before the network management device generates the extended ECA instance, the method further includes: the network management device obtains an extended ECA model, and the extended ECA model instructs the network management device to generate the extended ECA instance according to the extended ECA model and events to be monitored.
[0016] Optionally, the first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, and the extended ECA instance is also used to instruct the network device to send second detection data corresponding to the second indicator type and for the second object to be detected to the network management device according to the first event and the first condition, and the network device includes the second object to be detected; the second message also includes the second detection data.
[0017] Optionally, the first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
[0018] Optionally, the first action further includes an enable flag, and the enable flag is used to enable the first action.
[0019] Optionally, the first action also includes a first operation type and / or a first indicator value type, the first operation type indicates an attribute of the first detection data, and the first indicator value type indicates a data type of the first detection data.
[0020] In another possible implementation manner of the first aspect, before the network management device sends the first message to the network device, the method further includes: the network management device establishing a network configuration protocol NETCONF session or RESTCONF session between the network management device and the network device.
[0021] In a second aspect, a data processing method is provided, the method comprising: a network device receives a first message sent by a network management device, the first message comprises an extended ECA instance, the extended ECA instance comprises a first event, a first condition and a first action, the first action comprises a first object identifier and a first indicator type, the first object identifier indicates a first object to be detected, the first indicator type indicates a performance indicator of the first object to be detected, and the network device comprises the first object to be detected. When the network device determines that the first condition is met, the network device determines that the first event occurs. When the network device determines that the first event occurs, the network device sends a second message to the network management device, the second message comprises first detection data.
[0022] Based on the solution provided in the embodiment, the network device can trigger the telemetry function according to the event part included in the extended ECA instance, and send the corresponding telemetry data to the network management device. Thus, based on the extended ECA model, the automatic association between network events and telemetry is achieved.
[0023] In a possible implementation manner of the second aspect, before the network device sends the second message to the network management device, the method further includes: the network device receives a request message sent by the network management device, where the request message is used to request the network device to send the second message.
[0024] Optionally, the first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the network device includes the second object to be detected, and the second message also includes the second detection data, which is detection data corresponding to the second indicator type and for the second object to be detected.
[0025] Optionally, the first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance, and the first detection data is detection data associated with the service type.
[0026] In another possible implementation of the second aspect, the first action also includes an enable flag, which is used to enable the first action. Before the network device determines that the first condition is met, the method also includes: the network device starts the function of sending the detection data associated with the first action according to the enable flag.
[0027] Optionally, the second message further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
[0028] Optionally, the second message also includes an event identifier, and the event identifier indicates the first event.
[0029] Optionally, the second message also includes the first object identifier and the first indicator type.
[0030] In the above-mentioned first aspect or second aspect, optionally, the first condition is a condition that the first object to be detected satisfies a performance indicator indicated by the first indicator type.
[0031] In the above-mentioned first aspect or second aspect, optionally, the first condition is a condition that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
[0032] In a third aspect, a network management device is provided, wherein the network management device has the function of implementing the network management device behavior in the above method. The function can be implemented based on hardware, or can be implemented based on hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function.
[0033] In one possible design, the structure of the network management device includes a processor and an interface, and the processor is configured to support the network management device to perform the corresponding functions in the above method. The interface is used to support communication between the network management device and the network device, and receive information or instructions involved in the above method from the network device. The network management device may also include a memory, which is used to couple with the processor and store program instructions and data necessary for the network management device.
[0034] In another possible design, the network management device includes: a processor, a transmitter, a receiver, a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the transmitter, the receiver, the random access memory, and the read-only memory through the bus. When the network management device needs to be run, it is started by the basic input / output system solidified in the read-only memory or the bootloader boot system in the embedded system to guide the network management device into a normal operating state. After the network management device enters the normal operating state, the application program and the operating system are run in the random access memory, so that the processor executes the method in the first aspect or any possible implementation of the first aspect.
[0035] In a fourth aspect, a network management device is provided, the network management device comprising: a main control board and an interface board, and further, a switching network board. The network management device is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the network management device includes a module for executing the method in the first aspect or any possible implementation of the first aspect.
[0036] In a fifth aspect, a network management device is provided, the network management device comprising a controller and a first forwarding sub-device. The first forwarding sub-device comprises: an interface board, and further, may also comprise a switching network board. The first forwarding sub-device is used to perform the function of the interface board in the fourth aspect, and further, may also perform the function of the switching network board in the fourth aspect. The controller comprises a receiver, a processor, a transmitter, a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the receiver, the transmitter, the random access memory, and the read-only memory through the bus. When the controller needs to be run, it is started by the basic input / output system solidified in the read-only memory or the bootloader boot system in the embedded system, and the controller is guided to enter a normal operating state. After the controller enters the normal operating state, the application program and the operating system are run in the random access memory, so that the processor performs the function of the main control board in the fourth aspect.
[0037] In the sixth aspect, a computer storage medium is provided for storing programs, codes or instructions used for the above-mentioned network management device. When the processor or hardware device executes these programs, codes or instructions, the functions or steps of the network management device in the above-mentioned first aspect can be completed.
[0038] In a seventh aspect, a network device is provided, wherein the network device has the function of implementing the network device behavior in the above method. The function can be implemented based on hardware, or can be implemented based on hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0039] In one possible design, the structure of the network device includes a processor and an interface, and the processor is configured to support the network device to perform the corresponding functions in the above method. The interface is used to support communication between the network device and the network management device, and send information or instructions involved in the above method to the network management device. The network device may also include a memory, which is coupled to the processor and stores necessary program instructions and data for the network device.
[0040] In another possible design, the network device includes: a processor, a transmitter, a receiver, a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the transmitter, the receiver, the random access memory, and the read-only memory through the bus. When the network device needs to be run, it is started by the basic input / output system solidified in the read-only memory or the bootloader boot system in the embedded system to guide the network device into a normal operating state. After the network device enters the normal operating state, the application program and the operating system are run in the random access memory, so that the processor executes the method in the second aspect or any possible implementation of the second aspect.
[0041] In an eighth aspect, a network device is provided, the network device comprising: a main control board and an interface board, and further, a switching network board. The network device is used to execute the method in the second aspect or any possible implementation of the second aspect. Specifically, the network device includes a module for executing the method in the second aspect or any possible implementation of the second aspect.
[0042] In the ninth aspect, a network device is provided, the network device comprising a controller and a second forwarding sub-device. The second forwarding sub-device comprises: an interface board, and further, may also comprise a switching network board. The second forwarding sub-device is used to perform the function of the interface board in the eighth aspect, and further, may also perform the function of the switching network board in the eighth aspect. The controller comprises a receiver, a processor, a transmitter, a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the receiver, the transmitter, the random access memory, and the read-only memory through the bus. When the controller needs to be run, it is started by the basic input / output system solidified in the read-only memory or the bootloader boot system in the embedded system, and the controller is guided to enter a normal operating state. After the controller enters the normal operating state, the application program and the operating system are run in the random access memory, so that the processor performs the function of the main control board in the eighth aspect.
[0043] In the tenth aspect, a computer storage medium is provided for storing programs, codes or instructions used for the above-mentioned network device. When the processor or hardware device executes these programs, codes or instructions, the functions or steps of the network device in the above-mentioned second aspect can be completed.
[0044] In the eleventh aspect, a network system is provided, which includes a network management device and a network device, the network management device is the network management device in the aforementioned third aspect, fourth aspect, or fifth aspect, and the network device is the network device in the aforementioned seventh aspect, eighth aspect, or ninth aspect.
[0045] Through the above scheme, the network management device generates and sends an extended ECA instance to the network device. When the network device determines that the first condition in the extended ECA instance is satisfied, the network device triggers the occurrence of the first event in the extended ECA instance, and then triggers the first action (telemetry function) in the extended ECA instance, thereby sending the corresponding telemetry data to the network management device. In this way, the extended ECA model realizes the automatic association between the network event and the telemetry function in the network device, so that the network device can automatically start the telemetry function and send telemetry data according to the network event that occurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a communication network structure according to an embodiment of the present application;
[0047] Figure 2 A flow chart of a data processing method according to an embodiment of the present application;
[0048] Figure 3 A schematic diagram of the structure of a network management device according to an embodiment of the present application;
[0049] Figure 4 A schematic diagram of the hardware structure of a network management device according to an embodiment of the present application;
[0050] Figure 5 A schematic diagram of the hardware structure of a network management device according to an embodiment of the present application;
[0051] Figure 6 A schematic diagram of the structure of a network device according to an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the hardware structure of a network device according to an embodiment of the present application;
[0053] Figure 8 A schematic diagram of the hardware structure of a network device according to an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following describes the embodiments in detail.
[0055] Figure 1 FIG. 1 is a schematic diagram of a communication network structure of an embodiment of the present application. Figure 1 The communication network includes a network management device and a network device. In the implementation mode of the present application, the number of network devices is not limited. For example, Figure 1The communication network shown includes network device A, network device B and network device C. The network management device communicates with the network device A, network device B and network device C via communication links respectively. In the embodiment of the present application, without additional explanation, the network device can be any one of the network devices A, network device B and network device C. The network management device can be regarded as a management device in the communication network, and the network devices A, network device B and network device C can be regarded as managed devices in the communication network. The network management device can be an independent hardware device, such as a server or a controller; the network management device can also include multiple hardware devices, for example, the network management device includes a control device and a client device. Among them, the control device communicates with the network device via a communication link, and the client device communicates with the control device via a wired link or a wireless link. The network device can be an independent hardware device, such as a router or a switch, and the network device can include multiple forwarding boards, each forwarding board includes a physical port to communicate with other network devices, and each forwarding board can include a central processing unit (CPU). The network device may also include multiple hardware devices. For example, the network device includes a router and multiple hosts, and the router communicates with the multiple hosts respectively.
[0056] The network management device sends a message to the network device (such as Figure 1 In one possible implementation, the network management device may directly generate the extended ECA instance, and then send the extended ECA instance to the network device. In another possible implementation, the network management device may first generate an extended ECA model, and the network management device generates the corresponding extended ECA instance according to the extended ECA model, and then sends the extended ECA instance to the network device.
[0057] Among them, the extended ECA model can be implemented based on NETCONF, specifically, based on the YANG model. The extended ECA model may include events, conditions and actions. The event represents a network event related to a network device. The condition represents a condition that can trigger a network event. The action represents that when the event occurs, the corresponding telemetry function is triggered. Therefore, the extended ECA model indicates that when the condition is met, the event is triggered, and the corresponding action (telemetry function) is triggered after the event occurs.
[0058] The extended ECA model is a universal model. The network management device can generate the extended ECA instance according to the extended ECA model and the specific telemetry indicators to be monitored. Therefore, the extended ECA instance is a specific monitoring instance generated according to the extended ECA model. For example, the network management device wants to monitor the CPU occupancy of the network device, and when the CPU occupancy is greater than the threshold value, the network device is required to send the CPU occupancy exceeding the threshold value to the network management device. The network management device can generate a first event according to the event part in the extended ECA model and a specific event related to the CPU occupancy (for example, reporting the CPU occupancy to the network management device), generate a first condition according to the condition part in the extended ECA model and a specific condition related to the CPU occupancy (for example, the CPU occupancy is greater than the threshold value), and generate a first action according to the action part in the extended ECA model and a specific action related to the CPU occupancy (for example, sending telemetry data corresponding to the CPU occupancy). Therefore, the extended ECA instance can include a first event, a first condition and a first action. The first event, the first condition and the first action in the extended ECA instance are implementation forms of specific monitoring instances of events, conditions and actions in the extended ECA model.
[0059] The network device receives the extended ECA instance sent by the network management device. In a possible implementation, the extended ECA instance is implemented in XML format. After receiving the extended ECA instance, the network device runs the extended ECA instance. When the network device determines that a first condition in the extended ECA instance is satisfied, the network device triggers the occurrence of a first event in the extended ECA instance. Then, when the network device determines that the first event occurs, it triggers a corresponding first action (that is, Figure 1 The network device triggers the telemetry function and generates corresponding telemetry data according to the telemetry function. Then, the network device sends the telemetry data to the network management device. For specific implementation methods, please refer to the description in the subsequent method implementation methods.
[0060] Through the above implementation, the network management device generates and sends an extended ECA instance to the network device. When the network device determines that the first condition in the extended ECA instance is met, the network device triggers the occurrence of the first event in the extended ECA instance, and then triggers the first action (telemetry function) in the extended ECA instance, thereby sending the corresponding telemetry data to the network management device. In this way, the extended ECA model realizes the automatic association between the network events in the network device and the telemetry function, so that the network device can automatically start the telemetry function and send telemetry data according to the network events that occur. It should be understood that Figure 1 The interaction process between the network management device and the network device A is shown. It should be understood that the interaction process between the network management device and the network device B and the interaction process between the network management device and the network device C can also be implemented according to the above implementation. In the above implementation, the network device is used as the detected object for description. It should be understood that a part of the network device can also be used as the detected object in the above implementation (for example, one or more forwarding boards included in the network device, or a router and / or host included in the network device).
[0061] Figure 2 This is a flow chart of a data processing method according to an embodiment of the present application. Figure 2 The method shown can be applied in Figure 1 In the network structure shown in FIG. 1 , for the convenience of explanation, the terms “network management device” and “network device” are used for explanation. It should be understood that “network device” can be Figure 1 Any one of the network devices A, B and C in the network. In the implementation manner of the present application, unless otherwise specified, the first action refers to the telemetry function. Specifically, the method includes:
[0062] S101. A network management device generates an extended ECA instance, wherein the extended ECA instance includes a first event, a first condition, and a first action, wherein the first action includes a first object identifier and a first indicator type, wherein the first object identifier indicates a first object to be detected, and the first indicator type indicates a performance indicator of the first object to be detected. The extended ECA instance is used to instruct a network device managed by the network management device to send first detection data corresponding to the first indicator type and for the first object to be detected to the network management device according to the first event and the first condition, wherein the network device includes the first object to be detected.
[0063] According to the aforementioned implementation, in a possible implementation, the network management device can directly generate the extended ECA instance. The extended ECA instance includes a first event, a first condition and a first action. The first event represents a network event related to a network device. The first condition represents a condition that can trigger the occurrence of a network event. The first action represents that when the event occurs, the corresponding telemetry function is triggered. Therefore, the extended ECA instance represents that when the first condition is met, the first event is triggered to occur, and after the first event occurs, the corresponding first action (telemetry function) is triggered.
[0064]
[0065]
[0066] Table 1
[0067] Table 1 shows the description of commonly used extended ECA instances. In other words, Table 1 describes each extended ECA instance in a way of implementing functions. In actual application scenarios, the extended ECA instances can be implemented using a variety of protocols or computer languages, such as XML. The extended ECA instances in Table 1 are introduced below.
[0068] The extended ECA instance 1 implements the monitoring of the packet loss rate. Specifically, the network management device telemeters the network device to execute the extended ECA instance 1. The network device monitors the packet loss rate of the first object to be detected, and triggers reporting the packet loss rate to the network management device (first event) when the packet loss rate is greater than the threshold value (first condition). The network device determines that the first event occurs, and triggers the telemetry function of sending the packet loss rate exceeding the threshold value (first action) to the network management device. Among them, the packet loss rate exceeding the threshold value sent belongs to telemetry data. In one possible implementation, the packet loss rate in the extended ECA instance 1 is the packet loss rate within the device, for example, the packet loss rate is the difference between the number of data packets in the egress port queue and the ingress port queue of the first object to be detected. In another possible implementation, the packet loss rate in the extended ECA instance 1 is the packet loss rate of the link between devices, for example, the packet loss rate is the packet loss rate of the link between the first object to be detected and the previous hop network device of the first object to be detected, wherein the first object to be detected serves as the receiving end of the traffic. In the implementation manner of the present application, the network device includes the first object to be detected. That is, the first object to be detected can be the network device itself, or a component or device included in the network device. For example, the first object to be detected is a forwarding board in the network device, or the first object to be detected is a host included in the network device.
[0069] The extended ECA instance 2 implements the monitoring of CPU occupancy. Specifically, the network management device telemeters the network device to execute the extended ECA instance 2. The network device monitors the CPU occupancy of the first object to be detected, and triggers reporting the CPU occupancy to the network management device (first event) when the CPU occupancy is greater than the threshold value (first condition). The network device determines that the first event occurs, triggering the telemetry function of sending the CPU occupancy exceeding the threshold value (first action) to the network management device. Among them, the CPU occupancy exceeding the threshold value sent belongs to telemetry data. Among them, the network device may include multiple CPUs, for example, the network device includes multiple forwarding boards, each forwarding board includes a CPU. Therefore, the CPU occupancy in the extended ECA instance 2 may be the occupancy of the central processing unit of the network device, or the occupancy of the CPU on the forwarding board included in the network device, or the occupancy of the CPU in the host included in the network device.
[0070] The extended ECA instance 3 implements the monitoring of the queue length. Specifically, the network management device telemeters the network device to execute the extended ECA instance 3. The network device monitors the queue length of the first object to be detected, and when the queue length is greater than a threshold value (first condition), it triggers reporting the queue length to the network management device (first event). The network device determines that the first event occurs, and triggers the telemetry function of sending the queue length exceeding the threshold value (first action) to the network management device. Among them, the queue length includes the outbound port queue length or the inbound port queue length.
[0071] The extended ECA instance 4 implements the monitoring of delay. Specifically, the network management device telemeters the network device to execute the extended ECA instance 4. The network device monitors the delay of the first object to be detected, and when the delay is greater than the threshold value (first condition), it triggers reporting the delay (first event) to the network management device. The network device determines that the first event occurs, triggering the telemetry function of sending the delay exceeding the threshold value (first action) to the network management device. In one possible implementation, the delay in the extended ECA instance 4 is the link delay between devices, for example, the delay is the delay of the link between the first object to be detected and the previous hop network device of the first object to be detected, where the first object to be detected serves as the receiving end of the traffic. In another possible implementation, the delay in the extended ECA instance 4 is the processing delay within the device, for example, the delay is the delay from the input port queue to the output port queue of the first detection object.
[0072] The extended ECA instance 5 implements the monitoring of jitter values. Specifically, the network management device telemeters the network device to execute the extended ECA instance 5. The network device monitors the jitter value of the first object to be detected, and when the jitter value is greater than the threshold value (first condition), it triggers reporting the jitter value to the network management device (first event). The network device determines that the first event occurs, and triggers the telemetry function of sending a jitter value exceeding the threshold value (first action) to the network management device. Among them, the jitter in the extended ECA instance 5 refers to the delay between the messages flowing through the first object to be detected. Jitter can be used to detect whether interruptions occur between multiple messages in a sequentially sent data stream.
[0073] The extended ECA instance 6 implements the monitoring of bandwidth utilization. Specifically, the network management device telemeters the network device to execute the extended ECA instance 6. The network device monitors the bandwidth utilization of the first object to be detected, and triggers reporting the bandwidth utilization to the network management device (first event) when the bandwidth utilization is less than the threshold value (first condition). The network device determines that the first event occurs, and triggers the telemetry function of sending the bandwidth utilization below the threshold value (first action) to the network management device. Among them, the bandwidth utilization in the extended ECA instance 5 refers to the ratio between the rate at which the egress port of the first object to be detected sends traffic and the rated physical bandwidth of the link connected to the egress port.
[0074] In addition, the last row in Table 1 indicates that the extended ECA instances listed in Table 1 are not exhaustive. The network management device may generate other extended ECA instances.
[0075] According to the aforementioned implementation, in another possible implementation, the network management device first obtains the extended ECA model before generating the extended ECA instance. The extended ECA model may include events, conditions and actions. The network management device may automatically generate the extended ECA model, or may receive the extended ECA model from other devices. After the network management device generates the network management device, the extended ECA instance may be generated according to the telemetry indicators that need to be monitored. For example, the network management device hopes to generate an extended ECA instance 2, so that the network management device can detect the CPU occupancy rate of the first object to be detected. The network management device may add the relevant parameters of the first event in the extended ECA instance 2 to the event part of the extended ECA model, add the relevant parameters of the first condition in the extended ECA instance 2 to the condition part of the extended ECA model, and add the relevant parameters of the first action in the extended ECA instance 2 to the action part of the extended ECA model, thereby generating an extended ECA instance 2.
[0076] The first action in the extended ECA instance includes a first object identifier and a first indicator type. The first object identifier indicates the first object to be detected. For example, the first object to be detected is the network device, and the first object identifier can be specifically the device identifier of the network device. For another example, the first object to be detected is a forwarding board included in the network device, and the first object identifier can be specifically the device identifier of the network device and the forwarding board identifier, or the first object identifier can be specifically the device identifier of the network device and the location identifier of the forwarding board in the network device. Multiple first object identifiers can be included in the same extended ECA instance. Specifically, the first action not only includes the first object identifier and the first indicator type mentioned above, but also includes a second object identifier and a second indicator type, the second object identifier indicates the second object to be detected, and the second indicator type indicates the performance indicator of the second object to be detected. For example, the extended ECA instance 2 includes the device identifier of network device A and the device identifier of network device B, and the first indicator type and the second indicator type are both CPU occupancy. In this way, the network management device can monitor the CPU occupancy of network device A and network device B through the extended ECA instance 2. The first indicator type indicates the performance indicator of the first object to be detected. For example, the network management device generates an extended ECA instance 1, the value of the first indicator type is 01, and 01 represents the packet loss rate. The network management device generates an extended ECA instance 2, the value of the first indicator type is 02, and 02 represents the CPU occupancy rate.
[0077] The extended ECA instance is used to instruct the network device managed by the network management device to send the first detection data corresponding to the first indicator type and for the first object to be detected to the network management device according to the first event and the first condition. The extended ECA instance can instruct the network device to execute the extended ECA instance, thereby triggering the telemetry function in the extended ECA instance and generating corresponding telemetry data. It should be understood that the implementation of the present application exemplarily uses telemetry data as the first detection data.
[0078] Optionally, the first action also includes a group identifier, which indicates a service type associated with the extended ECA instance. When the network device includes traffic of multiple services, the traffic of a specific service can be monitored through the group identifier. For example, network device A includes a three-layer virtual private network (VPN) service and a multi-protocol label switch (MPLS) service. The network management device hopes to monitor the packet loss rate of the data traffic of the relevant MPLS service in network device A. Therefore, the extended ECA instance 1 may include a group identifier, and the value of the group identifier is 01, indicating that the extended ECA instance 1 is used to monitor the packet loss rate of the data traffic of the MPLS service.
[0079] Optionally, the first action also includes an enable flag, and the enable flag is used to enable the first action. When the network device runs the telemetry function, it is necessary to run a protocol related to the telemetry function. The network management device may monitor the network device periodically. For example, the network management device monitors the network device once every 1 hour, and the monitoring time is 5 minutes. In this way, if the network device always keeps the telemetry function turned on, it is bound to increase the power consumption and CPU occupancy of the network device. Therefore, during operation, the network device can maintain the telemetry function in a closed state. When the network device receives the extended ECA instance, it determines whether the first action includes an enable flag. When the network device determines that the first action includes an enable flag, the network device turns on the function of sending telemetry data.
[0080] Optionally, the first action also includes a first operation type, and the first operation type indicates an attribute of the first detection data. The attribute of the first detection data may include at least one of the following: an average value, a maximum value, a minimum value, and a variance value. For example, the network management device wants to monitor the average value of the CPU occupancy of the network device. The network management device may add a first operation type field in the extended ECA instance 2, and set the value of the first operation type field to the average value. During the operation of the extended ECA instance 2, the network device will monitor all CPU occupancy rates greater than the threshold value within a predetermined period, take the average value, and then send the average value to the network management device.
[0081] Optionally, the first action further includes a first indicator value type, and the first indicator value type indicates a data type of the first detection data. Specifically, the first indicator value type indicates a numerical type of the telemetry data when the network device reports telemetry data, for example, unit 32 indicates a 32-bit unsigned integer.
[0082] In combination with the above, when the same extended ECA instance includes multiple objects to be detected, optionally, the first action further includes a first object identifier list. The first object identifier list includes multiple object identifiers, for example, the first object identifier list includes a first object identifier and a second object identifier.
[0083] The following takes a specific implementation as an example to illustrate the actions of the extended ECA model and the implementation of the first action of the extended ECA model.
[0084]
[0085] The above command line shows the specific implementation of the action of the extended ECA model in the implementation mode of the present application. Among them, "rw telemetry" indicates that the action is a telemetry function. "rw enable" represents the enable flag in the aforementioned implementation mode. When the value is "enable", it indicates that the network device starts the function of sending telemetry data to the network management device. "rw group-id" represents the group identifier in the aforementioned implementation mode. "rw telemtry-attributes" indicates that the command line after this line is a description of the attribute function. "rw node-telemetry-attributes*[node-selector]" represents the first object identifier list in the aforementioned implementation mode. "rw node-selector" represents the first object identifier or the second object identifier in the aforementioned implementation mode. "rw metric-type" represents the first indicator type or the second indicator type in the aforementioned implementation mode. "rw operation-type" represents the first operation type in the aforementioned implementation mode. "rometric-value" represents the first indicator value type in the aforementioned implementation mode.
[0086] According to the above, the network management device can generate an extended ECA instance according to the extended ECA model. Specifically, the network management device adds specific relevant parameters to the extended ECA model to generate a corresponding extended ECA instance. For example, for the specific implementation of the action part of the above-mentioned extended ECA model, the network management device hopes to generate an extended ECA instance 2 in order to monitor the CPU occupancy rate of network device A. Then, the network management device adds the identifier of network device A in "rw node-telemetry-attributes*[node-selector]", adds the identifier of network device A in "rw node-selector", and adds the identifier representing the CPU occupancy rate in "rw metric-type". Correspondingly, the network management device also sets the specific values of the parameters of the above-mentioned action part according to the monitoring requirements, thereby forming the first action part in the extended ECA instance 2. Of course, the network management device also needs to generate the first event and the first condition part of the extended ECA instance 2 in a similar manner, which will not be repeated here.
[0087] According to the above, when the same extended ECA instance includes multiple objects to be detected, for example, the extended ECA instance 2 is applied to the monitoring of the CPU occupancy of network device A and network device B. Then, the network management device adds the identifier of network device A and the identifier of network device B in "rw node-telemetry-attributes*[node-selector]". For "rw node-selector", "rw metric-type", "rw operation-type" and "ro metric-value", the generated extended ECA instance 2 includes two groups of parameters, for example, "rw node-selector-1", "rw metric-type-1", "rw operation-type-1" and "ro metric-value-1" are parameters of the relevant network device A, and "rwnode-selector-2", "rw metric-type-1", "rw operation-type-2" and "ro metric-value-2" are parameters of the relevant network device B.
[0088] In combination with the foregoing, in the implementation manner of the present application, the first indicator type may indicate a performance indicator whose corresponding data can be obtained by measurement means, such as packet loss rate, CPU occupancy rate, queue length, delay, jitter value, and bandwidth utilization, etc. The first indicator type may also indicate a performance indicator whose corresponding data does not need to be obtained by measurement means, such as configuration information of the first object to be detected, etc.
[0089] S102: The network management device sends a first message to the network device, where the first message includes the extended ECA instance.
[0090] S103. The network device receives the first message sent by the network management device.
[0091] The network management device generates the extended ECA instance and sends a first message to the network device, wherein the first message includes the extended ECA instance. Optionally, the message transmitted between the network management device and the network device can be implemented based on NETCONF or RESTCONF, that is, the first message includes a NETCONF message or a RESTCONF message.
[0092] Optionally, before the network management device sends the first message to the network device, the network management device establishes a NETCONF session or a RESTCONF session between the network management device and the network device. For example, the network management device establishes a NETCONF session between the network management device and the network device. The network management device sends a NETCONF session request message to the network device. After the network device receives the NETCONF session request message, it determines that a NETCONF session can be established with the network management device. The network device sends a NETCONF session confirmation message to the network management device. After the network management device receives the NETCONF session confirmation message, it determines that the NETCONF session is established. The process of establishing a RESTCONF session is similar to the process of establishing a NETCONF session, which will not be repeated here.
[0093] The network device receives the first message sent by the network management device. Then, the network device obtains the extended ECA instance in the first message.
[0094] S104: When the network device determines that the first condition is met, the network device determines that the first event occurs.
[0095] S105. When the network device determines that the first event occurs, the network device sends a second message to the network management device, where the second message includes the first detection data, and the first detection data is detection data corresponding to the first indicator type and for the first object to be detected.
[0096] S106. The network management device receives the second message sent by the network device.
[0097] For example, the extended ECA instance sent by the network management device to the network device is the extended ECA instance 2, and the object to be detected to be monitored by the network management device is network device A. Network device A runs the extended ECA instance 2. Network device A detects the CPU occupancy of network device A according to the first condition part in the extended ECA instance 2. Then, network device A compares the value of the detected CPU occupancy with the threshold value. Network device A determines that the value of the detected CPU occupancy is greater than the threshold value, and network device A determines that the first condition in the extended ECA instance 2 is met. Then, network device A triggers the first event in the extended ECA instance 2 (reporting the CPU occupancy to the network management device). When network device A determines that the first event in the extended ECA instance 2 occurs, network device A executes the first action in the extended ECA instance 2. Optionally, network device A finds that the enable flag included in the first action in the extended ECA instance 2 is in the enable state, enabling the function of sending telemetry data to the network management device. Network device A determines the final first detection data (CPU occupancy value), that is, telemetry data, according to the parameters in each field included in the first action in ECA instance 2.
[0098] After the network device determines the first detection data, it generates the second message. According to the above description, the second message includes a NETCONF message or a RESTCONF message. The following takes a specific implementation as an example to illustrate the implementation of the second message.
[0099]
[0100] Among them, "telemetry-trigger" indicates that the second message is triggered by the telemetry function. "roevent-name" indicates the first event identifier associated with the second message, which corresponds to the first event identifier in the extended ECA instance executed by the network device. "ro group-id" indicates the group identifier corresponding to the sent telemetry data, which corresponds to the group identifier in the extended ECA instance executed by the network device. "ro node-telemetry-attributes*[node-selector]" indicates the first object identifier list corresponding to the sent telemetry data, which corresponds to "re node-telemetry-attributes*[node-selector]" in the extended ECA instance executed by the network device. "ro node-selector" indicates the first object identifier or the second object identifier in the aforementioned implementation mode, which corresponds to "re node-selector" in the extended ECA instance executed by the network device. "rometric-type" indicates the first metric type or the second metric type in the aforementioned implementation mode, which corresponds to "rw metric-type" in the extended ECA instance executed by the network device. The “ro metric-value” includes the first detection data.
[0101] When the network device needs to send detection data of multiple objects to be detected to the network management device, multiple second messages can be generated and sent to the network management device respectively; or one second message can be generated to carry the detection data of multiple objects to be detected. The implementation method of using one second message to carry the detection data of multiple objects to be detected can refer to the description of the above-mentioned implementation method.
[0102] After generating the second message, the network device sends the second message to the network management device. Correspondingly, the network management device receives the second message sent by the network device.
[0103] In a possible implementation, the network device sends the second message to the network management device according to a predetermined period, for example, the network device sends the second message to the network management device once every 5 minutes.
[0104] In another possible implementation, the network device may send the second message according to the query request of the network management device. For example, the network management device sends a request message to the network device, and the request message is used to request the network device to send the second message. The request message may include a NETCONF message or a RESTCONF message. The network device sends the second message to the network management device according to the request message. Optionally, the network management device sends the request message to the network device according to a predetermined period (or preset frequency). For example, the network management device sends a request message to the network device every 5 minutes.
[0105] In combination with the aforementioned implementation manner, the first condition is that the first object to be detected satisfies the condition of the performance indicator indicated by the first indicator type. For example, refer to the extended ECA instance 2 in Table 1. In the first action of the extended ECA instance 2, the value of the first indicator type is 02, indicating that the performance indicator indicated by the first indicator type is CPU occupancy. The first condition in the extended ECA instance 2 is associated with the CPU occupancy, that is, the set condition is a condition related to the CPU occupancy. It can be seen from the extended ECA instance 7 that the performance indicator (CPU occupancy) set in the first condition is the same as the performance indicator (CPU occupancy) set in the first action.
[0106] In another possible implementation, the first condition is that the first object to be detected satisfies the condition of the performance indicator indicated by the third indicator type, wherein the third indicator type is different from the first indicator type. For example, the first event of the extended ECA instance 7 (not shown in Table 1) is "reporting ARP statistics to the network management device" (wherein ARP refers to the Address Resolution Protocol), the first condition is "monitoring the CPU occupancy rate, and the CPU occupancy rate is greater than the threshold value", and the first action is "sending the number of ARP messages received by the object to be detected within a predetermined period". Among them, the specific implementation of "sending the number of ARP messages received by the object to be detected within a predetermined period" can be: when the first event occurs, the predetermined period starts timing, the network device detects the number of ARP messages received by the object to be detected within the predetermined period, until the predetermined period timing ends, and then sends the statistical number of ARP messages to the network management device. Extended ECA instance 7 can be applied in ARP message attack detection. It can be seen from the extended ECA instance 7 that the performance indicator (CPU occupancy rate) set in the first condition is different from the performance indicator (number of ARP messages) set in the first action.
[0107] Through the above implementation, the network management device generates and sends an extended ECA instance to the network device. When the network device determines that the first condition in the extended ECA instance is satisfied, the network device triggers the occurrence of the first event in the extended ECA instance, thereby triggering the first action (telemetry function) in the extended ECA instance, thereby sending the corresponding telemetry data to the network management device. In this way, the extended ECA model realizes the automatic association between the network event and the telemetry function in the network device, so that the network device can automatically start the telemetry function and send telemetry data according to the network event that occurs.
[0108] Figure 3 A schematic diagram of the structure of the network management device 1000 according to an embodiment of the present application. Figure 3 The network management device 1000 shown in the figure can execute the corresponding steps executed by the network management device in the method of the above embodiment. The network management device is deployed in a communication network, and the communication network also includes network devices. Figure 3 As shown, the network management device 1000 includes a receiving unit 1002 , a processing unit 1004 and a sending unit 1006 .
[0109] The processing unit 1004 is used to generate an ECA instance, wherein the extended ECA instance includes a first event, a first condition, and a first action, wherein the first action includes a first object identifier and a first indicator type, wherein the first object identifier indicates a first object to be detected, and the first indicator type indicates a performance indicator of the first object to be detected, wherein the extended ECA instance is used to instruct the network device managed by the network management device to send first detection data corresponding to the first indicator type and for the first object to be detected to the network management device according to the first event and the first condition, and wherein the network device includes the first object to be detected;
[0110] The sending unit 1006 is configured to send a first message to the network device, where the first message includes the extended ECA instance;
[0111] The receiving unit 1002 is configured to receive a second message sent by the network device, where the second message includes the first detection data.
[0112] Optionally, the first condition is that the first object to be detected satisfies a performance indicator indicated by the first indicator type.
[0113] Optionally, the first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
[0114] Optionally, before the receiving unit 1002 receives the second message sent by the network device, the sending unit 1006 is further used to send a request message to the network device, where the request message is used to request the network device to send the second message.
[0115] Optionally, in the sending unit 1006 sending the request message to the network device, the sending unit 1006 is specifically configured to send the request message to the network device at a preset frequency.
[0116] Optionally, before the processing unit 1004 generates the ECA instance, the processing unit 1004 is further configured to obtain an extended ECA model, wherein the extended ECA model instructs the processing unit 1004 to generate the extended ECA instance according to the extended ECA model and events to be monitored.
[0117] Optionally, the first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, and the extended ECA instance is also used to instruct the network device to send second detection data corresponding to the second indicator type and for the second object to be detected to the network management device according to the first event and the first condition, and the network device includes the second object to be detected; the second message also includes the second detection data.
[0118] Optionally, the first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
[0119] Optionally, the first action further includes an enable flag, and the enable flag is used to enable the first action.
[0120] Optionally, the first action also includes a first operation type and / or a first indicator value type, the first operation type indicates an attribute of the first detection data, and the first indicator value type indicates a data type of the first detection data.
[0121] Optionally, before the sending unit 1006 sends the first message to the network device, the processing unit 1004 is further configured to establish a network configuration protocol NETCONF session or RESTCONF session between the network management device and the network device.
[0122] Figure 3The network management device shown can execute the corresponding steps executed by the network management device in the method of the above embodiment. The network management device sends an extended ECA instance to the network device, and the action part included in the extended ECA instance can trigger the telemetry function of the network device. Thus, the network device can trigger the telemetry function according to the event part included in the extended ECA instance, and send the corresponding telemetry data to the network management device. Thus, based on the extended ECA model, the automatic association of network events and telemetry is realized.
[0123] Figure 4 Schematic diagram of the hardware structure of the network management device 1100 according to an embodiment of the present application. Figure 4 The network management device 1100 shown can execute the corresponding steps executed by the network management device in the method of the above embodiment.
[0124] like Figure 4 As shown, the network management device 1100 includes a processor 1101, a memory 1102, an interface 1103 and a bus 1104. The interface 1103 can be implemented in a wireless or wired manner, and can be a network card. The processor 1101, the memory 1102 and the interface 1103 are connected via a bus 1104.
[0125] The interface 1103 may specifically include a transmitter and a receiver, which are used to send and receive information between the network management device and the network device in the above embodiment. For example, the interface 1103 is used to support receiving a second message sent by the network device, or to support sending a first message. As an example, the interface 1103 is used to support Figure 2 The processor 1101 is used to execute the processing performed by the network management device in the above embodiment. For example, the processor 1101 is used to generate an extended ECA instance; and / or other processes of the technology described herein. As an example, the processor 1101 is used to support Figure 2The process S101 in the embodiment. The memory 1102 includes an operating system 11021 and an application 11022, which are used to store programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process of the network management device in the method embodiment can be completed. Optionally, the memory 1102 may include a read-only memory (English: Read-only Memory, abbreviated: ROM) and a random access memory (English: Random Access Memory, abbreviated: RAM). Among them, the ROM includes a basic input / output system (English: Basic Input / Output System, abbreviated: BIOS) or an embedded system; the RAM includes an application and an operating system. When it is necessary to run the network management device 1100, it is started by the BIOS solidified in the ROM or the bootloader boot system in the embedded system, and the network management device 1100 is guided to enter a normal operating state. After the network management device 1100 enters a normal operating state, the application and operating system in the RAM are run, thereby completing the processing process of the network management device in the method embodiment.
[0126] Understandably, Figure 4 Only a simplified design of the network management device 1100 is shown. In practical applications, the network management device may include any number of interfaces, processors or memories.
[0127] Figure 5 A schematic diagram of the hardware structure of another network management device 1200 according to an embodiment of the present application. Figure 5 The network management device 1200 shown can execute the corresponding steps executed by the network management device in the method of the above embodiment.
[0128] like Figure 5 The network management device 1200 includes: a main control board 1210, an interface board 1230, a switching network board 1220 and an interface board 1240. The main control board 1210, the interface boards 1230 and 1240, and the switching network board 1220 are connected to the system backplane through a system bus to achieve intercommunication. Among them, the main control board 1210 is used to complete functions such as system management, equipment maintenance, and protocol processing. The switching network board 1220 is used to complete data exchange between various interface boards (interface boards are also called line cards or service boards). The interface boards 1230 and 1240 are used to provide various service interfaces (for example, POS interfaces, GE interfaces, ATM interfaces, etc.) and realize data packet forwarding.
[0129] The interface board 1230 may include a central processor 1231, a forwarding table entry memory 1234, a physical interface card 1233, and a network processor 1232. The central processor 1231 is used to control and manage the interface board and communicate with the central processor on the main control board. The forwarding table entry memory 1234 is used to store forwarding table entries. The physical interface card 1233 is used to complete the reception and transmission of traffic. The network processor 1232 is used to control the physical interface card 1233 to receive and send traffic according to the forwarding table entries.
[0130] Specifically, the physical interface card 1233 is used to receive the second message sent by the network device. The physical interface card 1233 is also used to send the first message to the network device.
[0131] After receiving the second message, the physical interface card 1233 sends the second message to the central processor 1211 via the central processor 1231, and the central processor 1211 processes the second message.
[0132] The central processor 1211 is further configured to generate an extended ECA instance.
[0133] The central processor 1231 is further used to control the network processor 1232 to obtain the forwarding table entry in the forwarding table entry memory 1234 , and the central processor 1231 is further used to control the network processor 1232 to send a first message to the network device via the physical interface card 1233 .
[0134] It should be understood that the operation on the interface board 1240 in the embodiment of the present invention is consistent with the operation of the interface board 1230, and for the sake of brevity, it will not be repeated. It should be understood that the network management device 1200 of this embodiment can correspond to the functions and / or various steps implemented in the above method embodiment, and it will not be repeated here.
[0135] In addition, it should be noted that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the network management device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. Under the centralized forwarding architecture, the network management device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. Under the distributed forwarding architecture, the network management device may have at least one switching network board, and the switching network board is used to realize data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the network management device with a distributed architecture are greater than those of the device with a centralized architecture. Which architecture to adopt depends on the specific networking deployment scenario, and no limitation is made here.
[0136] In addition, an embodiment of the present application provides a computer storage medium for storing computer software instructions used for the above-mentioned network management device, which includes a program designed for executing the above-mentioned method embodiment.
[0137] Figure 6 This is a schematic diagram of the structure of the network device 2000 according to an embodiment of the present application. Figure 6 The network device 2000 shown can execute the corresponding steps executed by the network device in the method of the above embodiment. The network device is deployed in a communication network, and the communication network also includes a network management device. Figure 6 As shown, the network device 2000 includes a receiving unit 2002 , a processing unit 2004 and a sending unit 2006 .
[0138] The receiving unit 2002 is configured to receive a first message sent by a network management device, wherein the first message includes an extended ECA instance, the extended ECA instance includes a first event, a first condition, and a first action, the first action includes a first object identifier and a first indicator type, the first object identifier indicates a first object to be detected, the first indicator type indicates a performance indicator of the first object to be detected, and the network device includes the first object to be detected;
[0139] The processing unit 2004 is configured to determine that the first event occurs when it is determined that the first condition is met;
[0140] The sending unit 2006 is used to send a second message to the network management device when the processing unit 2004 determines that the first event occurs, and the second message includes first detection data, and the first detection data is detection data corresponding to the first indicator type and for the first object to be detected.
[0141] Optionally, the first condition is that the first object to be detected satisfies a performance indicator indicated by the first indicator type.
[0142] Optionally, the first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
[0143] Optionally, before the sending unit 2006 sends the second message to the network management device, the receiving unit 2002 is further used to receive a request message sent by the network management device, where the request message is used to request the network device to send the second message.
[0144] Optionally, the first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the network device includes the second object to be detected, and the second message also includes the second detection data, which is detection data corresponding to the second indicator type and for the second object to be detected.
[0145] Optionally, the first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance, and the first detection data is detection data associated with the service type.
[0146] Optionally, the first action also includes an enable flag, which is used to enable the first action. Before the processing unit 2004 determines that the first condition is met, the processing unit 2004 is also used to start the sending function of the detection data associated with the first action according to the enable flag.
[0147] Optionally, the second message further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
[0148] Optionally, the second message also includes an event identifier, and the event identifier indicates the first event.
[0149] Optionally, the second message also includes the first object identifier and the first indicator type.
[0150] Figure 6 The network device shown can execute the corresponding steps executed by the network device in the method of the above embodiment. The network management device sends an extended ECA instance to the network device, and the action part included in the extended ECA instance can trigger the telemetry function of the network device. Thus, the network device can trigger the telemetry function according to the event part included in the extended ECA instance, and send the corresponding telemetry data to the network management device. Thus, based on the extended ECA model, the automatic association of network events and telemetry is realized.
[0151] Figure 7 Schematic diagram of the hardware structure of the network device 2100 according to an embodiment of the present application. Figure 7 The network device 2100 shown can execute the corresponding steps executed by the network device in the method of the above embodiment.
[0152] like Figure 7As shown, the network device 2100 includes a processor 2101, a memory 2102, an interface 2103 and a bus 2104. The interface 2103 can be implemented wirelessly or wired, and can be a network card. The processor 2101, the memory 2102 and the interface 2103 are connected via a bus 2104.
[0153] The interface 2103 may specifically include a transmitter and a receiver, and is used to send and receive information or data between the network device and the network management device in the above embodiment. For example, the interface 2103 is used to support sending a second message to the network management device; for another example, the interface 2103 is used to support receiving a first message sent by the network management device. As an example, the interface 2103 is used to support Figure 2 The processor 2101 is used to perform the processing performed by the network device in the above embodiment. For example, the processor 2101 is used to generate a second message for executing an extended ECA instance; and / or other processes for the technology described herein. As an example, the processor 2101 is used to support Figure 2 The process S104 in the method. The memory 2102 includes an operating system 21021 and an application 21022, which are used to store programs, codes or instructions. When the processor or hardware device executes these programs, codes or instructions, the processing process of the network device in the method embodiment can be completed. Optionally, the memory 2102 may include a read-only memory (English: Read-only Memory, abbreviated: ROM) and a random access memory (English: Random Access Memory, abbreviated: RAM). Among them, the ROM includes a basic input / output system (English: Basic Input / Output System, abbreviated: BIOS) or an embedded system; the RAM includes an application and an operating system. When it is necessary to run the network device 2100, it is started by the BIOS solidified in the ROM or the bootloader boot system in the embedded system, and the network device 2100 is guided to enter a normal operating state. After the network device 2100 enters a normal operating state, the application and operating system in the RAM are run, thereby completing the processing process of the network device in the method embodiment.
[0154] Understandably, Figure 7 Only a simplified design of the network device 2100 is shown. In actual applications, the network device may include any number of interfaces, processors or memories.
[0155] Figure 8 A schematic diagram of the hardware structure of another network device 2200 according to an embodiment of the present application. Figure 8The network device 2200 shown can execute the corresponding steps executed by the network device in the method of the above embodiment.
[0156] like Figure 8 The network device 2200 includes: a main control board 2210, an interface board 2230, a switching network board 2220 and an interface board 2240. The main control board 2210, the interface boards 2230 and 2240, and the switching network board 2220 are connected to the system backplane through a system bus to achieve intercommunication. Among them, the main control board 2210 is used to complete functions such as system management, equipment maintenance, and protocol processing. The switching network board 2220 is used to complete data exchange between various interface boards (interface boards are also called line cards or service boards). The interface boards 2230 and 2240 are used to provide various service interfaces (for example, POS interfaces, GE interfaces, ATM interfaces, etc.) and realize the forwarding of data packets.
[0157] The interface board 2230 may include a central processor 2231, a forwarding table entry memory 2234, a physical interface card 2233, and a network processor 2232. The central processor 2231 is used to control and manage the interface board and communicate with the central processor on the main control board. The forwarding table entry memory 2234 is used to store the forwarding table entries. The physical interface card 2233 is used to complete the reception and transmission of traffic. The network processor 2232 is used to control the physical interface card 2233 to receive and send traffic according to the forwarding table entries.
[0158] Specifically, the physical interface card 2233 is used to send the second message to the network management device. The physical interface card 2233 is also used to receive the first message sent by the network management device.
[0159] After receiving the first message sent by the network management device, the physical interface card 2233 sends the first message to the central processor 2211 via the central processor 2231, and the central processor 2211 processes the first message.
[0160] The central processor 2211 is used to generate a second message and execute an extended ECA instance.
[0161] The central processor 2231 is further used to control the network processor 2232 to obtain the forwarding table entries in the forwarding table entry memory 2234 , and the central processor 2231 is further used to control the network processor 2232 to complete the reception and transmission of traffic via the physical interface card 2233 .
[0162] It should be understood that the operation on the interface board 2240 in the embodiment of the present invention is consistent with the operation of the interface board 2230, and for the sake of brevity, it will not be repeated. It should be understood that the network device 2200 of this embodiment can correspond to the functions and / or various steps implemented in the above method embodiment, and it will not be repeated here.
[0163] In addition, it should be noted that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, the network device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. In a distributed forwarding architecture, the network device may have at least one switching network board, and the switching network board is used to realize data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the network device with a distributed architecture are greater than those of the device with a centralized architecture. Which architecture to adopt depends on the specific networking deployment scenario, and no limitation is made here.
[0164] In addition, an embodiment of the present application provides a computer storage medium for storing computer software instructions used for the above-mentioned network device, which includes a program designed for executing the above-mentioned method embodiment.
[0165] The embodiment of the present application also includes a network system, the network system includes a network management device and a network device, the network management device is the aforementioned Figure 3 or Figure 4 or Figure 5 The network management device in the Figure 6 or Figure 7 or Figure 8 Network devices in.
[0166] The steps of the method or algorithm described in conjunction with the disclosure of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a user device. Of course, the processor and the storage medium can also be present in the user device as discrete components.
[0167] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented in hardware or in a combination of hardware and software. When implemented using a combination of hardware and software, the software can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0168] The specific implementations described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific implementation of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: The network management device generates an extended event-condition-action ECA instance, wherein the extended ECA instance includes a first event, a first condition, and a first action, wherein the first action includes a first object identifier and a first indicator type, wherein the first object identifier indicates a first object to be detected, and the first indicator type indicates a performance indicator of the first object to be detected, wherein the extended ECA instance is used to instruct the network device managed by the network management device to send first detection data corresponding to the first indicator type and for the first object to be detected to the network management device according to the first event and the first condition, wherein the network device includes the first object to be detected; The network management device sends a first message to the network device, where the first message includes the extended ECA instance; The network management device receives a second message sent by the network device, where the second message includes the first detection data.
2. The method according to claim 1, characterized in that The first condition is that the first object to be detected meets the performance indicator indicated by the first indicator type.
3. The method according to claim 1, characterized in that The first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
4. The method according to claim 1, characterized in that Before the network management device receives the second message sent by the network device, the method further includes: The network management device sends a request message to the network device, where the request message is used to request the network device to send the second message.
5. The method according to claim 4, characterized in that The network management device sends a request message to the network device, including: The network management device sends the request message to the network device at a preset frequency.
6. The method according to any one of claims 1 to 5, characterized in that Before the network management device generates the extended event-condition-action ECA instance, the method further includes: The network management device acquires an extended ECA model, and the extended ECA model instructs the network management device to generate the extended ECA instance according to the extended ECA model and events to be monitored.
7. The method according to any one of claims 1 to 5, characterized in that The first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the extended ECA instance is further used to instruct the network device to send second detection data corresponding to the second indicator type and for the second object to be detected to the network management device according to the first event and the first condition, and the network device includes the second object to be detected; The second message further includes the second detection data.
8. The method according to any one of claims 1 to 5, characterized in that The first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
9. The method according to any one of claims 1 to 5, characterized in that The first action further includes an enable flag, and the enable flag is used to enable the first action.
10. The method according to any one of claims 1 to 5, characterized in that The first action further includes a first operation type and / or a first indicator value type, wherein the first operation type indicates an attribute of the first detection data, and the first indicator value type indicates a data type of the first detection data.
11. The method according to any one of claims 1 to 5, characterized in that Before the network management device sends the first message to the network device, the method further includes: The network management device establishes a network configuration protocol NETCONF session or RESTCONF session between the network management device and the network device.
12. A data processing method, characterized in that: The method comprises: The network device receives a first message sent by a network management device, the first message includes an extended event-condition-action ECA instance, the extended ECA instance includes a first event, a first condition and a first action, the first action includes a first object identifier and a first indicator type, the first object identifier indicates a first object to be detected, the first indicator type indicates a performance indicator of the first object to be detected, and the network device includes the first object to be detected; When the network device determines that the first condition is met, the network device determines that the first event occurs; When the network device determines that the first event occurs, the network device sends a second message to the network management device, where the second message includes first detection data, where the first detection data is detection data corresponding to the first indicator type and for the first object to be detected.
13. The method according to claim 12, characterized in that The first condition is that the first object to be detected meets the performance indicator indicated by the first indicator type.
14. The method according to claim 12, characterized in that The first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
15. The method according to claim 12, characterized in that Before the network device sends the second message to the network management device, the method further includes: The network device receives a request message sent by the network management device, where the request message is used to request the network device to send the second message.
16. The method according to any one of claims 12 to 15, characterized in that The first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the network device includes the second object to be detected, and the second message also includes second detection data, which is detection data corresponding to the second indicator type and for the second object to be detected.
17. The method according to any one of claims 12 to 15, characterized in that The first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance, and the first detection data is detection data associated with the service type.
18. The method according to any one of claims 12 to 15, characterized in that The first action further includes an enable flag, where the enable flag is used to enable the first action. Before the network device determines that the first condition is met, the method further includes: The network device starts, according to the enable flag, a function of sending the detection data associated with the first action.
19. The method according to any one of claims 12 to 15, characterized in that: The second message further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
20. The method according to any one of claims 12 to 15, characterized in that The second message further includes an event identifier, where the event identifier indicates the first event.
21. The method according to any one of claims 12 to 15, characterized in that The second message also includes the first object identifier and the first indicator type.
22. A network management device, characterized in that: The network management device comprises: a processing unit, configured to generate an extended event-condition-action ECA instance, wherein the extended ECA instance includes a first event, a first condition, and a first action, wherein the first action includes a first object identifier and a first indicator type, wherein the first object identifier indicates a first object to be detected, and the first indicator type indicates a performance indicator of the first object to be detected, wherein the extended ECA instance is used to instruct a network device managed by the network management device to send first detection data corresponding to the first indicator type and for the first object to be detected to the network management device according to the first event and the first condition, and wherein the network device includes the first object to be detected; A sending unit, configured to send a first message to the network device, wherein the first message includes the extended ECA instance; A receiving unit is used to receive a second message sent by the network device, where the second message includes the first detection data.
23. The network management device according to claim 22, characterized in that: The first condition is that the first object to be detected meets the performance indicator indicated by the first indicator type.
24. The network management device according to claim 22, characterized in that: The first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
25. The network management device according to claim 22, characterized in that: Before the receiving unit receives the second message sent by the network device, the sending unit is further configured to send a request message to the network device, where the request message is used to request the network device to send the second message.
26. The network management device according to claim 25, characterized in that: In the sending unit sending the request message to the network device, the sending unit is specifically configured to send the request message to the network device at a preset frequency.
27. The network management device according to any one of claims 22 to 25, characterized in that: Before the processing unit generates the extended event-condition-action ECA instance, the processing unit is further used to obtain an extended ECA model, and the extended ECA model instructs the processing unit to generate the extended ECA instance according to the extended ECA model and the event to be monitored.
28. The network management device according to any one of claims 22 to 26, characterized in that: The first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the extended ECA instance is further used to instruct the network device to send second detection data corresponding to the second indicator type and for the second object to be detected to the network management device according to the first event and the first condition, and the network device includes the second object to be detected; The second message further includes the second detection data.
29. The network management device according to any one of claims 22 to 26, characterized in that: The first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
30. The network management device according to any one of claims 22 to 26, characterized in that: The first action further includes an enable flag, and the enable flag is used to enable the first action.
31. The network management device according to any one of claims 22 to 26, characterized in that: The first action further includes a first operation type and / or a first indicator value type, wherein the first operation type indicates an attribute of the first detection data, and the first indicator value type indicates a data type of the first detection data.
32. The network management device according to any one of claims 22 to 26, characterized in that: Before the sending unit sends the first message to the network device, the processing unit is further configured to establish a network configuration protocol NETCONF session or RESTCONF session between the network management device and the network device.
33. A network device, characterized in that: The network equipment includes: A receiving unit, configured to receive a first message sent by a network management device, wherein the first message includes an extended event-condition-action ECA instance, the extended ECA instance includes a first event, a first condition, and a first action, the first action includes a first object identifier and a first indicator type, the first object identifier indicates a first object to be detected, the first indicator type indicates a performance indicator of the first object to be detected, and the network device includes the first object to be detected; a processing unit, configured to determine that the first event occurs when it is determined that the first condition is satisfied; A sending unit is used to send a second message to the network management device when the processing unit determines that the first event occurs, wherein the second message includes first detection data, and the first detection data is detection data corresponding to the first indicator type and for the first object to be detected.
34. The network device according to claim 33, characterized in that The first condition is that the first object to be detected meets the performance indicator indicated by the first indicator type.
35. The network device according to claim 33, characterized in that The first condition is that the first object to be detected satisfies a performance indicator indicated by a third indicator type, wherein the third indicator type is different from the first indicator type.
36. The network device according to claim 33, characterized in that Before the sending unit sends the second message to the network management device, the receiving unit is further used to receive a request message sent by the network management device, where the request message is used to request the network device to send the second message.
37. The network device according to any one of claims 33 to 36, characterized in that: The first action also includes a second object identifier and a second indicator type, the second object identifier indicates a second object to be detected, the second indicator type indicates a performance indicator of the second object to be detected, the network device includes the second object to be detected, and the second message also includes second detection data, which is detection data corresponding to the second indicator type and for the second object to be detected.
38. The network device according to any one of claims 33 to 36, characterized in that: The first action further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance, and the first detection data is detection data associated with the service type.
39. The network device according to any one of claims 33 to 36, characterized in that: The first action also includes an enable flag, which is used to enable the first action. Before the processing unit determines that the first condition is met, the processing unit is also used to start the function of sending the detection data associated with the first action according to the enable flag.
40. The network device according to any one of claims 33 to 36, characterized in that: The second message further includes a group identifier, where the group identifier indicates a service type associated with the extended ECA instance.
41. The network device according to any one of claims 33 to 36, characterized in that: The second message further includes an event identifier, where the event identifier indicates the first event.
42. The network device according to any one of claims 33 to 36, characterized in that: The second message also includes the first object identifier and the first indicator type.
43. A network system, comprising a network management device and a network device, wherein the network management device is the network management device described in any one of claims 22-32, and the network device is the network device described in any one of claims 33-42.
Citation Information
Cited By
Data processing method, device, and system
WO2021073367A1
