CN112737874A - Packet loss statistics realization method and device for message - Google Patents

Packet loss statistics realization method and device for message Download PDF

Info

Publication number
CN112737874A
CN112737874A CN202011537700.6A CN202011537700A CN112737874A CN 112737874 A CN112737874 A CN 112737874A CN 202011537700 A CN202011537700 A CN 202011537700A CN 112737874 A CN112737874 A CN 112737874A
Authority
CN
China
Prior art keywords
instance
data
list
ams
packet loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011537700.6A
Other languages
Chinese (zh)
Other versions
CN112737874B (en
Inventor
张玉妹
刘爽
刘泽畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202011537700.6A priority Critical patent/CN112737874B/en
Publication of CN112737874A publication Critical patent/CN112737874A/en
Application granted granted Critical
Publication of CN112737874B publication Critical patent/CN112737874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The application provides a packet loss statistics realization method and a device of a message, and the method comprises the following steps: receiving a first data request sent by a network management system, wherein the first data request requests the network management system to obtain example data configured in network equipment; acquiring a configured instance list, a collector list configured under each instance and an atomic measurement section AMS list according to the first data request; sending a first data response to the network management system so that the network management system reconstructs and displays a transmission path of the service message; receiving a second data request sent by the network management system; acquiring packet loss data of each instance and packet loss data of each AMS according to the second data request; and sending a second data response to the network management system so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.

Description

Packet loss statistics realization method and device for message
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for implementing packet loss statistics for a packet.
Background
In the internet era, more and more services are transmitted through IP networks and each service becomes extremely sensitive to the loss of data packets. Such as voice and video traffic. In order to accurately determine whether data packet loss occurs in the IP Network and at which position the data packet loss occurs, y.1731 technology and Network Quality Analysis (NQA) technology should be applied.
Both the y.1731 and NQA techniques are indirect measurement techniques, which first construct a plurality of statistical messages to form an emulation stream or an insertion stream. And the performance statistical data of the service message is indirectly obtained through the statistics of the statistical message.
However, the two techniques described above also have the following problems in practical use: 1) the Y.1731 technology is suitable for a two-layer Ethernet network, and can not realize the performance statistics of service messages crossing a three-layer network; 2) because the Y.1731 technology and the NQA technology are indirect measurement technologies, the overhead of network equipment is increased, and the passing condition of real service flow in the network and the network equipment cannot be directly reflected; 3) neither the y.1731 technique nor the NQA technique supports multipoint-to-multipoint networking, and cannot meet the performance statistical requirements of service messages in the presence of multiple paths in an IP network.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for implementing packet loss statistics of a packet, so as to solve the problem that the existing y.1731 technology and NQA technology cannot meet the performance statistics requirement of a service packet in an IP networking.
In a first aspect, the present application provides a packet loss statistics implementation method for a packet, where the method is applied to a network device, and the network device is in communication connection with a network management system through a Netconf interface, and the method includes:
receiving a first data request sent by the network management system, wherein the first data request is used for the network management system to acquire instance data configured in the network equipment, and the instance data comprises a configured instance list, a collector list configured under each instance in the instance list and an Atomic Measurement Section (AMS) list;
acquiring a configured instance list, a collector list configured under each instance and an atomic measurement section AMS list according to the first data request;
sending a first data response to the network management system, wherein the first data response comprises the example list, the collector list configured under each example and an atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list;
receiving a second data request sent by the network management system, wherein the second data request is used for the network management system to acquire packet loss data of each instance in the current period and packet loss data of each AMS in an AMS list configured under each instance;
according to the second data request, obtaining the packet loss data of each instance and the packet loss data of each AMS;
and sending a second data response to the network management system, wherein the second data response comprises the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.
In a second aspect, the present application provides a packet loss statistics implementation method for a packet, where the method is applied to a network management system, and the network management system is in communication connection with a network device through a Netconf interface, and the method includes:
sending a first data request to the network equipment, wherein the first data request is used for the network management system to acquire instance data configured in the network equipment, and the instance data comprises a configured instance list, a collector list configured under each instance in the instance list and an Atomic Measurement Section (AMS) list;
receiving a first data response sent by the network equipment, wherein the first data response comprises the instance list, the collector list configured under each instance and an Atomic Measurement Section (AMS) list;
reconstructing and displaying a transmission path of a service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list;
sending a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured under each instance;
receiving a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS;
and displaying the packet loss data of each example and the packet loss data of each AMS in a transmission path of the service message.
In a third aspect, the present application provides a packet loss statistics implementation apparatus for a packet, where the apparatus is applied to a network device, and the network device is in communication connection with a network management system through a Netconf interface, and the apparatus includes:
a receiving unit, configured to receive a first data request sent by the network management system, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
an obtaining unit, configured to obtain a configured instance list, a collector list configured under each instance, and an atomic measurement section AMS list according to the first data request;
a sending unit, configured to send a first data response to the network management system, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service packet according to the instance list, the collector list configured under each instance, and the atomic measurement section AMS list;
the receiving unit is further configured to receive a second data request sent by the network management system, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the obtaining unit is further configured to obtain the packet loss data of each instance and the packet loss data of each AMS according to the second data request;
the sending unit is further configured to send a second data response to the network management system, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
In a fourth aspect, the present application provides a packet loss statistics implementation device for a packet, where the device is applied to a network management system, the network management system is in communication connection with a network device through a Netconf interface, and the device includes:
a sending unit, configured to send a first data request to the network device, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
a receiving unit, configured to receive a first data response sent by the network device, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list;
a reconstruction display unit, configured to reconstruct and display a transmission path of the service packet according to the instance list, the collector list configured in each instance, and the atomic measurement section AMS list;
the sending unit is further configured to send a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the receiving unit is further configured to receive a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS;
the reconfiguration display unit is further configured to display the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
In a fifth aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
In a sixth aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the second aspect of the present application.
Therefore, by applying the packet loss statistics realization method and device for the messages provided by the application, the network equipment receives the first data request sent by the network management system. According to the first data request, the network equipment acquires a configured instance list, a configured collector list under each instance and an atomic measurement section AMS list. And the network equipment sends a first data response to the network management system, so that the network management system reconstructs and displays a transmission path of the service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list. And the network equipment receives a second data request sent by the network management system. And according to the second data request, the network equipment acquires the packet loss data of each instance and the packet loss data of each AMS. And the network equipment sends a second data response to the network management system, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.
Therefore, the problem that the existing Y.1731 technology and NQA technology cannot meet the performance statistical requirement of service messages in IP networking is solved. The method and the device realize the distinguishing of the service messages in different service flows through the configured examples and count the packet loss condition of the service messages through the examples; meanwhile, a visual display method is also provided, and packet loss data of each network device in a transmission path of the service message is visually displayed.
Drawings
Fig. 1 is a flowchart of a packet loss statistics implementation method for a packet according to an embodiment of the present application;
fig. 2 is a schematic diagram of a transmission path of a reconstructed service packet according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating packet loss data displayed in a transmission path of a service packet according to an embodiment of the present application;
fig. 4 is a schematic diagram of an analyzer list page provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of an example data page provided by an embodiment of the present application;
fig. 6 is a flowchart of another packet loss statistics implementation method for a packet according to an embodiment of the present application;
FIG. 7 is a schematic illustration of a statistical curve provided by an embodiment of the present application;
fig. 8 is a structural diagram of a packet loss statistics implementation apparatus for a packet according to an embodiment of the present application;
fig. 9 is a structural diagram of another packet loss statistics implementation apparatus for packets according to an embodiment of the present application;
fig. 10 is a hardware structure diagram of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The packet loss statistics implementation method for the packet provided in the embodiment of the present application is described in detail below. Referring to fig. 1, fig. 1 is a flowchart of a packet loss statistics implementation method for a packet according to an embodiment of the present application. The method is applied to network equipment, and the packet loss statistics implementation method of the packet provided by the embodiment of the application can comprise the following steps.
Step 110, receiving a first data request sent by the network management system, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list.
Specifically, the network management device needs to obtain instance data configured in the network device, so as to reconstruct and display a transmission path for forwarding the service packet through the obtained instance data.
The network management system generates a first data request, and the first data request is used for the network management system to obtain instance data configured in the network equipment. The instance data includes a configured instance list, a Collector (Collector) list configured under each instance in the instance list, and an Atomic Measurement Span (AMS) list.
The collector is responsible for managing and controlling a Measurement Point (MP), collecting statistical data about service packets collected by the MP, and reporting the statistical data to an Analyzer (Analyzer). The analyzer is responsible for collecting the statistical data of the related service messages reported by the collector and finishing the summarization and calculation of the data. The MP is responsible for measuring actions of processing the service packet and generating measurement data, and for a specific target service flow, the MP includes three roles of an ingress measurement point (in-point), an egress measurement point (out-point), and an intermediate measurement point (mid-point). That is, the service message is dyed at the entrance measuring point, and the service message is undyed at the exit measuring point, so that the service message is counted. And the AMS is associated with the MP, and the packet loss data of each hop of the service message is counted.
In the embodiment of the present application, the Network device and the Network management system are communicatively connected through respective Network Configuration Protocol (Network Configuration Protocol, abbreviated as Netconf) interfaces.
The network management system sends a first data request to the network equipment.
And step 120, acquiring a configured instance list, a Collector (Collector) list configured under each instance, and an Atomic Measurement range (AMS) list according to the first data request.
Specifically, after receiving the first data request, the network device determines, according to the first data request, that the network management system needs to obtain an instance list configured by the network device, a collector list configured under each instance in the instance list, and an AMS list.
In the embodiment of the present application, the configured instance list, collector list, and AMS list of the network device are as follows:
Figure BDA0002853625830000071
Figure BDA0002853625830000081
Figure BDA0002853625830000091
Figure BDA0002853625830000101
Figure BDA0002853625830000111
Figure BDA0002853625830000121
Figure BDA0002853625830000131
in the foregoing example, the network device includes an instance, identified as instance 1.
This example 1 is followed by a collector list. The collector list includes four collectors, each identified by its IP address.
For example, collector identification of collector 1 is 1.1.1.1, collector identification of collector 2 is 1.1.1.3, collector identification of collector 3 is 1.1.1.5, and collector identification of collector 4 is 1.1.1.7.
The AMS list is also configured under this example 1. The AMS list includes seven AMSs and is distinguished by AMS identification. For example AMS1, AMS2, AMS3, AMS4, AMS5, AMS6, AMS 7.
Each AMS includes an identifier of an MP in an MP group (inggroup), an identifier of a collector associated with the MP, an identifier of an MP in an MP out group (OutGroup), and an identifier of a collector associated with the MP.
For example, the identifier of an MP under an MP group entered by AMS1 is MP1, the identifier of a collector associated with MP1 is 1.1.1.1, the identifier of an MP under an MP group exited by AMS1 is MP2, and the identifier of a collector associated with MP2 is 1.1.1.1. The identification of the MP under the MP group entered by the AMS2 is MP2, the collector identification associated with the MP2 is 1.1.1.1, the identification of the MP under the MP group exited by the AMS2 is MP1, and the collector identification associated with the MP1 is 1.1.1.3. Similarly, AMS3-AMS7 include the same configuration structures and are not repeated here.
Step 130, sending a first data response to the network management system, where the first data response includes the instance list, the collector list configured under each instance, and the atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service packet according to the instance list, the collector list configured under each instance, and the atomic measurement section AMS list.
Specifically, the network device generates a first data response after acquiring the configured instance list, the collector list configured under each instance, and the atomic measurement section AMS list. The first data response includes a list of instances, a list of collectors configured under each instance, and a list of atomic measurement segment AMSs.
The network device sends a first data response to the network management system.
And after receiving the first data response, the network management system acquires the configured instance list of the network equipment, the configured collector list under each instance and the atomic measurement section AMS list. And according to the example list, the collector list configured under each example and the atomic measurement section AMS list, reconstructing and displaying the transmission path of the service message by the network management system.
Further, from the AMS list, the network management system sequentially obtains the recorded AMS identifications of each AMS, collector identifications associated with MPs in the MP group of each AMS, and collector identifications associated with MPs in the MP group of each AMS. From the collector list, the network management device sequentially obtains the collector identifier of each collector of the record. And according to the collector identifier of each collector, the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS, the network management system determines the MP associated with each collector and the interface of the network equipment serving as the collector associated with the MP. According to the interface of the network equipment which is related to the MP and is used as the collector, the network management equipment determines the link connection relation between the collectors. And according to the link connection relation between the collectors, the network management equipment reconstructs and displays the transmission path of the service message.
According to the foregoing example, the network management device sequentially acquires AMS1, AMS2, AMS3, AMS4, AMS5, AMS6, AMS7, a collector identifier (e.g., 1.1.1.1) of an MP association under an in-MP group of each AMS, and a collector identifier (e.g., 1.1.1.1) of an MP association under an out-MP group of each AMS. According to the collector identification of each collector, the collector identification associated with the MP under the MP group of each AMS and the collector identification associated with the MP under the MP group of each AMS, the network management system determines the MP (such as MP1) associated with each collector and the interface of the network equipment which is associated with the MP and is used as the collector. According to the interface of the network equipment which is related to the MP and is used as the collector, the network management equipment determines the link connection relation between the collectors. According to the link connection relationship between the collectors, the network management device reconstructs and displays the transmission path of the service message, as shown in fig. 2. Fig. 2 is a schematic transmission path diagram of a reconstructed service packet according to an embodiment of the present application.
In fig. 2, four collectors recorded in the collector list are sequentially connected.
Step 140, receiving a second data request sent by the network management system, where the second data request is used for the network management system to obtain packet loss data of each instance in the current period and packet loss data of each AMS in the AMS list configured in each instance.
Specifically, after reconstructing and displaying the transmission path of the service packet, the network management device needs to obtain packet loss data of each instance of the network device in the current period and packet loss data of each AMS in the AMS list configured in each instance.
Further, the network management system creates a periodic task, that is, the network management system obtains packet loss data of each instance in the network device and packet loss data of each AMS in the AMS list configured under each instance in a certain period (for example, 3 hours).
And the network management system generates a second data request, wherein the second data request is used for the network management system to acquire the packet loss data of each instance in the current period and the packet loss data of each AMS in the AMS list configured under each instance. The second data request includes periodic information.
And the network management system sends a second data request to the network equipment.
Step 150, obtaining the packet loss data of each instance and the packet loss data of each AMS according to the second data request.
Specifically, after receiving the second data request, the network device obtains packet loss data of each instance and packet loss data of each AMS in the period according to the second data request.
In the embodiment of the present application, the network device obtains packet loss data of each instance and packet loss data of each AMS in the period as follows:
Figure BDA0002853625830000151
Figure BDA0002853625830000161
Figure BDA0002853625830000171
in the foregoing example, the number of packet loss data of example 1 is 249387; the number of lost packet data of the AMS1 is 498774; the number of lost packets of the AMS2 is 498554.
Step 160, sending a second data response to the network management system, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
Specifically, the network device generates a second data response after acquiring the packet loss data of each instance and the packet loss data of each AMS in the period. The second data response includes packet loss data of each instance and packet loss data of each AMS at the period.
And the network equipment sends a second data response to the network management system.
And after receiving the second data response, the network management system acquires the packet loss data of each instance and the packet loss data of each AMS in the period. And the network management system displays the packet loss data of each example and the packet loss data of each AMS in a transmission path of the service message.
Further, according to the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS, the network management system determines whether the collector identifiers associated with the MP under the MP group and the MP under the MP group are the same collector. If so, the network management system displays the packet loss data of the AMS below the collector represented by the collector identifier; and if not, the network management system displays the packet loss data of the AMS above the link correspondingly formed by the plurality of collector identifications.
According to the foregoing example, in one example, the collector identification of an MP association under an in-MP group of AMS1 is 1.1.1.1; if the collector identifier of the MP association under the outgoing MP group of the AMS1 is 1.1.1.1, the network management system determines that the collector identifier of the MP association under the incoming/outgoing MP group of the AMS1 is the same collector, and the network management system displays the packet loss data of the AMS1 below the collector represented by the collector identifier 1.1.1.1.
In another example, the collector identification of an MP association under an MP group of AMS2 is 1.1.1.1; if the collector identifier of the MP association under the outgoing MP group of the AMS2 is 1.1.1.3, the network management system determines that the collector identifier of the MP association under the incoming/outgoing MP group of the AMS2 is a different collector, and the network management system displays the packet loss data of the AMS2 on the link between 1.1.1.1 and 1.1.1.3.
Fig. 3 is a schematic diagram illustrating packet loss data displayed in a transmission path of a service packet according to an embodiment of the present application.
Therefore, by applying the packet loss statistics implementation method of the packet provided by the application, the network device receives the first data request sent by the network management system. According to the first data request, the network equipment acquires a configured instance list, a configured collector list under each instance and an atomic measurement section AMS list. And the network equipment sends a first data response to the network management system, so that the network management system reconstructs and displays a transmission path of the service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list. And the network equipment receives a second data request sent by the network management system. And according to the second data request, the network equipment acquires the packet loss data of each instance and the packet loss data of each AMS. And the network equipment sends a second data response to the network management system, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.
Therefore, the problem that the existing Y.1731 technology and NQA technology cannot meet the performance statistical requirement of service messages in IP networking is solved. The method and the device realize the distinguishing of the service messages in different service flows through the configured examples and count the packet loss condition of the service messages through the examples; meanwhile, a visual display method is also provided, and packet loss data of each network device in a transmission path of the service message is visually displayed.
Optionally, before step 110 in this embodiment of the application, a step in which the network device receives a third data request sent by the network management system and sends a third data response to the network management system is further included.
Specifically, an analyzer list page is displayed in the network management system, as shown in fig. 4, fig. 4 is a schematic diagram of the analyzer list page provided in the embodiment of the present application. In fig. 4, the parser list includes a status column, a device tag column, a parser identification column, a UDP port column, an instance number column, and a details column.
And if the network management system needs to acquire the related information and data of the analyzer, the network management system generates a third data request according to the IP address of the analyzer recorded in the equipment label column, wherein the third data request comprises an analyzer field. The third data request may be specifically as follows:
<INQA>
<Analyzer/>
</INQA>
and if the network device receiving the third data request is the analyzer, the network device fills the attribute data of the analyzer in the analyzer field.
And the network management system sends a third data request to the network equipment, and after the network equipment receives the third data request, if the network equipment is an analyzer, the network equipment fills the attribute data of the analyzer in the field of the analyzer and generates a third data response.
And the network equipment sends a third data response to the network management system. And after receiving the third data response, the network management system acquires the attribute data of the analyzer from the third data response, and then determines that the network equipment is the analyzer. At this time, if the user inputs a click instruction, for example, the user clicks "instance details in the details column". The network management system generates a first data request and performs the steps 110-160.
After the network management system acquires the configured instance list, the collector list and the AMS list of the network equipment, the network management system displays the instance list, the collector list and the AMS list. As shown in fig. 5, fig. 5 is a schematic diagram of an example data page provided in the embodiment of the present application.
If the network device is not the analyzer, the network device discards the third data request.
Optionally, in this embodiment of the present application, the method further includes a step of marking, by the network device, the service packet to be counted.
Specifically, the network device obtains a first service packet, where the first service packet includes an IP header, and the IP header includes a ToS field. The first service packet further includes a feature attribute field, and the feature attribute field may specifically be a source IP address, a destination IP address, and the like.
According to the characteristic attribute field, the network device determines that the first service message is a message to be subsequently counted and belongs to the target service flow, and sets a fifth position included in the ToS field to generate a second service message. Note that the ToS field has 8 bits. In the embodiment of the application, the fifth bit is used as a dyeing bit to mark the service message.
Subsequently, the network device counts the marked second service packet belonging to the same target service flow, and forwards the second service packet through a transmission path for transmitting the second service packet, so that each network device (it can be understood that the network device configured with the MP) included in the transmission path counts the second service packet according to the set fifth bit.
Optionally, before step 110 in this embodiment of the present application, a step of configuring an instance in a network device and associating the instance with a service flow is further included.
Specifically, an instance corresponding to each service feature is configured according to the service feature (e.g., voice stream, video stream, etc.) of each service stream. In the embodiment of the present application, one example configures a service flow, and the service flow may be a unidirectional flow or a bidirectional flow. Wherein a bidirectional flow is logically two unidirectional flows in opposite directions.
In each instance, the network device associates a feature attribute of a service packet included in the service flow (the feature attribute may include a source IP address, a destination IP address, and the like). In one example, the service flows configured under example 1 are: "forward source-ip 10.1.1.1destination-ip 10.2.2.2". That is, the source IP address of the target service flow is 10.1.1.1, and the destination IP address is 10.2.2.2, and statistics is performed on the service packet sent from 10.1.1.1 to 10.2.2.2.
Optionally, in each instance, after the network device associates the feature attribute of the service packet included in the service flow, the network device further configures an MP and an AMS in the instance.
Specifically, when the network device is a collector, at each instance, the network device configures an MP identifier of an associated MP, where the MP identifier represents an MP associated with an interface of the network device; when the network device is an analyzer, in each instance, the network device sequentially configures an identifier of a collector and an identifier of an AMS that pass through a transmission path for transmitting the service packet.
It should be noted that, in the embodiment of the present application, the roles of the network device include a collector and an analyzer. The role configuration of the network device may be configured locally at the network device by an administrator in the form of a command line.
The packet loss statistics implementation method for the packet provided in the embodiment of the present application is described in detail below. Referring to fig. 6, fig. 6 is a flowchart of another packet loss statistics implementation method for a packet according to the embodiment of the present application. The method is applied to a network management system, and the packet loss statistics realization method of the message provided by the embodiment of the application can comprise the following steps.
Step 610, sending a first data request to the network device, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list.
Specifically, the network management device needs to obtain instance data configured in the network device, so as to reconstruct and display a transmission path for forwarding the service packet through the obtained instance data.
The network management system generates a first data request, and the first data request is used for the network management system to obtain instance data configured in the network equipment. The instance data comprises a configured instance list, a configured collector list under each instance in the instance list and an AMS list.
The network management system sends a first data request to the network equipment.
Step 620, receiving a first data response sent by the network device, where the first data response includes the list of instances, the list of collectors configured under each instance, and the list of atomic measurement section AMS.
Specifically, after receiving the first data request, the network device determines, according to the first data request, that the network management system needs to obtain an instance list configured by the network device, a collector list configured under each instance in the instance list, and an AMS list.
In the embodiment of the present application, the configured instance list, collector list and AMS list of the network device are shown in step 120 in the foregoing embodiment, and are not repeated here.
And the network equipment generates a first data response after acquiring the configured instance list, the collector list configured under each instance and the atomic measurement section AMS list. The first data response includes a list of instances, a list of collectors configured under each instance, and a list of atomic measurement segment AMSs.
The network device sends a first data response to the network management system.
And step 630, reconstructing and displaying a transmission path of the service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list.
Specifically, after receiving the first data response, the network management system obtains a configured instance list of the network device, a configured collector list under each instance, and an atomic measurement section AMS list. And according to the example list, the collector list configured under each example and the atomic measurement section AMS list, reconstructing and displaying the transmission path of the service message by the network management system.
Further, from the AMS list, the network management system sequentially obtains the recorded AMS identifications of each AMS, collector identifications associated with MPs in the MP group of each AMS, and collector identifications associated with MPs in the MP group of each AMS. From the collector list, the network management device sequentially obtains the collector identifier of each collector of the record. And according to the collector identifier of each collector, the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS, the network management system determines the MP associated with each collector and the interface of the network equipment serving as the collector associated with the MP. According to the interface of the network equipment which is related to the MP and is used as the collector, the network management equipment determines the link connection relation between the collectors. And according to the link connection relation between the collectors, the network management equipment reconstructs and displays the transmission path of the service message.
According to the foregoing example, the network management device sequentially acquires AMS1, AMS2, AMS3, AMS4, AMS5, AMS6, AMS7, a collector identifier (e.g., 1.1.1.1) of an MP association under an in-MP group of each AMS, and a collector identifier (e.g., 1.1.1.1) of an MP association under an out-MP group of each AMS. According to the collector identification of each collector, the collector identification associated with the MP under the MP group of each AMS and the collector identification associated with the MP under the MP group of each AMS, the network management system determines the MP (such as MP1) associated with each collector and the interface of the network equipment which is associated with the MP and is used as the collector. According to the interface of the network equipment which is related to the MP and is used as the collector, the network management equipment determines the link connection relation between the collectors. According to the link connection relationship between the collectors, the network management device reconstructs and displays the transmission path of the service message, as shown in fig. 2. Fig. 2 is a schematic transmission path diagram of a reconstructed service packet according to an embodiment of the present application.
In fig. 2, four collectors recorded in the collector list are sequentially connected.
Step 640, sending a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in the current period and packet loss data of each AMS in the AMS list configured in each instance.
Specifically, after reconstructing and displaying the transmission path of the service packet, the network management device needs to obtain packet loss data of each instance of the network device in the current period and packet loss data of each AMS in the AMS list configured in each instance.
Further, the network management system creates a periodic task, that is, the network management system obtains packet loss data of each instance in the network device and packet loss data of each AMS in the AMS list configured under each instance in a certain period (for example, 3 hours).
And the network management system generates a second data request, wherein the second data request is used for the network management system to acquire the packet loss data of each instance in the current period and the packet loss data of each AMS in the AMS list configured under each instance. The second data request includes periodic information.
And the network management system sends a second data request to the network equipment.
Step 650, receiving a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS.
Specifically, after receiving the second data request, the network device obtains packet loss data of each instance and packet loss data of each AMS in the period according to the second data request.
In this embodiment of the present application, the network device obtains the packet loss data of each instance and the packet loss data of each AMS in the period as shown in step 150 in the foregoing embodiment, which is not repeated here.
And the network equipment generates a second data response after acquiring the packet loss data of each instance and the packet loss data of each AMS in the period. The second data response includes packet loss data of each instance and packet loss data of each AMS at the period.
And the network equipment sends a second data response to the network management system.
Step 660, displaying the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
Specifically, after receiving the second data response, the network management system obtains packet loss data of each instance and packet loss data of each AMS in the period. And the network management system displays the packet loss data of each example and the packet loss data of each AMS in a transmission path of the service message.
Further, according to the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS, the network management system determines whether the collector identifiers associated with the MP under the MP group and the MP under the MP group are the same collector. If so, the network management system displays the packet loss data of the AMS below the collector represented by the collector identifier; and if not, the network management system displays the packet loss data of the AMS above the link correspondingly formed by the plurality of collector identifications.
According to the foregoing example, in one example, the collector identification of an MP association under an in-MP group of AMS1 is 1.1.1.1; if the collector identifier of the MP association under the outgoing MP group of the AMS1 is 1.1.1.1, the network management system determines that the collector identifier of the MP association under the incoming/outgoing MP group of the AMS1 is the same collector, and the network management system displays the packet loss data of the AMS1 below the collector represented by the collector identifier 1.1.1.1.
In another example, the collector identification of an MP association under an MP group of AMS2 is 1.1.1.1; if the collector identifier of the MP association under the outgoing MP group of the AMS2 is 1.1.1.3, the network management system determines that the collector identifier of the MP association under the incoming/outgoing MP group of the AMS2 is a different collector, and the network management system displays the packet loss data of the AMS2 on the link between 1.1.1.1 and 1.1.1.3.
Fig. 3 is a schematic diagram illustrating packet loss data displayed in a transmission path of a service packet according to an embodiment of the present application.
Therefore, by applying the packet loss statistics realization method of the packet provided by the application, the network management system sends a first data request to the network device, and the first data request is used for the network management system to obtain the instance data configured in the network device. The network management system receives a first data response sent by the network equipment. And according to the example list, the collector list configured under each example and the atomic measurement section AMS list which are included in the first data response, the network management system reconstructs and displays the transmission path of the service message. And the network management system sends a second data request to the network equipment, wherein the second data request is used for the network management system to acquire packet loss data of each instance in the current period and packet loss data of each AMS in the AMS list configured under each instance. And the network management system receives a second data response sent by the network equipment. And the network management system displays the packet loss data of each instance and the packet loss data of each AMS included in the second data response in a transmission path of the service message.
Therefore, the problem that the existing Y.1731 technology and NQA technology cannot meet the performance statistical requirement of service messages in IP networking is solved. The method and the device realize the distinguishing of the service messages in different service flows through the configured examples and count the packet loss condition of the service messages through the examples; meanwhile, a visual display method is also provided, and packet loss data of each network device in a transmission path of the service message is visually displayed.
Optionally, before step 610 of the embodiment of the present application, a step of sending, by the network management system, a third data request to the network device and receiving a third data response sent by the network device is further included.
Specifically, an analyzer list page is displayed in the network management system, as shown in fig. 4, fig. 4 is a schematic diagram of the analyzer list page provided in the embodiment of the present application. In fig. 4, the parser list includes a status column, a device tag column, a parser identification column, a UDP port column, an instance number column, and a details column.
And if the network management system needs to acquire the related information and data of the analyzer, the network management system generates a third data request according to the IP address of the analyzer recorded in the equipment label column, wherein the third data request comprises an analyzer field. The third data request may be specifically as follows:
<INQA>
<Analyzer/>
</INQA>
and if the network device receiving the third data request is the analyzer, the network device fills the attribute data of the analyzer in the analyzer field.
And the network management system sends a third data request to the network equipment, and after the network equipment receives the third data request, if the network equipment is an analyzer, the network equipment fills the attribute data of the analyzer in the field of the analyzer and generates a third data response.
And the network equipment sends a third data response to the network management system. And after receiving the third data response, the network management system acquires the attribute data of the analyzer from the third data response, and then determines that the network equipment is the analyzer. At this time, if the user inputs a click instruction, for example, the user clicks "instance details in the details column". The network management system generates a first data request and performs the aforementioned steps 610-660.
After the network management system acquires the configured instance list, the collector list and the AMS list of the network equipment, the network management system displays the instance list, the collector list and the AMS list. As shown in fig. 5, fig. 5 is a schematic diagram of an example data page provided in the embodiment of the present application.
If the network device is not the analyzer, the network device discards the third data request.
Optionally, in this embodiment of the present application, the network management system may further generate and display a corresponding statistical curve according to packet loss data displayed in the transmission path of the service packet. The packet loss rate of the service message can be counted through the statistical curve. As shown in fig. 7, fig. 7 is a schematic diagram of a statistical curve provided in the embodiment of the present application.
Through the statistical curve, the packet loss condition of each network device in the transmission path can be visually shown to the user.
Based on the same inventive concept, the embodiment of the application also provides a packet loss statistics realization device of the message corresponding to the packet loss statistics realization method of the message. Referring to fig. 8, fig. 8 is a structural diagram of a packet loss statistics implementation apparatus for a packet provided in an embodiment of the present application, where the apparatus is applied to a network device, and the network device is in communication connection with a network management system through a Netconf interface, and the apparatus includes:
a receiving unit 810, configured to receive a first data request sent by the network management system, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
an obtaining unit 820, configured to obtain, according to the first data request, a configured instance list, a configured collector list under each instance, and an atomic measurement section AMS list;
a sending unit 830, configured to send a first data response to the network management system, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service packet according to the instance list, the collector list configured under each instance, and the atomic measurement section AMS list;
the receiving unit 810 is further configured to receive a second data request sent by the network management system, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the obtaining unit 820 is further configured to obtain the packet loss data of each instance and the packet loss data of each AMS according to the second data request;
the sending unit 830 is further configured to send a second data response to the network management system, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
Optionally, the receiving unit 810 is further configured to receive a third data request sent by the network management system, where the third data request includes an analyzer field;
the sending unit 830 is further configured to send a third data response to the network management system if the network device is the analyzer indicated by the analyzer field, where the third data response includes the attribute data belonging to the analyzer, so that the network management system determines that the network device is the analyzer according to the attribute data of the analyzer.
Optionally, the apparatus further comprises: an obtaining unit (not shown in the figure), configured to obtain a first service packet, where the first service packet includes a service type ToS field and a feature attribute field;
a generating unit (not shown in the figure), configured to set a fifth position included in the ToS field according to the characteristic attribute field, and generate a second service packet;
a counting unit (not shown in the figure) configured to count the second service packet;
the sending unit 830 is further configured to forward the second service packet through a transmission path for transmitting the second service packet, so that each network device included in the transmission path performs statistics on the second service packet according to the set fifth bit.
Optionally, the apparatus further comprises: a configuration unit (not shown in the figure), configured to configure, according to the service feature of each service flow, an instance corresponding to each service feature;
an associating unit (not shown in the figure), configured to associate, at each instance, a characteristic attribute of a service packet included in the service flow;
wherein one traffic flow is configured under each instance.
The configuration unit (not shown in the figure) is further configured to, when the network device is a collector, configure, at each instance, an MP identifier of an associated measurement point MP, where the MP identifier represents that the MP is associated with an interface of the network device;
when the network device is an analyzer, in each instance, identifiers of collectors and AMS passing through a transmission path for transmitting the service packet are sequentially configured.
Therefore, by applying the packet loss statistics realization method of the message provided by the application, the device receives the first data request sent by the network management system. According to the first data request, the device acquires a configured instance list, a configured collector list under each instance, and an atomic measurement section AMS list. The device sends a first data response to the network management system, so that the network management system reconstructs and displays a transmission path of the service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list. The device receives a second data request sent by the network management system. According to the second data request, the device acquires packet loss data of each instance and packet loss data of each AMS. The device sends a second data response to the network management system, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.
Therefore, the problem that the existing Y.1731 technology and NQA technology cannot meet the performance statistical requirement of service messages in IP networking is solved. The method and the device realize the distinguishing of the service messages in different service flows through the configured examples and count the packet loss condition of the service messages through the examples; meanwhile, a visual display method is also provided, and packet loss data of each network device in a transmission path of the service message is visually displayed.
Based on the same inventive concept, the embodiment of the application also provides a packet loss statistics realization device of the message corresponding to the packet loss statistics realization method of the message. Referring to fig. 9, fig. 9 is a structural diagram of another packet loss statistics implementation apparatus for a packet according to an embodiment of the present application, where the apparatus is applied to a network management system, and the network management system is in communication connection with a network device through a Netconf interface, and the apparatus includes:
a sending unit 910, configured to send a first data request to the network device, where the first data request is used for the network management system to obtain instance data configured in the network device, where the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
a receiving unit 920, configured to receive a first data response sent by the network device, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list;
a reconstruction display unit 930, configured to reconstruct and display a transmission path of the service packet according to the instance list, the collector list configured in each instance, and the atomic measurement section AMS list;
the sending unit 910 is further configured to send a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the receiving unit 920 is further configured to receive a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS;
the reconfiguration displaying unit 930 is further configured to display the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
Optionally, the sending unit 910 is further configured to send a third data request to the network device, where the third data request includes an analyzer field;
the device further comprises: and the determining unit is used for determining the network equipment as the analyzer according to the attribute data of the analyzer included in the third data response when the third data response sent by the network equipment is received.
Optionally, the reconfiguration displaying unit 930 is specifically configured to sequentially obtain, from the AMS list, the AMS identifier of each AMS, the collector identifier associated with the MP under the MP group of each AMS, and the collector identifier associated with the MP under the MP group of each AMS;
sequentially obtaining a collector identifier of each collector of the record from the collector list;
determining the MP associated with each collector and the interface of the network equipment serving as the collector associated with the MP according to the collector identifier of each collector, the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS;
determining a link connection relation between the collectors according to an interface of the network equipment which is associated with the MP and is used as the collector;
and reconstructing and displaying the transmission path of the service message according to the link connection relation between the collectors.
Optionally, the reconfiguration displaying unit 930 is specifically configured to determine, according to the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS, whether the collector identifiers associated with the MP under the MP group and the MP under the MP group represent the same collector;
if yes, displaying the lost packet data of the AMS below the collector represented by the collector identification;
and if not, displaying the packet loss data of the AMS above a link correspondingly formed by the plurality of collector identifications.
Optionally, the apparatus further comprises: and a generating unit (not shown in the figure) configured to generate and display a corresponding statistical curve according to the packet loss data displayed in the transmission path of the service packet.
Therefore, by applying the packet loss statistics implementation device of the packet provided by the application, the device sends a first data request to the network device, and the first data request is used for the network management system to obtain the instance data configured in the network device. The apparatus receives a first data response sent by a network device. And reconstructing and displaying a transmission path of the service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list which are included in the first data response. The device sends a second data request to the network equipment, wherein the second data request is used for the network management system to obtain the packet loss data of each instance in the current period and the packet loss data of each AMS in the AMS list configured under each instance. The apparatus receives a second data response sent by the network device. The device displays the packet loss data of each instance and the packet loss data of each AMS included in the second data response in a transmission path of the service message.
Therefore, the problem that the existing Y.1731 technology and NQA technology cannot meet the performance statistical requirement of service messages in IP networking is solved. The method and the device realize the distinguishing of the service messages in different service flows through the configured examples and count the packet loss condition of the service messages through the examples; meanwhile, a visual display method is also provided, and packet loss data of each network device in a transmission path of the service message is visually displayed.
Based on the same inventive concept, the embodiment of the present application further provides a network device, as shown in fig. 10, including a processor 1010, a transceiver 1020, and a machine-readable storage medium 1030, where the machine-readable storage medium 1030 stores machine-executable instructions capable of being executed by the processor 1010, and the processor 1010 is caused by the machine-executable instructions to perform the method provided by the embodiment of the present application. The packet loss statistics implementation apparatus shown in fig. 8 and fig. 9 may be implemented by using a hardware structure of a network device shown in fig. 10.
The computer-readable storage medium 1030 may include a Random Access Memory (RAM) and a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 1030 may also be at least one memory device located remotely from the processor 1010.
The Processor 1010 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 1010 is caused by machine executable instructions, which are read from the machine readable storage medium 1030, to implement the processor 1010 itself and the call transceiver 1020 to perform the method described in the embodiment of the present application.
In addition, a machine-readable storage medium 1030 is provided, where the machine-readable storage medium 1030 stores machine-executable instructions, and when the machine-readable storage medium 1030 is called and executed by the processor 1010, the machine-executable instructions cause the processor 1010 itself and the calling transceiver 1020 to perform the packet loss statistics implementation method for the packet described in the foregoing embodiment of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As for the packet loss statistics implementation apparatus of the packet and the machine-readable storage medium embodiment, the content of the related method is basically similar to that of the foregoing method embodiment, so that the description is relatively simple, and for relevant points, reference may be made to part of the description of the method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A packet loss statistical realization method of messages is characterized in that the method is applied to network equipment which is in communication connection with a network management system through a Netconf interface, and the method comprises the following steps:
receiving a first data request sent by the network management system, wherein the first data request is used for the network management system to acquire instance data configured in the network equipment, and the instance data comprises a configured instance list, a collector list configured under each instance in the instance list and an Atomic Measurement Section (AMS) list;
acquiring a configured instance list, a collector list configured under each instance and an atomic measurement section AMS list according to the first data request;
sending a first data response to the network management system, wherein the first data response comprises the example list, the collector list configured under each example and an atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list;
receiving a second data request sent by the network management system, wherein the second data request is used for the network management system to acquire packet loss data of each instance in the current period and packet loss data of each AMS in an AMS list configured under each instance;
according to the second data request, obtaining the packet loss data of each instance and the packet loss data of each AMS;
and sending a second data response to the network management system, wherein the second data response comprises the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service message.
2. The method according to claim 1, wherein before receiving the first data request sent by the network management system, the method further comprises:
receiving a third data request sent by a network management system, wherein the third data request comprises an analyzer field;
and if the network equipment is the analyzer indicated by the analyzer field, sending a third data response to the network management system, wherein the third data response comprises attribute data belonging to the analyzer, so that the network management system determines that the network equipment is the analyzer according to the attribute data of the analyzer.
3. The method of claim 1, further comprising:
acquiring a first service message, wherein the first service message comprises a service type ToS field and a characteristic attribute field;
according to the characteristic attribute field, setting a fifth position included by the ToS field to generate a second service message;
and counting the second service message, and forwarding the second service message through a transmission path for transmitting the second service message, so that each network device in the transmission path counts the second service message according to the set fifth bit.
4. The method according to claim 3, wherein before receiving the first data request sent by the network management system, the method further comprises:
configuring an instance corresponding to each service characteristic according to the service characteristic of each service flow;
under each instance, associating the characteristic attribute of the service message included in the service flow;
wherein one traffic flow is configured under each instance.
5. The method according to claim 4, wherein after associating the characteristic attribute of the service packet included in the service flow at each instance, the method further comprises:
when the network equipment is a collector, configuring an MP identifier of an associated Measurement Point (MP) under each instance, wherein the MP represented by the MP identifier is associated with an interface of the network equipment;
when the network device is an analyzer, in each instance, identifiers of collectors and AMS passing through a transmission path for transmitting the service packet are sequentially configured.
6. A packet loss statistical realization method of messages is characterized in that the method is applied to a network management system, the network management system is in communication connection with network equipment through a Netconf interface, and the method comprises the following steps:
sending a first data request to the network equipment, wherein the first data request is used for the network management system to acquire instance data configured in the network equipment, and the instance data comprises a configured instance list, a collector list configured under each instance in the instance list and an Atomic Measurement Section (AMS) list;
receiving a first data response sent by the network equipment, wherein the first data response comprises the instance list, the collector list configured under each instance and an Atomic Measurement Section (AMS) list;
reconstructing and displaying a transmission path of a service message according to the example list, the collector list configured under each example and the atomic measurement section AMS list;
sending a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured under each instance;
receiving a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS;
and displaying the packet loss data of each example and the packet loss data of each AMS in a transmission path of the service message.
7. The method of claim 6, wherein prior to sending the first data request to the network device, the method further comprises:
sending a third data request to the network device, the third data request including an analyzer field;
and when a third data response sent by the network equipment is received, determining the network equipment as an analyzer according to the attribute data of the analyzer included in the third data response.
8. The method of claim 6, wherein reconstructing and displaying a transmission path of a service packet according to the instance list, the collector list configured under each instance, and the Atomic Measurement Station (AMS) list comprises:
sequentially acquiring the recorded AMS identification of each AMS, the collector identification associated with the MP under the MP group of each AMS and the collector identification associated with the MP under the MP group of each AMS from the AMS list;
sequentially obtaining a collector identifier of each collector of the record from the collector list;
determining the MP associated with each collector and the interface of the network equipment serving as the collector associated with the MP according to the collector identifier of each collector, the collector identifier associated with the MP under the MP group of each AMS and the collector identifier associated with the MP under the MP group of each AMS;
determining a link connection relation between the collectors according to an interface of the network equipment which is associated with the MP and is used as the collector;
and reconstructing and displaying the transmission path of the service message according to the link connection relation between the collectors.
9. The method according to claim 8, wherein the displaying the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet specifically includes:
judging whether the collector identifications associated with the MP in the MP group and the MP out of the MP group of each AMS represent the same collector or not according to the collector identification associated with the MP in the MP group and the collector identification associated with the MP out of the MP group of each AMS;
if yes, displaying the lost packet data of the AMS below the collector represented by the collector identification;
and if not, displaying the packet loss data of the AMS above a link correspondingly formed by the plurality of collector identifications.
10. The method of claim 6, further comprising:
and generating and displaying a corresponding statistical curve according to the packet loss data displayed in the transmission path of the service message.
11. A packet loss statistics realization device of messages is characterized in that the device is applied to network equipment, the network equipment is in communication connection with a network management system through a Netconf interface, and the device comprises:
a receiving unit, configured to receive a first data request sent by the network management system, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
an obtaining unit, configured to obtain a configured instance list, a collector list configured under each instance, and an atomic measurement section AMS list according to the first data request;
a sending unit, configured to send a first data response to the network management system, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list, so that the network management system reconstructs and displays a transmission path of a service packet according to the instance list, the collector list configured under each instance, and the atomic measurement section AMS list;
the receiving unit is further configured to receive a second data request sent by the network management system, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the obtaining unit is further configured to obtain the packet loss data of each instance and the packet loss data of each AMS according to the second data request;
the sending unit is further configured to send a second data response to the network management system, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS, so that the network management system displays the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
12. A packet loss statistics realization device of messages is characterized in that the device is applied to a network management system, the network management system is in communication connection with network equipment through a Netconf interface, and the device comprises:
a sending unit, configured to send a first data request to the network device, where the first data request is used for the network management system to obtain instance data configured in the network device, and the instance data includes a configured instance list, a collector list configured under each instance in the instance list, and an atomic measurement section AMS list;
a receiving unit, configured to receive a first data response sent by the network device, where the first data response includes the instance list, the collector list configured under each instance, and an atomic measurement section AMS list;
a reconstruction display unit, configured to reconstruct and display a transmission path of the service packet according to the instance list, the collector list configured in each instance, and the atomic measurement section AMS list;
the sending unit is further configured to send a second data request to the network device, where the second data request is used for the network management system to obtain packet loss data of each instance in a current period and packet loss data of each AMS in an AMS list configured in each instance;
the receiving unit is further configured to receive a second data response sent by the network device, where the second data response includes the packet loss data of each instance and the packet loss data of each AMS;
the reconfiguration display unit is further configured to display the packet loss data of each instance and the packet loss data of each AMS in a transmission path of the service packet.
CN202011537700.6A 2020-12-23 2020-12-23 Packet loss statistics realization method and device for message Active CN112737874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011537700.6A CN112737874B (en) 2020-12-23 2020-12-23 Packet loss statistics realization method and device for message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011537700.6A CN112737874B (en) 2020-12-23 2020-12-23 Packet loss statistics realization method and device for message

Publications (2)

Publication Number Publication Date
CN112737874A true CN112737874A (en) 2021-04-30
CN112737874B CN112737874B (en) 2022-08-30

Family

ID=75604717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011537700.6A Active CN112737874B (en) 2020-12-23 2020-12-23 Packet loss statistics realization method and device for message

Country Status (1)

Country Link
CN (1) CN112737874B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040252700A1 (en) * 1999-12-14 2004-12-16 Krishnasamy Anandakumar Systems, processes and integrated circuits for rate and/or diversity adaptation for packet communications
CN101699786A (en) * 2009-10-15 2010-04-28 华为技术有限公司 Method, device and system for detecting packet loss
CN102752186A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Method and system for selecting path, and nodes
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss
CN104320338A (en) * 2014-10-21 2015-01-28 清华大学 Core routing-switching system running state reconfigurable programming method and system
US9043453B1 (en) * 2011-08-22 2015-05-26 Star2Star Communications, LLC Systems and methods for optimizing application data delivery over third party networks
WO2016049872A1 (en) * 2014-09-30 2016-04-07 华为技术有限公司 Device and method for measuring network packet loss

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040252700A1 (en) * 1999-12-14 2004-12-16 Krishnasamy Anandakumar Systems, processes and integrated circuits for rate and/or diversity adaptation for packet communications
CN101699786A (en) * 2009-10-15 2010-04-28 华为技术有限公司 Method, device and system for detecting packet loss
CN102752186A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Method and system for selecting path, and nodes
US9043453B1 (en) * 2011-08-22 2015-05-26 Star2Star Communications, LLC Systems and methods for optimizing application data delivery over third party networks
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss
WO2016049872A1 (en) * 2014-09-30 2016-04-07 华为技术有限公司 Device and method for measuring network packet loss
CN104320338A (en) * 2014-10-21 2015-01-28 清华大学 Core routing-switching system running state reconfigurable programming method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李黎等: "可重构网络系统的模型及体系结构", 《小型微型计算机系统》 *

Also Published As

Publication number Publication date
CN112737874B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US10652078B2 (en) Triggered in-band operations, administration, and maintenance in a network environment
US9577906B2 (en) Scalable performance monitoring using dynamic flow sampling
US7940685B1 (en) Method and apparatus for monitoring a network
US8520530B2 (en) Method and apparatus for providing availability metrics for measurement and managment of ethernet services
US8929221B2 (en) Method and system of monitoring the receipt of multicast traffic
EP2171918B1 (en) Operation, administration and maintenance (oam) for chains of services
US7711751B2 (en) Real-time network performance monitoring system and related methods
US8989002B2 (en) System and method for controlling threshold testing within a network
CN100382517C (en) Network QoS test method and system
US20070064611A1 (en) Method for monitoring packet loss ratio
US8774045B2 (en) Packet loss detecting method and apparatus, and router
US8229705B1 (en) Performance monitoring in computer networks
WO2021093692A1 (en) Network quality measurement method and device, server, and computer readable medium
US20060285500A1 (en) Method and apparatus for packet loss detection
US20120324360A1 (en) System and Method for Hierarchical Visualization of Data
CN103416022B (en) Throughput testing approach and system in service in distribution router/exchange board structure
CN105391592B (en) A kind of methods, devices and systems Packet Transport Network business detecting and measured
US20140280904A1 (en) Session initiation protocol testing control
US20150036510A1 (en) Method and device for measuring ethernet performance
US11201799B2 (en) Intelligent selection of vantage points for monitoring subservices based on potential impact to services
CN106789625A (en) A kind of loop detecting method and device
CN102195832A (en) Loopback testing method, device and system
CN101083567A (en) Performance monitoring of frame transmission in data network oam protocols
CN112737874B (en) Packet loss statistics realization method and device for message
US9178783B1 (en) Measuring network performance using inter-packet gap metric

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant