CN112291093A - Network detection method, device, network equipment and network system - Google Patents

Network detection method, device, network equipment and network system Download PDF

Info

Publication number
CN112291093A
CN112291093A CN202011184614.1A CN202011184614A CN112291093A CN 112291093 A CN112291093 A CN 112291093A CN 202011184614 A CN202011184614 A CN 202011184614A CN 112291093 A CN112291093 A CN 112291093A
Authority
CN
China
Prior art keywords
service
information
detection
label
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011184614.1A
Other languages
Chinese (zh)
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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202011184614.1A priority Critical patent/CN112291093A/en
Publication of CN112291093A publication Critical patent/CN112291093A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/205Quality of Service based

Landscapes

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

Abstract

The application provides a network detection method, a network detection device, network equipment and a network system. The method comprises the following steps: the inlet equipment adds a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to be used as the service message to be detected; the method comprises the steps that the inlet equipment counts information of service messages to be detected to obtain inlet statistical information, wherein the inlet statistical information comprises at least one of the number of the service messages to be detected and timestamps of the service messages to be detected; the method comprises the steps that the outlet equipment counts information of service messages with service labels to obtain outlet statistical information, wherein the outlet statistical information comprises at least one of the number and the time stamp of the service messages with the service labels; the detection device determines the detection result of the network between the inlet device and the outlet device according to the service label, the inlet statistical information and the outlet statistical information, and can improve the accuracy of detecting the network quality when the service flow is transmitted in the MPLS network.

Description

Network detection method, device, network equipment and network system
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a network detection method, an apparatus, a network device, and a network system.
Background
MPLS (Multi-Protocol Label Switching) is a backbone network Switching standard which is widely applied at present, and can introduce a connection-oriented Label Switching concept on a connectionless IP network, combine a third layer routing technology and a second layer Switching technology, and exert flexibility of IP routing and simplicity of two layer Switching. Currently, many operators and enterprises adopt MPLS technology to build their own networks to implement cross-regional, secure, reliable and manageable network services. In order to guarantee the quality of the service running in the MPLS network, the quality of the MPLS network needs to be measured. At present, when measuring the quality of the MPLS network, a specially constructed measurement packet is usually sent to perform analog measurement, and the network quality of a service flow during transmission of the MPLS network cannot be accurately measured.
Disclosure of Invention
The application provides a network detection method, a network detection device, network equipment and a network system, which can improve the accuracy of detecting the network quality of service flow during the transmission of an MPLS network.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a network detection method, which is applied to an MPLS network system and includes an ingress device, an egress device, and a detection device, where the method includes:
the entrance equipment adds a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to be used as a service message to be detected;
the entrance equipment counts the information of the service message to be tested to obtain entrance statistical information, wherein the entrance statistical information comprises at least one of the number of the service message to be tested and the timestamp of the service message to be tested;
the outlet equipment counts the information of the service messages with the service labels to obtain outlet statistical information, wherein the outlet statistical information comprises at least one of the number and the time stamps of the service messages with the service labels;
and the detection equipment determines a detection result of the network between the inlet equipment and the outlet equipment according to the service label, the inlet statistical information and the outlet statistical information, wherein the detection result comprises at least one of packet loss rate, time delay and jitter.
In the foregoing embodiment, the ingress device adds the service label for performing network quality detection on the service packet, so that the MPLS network that transmits the service packet can be detected without affecting the transmission of the service packet, and the accuracy of detecting the network quality of the service flow during the transmission of the MPLS network can be improved. In addition, a special measurement message is not required to be constructed, and the network detection process is facilitated to be simplified.
With reference to the first aspect, in some optional implementations, the adding, by the ingress device, a service tag associated with the feature information to the service packet according to a detection policy and the feature information of the received service packet includes:
when the detection strategy is one-time detection, the inlet equipment adds a service label associated with the characteristic information to each service message according to the characteristic information of each service message received within a preset time length;
when the detection strategy is periodic detection, the ingress device adds a service tag associated with the characteristic information to each service packet according to the characteristic information of each service packet received in each detection period, wherein the service tag comprises a period identifier, and the interval duration of adjacent detection periods is preset duration.
With reference to the first aspect, in some optional implementations, the adding, by the ingress device, a service tag associated with the feature information to the service packet according to a detection policy and the feature information of the received service packet includes:
the entrance device samples the received service message according to the detection strategy to obtain a target service message;
and the inlet equipment adds a service label to the target service message according to the characteristic information of the target service message, wherein the service label comprises a first label for indicating the time delay detection of the target service message or a second label for indicating the jitter detection of the target service message.
With reference to the first aspect, in some optional implementations, the MPLS network system further includes a controller, where before the ingress device adds a service label associated with the feature information to the service packet according to a detection policy and the feature information of the received service packet, the method further includes:
the controller establishes an incidence relation between the characteristic information of the service message and a service label, wherein the service label comprises an unused reserved label;
or the controller establishes an association relationship between feature information of a service packet and a service label, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet;
or the ingress device establishes an association relationship between feature information of a service packet and a service label through static configuration, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet;
or, the ingress device establishes an association relationship between feature information of a service packet and a service label through an MPLS control protocol, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet.
With reference to the first aspect, in some optional implementations, the counting, by the egress device, information of the service packet with the service tag includes:
when the service label comprises the reserved label, the outlet equipment determines the service type of the service message according to the characteristic information of the service message, and counts at least one of the number and the time stamp of the service messages with the service label and the same service type;
and when the service label comprises the unreserved label, the outlet equipment determines the service type of the service message according to the ILM, and counts at least one of the number and the time stamp of the service messages with the service labels and the same service types.
With reference to the first aspect, in some optional implementations, the determining, by the detecting device, a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information includes:
the detection equipment selects first statistical information in a specified time period from the entrance statistical information and selects second statistical information corresponding to the specified time period from the exit statistical information;
determining a packet loss rate corresponding to the service type of the service packet in the specified time period according to the number of the service packets in the first statistical information and the number of the service packets in the second statistical information;
and determining the time delay and jitter corresponding to the service type in the specified time period according to the time stamps of the service messages of the same service label in the first statistical information and the second statistical information.
In a second aspect, an embodiment of the present application further provides a network detection method, which is applied to an ingress device in an MPLS network system, where the MPLS network system further includes an egress device and a detection device, and the method includes:
adding a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to serve as the service message to be detected;
and counting information of the service message to be detected to obtain inlet statistical information, which is used for determining a detection result of a network between the inlet equipment and the outlet equipment according to outlet statistical information obtained by counting the service message with the service label by the detection equipment according to the service label, the inlet statistical information and the outlet equipment, wherein the inlet statistical information comprises at least one of the number of the service message to be detected and a timestamp of the service message to be detected, the outlet statistical information comprises at least one of the number of the service message with the service label and the timestamp, and the detection result comprises at least one of a packet loss rate, a time delay and jitter.
In a third aspect, an embodiment of the present application further provides a network detection apparatus, which is applied to an MPLS network system, and includes an ingress device, an egress device, and a detection device, where the apparatus includes:
a tag adding unit, configured to add a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, so as to serve as a service packet to be detected;
the first statistical unit is used for counting the information of the service messages to be detected to obtain inlet statistical information, wherein the inlet statistical information comprises at least one of the number of the service messages to be detected and the time stamp of the service messages to be detected;
a second statistical unit, configured to count information of the service packet with the service tag to obtain outlet statistical information, where the outlet statistical information includes at least one of the number of the service packets with the service tag and a timestamp;
a detecting unit, configured to determine a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of a packet loss rate, a time delay, and jitter.
In a fourth aspect, an embodiment of the present application further provides a network detection apparatus, which is applied to an ingress device in an MPLS network system, where the MPLS network system further includes an egress device and a detection device, and the apparatus includes:
a tag adding unit, configured to add a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, so as to serve as a service packet to be detected;
a first statistics unit, configured to count information of the service packet to be detected to obtain entry statistics information, where the entry statistics information is used to combine with exit statistics information obtained by counting the service packet with the service tag by the exit device, so that the detection device determines a detection result of a network between the entry device and the exit device according to the service tag, where the entry statistics information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected, the exit statistics information includes at least one of the number of the service packet with the service tag and a timestamp, and the detection result includes at least one of a packet loss rate, a time delay, and jitter.
In a fifth aspect, an embodiment of the present application further provides a network device, where the network device includes a memory and a processor coupled to each other, and the memory stores a computer program, and when the computer program is executed by the processor, the network device is caused to perform the method described above.
In a sixth aspect, an embodiment of the present application further provides a network system, where the network system includes an ingress device, an egress device, and a detection device, where:
the inlet device is used for adding a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to serve as the service message to be detected;
the ingress device is further configured to count information of the service packet to be detected to obtain ingress statistical information, where the ingress statistical information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected;
the outlet device is configured to count information of the service packet with the service tag to obtain outlet statistical information, where the outlet statistical information includes at least one of the number of the service packets with the service tag and a timestamp;
the detection device is configured to determine a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of a packet loss rate, a time delay, and jitter.
In a seventh aspect, this application embodiment further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the application and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a schematic diagram of communication connection of a network system according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a network detection method according to an embodiment of the present application.
Fig. 3 is a block diagram of a network detection apparatus according to an embodiment of the present disclosure.
Fig. 4 is a second flowchart of a network detection method according to an embodiment of the present application.
Fig. 5 is a second block diagram of a network detection apparatus according to an embodiment of the present application.
Icon: 10-an inlet device; 20-an outlet device; 30-a detection device; 200-a network detection device; 210-a tag addition unit; 220-a first statistical unit; 230-a second statistical unit; 240-a detection unit; 400-network detection means; 410-a tag addition unit; 420-first statistical unit.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish one description from another, and are not intended to indicate or imply relative importance.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
First embodiment
Referring to fig. 1, an embodiment of the present application provides a network system, which may include an ingress device 10, an egress device 20, and a detection device 30. The network system may be referred to as an MPLS network system, among others. The ingress device 10 and the egress device 20 are both network devices in the MPLS network for transmitting data. For example, the ingress device 10 may be a router, switch, or the like. Egress device 20 may be a router, switch, or the like. The detection device 30 may be the ingress device 10, or the egress device 20, or an electronic device independent from the ingress device 10 and the egress device 20, and may obtain statistical information of the traffic packets counted by the ingress device 10 from the ingress device 10, and may obtain statistical information of the traffic packets counted by the egress device 20 from the egress device 20. For example, detection device 30 may be a controller in an MPLS network.
The ingress device 10 and the egress device 20 may be directly connected or may establish a communication connection through one or more network devices, which may be routers, switches, etc. It is understood that the communication connection between the inlet device 10 and the outlet device 20 can be determined according to actual situations, and is not limited specifically here.
Ingress device 10 is not limited to network devices at the ingress end of an MPLS network, for example, ingress device 10 may be a head-end network device in a network path that needs to be detected. Egress device 20 is not limited to network devices at the egress end of an MPLS network. For example, egress device 20 may be a network device that needs to detect an end in a network path.
When a user needs to access data of a target device through an MPLS network, the user may access an ingress device 10 in a network system through a user terminal, and then the ingress device 10 establishes a communication connection with an egress device 20 according to a forwarding path, and the egress device 20 performs data interaction with the target device, thereby implementing interaction between the user terminal and the target device.
The user terminal may be, but is not limited to, a smart phone, a Personal Computer (PC), and the like. The target device may be a server or other device, and is not particularly limited herein.
Understandably, the interaction between the ingress device 10, the egress device 20, and the detection device 30 in the network system may be used to perform or implement the steps of the network detection method described below.
Referring to fig. 2, an embodiment of the present application provides a network detection method, which can be applied to the network system, and the ingress device 10, the egress device 20, and the detection device 30 cooperate with each other to implement the steps of the method. The method may comprise the steps of:
step S110, adding a service label associated with the characteristic information to the service message by the inlet equipment according to the detection strategy and the characteristic information of the received service message to serve as the service message to be detected;
step S120, the entrance equipment counts the information of the service message to be tested to obtain entrance statistical information, wherein the entrance statistical information comprises at least one of the number of the service message to be tested and the timestamp of the service message to be tested;
step S130, the outlet device counts the information of the service messages with the service labels to obtain outlet statistical information, wherein the outlet statistical information comprises at least one of the number and the time stamps of the service messages with the service labels;
step S140, the detection device determines a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of packet loss rate, delay, and jitter.
In the foregoing embodiment, the ingress device adds the service label for performing network quality detection on the service packet, so that the MPLS network that transmits the service packet can be detected without affecting the transmission of the service packet, and the accuracy of detecting the network quality of the service flow during the transmission of the MPLS network can be improved. In addition, a special measurement message is not required to be constructed, and the network detection process is facilitated to be simplified.
In step S110, the detection strategy may be selected according to actual conditions. For example, the detection strategy may be a one-time detection, or a periodic detection. The service message is a message corresponding to the service, and the service can be determined according to actual conditions. For example, the service is a service of a real-time application program. Or the service is a big data application service and the like. The feature information of the service packet includes, but is not limited to, an IP five tuple in a three-layer network, a DSCP (Differentiated Services Code Point) value, a VRF (Virtual Routing Forwarding) instance, and the like, an MAC in a two-layer network, an ID of a Virtual local area network, and the like, and is not limited specifically herein.
Understandably, the entrance device stores the association relationship between various types of feature information and corresponding service tags in advance. When the inlet equipment receives the service message, the inlet equipment can analyze and obtain the characteristic information of the service message, and then can determine the service label corresponding to the characteristic information of the current service message based on the obtained characteristic information and the incidence relation. And then adding the determined service label in the current service message.
The service label can be set according to actual conditions, and is used for detecting the network quality of the MPLS network. The detection device can identify and classify various service messages according to the service labels so as to detect the network quality of the MPLS network when different service flows are transmitted.
In this embodiment, the ingress device may add a service tag to the received service packet according to the detection policy. The service message added with the service label can be used as a service message to be detected for detecting the network quality. If the service message is not added with the service label, the service message cannot be used for detecting the network quality.
In step S120, the ingress device may count the relevant information of all the service packets to be tested, or count the relevant information of the service packets to be tested within a set duration, so as to serve as ingress statistical information. The entry statistical information may include, but is not limited to, the number of the service packets to be tested, a timestamp of the service packet to be tested, a service tag of the service packet, and the like. The timestamp of the service message to be detected may be a timestamp obtained by adding a service tag to the service message after the access device receives the service message, or a timestamp obtained when the service message is received.
In step S130, the egress device may count the relevant information of all the received service packets with service labels, or count the relevant information of the service packets with service labels received within a set time period, as the egress statistical information. The egress statistical information includes, but is not limited to, the number of service packets with service labels, timestamps of the service packets, the service labels, and the like. The timestamp of the service packet in the egress statistical information may be a timestamp of the packet with the service tag received by the egress device.
It should be noted that the clocks of the egress device and the ingress device are usually synchronized clocks, so that the validity of the statistical time stamp can be improved. The way in which the egress device is synchronized to the ingress device clock is well known to those skilled in the art and will not be described further herein.
In step S140, the detection device may obtain the entry statistical information collected by the entry device from the entry device, and in addition, the detection device may obtain the exit statistical information collected by the exit device from the exit device. After acquiring the inlet statistical information and the outlet statistical information, the detection device may select the inlet statistical information and the outlet statistical information counted in the corresponding time period, then calculate a packet loss rate according to the number of packets in the selected inlet statistical information and outlet statistical information, and calculate a time delay and jitter of the corresponding service packet according to timestamps of the same service packet on the inlet device and the outlet device.
Before step S110, the method may further include the step of configuring the inlet device and the outlet device. For example, the ingress device may be configured through a controller in the MPLS network, so that the ingress device may add a service label to a received corresponding service packet to serve as a service packet to be tested. In addition, the configured ingress device may perform statistics on the service packet to be tested to obtain ingress statistics information. The egress device may be configured through a controller in the MPLS network, and the configured egress device may perform statistics on the service packet with the service label to obtain egress statistical information.
Before step S110, the method may further include establishing an association relationship between each type of feature information and the service tag in advance according to the feature information of the service packet. Wherein the service label is in a standard MPLS label format. The service label includes 4 bytes of 32 bits, including a label value field of 20 bits, an EXP field of 3 bits, a BoS stack bottom bit of 1 bit, and a TTL field of 8 bits, and the MPLS label format is well known to those skilled in the art and will not be described herein.
As an optional implementation, the manner of creating the association relationship may be: the controller establishes an incidence relation between the characteristic information of the service message and a service label, wherein the service label comprises an unused reserved label.
Understandably, the reserved label is a field corresponding to the label value in the service label. For example, 0-15 are reserved tags, and if 0, 1, 2, 3, 14 have been used, other tags may be selected as service tags.
The following non-reserved labels are fields corresponding to label values in the service labels, and 16-1048575 are non-reserved labels, and any label can be selected as the service label.
When the reserved Label is used as a Label value in the service Label, the ingress device does not need to install an FTN (FEC to NHLFE, where FEC is an abbreviation of Forwarding Equivalence Class, NHLFE is an abbreviation of Next Hop Label Forwarding Entry, and the egress device does not need to install an ILM (Incoming Label Map) on the egress device. The exit device and the entrance device can directly determine the type of the service message according to the characteristic information of the service message.
As an optional implementation, the manner of creating the association relationship may be: the controller establishes an association relationship between feature information of a service packet and a service Label, the service Label includes a non-reserved Label, the ingress device is provided with an FTN, the egress device is provided with an ILM (Incoming Label Map), and the FTN and the ILM correspond to the feature information of the service packet.
As an optional implementation, the manner of creating the association relationship may be: the method comprises the steps that the entrance equipment establishes an incidence relation between characteristic information of a service message and a service label through static configuration, the service label comprises a non-reserved label, the entrance equipment is provided with an FTN, the exit equipment is provided with an ILM, and the FTN and the ILM correspond to the characteristic information of the service message.
As an optional implementation, the manner of creating the association relationship may be: the entrance equipment establishes an incidence relation between the characteristic information of the service message and the service label through an MPLS control protocol, the service label comprises a non-reserved label, the entrance equipment is provided with an FTN, the exit equipment is provided with an ILM, and the FTN and the ILM correspond to the characteristic information of the service message.
MPLS control protocols include, but are not limited to, LDP (Label Distribution Protocol), RSVP-TE (Resource ReSerVation Protocol-Traffic Engineering, Resource ReSerVation Protocol based on Traffic Engineering extension), BGP (Border Gateway Protocol), OSPF (Open Shortest Path First), ISIS (Intermediate System to Intermediate System), etc., which are well known to those skilled in the art and will not be described herein.
In this embodiment, when the non-reserved label is used as the label value in the service label, the ingress device needs to set an FTN for identifying and classifying the received service packet and matching the corresponding service label. The egress device needs to set an ILM for performing service identification and classification on the service packet with the service label. The FEC (Forwarding Equivalence Class) corresponding to the FTN and the ILM may be any one of the feature information of the service packet, for example, may be a service ID, or an IP quintuple in a three-layer network.
As an alternative implementation, step S110 may include:
when the detection strategy is one-time detection, the inlet equipment adds a service label associated with the characteristic information to each service message according to the characteristic information of each service message received within a preset time length;
when the detection strategy is periodic detection, the ingress device adds a service tag associated with the characteristic information to each service packet according to the characteristic information of each service packet received in each detection period, wherein the service tag comprises a period identifier, and the interval duration of adjacent detection periods is preset duration.
In this embodiment, the preset time period may be determined according to actual situations, and may be, for example, 10 seconds, 1 minute, 10 minutes, and the like. The duration of the detection period may be determined according to actual conditions, and may be 10 seconds, 20 seconds, and the like, for example. The interval duration of adjacent detection periods can be determined according to actual conditions. For example, the interval duration may be 0 seconds (i.e., no time interval between adjacent detection periods), 5 seconds, etc.
Understandably, in the process of one-time detection, the ingress device may add service tags to all service packets received within a preset time length, or select a specified number of service packets to add service tags within the preset time length. Similarly, in the periodic detection process, the ingress device may add service tags to all service packets received in a detection period, or select a specified number of service packets to add service tags in the detection period. The number of the designation may be determined according to actual conditions, and the number of the designation may be 10, 20, etc., and is not particularly limited herein. Therefore, the method is beneficial for the administrator to flexibly select the detection mode of the network quality so as to meet different detection requirements.
As an optional implementation manner, step S110 may further include:
the entrance device samples the received service message according to the detection strategy to obtain a target service message;
and the inlet equipment adds a service label to the target service message according to the characteristic information of the target service message, wherein the service label comprises a first label for indicating the time delay detection of the target service message or a second label for indicating the jitter detection of the target service message.
In this embodiment, the ingress device may sample the received service packet according to a one-time detection or a periodic detection manner. The sampling mode and the number of the target service messages obtained by sampling can be determined according to the actual situation. For example, within a preset time period or in each detection period, the first one or a plurality of continuous samples are adopted, one or a plurality of continuous samples are also adopted at random, one or a plurality of continuous samples are also adopted discretely, and the samples are also adopted completely. In addition, for the periodic detection, the sampling mode of each period may be the same or different, and is not limited specifically here. In order to identify the messages for measuring delay and jitter, it is necessary to add a mark to the service label to identify each sampled service message.
The first mark and the second mark may be the same or different, and may be set according to actual situations.
The way of setting the flag may be: if only one service packet is adopted, 1 bit can be found in the TTL field or the EXP field in the service label to set a mark. Or, if one or more service messages are adopted, the TTL field or the EXP field in the service label may carry a message sequence number, the message sequence number is determined by the ingress device, and the manner of determining the sequence number may be determined according to the actual situation. The egress device may identify the packet for measuring the delay and jitter according to the sequence number in the service tag carried in the service packet, and record the corresponding timestamp.
As an alternative implementation, step 130 may include:
when the service label comprises the reserved label, the outlet device determines the service type of the service message according to the characteristic information of the service message, and counts at least one of the number and the time stamp of the service messages with the service label and the same service type.
Understandably, when the tag value in the service tag is the reserved tag, the egress device needs to classify and identify the service corresponding to the service packet according to the feature information of the service packet. Based on this, when the egress device is not provided with the ILM, the egress device can also identify the service type of the service packet, so as to perform classification statistics on the service packet according to the service type.
As an alternative implementation, step 130 may include: and when the service label comprises the unreserved label, the outlet equipment determines the service type of the service message according to the ILM, and counts at least one of the number and the time stamp of the service messages with the service labels and the same service types.
Understandably, when the label value in the service label is the unreserved label, the outlet device can directly identify the service type of the service corresponding to the service message according to the ILM, so as to perform classification statistics on the service message according to the service type.
As an alternative implementation, step S140 may include:
the detection equipment selects first statistical information in a specified time period from the entrance statistical information and selects second statistical information corresponding to the specified time period from the exit statistical information;
determining a packet loss rate corresponding to the service type of the service packet in the specified time period according to the number of the service packets in the first statistical information and the number of the service packets in the second statistical information;
and determining the time delay and jitter corresponding to the service type in the specified time period according to the time stamps of the service messages of the same service label in the first statistical information and the second statistical information.
In the present embodiment, the specified period may be determined according to actual circumstances. For example, it may be the preset time length mentioned above, or it may be a detection period. Or the specified duration is a preset duration and a duration in the detection period, and the specified duration is not particularly limited herein.
The first statistical information corresponds to a time of the second statistical information. For example, for periodic detection, the first statistical information and the second statistical information are statistical information obtained by statistics of the ingress device and statistical information obtained by statistics of the egress device in the same period, respectively.
The detection device may calculate the time delay and jitter corresponding to each type of service in a specified time period. The delay of each service may be understood as an average value of the delay of each service packet of each service, or others, without limitation. Similarly, the jitter of each service type is an average value of absolute values of the differences between the time delays of two adjacent service messages of each service type, or others, without limitation. The way to calculate the delay of each service packet is well known to those skilled in the art.
Based on the design, the method directly marks and measures the service message, thereby obtaining the real and accurate transmission quality of different service flows in the MPLS network. Because the introduction of a separate measurement message is not needed, only a standard MPLS label is added as a service label, the processing logic is simple, and the influence on the normal processing flow of the service message is small. In addition, the method may be applicable to a variety of MPLS scenarios, for example, IPv4/IPv6, L3VPN, L2VPN, etc. The method may also be applicable to a variety of service scenarios: the point-to-point (one ingress device, one egress device), the point-to-multipoint (one ingress device, multiple egress devices), and the multipoint-to-multipoint (multiple ingress devices, multiple egress devices) may be used to measure the network quality of the end-to-end path and the direct link, which is beneficial to expanding the application range for measuring the network quality.
In order to facilitate understanding of the implementation process of the detection method, the following description will be made by way of example:
step 1, calculating the LSP (Label Switch Path) of each service.
And 2, defining the service through the controller or the equipment. For example, the traffic is classified according to its feature information, which includes, but is not limited to, IP quintuple of three-layer network, DSCP value, VRF instance, etc., MAC of two-layer network, VLAN ID, traffic ID, etc. The service definition mode comprises the following steps:
the method comprises the steps that firstly, a service is defined on a controller, and a service definition rule is issued to an inlet device and an outlet device according to measurement requirements; the service definition rule includes characteristic information of a service packet corresponding to a certain type of service.
And in the second mode, the service definition rules are directly configured on the inlet equipment and the outlet equipment.
Step 3, according to the service definition rule, allocating a service label to the service, and establishing an association relation between the characteristic information of the service message of the service and the service label, wherein the method for allocating the service label can be as follows:
in the first mode, all services uniformly use unused reservation labels (0-15 reservations, such as 11), the FTN does not need to be installed on the inlet equipment, and the ILM does not need to be installed on the outlet equipment;
in a second mode, the controller uniformly allocates non-reserved labels to the services, and issues the association relationship between the feature information and the service labels to the ingress device and the egress device, where the ingress device is equipped with an FTN, the egress device is equipped with an ILM, and the FEC corresponding to the FTN and the ILM may be any one of the feature information of the service packet, such as a service ID;
in a third mode, non-reserved labels are allocated to services through static configuration on ingress equipment and egress equipment, corresponding FTNs and ILMs are installed on the ingress equipment and the egress equipment, and FECs corresponding to the FTNs and the ILMs may be any one of the feature information of the service messages;
and in a fourth mode, after being expanded by MPLS control protocols (including but not limited to LDP, RSVP-TE, BGP, OSPF, ISIS) running on the ingress device, the egress device, and other network devices, dynamically allocating and notifying, and installing corresponding FTN and ILM on the ingress device and the egress device, where FEC corresponding to the FTN and the ILM may be any one of the feature information of the foregoing service packet.
Step 4, the ingress device and the egress device perform clock synchronization, and may use a clock synchronization Protocol such as NTP (Network Time Protocol), or implement clock synchronization through the controller, which is not limited specifically herein.
And 5, after the configuration is completed, starting detection, wherein the detection mode can be one-time trigger measurement (a specified time period) or periodic continuous measurement.
And 6, a service flow (including a service message) enters the inlet device, a label corresponding to the LSP is pressed according to the conventional forwarding logic, the received service message is matched and determined according to the characteristic information of the service message in the service flow, then the corresponding FTN is searched according to the characteristic information of the service message, and the corresponding service label is pressed at the bottom of the stack so as to add the service label in the service message.
Step 7, the ingress device and the egress device perform statistics on the service packet with the service tag, if the one-time detection is performed, only one statistical result is provided, it is not necessary to add a mark to distinguish between the service tags, if the periodic detection is performed, each period has one statistical result, it is necessary to add a mark to distinguish between different periods, and the way of distinguishing the periods may be:
in the first mode, the TTL field of the service tag carries a period number, the TTL field is 8 bits, and 256 consecutive periods (period number 0-255, and after the period number exceeds 255, the period number starts from 0, and the period number is repeated) can be distinguished, the calculation method of the period number is determined by the ingress device according to the actual situation, and is not specifically limited herein, and the egress device distinguishes messages of different periods for statistics according to the period number carried by the message;
the second way, the EXP field of the service tag carries a period number, the EXP field carries 3 bits, and can distinguish 8 consecutive periods (period number 0-7, starting from 0 after exceeding 7, and repeating), the calculation way of the period number is determined by the ingress device according to the actual situation, and is not specifically limited here, and the egress device distinguishes the messages of different periods according to the period number for statistics;
and in the third mode, the ingress device and the egress device calculate the cycle independently, the cycle numbers of the ingress device and the egress device are matched, and the mode of the calculation cycle is not particularly limited, so that messages with at least 2 continuous cycles can be distinguished, and at least 1 bit can be found in a TTL field or an EXP field for setting.
And 8, sampling the service messages, selecting a plurality of messages for measuring time delay and jitter, and recording timestamps corresponding to the messages, wherein the sampling algorithm and the number of the samples are not particularly limited, and for example, the sampling algorithm may be the first one or a plurality of the samples, one or a plurality of the samples may be randomly adopted, one or a plurality of the samples may be discretely adopted, or the samples may be completely adopted. In order to identify the message for measuring the delay and jitter, a tag identification needs to be added to the service tag, and the tagging mode may be as follows:
in the first mode, if only one service message is adopted, 1 bit can be found in a TTL field or an EXP field for setting;
in the second mode, if one or more service messages are adopted, the TTL field or the EXP field may carry a message serial number, the message serial number is determined by the ingress device according to the actual situation, and the ingress device identifies the message for measuring the delay and jitter according to the serial number carried by the message, and records the corresponding timestamp.
Step 9, the outlet device distinguishes and identifies the service message through the service label at the bottom of the stack, if the label value is a reserved label, the service type of the service message needs to be further determined according to the characteristic information of the service message; if the label is not reserved, the egress device may find the corresponding ILM according to the service label, thereby determining different service types in a differentiated manner.
Step 10, the outlet device counts the service message, and if the service message is detected at one time, the service message can be counted together; if the measurement is periodic, the service messages in each detection period can be counted, and the counted information includes the number of the messages, the time stamp and the like.
In step 10, for the periodic detection, the ingress device ends the statistics and sampling of the previous period at the beginning of the next period, and for the egress device, if the first and second modes of step 7 are adopted to distinguish different periods, the statistics and recording of the first period are ended after receiving the first message of the third period, and if the third mode of step 7 is adopted, the statistics and recording of the first period are ended at 3/4 period times after the beginning of the second period.
Step 11, collecting the service packet statistical information of the ingress device and the egress device at one time or in the same period and the timestamp information of the packet for measuring the delay and jitter, so as to calculate the transmission quality of the service packet in the MPLS network in this time period or this period, including the packet loss rate, the delay, the jitter, etc., and the calculation method may be: the packet loss rate is (the inlet device message statistical number-the outlet device message statistical number)/the inlet device message statistical number; the time delay of a single message is the time stamp of the outlet device-the time stamp of the inlet device; the average time delay or other calculation modes can be calculated by a plurality of messages; the jitter is the absolute value of the time delay difference between two adjacent messages, and a plurality of jitters can calculate an average value or other calculation modes; therefore, the packet loss rate, the time delay and the jitter in the period or the period are obtained.
Referring to fig. 3, an embodiment of the present application further provides a network detection apparatus 200, which can be applied to the network system described above and is used to execute or implement each step in the method. The network detection apparatus 200 includes at least one software function module which can be stored in a memory module in the form of software or Firmware (Firmware) or solidified in a corresponding device Operating System (OS) in the network System. The processing module is used for executing executable modules stored in the storage module, such as software functional modules and computer programs included in the network detection apparatus 200.
For example, the network detection apparatus 200 may include a tag adding unit 210, a first statistical unit 220, a second statistical unit 230, and a detection unit 240. The label adding unit 210 and the first statistical unit 220 may be software functional modules solidified in the inlet device. The second statistical unit 230 may be a software function module that is solidified in the outlet device. The detection unit 240 may be a software functional module that is solidified in the detection apparatus. The operation content executed by each functional module may be as follows:
a tag adding unit 210, configured to add a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, so as to serve as a service packet to be detected;
a first statistical unit 220, configured to count information of the service packet to be detected to obtain entry statistical information, where the entry statistical information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected;
a second counting unit 230, configured to count information of the service packet with the service tag to obtain outlet statistical information, where the outlet statistical information includes at least one of the number of the service packets with the service tag and a timestamp;
a detecting unit 240, configured to determine a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of a packet loss rate, a time delay, and a jitter.
Optionally, the tag adding unit 210 may further be configured to:
when the detection strategy is one-time detection, adding a service label associated with the characteristic information to each service message according to the characteristic information of each service message received within a preset time length;
when the detection strategy is periodic detection, adding a service label associated with the characteristic information to each service message according to the characteristic information of each service message received in each detection period, wherein the service label comprises a period identifier, and the interval duration of adjacent detection periods is preset duration.
Optionally, the tag adding unit 210 may further be configured to:
sampling the received service message according to the detection strategy to obtain a target service message;
and adding a service label to the target service message according to the characteristic information of the target service message, wherein the service label comprises a first label for indicating the time delay detection of the target service message or a second label for indicating the jitter detection of the target service message.
Optionally, the MPLS network system further includes a controller, and the network detection apparatus 200 may further include a relationship establishing unit. Before the tag adding unit 210 executes step S110, the relationship establishing unit is configured to:
establishing an incidence relation between characteristic information of a service message and a service label through a controller, wherein the service label comprises an unused reserved label;
or, establishing an association relationship between feature information of a service packet and a service label through a controller, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet;
or, establishing an association relationship between feature information of a service message and a service label according to static configuration by using an ingress device and an egress device, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service message;
or, establishing an association relationship between feature information of a service packet and a service label according to an MPLS control protocol by an ingress device and an egress device, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet.
Optionally, the second statistical unit 230 may be further configured to:
when the service label comprises the reserved label, determining the service type of the service message according to the characteristic information of the service message, and counting at least one of the number and the time stamp of the service messages with the service label and the same service type;
and when the service label comprises the unreserved label, determining the service type of the service message according to the ILM, and counting at least one of the number and the time stamp of the service messages with the service labels and the same service types.
Optionally, the detection unit 240 may be further configured to:
selecting first statistical information in a specified time period from the entrance statistical information, and selecting second statistical information corresponding to the specified time period from the exit statistical information;
determining a packet loss rate corresponding to the service type of the service packet in the specified time period according to the number of the service packets in the first statistical information and the number of the service packets in the second statistical information;
and determining the time delay and jitter corresponding to the service type in the specified time period according to the time stamps of the service messages of the same service label in the first statistical information and the second statistical information.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the network system, the ingress device, the egress device, and the like described above may refer to the corresponding processes of the steps in the foregoing method, and are not described in detail herein.
Second embodiment
Referring to fig. 4, an embodiment of the present application further provides a network detection method, which can be applied to the above-mentioned portal device. The steps in the method are performed or carried out by the inlet device. The method may comprise the steps of:
step S310, according to the detection strategy and the characteristic information of the received service message, adding a service label associated with the characteristic information to the service message to be used as a service message to be detected;
step S320, counting information of the service packet to be detected to obtain entry statistical information, which is used for the detection device to determine a detection result of the network between the entry device and the exit device according to the service tag, the entry statistical information, and the exit statistical information obtained by counting the service packet with the service tag by the exit device, where the entry statistical information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected, the exit statistical information includes at least one of the number of the service packet with the service tag and a timestamp, and the detection result includes at least one of a packet loss rate, a time delay, and a jitter.
It is understood that the network detection method in the second embodiment is implemented by the ingress device, and the network detection method in the first embodiment is implemented by the ingress device, the egress device, and the detection device cooperating with each other. The network detection method in the second embodiment may further include the method steps performed by the access device in the first embodiment, and the obtained effect is the same as the method steps performed by the access device in the first embodiment, which is not described herein again.
Referring to fig. 5, an embodiment of the present application further provides a network detection apparatus 400, which can be applied to the above-mentioned ingress device and is used to execute the steps of the network detection method in the second embodiment. The network detection apparatus 400 includes at least one software function module which can be stored in a memory module in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the portal device. The processing module is used for executing executable modules stored in the storage module, such as software functional modules and computer programs included in the network detection apparatus 400.
The network detection apparatus 400 may include a tag adding unit 410 and a first statistical unit 420, and may perform the following operations:
a tag adding unit 410, configured to add, according to a detection policy and feature information of a received service packet, a service tag associated with the feature information to the service packet, so as to serve as a service packet to be detected;
a first statistics unit 420, configured to count information of the service packet to be detected to obtain entry statistics information, where the entry statistics information is used to combine with exit statistics information obtained by counting the service packet with the service tag by the exit device, so that the detection device determines a detection result of a network between the entry device and the exit device according to the service tag, where the entry statistics information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected, the exit statistics information includes at least one of the number of the service packet with the service tag and a timestamp, and the detection result includes at least one of a packet loss rate, a time delay, and a jitter.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the ingress device, the network detection apparatus, and the like described above may refer to the corresponding processes of the steps in the method in the second embodiment, and are not described in detail herein.
The embodiment of the application also provides a network device, which can comprise a processing module and a storage module. Wherein the storage module has stored therein a computer program which, when executed by the processing module, enables the network device to perform the method as described in the second embodiment, when the network device is acting as an access device.
The processing module may be an integrated circuit chip having signal processing capabilities. The processing module may be a general purpose processor. For example, the Processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Network Processor (NP), or the like; the method, the steps and the logic block diagram disclosed in the embodiments of the present Application may also be implemented or executed by a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The memory module may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. In this embodiment, the storage module may be configured to store statistical information obtained by counting the service packet. Of course, the storage module may also be used to store a program, and the processing module executes the program after receiving the execution instruction.
The network device may also include a communication module. The communication module is used for establishing communication connection between the network equipment and other equipment in the network system through a network and receiving and transmitting data through the network.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the network device and the like described above may refer to the corresponding processes of each step in the foregoing method, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to execute the network detection method as described in the above embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
In summary, the present application provides a network detection method, device, network device and network system. The method comprises the following steps: the inlet equipment adds a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to be used as the service message to be detected; the method comprises the steps that the inlet equipment counts information of service messages to be detected to obtain inlet statistical information, wherein the inlet statistical information comprises at least one of the number of the service messages to be detected and timestamps of the service messages to be detected; the method comprises the steps that the outlet equipment counts information of service messages with service labels to obtain outlet statistical information, wherein the outlet statistical information comprises at least one of the number and the time stamp of the service messages with the service labels; and the detection equipment determines a detection result of the network between the inlet equipment and the outlet equipment according to the service label, the inlet statistical information and the outlet statistical information, wherein the detection result comprises at least one of packet loss rate, time delay and jitter. In the scheme, the service label for detecting the network quality is added to the service message through the inlet equipment, the MPLS network for transmitting the service message can be detected under the condition of not influencing the transmission of the service message, and the accuracy of detecting the network quality of the service flow in the MPLS network transmission can be improved. In addition, a special measurement message is not required to be constructed, and the network detection process is facilitated to be simplified.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A network detection method is applied to an MPLS network system and comprises an inlet device, an outlet device and a detection device, wherein the method comprises the following steps:
the entrance equipment adds a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to be used as a service message to be detected;
the entrance equipment counts the information of the service message to be tested to obtain entrance statistical information, wherein the entrance statistical information comprises at least one of the number of the service message to be tested and the timestamp of the service message to be tested;
the outlet equipment counts the information of the service messages with the service labels to obtain outlet statistical information, wherein the outlet statistical information comprises at least one of the number and the time stamps of the service messages with the service labels;
and the detection equipment determines a detection result of the network between the inlet equipment and the outlet equipment according to the service label, the inlet statistical information and the outlet statistical information, wherein the detection result comprises at least one of packet loss rate, time delay and jitter.
2. The method according to claim 1, wherein the adding, by the ingress device, a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, comprises:
when the detection strategy is one-time detection, the inlet equipment adds a service label associated with the characteristic information to each service message according to the characteristic information of each service message received within a preset time length;
when the detection strategy is periodic detection, the ingress device adds a service tag associated with the characteristic information to each service packet according to the characteristic information of each service packet received in each detection period, wherein the service tag comprises a period identifier, and the interval duration of adjacent detection periods is preset duration.
3. The method according to claim 1, wherein the adding, by the ingress device, a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, comprises:
the entrance device samples the received service message according to the detection strategy to obtain a target service message;
and the inlet equipment adds a service label to the target service message according to the characteristic information of the target service message, wherein the service label comprises a first label for indicating the time delay detection of the target service message or a second label for indicating the jitter detection of the target service message.
4. The method according to claim 1, wherein the MPLS network system further includes a controller, and before the ingress device adds a service label associated with feature information to the service packet according to a detection policy and the feature information of the received service packet, the method further includes:
the controller establishes an incidence relation between the characteristic information of the service message and a service label, wherein the service label comprises an unused reserved label;
or the controller establishes an association relationship between feature information of a service packet and a service label, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet;
or the ingress device establishes an association relationship between feature information of a service packet and a service label through static configuration, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet;
or, the ingress device establishes an association relationship between feature information of a service packet and a service label through an MPLS control protocol, where the service label includes a non-reserved label, the ingress device is provided with an FTN, the egress device is provided with an ILM, and the FTN and the ILM correspond to the feature information of the service packet.
5. The method of claim 4, wherein the egress device counts information of the service packet with the service label, and comprises:
when the service label comprises the reserved label, the outlet equipment determines the service type of the service message according to the characteristic information of the service message, and counts at least one of the number and the time stamp of the service messages with the service label and the same service type;
and when the service label comprises the unreserved label, the outlet equipment determines the service type of the service message according to the ILM, and counts at least one of the number and the time stamp of the service messages with the service labels and the same service types.
6. The method of claim 1, wherein the determining, by the detecting device, a detection result of the network between the ingress device and the egress device according to the traffic label, the ingress statistics, and the egress statistics comprises:
the detection equipment selects first statistical information in a specified time period from the entrance statistical information and selects second statistical information corresponding to the specified time period from the exit statistical information;
determining a packet loss rate corresponding to the service type of the service packet in the specified time period according to the number of the service packets in the first statistical information and the number of the service packets in the second statistical information;
and determining the time delay and jitter corresponding to the service type in the specified time period according to the time stamps of the service messages of the same service label in the first statistical information and the second statistical information.
7. A network detection method is applied to an ingress device in an MPLS network system, wherein the MPLS network system further comprises an egress device and a detection device, and the method comprises the following steps:
adding a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to serve as the service message to be detected;
and counting information of the service message to be detected to obtain inlet statistical information, which is used for determining a detection result of a network between the inlet equipment and the outlet equipment according to outlet statistical information obtained by counting the service message with the service label by the detection equipment according to the service label, the inlet statistical information and the outlet equipment, wherein the inlet statistical information comprises at least one of the number of the service message to be detected and a timestamp of the service message to be detected, the outlet statistical information comprises at least one of the number of the service message with the service label and the timestamp, and the detection result comprises at least one of a packet loss rate, a time delay and jitter.
8. A network detection device is applied to an MPLS network system and comprises an inlet device, an outlet device and a detection device, wherein the device comprises:
a tag adding unit, configured to add a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, so as to serve as a service packet to be detected;
the first statistical unit is used for counting the information of the service messages to be detected to obtain inlet statistical information, wherein the inlet statistical information comprises at least one of the number of the service messages to be detected and the time stamp of the service messages to be detected;
a second statistical unit, configured to count information of the service packet with the service tag to obtain outlet statistical information, where the outlet statistical information includes at least one of the number of the service packets with the service tag and a timestamp;
a detecting unit, configured to determine a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of a packet loss rate, a time delay, and jitter.
9. A network detection apparatus, applied to an ingress device in an MPLS network system, where the MPLS network system further includes an egress device and a detection device, the apparatus comprising:
a tag adding unit, configured to add a service tag associated with the feature information to the service packet according to the detection policy and the feature information of the received service packet, so as to serve as a service packet to be detected;
a first statistics unit, configured to count information of the service packet to be detected to obtain entry statistics information, where the entry statistics information is used to combine with exit statistics information obtained by counting the service packet with the service tag by the exit device, so that the detection device determines a detection result of a network between the entry device and the exit device according to the service tag, where the entry statistics information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected, the exit statistics information includes at least one of the number of the service packet with the service tag and a timestamp, and the detection result includes at least one of a packet loss rate, a time delay, and jitter.
10. A network device, characterized in that the network device comprises a memory coupled to each other, a processor, a computer program being stored in the memory, which computer program, when executed by the processor, causes the network device to carry out the method according to any of the claims 7.
11. A network system, comprising an ingress device, an egress device, and a detection device, wherein:
the inlet device is used for adding a service label associated with the characteristic information to the service message according to the detection strategy and the characteristic information of the received service message to serve as the service message to be detected;
the ingress device is further configured to count information of the service packet to be detected to obtain ingress statistical information, where the ingress statistical information includes at least one of the number of the service packet to be detected and a timestamp of the service packet to be detected;
the outlet device is configured to count information of the service packet with the service tag to obtain outlet statistical information, where the outlet statistical information includes at least one of the number of the service packets with the service tag and a timestamp;
the detection device is configured to determine a detection result of the network between the ingress device and the egress device according to the service tag, the ingress statistical information, and the egress statistical information, where the detection result includes at least one of a packet loss rate, a time delay, and jitter.
12. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 7.
CN202011184614.1A 2020-10-29 2020-10-29 Network detection method, device, network equipment and network system Pending CN112291093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011184614.1A CN112291093A (en) 2020-10-29 2020-10-29 Network detection method, device, network equipment and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011184614.1A CN112291093A (en) 2020-10-29 2020-10-29 Network detection method, device, network equipment and network system

Publications (1)

Publication Number Publication Date
CN112291093A true CN112291093A (en) 2021-01-29

Family

ID=74352511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011184614.1A Pending CN112291093A (en) 2020-10-29 2020-10-29 Network detection method, device, network equipment and network system

Country Status (1)

Country Link
CN (1) CN112291093A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507396A (en) * 2021-06-30 2021-10-15 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine readable storage medium
CN113644998A (en) * 2021-08-23 2021-11-12 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN113660163A (en) * 2021-08-18 2021-11-16 奇安信科技集团股份有限公司 Internet path selection method and device
CN114666243A (en) * 2022-03-29 2022-06-24 迈普通信技术股份有限公司 Network quality measuring method, device, system, electronic equipment and storage medium
CN115442272A (en) * 2022-08-15 2022-12-06 中国银联股份有限公司 Method, device and equipment for detecting lost data and storage medium
WO2024119816A1 (en) * 2022-12-09 2024-06-13 中兴通讯股份有限公司 Multiprotocol label switching (mpls) forwarding plane detection method and apparatus

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616037A (en) * 2009-07-27 2009-12-30 华为技术有限公司 The detection method of packet loss, Apparatus and system in the network service
CN101917290A (en) * 2010-08-12 2010-12-15 北京星网锐捷网络技术有限公司 method, device and network equipment for processing label transmitting path fault as well as network equipment
US7940695B1 (en) * 2007-06-08 2011-05-10 Juniper Networks, Inc. Failure detection for tunneled label-switched paths
CN103179000A (en) * 2013-03-26 2013-06-26 杭州晨晓科技有限公司 Packet loss ratio measurement method for MPLS-TP (Multi Protocol Label Switching-Transport Profile) network performance monitor
CN103891220A (en) * 2011-07-06 2014-06-25 瑞典爱立信有限公司 MPLS fast re-route using LDP (LDP-FRR)
US20140293778A1 (en) * 2011-04-19 2014-10-02 Juan Pedro FERNÁNDEZ-PALACIOS GIMÉNEZ Method for network resources allocation in tispan based service architectures
CN107547300A (en) * 2017-06-16 2018-01-05 新华三技术有限公司 A kind of network quality detection method and device
CN109525451A (en) * 2018-09-13 2019-03-26 中兴通讯股份有限公司 A kind of implementation method, device, the network equipment and the controller of MPLS network detection
CN110191022A (en) * 2019-05-30 2019-08-30 新华三技术有限公司 A kind of quality of service detection method and device
CN110896379A (en) * 2018-09-13 2020-03-20 中兴通讯股份有限公司 Message sending method, binding relationship notification method, device and storage medium
CN111030882A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Network quality measurement method and system based on intelligent substation service message

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7940695B1 (en) * 2007-06-08 2011-05-10 Juniper Networks, Inc. Failure detection for tunneled label-switched paths
CN101616037A (en) * 2009-07-27 2009-12-30 华为技术有限公司 The detection method of packet loss, Apparatus and system in the network service
CN101917290A (en) * 2010-08-12 2010-12-15 北京星网锐捷网络技术有限公司 method, device and network equipment for processing label transmitting path fault as well as network equipment
US20140293778A1 (en) * 2011-04-19 2014-10-02 Juan Pedro FERNÁNDEZ-PALACIOS GIMÉNEZ Method for network resources allocation in tispan based service architectures
CN103891220A (en) * 2011-07-06 2014-06-25 瑞典爱立信有限公司 MPLS fast re-route using LDP (LDP-FRR)
CN103179000A (en) * 2013-03-26 2013-06-26 杭州晨晓科技有限公司 Packet loss ratio measurement method for MPLS-TP (Multi Protocol Label Switching-Transport Profile) network performance monitor
CN107547300A (en) * 2017-06-16 2018-01-05 新华三技术有限公司 A kind of network quality detection method and device
CN109525451A (en) * 2018-09-13 2019-03-26 中兴通讯股份有限公司 A kind of implementation method, device, the network equipment and the controller of MPLS network detection
CN110896379A (en) * 2018-09-13 2020-03-20 中兴通讯股份有限公司 Message sending method, binding relationship notification method, device and storage medium
CN110191022A (en) * 2019-05-30 2019-08-30 新华三技术有限公司 A kind of quality of service detection method and device
CN111030882A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Network quality measurement method and system based on intelligent substation service message

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JUNAID TAHIR; MUHAMMAD ZAIN SIDDIQI; SHARIF ARIF: "Performance analysis of MPLS based networks with conventional networks", 《2017 2ND WORKSHOP ON RECENT TRENDS IN TELECOMMUNICATIONS RESEARCH (RTTR)》 *
沈周晖等: "基于MPLS-TP的PTN城域承载网业务质量指标体系分析", 《电信技术》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507396A (en) * 2021-06-30 2021-10-15 新华三信息安全技术有限公司 Network state analysis method, device, equipment and machine readable storage medium
CN113660163A (en) * 2021-08-18 2021-11-16 奇安信科技集团股份有限公司 Internet path selection method and device
CN113660163B (en) * 2021-08-18 2023-07-14 奇安信科技集团股份有限公司 Internet path selection method and device
CN113644998A (en) * 2021-08-23 2021-11-12 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN113644998B (en) * 2021-08-23 2023-06-09 烽火通信科技股份有限公司 IOAM time delay measuring method and device for 5G network
CN114666243A (en) * 2022-03-29 2022-06-24 迈普通信技术股份有限公司 Network quality measuring method, device, system, electronic equipment and storage medium
CN115442272A (en) * 2022-08-15 2022-12-06 中国银联股份有限公司 Method, device and equipment for detecting lost data and storage medium
CN115442272B (en) * 2022-08-15 2024-05-14 中国银联股份有限公司 Method, device, equipment and storage medium for detecting lost data
WO2024119816A1 (en) * 2022-12-09 2024-06-13 中兴通讯股份有限公司 Multiprotocol label switching (mpls) forwarding plane detection method and apparatus

Similar Documents

Publication Publication Date Title
CN112291093A (en) Network detection method, device, network equipment and network system
US11876883B2 (en) Packet processing method, network node, and system
CN112994961B (en) Transmission quality detection method, device, system and storage medium
US10432512B2 (en) Packet marking for L4-7 advanced counting and monitoring
KR100597588B1 (en) Method for Measurement of Path characteristic between nodes using Active Testing Packet based Priority
US20070064611A1 (en) Method for monitoring packet loss ratio
WO2020052274A1 (en) Method and apparatus for implementing mpls-based network detection, network device, and controller
US20070242620A1 (en) Method, System and Device for Measuring Performance Parameters of Multiprotocol Label Switching Network
US8432822B2 (en) Method, system and device of packet sampling
US20220407791A1 (en) Network performance detection method and apparatus, and network device
CN102195832A (en) Loopback testing method, device and system
CN115665006B (en) Follow-up flow detection method and device
CN116527592A (en) Application layer stream following detection method and device based on APN (access point) and related equipment
US9887892B2 (en) Traffic statistics collection method and device
US11582156B2 (en) Traffic detection method, apparatus, and system
CN114039888A (en) Time delay measuring method and device
WO2022262574A1 (en) Method and apparatus for determining slice information, and storage medium and electronic apparatus
EP4243368A1 (en) Data obtaining method and apparatus, device, and storage medium
Bryant et al. RFC 9571 Extension of RFC 6374-Based Performance Measurement Using Synonymous Flow Labels
CN117201212A (en) Information processing method, network device, storage medium, and program product
CN117880149A (en) Message processing method, device, equipment and medium
CN114666243A (en) Network quality measuring method, device, system, electronic equipment and storage medium
CN117157952A (en) Method and device for issuing stream-following detection configuration through BGP
Capello et al. RFC 8321: Alternate-Marking Method for Passive and Hybrid Performance Monitoring
CN116614415A (en) Time delay measurement method and system based on in-band dyeing mechanism

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129