WO2016000659A1 - Statistical information acquisition method and device - Google Patents

Statistical information acquisition method and device Download PDF

Info

Publication number
WO2016000659A1
WO2016000659A1 PCT/CN2015/083286 CN2015083286W WO2016000659A1 WO 2016000659 A1 WO2016000659 A1 WO 2016000659A1 CN 2015083286 W CN2015083286 W CN 2015083286W WO 2016000659 A1 WO2016000659 A1 WO 2016000659A1
Authority
WO
WIPO (PCT)
Prior art keywords
period
measurement
measurement period
statistical information
specified
Prior art date
Application number
PCT/CN2015/083286
Other languages
French (fr)
Chinese (zh)
Inventor
郑莲淑
陈国义
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016000659A1 publication Critical patent/WO2016000659A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for acquiring statistical information.
  • the commonly used network performance detection methods can be embodied in the following two types: active measurements and passive measurements.
  • the active measurement needs to inject test packets into the network, and analyze the network performance in combination with the transmission of test packets. This method will generate additional traffic in the network, causing network operation to change, and the measurement results are There is a certain deviation between the actual performance of the network. Passive measurement is to directly monitor the actual traffic flow in the network by the device, and does not generate additional traffic. The measurement result can reflect the real situation of the network and is widely used in fault demarcation, fault location, network optimization and so on.
  • the OAM (Operation, Administration, and Maintenance) demarcation packets are inserted into the service flow to divide the service flow into multiple groups of tested packets by using OAM demarcation packets, and monitor each group of tested packets.
  • the transmission situation obtain statistical information, and then use statistical information to calculate network performance measurement results. For example, for a certain group of measured packets, the number of sent packets obtained by the monitoring of the transmitting end and the number of received packets received by the receiving end are used to calculate the packet loss detection value; or, the sending timestamp and the receiving obtained by the transmitting end monitoring are used.
  • the terminal receives the received timestamp, calculates the delay detection value, and so on.
  • the measurement results of the passive measurement depend to some extent on the OAM demarcation message. If the OAM demarcation message has a problem with the demarcation grouping of the service flow, for example, the OAM demarcation message is lost, resulting in a packet error, because the sender Both the receiving end and the receiving end use the two adjacent OAM demarcation messages to divide the interval. Therefore, if the OAM demarcation message is lost during transmission, the sender and the receiving end will be used. Different OAM demarcation messages are divided into sections, so that the monitoring intervals of the two are not matched, which will affect the accuracy of the statistical information obtained by the transmitting end and the receiving end, and thus affect the calculation accuracy of the network performance measurement results.
  • the method and device for acquiring statistical information provided by the embodiments of the present invention are used to improve the accuracy of obtaining statistical information, thereby improving the accuracy of calculating network performance measurement results.
  • an embodiment of the present invention provides a method for acquiring statistical information, where the method includes:
  • the sending end sets a corresponding period number for each measurement period in the at least one measurement period, and adds the period number to the header of the tested packet included in the corresponding measurement period;
  • the measurement period is divided according to a period parameter, where the period parameter is a specified duration or a number of packets to be measured.
  • the adding the cycle number to a header of the measured packet included in the corresponding measurement period include:
  • the sending end adds the period number to a header of all the tested messages included in the corresponding measurement period;
  • the adding the cycle number to the measured packet included in the corresponding measurement period In the header contains:
  • the sender adds the cycle number to the hop-by-hop option header or destination of the IPv6 header Option extension header; or,
  • the sender adds the cycle number to an option field of an IPv4 header.
  • the statistics information is a number of packets, and the obtaining the The statistical information of the specified measurement period in at least one measurement period, including:
  • the sending end counts the number of the tested packets carrying the same period number in the specified measurement period.
  • the statistics information is a time stamp
  • the obtaining the Statistics for a specified measurement period in at least one measurement period including:
  • the sending end records the sending timestamp of the specified test packet in the specified measurement period, and the specified measured message is the measured packet carrying the period number at the specified location.
  • an embodiment of the present invention provides a method for acquiring statistical information, where the method includes:
  • the receiving end receives the measured packet sent by the sending end, and the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period number;
  • the receiving end obtains the statistics of the measurement period based on the period number, where the statistics information is used to calculate a performance measurement result of the network that carries the measured packet.
  • the statistics information is the number of the packets, and the receiving end obtains the statistics information of the measurement period based on the cycle number, including:
  • the receiving end counts the number of the tested packets carrying the same period number in the measurement period.
  • the method before the receiving end statistics the number of the measured packets carrying the same period number in the measurement period, the method further includes:
  • the receiving end identifies the measurement starting point of the measurement period according to the received measured message carrying the first cycle number corresponding to the measurement period;
  • the receiving end identifies a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point and the specified duration of the measurement period A measurement end point of the measurement period is identified.
  • the statistical information is the number of packets, and the receiving end is configured with an allowable hysteresis parameter, and the receiving end obtains the measurement based on the periodic number.
  • Periodic statistics including:
  • the receiving end adjusts the measurement period by using the allowable hysteresis parameter, and counts the number of the tested packets carrying the same period number in the adjusted measurement period.
  • the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed.
  • the statistics information is a time stamp
  • the receiving end obtains the The statistical information of the measurement period includes:
  • the receiving end records a receiving timestamp of the specified test packet in the measurement period, where the specified test packet is a measured packet carrying a period number at a specified location, and the specified location and the sending end The specified location for the record send timestamp is the same.
  • an embodiment of the present invention provides a statistical information acquiring apparatus, where the apparatus includes:
  • a setting unit configured to set a corresponding cycle number for each measurement cycle in at least one measurement cycle
  • a adding unit configured to add the period number set by the setting unit to a header of the tested packet included in the corresponding measurement period
  • a sending unit configured to send, to the receiving end, the measured packet carrying the period number
  • an obtaining unit configured to obtain, according to the period number, statistical information of a specified measurement period in the at least one measurement period, where the statistics information is used to calculate the bearer, when the sending unit sends the measured packet The performance measurement result of the network of the measured message.
  • the setting unit is further configured to: before the setting the measurement period, divide the measurement period according to a period parameter, where the period parameter is a specified duration or a specified measurement Number of messages.
  • the adding unit is specifically configured to add the cycle number to all the included in the corresponding measurement period. Measure the header of the message; or,
  • the adding unit is specifically configured to add the period number to a header of a specified test packet included in a corresponding measurement period, where the specified test packet is included in the corresponding measurement period according to a preset rule. Selected from all the tested messages.
  • the adding unit is specifically configured to add the cycle number to the IPv6 report. Head hop-by-hop option extension header or destination option extension header; or,
  • the adding unit is specifically configured to add the period number to an option field of an IPv4 header.
  • the statistics information is the number of packets, and the obtaining unit is specifically used for statistics The number of the measured packets carrying the same cycle number in the specified measurement period.
  • the statistics information is a time stamp
  • the obtaining unit is specifically used for the recording The sending timestamp of the specified test packet in the specified measurement period, where the specified test packet is the measured packet carrying the cycle number at the specified location.
  • an embodiment of the present invention provides a statistical information acquiring apparatus, where the apparatus includes:
  • the receiving unit is configured to receive the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period Numbering;
  • an obtaining unit configured to obtain, according to the period number, statistical information of the measurement period, where the statistical information is used to calculate a performance measurement result of a network that carries the measured packet.
  • the statistics information is a number of packets
  • the obtaining unit includes:
  • the obtaining unit further includes:
  • a starting point identifying unit configured to identify a measurement starting point of the measurement period according to the received first tested message carrying the period number corresponding to the measurement period;
  • An end point identifying unit configured to identify a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point of the measurement period and the The specified duration identifies the measurement endpoint of the measurement period.
  • the statistics information is a number of packets, and an allowable lag parameter is set, where the obtaining unit includes:
  • an adjusting unit configured to adjust the measurement period by using the allowable hysteresis parameter, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed;
  • the statistics information is a timestamp
  • the obtaining unit includes:
  • a recording unit configured to record a received timestamp of the specified test packet in the measurement period, where the specified test packet is a test packet carrying a cycle number at a specified location, and the specified location is sent The specified location of the send record timestamp is the same.
  • the method and device for acquiring statistical information in the embodiment of the present invention when performing network performance detection, the transmitting end configures a corresponding period number for each measurement period, and writes the period number to the header of the measured packet. In this way, when the transmitting end transmits the measured packet carrying the periodic number to the receiving end, the transmitting end and the receiving end can accurately obtain the statistical information of the specified measurement period based on the period number, and then calculate the measurement period carrying the measurement period. Network performance measurement results.
  • the measurement period is represented by the period number in the measured packet header, and the measurement period is compared with the insertion message other than the service flow in the prior art, thereby reducing the abnormal situation such as the insertion packet loss.
  • the resulting statistical information acquires the possibility of inaccuracy, thereby improving the accuracy of calculating the network performance measurement result.
  • the present invention implements, for example, the manner of characterizing the measurement period, and does not have the inserted message occupation service flow as in the prior art.
  • the problem of bandwidth can also effectively ensure the effective data transmission efficiency of the service flow.
  • FIG. 1 is a schematic flowchart of a method for acquiring statistics information at a transmitting end according to an embodiment of the present invention
  • 2-1 is a schematic diagram of a first type of measurement period in an embodiment of the present invention.
  • FIG. 2-2 is a schematic diagram of a second division measurement period in the embodiment of the present invention.
  • 2-3 is a schematic diagram of a third divided measurement period in the embodiment of the present invention.
  • FIGS. 2-4 are schematic diagrams showing a fourth division measurement period in the embodiment of the present invention.
  • 3-1 is a schematic diagram of a format of a header carrying a periodic number in the embodiment of the present invention.
  • 3-2 is a schematic diagram of a format of a second header carrying a periodic number in the embodiment of the present invention.
  • 3-3 is a schematic diagram of a format of a third header carrying a periodic number in the embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for acquiring statistical information at a receiving end according to an embodiment of the present invention
  • 5-1 is a schematic diagram of only one measurement period in the embodiment of the present invention.
  • FIG. 5-2 is another schematic diagram of only one measurement period in the embodiment of the present invention.
  • FIG. 6 is a schematic diagram of out-of-order transmission of messages in an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a statistical information acquiring apparatus on a transmitting end side according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a statistical information acquiring apparatus on a receiving end side according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram showing the hardware configuration of a statistical information acquiring apparatus according to an embodiment of the present invention.
  • the monitoring interval is divided by inserting an OAM demarcation packet into the service flow, so that the device can treat the service packet between any two adjacent OAM demarcation packets as a group of measured reports.
  • the monitoring of the transmission of the measured packets of the group For example, the transmitting device records the number of transmitted packets RX[i] when the ith group of measured packets are sent, and the receiving device records the number of received packets TX[i] when receiving the measured packets of the ith group. It can be calculated that the number of lost packets in the interval of the i-th packet under test is RX[i]-TX[i].
  • both the transmitting end and the receiving end use the two adjacent OAM demarcation messages to divide the interval, if the OAM demarcation message is lost during transmission, the transmitting end and the receiving end use different OAM demarcation messages. Dividing the interval, causing the monitoring intervals of the two to not match, resulting in errors in the measurement results.
  • the size of the monitoring interval is inversely proportional to the number of inserted OAM demarcation messages, that is, the smaller the monitoring interval, the more OAM demarcation messages need to be inserted, and the OAM demarcation report text body It also occupies a certain amount of bandwidth. Therefore, as the monitoring interval becomes smaller, the bandwidth occupied by OAM demarcation packets in the service flow will gradually become larger, resulting in a decrease in the effective data transmission efficiency of the service flow.
  • the solution of the embodiment of the present invention provides a new scheme for obtaining statistical information, which can improve the problem that the foregoing information is obtained when the OAM demarcation packet is used to obtain the statistical information and the network performance measurement result is calculated. Obtain the accuracy of statistical information, and thus improve the accuracy of computing network performance measurement results.
  • the solution of the embodiment of the present invention relates to the two sides of the sending end and the receiving end, and the following describes the process of obtaining the statistical information in the embodiment of the present invention.
  • FIG. 1 a schematic flowchart of a method for acquiring statistics information at a sending end according to an embodiment of the present invention is shown, which may include the following steps:
  • Step 101 The transmitting end sets a corresponding period number for each measurement period in the at least one measurement period, and adds the period number to the header of the tested packet included in the corresponding measurement period.
  • Step 102 The sending end sends, to the receiving end, the measured packet carrying the period number, and obtains, according to the period number, statistical information of the specified measurement period in the at least one measurement period, where the statistical information is used. And calculating a performance measurement result of the network that carries the measured packet.
  • the sending end processes the measured packet according to the solution of the embodiment of the present invention, so that the sending end and the receiving end automatically obtain the statistical information by using the processed measured packet, so as to be used when calculating the performance measurement result.
  • the measured packet in the embodiment of the present invention may be a data packet or a control management packet. Multiple tested messages form a service flow. The embodiment of the present invention may not limit the specific type of the tested message.
  • the processing procedure of the embodiment of the present invention mainly involves the following points: setting a cycle number, dividing a measurement period, adding a cycle number, and monitoring statistical information, which are explained below.
  • the preset mode may be monotonically increasing, and the increment step is 1. Therefore, after determining the initial cycle number, other cycle numbers may be sequentially determined on the basis of the initial cycle number, for example, the initial cycle number is P1. Then set the cycle number can be expressed as: P1, P2, P3, ....
  • the preset manner of setting the cycle number, the value of the initial cycle number, and the total number of cycle numbers that are set may be determined according to actual application requirements, and this embodiment of the present invention It is not specifically limited.
  • the at least one measuring period may be divided from the service flow according to the periodic parameter (it is understandable that the measuring period is the measuring interval).
  • the period parameter is a parameter used to divide the measurement period, and is expressed as a specified duration or a specified number of packets to be measured (specifically, the number of packets to be measured carrying the cycle number in the measurement period).
  • the cycle parameter The number may be pre-configured in the transmitting end, or may be input from the outside when needed. This embodiment of the present invention may not specifically limit this.
  • the periodic parameter may be input to the transmitting end by an external measuring personnel.
  • the measuring personnel may obtain the periodic parameter by inputting the command line; or the periodic parameter may also be input to the transmitting end by the external control device, specifically
  • the control device may be a centralized controller in the SDN (Software Defined Network), or may be a device such as a network management device, or the control device may be a dedicated device, which may not be specifically limited in this embodiment of the present invention. .
  • SDN Software Defined Network
  • the transmitting end After receiving the periodic parameters, the transmitting end starts to process the service flow that flows through the sending end, which is specifically: adding the set period number to the packet of the service flow.
  • the cycle number mentioned above is taken as an example.
  • the sender After the sender is triggered (as an example, the sender can be triggered by a period parameter input externally, or can be triggered by other parameters or instructions input externally, wherein the external can be
  • the embodiment of the present invention is not limited to the external measurement personnel or the external device.
  • the initial cycle number P1 is added to the header of the message being transmitted, and the current requirement of the periodic parameter is determined (hereinafter, it will be combined). The different expressions of the cycle parameters are explained here, and will not be explained here.
  • the process of adding the cycle number P1 is completed, and the next cycle number P2 can be called, and P2 is added to the report transmitted at this time.
  • the header of the text, and the judgment of the periodic parameters the process loops back and forth until the completion of the addition process of all the set cycle numbers is completed, or the control execution stops the addition process.
  • the addition of a cycle number is equivalent to completing the division of one measurement cycle. It can be understood that all the packets with the same cycle number are divided into one measurement. cycle. As shown in the above example, all the measured packets carrying P1 belong to one measurement period. For the sake of easy understanding, it can be defined as the measurement period T1; further, all the measured packets carrying P2 belong to the measurement period T2, and so on. At least one measurement period can be divided from the service flow according to the periodic parameter, and details are not described herein again.
  • period parameter is expressed as a specified duration, for example, if the period parameter is 1 s, then the above judgment determines whether the current period parameter is met, which can be understood as:
  • the period number For each period number, the first time from the sending end to the header of the measured packet, the period number is added, the timing is performed, and a judgment is made after each addition of a measured message is completed. Determine whether the time is up to the specified length of time. That is, whether the interval has been specified in the middle from the start of the time to the current time, and if so, it is determined that the current period parameter is satisfied, and the process of adding the current cycle number can be ended; if not, it is determined that the cycle parameter has not been met yet.
  • the requirements can continue with the current cycle number addition and the addition of the duration judgment process until the requirements of the cycle parameters are met.
  • the judgment of the addition duration may be made every time a test message is added as described above; or, the judgment may be performed in the form of sampling according to other fixed periods and variable periods. For example, in the early stage of the timer, the judgment is made at a large interval (for example, every 5 message additions are completed, or every 1/10 s intervals), and as the addition process progresses, the reduction judgment interval can be continuously adjusted.
  • the timing of the determination may be determined by actual requirements, and the embodiment of the present invention may not be specifically limited.
  • the period parameter is specified as the number of packets to be measured, for example, if the period parameter is 50 packets, the above judgment determines whether the current period parameter is met.
  • the cycle number For each cycle number, the first time from the sender to the header of the measured packet, the cycle number is added to start counting, and each time a test packet is added, a judgment is made, and the judgment is made. Whether the count reaches the specified number of measured packets, and if so, it determines that the current period parameter is met, and may end the process of adding the current cycle parameter; if not, it determines that the current cycle parameter has not been met, and can continue the current process. The process of adding the cycle number and judging the number of additions until the requirements of the cycle parameters are met.
  • the transmitting end may first use the periodic parameter to divide at least one measurement period from the service flow flowing through the transmitting end, and then according to the correspondence between the measurement period and the period number, to each measurement period. Add the corresponding cycle number to the measured message included in the test packet.
  • the sender can use the period parameter to divide the packet corresponding to the first 1s in the service flow into the first measurement period, and the second 1s corresponding report.
  • the text is divided into the second measurement period, and so on, and will not be described here.
  • the sending end may add P1 to the header of the tested packet included in the first measurement period, and add P2 to the header of the tested packet included in the second measurement period. , such a process, until the addition process of all the set cycle numbers is completed, or is controlled to stop the addition process.
  • the sender can use the period parameter to add the first message of the cycle number to the 50th message.
  • the message between the two is divided into the first measurement cycle, and the 51st message to be added with the cycle number is sent to the 100th
  • the packets between the packets are divided into the second measurement period, and so on, and are not described here.
  • the sending end may add P1 to the header of the tested packet included in the first measurement period, and add P2 to the header of the tested packet included in the second measurement period. , such a process, until the addition process of all the set cycle numbers is completed, or is controlled to stop the addition process.
  • the measurement period can be expressed as: continuous period, discontinuous period.
  • the measurement period divided from the service flow it can be embodied as the continuous period shown in Figure 2-1, that is, after the sender is triggered, it automatically performs the uninterrupted period division of the traffic stream currently transmitted by the sender.
  • it can be embodied as a non-continuous period as shown in Figure 2-2, that is, several packets or intervals may be separated between each divided measurement period.
  • the periodic interval may be configured in advance on the sending end (for example, the preset preset number of packets, or the preset preset duration, etc.) It may not be specifically limited), and the transmitting end automatically sets the discontinuous measurement period according to the configuration.
  • the transmitting end may also set the discontinuous measurement period according to the externally input control information. For example, if the control information is a periodic interval, the transmitting end can automatically perform regular non-continuous measurement period setting after receiving the control information; or, if the control information is a measurement period start instruction, the transmitting end can perform regular and irregular according to the control information.
  • the non-continuous measurement period setting that is to say, once the transmitting end receives the start command, it uses the period parameter to divide a measurement period. If the external law inputs the start instruction to the transmitting end, the transmitting end sets the discontinuity accordingly. The measurement period is regular. If an external irregular input of a start command is made to the transmitting end, the discontinuous measurement period set by the transmitting end is irregular.
  • FIG. 2-2 shows a regular interval of two messages between measurement periods.
  • the measured packet with the added period number can be embodied as: all the measured packets included in the measurement period and the specified measured packet included in the measurement period.
  • the measurement period divided from the service flow can be continuous or non-continuous, and in either case, the sender can automatically record the report within the specified period by monitoring the cycle number.
  • the sender can automatically record the report within the specified period by monitoring the cycle number.
  • the period number included in each measurement period may be further divided into two specific cases. Let's take the continuous cycle as an example. Explain the specific circumstances.
  • the preset rule may be embodied as: at a specified position (a specified position determined by a rule or an irregularity), at a certain interval (interval at intervals of time, number of packets, etc.), according to parity
  • the rules of the present invention are not specifically limited in this embodiment of the present invention.
  • Figure 2-3 divides the measurement period according to the specified number of packets to be measured. Compared with Figure 2-1, the number of packets to be tested included in the same measurement period is different, but the number is added. The number of packets tested is the same. As shown in the figure, both of them must have 50 measured packets carrying cycle numbers, but each measurement cycle in Figure 2-1 contains 50 measured packets, and each measurement cycle in Figure 2-3 Contains 100 tested messages.
  • each of the two measurement cycles contains 50 measured packets, but in each measurement cycle in Figure 2-1, there are 50 measured packets carrying the cycle number, and Figure 2-4 In each measurement cycle, there are 25 packets with the cycle number.
  • the embodiment of the present invention provides three ways for the header to carry the cycle number, which are explained below.
  • the corresponding period number (Period Number) can be added to the Option field of the header.
  • the carrying week shown in Figure 3-1 Schematic diagram of the header of the period number.
  • the corresponding cycle number can be added to the Hop-by-hop hop-by-hop option header (HbH Header) of the header.
  • HbH Header Hop-by-hop hop-by-hop option header
  • the corresponding cycle number can be added to the Destination destination option header (Dest Header) of the header.
  • Dest Header the Destination destination option header
  • the above three methods can make the measured message (all the measured headers included in the measurement period, or the specified measured packets included in the measurement period) carry the corresponding cycle number, in contrast, using the first and second modes.
  • the added cycle number can realize end-to-end detection and segmentation detection; the cycle number added by mode 3 can realize end-to-end detection, and the detection process does not need the support of the intermediate node, and is easier to deploy.
  • the so-called end-to-end detection can be understood as the network performance detection between the transmitting end of the source node and the receiving end as the destination node, that is, the statistical information obtained by the source node monitoring and the statistical information monitored by the destination node are calculated. Measurement of network performance between the two.
  • the source node and the intermediate node, the upstream intermediate node, and the downstream intermediate node may also be utilized (upstream and downstream are based on The intermediate node is combined with the destination node in the direction of the transmission path, and the segmentation detection of the network performance is performed.
  • the source node can form a detection combination with any intermediate node, the source node monitors the service flow to obtain the originating statistical information, and the intermediate node monitors the service flow to obtain the terminal statistical information, thereby calculating the performance of the network segment corresponding to the detection combination. Measurement results.
  • the detection combination formed by the upstream intermediate node and the downstream intermediate node, the service flow is forwarded to the downstream intermediate node through the upstream intermediate node, and the upstream intermediate node can monitor the service flow to obtain the originating statistical information, and the downstream intermediate node can monitor the service flow. Obtaining the statistics of the receiving end, and then calculating the performance measurement result of the network segment corresponding to the detection combination.
  • the detection combination formed by any intermediate node and the destination node, the service flow is forwarded to the destination node through the intermediate node, the intermediate node can monitor the service flow to obtain the originating statistical information, and the destination node monitors the service flow to obtain the receiving end statistical information, and further The performance measurement result of the network segment corresponding to the detection combination is calculated.
  • the source node, the destination node, and the intermediate node can automatically monitor the service flow transmission status according to the cycle number carried in the packet to obtain statistical information, and calculate the network performance measurement result on this basis.
  • the length Length is 6 bytes, and the period is programmed.
  • the number of the Period number is 4 bytes, which is only an example of the present invention.
  • the specific format setting may be determined according to the actual situation, and the embodiment of the present invention may not specifically limit this.
  • the information of the cycle number is carried by the IP layer. However, in a specific implementation, other layers, such as a MAC layer, may be used to carry the cycle number. Can not be specifically limited.
  • the service stream transmitted by the transmitting end to the receiving end carries the information of the cycle number, so that the transmitting end and the receiving end can obtain the statistical information of the specified measurement period based on the cycle number, and then use the statistics.
  • the performance measurement results of the information computing network After the above three processing actions, the service stream transmitted by the transmitting end to the receiving end carries the information of the cycle number, so that the transmitting end and the receiving end can obtain the statistical information of the specified measurement period based on the cycle number, and then use the statistics.
  • the performance measurement results of the information computing network is the information of the cycle number.
  • the sending end and the receiving end may obtain the statistical information of each measurement period, or may obtain the statistical information of the specified measurement period as needed. This may not be specifically limited, as long as the sender and receiver are negotiating in advance.
  • the sending end obtains the statistics information of the specified measurement period, which can be understood as: the sending end acquires the period number carried in the measured packet, and if the period number corresponds to the specified measurement period, the solution obtains the method according to the embodiment of the present invention.
  • the statistical information of the measurement period is specified; and if the cycle number is found to be a non-designated measurement period, the acquisition of the statistical information of the non-designated measurement period is stopped.
  • the network performance measurement can be embodied as different measurement contents, and the statistical information that needs to be acquired for different measurement contents is also different.
  • the following describes the process of obtaining the statistical information by combining the measurement contents.
  • the corresponding statistical information is the number of packets sent.
  • the sender can obtain the statistics by counting the number of packets with the same period number in the specified measurement period.
  • the period parameter is the specified duration
  • the source node detects that a certain period number is transmitted for the first time
  • a timer is started, and the measurement start point corresponding to the period of the period is used as the measurement starting point (the measurement starting point can be It is understood that the starting point of the measurement interval represented by the measurement period may be expressed as the time or the location of the message, which may not be specifically limited in the embodiment of the present invention.
  • the specified end of the measurement period is the measurement end point of the measurement period (the measurement end point can be understood as the end point of the measurement interval indicated by the measurement period, which can be embodied as the time or the location of the message, which may be specifically limited in the embodiment of the present invention, as long as From measurement
  • the corresponding number of points can be used to count the number of packets with the number of packets sent during the period as the number of packets sent during the measurement period.
  • the current measurement period is the measurement period T2 corresponding to the period number P2, and the specified duration is 1 s.
  • the source node sends the first measured packet carrying the P2, the timing starts, and the counter can also be started to record. Number of messages sent. Take the situation shown in Figure 2-1 as an example.
  • the source node sends the measured packet 51, it starts counting and counting. Each time a packet with P2 is sent, the counter is incremented by one. The timer count is stopped at 1 s, and the number of packets obtained by counting is used as the number of transmission packets corresponding to the measurement period T2, and the process of acquiring statistical information based on the cycle number in the embodiment of the present invention is implemented.
  • Manner 2 If the period parameter specifies the number of packets to be measured, the source node does not have an out-of-order condition when it sends out the service flow. Therefore, when it is detected that a certain period number is transmitted for the first time, only one can be started.
  • the counter is used by the counter to identify the measurement end point according to the number of the specified packets to be measured. (For example, the example of sending the P2 test packet is still sent by the counter, and the counter adds 1 for each sent packet carrying the P2.
  • the process stops counting until the count reaches the specified number of measured packets, and determines the measurement end of the measurement period T2 at this time, and then obtains the number of transmission packets of the measurement period corresponding to the cycle number, thus implementing the present invention.
  • An embodiment is a process of obtaining statistical information based on a cycle number.
  • the first method is similar to the manner in which the source node counts the number of the measured packets.
  • the upstream intermediate node detects that a certain period number is transmitted for the first time, it starts counting and counting, and counts the corresponding count when the timer reaches the specified duration.
  • the number of transmission packets as the measurement period corresponding to the period number is not illustrated here.
  • the upstream intermediate node when the upstream intermediate node detects that a certain period number is transmitted for the first time, it starts counting, and takes this time as the measurement starting point of the measurement period corresponding to the period number; correspondingly, the period number is detected in the upstream intermediate node.
  • the counting is stopped, and the current time is taken as the measurement end point of the measurement period, and the counting result of the period is used as the number of transmission packets of the measurement period.
  • the current measurement is the measurement period T2 corresponding to the period number P2.
  • the upstream intermediate node sends the first packet with the P2 to be sent out
  • the first intermediate node sends the first P3.
  • the counting is stopped, so that the number of transmitted packets corresponding to the measurement period T2 can be counted.
  • the upstream intermediate node sends the measured packet 51, it starts counting; correspondingly, when the upstream intermediate node sends the measured packet 101, it stops counting and sends a previous report.
  • the count result when the text (ie, the measured message 100) is used as the corresponding measurement period T2
  • Another counter needs to be started to count the measurement period T3 corresponding to the monitored period number P3 (ie, the measured message 101 is used as the measurement starting point of the measurement period T3) to obtain the measurement period T3. Number of messages sent.
  • the number of counters may be the same as the number of measurement periods, that is, one counter is used to record the number of transmitted packets corresponding to one measurement period; or the number of counters may be less than the number of measurement periods. That is, the number of transmitted packets corresponding to each cycle is recorded by cyclically using the counter. For example, if five measurement periods are divided from the service flow and three counters are configured, the counter 1 can be used to count the measurement period T1 carrying P1 and the measurement period T4 carrying P4; the counter 2 can be used to carry P2 The measurement period T2, the measurement period T5 carrying P5 is counted, and the counter 3 can be used to count the measurement period T3 carrying P3.
  • the sender can obtain the statistical information by recording the transmission timestamp of the specified test packet in the specified measurement period.
  • the specified packet is the measured packet with the carrying period number at the specified location.
  • the source node or the upstream intermediate node can record the transmission timestamp of the specified packet according to the preset setting, and use it as the packet sending time corresponding to the measurement period.
  • the measurement starting point is used as the designated position, and the timestamp when the packet is sent at the measurement starting point is recorded.
  • the recorded packet is sent 51.
  • the timestamp of the time interval; or the arbitrary position between the measurement start point and the measurement end point may be used as the designated position, and the time stamp is recorded, which may be specifically limited in this embodiment of the present invention, as long as each end pre-negotiates the designated position, and Time stamping can be done according to negotiation.
  • the sending end may also monitor other traffic information based on the service flow carrying the cycle number according to the embodiment of the present invention. And matching with other statistical information obtained by the receiving end to obtain network measurement results for other measurement content, which is not illustrated here.
  • the measurement result can be calculated based on the statistical information acquired by the solution of the embodiment of the present invention.
  • the transmitting end obtains the statistics of the originating end by monitoring the transmission status of the service stream carrying the period number.
  • the receiving end can obtain the statistics of the receiving end by monitoring the statistical information of the service stream carrying the period number (for details, see The following is an introduction to the scheme shown in Figure 4, which is not explained here.
  • the measurement results of the network performance can be calculated. (According to actual needs, it can be reflected as end-to-end network performance measurement results, or segmented network performance measurement results).
  • statistics of each measurement period in at least one measurement period may be counted, and statistics of part of the measurement period in at least one measurement period may also be counted. For example, if there are a total of three measurement periods, the sender can all count the statistics of the three measurement periods, and also statistics of some of the specified measurement periods.
  • the network performance measurement result may be calculated by the sending end.
  • the receiving end needs to feed back the terminal statistical information to the sending end, and is used when the transmitting end calculates the measurement result.
  • the network performance measurement result may also be calculated by the receiving end.
  • the sending end needs to feed back the sending end statistics information to the receiving end, and is used when the receiving end calculates the measurement result.
  • the network performance measurement result may be calculated by an external device.
  • the sending end needs to send the statistics information of the sending end, and the receiving end feeds back the statistical information of the receiving end to the external device separately, and is used when the external device calculates the measurement result.
  • the external device may be embodied as a dedicated device, or may be embodied as the control device mentioned above.
  • the embodiment of the present invention does not limit the main body, the external device, and the like for calculating the measurement result, and may be specifically It depends on the actual application.
  • the way of characterizing the measurement period by the period number carried by the message enables the sender and the receiver to automatically and easily define the range of the interval without having to rely on the service flow as in the prior art.
  • the other packets for example, the OAM demarcation packets inserted into the service flow
  • the other packets are divided into sections, so that the possibility of inaccurate statistical information acquisition due to abnormal conditions such as the insertion of packet loss can be reduced, thereby improving the performance measurement of the computing network.
  • the accuracy of the results does not need to insert other packets into the service flow, and there is no problem of occupying the bandwidth of the service flow, which can effectively ensure the effective data transmission efficiency of the service flow.
  • the size of the measurement interval indicated by the measurement period in the solution of the embodiment of the present invention mainly depends on the period parameter.
  • the size of the measurement interval needs to be adjusted, only the value of the corresponding modification period parameter is required.
  • the implementation process is simple and flexible, and does not affect the accuracy of obtaining statistical information, the accuracy of calculating measurement results, and the effective data transmission rate of service flows.
  • the embodiment of the present invention further provides a method for obtaining statistics information of the receiving end.
  • a method for obtaining statistics information of the receiving end For details, refer to the flowchart shown in FIG. 4, which may include the following steps:
  • Step 201 The receiving end receives the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period. Numbering.
  • Step 202 The receiving end obtains statistics information of the measurement period based on the period number, where the statistics information is used to calculate a performance measurement result of a network that carries the measured packet.
  • the sender adds the period number to the packet to be transmitted to the receiver, so that the receiver can obtain the statistics of the packet by monitoring the period number during the process of receiving the packet to be tested. Information for use in subsequent calculations of network performance measurements.
  • the measured packet in the embodiment of the present invention may be a data packet or a control management packet. Multiple tested messages form a service flow. The embodiment of the present invention may not limit the specific type of the tested message.
  • the following describes the process of reading the cycle number, identifying the monitoring interval, and obtaining statistical information at the receiving end.
  • the embodiment of the present invention provides three ways of reading the cycle number, which are explained below.
  • the receiver can obtain the cycle number by reading the Period Number in the Option field.
  • the cycle number of the first and second read modes can be used to implement the end-to-end detection and the segmentation detection.
  • the receiving end in the embodiment of the present invention can be embodied as an intermediate node or a destination node;
  • the end number of the three-reading period can be end-to-end.
  • the receiving end in the embodiment of the present invention is embodied as a destination node.
  • the sending end carries the period number through other layers than the IP layer, the receiving end only needs to read the period number in the corresponding position, which is not illustrated here.
  • the receiving end When receiving the service flow carrying the cycle number transmitted by the transmitting end, the receiving end can identify the monitoring interval indicated by the measurement period according to the cycle number, which requires the receiving end to clarify the measurement starting point and the corresponding measurement end point of each measurement cycle. .
  • the process of determining the measurement start point and the measurement end point will be explained below.
  • the receiving end may identify the measurement starting point of the measurement period according to the received test packet carrying the first cycle number corresponding to the measurement period, which may be embodied in the following implementation manners:
  • the receiving end receives the service flow sent by the sending end, and determines whether the currently received packet carries a cycle number. If the cycle number is not carried, the received service flow is normally processed; if the cycle number is carried, Continue to determine whether the message is the first time received by the receiving end, and according to the scheme shown in a and b, continue to determine the starting point of the measurement:
  • the receiving end receives the packet 1 and determines that the packet carries the period number P1 and is the first packet carrying the period number. Therefore, the packet can be tested. The measurement starting point of the measurement period T1 corresponding to P1 is determined.
  • the receiving end receives the measured packet 53 carrying the period number P2, and determines that the measured packet 50 carrying the period number P1 has been received beforehand, and the two carry the period number.
  • the measurement message 53 can be determined as the measurement starting point of the measurement period T2 corresponding to P2.
  • the message 50 carrying the cycle number P1 is determined as the measurement end point of the measurement period T1.
  • the receiving end receives the measured packet 3 carrying the periodic number P1, and determines that the measured packet 1 carrying the periodic number P1 has been received before, and the two carry the same periodic number. Therefore, it can be determined that the measured message 3 is not the measurement starting point of the measurement period T1.
  • the method of determining the measurement starting point in the embodiment of the present invention may be as follows: the first carrying period number received by the receiving end, in the case where there are at least two measurement periods, and the case where there is only one measurement period.
  • the message is determined as the starting point of the measurement cycle.
  • the receiving end can automatically identify the measurement starting point according to the introduction of the method, but if the two are in advance negotiated Then, the receiving end can automatically identify the measurement starting point of each measuring cycle in the following manner.
  • the message carrying the cycle number For the case where the message carrying the cycle number is received for the first time, it can be determined as the measurement start point of the first measurement cycle. For example, if the measured message 1 carrying the cycle number P1 is received, and it is the first received message carrying the cycle number, the measured message 1 can be determined as the measurement starting point of the measurement period T1.
  • the measurement start point of the measured cycle corresponding to the changed cycle number may be determined when the cycle number is changed. For example, if the measured packet 51 carrying the period number P2 is received, and the period number carried by the measured packet 50 received before is P1, that is, the period number changes, the detected packet 51 can be determined as The measurement starting point of the measurement period T2.
  • the process of determining the measurement start point is the same as the case (b) in the second mode, except that the cycle number changes between the two messages.
  • There is a certain interval the interval may be reflected in several messages or a period of time, and the embodiment of the present invention may not be specifically limited, as long as the transmitting end and the receiving end negotiate in advance).
  • the measured packet 53 carrying the period number P2 is received, and the period number of the detected packet 50 that is separated from the two packets is P1, that is, the period number changes, so that the measured packet 53 can be detected. It is determined as the measurement starting point of the measurement period T2.
  • the receiving end obtains the period parameter used by the transmitting end to divide the measurement period, such as obtaining the specified duration (the same manner as the sending end obtaining the periodic parameter, the periodic parameter may be pre-configured at the receiving end, or may be externally input when needed)
  • the embodiment of the present invention does not specifically limit this, and after identifying the measurement starting point of the measurement period in the manner described above, a timer is started, and when the timing reaches the specified duration, the measurement period is used. The end point is measured. As shown in Figure 2-1, if the specified duration is 1 s, the measurement start point (the measured packet 51 carrying the cycle number P2) is recognized from the receiving end, and the timing is started until the timing reaches 1 s. The corresponding measured message at this time is determined as the measurement starting point of the measurement period T2.
  • the measurement end point can also be identified according to the change of the cycle number.
  • the measurement start point of the measurement period T1 the measured packet 1 carrying the period number P1
  • the determination cycle number is changed from P1 to P2, so that the measured message 50 carrying the previous cycle number P1 can be determined as the measurement end point of the measurement period T1, and the detected message 51 is determined as The measurement starting point of the measurement period T2.
  • the foregoing method for changing from one cycle number to another cycle is applicable to a case where there are at least two measurement periods, and in the case of only one measurement period, in the embodiment of the present invention, according to the cycle number.
  • the change to identify the measurement endpoint can be embodied as: identifying the measurement endpoint based on changes in the regularity of the addition cycle number. The identification process is explained below in conjunction with two examples.
  • each measured packet in the measurement period T1 is added with the period number P1, that is, the rule of adding the period number.
  • the receiving end recognizes the measurement end point in the following manner: when the measurement starting point of the measurement message 1 is recognized, it is judged whether the re-received test packet carries the cycle number P1, and when the measured report is received If it is determined that the cycle number is not carried in the case of 51, the law of the cycle number may be changed, and the measured message 50 carrying the previous cycle number P1 may be determined as the measurement end point of the measurement cycle T1.
  • the rule of adding the cycle number in the measurement period T1 is: adding a cycle number to the measured message located at the odd position, that is, adding a cycle number every interval of the message, corresponding to this, the way the receiver recognizes the measurement end point is: self-identification
  • the measurement start point 1 it is judged whether the received packet carrying the cycle number P1 meets the above rule.
  • the rule of the cycle number may be considered to occur. With the change, the last detected message 49 carrying the cycle number P1 can be determined as the measurement end point of the measurement period T1.
  • the foregoing is only an example of the measurement end point identification process in combination with two relatively simple rules.
  • the embodiment of the present invention does not specifically limit the addition rule of the cycle number, as long as there are certain regular addition methods.
  • the measurement endpoint can be identified using the above scheme.
  • the receiving end can also identify the measurement end point by combining the change of the specified duration and the cycle number.
  • the receiving end recognizes the measurement starting point of the measurement cycle in the manner described above, it starts a timer and determines whether the cycle number has changed before the timing reaches the specified time. If the change occurs, it is identified by the change of the cycle number. The end point is measured and the timing is stopped; if there is no change, the waiting time is reached for the specified length of time, and the specified end time is used to identify the measurement end point. In this way, when the measured message is abnormally transmitted, and the measurement end point cannot be identified by the change of the cycle number, the monitoring process for the measurement cycle is terminated by the specified duration.
  • the embodiment of the present invention may further provide a solution for determining the fault-tolerant measurement end point on the basis of the foregoing methods 1, 2, and 3.
  • the detected packets 49 and 50 carrying the cycle number P1 are sent out of order during the transmission, and the two are transmitted to the receiving end after carrying the detected message 51 of the cycle number P2.
  • the measured end point of the measured measurement period T1 may be the measured message 48. If it continues to wait for an allowable lag time on this basis, the out-of-order transmission messages 49, 50 can be counted into the statistical information of the measurement period T1. The accuracy of obtaining statistical information in the embodiment of the present invention is improved.
  • the receiving end can obtain the statistical information of the specified measurement period. Because, when calculating the performance measurement results of the network, it is necessary to obtain matching statistics of the originating end and The receiving end can obtain the statistical information of the receiving end according to the pre-negotiation with the transmitting end, and the statistic information of the specified measuring period can be obtained as needed.
  • the embodiment of the present invention does not specifically limit this.
  • the receiving end obtains the statistics of the specified measurement period, which can be understood as: the receiving end acquires the period number carried in the received packet, and if the period number corresponds to the specified measurement period, the embodiment of the present invention The solution obtains the statistical information of the specified measurement period; and if it finds that the period number corresponds to the non-designated measurement period, the statistics of the non-designated measurement period are stopped.
  • the network performance measurement can be embodied in different measurement contents, and the statistical information that needs to be acquired for different measurement contents is also different. The process of obtaining the statistical information is explained below in combination with the measurement content.
  • the corresponding statistical information is the number of received packets.
  • the receiving end can obtain the statistical information by counting the number of the measured packets carrying the same periodic number in the specified measurement period.
  • the measurement starting point of each measurement period can be determined in the manner described above.
  • the measured packet 51 carrying the period number P2 is determined as After measuring the measurement starting point of the period T2, the timer and the counter are started, and the counter is incremented by 1 every time a measured message carrying the period number P2 is received, and the process is continued until the timing reaches the specified period of time (ie, the measurement period is reached).
  • the measurement end point is to stop the counting of the time, and the number of the received packets is used as the number of received packets corresponding to the measurement period T2, and the process of obtaining the statistical information based on the cycle number in the embodiment of the present invention is implemented.
  • a counter is started, and the measurement end point is determined according to the cycle number change, and the number of packets counted by the counter between the measurement start point and the measurement end point is determined as the measurement period T2.
  • the number of received messages is determined as the measurement period T2.
  • the receiving end may also identify the measurement end point by using the change of the specified duration and the cycle number in the manner of identifying the measurement end point above, and the number of packets counted between the measurement start point and the measurement end point as the measurement period. Number of received messages.
  • the receiving end can also use the above method 4 for identifying the measurement end point, set the fault-tolerant measurement end point, and use the number of packets counted by the counter between the measurement start point and the fault-tolerant measurement end point as the number of received packets corresponding to the measurement period.
  • the embodiment of the present invention does not specifically limit the manner of identifying the measurement end point, and may select an appropriate manner to identify the measurement end point in combination with the actual application scenario.
  • the counter 2 can be started to record the measurement period T2.
  • the counter 1 does not stop counting immediately, but continues to wait to receive the message carrying the P1, and judges whether the allowable lag parameter is currently satisfied. If it is satisfied, the counting is stopped, and the current The result of the recording is taken as the number of received messages corresponding to the measurement period T1; if not, the process of waiting for reception and judgment is continued. As shown in FIG.
  • the corresponding statistical information is a timestamp, and the receiving end can obtain the statistical information by recording the receiving timestamp of the specified measured message in the specified measurement period.
  • the specified packet is the measured packet with the carrying period number at the specified location.
  • the receiving end After determining the measurement starting point of a certain measurement period, the receiving end can record the receiving timestamp of the specified packet according to the pre-negotiation with the transmitting end, and use it as the receiving time of the packet corresponding to the measurement period.
  • the measurement start point of the measurement period is used as the designated position, and the timestamp when the measurement start message is received is recorded. Taking the measurement period T2 shown in FIG. 2-1 as an example, the recorded packet is received. The timestamp of 51; or, any position between the measurement start point and the measurement end point can be used as the designated position to record the time stamp.
  • This embodiment of the present invention does not specifically limit this, as long as the sender and the receiver are pre-negotiated. Specify the location and record the time stamp according to the negotiation.
  • the receiving end can also monitor other traffic information based on the service flow carrying the cycle number according to the embodiment of the present invention. And matching with other statistical information obtained by the sender to obtain network measurement results for other measurement content, which is not illustrated here.
  • the measurement result can be calculated based on the statistical information acquired by the solution of the embodiment of the present invention.
  • the network performance measurement result may be calculated by the sending end, or may be calculated by the receiving end, or may be calculated by an external device.
  • the embodiment of the present invention may not limit the main body of the measurement result. According to the actual application And set.
  • the statistical information obtained by monitoring each measurement period can be used to calculate the network performance measurement result, and the network performance measurement result can be calculated by using the sampling information to calculate the network performance measurement result. For example, this is not specifically limited.
  • the way of characterizing the measurement period by the period number carried by the message enables the receiving end to automatically and easily define the range of the interval, and obtain statistical information based on this, thereby reducing the prior art insertion.
  • the possibility of obtaining inaccurate statistical information caused by abnormal conditions such as packet loss increases the accuracy of calculating network performance measurement results.
  • obtaining the statistical information by using the solution of the embodiment of the present invention can also simplify the design of the receiving end and reduce the intervention and cooperation of the outside world in the obtaining process.
  • the embodiment of the present invention further provides a device for acquiring statistics on the transmitting end side.
  • the device may include:
  • the setting unit 301 is configured to set a corresponding period number for each measurement period in the at least one measurement period;
  • the adding unit 302 is configured to add the period number set by the setting unit to a header of the tested packet included in the corresponding measurement period;
  • the sending unit 303 is configured to send, to the receiving end, the measured packet carrying the period number
  • the obtaining unit 304 is configured to obtain, according to the period number, statistical information of a specified measurement period in the at least one measurement period when the sending unit sends the measured packet, where the statistical information is used to calculate a bearer The performance measurement result of the network of the measured message.
  • the setting unit is further configured to divide the measurement period according to a period parameter before setting the measurement period, where the period parameter is a specified duration or specifies a number of packets to be measured.
  • the periodic parameter may be pre-configured in the transmitting end, or may be externally input when needed, which may not be specifically limited in this embodiment of the present invention.
  • the adding unit is specifically configured to add the period number to a header of all the tested messages included in the corresponding measurement period; or the adding unit is specifically configured to add the cycle number to
  • the designated test packet is selected from all the tested packets included in the corresponding measurement period according to a preset rule, corresponding to the header of the specified test packet included in the measurement period.
  • the embodiment of the present invention mainly divides the interval by the cycle number. Therefore, the number of the packets in the service flow carries the cycle number, and the cycle number carried in the packet is also different according to different measurement cycles. with.
  • the cycle number can be carried by the header, and corresponding to the following, the following three ways of adding the cycle number to the header are provided:
  • the adding unit is specifically configured to add the period number to a hop-by-hop option header or a destination option extension header of the IPv6 header; or the adding unit is specifically configured to add the period number to the IPv4 header.
  • Option field is specifically configured to add the period number to a hop-by-hop option header or a destination option extension header of the IPv6 header; or the adding unit is specifically configured to add the period number to the IPv4 header.
  • the passive measurement device at the transmitting end can transmit the service flow including the measured packet to the receiving end, and simultaneously monitor and obtain the statistical information of the specified measurement period.
  • the measurement device needs to obtain different statistical information, and the composition of the obtaining unit may be different for different statistical information, which will be exemplified below.
  • the statistics may be the number of packets to be sent, and the corresponding obtaining unit may be used to collect the number of the packets with the same period number in the specified measurement period.
  • the statistical information may be embodied as a timestamp of the sent packet, and the corresponding obtaining unit may be specifically configured to record a sending timestamp of the specified measured packet in the specified measurement period, where the specified The test packet is the measured packet with the carrying period number at the specified location.
  • the embodiment of the present invention further provides a device for acquiring statistics on the receiving end side.
  • the device may include:
  • the receiving unit 401 is configured to receive the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same Cycle number
  • the obtaining unit 402 is configured to obtain, according to the period number, statistical information of the measurement period, where the statistical information is used to calculate a performance measurement result of a network that carries the measured packet.
  • the statistic information acquiring device of the transmitting end transmits the measured packet carrying the periodic number to the statistic information acquiring device on the receiving end side, and the receiving end can automatically identify the measuring period of the transmitting end according to the period number carried in the packet, and Get statistics for the specified measurement period.
  • the measurement device should monitor different statistical information, and the composition of the acquisition unit will be different for different statistical information, which will be exemplified below.
  • the statistics may be the number of received packets, and the corresponding obtaining unit may include: obtaining the sub-units, and collecting statistics on the number of the tested packets carrying the same periodic number in the measurement period.
  • the obtaining unit may further include: an identifying unit, configured to identify the measurement period according to a change of the period number before the obtaining subunit counts the number of the measured packets; and/or obtain the designation The duration, and the measurement period is identified according to the specified duration.
  • the receiving end may set the allowable hysteresis parameter (which may be embodied as allowing the lag time, or allowing the number of lag messages, etc.), and the obtaining unit may include:
  • an adjusting unit configured to adjust the measurement period by using the allowable hysteresis parameter, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed;
  • Obtaining a sub-unit configured to count the number of the tested packets carrying the same cycle number in the measurement period after the adjustment unit is adjusted.
  • the statistical information may be reflected as a timestamp of the received message, and the corresponding obtaining unit may include: a recording unit, configured to record a receiving timestamp of the specified measured message in the measurement period,
  • the specified test message is a test packet with a carry cycle number located at a specified location, and the specified location is the same as the designated location where the sender records the transmission timestamp.
  • the embodiment of the present invention further provides a hardware configuration of the statistical information acquiring apparatus.
  • at least one processor e.g., a CPU
  • the processor is for executing an executable module, such as a computer program, stored in the memory.
  • the memory may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory.
  • the communication connection between the system gateway and at least one other network element is implemented by at least one network interface (which may be wired or wireless), and an Internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
  • the memory stores program instructions
  • the processor is configured to perform the following steps according to the program instructions:
  • the measurement period is divided according to a period parameter, which is a specified duration or specifies the number of packets to be measured.
  • the processor may add the cycle number to the header of the tested packet included in the corresponding measurement period in the following manner:
  • the measurement message is selected from all the tested messages included in the corresponding measurement period according to a preset rule.
  • the processor may add the cycle number to the header of the tested packet included in the corresponding measurement period in the following manner:
  • the cycle number is added to the hop-by-hop option extension header or the destination option extension header of the IPv6 header; or the cycle number is added to the option field of the IPv4 header.
  • the statistics information is the number of the packets
  • the processor may obtain the statistics of the specified measurement period in the following manner: the number of the measured packets carrying the same cycle number in the specified measurement period is counted.
  • the statistical information is a timestamp
  • the processor may obtain the statistical information of the specified measurement period in the following manner: recording a transmission timestamp of the specified measured packet in the specified measurement period, where the specified measurement is performed.
  • the packet is the measured packet with the carrying period number at the specified location.
  • the memory stores program instructions
  • the processor is configured to perform the following steps according to the program instructions:
  • the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period number;
  • the statistics information is the number of the packets
  • the processor may obtain the statistics of the measurement period in the following manner: the number of the measured packets carrying the same cycle number in the measurement period is counted.
  • the processor is further configured to perform: before counting the number of the tested packets carrying the same cycle number in the measurement period:
  • the statistics information is the number of packets
  • the receiving end is provided with an allowable hysteresis parameter
  • the processor may obtain the statistical information of the measurement period in the following manner: adjusting the measurement period by using the allowable hysteresis parameter, and after adjusting the statistics The number of measured packets carrying the same cycle number during the measurement period.
  • the allowable hysteresis parameter is a number of allowed packets to be allowed to be delayed or allowed to be delayed.
  • the statistical information is a timestamp
  • the processor may obtain the statistical information of the measurement period in the following manner: recording a reception timestamp of the specified test packet in the measurement period, where the specified measured message is located The measured packet carrying the cycle number of the specified location, and the specified location is the same as the specified location of the transmission timestamp of the sender.
  • inventive arrangements may be described in the general context of computer-executable instructions executed by a computer, such as a program element.
  • program units include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • inventive arrangements can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program units can be located in both local and remote computer storage media including storage devices.
  • the various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.

Abstract

Provided in an embodiment of the present invention are a statistical information acquisition method and device, the method comprising: a transmitting terminal sets a corresponding cycle number for each measurement period in at least one measurement period, and adds the cycle number into the header of a measured packet comprised in the corresponding measurement period; and the transmitting terminal transmits to a receiving terminal the measured packet carrying the cycle number, and acquires the statistical information of a specified measurement period in the at least one measurement period based on the cycle numbers, the statistical information being used to calculate the performance measurement result of the network bearing the measured packet. Compared to the prior art wherein a measurement period is represented dependent on inserted packets in addition to a service stream, the solution reduces the possibility that the statistical information is obtained inaccurately caused by abnormal situations such as the loss of an insertion packet, thus improving the accuracy of calculating the performance measurement result of the network, and avoiding the problem in the prior art that the insertion packet occupies the bandwidth of the service stream.

Description

一种统计信息获取方法及装置Method and device for acquiring statistical information
本申请要求于2014年7月4日提交中国专利局、申请号为CN 201410318272.6、发明名称为“一种统计信息获取方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on July 4, 2014, the Chinese Patent Application No. CN 201410318272.6, entitled "A Method and Apparatus for Acquiring Statistical Information", the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种统计信息获取方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for acquiring statistical information.
背景技术Background technique
随着信息技术的不断发展,用户对网络性能的要求越来越高,目前常用的网络性能检测方式可体现为以下两种:主动性测量(active measurements)、被动性测量(passive measurements)。With the continuous development of information technology, users have higher and higher requirements for network performance. Currently, the commonly used network performance detection methods can be embodied in the following two types: active measurements and passive measurements.
其中,主动性测量需要向网络中注入测试报文,再结合测试报文的传送情况分析网络性能,这种方式会使网络中产生额外流量,导致网络运行情况随之发生变化,使测量结果与网络的实际性能之间存在一定的偏差。被动性测量则是直接由设备监测网络中的实际业务流,不会产生额外流量,测量结果更能反映网络的真实情况,被广泛应用在故障分界、故障定位、网络优化等方面。The active measurement needs to inject test packets into the network, and analyze the network performance in combination with the transmission of test packets. This method will generate additional traffic in the network, causing network operation to change, and the measurement results are There is a certain deviation between the actual performance of the network. Passive measurement is to directly monitor the actual traffic flow in the network by the device, and does not generate additional traffic. The measurement result can reflect the real situation of the network and is widely used in fault demarcation, fault location, network optimization and so on.
进行被动性测量时,要在业务流中插入OAM(Operation、Administration、Maintenance)分界报文,以利用OAM分界报文将业务流划分成多组被测报文,并监测每组被测报文的传输情况,获得统计信息,进而利用统计信息计算网络性能测量结果。如,针对某组被测报文,利用发送端监测获得的发送报文数和接收端监测获得的接收报文数,计算丢包检测值;或者,利用发送端监测获得的发送时间戳和接收端监测获得的接收时间戳,计算时延检测值;等等。To perform the passive measurement, the OAM (Operation, Administration, and Maintenance) demarcation packets are inserted into the service flow to divide the service flow into multiple groups of tested packets by using OAM demarcation packets, and monitor each group of tested packets. The transmission situation, obtain statistical information, and then use statistical information to calculate network performance measurement results. For example, for a certain group of measured packets, the number of sent packets obtained by the monitoring of the transmitting end and the number of received packets received by the receiving end are used to calculate the packet loss detection value; or, the sending timestamp and the receiving obtained by the transmitting end monitoring are used. The terminal receives the received timestamp, calculates the delay detection value, and so on.
综上可知,被动性测量的测量结果在一定程度上依赖于OAM分界报文,若OAM分界报文对业务流的划界分组出现问题,如,OAM分界报文丢失导致分组错误,因为发送端和接收端均是利用相邻的两个OAM分界报文来划分区间,故,若OAM分界报文在传输过程中丢失,就会导致发送端和接收端使用 不同的OAM分界报文划分区间,致使二者的监测区间不匹配,则会影响发送端、接收端获取统计信息的准确性,进而影响网络性能测量结果的计算准确性。另外,考虑到OAM分界报文会占用一定的带宽,将其插入到业务流中,势必会降低业务流的有效数据传输效率,且随着插入OAM分界报文数目的增多,这一问题就越发明显。In summary, the measurement results of the passive measurement depend to some extent on the OAM demarcation message. If the OAM demarcation message has a problem with the demarcation grouping of the service flow, for example, the OAM demarcation message is lost, resulting in a packet error, because the sender Both the receiving end and the receiving end use the two adjacent OAM demarcation messages to divide the interval. Therefore, if the OAM demarcation message is lost during transmission, the sender and the receiving end will be used. Different OAM demarcation messages are divided into sections, so that the monitoring intervals of the two are not matched, which will affect the accuracy of the statistical information obtained by the transmitting end and the receiving end, and thus affect the calculation accuracy of the network performance measurement results. In addition, considering that the OAM demarcation packet occupies a certain bandwidth and inserts it into the service flow, it will inevitably reduce the effective data transmission efficiency of the service flow, and the problem becomes more and more as the number of OAM demarcation packets is increased. obvious.
发明内容Summary of the invention
本发明实施例提供的统计信息获取方法及装置,用以提高获取统计信息的准确性,进而提高计算网络性能测量结果的准确性。The method and device for acquiring statistical information provided by the embodiments of the present invention are used to improve the accuracy of obtaining statistical information, thereby improving the accuracy of calculating network performance measurement results.
为此,本发明实施例提供如下技术方案:To this end, the embodiments of the present invention provide the following technical solutions:
第一方面,本发明实施例提供了一种统计信息获取方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for acquiring statistical information, where the method includes:
发送端为至少一个测量周期中的每个测量周期设置一个对应的周期编号,并将所述周期编号添加到对应测量周期里包含的被测报文的报头中;The sending end sets a corresponding period number for each measurement period in the at least one measurement period, and adds the period number to the header of the tested packet included in the corresponding measurement period;
所述发送端向接收端发送携带有所述周期编号的被测报文,并基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。Transmitting, by the sending end, the measured packet carrying the period number to the receiving end, and obtaining, according to the period number, statistical information of the specified measurement period in the at least one measurement period, where the statistical information is used to calculate the bearer The performance measurement result of the network of the measured message.
在第一方面的第一种可能的实现方式中,所述测量周期是根据周期参数划分的,所述周期参数为指定时长或指定被测报文数。In a first possible implementation manner of the first aspect, the measurement period is divided according to a period parameter, where the period parameter is a specified duration or a number of packets to be measured.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述将所述周期编号添加到对应测量周期里包含的被测报文的报头中,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the adding the cycle number to a header of the measured packet included in the corresponding measurement period, include:
所述发送端将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,The sending end adds the period number to a header of all the tested messages included in the corresponding measurement period; or
所述发送端将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。And sending, by the sending end, the period number to a header of the specified test packet included in the corresponding measurement period, where the specified test packet is all the measured reports included in the corresponding measurement period according to a preset rule. Selected in the text.
结合第一方面或第一方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述将所述周期编号添加到对应测量周期里包含的被测报文的报头中,包含:With reference to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation, the adding the cycle number to the measured packet included in the corresponding measurement period In the header, contains:
所述发送端将所述周期编号添加到IPv6报头的逐跳选项扩展头或目的地 选项扩展头;或者,The sender adds the cycle number to the hop-by-hop option header or destination of the IPv6 header Option extension header; or,
所述发送端将所述周期编号添加到IPv4报头的选项字段。The sender adds the cycle number to an option field of an IPv4 header.
结合第一方面或第一方面的第一种至第三种可能的实现方式,在第四种可能的实现方式中,所述统计信息为报文数目,则所述基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,包括:With reference to the first aspect or the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner, the statistics information is a number of packets, and the obtaining the The statistical information of the specified measurement period in at least one measurement period, including:
所述发送端统计所述指定测量周期里携带相同周期编号的被测报文的数目。The sending end counts the number of the tested packets carrying the same period number in the specified measurement period.
结合第一方面或第一方面的第一种至第四种可能的实现方式,在第五种可能的实现方式中,所述统计信息为时间戳,则所述基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,包括:With reference to the first aspect or the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation, the statistics information is a time stamp, and the obtaining the Statistics for a specified measurement period in at least one measurement period, including:
所述发送端记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。The sending end records the sending timestamp of the specified test packet in the specified measurement period, and the specified measured message is the measured packet carrying the period number at the specified location.
第一方面,本发明实施例提供了一种统计信息获取方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for acquiring statistical information, where the method includes:
接收端接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号;The receiving end receives the measured packet sent by the sending end, and the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period number;
所述接收端基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。The receiving end obtains the statistics of the measurement period based on the period number, where the statistics information is used to calculate a performance measurement result of the network that carries the measured packet.
在第二方面的第一种可能的实现方式中,所述统计信息为报文数目,则所述接收端基于所述周期编号获得所述测量周期的统计信息,包括:In a first possible implementation manner of the second aspect, the statistics information is the number of the packets, and the receiving end obtains the statistics information of the measurement period based on the cycle number, including:
所述接收端统计所述测量周期内携带相同周期编号的被测报文的数目。The receiving end counts the number of the tested packets carrying the same period number in the measurement period.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,在所述接收端统计所述测量周期内携带相同周期编号的被测报文的数目之前,还包括:With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner, before the receiving end statistics the number of the measured packets carrying the same period number in the measurement period, the method further includes:
所述接收端根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点;The receiving end identifies the measurement starting point of the measurement period according to the received measured message carrying the first cycle number corresponding to the measurement period;
所述接收端根据所述测量周期对应的周期编号的变化识别所述测量周期的测量终点;和/或,所述接收端获得指定时长,并根据所述测量周期的测量起点和所述指定时长识别所述测量周期的测量终点。The receiving end identifies a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point and the specified duration of the measurement period A measurement end point of the measurement period is identified.
在第二方面的第三种可能的实现方式中,所述统计信息为报文数目,且接收端设置有允许滞后参数,则所述接收端基于所述周期编号获得所述测量 周期的统计信息,包括:In a third possible implementation manner of the second aspect, the statistical information is the number of packets, and the receiving end is configured with an allowable hysteresis parameter, and the receiving end obtains the measurement based on the periodic number. Periodic statistics, including:
所述接收端利用所述允许滞后参数调整所述测量周期,并统计调整后的测量周期内携带相同周期编号的被测报文的数目。The receiving end adjusts the measurement period by using the allowable hysteresis parameter, and counts the number of the tested packets carrying the same period number in the adjusted measurement period.
结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,所述允许滞后参数为允许滞后时长或允许滞后被测报文数。In conjunction with the third possible implementation of the second aspect, in a fourth possible implementation, the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed.
结合第二方面或第二方面的第一种至第四种可能的实现方式,在第五种可能的实现方式中,所述统计信息为时间戳,则所述接收端基于所述周期编号获得所述测量周期的统计信息,包括:With reference to the second aspect or the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation, the statistics information is a time stamp, and the receiving end obtains the The statistical information of the measurement period includes:
所述接收端记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。The receiving end records a receiving timestamp of the specified test packet in the measurement period, where the specified test packet is a measured packet carrying a period number at a specified location, and the specified location and the sending end The specified location for the record send timestamp is the same.
第三方面,本发明实施例提供了一种统计信息获取装置,所述装置包括:In a third aspect, an embodiment of the present invention provides a statistical information acquiring apparatus, where the apparatus includes:
设置单元,用于为至少一个测量周期中的每个测量周期设置一个对应的周期编号;a setting unit, configured to set a corresponding cycle number for each measurement cycle in at least one measurement cycle;
添加单元,用于将所述设置单元设置的所述周期编号添加到对应测量周期里包含的被测报文的报头中;a adding unit, configured to add the period number set by the setting unit to a header of the tested packet included in the corresponding measurement period;
发送单元,用于向接收端发送携带有所述周期编号的被测报文;a sending unit, configured to send, to the receiving end, the measured packet carrying the period number;
获得单元,用于在所述发送单元发送所述被测报文时,基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And an obtaining unit, configured to obtain, according to the period number, statistical information of a specified measurement period in the at least one measurement period, where the statistics information is used to calculate the bearer, when the sending unit sends the measured packet The performance measurement result of the network of the measured message.
在第三方面的第一种可能的实现方式中,所述设置单元,还用于在设置所述测量周期之前,根据周期参数划分所述测量周期,所述周期参数为指定时长或指定被测报文数。In a first possible implementation manner of the third aspect, the setting unit is further configured to: before the setting the measurement period, divide the measurement period according to a period parameter, where the period parameter is a specified duration or a specified measurement Number of messages.
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation, the adding unit is specifically configured to add the cycle number to all the included in the corresponding measurement period. Measure the header of the message; or,
所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。The adding unit is specifically configured to add the period number to a header of a specified test packet included in a corresponding measurement period, where the specified test packet is included in the corresponding measurement period according to a preset rule. Selected from all the tested messages.
结合第三方面或第三方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述添加单元,具体用于将所述周期编号添加到IPv6报 头的逐跳选项扩展头或目的地选项扩展头;或者,With reference to the third aspect, or the first or the second possible implementation manner of the third aspect, in a third possible implementation, the adding unit is specifically configured to add the cycle number to the IPv6 report. Head hop-by-hop option extension header or destination option extension header; or,
所述添加单元,具体用于将所述周期编号添加到IPv4报头的选项字段。The adding unit is specifically configured to add the period number to an option field of an IPv4 header.
结合第三方面或第三方面的第一种至第三种可能的实现方式,在第四种可能的实现方式中,所述统计信息为报文数目,则所述获得单元,具体用于统计所述指定测量周期里携带相同周期编号的被测报文的数目。With reference to the third aspect or the first to third possible implementation manners of the third aspect, in the fourth possible implementation manner, the statistics information is the number of packets, and the obtaining unit is specifically used for statistics The number of the measured packets carrying the same cycle number in the specified measurement period.
结合第三方面或第三方面的第一种至第四种可能的实现方式,在第五种可能的实现方式中,所述统计信息为时间戳,则所述获得单元,具体用于记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。With reference to the third aspect or the first to fourth possible implementation manners of the third aspect, in the fifth possible implementation manner, the statistics information is a time stamp, and the obtaining unit is specifically used for the recording The sending timestamp of the specified test packet in the specified measurement period, where the specified test packet is the measured packet carrying the cycle number at the specified location.
第四方面,本发明实施例提供了一种统计信息获取装置,所述装置包括:In a fourth aspect, an embodiment of the present invention provides a statistical information acquiring apparatus, where the apparatus includes:
接收单元,用于接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号;The receiving unit is configured to receive the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period Numbering;
获得单元,用于基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And an obtaining unit, configured to obtain, according to the period number, statistical information of the measurement period, where the statistical information is used to calculate a performance measurement result of a network that carries the measured packet.
在第四方面的第一种可能的实现方式中,所述统计信息为报文数目,则所述获得单元包括:In a first possible implementation manner of the fourth aspect, the statistics information is a number of packets, and the obtaining unit includes:
获得子单元,用于统计所述测量周期内携带相同周期编号的被测报文的数目。Obtaining a subunit for counting the number of the tested packets carrying the same period number in the measurement period.
结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获得单元还包括:With reference to the first possible implementation of the fourth aspect, in a second possible implementation, the obtaining unit further includes:
起点识别单元,用于根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点;a starting point identifying unit, configured to identify a measurement starting point of the measurement period according to the received first tested message carrying the period number corresponding to the measurement period;
终点识别单元,用于根据所述测量周期对应的周期编号的变化识别所述测量周期的测量终点;和/或,所述接收端获得指定时长,并根据所述测量周期的测量起点和所述指定时长识别所述测量周期的测量终点。An end point identifying unit, configured to identify a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point of the measurement period and the The specified duration identifies the measurement endpoint of the measurement period.
在第四方面的第三种可能的实现方式中,所述统计信息为报文数目,且设置有允许滞后参数,则所述获得单元包括:In a third possible implementation manner of the fourth aspect, the statistics information is a number of packets, and an allowable lag parameter is set, where the obtaining unit includes:
调整单元,用于利用所述允许滞后参数调整所述测量周期,所述允许滞后参数为允许滞后时长或允许滞后被测报文数;And an adjusting unit, configured to adjust the measurement period by using the allowable hysteresis parameter, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed;
获得子单元,用于统计所述调整单元调整后的测量周期内携带相同周期 编号的被测报文的数目。Obtaining a subunit for collecting the same period in the measurement period after the adjustment unit is adjusted Number of the number of measured packets.
结合第四方面或第四方面的第一种至第三种可能的实现方式,在第四种可能的实现方式中,所述统计信息为时间戳,则所述获得单元包括:With reference to the fourth aspect, or the first to the third possible implementation manners of the fourth aspect, in the fourth possible implementation, the statistics information is a timestamp, and the obtaining unit includes:
记录单元,用于记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。a recording unit, configured to record a received timestamp of the specified test packet in the measurement period, where the specified test packet is a test packet carrying a cycle number at a specified location, and the specified location is sent The specified location of the send record timestamp is the same.
本发明实施例的统计信息获取方法及装置,在进行网络性能检测时,发送端为每个测量周期配置一个对应的周期编号,并将周期编号写入到被测报文的报头。这样,在发送端向接收端传送上述携带有周期编号的被测报文时,发送端、接收端就可基于周期编号准确获取指定测量周期的统计信息,进而据此计算承载所述测量周期的网络的性能测量结果。本发明实施例通过被测报文头中的周期编号来表征测量周期,相比现有技术中依赖业务流之外的插入报文来表征测量周期,就可降低因插入报文丢失等异常情况导致的统计信息获取不准确的可能性,进而提高计算网络性能测量结果的准确性;同时,本发明实施例如此表征测量周期的方式,还不会如现有技术一般存在插入报文占用业务流带宽的问题,故还可有效保证业务流有效数据传输效率。The method and device for acquiring statistical information in the embodiment of the present invention, when performing network performance detection, the transmitting end configures a corresponding period number for each measurement period, and writes the period number to the header of the measured packet. In this way, when the transmitting end transmits the measured packet carrying the periodic number to the receiving end, the transmitting end and the receiving end can accurately obtain the statistical information of the specified measurement period based on the period number, and then calculate the measurement period carrying the measurement period. Network performance measurement results. In the embodiment of the present invention, the measurement period is represented by the period number in the measured packet header, and the measurement period is compared with the insertion message other than the service flow in the prior art, thereby reducing the abnormal situation such as the insertion packet loss. The resulting statistical information acquires the possibility of inaccuracy, thereby improving the accuracy of calculating the network performance measurement result. At the same time, the present invention implements, for example, the manner of characterizing the measurement period, and does not have the inserted message occupation service flow as in the prior art. The problem of bandwidth can also effectively ensure the effective data transmission efficiency of the service flow.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only These are some of the embodiments described in this application, and other figures can be obtained from those of ordinary skill in the art in view of these drawings.
图1是本发明实施例发送端的统计信息获取方法的流程示意图;1 is a schematic flowchart of a method for acquiring statistics information at a transmitting end according to an embodiment of the present invention;
图2-1是本发明实施例中第一种划分测量周期的示意图;2-1 is a schematic diagram of a first type of measurement period in an embodiment of the present invention;
图2-2是本发明实施例中第二种划分测量周期的示意图;2-2 is a schematic diagram of a second division measurement period in the embodiment of the present invention;
图2-3是本发明实施例中第三种划分测量周期的示意图;2-3 is a schematic diagram of a third divided measurement period in the embodiment of the present invention;
图2-4是本发明实施例中第四种划分测量周期的示意图;2-4 are schematic diagrams showing a fourth division measurement period in the embodiment of the present invention;
图3-1是本发明实施例中第一种携带周期编号的报头的格式示意图;3-1 is a schematic diagram of a format of a header carrying a periodic number in the embodiment of the present invention;
图3-2是本发明实施例中第二种携带周期编号的报头的格式示意图;3-2 is a schematic diagram of a format of a second header carrying a periodic number in the embodiment of the present invention;
图3-3是本发明实施例中第三种携带周期编号的报头的格式示意图;3-3 is a schematic diagram of a format of a third header carrying a periodic number in the embodiment of the present invention;
图4是本发明实施例接收端的统计信息获取方法的流程示意图; 4 is a schematic flowchart of a method for acquiring statistical information at a receiving end according to an embodiment of the present invention;
图5-1是本发明实施例中只存在一个测量周期的示意图;5-1 is a schematic diagram of only one measurement period in the embodiment of the present invention;
图5-2是本发明实施例中只存在一个测量周期的另一种示意图;FIG. 5-2 is another schematic diagram of only one measurement period in the embodiment of the present invention; FIG.
图6是本发明实施例中报文乱序传输的示意图;6 is a schematic diagram of out-of-order transmission of messages in an embodiment of the present invention;
图7是本发明实施例发送端侧的统计信息获取装置的构成示意图;7 is a schematic structural diagram of a statistical information acquiring apparatus on a transmitting end side according to an embodiment of the present invention;
图8是本发明实施例接收端侧的统计信息获取装置的构成示意图;FIG. 8 is a schematic structural diagram of a statistical information acquiring apparatus on a receiving end side according to an embodiment of the present invention; FIG.
图9是本发明实施例统计信息获取装置的硬件构成示意图。FIG. 9 is a schematic diagram showing the hardware configuration of a statistical information acquiring apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和实施方式对本发明实施例作进一步的详细说明。The embodiments of the present invention are further described in detail below with reference to the drawings and embodiments.
在介绍本发明实施例技术方案之前,先对本发明实施例的具体应用场景进行解释说明。Before the technical solutions of the embodiments of the present invention are introduced, the specific application scenarios of the embodiments of the present invention are explained.
在利用被动性测量方法进行网络性能检测时,需要使业务流流经的设备明确划分监测区间的方式,进而才可获取监测区间内的报文统计信息监测这段区间内的业务报文传输情况,获取统计信息并计算网络性能测量结果。When using the passive measurement method to perform network performance detection, it is necessary to make the device through which the service flow flows clearly divide the monitoring interval, and then obtain the packet transmission information in the interval in which the packet statistics information in the monitoring interval is monitored. , get statistics and calculate network performance measurements.
现有技术中,通过向业务流中插入OAM分界报文的方式进行监测区间划分,这样,设备就可将任意两个相邻OAM分界报文之间的业务报文视为一组被测报文,监测该组被测报文的传输情况。如,发送端设备记录发送第i组被测报文时的发送报文数RX[i],接收端设备记录接收第i组被测报文时的接收报文数TX[i],如此,就可计算得到第i组被测报文所在区间的丢包数=RX[i]-TX[i]。In the prior art, the monitoring interval is divided by inserting an OAM demarcation packet into the service flow, so that the device can treat the service packet between any two adjacent OAM demarcation packets as a group of measured reports. The monitoring of the transmission of the measured packets of the group. For example, the transmitting device records the number of transmitted packets RX[i] when the ith group of measured packets are sent, and the receiving device records the number of received packets TX[i] when receiving the measured packets of the ith group. It can be calculated that the number of lost packets in the interval of the i-th packet under test is RX[i]-TX[i].
因为发送端和接收端均是利用相邻的两个OAM分界报文来划分区间,故,若OAM分界报文在传输过程中丢失,就会导致发送端和接收端使用不同的OAM分界报文划分区间,致使二者的监测区间不匹配,导致测量结果出错。Because both the transmitting end and the receiving end use the two adjacent OAM demarcation messages to divide the interval, if the OAM demarcation message is lost during transmission, the transmitting end and the receiving end use different OAM demarcation messages. Dividing the interval, causing the monitoring intervals of the two to not match, resulting in errors in the measurement results.
另外,在这种划分监测区间的方式中,监测区间的大小与插入的OAM分界报文数目成反比,即监测区间越小,需要插入的OAM分界报文就越多,而OAM分界报文本身也会占用一定的带宽,故,随着监测区间的不断变小,OAM分界报文在业务流中占用的带宽就会逐渐变大,导致业务流的有效数据传输效率随之下降。In addition, in the manner of dividing the monitoring interval, the size of the monitoring interval is inversely proportional to the number of inserted OAM demarcation messages, that is, the smaller the monitoring interval, the more OAM demarcation messages need to be inserted, and the OAM demarcation report text body It also occupies a certain amount of bandwidth. Therefore, as the monitoring interval becomes smaller, the bandwidth occupied by OAM demarcation packets in the service flow will gradually become larger, resulting in a decrease in the effective data transmission efficiency of the service flow.
针对上文利用OAM分界报文获取统计信息、计算网络性能测量结果时存在的问题,本发明实施例方案提供了一种新的获取统计信息的方案,可提高 获取统计信息的准确性,进而提高计算网络性能测量结果的准确性。The solution of the embodiment of the present invention provides a new scheme for obtaining statistical information, which can improve the problem that the foregoing information is obtained when the OAM demarcation packet is used to obtain the statistical information and the network performance measurement result is calculated. Obtain the accuracy of statistical information, and thus improve the accuracy of computing network performance measurement results.
本发明实施例方案涉及发送端和接收端两侧,下面先从发送端出发,对本发明实施例获取统计信息的过程进行解释说明。The solution of the embodiment of the present invention relates to the two sides of the sending end and the receiving end, and the following describes the process of obtaining the statistical information in the embodiment of the present invention.
参见图1,示出了本发明实施例发送端的统计信息获取方法的流程示意图,可包括以下步骤:Referring to FIG. 1 , a schematic flowchart of a method for acquiring statistics information at a sending end according to an embodiment of the present invention is shown, which may include the following steps:
步骤101,发送端为至少一个测量周期中的每个测量周期设置一个对应的周期编号,并将所述周期编号添加到对应测量周期里包含的被测报文的报头中。Step 101: The transmitting end sets a corresponding period number for each measurement period in the at least one measurement period, and adds the period number to the header of the tested packet included in the corresponding measurement period.
步骤102,所述发送端向接收端发送携带有所述周期编号的被测报文,并基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。Step 102: The sending end sends, to the receiving end, the measured packet carrying the period number, and obtains, according to the period number, statistical information of the specified measurement period in the at least one measurement period, where the statistical information is used. And calculating a performance measurement result of the network that carries the measured packet.
发送端按照利用本发明实施例方案对所述被测报文进行处理,使发送端、接收端利用处理后的所述被测报文自动获取统计信息,以备计算性能测量结果时使用。需要说明的是,本发明实施例中的所述被测报文可以是数据报文,也可以是控制管理报文。多个被测报文形成一个业务流。本发明实施例可不对被测报文的具体类型做限定。The sending end processes the measured packet according to the solution of the embodiment of the present invention, so that the sending end and the receiving end automatically obtain the statistical information by using the processed measured packet, so as to be used when calculating the performance measurement result. It should be noted that the measured packet in the embodiment of the present invention may be a data packet or a control management packet. Multiple tested messages form a service flow. The embodiment of the present invention may not limit the specific type of the tested message.
具体地,本发明实施例的处理过程主要涉及以下几点:设置周期编号、划分测量周期、添加周期编号、监测统计信息,下面一一进行解释说明。Specifically, the processing procedure of the embodiment of the present invention mainly involves the following points: setting a cycle number, dividing a measurement period, adding a cycle number, and monitoring statistical information, which are explained below.
1.按照预设方式设置周期编号。1. Set the cycle number according to the preset method.
作为一种示例,预设方式可体现为单调递增,且递增步长为1,如此,确定初始周期编号后,就可在其基础上顺序确定出其它周期编号,如,初始周期编号为P1,则设置出的周期编号可体现为:P1、P2、P3、……。此处,需要说明的是,设置周期编号的预设方式、初始周期编号的取值、设置出的总的周期编号个数等方面,均可根据实际应用需求而定,本发明实施例对此并不做具体限定。As an example, the preset mode may be monotonically increasing, and the increment step is 1. Therefore, after determining the initial cycle number, other cycle numbers may be sequentially determined on the basis of the initial cycle number, for example, the initial cycle number is P1. Then set the cycle number can be expressed as: P1, P2, P3, .... Here, it should be noted that the preset manner of setting the cycle number, the value of the initial cycle number, and the total number of cycle numbers that are set may be determined according to actual application requirements, and this embodiment of the present invention It is not specifically limited.
2.划分测量周期。2. Divide the measurement period.
在发送端按照本发明实施例方案获取统计信息时,可根据周期参数从业务流中划分所述至少一个测量周期(可以理解的,测量周期即测量区间)。其中,周期参数是用于划分测量周期的参数,体现为指定时长或指定被测报文数(具体可指测量周期里携带了周期编号的被测报文的数目)。另外,周期参 数可预配置在发送端中,或者也可在需要时由外部输入,本发明实施例对此可不做具体限定。When the sending end obtains the statistical information according to the solution of the embodiment of the present invention, the at least one measuring period may be divided from the service flow according to the periodic parameter (it is understandable that the measuring period is the measuring interval). The period parameter is a parameter used to divide the measurement period, and is expressed as a specified duration or a specified number of packets to be measured (specifically, the number of packets to be measured carrying the cycle number in the measurement period). In addition, the cycle parameter The number may be pre-configured in the transmitting end, or may be input from the outside when needed. This embodiment of the present invention may not specifically limit this.
作为一种示例,周期参数可由外部测量人员输入至本发送端,如,测量人员通过输入命令行的方式使发送端获得周期参数;或者,周期参数还可由外部控制设备输入至本发送端,具体地,控制设备可以是SDN(软件定义网络,Software Defined Network)中的集中控制器,也可以是网管等设备,或者控制设备还可是一台专用设备,本发明实施例对此亦可不做具体限定。As an example, the periodic parameter may be input to the transmitting end by an external measuring personnel. For example, the measuring personnel may obtain the periodic parameter by inputting the command line; or the periodic parameter may also be input to the transmitting end by the external control device, specifically The control device may be a centralized controller in the SDN (Software Defined Network), or may be a device such as a network management device, or the control device may be a dedicated device, which may not be specifically limited in this embodiment of the present invention. .
下面以根据外部输入的周期参数划分测量周期为例,对本发明实施例的周期划分方式进行解释说明。The following describes the cycle division mode of the embodiment of the present invention by taking the measurement cycle according to the cycle parameter of the external input as an example.
方式一,发送端接收到周期参数后,即开始对流经本发送端的业务流进行处理,具体体现为:将设置好的周期编号添加到业务流的报文中。以上文所举周期编号为例,发送端被触发后(作为一种示例,发送端可被外部输入的周期参数所触发,或者还可被外部输入的其它参数或指令所触发,其中,外部可体现为外部测量人员或外部设备,本发明实施例对此可不做具体限定),开始将初始周期编号P1添加到正在传输的报文的报头,并判断当前是否满足周期参数的要求(下文将结合周期参数的不同体现对此进行解释说明,此处暂不做说明),如果满足,则说明完成了周期编号P1的添加过程,可以调用下一周期编号P2,将P2添加到此时传输的报文的报头,并进行周期参数的判断,如此过程循环往复,直至完成所有设置好的周期编号的添加过程,或被控制执行停止添加过程为止。In the first method, after receiving the periodic parameters, the transmitting end starts to process the service flow that flows through the sending end, which is specifically: adding the set period number to the packet of the service flow. The cycle number mentioned above is taken as an example. After the sender is triggered (as an example, the sender can be triggered by a period parameter input externally, or can be triggered by other parameters or instructions input externally, wherein the external can be The embodiment of the present invention is not limited to the external measurement personnel or the external device. The initial cycle number P1 is added to the header of the message being transmitted, and the current requirement of the periodic parameter is determined (hereinafter, it will be combined). The different expressions of the cycle parameters are explained here, and will not be explained here. If it is satisfied, the process of adding the cycle number P1 is completed, and the next cycle number P2 can be called, and P2 is added to the report transmitted at this time. The header of the text, and the judgment of the periodic parameters, the process loops back and forth until the completion of the addition process of all the set cycle numbers is completed, or the control execution stops the addition process.
由上述添加周期编号的过程可知,每完成一种周期编号的添加,即相当于完成了一个测量周期的划分,对此可以理解为:所有携带相同周期编号的被测报文被划分到一个测量周期。如上述示例中,所有携带P1的被测报文归属于一个测量周期,为了方便理解,可将其定义为测量周期T1;进一步所有携带P2的被测报文归属于测量周期T2,以此类推,就可根据周期参数从业务流中划分出至少一个测量周期,此处不再赘述。According to the process of adding the cycle number, the addition of a cycle number is equivalent to completing the division of one measurement cycle. It can be understood that all the packets with the same cycle number are divided into one measurement. cycle. As shown in the above example, all the measured packets carrying P1 belong to one measurement period. For the sake of easy understanding, it can be defined as the measurement period T1; further, all the measured packets carrying P2 belong to the measurement period T2, and so on. At least one measurement period can be divided from the service flow according to the periodic parameter, and details are not described herein again.
如果周期参数体现为指定时长,如,周期参数为1s,则上文判断当前是否满足周期参数的要求,可以理解为:If the period parameter is expressed as a specified duration, for example, if the period parameter is 1 s, then the above judgment determines whether the current period parameter is met, which can be understood as:
针对每个周期编号来说,自发送端第一次向被测报文的报头中添加该周期编号开始,进行计时,并在每完成一个被测报文的添加后进行一次判断, 判断此时是否计时达到指定时长。即,自开始计时到当前时刻为止,中间是否已间隔指定时长,如果是,则判定当前满足周期参数的要求,可结束对当前周期编号的添加过程;如果否,则判定当前还未满足周期参数的要求,可继续进行当前周期编号添加及添加时长判断等过程,直至满足周期参数的要求为止。For each period number, the first time from the sending end to the header of the measured packet, the period number is added, the timing is performed, and a judgment is made after each addition of a measured message is completed. Determine whether the time is up to the specified length of time. That is, whether the interval has been specified in the middle from the start of the time to the current time, and if so, it is determined that the current period parameter is satisfied, and the process of adding the current cycle number can be ended; if not, it is determined that the cycle parameter has not been met yet. The requirements can continue with the current cycle number addition and the addition of the duration judgment process until the requirements of the cycle parameters are met.
需要说明的是,进行添加时长判断时,可如上文所做介绍每完成一个被测报文的添加即进行一次判断;或者,还可按照其它固定周期、可变周期以采样的形式进行判断,如,计时前期,以较大间隔(如,每完成5个报文的添加,或每间隔1/10s)进行判断,且随着添加过程的进行,可不断调整缩小判断间隔。具体地,判断时机可由实际需求而定,本发明实施例可不做具体限定。It should be noted that when the judgment of the addition duration is performed, the judgment may be made every time a test message is added as described above; or, the judgment may be performed in the form of sampling according to other fixed periods and variable periods. For example, in the early stage of the timer, the judgment is made at a large interval (for example, every 5 message additions are completed, or every 1/10 s intervals), and as the addition process progresses, the reduction judgment interval can be continuously adjusted. Specifically, the timing of the determination may be determined by actual requirements, and the embodiment of the present invention may not be specifically limited.
如果周期参数体现为指定被测报文数,如,周期参数为50个被测报文,则上文判断当前是否满足周期参数的要求,可以理解为:If the period parameter is specified as the number of packets to be measured, for example, if the period parameter is 50 packets, the above judgment determines whether the current period parameter is met.
针对每种周期编号来说,自发送端第一次向被测报文的报头中添加该周期编号开始,进行计数,并在每完成一个被测报文的添加后进行一次判断,判断此时是否计数达到指定被测报文数,如果是,则判定当前满足周期参数的要求,可以结束对当前周期参数的添加过程;如果否,则判定当前还未满足周期参数的要求,可继续进行当前周期编号添加及添加次数判断等过程,直至满足周期参数的要求为止。For each cycle number, the first time from the sender to the header of the measured packet, the cycle number is added to start counting, and each time a test packet is added, a judgment is made, and the judgment is made. Whether the count reaches the specified number of measured packets, and if so, it determines that the current period parameter is met, and may end the process of adding the current cycle parameter; if not, it determines that the current cycle parameter has not been met, and can continue the current process. The process of adding the cycle number and judging the number of additions until the requirements of the cycle parameters are met.
方式二,发送端接收到周期参数后,可先利用周期参数从流经本发送端的业务流中划分出至少一个测量周期,然后再根据测量周期与周期编号之间的对应关系,向各测量周期里包含的被测报文中添加对应的周期编号。In the second mode, after receiving the periodic parameter, the transmitting end may first use the periodic parameter to divide at least one measurement period from the service flow flowing through the transmitting end, and then according to the correspondence between the measurement period and the period number, to each measurement period. Add the corresponding cycle number to the measured message included in the test packet.
若周期参数体现为指定时长,如周期参数为1s,发送端则可利用该周期参数,将业务流中第一个1s对应的报文划分到第一测量周期,将第二个1s对应的报文划分到第二测量周期,以此类推,此处不再赘述。仍以上文所举周期编号为例,发送端可将P1添加到第一测量周期里包含的被测报文的报头中,将P2添加到第二测量周期里包含的被测报文的报头中,如此过程,直至完成所有设置好的周期编号的添加过程,或被控制执行停止添加过程为止。If the period parameter is in the specified duration, if the period parameter is 1 s, the sender can use the period parameter to divide the packet corresponding to the first 1s in the service flow into the first measurement period, and the second 1s corresponding report. The text is divided into the second measurement period, and so on, and will not be described here. For example, in the above example, the sending end may add P1 to the header of the tested packet included in the first measurement period, and add P2 to the header of the tested packet included in the second measurement period. , such a process, until the addition process of all the set cycle numbers is completed, or is controlled to stop the addition process.
若周期参数体现为指定被测报文数,如周期参数为50个被测报文,发送端则可利用该周期参数,将要被添加周期编号的第1个报文至第50个报文之间的报文划分到第一测量周期,将要被添加周期编号的第51个报文至第100 个报文之间的报文划分到第二测量周期,以此类推,此处不再赘述。仍以上文所举周期编号为例,发送端可将P1添加到第一测量周期里包含的被测报文的报头中,将P2添加到第二测量周期里包含的被测报文的报头中,如此过程,直至完成所有设置好的周期编号的添加过程,或被控制执行停止添加过程为止。If the period parameter is specified as the number of packets to be measured, if the period parameter is 50 packets, the sender can use the period parameter to add the first message of the cycle number to the 50th message. The message between the two is divided into the first measurement cycle, and the 51st message to be added with the cycle number is sent to the 100th The packets between the packets are divided into the second measurement period, and so on, and are not described here. For example, in the above example, the sending end may add P1 to the header of the tested packet included in the first measurement period, and add P2 to the header of the tested packet included in the second measurement period. , such a process, until the addition process of all the set cycle numbers is completed, or is controlled to stop the addition process.
另外,结合上文利用周期参数划分测量周期的过程,本发明实施例还可做如下两点说明:In addition, in combination with the process of dividing the measurement period by using the periodic parameters, the embodiment of the present invention can also be described as follows:
(1)测量周期可体现为:连续周期、非连续周期。(1) The measurement period can be expressed as: continuous period, discontinuous period.
针对从业务流中划分出的测量周期来说,其可体现为图2-1所示的连续周期,即发送端被触发后,就自动对本发送端当前传输的业务流进行不间断的周期划分;或者,还可体现为图2-2所示的非连续周期,即划分出的各测量周期之间可能间隔几个报文或间隔一段时间。For the measurement period divided from the service flow, it can be embodied as the continuous period shown in Figure 2-1, that is, after the sender is triggered, it automatically performs the uninterrupted period division of the traffic stream currently transmitted by the sender. Or, it can be embodied as a non-continuous period as shown in Figure 2-2, that is, several packets or intervals may be separated between each divided measurement period.
针对划分出的非连续测量周期,需要说明的是,在实现时,可预先在发送端配置周期间隔(如,间隔预设个数报文、或间隔预设时长等,本发明实施例对此可不做具体限定),由发送端自动根据配置进行非连续测量周期的设置。或者,发送端还可根据外部输入的控制信息进行非连续测量周期的设置。如,控制信息为周期间隔,则发送端接收到控制信息后即可自动进行规律的非连续测量周期设置;或者,控制信息为测量周期开始指令,则发送端可据此进行规律的、非规律的非连续测量周期设置,也就是说,发送端一旦接收到开始指令,就利用周期参数划分出一个测量周期,若外部规律的向发送端输入开始指令,则发送端据此设置出的非连续测量周期即是规律的,若外部非规律的向发送端输入开始指令,则发送端据此设置出的非连续测量周期即是非规律的。For the non-continuous measurement period that is divided, it should be noted that, in the implementation, the periodic interval may be configured in advance on the sending end (for example, the preset preset number of packets, or the preset preset duration, etc.) It may not be specifically limited), and the transmitting end automatically sets the discontinuous measurement period according to the configuration. Alternatively, the transmitting end may also set the discontinuous measurement period according to the externally input control information. For example, if the control information is a periodic interval, the transmitting end can automatically perform regular non-continuous measurement period setting after receiving the control information; or, if the control information is a measurement period start instruction, the transmitting end can perform regular and irregular according to the control information. The non-continuous measurement period setting, that is to say, once the transmitting end receives the start command, it uses the period parameter to divide a measurement period. If the external law inputs the start instruction to the transmitting end, the transmitting end sets the discontinuity accordingly. The measurement period is regular. If an external irregular input of a start command is made to the transmitting end, the discontinuous measurement period set by the transmitting end is irregular.
作为一种示例,图2-2表示的即是各测量周期之间规律的间隔2个报文。As an example, FIG. 2-2 shows a regular interval of two messages between measurement periods.
(2)添加周期编号的被测报文可体现为:测量周期包含的所有被测报文、测量周期包含的指定被测报文。(2) The measured packet with the added period number can be embodied as: all the measured packets included in the measurement period and the specified measured packet included in the measurement period.
如上文所做介绍,从业务流中划分出的测量周期可以是连续的,也可以是非连续的,且不论是哪种情况,发送端均可通过监测周期编号的方式自动记录指定周期内的报文统计信息。As described above, the measurement period divided from the service flow can be continuous or non-continuous, and in either case, the sender can automatically record the report within the specified period by monitoring the cycle number. Statistical information.
具体地,在划分出测量周期后,针对每个测量周期包含的被测报文进行周期编号添加时,还可细分为两种具体情况。下面以连续周期为例,对这两 种具体情况进行解释说明。Specifically, after the measurement period is divided, when the period number included in each measurement period is added, the period number may be further divided into two specific cases. Let's take the continuous cycle as an example. Explain the specific circumstances.
情况一,参见图2-1所示可知,测量周期包含的所有被测报文均携带有本测量周期对应的周期编号,如图所示,测量周期T1包含的50个报文全部携带周期编号P1,这样,发送端便可据此精准统计T1对应的每个报文的统计信息,进而据此准确计算出性能测量结果。In the first case, as shown in Figure 2-1, all the measured packets included in the measurement period carry the cycle number corresponding to the measurement period. As shown in the figure, all the 50 packets included in the measurement period T1 carry the cycle number. P1, in this way, the transmitting end can accurately count the statistical information of each message corresponding to T1, and then accurately calculate the performance measurement result.
情况二,参见图2-3、2-4所示可知,并不是测量周期包含的所有被测报文都要携带周期编号,只有根据预设规则选取出的指定被测报文才会携带周期编号。具体地,预设规则可体现为:位于指定位置(规则或非规则确定出的指定位置均可)、按照一定间隔(以时间为间隔、以报文个数为间隔等均可)、按照奇偶间隔等规则,本发明实施例对此可不做具体限定。In the second case, as shown in Figure 2-3 and Figure 2-4, it is not necessary to carry the period number of all the packets to be tested in the measurement period. Only the specified packet to be measured according to the preset rule will carry the period number. Specifically, the preset rule may be embodied as: at a specified position (a specified position determined by a rule or an irregularity), at a certain interval (interval at intervals of time, number of packets, etc.), according to parity The rules of the present invention are not specifically limited in this embodiment of the present invention.
另外,结合周期参数的具体表现形式,还需对本发明实施例向指定被测报文添加周期编号的情况进行解释说明。如图2-3、2-4所示,均采用相同的预设规则确定指定被测报文,但结合周期参数后二者又存在以下不同:In addition, in conjunction with the specific expression of the periodic parameter, the case where the cycle number is added to the specified test packet is also explained in the embodiment of the present invention. As shown in Figure 2-3 and Figure 2-4, the same preset rule is used to determine the specified packet to be tested. However, after combining the periodic parameters, the following differences exist:
图2-3中依据指定被测报文数来划分测量周期,与图2-1相比较可知,二者在同一测量周期内包含的被测报文数有所不同,但添加有周期编号的被测报文数相同。如图中所示,二者均要使50个被测报文携带周期编号,但图2-1中每个测量周期里包含50个被测报文,而图2-3中每个测量周期里包含100个被测报文。Figure 2-3 divides the measurement period according to the specified number of packets to be measured. Compared with Figure 2-1, the number of packets to be tested included in the same measurement period is different, but the number is added. The number of packets tested is the same. As shown in the figure, both of them must have 50 measured packets carrying cycle numbers, but each measurement cycle in Figure 2-1 contains 50 measured packets, and each measurement cycle in Figure 2-3 Contains 100 tested messages.
图2-4中依据指定时长来划分测量周期,与图2-1相比较可知,二者在同一测量周期里包含的被测报文数相同,但添加有周期编号的被测报文数却有所不同。如图中所示,二者每个测量周期里均包含50个被测报文,但图2-1中每个测量周期里有50个携带周期编号的被测报文,而图2-4中每个测量周期里则有25个携带周期编号的被测报文。In Figure 2-4, the measurement period is divided according to the specified duration. Compared with Figure 2-1, the number of packets to be tested included in the same measurement period is the same, but the number of packets with periodic number is added. It is different. As shown in the figure, each of the two measurement cycles contains 50 measured packets, but in each measurement cycle in Figure 2-1, there are 50 measured packets carrying the cycle number, and Figure 2-4 In each measurement cycle, there are 25 packets with the cycle number.
另外,需要说明的是,对于非连续测量周期来说,在向各测量周期里包含的被测报文中添加周期编号时,同样存在上述两种情况,具体可参见上文所做介绍,此处不再赘述。In addition, it should be noted that, for the non-continuous measurement period, when the cycle number is added to the measured message included in each measurement cycle, the above two cases also exist. For details, refer to the above description. Let me repeat.
3.在被测报文的报头中添加周期编号。3. Add a cycle number to the header of the packet under test.
结合设备支持的协议,本发明实施例提供了三种使报头携带周期编号的方式,下面一一进行解释说明。In conjunction with the protocol supported by the device, the embodiment of the present invention provides three ways for the header to carry the cycle number, which are explained below.
方式一,如果设备支持IPv4协议,则可将对应的周期编号(Period Number)添加到报头的Option选项字段。作为一种示例,可参见图3-1所示的携带周 期编号的报头的格式示意图。In the first mode, if the device supports the IPv4 protocol, the corresponding period number (Period Number) can be added to the Option field of the header. As an example, see the carrying week shown in Figure 3-1. Schematic diagram of the header of the period number.
方式二,如果设备支持IPv6协议,则可将对应的周期编号添加到报头的Hop-by-hop逐跳选项扩展头(HbH Header)。作为一种示例,可参见图3-2所示的携带周期编号的报头的格式示意图。Manner 2: If the device supports the IPv6 protocol, the corresponding cycle number can be added to the Hop-by-hop hop-by-hop option header (HbH Header) of the header. As an example, refer to the format diagram of the header carrying the cycle number shown in Figure 3-2.
方式三,如果设备支持IPv6协议,则可将对应的周期编号添加到报头的Destination目的地选项扩展头(Dest Header)。作为一种示例,可参见图3-3所示的携带周期编号的报头的格式示意图。In the third mode, if the device supports the IPv6 protocol, the corresponding cycle number can be added to the Destination destination option header (Dest Header) of the header. As an example, refer to the format diagram of the header carrying the cycle number shown in Figure 3-3.
上述三种方式均可使被测报文(测量周期里包含的所有被测报头,或测量周期里包含的指定被测报文)携带对应的周期编号,相较之下,利用方式一、二添加的周期编号可实现端到端检测、分段检测;利用方式三添加的周期编号可实现端到端检测,且检测过程中无需中间节点的支持,更易于部署。The above three methods can make the measured message (all the measured headers included in the measurement period, or the specified measured packets included in the measurement period) carry the corresponding cycle number, in contrast, using the first and second modes. The added cycle number can realize end-to-end detection and segmentation detection; the cycle number added by mode 3 can realize end-to-end detection, and the detection process does not need the support of the intermediate node, and is easier to deploy.
所谓端到端检测可以理解为,作为源节点的发送端与作为目的节点的接收端之间的网络性能检测,即,根据源节点监测得到的统计信息、目的节点监测得到的统计信息,计算得到二者之间网络性能的测量结果。The so-called end-to-end detection can be understood as the network performance detection between the transmitting end of the source node and the receiving end as the destination node, that is, the statistical information obtained by the source node monitoring and the statistical information monitored by the destination node are calculated. Measurement of network performance between the two.
与此同时,考虑到源节点发送的业务流,可能需经中间节点转发才被传送到目的节点,故,还可利用源节点与中间节点、上游中间节点与下游中间节点(上游、下游是根据中间节点在传输路径方向上的位置而定)、中间节点与目的节点等组合,进行网络性能的分段检测。At the same time, considering the traffic flow sent by the source node, it may need to be forwarded by the intermediate node to be transmitted to the destination node. Therefore, the source node and the intermediate node, the upstream intermediate node, and the downstream intermediate node may also be utilized (upstream and downstream are based on The intermediate node is combined with the destination node in the direction of the transmission path, and the segmentation detection of the network performance is performed.
也即,源节点可与任一中间节点形成一个检测组合,源节点监测业务流得到发端统计信息,中间节点监测业务流得到接端统计信息,进而计算得到该检测组合对应的网络分段的性能测量结果。或者,上游中间节点与下游中间节点形成的检测组合,业务流经由上游中间节点转发至下游中间节点的过程中,上游中间节点即可监测业务流得到发端统计信息,下游中间节点即可监测业务流得到收端统计信息,进而计算得到该检测组合对应的网络分段的性能测量结果。或者,任一中间节点与目的节点形成的检测组合,业务流经由中间节点转发至目的节点的过程中,中间节点可监测业务流得到发端统计信息,目的节点监测业务流得到收端统计信息,进而计算得到该检测组合对应的网络分段的性能测量结果。That is, the source node can form a detection combination with any intermediate node, the source node monitors the service flow to obtain the originating statistical information, and the intermediate node monitors the service flow to obtain the terminal statistical information, thereby calculating the performance of the network segment corresponding to the detection combination. Measurement results. Alternatively, the detection combination formed by the upstream intermediate node and the downstream intermediate node, the service flow is forwarded to the downstream intermediate node through the upstream intermediate node, and the upstream intermediate node can monitor the service flow to obtain the originating statistical information, and the downstream intermediate node can monitor the service flow. Obtaining the statistics of the receiving end, and then calculating the performance measurement result of the network segment corresponding to the detection combination. Alternatively, the detection combination formed by any intermediate node and the destination node, the service flow is forwarded to the destination node through the intermediate node, the intermediate node can monitor the service flow to obtain the originating statistical information, and the destination node monitors the service flow to obtain the receiving end statistical information, and further The performance measurement result of the network segment corresponding to the detection combination is calculated.
综上,源节点、目的节点、中间节点均可根据报文中携带的周期编号,自动监测业务流传输情况得到统计信息,并在此基础上计算网络性能测量结果。需要说明的是,图3-1~3-3所示报头中,长度Length为6字节,周期编 号Period Number占用4字节,其仅是本发明进行方案介绍时的一种示例,具体的格式设定可根据实际情况而定,本发明实施例对此可不做具体限定。另外,上文所举示例中,均是通过IP层来携带周期编号这一信息,然而在具体实现时,还可采用其它层,如MAC层等来携带周期编号,本发明实施例对此亦可不做具体限定。In summary, the source node, the destination node, and the intermediate node can automatically monitor the service flow transmission status according to the cycle number carried in the packet to obtain statistical information, and calculate the network performance measurement result on this basis. It should be noted that, in the headers shown in FIG. 3-1 to 3-3, the length Length is 6 bytes, and the period is programmed. The number of the Period number is 4 bytes, which is only an example of the present invention. The specific format setting may be determined according to the actual situation, and the embodiment of the present invention may not specifically limit this. In addition, in the above examples, the information of the cycle number is carried by the IP layer. However, in a specific implementation, other layers, such as a MAC layer, may be used to carry the cycle number. Can not be specifically limited.
4.监测业务流得到统计信息。4. Monitor business traffic for statistical information.
经上述三个处理动作后,由发送端传送至接收端的业务流中就携带了周期编号这一信息,如此,发送端、接收端就可基于周期编号获得指定测量周期的统计信息,进而利用统计信息计算网络的性能测量结果。After the above three processing actions, the service stream transmitted by the transmitting end to the receiving end carries the information of the cycle number, so that the transmitting end and the receiving end can obtain the statistical information of the specified measurement period based on the cycle number, and then use the statistics. The performance measurement results of the information computing network.
需要说明的是,为了提高本发明实施例获取统计信息的灵活性,发送端、接收端可获取每个测量周期的统计信息,或者还可根据需要获取指定测量周期的统计信息,本发明实施例对此可不做具体限定,只要发送端和接收端预先做好协商即可。It should be noted that, in order to improve the flexibility of obtaining the statistical information in the embodiment of the present invention, the sending end and the receiving end may obtain the statistical information of each measurement period, or may obtain the statistical information of the specified measurement period as needed. This may not be specifically limited, as long as the sender and receiver are negotiating in advance.
作为一种示例,发送端获取指定测量周期的统计信息,可以理解为:发送端获取被测报文携带的周期编号,若周期编号对应的是指定测量周期,则按本发明实施例方案获取该指定测量周期的统计信息;而一旦发现周期编号对应的是非指定测量周期,则停止获取该非指定测量周期的统计信息。As an example, the sending end obtains the statistics information of the specified measurement period, which can be understood as: the sending end acquires the period number carried in the measured packet, and if the period number corresponds to the specified measurement period, the solution obtains the method according to the embodiment of the present invention. The statistical information of the measurement period is specified; and if the cycle number is found to be a non-designated measurement period, the acquisition of the statistical information of the non-designated measurement period is stopped.
另外,需要说明的是,网络性能测量可体现为不同的测量内容,针对不同测量内容需要获取的统计信息也有所不同,下面结合测量内容对获取统计信息的过程进行解释说明。In addition, it should be noted that the network performance measurement can be embodied as different measurement contents, and the statistical information that needs to be acquired for different measurement contents is also different. The following describes the process of obtaining the statistical information by combining the measurement contents.
(1)如果测量内容是丢包数,则对应的统计信息就是发送报文数,发送端可通过统计指定测量周期里携带相同周期编号的被测报文的数目,得到统计信息。(1) If the measurement content is the number of packet loss, the corresponding statistical information is the number of packets sent. The sender can obtain the statistics by counting the number of packets with the same period number in the specified measurement period.
(a)如果是源节点统计被测报文数,则可通过以下方式实现:(a) If the source node counts the number of packets to be measured, it can be implemented as follows:
方式一,如果周期参数是指定时长,则在源节点监测到某种周期编号被第一次传输时,启动一个计时器,将此时作为该周期编号对应的测量周期的测量起点(测量起点可以理解为测量周期所表示的测量区间的起点,可体现为时间或报文所在位置,本发明实施例对此可不做具体限定),同时,将计时到达指定时长(即上文用于确定测量周期的指定时长)时作为该测量周期的测量终点(测量终点可以理解为测量周期所表示的测量区间的终点,可体现为时间或报文所在位置,本发明实施例对此可不做具体限定,只要与测量起 点相对应即可),统计这段时间内发送的携带有周期编号的被测报文数,作为本测量周期的发送报文数。In the first mode, if the period parameter is the specified duration, when the source node detects that a certain period number is transmitted for the first time, a timer is started, and the measurement start point corresponding to the period of the period is used as the measurement starting point (the measurement starting point can be It is understood that the starting point of the measurement interval represented by the measurement period may be expressed as the time or the location of the message, which may not be specifically limited in the embodiment of the present invention. At the same time, the timing is reached for a specified duration (ie, the above is used to determine the measurement period) The specified end of the measurement period is the measurement end point of the measurement period (the measurement end point can be understood as the end point of the measurement interval indicated by the measurement period, which can be embodied as the time or the location of the message, which may be specifically limited in the embodiment of the present invention, as long as From measurement The corresponding number of points can be used to count the number of packets with the number of packets sent during the period as the number of packets sent during the measurement period.
如,当前统计的是周期编号P2对应的测量周期T2,且指定时长为1s,则,在源节点向外发送第一个携带P2的被测报文时开始计时,同时还可启动计数器来记录发送报文数。以图2-1所示情况为例,即在源节点发送被测报文51时开始计时并计数,且每发送一个携带P2的被测报文,计数器就加1,如此过程,直至计时达到1s时停止计时计数,并将计数得到的报文数作为测量周期T2对应的发送报文数,实现了本发明实施例基于周期编号获取统计信息的过程。For example, the current measurement period is the measurement period T2 corresponding to the period number P2, and the specified duration is 1 s. Then, when the source node sends the first measured packet carrying the P2, the timing starts, and the counter can also be started to record. Number of messages sent. Take the situation shown in Figure 2-1 as an example. When the source node sends the measured packet 51, it starts counting and counting. Each time a packet with P2 is sent, the counter is incremented by one. The timer count is stopped at 1 s, and the number of packets obtained by counting is used as the number of transmission packets corresponding to the measurement period T2, and the process of acquiring statistical information based on the cycle number in the embodiment of the present invention is implemented.
方式二,如果周期参数是指定被测报文数,因为源节点向外发送业务流时不会出现乱序情况,因此,在监测到某种周期编号被第一次传输时,可仅启动一个计数器,由计数器根据指定被测报文数来识别测量终点(仍以上述发送携带P2被测报文的示例为例,发送端每发送一个携带P2的被测报文,计数器就加1,如此过程,直至计数达到指定被测报文数时停止计数,将此时确定为测量周期T2的测量终点),进而获取该周期编号对应的测量周期的发送报文数,如此,亦实现了本发明实施例基于周期编号获取统计信息的过程。Manner 2: If the period parameter specifies the number of packets to be measured, the source node does not have an out-of-order condition when it sends out the service flow. Therefore, when it is detected that a certain period number is transmitted for the first time, only one can be started. The counter is used by the counter to identify the measurement end point according to the number of the specified packets to be measured. (For example, the example of sending the P2 test packet is still sent by the counter, and the counter adds 1 for each sent packet carrying the P2. The process stops counting until the count reaches the specified number of measured packets, and determines the measurement end of the measurement period T2 at this time, and then obtains the number of transmission packets of the measurement period corresponding to the cycle number, thus implementing the present invention. An embodiment is a process of obtaining statistical information based on a cycle number.
(b)如果是上游中间节点统计被测报文数,则可通过以下方式实现:(b) If the upstream intermediate node counts the number of packets to be measured, it can be implemented as follows:
方式一,与源节点统计被测报文数的方式一相类似,在上游中间节点监测到某种周期编号被第一次传输时,开始计时并计数,并将计时到达指定时长时对应的计数结果,作为该周期编号对应的测量周期的发送报文数,此处不再举例说明。The first method is similar to the manner in which the source node counts the number of the measured packets. When the upstream intermediate node detects that a certain period number is transmitted for the first time, it starts counting and counting, and counts the corresponding count when the timer reaches the specified duration. As a result, the number of transmission packets as the measurement period corresponding to the period number is not illustrated here.
方式二,上游中间节点监测到某种周期编号被第一次传输时,开始计数,并将此时作为该周期编号对应的测量周期的测量起点;对应地,在上游中间节点监测到周期编号发生变化时,停止计数,并将此时作为该测量周期的测量终点,将这段时间的计数结果作为该测量周期的发送报文数。In the second mode, when the upstream intermediate node detects that a certain period number is transmitted for the first time, it starts counting, and takes this time as the measurement starting point of the measurement period corresponding to the period number; correspondingly, the period number is detected in the upstream intermediate node. When the change is made, the counting is stopped, and the current time is taken as the measurement end point of the measurement period, and the counting result of the period is used as the number of transmission packets of the measurement period.
如,当前统计的是周期编号P2对应的测量周期T2,则,在上游中间节点向外发送第一个携带P2的被测报文时开始计数,在上游中间节点向外发送第一个携带P3的被测报文时停止计数,如此就可统计得到测量周期T2对应的发送报文数。以图2-1所示情况为例,在上游中间节点发送被测报文51时,开始计数;对应的,在上游中间节点发送被测报文101时,停止计数,并将发送上一个报文(即被测报文100)时的计数结果作为测量周期T2对应的发 送报文数。与此同时,还需启动另一个计数器,对监测到的周期编号P3对应的测量周期T3进行计数(即,将被测报文101作为测量周期T3的测量起点),以得到测量周期T3对应的发送报文数。For example, the current measurement is the measurement period T2 corresponding to the period number P2. Then, when the upstream intermediate node sends the first packet with the P2 to be sent out, the first intermediate node sends the first P3. When the measured message is stopped, the counting is stopped, so that the number of transmitted packets corresponding to the measurement period T2 can be counted. Taking the situation shown in Figure 2-1 as an example, when the upstream intermediate node sends the measured packet 51, it starts counting; correspondingly, when the upstream intermediate node sends the measured packet 101, it stops counting and sends a previous report. The count result when the text (ie, the measured message 100) is used as the corresponding measurement period T2 The number of messages sent. At the same time, another counter needs to be started to count the measurement period T3 corresponding to the monitored period number P3 (ie, the measured message 101 is used as the measurement starting point of the measurement period T3) to obtain the measurement period T3. Number of messages sent.
需要说明的是,计数器的个数可与测量周期的个数相同,即,一个计数器用于记录一个测量周期对应的发送报文数;或者,计数器的个数也可少于测量周期的个数,即,通过循环使用计数器的方式记录各周期对应的发送报文数。如,从业务流中划分出5个测量周期,且配置有3个计数器,则,计数器1可用于对携带P1的测量周期T1、携带P4的测量周期T4进行计数;计数器2可用于对携带P2的测量周期T2、携带P5的测量周期T5进行计数;计数器3可用于对携带P3的测量周期T3进行计数。It should be noted that the number of counters may be the same as the number of measurement periods, that is, one counter is used to record the number of transmitted packets corresponding to one measurement period; or the number of counters may be less than the number of measurement periods. That is, the number of transmitted packets corresponding to each cycle is recorded by cyclically using the counter. For example, if five measurement periods are divided from the service flow and three counters are configured, the counter 1 can be used to count the measurement period T1 carrying P1 and the measurement period T4 carrying P4; the counter 2 can be used to carry P2 The measurement period T2, the measurement period T5 carrying P5 is counted, and the counter 3 can be used to count the measurement period T3 carrying P3.
(2)如果测量内容为时延,则对应的统计信息就是时间戳,发送端可通过记录指定测量周期里的指定被测报文的发送时间戳,得到统计信息。其中,指定被测报文为位于指定位置的携带周期编号的被测报文。(2) If the measurement content is a delay, the corresponding statistical information is a timestamp, and the sender can obtain the statistical information by recording the transmission timestamp of the specified test packet in the specified measurement period. The specified packet is the measured packet with the carrying period number at the specified location.
源节点或上游中间节点在确定好某个测量周期的测量起点后,即可根据预先设定,记录指定被测报文的发送时间戳,并将其作为该测量周期对应的报文发送时间。After determining the measurement starting point of a certain measurement period, the source node or the upstream intermediate node can record the transmission timestamp of the specified packet according to the preset setting, and use it as the packet sending time corresponding to the measurement period.
作为一种优选方案,可将测量起点作为指定位置,记录在测量起点发送报文时的时间戳,以图2-1中示出的测量周期T2为例,记录的就是发送被测报文51的时间戳;或者,还可将测量起点与测量终点之间的任意位置作为指定位置,进行时间戳记录,本发明实施例对此可不做具体限定,只要使各端预先协商好指定位置,并按照协商进行时间戳记录即可。As a preferred solution, the measurement starting point is used as the designated position, and the timestamp when the packet is sent at the measurement starting point is recorded. Taking the measurement period T2 shown in FIG. 2-1 as an example, the recorded packet is sent 51. The timestamp of the time interval; or the arbitrary position between the measurement start point and the measurement end point may be used as the designated position, and the time stamp is recorded, which may be specifically limited in this embodiment of the present invention, as long as each end pre-negotiates the designated position, and Time stamping can be done according to negotiation.
(3)其它测量内容。上文仅是以丢包数、时延两项测量内容为例进行的举例说明,除此之外,发送端还可基于本发明实施例的携带周期编号的业务流,监测得到其它统计信息,并与接收端监测得到的其它统计信息相互配合,得到针对其它测量内容的网络测量结果,此处不再举例说明。(3) Other measurement contents. The foregoing is only an example of the measurement content of the packet loss and the delay. In addition, the sending end may also monitor other traffic information based on the service flow carrying the cycle number according to the embodiment of the present invention. And matching with other statistical information obtained by the receiving end to obtain network measurement results for other measurement content, which is not illustrated here.
5.根据统计信息计算网络性能测量结果。5. Calculate network performance measurement results based on statistical information.
在利用被动性测量方法测量网络性能时,便可基于本发明实施例方案获取的统计信息计算测量结果。具体地,发送端通过监测携带周期编号的业务流的传输情况,得到发端统计信息,对应地,接收端通过监测携带周期编号的业务流的统计信息,即可得到收端统计信息(具体可参见下文针对图4所示方案所做介绍,此处暂不阐述),如此,便可计算得到网络性能的测量结果 (根据实际需要,可体现为端到端的网络性能测量结果、或分段的网络性能测量结果)。When the network performance is measured by the passive measurement method, the measurement result can be calculated based on the statistical information acquired by the solution of the embodiment of the present invention. Specifically, the transmitting end obtains the statistics of the originating end by monitoring the transmission status of the service stream carrying the period number. Correspondingly, the receiving end can obtain the statistics of the receiving end by monitoring the statistical information of the service stream carrying the period number (for details, see The following is an introduction to the scheme shown in Figure 4, which is not explained here. In this way, the measurement results of the network performance can be calculated. (According to actual needs, it can be reflected as end-to-end network performance measurement results, or segmented network performance measurement results).
发送端进行统计时,可以统计至少一个测量周期中的每个测量周期的统计信息,也可以统计至少一个测量周期中的部分测量周期的统计信息。比如,假设一共有3个测量周期,则发送端可以全部统计这3个测量周期的统计信息,也可以统计其中某些指定的测量周期的统计信息。When the sending end performs statistics, statistics of each measurement period in at least one measurement period may be counted, and statistics of part of the measurement period in at least one measurement period may also be counted. For example, if there are a total of three measurement periods, the sender can all count the statistics of the three measurement periods, and also statistics of some of the specified measurement periods.
具体地,网络性能测量结果可以是发送端计算得到,此时,就需要接收端将收端统计信息反馈至发送端,供发送端计算测量结果时使用。或者,网络性能测量结果还可以是接收端计算得到,此时,需要发送端将发端统计信息反馈至接收端,供接收端计算测量结果时使用。或者,网络性能测量结果还可以是外部设备计算得到,此时,需要发送端将发端统计信息、接收端将收端统计信息分别反馈至外部设备,供外部设备计算测量结果时使用。需要说明的是,外部设备可体现为一台专用设备,或者还可体现为上文提及的控制设备,本发明实施例对计算测量结果的主体、外部设备等并不做限定,具体可根据实际应用情况而定。Specifically, the network performance measurement result may be calculated by the sending end. In this case, the receiving end needs to feed back the terminal statistical information to the sending end, and is used when the transmitting end calculates the measurement result. Alternatively, the network performance measurement result may also be calculated by the receiving end. In this case, the sending end needs to feed back the sending end statistics information to the receiving end, and is used when the receiving end calculates the measurement result. Alternatively, the network performance measurement result may be calculated by an external device. In this case, the sending end needs to send the statistics information of the sending end, and the receiving end feeds back the statistical information of the receiving end to the external device separately, and is used when the external device calculates the measurement result. It should be noted that the external device may be embodied as a dedicated device, or may be embodied as the control device mentioned above. The embodiment of the present invention does not limit the main body, the external device, and the like for calculating the measurement result, and may be specifically It depends on the actual application.
结合上文所做介绍可知,这种通过报文携带的周期编号来表征测量周期的方式,可使发送端、接收端自动简便的明确区间范围,无须如现有技术要依赖于业务流之外的其它报文(如,插入到业务流的OAM分界报文)进行区间划分,这样,可降低因插入报文丢失等异常情况导致的统计信息获取不准确的可能性,进而提高计算网络性能测量结果的准确性。同时,本发明实施例方案不需要在业务流中插入其它报文,也就不存在占用业务流带宽的问题,可有效保证业务流的有效数据传输效率。另外,由上文所做介绍还可知,本发明实施例方案中测量周期表示的测量区间的大小主要取决于周期参数,在需要调整测量区间大小时,只需相应的修改周期参数的取值即可,实现过程简单灵活,且不会影响获取统计信息的准确性、计算测量结果的准确性、业务流的有效数据传输率等。According to the above description, the way of characterizing the measurement period by the period number carried by the message enables the sender and the receiver to automatically and easily define the range of the interval without having to rely on the service flow as in the prior art. The other packets (for example, the OAM demarcation packets inserted into the service flow) are divided into sections, so that the possibility of inaccurate statistical information acquisition due to abnormal conditions such as the insertion of packet loss can be reduced, thereby improving the performance measurement of the computing network. The accuracy of the results. In addition, the solution of the embodiment of the present invention does not need to insert other packets into the service flow, and there is no problem of occupying the bandwidth of the service flow, which can effectively ensure the effective data transmission efficiency of the service flow. In addition, as can be seen from the above description, the size of the measurement interval indicated by the measurement period in the solution of the embodiment of the present invention mainly depends on the period parameter. When the size of the measurement interval needs to be adjusted, only the value of the corresponding modification period parameter is required. However, the implementation process is simple and flexible, and does not affect the accuracy of obtaining statistical information, the accuracy of calculating measurement results, and the effective data transmission rate of service flows.
与上文发送端的统计信息获取方法相对应的,本发明实施例还提供了一种接收端的统计信息获取方法,具体可参见图4所示流程图,可包括以下步骤: Corresponding to the method for obtaining the statistics information of the sending end, the embodiment of the present invention further provides a method for obtaining statistics information of the receiving end. For details, refer to the flowchart shown in FIG. 4, which may include the following steps:
步骤201,接收端接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号。Step 201: The receiving end receives the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period. Numbering.
步骤202,所述接收端基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。Step 202: The receiving end obtains statistics information of the measurement period based on the period number, where the statistics information is used to calculate a performance measurement result of a network that carries the measured packet.
发送端按照上文所做介绍,将周期编号添加到要传送至接收端的被测报文中,这样,接收端即可在接收被测报文的过程中,通过监测周期编号的方式获得报文的统计信息,以备后续计算网络性能测量结果时使用。需要说明的是,本发明实施例中的所述被测报文可以是数据报文,也可以是控制管理报文。多个被测报文形成一个业务流。本发明实施例可不对被测报文的具体类型做限定。According to the above description, the sender adds the period number to the packet to be transmitted to the receiver, so that the receiver can obtain the statistics of the packet by monitoring the period number during the process of receiving the packet to be tested. Information for use in subsequent calculations of network performance measurements. It should be noted that the measured packet in the embodiment of the present invention may be a data packet or a control management packet. Multiple tested messages form a service flow. The embodiment of the present invention may not limit the specific type of the tested message.
下面对接收端读取周期编号、识别监测区间、获取统计信息的过程进行解释说明。The following describes the process of reading the cycle number, identifying the monitoring interval, and obtaining statistical information at the receiving end.
1.读取报头中携带的周期编号信息。1. Read the cycle number information carried in the header.
与上文发送端向报头添加周期编号的方式相对应的,本发明实施例提供了三种读取周期编号的方式,下面一一进行解释说明。Corresponding to the manner in which the sending end adds a cycle number to the header, the embodiment of the present invention provides three ways of reading the cycle number, which are explained below.
方式一,如果设备支持IPv4协议,且发送端按照上文方式一添加周期编号,接收端则可通过读取Option选项字段中的Period Number的方式得到周期编号。In the first mode, if the device supports the IPv4 protocol, and the sender adds the cycle number according to the above manner, the receiver can obtain the cycle number by reading the Period Number in the Option field.
方式二,如果设备支持IPv6协议,且发送端按照上文方式二添加周期编号,接收端则可通过读取Hop-by-hop扩展头中的Period Number的方式得到周期编号。Manner 2: If the device supports the IPv6 protocol and the sender adds the cycle number according to the above method, the receiver can obtain the cycle number by reading the Period Number in the Hop-by-hop extension header.
方式三,如果设备支持IPv6协议,且发送端按照上文方式三添加周期编号,接收端作为目的节点则可通过读取Destination扩展头中的Period Number的方式得到周期编号。Manner 3: If the device supports the IPv6 protocol, and the sender adds the cycle number according to the above manner, the receiver as the destination node can obtain the cycle number by reading the Period Number in the Destination extension header.
如上文所做介绍,利用方式一、二读取的周期编号可实现端到端检测、分段检测,对应于此,本发明实施例中的接收端可体现为中间节点或目的节点;利用方式三读取的周期编号可实现端到端检测,对应于此,本发明实施例中的接收端则体现为目的节点。As described above, the cycle number of the first and second read modes can be used to implement the end-to-end detection and the segmentation detection. Corresponding to this, the receiving end in the embodiment of the present invention can be embodied as an intermediate node or a destination node; The end number of the three-reading period can be end-to-end. Corresponding to this, the receiving end in the embodiment of the present invention is embodied as a destination node.
需要说明的是,若发送端通过IP层之外的其它层来携带周期编号,接收端只要在对应位置读取周期编号即可,此处不再举例说明。 It should be noted that if the sending end carries the period number through other layers than the IP layer, the receiving end only needs to read the period number in the corresponding position, which is not illustrated here.
2.根据周期编号识别监测区间。2. Identify the monitoring interval based on the cycle number.
接收端接收到发送端传送的携带有周期编号的业务流时,即可根据周期编号来识别测量周期表示的监测区间,这就需要接收端能够明确每个测量周期的测量起点和对应的测量终点。下面分别对确定测量起点、测量终点的过程进行解释说明。When receiving the service flow carrying the cycle number transmitted by the transmitting end, the receiving end can identify the monitoring interval indicated by the measurement period according to the cycle number, which requires the receiving end to clarify the measurement starting point and the corresponding measurement end point of each measurement cycle. . The process of determining the measurement start point and the measurement end point will be explained below.
(1)确定测量起点的方式。(1) The way to determine the starting point of the measurement.
具体地,接收端可以根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点,可体现为以下几种实现方式:Specifically, the receiving end may identify the measurement starting point of the measurement period according to the received test packet carrying the first cycle number corresponding to the measurement period, which may be embodied in the following implementation manners:
方式一,接收端接收发送端发送的业务流,并判断当前接收到的报文中是否携带有周期编号,如果未携带周期编号,则正常处理接收到的业务流;如果携带了周期编号,则继续判断该报文是否为本接收端首次接收到的携带周期编号的报文,并根据判断结果按照a、b所示方案继续确定测量起点:In the first mode, the receiving end receives the service flow sent by the sending end, and determines whether the currently received packet carries a cycle number. If the cycle number is not carried, the received service flow is normally processed; if the cycle number is carried, Continue to determine whether the message is the first time received by the receiving end, and according to the scheme shown in a and b, continue to determine the starting point of the measurement:
(a)如果是,则明确此时为该周期编号对应的测量周期的测量起点。如图2-1所示,接收端接收到被测报文1,经判断该报文携带了周期编号P1,且是接收的首个携带周期编号的报文,故可将被测报文1确定为P1对应的测量周期T1的测量起点。(a) If yes, the measurement start point of the measurement cycle corresponding to the cycle number is determined at this time. As shown in Figure 2-1, the receiving end receives the packet 1 and determines that the packet carries the period number P1 and is the first packet carrying the period number. Therefore, the packet can be tested. The measurement starting point of the measurement period T1 corresponding to P1 is determined.
(b)如果否,则判断该周期编号是否与前一个携带周期编号的报文中添加的周期编号相同,并根据判断结果按照b1、b2所示方案继续确定测量起点:(b) If no, it is determined whether the cycle number is the same as the cycle number added in the message carrying the previous carry cycle number, and according to the judgment result, the measurement start point is continuously determined according to the schemes indicated by b1 and b2:
(b1)如果不同,则明确此时为该周期编号对应的测量周期的测量起点。如图2-2所示,接收端接收到携带周期编号P2的被测报文53,经判断在此之前已经接收到携带周期编号P1的被测报文50,且二者所携带周期编号并不相同,故可将被测报文53确定为P2对应的测量周期T2的测量起点,对应地,携带周期编号P1的报文50则被确定为测量周期T1的测量终点。(b1) If it is different, it is clear that the measurement start point of the measurement period corresponding to the cycle number is at this time. As shown in Figure 2-2, the receiving end receives the measured packet 53 carrying the period number P2, and determines that the measured packet 50 carrying the period number P1 has been received beforehand, and the two carry the period number. The measurement message 53 can be determined as the measurement starting point of the measurement period T2 corresponding to P2. Correspondingly, the message 50 carrying the cycle number P1 is determined as the measurement end point of the measurement period T1.
(b2)如果相同,则明确此时并不是该周期编号对应的测量周期的测量起点。如图2-3所示,接收端接收到携带周期编号P1的被测报文3,经判断在此之前已经接收到携带周期编号P1的被测报文1,且二者所携带周期编号相同,故可判定被测报文3并不是测量周期T1的测量起点。(b2) If they are the same, it is clear that this is not the measurement starting point of the measurement period corresponding to the cycle number. As shown in Figure 2-3, the receiving end receives the measured packet 3 carrying the periodic number P1, and determines that the measured packet 1 carrying the periodic number P1 has been received before, and the two carry the same periodic number. Therefore, it can be determined that the measured message 3 is not the measurement starting point of the measurement period T1.
由方式一所做介绍以及所举示例可知,其适用于连续测量周期、非连续测量周期、测量周期内的所有被测报文均携带周期编号、测量周期内的指定被测报文携带周期编号,等各种情况,此处不再一一进行举例说明。It can be seen from the introduction of the first method and the example that it is applicable to the continuous measurement period, the discontinuous measurement period, and all the measured packets in the measurement period carry the cycle number and the specified test packet carrying cycle number within the measurement period. , and so on, there is no longer an example here.
需要说明的是,上述方式一主要针对的是发送端、接收端未预先协商测 量周期划分方式,且存在至少两个测量周期的情况,针对只存在一个测量周期的情况,本发明实施例中确定测量起点的方式可体现为:将接收端接收到的首个携带周期编号的报文,确定为测量周期的测量起点。It should be noted that the above manner is mainly for the sender and the receiver not pre-negotiated. The method of determining the measurement starting point in the embodiment of the present invention may be as follows: the first carrying period number received by the receiving end, in the case where there are at least two measurement periods, and the case where there is only one measurement period. The message is determined as the starting point of the measurement cycle.
另外,需要说明的是,在发送端、接收端未预先协商测量周期划分方式的场景,接收端即可依据方式一处所做介绍自动识别出测量起点,但,若是二者预先做好了协商,那么,接收端则可自动按以下方式简便的识别各个测量周期的测量起点。In addition, it should be noted that, in the scenario where the transmitting end and the receiving end do not pre-negotiate the measurement period dividing manner, the receiving end can automatically identify the measurement starting point according to the introduction of the method, but if the two are in advance negotiated Then, the receiving end can automatically identify the measurement starting point of each measuring cycle in the following manner.
方式二,若发送端、接收端预先协商按照图2-1所示,从业务流中划分连续的测量周期,则确定测量起点的方式为:Manner 2: If the transmitting end and the receiving end pre-negotiate to divide the continuous measurement period from the service flow as shown in Figure 2-1, the way to determine the starting point is:
(a)针对首次接收到携带周期编号的报文的情况来说,可将其确定为首个测量周期的测量起点。如,接收到携带周期编号P1的被测报文1,且其是接收的首个携带周期编号的报文,故可将被测报文1确定为测量周期T1的测量起点。(a) For the case where the message carrying the cycle number is received for the first time, it can be determined as the measurement start point of the first measurement cycle. For example, if the measured message 1 carrying the cycle number P1 is received, and it is the first received message carrying the cycle number, the measured message 1 can be determined as the measurement starting point of the measurement period T1.
(b)针对非首次接收到携带周期编号的报文的情况来说,可将周期编号发生变化时确定为变化后周期编号对应的被测周期的测量起点。如,接收到携带周期编号P2的被测报文51,且在其之前接收的被测报文50携带的周期编号为P1,即周期编号发生了变化,故可将被测报文51确定为测量周期T2的测量起点。(b) For the case where the message carrying the cycle number is not received for the first time, the measurement start point of the measured cycle corresponding to the changed cycle number may be determined when the cycle number is changed. For example, if the measured packet 51 carrying the period number P2 is received, and the period number carried by the measured packet 50 received before is P1, that is, the period number changes, the detected packet 51 can be determined as The measurement starting point of the measurement period T2.
方式三,若发送端、接收端预先协商按照图2-2所示,从业务流中划分非连续的测量周期,则确定测量起点的方式为:Manner 3: If the sender and the receiver pre-negotiate to divide the non-continuous measurement period from the service flow as shown in Figure 2-2, the way to determine the measurement starting point is:
(a)针对首次接收到携带周期编号的报文的情况来说,与方式二中情况(a)确定测量起点的过程相同,此处不再赘述。(a) For the case where the message carrying the cycle number is received for the first time, the process of determining the measurement starting point is the same as the case (a) in the second mode, and details are not described herein again.
(b)针对非首次接收到携带周期编号的报文的情况来说,与方式二中情况(b)确定测量起点的过程相似,所不同的是,周期编号发生变化的两个报文之间有一定的间隔(间隔可体现为几个报文或一段时间,本发明实施例可不做具体限定,只要发送端、接收端预先协商好即可)。如,接收到携带周期编号P2的被测报文53,且与其间隔2个报文的被测报文50携带的周期编号为P1,即周期编号发生了变化,故可将被测报文53确定为测量周期T2的测量起点。(b) For the case where the message carrying the cycle number is not received for the first time, the process of determining the measurement start point is the same as the case (b) in the second mode, except that the cycle number changes between the two messages. There is a certain interval (the interval may be reflected in several messages or a period of time, and the embodiment of the present invention may not be specifically limited, as long as the transmitting end and the receiving end negotiate in advance). For example, if the measured packet 53 carrying the period number P2 is received, and the period number of the detected packet 50 that is separated from the two packets is P1, that is, the period number changes, so that the measured packet 53 can be detected. It is determined as the measurement starting point of the measurement period T2.
需要说明的是,针对图2-3、2-4所示连续测量周期下使各周期的全部或指定被测报文携带周期编号,或针对非连续测量周期下使各周期的全部或指定被测报文携带周期编号,只要发送端、接收端预先做好的了协商,均可按 照上述两种情况自动识别测量周期的测量起点,具体过程可参照上文所做介绍,此处不再一一解释说明。It should be noted that, for the continuous measurement period shown in FIG. 2-3 and 2-4, all or a specified test packet carrying cycle number of each cycle is carried, or all or specified of each cycle is specified for the discontinuous measurement cycle. The measurement packet carries the cycle number. As long as the sender and receiver receive the negotiation in advance, they can press According to the above two situations, the measurement starting point of the measurement period is automatically identified. For the specific process, refer to the above description, which will not be explained one by one.
(2)确定测量终点的方式。(2) Determine the way the end point is measured.
方式一,接收端获得发送端划分测量周期时使用的周期参数,如获得指定时长(同发送端获得周期参数的方式相同,周期参数可预配置在接收端,或者也可在需要时由外部输入至接收端,本发明实施例对此可不做具体限定),并在按照上文介绍的方式识别出测量周期的测量起点后,启动一个计时器,并将计时到达指定时长时作为该测量周期的测量终点。如图2-1所示,若指定时长为1s,则自接收端识别出测量周期T2的测量起点(携带周期编号P2的被测报文51)时,开始计时,直至计时达到1s时停止,将此时对应的被测报文确定为测量周期T2的测量起点。In the first manner, the receiving end obtains the period parameter used by the transmitting end to divide the measurement period, such as obtaining the specified duration (the same manner as the sending end obtaining the periodic parameter, the periodic parameter may be pre-configured at the receiving end, or may be externally input when needed) To the receiving end, the embodiment of the present invention does not specifically limit this, and after identifying the measurement starting point of the measurement period in the manner described above, a timer is started, and when the timing reaches the specified duration, the measurement period is used. The end point is measured. As shown in Figure 2-1, if the specified duration is 1 s, the measurement start point (the measured packet 51 carrying the cycle number P2) is recognized from the receiving end, and the timing is started until the timing reaches 1 s. The corresponding measured message at this time is determined as the measurement starting point of the measurement period T2.
方式二,接收端按照上文介绍的方式识别出测量周期的测量起点后,还可根据周期编号的变化来识别测量终点。如图2-1所示,自接收端识别出测量周期T1的测量起点(携带周期编号P1的被测报文1)时,开始判断再接收的被测报文中携带的周期编号是否发生变化,当接收到被测报文51时判定周期编号从P1变化为P2,故可将上一个携带周期编号P1的被测报文50确定为测量周期T1的测量终点,同时将被测报文51确定为测量周期T2的测量起点。In the second mode, after the receiving end recognizes the measurement starting point of the measurement period in the manner described above, the measurement end point can also be identified according to the change of the cycle number. As shown in Figure 2-1, when the measurement start point of the measurement period T1 (the measured packet 1 carrying the period number P1) is detected, it is determined whether the period number carried in the received packet is changed. When the detected message 51 is received, the determination cycle number is changed from P1 to P2, so that the measured message 50 carrying the previous cycle number P1 can be determined as the measurement end point of the measurement period T1, and the detected message 51 is determined as The measurement starting point of the measurement period T2.
需要说明的是,上文从一种周期编号变化为另一种周期编号的方案,适用于具有至少两个测量周期的情况,针对只有一个测量周期的情况,本发明实施例中根据周期编号的变化来识别测量终点可以体现为:根据添加周期编号的规律的变化来识别测量终点。下面结合两个示例对识别过程进行解释说明。It should be noted that the foregoing method for changing from one cycle number to another cycle is applicable to a case where there are at least two measurement periods, and in the case of only one measurement period, in the embodiment of the present invention, according to the cycle number. The change to identify the measurement endpoint can be embodied as: identifying the measurement endpoint based on changes in the regularity of the addition cycle number. The identification process is explained below in conjunction with two examples.
如图5-1所示,业务流中只存在一个测量周期T1,且由图中所示可知,测量周期T1里的每个被测报文均添加有周期编号P1,即添加周期编号的规律为连续添加,对应于此,接收端识别测量终点的方式为:自识别出测量起点被测报文1时,开始判断再接收的被测报文中是否携带了周期编号P1,当接收到被测报文51时判定其未携带周期编号,则可认为周期编号的规律发生了变化,可将上一个携带周期编号P1的被测报文50确定为测量周期T1的测量终点。As shown in Figure 5-1, there is only one measurement period T1 in the service flow. As shown in the figure, each measured packet in the measurement period T1 is added with the period number P1, that is, the rule of adding the period number. For the continuous addition, corresponding to this, the receiving end recognizes the measurement end point in the following manner: when the measurement starting point of the measurement message 1 is recognized, it is judged whether the re-received test packet carries the cycle number P1, and when the measured report is received If it is determined that the cycle number is not carried in the case of 51, the law of the cycle number may be changed, and the measured message 50 carrying the previous cycle number P1 may be determined as the measurement end point of the measurement cycle T1.
如图5-2所示,业务流中只存在一个测量周期T1,且由图中所示可知, 测量周期T1中添加周期编号的规律为:向位于奇数位置的被测报文中添加周期编号,即每间隔一个报文添加一次周期编号,对应于此,接收端识别测量终点的方式为:自识别出测量起点被测报文1时,开始判断再接收的携带周期编号P1的报文是否符合上述规律,当接收到被测报文51时判定其未携带周期编号,则可认为周期编号的规律发生了变化,可将上一个携带周期编号P1的被测报文49确定为测量周期T1的测量终点。As shown in Figure 5-2, there is only one measurement period T1 in the service flow, and as shown in the figure, The rule of adding the cycle number in the measurement period T1 is: adding a cycle number to the measured message located at the odd position, that is, adding a cycle number every interval of the message, corresponding to this, the way the receiver recognizes the measurement end point is: self-identification When the measurement start point 1 is measured, it is judged whether the received packet carrying the cycle number P1 meets the above rule. When the detected message 51 is received and it is determined that it does not carry the cycle number, the rule of the cycle number may be considered to occur. With the change, the last detected message 49 carrying the cycle number P1 can be determined as the measurement end point of the measurement period T1.
需要说明的是,上文仅是结合两种较为简单的规律对测量终点识别过程进行的举例说明,本发明实施例对周期编号的添加规律并不做具体限定,只要具有一定规律的添加方式均可采用上述方案识别测量终点。It should be noted that the foregoing is only an example of the measurement end point identification process in combination with two relatively simple rules. The embodiment of the present invention does not specifically limit the addition rule of the cycle number, as long as there are certain regular addition methods. The measurement endpoint can be identified using the above scheme.
方式三,接收端还可结合指定时长和周期编号的变化来识别测量终点。接收端按照上文介绍的方式识别出测量周期的测量起点后,启动一个计时器,并判断计时到达指定时长之前,周期编号是否发生了变化,如果发生了变化,则以周期编号的变化来识别测量终点,并停止计时;如果未发生变化,则等待计时到达指定时长,并利用指定时长来识别测量终点。这样就可在被测报文异常传输,导致无法通过周期编号的变化识别测量终点时,通过指定时长来终止针对该测量周期的监测过程。In the third mode, the receiving end can also identify the measurement end point by combining the change of the specified duration and the cycle number. After the receiving end recognizes the measurement starting point of the measurement cycle in the manner described above, it starts a timer and determines whether the cycle number has changed before the timing reaches the specified time. If the change occurs, it is identified by the change of the cycle number. The end point is measured and the timing is stopped; if there is no change, the waiting time is reached for the specified length of time, and the specified end time is used to identify the measurement end point. In this way, when the measured message is abnormally transmitted, and the measurement end point cannot be identified by the change of the cycle number, the monitoring process for the measurement cycle is terminated by the specified duration.
方式四,为了解决因报文乱序传输导致的统计信息获取不准确的问题,本发明实施例还可在上文方式一、二、三的基础上,提供一种确定容错测量终点的方案,具体为:接收端设置一个允许滞后参数,并利用方式一或二或三识别的测量终点确定容错测量终点=测量终点+允许滞后参数,其中,允许滞后参数可以体现为允许滞后时长或允许滞后报文数。也就是说,到达方式一或二或三确定出的测量终点后再等待一段时长或几个报文,并将测量起点到容错测量终点之间监测到的统计信息,作为该对应监测周期的统计信息。In the fourth method, in order to solve the problem that the statistical information acquisition is inaccurate due to the out-of-order transmission of the message, the embodiment of the present invention may further provide a solution for determining the fault-tolerant measurement end point on the basis of the foregoing methods 1, 2, and 3. Specifically, the receiving end sets an allowable hysteresis parameter, and uses the measurement end point identified by the method one or two or three to determine the fault tolerance measurement end point=measurement end point+allowing hysteresis parameter, wherein the allowable hysteresis parameter can be embodied as allowing the hysteresis duration or allowing the hysteresis Number of texts. That is to say, after reaching the measurement end point determined by one or two or three, wait for a period of time or several messages, and measure the statistical information between the measurement starting point and the end point of the fault-tolerant measurement as the statistics of the corresponding monitoring period. information.
如图6所示,携带周期编号P1的被测报文49、50在传输过程中发送乱序,二者在携带周期编号P2的被测报文51之后传送到接收端,如此,根据方式一确定出的测量周期T1的测量终点可能为被测报文48,若在此基础上继续等待一个允许滞后时长,则能将乱序传输的报文49、50统计到测量周期T1的统计信息中,提高了本发明实施例获取统计信息的准确性。As shown in FIG. 6, the detected packets 49 and 50 carrying the cycle number P1 are sent out of order during the transmission, and the two are transmitted to the receiving end after carrying the detected message 51 of the cycle number P2. The measured end point of the measured measurement period T1 may be the measured message 48. If it continues to wait for an allowable lag time on this basis, the out-of- order transmission messages 49, 50 can be counted into the statistical information of the measurement period T1. The accuracy of obtaining statistical information in the embodiment of the present invention is improved.
3.监测业务流获取统计信息。3. Monitor business flow to obtain statistical information.
经上述两个处理动作后,接收端即可获取到指定测量周期的统计信息。因为,在计算网络的性能测量结果时,需要得到互相匹配的发端统计信息和 收端统计信息,故,接收端可按照与发送端的预先协商,获取每个测量周期的统计信息,也可根据需要仅获取指定测量周期的统计信息,本发明实施例对此可不做具体限定。After the above two processing actions, the receiving end can obtain the statistical information of the specified measurement period. Because, when calculating the performance measurement results of the network, it is necessary to obtain matching statistics of the originating end and The receiving end can obtain the statistical information of the receiving end according to the pre-negotiation with the transmitting end, and the statistic information of the specified measuring period can be obtained as needed. The embodiment of the present invention does not specifically limit this.
作为一种示例,接收端获取指定测量周期的统计信息,可以理解为:接收端获取接收到的被测报文携带的周期编号,若周期编号对应的是指定测量周期,则按本发明实施例方案获取该指定测量周期的统计信息;而一旦发现周期编号对应的是非指定测量周期,则停止获取该非指定测量周期的统计信息。As an example, the receiving end obtains the statistics of the specified measurement period, which can be understood as: the receiving end acquires the period number carried in the received packet, and if the period number corresponds to the specified measurement period, the embodiment of the present invention The solution obtains the statistical information of the specified measurement period; and if it finds that the period number corresponds to the non-designated measurement period, the statistics of the non-designated measurement period are stopped.
需要说明的是,网络性能测量可体现为不同的测量内容,针对不同测量内容需要获取的统计信息也有所不同,下面结合测量内容对获取统计信息的过程进行解释说明。It should be noted that the network performance measurement can be embodied in different measurement contents, and the statistical information that needs to be acquired for different measurement contents is also different. The process of obtaining the statistical information is explained below in combination with the measurement content.
(1)如果测量内容为丢包数,则对应的统计信息为接收报文数,接收端可通过统计指定测量周期里携带相同周期编号的被测报文的数目,得到统计信息。(1) If the measurement content is the number of lost packets, the corresponding statistical information is the number of received packets. The receiving end can obtain the statistical information by counting the number of the measured packets carrying the same periodic number in the specified measurement period.
接收端接收发送端传送的业务流的过程中,即可按上文介绍的方式确定各测量周期的测量起点,如图2-1所示,将携带周期编号P2的被测报文51确定为测量周期T2的测量起点后,启动计时器和计数器,且每接收到一个携带周期编号P2的被测报文,计数器就加1,如此过程,直至计时到达指定时长时(即到达该测量周期的测量终点)停止计时计数,并将计数得到的报文数作为测量周期T2对应的接收报文数,实现了本发明实施例基于周期编号获取统计信息的过程。When the receiving end receives the service flow transmitted by the transmitting end, the measurement starting point of each measurement period can be determined in the manner described above. As shown in FIG. 2-1, the measured packet 51 carrying the period number P2 is determined as After measuring the measurement starting point of the period T2, the timer and the counter are started, and the counter is incremented by 1 every time a measured message carrying the period number P2 is received, and the process is continued until the timing reaches the specified period of time (ie, the measurement period is reached). The measurement end point is to stop the counting of the time, and the number of the received packets is used as the number of received packets corresponding to the measurement period T2, and the process of obtaining the statistical information based on the cycle number in the embodiment of the present invention is implemented.
或者,上述示例中,确定出测量周期T2的测量起点后,启动一个计数器,并根据周期编号变化来确定测量终点,将计数器在测量起点和测量终点之间统计的报文数作为测量周期T2对应的接收报文数。Alternatively, in the above example, after determining the measurement starting point of the measurement period T2, a counter is started, and the measurement end point is determined according to the cycle number change, and the number of packets counted by the counter between the measurement start point and the measurement end point is determined as the measurement period T2. The number of received messages.
或者,接收端还可利用上文识别测量终点的方式三,通过指定时长和周期编号的变化来识别测量终点,并将计数器在测量起点和测量终点之间统计的报文数作为测量周期对应的接收报文数。Alternatively, the receiving end may also identify the measurement end point by using the change of the specified duration and the cycle number in the manner of identifying the measurement end point above, and the number of packets counted between the measurement start point and the measurement end point as the measurement period. Number of received messages.
再或者,接收端还可利用上文识别测量终点的方式四,设置容错测量终点,并将计数器在测量起点和容错测量终点之间统计的报文数作为测量周期对应的接收报文数。本发明实施例对识别测量终点的方式并不做具体限定,可结合实际应用场景选择合适的方式来识别测量终点。 Alternatively, the receiving end can also use the above method 4 for identifying the measurement end point, set the fault-tolerant measurement end point, and use the number of packets counted by the counter between the measurement start point and the fault-tolerant measurement end point as the number of received packets corresponding to the measurement period. The embodiment of the present invention does not specifically limit the manner of identifying the measurement end point, and may select an appropriate manner to identify the measurement end point in combination with the actual application scenario.
下面再结合上文所举乱序传输的示例,对本发明实施例提高统计信息获取准确性的过程进行解释说明。The process of improving the accuracy of obtaining statistical information in the embodiment of the present invention will be explained below in conjunction with the example of the out-of-order transmission.
若接收端利用计数器1记录测量周期T1的接收报文数,则在其接收到携带周期编号P1的报文48、携带周期编号P2的报文51后,可启动计数器2来记录测量周期T2对应的接收报文数,与此同时,计数器1并不会立即停止计数,而是继续等待接收携带P1的报文,并判断当前是否满足允许滞后参数,如果满足,再停止计数,并将当前的记录结果作为测量周期T1对应的接收报文数;如果未满足,则继续执行等待接收并判断的过程。如图6所示,在计数器1等待接收的过程中,又接收到两个报文49、50,且经判断二者携带的周期编号均为P1,故可将这两个报文统计到测量周期T1对应的接收报文数中,如此,就解决了报文乱序传输导致的统计信息获取不准确的问题。If the receiving end records the number of received packets of the measurement period T1 by using the counter 1, after receiving the message 48 carrying the cycle number P1 and the message 51 carrying the cycle number P2, the counter 2 can be started to record the measurement period T2. At the same time, the counter 1 does not stop counting immediately, but continues to wait to receive the message carrying the P1, and judges whether the allowable lag parameter is currently satisfied. If it is satisfied, the counting is stopped, and the current The result of the recording is taken as the number of received messages corresponding to the measurement period T1; if not, the process of waiting for reception and judgment is continued. As shown in FIG. 6 , in the process of waiting for the reception of the counter 1 , two packets 49 and 50 are received again, and it is judged that the cycle numbers carried by the two are both P1, so the two messages can be counted to the measurement. The number of received packets corresponding to the period T1 is such that the problem of inaccurate acquisition of statistical information caused by out-of-order transmission of the packet is solved.
(2)如果测量内容为时延,则对应的统计信息为时间戳,接收端可通过记录指定测量周期里的指定被测报文的接收时间戳,得到统计信息。其中,指定被测报文为位于指定位置的携带周期编号的被测报文。(2) If the measurement content is a delay, the corresponding statistical information is a timestamp, and the receiving end can obtain the statistical information by recording the receiving timestamp of the specified measured message in the specified measurement period. The specified packet is the measured packet with the carrying period number at the specified location.
接收端在确定好某个测量周期的测量起点后,即可按照与发送端的预先协商,记录指定被测报文的接收时间戳,并将其作为该测量周期对应的报文接收时间。After determining the measurement starting point of a certain measurement period, the receiving end can record the receiving timestamp of the specified packet according to the pre-negotiation with the transmitting end, and use it as the receiving time of the packet corresponding to the measurement period.
作为一种优选方案,可将测量周期的测量起点作为指定位置,记录在测量起点接收报文时的时间戳,以图2-1所示测量周期T2为例,记录的就是接收被测报文51的时间戳;或者,还可将测量起点与测量终点之间的任意位置作为指定位置,进行时间戳记录,本发明实施例对此可不做具体限定,只要使发送端、接收端预先协商好指定位置,并按照协商进行时间戳记录即可。As a preferred solution, the measurement start point of the measurement period is used as the designated position, and the timestamp when the measurement start message is received is recorded. Taking the measurement period T2 shown in FIG. 2-1 as an example, the recorded packet is received. The timestamp of 51; or, any position between the measurement start point and the measurement end point can be used as the designated position to record the time stamp. This embodiment of the present invention does not specifically limit this, as long as the sender and the receiver are pre-negotiated. Specify the location and record the time stamp according to the negotiation.
(3)其它测量内容。上文仅是以丢包数、时延两项测量内容为例进行的举例说明,除此之外,接收端还可基于本发明实施例的携带周期编号的业务流,监测得到其它统计信息,并与发送端监测得到的其它统计信息相互配合,得到针对其它测量内容的网络测量结果,此处不再举例说明。(3) Other measurement contents. The foregoing is only an example of the measurement content of the packet loss and the delay. In addition, the receiving end can also monitor other traffic information based on the service flow carrying the cycle number according to the embodiment of the present invention. And matching with other statistical information obtained by the sender to obtain network measurement results for other measurement content, which is not illustrated here.
4.根据统计信息计算网络性能测量结果。4. Calculate network performance measurement results based on statistical information.
在利用被动性测量方法测量网络性能时,便可基于本发明实施例方案获取的统计信息计算测量结果。如上文所做介绍,网络性能测量结果可以由发送端计算得到、也可以由接收端计算得到、或者还可以由外部设备计算得到,本发明实施例对计算测量结果的主体可不做限定,具体可根据实际应用情况 而定。另外,需要说明的是,可利用监测每个测量周期得到的统计信息,计算网络性能测量结果,也可通过采样方式,利用抽样出的测量周期的统计信息,计算网络性能测量结果,本发明实施例对此亦可不做具体限定。When the network performance is measured by the passive measurement method, the measurement result can be calculated based on the statistical information acquired by the solution of the embodiment of the present invention. As described above, the network performance measurement result may be calculated by the sending end, or may be calculated by the receiving end, or may be calculated by an external device. The embodiment of the present invention may not limit the main body of the measurement result. According to the actual application And set. In addition, it should be noted that the statistical information obtained by monitoring each measurement period can be used to calculate the network performance measurement result, and the network performance measurement result can be calculated by using the sampling information to calculate the network performance measurement result. For example, this is not specifically limited.
结合上文所做介绍可知,这种通过报文携带的周期编号来表征测量周期的方式,可使接收端自动、简便的明确区间范围,并基于此获取统计信息,降低了现有技术因插入报文丢失等异常情况导致的统计信息获取不准确的可能性,进而提高计算网络性能测量结果的准确性。同时,利用本发明实施例方案获取统计信息,还可简化接收端设计、减少获取过程中外界的干预与配合。According to the above description, the way of characterizing the measurement period by the period number carried by the message enables the receiving end to automatically and easily define the range of the interval, and obtain statistical information based on this, thereby reducing the prior art insertion. The possibility of obtaining inaccurate statistical information caused by abnormal conditions such as packet loss increases the accuracy of calculating network performance measurement results. At the same time, obtaining the statistical information by using the solution of the embodiment of the present invention can also simplify the design of the receiving end and reduce the intervention and cooperation of the outside world in the obtaining process.
与图1所示方法相对应地,本发明实施例还提供了一种发送端侧的统计信息获取装置,参见图7所示示意图,所述装置可包括:Corresponding to the method shown in FIG. 1, the embodiment of the present invention further provides a device for acquiring statistics on the transmitting end side. Referring to the schematic diagram shown in FIG. 7, the device may include:
设置单元301,用于为至少一个测量周期中的每个测量周期设置一个对应的周期编号;The setting unit 301 is configured to set a corresponding period number for each measurement period in the at least one measurement period;
添加单元302,用于将所述设置单元设置的所述周期编号添加到对应测量周期里包含的被测报文的报头中;The adding unit 302 is configured to add the period number set by the setting unit to a header of the tested packet included in the corresponding measurement period;
发送单元303,用于向接收端发送携带有所述周期编号的被测报文;The sending unit 303 is configured to send, to the receiving end, the measured packet carrying the period number;
获得单元304,用于在所述发送单元发送所述被测报文时,基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。The obtaining unit 304 is configured to obtain, according to the period number, statistical information of a specified measurement period in the at least one measurement period when the sending unit sends the measured packet, where the statistical information is used to calculate a bearer The performance measurement result of the network of the measured message.
优选的,所述设置单元,还用于在设置所述测量周期之前,根据周期参数划分所述测量周期,所述周期参数为指定时长或指定被测报文数。具体地,周期参数可预配置在发送端中,或者也可在需要时由外部输入,本发明实施例对此可不做具体限定。Preferably, the setting unit is further configured to divide the measurement period according to a period parameter before setting the measurement period, where the period parameter is a specified duration or specifies a number of packets to be measured. Specifically, the periodic parameter may be pre-configured in the transmitting end, or may be externally input when needed, which may not be specifically limited in this embodiment of the present invention.
优选的,所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。Preferably, the adding unit is specifically configured to add the period number to a header of all the tested messages included in the corresponding measurement period; or the adding unit is specifically configured to add the cycle number to The designated test packet is selected from all the tested packets included in the corresponding measurement period according to a preset rule, corresponding to the header of the specified test packet included in the measurement period.
本发明实施例主要是通过周期编号来划分区间,如此,需使业务流中的报文携带周期编号,且根据不同的测量周期,报文携带的周期编号也有所不 同。具体地,本发明实施例方案中可通过报头来携带周期编号,对应于此,提供了如下三种向报头中添加周期编号的方式:The embodiment of the present invention mainly divides the interval by the cycle number. Therefore, the number of the packets in the service flow carries the cycle number, and the cycle number carried in the packet is also different according to different measurement cycles. with. Specifically, in the solution of the embodiment of the present invention, the cycle number can be carried by the header, and corresponding to the following, the following three ways of adding the cycle number to the header are provided:
所述添加单元,具体用于将所述周期编号添加到IPv6报头的逐跳选项扩展头或目的地选项扩展头;或者,所述添加单元,具体用于将所述周期编号添加到IPv4报头的选项字段。The adding unit is specifically configured to add the period number to a hop-by-hop option header or a destination option extension header of the IPv6 header; or the adding unit is specifically configured to add the period number to the IPv4 header. Option field.
使被测报文携带周期编号后,发送端的被动性测量装置便可将包含被测报文的业务流传送至接收端,并同时监测得到指定测量周期的统计信息。结合不同的网络测量内容,测量装置要获得不同的统计信息,而针对不同的统计信息,获得单元的构成方式又会有所不同,下面对此进行举例说明。After the test packet carries the cycle number, the passive measurement device at the transmitting end can transmit the service flow including the measured packet to the receiving end, and simultaneously monitor and obtain the statistical information of the specified measurement period. In combination with different network measurement contents, the measurement device needs to obtain different statistical information, and the composition of the obtaining unit may be different for different statistical information, which will be exemplified below.
若测量内容为丢包数,则统计信息可体现为发送报文数,对应的获得单元可具体用于统计所述指定测量周期里携带相同周期编号的被测报文的数目。If the measurement content is the number of packets to be discarded, the statistics may be the number of packets to be sent, and the corresponding obtaining unit may be used to collect the number of the packets with the same period number in the specified measurement period.
若测量内容为时延,则统计信息可体现为发送报文的时间戳,对应的获得单元可具体用于记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。If the measurement content is a delay, the statistical information may be embodied as a timestamp of the sent packet, and the corresponding obtaining unit may be specifically configured to record a sending timestamp of the specified measured packet in the specified measurement period, where the specified The test packet is the measured packet with the carrying period number at the specified location.
与图4所示方法相对应地,本发明实施例还提供了一种接收端侧的统计信息获取装置,参见图8所示示意图,所述装置可包括:Corresponding to the method shown in FIG. 4, the embodiment of the present invention further provides a device for acquiring statistics on the receiving end side. Referring to the schematic diagram shown in FIG. 8, the device may include:
接收单元401,用于接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号;The receiving unit 401 is configured to receive the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same Cycle number
获得单元402,用于基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。The obtaining unit 402 is configured to obtain, according to the period number, statistical information of the measurement period, where the statistical information is used to calculate a performance measurement result of a network that carries the measured packet.
发送端侧的统计信息获取装置将携带有周期编号的被测报文传送至接收端侧的统计信息获取装置,接收端亦可根据报文中携带的周期编号,自动识别发送端测量周期,并获取指定测量周期的统计信息。结合不同的网络测量内容,测量装置要监测不同的统计信息,而针对不同的统计信息,获取单元的构成方式又会有所不同,下面对此进行举例说明。The statistic information acquiring device of the transmitting end transmits the measured packet carrying the periodic number to the statistic information acquiring device on the receiving end side, and the receiving end can automatically identify the measuring period of the transmitting end according to the period number carried in the packet, and Get statistics for the specified measurement period. In combination with different network measurement contents, the measurement device should monitor different statistical information, and the composition of the acquisition unit will be different for different statistical information, which will be exemplified below.
若测量内容为丢包数,则统计信息可体现为接收报文数,对应的获取单元可包括:获得子单元,用于统计所述测量周期内携带相同周期编号的被测报文的数目。 If the measurement content is the number of lost packets, the statistics may be the number of received packets, and the corresponding obtaining unit may include: obtaining the sub-units, and collecting statistics on the number of the tested packets carrying the same periodic number in the measurement period.
进一步地,所述获得单元还可包括:识别单元,用于在所述获得子单元统计所述被测报文的数目之前,根据周期编号的变化识别所述测量周期;和/或,获得指定时长,并根据所述指定时长识别所述测量周期。Further, the obtaining unit may further include: an identifying unit, configured to identify the measurement period according to a change of the period number before the obtaining subunit counts the number of the measured packets; and/or obtain the designation The duration, and the measurement period is identified according to the specified duration.
作为一种优选方案,接收端可设置允许滞后参数(可体现为允许滞后时长、或允许滞后报文个数等),则获取单元可包括:As a preferred solution, the receiving end may set the allowable hysteresis parameter (which may be embodied as allowing the lag time, or allowing the number of lag messages, etc.), and the obtaining unit may include:
调整单元,用于利用所述允许滞后参数调整所述测量周期,所述允许滞后参数为允许滞后时长或允许滞后被测报文数;And an adjusting unit, configured to adjust the measurement period by using the allowable hysteresis parameter, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed;
获得子单元,用于统计所述调整单元调整后的测量周期内携带相同周期编号的被测报文的数目。Obtaining a sub-unit, configured to count the number of the tested packets carrying the same cycle number in the measurement period after the adjustment unit is adjusted.
若测量内容为时延,则统计信息可体现为接收报文的时间戳,对应的获取单元可包括:记录单元,用于记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。If the measurement content is a time delay, the statistical information may be reflected as a timestamp of the received message, and the corresponding obtaining unit may include: a recording unit, configured to record a receiving timestamp of the specified measured message in the measurement period, The specified test message is a test packet with a carry cycle number located at a specified location, and the specified location is the same as the designated location where the sender records the transmission timestamp.
进一步地,本发明实施例还提供了统计信息获取装置的硬件构成。参见图9所示示意图,可包括至少一个处理器(例如CPU),至少一个网络接口或者其它通信接口,存储器,和至少一个通信总线,用于实现这些装置之间的连接通信。处理器用于执行存储器中存储的可执行模块,例如计算机程序。存储器可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口(可以是有线或者无线)实现该系统网关与至少一个其它网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。Further, the embodiment of the present invention further provides a hardware configuration of the statistical information acquiring apparatus. Referring to the schematic diagram of Figure 9, there may be included at least one processor (e.g., a CPU), at least one network interface or other communication interface, memory, and at least one communication bus for enabling connection communication between the devices. The processor is for executing an executable module, such as a computer program, stored in the memory. The memory may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory. The communication connection between the system gateway and at least one other network element is implemented by at least one network interface (which may be wired or wireless), and an Internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
具体地,当图9所示示意图用于实现发送端侧的统计信息获取装置的功能时,存储器存储了程序指令,处理器用于根据这些程序指令执行以下步骤:Specifically, when the schematic diagram shown in FIG. 9 is used to implement the function of the statistical information acquiring apparatus on the transmitting side, the memory stores program instructions, and the processor is configured to perform the following steps according to the program instructions:
为至少一个测量周期中的每个测量周期设置一个对应的周期编号,并将所述周期编号添加到对应测量周期里包含的被测报文的报头中;Setting a corresponding period number for each measurement period in at least one measurement period, and adding the period number to a header of the tested message included in the corresponding measurement period;
向接收端发送携带有所述周期编号的被测报文,并基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And transmitting, to the receiving end, the measured packet carrying the period number, and obtaining, according to the period number, statistical information of the specified measurement period in the at least one measurement period, where the statistical information is used to calculate the bearer The performance measurement result of the network of the message.
作为一种示例,测量周期是根据周期参数划分的,所述周期参数为指定时长或指定被测报文数。 As an example, the measurement period is divided according to a period parameter, which is a specified duration or specifies the number of packets to be measured.
具体地,处理器可按以下方式将所述周期编号添加到对应测量周期里包含的被测报文的报头中:Specifically, the processor may add the cycle number to the header of the tested packet included in the corresponding measurement period in the following manner:
将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。Adding the cycle number to the header of all the tested messages included in the corresponding measurement period; or adding the cycle number to the header of the specified test packet included in the corresponding measurement period, the designation being The measurement message is selected from all the tested messages included in the corresponding measurement period according to a preset rule.
具体地,处理器可按以下方式将所述周期编号添加到对应测量周期里包含的被测报文的报头中:Specifically, the processor may add the cycle number to the header of the tested packet included in the corresponding measurement period in the following manner:
将所述周期编号添加到IPv6报头的逐跳选项扩展头或目的地选项扩展头;或者,将所述周期编号添加到IPv4报头的选项字段。The cycle number is added to the hop-by-hop option extension header or the destination option extension header of the IPv6 header; or the cycle number is added to the option field of the IPv4 header.
具体地,所述统计信息为报文数目,处理器可按以下方式获取所述指定测量周期的统计信息:统计所述指定测量周期里携带相同周期编号的被测报文的数目。Specifically, the statistics information is the number of the packets, and the processor may obtain the statistics of the specified measurement period in the following manner: the number of the measured packets carrying the same cycle number in the specified measurement period is counted.
具体地,所述统计信息为时间戳,处理器可按以下方式获取所述指定测量周期的统计信息:记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。Specifically, the statistical information is a timestamp, and the processor may obtain the statistical information of the specified measurement period in the following manner: recording a transmission timestamp of the specified measured packet in the specified measurement period, where the specified measurement is performed. The packet is the measured packet with the carrying period number at the specified location.
具体地,当图9所示示意图用于实现接收端侧的统计信息获取装置的功能时,存储器存储了程序指令,处理器用于根据这些程序指令执行以下步骤:Specifically, when the schematic diagram shown in FIG. 9 is used to implement the function of the statistical information acquiring apparatus on the receiving end side, the memory stores program instructions, and the processor is configured to perform the following steps according to the program instructions:
接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号;And receiving the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period number;
基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And obtaining, according to the period number, statistics information of the measurement period, where the statistics information is used to calculate a performance measurement result of a network that carries the measured packet.
具体地,所述统计信息为报文数目,处理器可按以下方式获取测量周期的统计信息:统计所述测量周期内携带相同周期编号的被测报文的数目。Specifically, the statistics information is the number of the packets, and the processor may obtain the statistics of the measurement period in the following manner: the number of the measured packets carrying the same cycle number in the measurement period is counted.
作为一种优选方案,处理器在统计所述测量周期内携带相同周期编号的被测报文的数目之前,还用于执行:As a preferred solution, the processor is further configured to perform: before counting the number of the tested packets carrying the same cycle number in the measurement period:
根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点;Identifying a measurement starting point of the measurement period according to the received measured message carrying the first cycle number corresponding to the measurement period;
根据所述测量周期对应的周期编号的变化识别所述测量周期的测量终点;和/或,获得指定时长,并根据所述测量周期的测量起点和所述指定时长 识别所述测量周期的测量终点。Identifying a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or obtaining a specified duration, and according to the measurement start point and the specified duration of the measurement period A measurement end point of the measurement period is identified.
具体地,所述统计信息为报文数目,且接收端设置有允许滞后参数,处理器可按以下方式获取测量周期的统计信息:利用所述允许滞后参数调整所述测量周期,并统计调整后的测量周期内携带相同周期编号的被测报文的数目。其中,所述允许滞后参数为允许滞后时长或允许滞后被测报文数。Specifically, the statistics information is the number of packets, and the receiving end is provided with an allowable hysteresis parameter, and the processor may obtain the statistical information of the measurement period in the following manner: adjusting the measurement period by using the allowable hysteresis parameter, and after adjusting the statistics The number of measured packets carrying the same cycle number during the measurement period. Wherein, the allowable hysteresis parameter is a number of allowed packets to be allowed to be delayed or allowed to be delayed.
具体地,所述统计信息为时间戳,处理器可按以下方式获取测量周期的统计信息:记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。Specifically, the statistical information is a timestamp, and the processor may obtain the statistical information of the measurement period in the following manner: recording a reception timestamp of the specified test packet in the measurement period, where the specified measured message is located The measured packet carrying the cycle number of the specified location, and the specified location is the same as the specified location of the transmission timestamp of the sender.
本发明方案可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序单元。一般地,程序单元包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明方案,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序单元可以位于包括存储设备在内的本地和远程计算机存储介质中。The inventive arrangements may be described in the general context of computer-executable instructions executed by a computer, such as a program element. Generally, program units include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The inventive arrangements can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program units can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其它实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
以上对本发明实施例进行了详细介绍,本文中应用了具体实施方式对本发明进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及设备;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the present invention has been described with reference to the specific embodiments. The description of the above embodiments is only for facilitating understanding of the method and device of the present invention. Meanwhile, for those skilled in the art, The present invention is not limited by the scope of the present invention.

Claims (23)

  1. 一种统计信息获取方法,其特征在于,所述方法包括:A method for acquiring statistical information, characterized in that the method comprises:
    发送端为至少一个测量周期中的每个测量周期设置一个对应的周期编号,并将所述周期编号添加到对应测量周期里包含的被测报文的报头中;The sending end sets a corresponding period number for each measurement period in the at least one measurement period, and adds the period number to the header of the tested packet included in the corresponding measurement period;
    所述发送端向接收端发送携带有所述周期编号的被测报文,并基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。Transmitting, by the sending end, the measured packet carrying the period number to the receiving end, and obtaining, according to the period number, statistical information of the specified measurement period in the at least one measurement period, where the statistical information is used to calculate the bearer The performance measurement result of the network of the measured message.
  2. 根据权利要求1所述的方法,其特征在于,所述测量周期是根据周期参数划分的,所述周期参数为指定时长或指定被测报文数。The method according to claim 1, wherein the measurement period is divided according to a period parameter, and the period parameter is a specified duration or a number of packets to be measured.
  3. 根据权利要求1或2所述的方法,其特征在于,所述将所述周期编号添加到对应测量周期里包含的被测报文的报头中,包括:The method according to claim 1 or 2, wherein the adding the cycle number to the header of the measured packet included in the corresponding measurement period comprises:
    所述发送端将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,The sending end adds the period number to a header of all the tested messages included in the corresponding measurement period; or
    所述发送端将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。And sending, by the sending end, the period number to a header of the specified test packet included in the corresponding measurement period, where the specified test packet is all the measured reports included in the corresponding measurement period according to a preset rule. Selected in the text.
  4. 根据权利要求1~3任一项所述的方法,其特征在于,所述将所述周期编号添加到对应测量周期里包含的被测报文的报头中,包含:The method according to any one of claims 1 to 3, wherein the adding the cycle number to a header of the measured packet included in the corresponding measurement period comprises:
    所述发送端将所述周期编号添加到IPv6报头的逐跳选项扩展头或目的地选项扩展头;或者,The sending end adds the cycle number to a hop-by-hop option extension header or a destination option extension header of the IPv6 header; or
    所述发送端将所述周期编号添加到IPv4报头的选项字段。The sender adds the cycle number to an option field of an IPv4 header.
  5. 根据权利要求1~4任一项所述的方法,其特征在于,所述统计信息为报文数目,则所述基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,包括:The method according to any one of claims 1 to 4, wherein the statistical information is the number of packets, and the statistical information of the specified measurement period in the at least one measurement period is obtained based on the period number. ,include:
    所述发送端统计所述指定测量周期里携带相同周期编号的被测报文的数目。The sending end counts the number of the tested packets carrying the same period number in the specified measurement period.
  6. 根据权利要求1~5任一项所述的方法,其特征在于,所述统计信息为时间戳,则所述基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,包括:The method according to any one of claims 1 to 5, wherein the statistical information is a time stamp, and the statistical information of the specified measurement period in the at least one measurement period is obtained based on the period number, include:
    所述发送端记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。 The sending end records the sending timestamp of the specified test packet in the specified measurement period, and the specified measured message is the measured packet carrying the period number at the specified location.
  7. 一种统计信息获取方法,其特征在于,所述方法包括:A method for acquiring statistical information, characterized in that the method comprises:
    接收端接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文携带相同的周期编号;The receiving end receives the measured packet sent by the sending end, and the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period carries the same period number;
    所述接收端基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。The receiving end obtains the statistics of the measurement period based on the period number, where the statistics information is used to calculate a performance measurement result of the network that carries the measured packet.
  8. 根据权利要求7所述的方法,其特征在于,所述统计信息为报文数目,则所述接收端基于所述周期编号获得所述测量周期的统计信息,包括:The method according to claim 7, wherein the statistical information is the number of packets, and the receiving end obtains the statistical information of the measurement period based on the period number, including:
    所述接收端统计所述测量周期内携带相同周期编号的被测报文的数目。The receiving end counts the number of the tested packets carrying the same period number in the measurement period.
  9. 根据权利要求8所述的方法,其特征在于,在所述接收端统计所述测量周期内携带相同周期编号的被测报文的数目之前,还包括:The method according to claim 8, wherein before the receiving end counts the number of the measured packets carrying the same period number in the measurement period, the method further includes:
    所述接收端根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点;The receiving end identifies the measurement starting point of the measurement period according to the received measured message carrying the first cycle number corresponding to the measurement period;
    所述接收端根据所述测量周期对应的周期编号的变化识别所述测量周期的测量终点;和/或,所述接收端获得指定时长,并根据所述测量周期的测量起点和所述指定时长识别所述测量周期的测量终点。The receiving end identifies a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point and the specified duration of the measurement period A measurement end point of the measurement period is identified.
  10. 根据权利要求7所述的方法,其特征在于,所述统计信息为报文数目,且接收端设置有允许滞后参数,则所述接收端基于所述周期编号获得所述测量周期的统计信息,包括:The method according to claim 7, wherein the statistical information is the number of packets, and the receiving end is provided with an allowable hysteresis parameter, and the receiving end obtains statistical information of the measurement period based on the cycle number. include:
    所述接收端利用所述允许滞后参数调整所述测量周期,并统计调整后的测量周期内携带相同周期编号的被测报文的数目。The receiving end adjusts the measurement period by using the allowable hysteresis parameter, and counts the number of the tested packets carrying the same period number in the adjusted measurement period.
  11. 根据权利要求10所述的方法,其特征在于,所述允许滞后参数为允许滞后时长或允许滞后被测报文数。The method according to claim 10, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a hysteresis of the number of packets to be measured.
  12. 根据权利要求7~11任一项所述的方法,其特征在于,所述统计信息为时间戳,则所述接收端基于所述周期编号获得所述测量周期的统计信息,包括:The method according to any one of claims 7 to 11, wherein the statistical information is a time stamp, and the receiving end obtains the statistical information of the measurement period based on the period number, including:
    所述接收端记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。The receiving end records a receiving timestamp of the specified test packet in the measurement period, where the specified test packet is a measured packet carrying a period number at a specified location, and the specified location and the sending end The specified location for the record send timestamp is the same.
  13. 一种统计信息获取装置,其特征在于,所述装置包括:A statistical information acquiring device, characterized in that the device comprises:
    设置单元,用于为至少一个测量周期中的每个测量周期设置一个对应的 周期编号;a setting unit configured to set a corresponding one for each measurement cycle in at least one measurement cycle Cycle number
    添加单元,用于将所述设置单元设置的所述周期编号添加到对应测量周期里包含的被测报文的报头中;a adding unit, configured to add the period number set by the setting unit to a header of the tested packet included in the corresponding measurement period;
    发送单元,用于向接收端发送携带有所述周期编号的被测报文;a sending unit, configured to send, to the receiving end, the measured packet carrying the period number;
    获得单元,用于在所述发送单元发送所述被测报文时,基于所述周期编号获得所述至少一个测量周期中的指定测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And an obtaining unit, configured to obtain, according to the period number, statistical information of a specified measurement period in the at least one measurement period, where the statistics information is used to calculate the bearer, when the sending unit sends the measured packet The performance measurement result of the network of the measured message.
  14. 根据权利要求13所述的装置,其特征在于,The device of claim 13 wherein:
    所述设置单元,还用于在设置所述测量周期之前,根据周期参数划分所述测量周期,所述周期参数为指定时长或指定被测报文数。The setting unit is further configured to divide the measurement period according to a period parameter before setting the measurement period, where the period parameter is a specified duration or specifies a number of packets to be tested.
  15. 根据权利要求13或14所述的装置,其特征在于,Device according to claim 13 or 14, characterized in that
    所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的所有被测报文的报头中;或者,The adding unit is specifically configured to add the period number to a header of all the tested messages included in the corresponding measurement period; or
    所述添加单元,具体用于将所述周期编号添加到对应测量周期里包含的指定被测报文的报头中,所述指定被测报文为根据预设规则从所述对应测量周期里包含的所有被测报文中选出。The adding unit is specifically configured to add the period number to a header of a specified test packet included in a corresponding measurement period, where the specified test packet is included in the corresponding measurement period according to a preset rule. Selected from all the tested messages.
  16. 根据权利要求13~15任一项所述的装置,其特征在于,Apparatus according to any one of claims 13 to 15, wherein
    所述添加单元,具体用于将所述周期编号添加到IPv6报头的逐跳选项扩展头或目的地选项扩展头;或者,The adding unit is specifically configured to add the period number to a hop-by-hop option header or a destination option extension header of the IPv6 header; or
    所述添加单元,具体用于将所述周期编号添加到IPv4报头的选项字段。The adding unit is specifically configured to add the period number to an option field of an IPv4 header.
  17. 根据权利要求13~16任一项所述的装置,其特征在于,所述统计信息为报文数目,则The device according to any one of claims 13 to 16, wherein the statistical information is the number of packets,
    所述获得单元,具体用于统计所述指定测量周期里携带相同周期编号的被测报文的数目。The obtaining unit is specifically configured to count the number of the tested packets carrying the same period number in the specified measurement period.
  18. 根据权利要求13~16任一项所述的装置,其特征在于,所述统计信息为时间戳,则The device according to any one of claims 13 to 16, wherein the statistical information is a time stamp,
    所述获得单元,具体用于记录所述指定测量周期里的指定被测报文的发送时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文。The obtaining unit is specifically configured to record a sending timestamp of the specified test packet in the specified measurement period, where the specified test packet is a measured packet with a carrying period number at a specified location.
  19. 一种统计信息获取装置,其特征在于,所述装置包括:A statistical information acquiring device, characterized in that the device comprises:
    接收单元,用于接收发送端发送的被测报文,所述被测报文中携带有周期编号,所述周期编号与测量周期相对应,所述测量周期里包含的被测报文 携带相同的周期编号;The receiving unit is configured to receive the measured packet sent by the sending end, where the measured packet carries a period number, where the period number corresponds to the measurement period, and the measured packet included in the measurement period Carry the same cycle number;
    获得单元,用于基于所述周期编号获得所述测量周期的统计信息,所述统计信息用于计算承载所述被测报文的网络的性能测量结果。And an obtaining unit, configured to obtain, according to the period number, statistical information of the measurement period, where the statistical information is used to calculate a performance measurement result of a network that carries the measured packet.
  20. 根据权利要求19所述的装置,其特征在于,所述统计信息为报文数目,则所述获得单元包括:The device according to claim 19, wherein the statistical information is the number of packets, and the obtaining unit comprises:
    获得子单元,用于统计所述测量周期内携带相同周期编号的被测报文的数目。Obtaining a subunit for counting the number of the tested packets carrying the same period number in the measurement period.
  21. 根据权利要求20所述的装置,其特征在于,所述获得单元还包括:The device according to claim 20, wherein the obtaining unit further comprises:
    起点识别单元,用于根据接收到的首个携带所述测量周期对应的周期编号的被测报文识别所述测量周期的测量起点;a starting point identifying unit, configured to identify a measurement starting point of the measurement period according to the received first tested message carrying the period number corresponding to the measurement period;
    终点识别单元,用于根据所述测量周期对应的周期编号的变化识别所述测量周期的测量终点;和/或,所述接收端获得指定时长,并根据所述测量周期的测量起点和所述指定时长识别所述测量周期的测量终点。An end point identifying unit, configured to identify a measurement end point of the measurement period according to a change of a cycle number corresponding to the measurement period; and/or, the receiving end obtains a specified duration, and according to the measurement start point of the measurement period and the The specified duration identifies the measurement endpoint of the measurement period.
  22. 根据权利要求19所述的装置,其特征在于,所述统计信息为报文数目,且设置有允许滞后参数,则所述获得单元包括:The device according to claim 19, wherein the statistical information is a number of packets, and an allowable lag parameter is set, and the obtaining unit comprises:
    调整单元,用于利用所述允许滞后参数调整所述测量周期,所述允许滞后参数为允许滞后时长或允许滞后被测报文数;And an adjusting unit, configured to adjust the measurement period by using the allowable hysteresis parameter, wherein the allowable hysteresis parameter is a allowable hysteresis duration or a number of allowed packets to be delayed;
    获得子单元,用于统计所述调整单元调整后的测量周期内携带相同周期编号的被测报文的数目。Obtaining a sub-unit, configured to count the number of the tested packets carrying the same cycle number in the measurement period after the adjustment unit is adjusted.
  23. 根据权利要求19~22任一项所述的装置,其特征在于,所述统计信息为时间戳,则所述获得单元包括:The device according to any one of claims 19 to 22, wherein the statistical information is a time stamp, and the obtaining unit comprises:
    记录单元,用于记录所述测量周期内的指定被测报文的接收时间戳,所述指定被测报文为位于指定位置的携带周期编号的被测报文,且所述指定位置与发送端记录发送时间戳的指定位置相同。 a recording unit, configured to record a received timestamp of the specified test packet in the measurement period, where the specified test packet is a test packet carrying a cycle number at a specified location, and the specified location is sent The specified location of the send record timestamp is the same.
PCT/CN2015/083286 2014-07-04 2015-07-03 Statistical information acquisition method and device WO2016000659A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410318272.6 2014-07-04
CN201410318272.6A CN105281969B (en) 2014-07-04 2014-07-04 A kind of statistical information acquisition methods and device

Publications (1)

Publication Number Publication Date
WO2016000659A1 true WO2016000659A1 (en) 2016-01-07

Family

ID=55018476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083286 WO2016000659A1 (en) 2014-07-04 2015-07-03 Statistical information acquisition method and device

Country Status (2)

Country Link
CN (1) CN105281969B (en)
WO (1) WO2016000659A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468397A (en) * 2019-09-09 2021-03-09 华为技术有限公司 IPv6 message processing method and device
CN113824606A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Network measurement method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893525B (en) * 2016-03-30 2019-06-21 努比亚技术有限公司 Data statistics device and method
CN114827014A (en) 2018-05-28 2022-07-29 华为技术有限公司 Message processing method and device
CN112448896B (en) 2019-08-30 2024-04-30 华为技术有限公司 Method and device for determining transmission period in deterministic network
CN113067740B (en) * 2020-01-02 2023-09-05 中国移动通信有限公司研究院 Method, device, equipment and computer readable storage medium for detecting following path performance
WO2022041695A1 (en) * 2020-08-26 2022-03-03 华为技术有限公司 Traffic monitoring method and apparatus, integrated circuit, network device, and network system
CN114205256A (en) * 2021-12-07 2022-03-18 苏州盛科通信股份有限公司 Method, device and storage medium for continuously measuring network performance based on TWAMP protocol
CN114157586A (en) * 2021-12-15 2022-03-08 苏州盛科通信股份有限公司 Method and device for improving TWAMP detection accuracy and storage device
CN114221888A (en) * 2021-12-16 2022-03-22 苏州盛科科技有限公司 Method, device and storage medium for improving message statistics accuracy in TWAMP detection
CN114244739A (en) * 2021-12-21 2022-03-25 苏州盛科通信股份有限公司 Method, device and storage medium for improving message statistical accuracy

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614939A (en) * 2003-11-06 2005-05-11 华为技术有限公司 Realizing method for time-delaying test
WO2007024161A1 (en) * 2005-08-23 2007-03-01 Telefonaktiebolaget L M Ericsson (Publ) Method and arrangement for measuring transmission quality in a packet mode communication network
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459529C (en) * 2005-09-12 2009-02-04 华为技术有限公司 Time delay characteristic measuring method in data communication network
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
CN101729197B (en) * 2008-10-14 2014-04-16 华为技术有限公司 Method, device and system for detecting packet loss rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614939A (en) * 2003-11-06 2005-05-11 华为技术有限公司 Realizing method for time-delaying test
WO2007024161A1 (en) * 2005-08-23 2007-03-01 Telefonaktiebolaget L M Ericsson (Publ) Method and arrangement for measuring transmission quality in a packet mode communication network
CN101272290A (en) * 2008-05-12 2008-09-24 中国电信股份有限公司 Measuring method, measuring apparatus and forwarding device for route congestion state in IP network
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468397A (en) * 2019-09-09 2021-03-09 华为技术有限公司 IPv6 message processing method and device
CN112468397B (en) * 2019-09-09 2023-09-26 华为技术有限公司 IPv6 message processing method and device
CN113824606A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Network measurement method and device
CN113824606B (en) * 2020-06-19 2023-10-24 华为技术有限公司 Network measurement method and device

Also Published As

Publication number Publication date
CN105281969B (en) 2019-11-29
CN105281969A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2016000659A1 (en) Statistical information acquisition method and device
CN106850337B (en) Network quality detection method and device
US20210006482A1 (en) Broadband communication link performance monitoring method for communication devices
EP2416527B1 (en) Method, apparatus and system for measuring ip network performance and controlling quality of service
US8081659B2 (en) Map message expediency monitoring and automatic delay adjustments in M-CMTS
EP3295612B1 (en) Uplink performance management
CN104115448A (en) Method and apparatus for monitoring transmission characteristics in a network
EP4024778A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
JP2009135821A (en) Load testing system, load testing apparatus, and load testing method
CN102223263A (en) Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
US11936930B2 (en) Data processing method, server, and data collection device
US8879403B2 (en) Link microbenchmarking with idle link correction
CN102487338B (en) Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter
US11121938B2 (en) Performance measurement in a packet-switched communication network
WO2018161303A1 (en) Method and apparatus for monitoring video quality of experience supported by wireless quality of service
GB2543838A (en) Estimation of network conditions of individual paths in a multi-path connection involving a device not aware of multi-path signaling
CN109120479B (en) Network throughput testing method based on network message format
WO2022021882A1 (en) Oam information block positioning method and device
US9439100B2 (en) System and method for dynamic rate adaptation based on real-time call quality metrics
JP5923914B2 (en) Network state estimation apparatus and network state estimation program
JP5739373B2 (en) Available bandwidth measuring device, method and program
CN113923133B (en) Quality of experience index monitoring method for encrypted webpage traffic based on QUIC
US20220329519A1 (en) Packet transmission method and electronic device
JP4766703B2 (en) Edge node and bandwidth control method
CN117997780A (en) Method and device for reporting measurement data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15815152

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15815152

Country of ref document: EP

Kind code of ref document: A1