WO2011032482A1 - Measure method, apparatus and system - Google Patents

Measure method, apparatus and system Download PDF

Info

Publication number
WO2011032482A1
WO2011032482A1 PCT/CN2010/076858 CN2010076858W WO2011032482A1 WO 2011032482 A1 WO2011032482 A1 WO 2011032482A1 CN 2010076858 W CN2010076858 W CN 2010076858W WO 2011032482 A1 WO2011032482 A1 WO 2011032482A1
Authority
WO
WIPO (PCT)
Prior art keywords
measurement
packet
option
content
measurement information
Prior art date
Application number
PCT/CN2010/076858
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 WO2011032482A1 publication Critical patent/WO2011032482A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a measurement technique.
  • IPPM IP Performance Metrics
  • the current method for IP network performance testing is to measure network performance by actively transmitting data packets, and the measurement object is an active measurement message instead of a service data message. Since the measurement packet is different from the data service packet, the forwarding processing may be inconsistent in the network, which may result in a deviation between the measurement result measured by the measurement message and the real performance of the service data.
  • measurement packets are limited to UDP (User Datagram Protocol) data packets, and other protocol data packets are measured. It is still blank.
  • the method does not currently include measurement of TCP (Transport Control Protocol) data packets.
  • Embodiments of the present invention provide a method for transmitting measurement information and a measurement method to reduce the deviation between measurement scores and real performance of service data.
  • the embodiment of the invention also provides a host and a measurement system.
  • a method for transmitting measurement information according to an embodiment of the present invention includes: the source host carrying, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
  • the destination host receives the IP packet of the service data, where the IP packet carries the first measurement information; and the first measurement information is extracted;
  • a host provided by an embodiment of the present invention includes:
  • a packet processing module configured to carry, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
  • the sending module is configured to send the IP packet processed by the packet processing module to the destination host.
  • a host provided by an embodiment of the present invention includes:
  • a receiving module configured to receive an IP packet of service data, where the IP packet carries the first measurement information
  • An extracting module configured to extract the first measurement information from the IP packet received by the receiving module;
  • a measurement module configured to measure, according to the first measurement information extracted by the extraction module, the measurement content corresponding to the first measurement information.
  • a measurement system provided by an embodiment of the present invention includes: a source host capable of communicating with a destination host, and a destination host capable of communicating with the source host,
  • the source host is configured to carry the first measurement information corresponding to the measurement content in the IP data of the service data according to the measurement content; and send the IP packet to the destination host;
  • the destination host is configured to receive an IP packet of the service data, where the IP packet carries the first measurement information, and the first measurement information is extracted from the IP packet received by the receiving module; The first measurement information extracted by the module is used to measure the measurement content corresponding to the first measurement information.
  • the embodiments of the present invention carry the measurement information corresponding to the measurement content in the IP packet of the service data, so that the receiver can perform statistical measurement according to the measurement information, thereby reducing the measurement result and the service data. There is a deviation between performances to better meet the needs of wireless network QoS control.
  • FIG. 1 is a schematic flowchart of a measurement method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of an IPv4 header field according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an IPv6 header field and a header field according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a compression method according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a negotiation method according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a receiving method according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a measurement method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic flowchart diagram of a measurement method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a host according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a host according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a measurement system according to an embodiment of the present invention.
  • the measurement information transmission method includes:
  • Step 101 The source host carries the first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content.
  • Step 102 Send the IP packet to the destination host.
  • the first measurement information corresponding to the measurement content is carried into the IP packet of the service data, and the IP packet is sent to the destination host, so that the destination host can be based on the first packet carried in the IP packet.
  • the measurement information measures the measurement content, for example, records and counts the first measurement information, and calculates an IP performance metric according to the statistical result. Since the first measurement information is carried in the IP packet of the service data, the real service data can be directly measured, thereby ensuring that the deviation between the measurement balance and the real performance of the service data is smaller and better. Full The need for wireless network QoS control.
  • the measurement of the real service data avoids the insufficiency of only measuring the UDP protocol packet, and expands the type of the IP address to be measured. Further, since the carried first measurement information is measurement information corresponding to the measurement content, unnecessary measurement information is avoided, and bandwidth is saved while implementing flexible measurement.
  • the first measurement information needs to be carried in the IP packet of the service data, and the specific information may be carried in the header field of the IP packet, for example, the IPv4 IP packet may be carried in the header.
  • Option (Option) field in the domain For IPv6 IP packets, it can be carried in the option field in the extended header field, such as the Destination Options field.
  • the header field of the IPv4 IP packet refer to the structure shown in FIG. 2.
  • the header field and the extended header field of the IPv6 IP packet can refer to the structure shown in FIG.
  • the measurement content may include, for example, one of the following or any combination thereof: delay, jitter, packet loss, packet misorder, and message repetition.
  • delay incurred in the measurement contents.
  • jitter incurred in the measurement contents.
  • packet loss incurred in the measurement contents.
  • packet misorder incurred in the measurement contents.
  • message repetition incurred in the measurement contents.
  • the first measurement information may include one or more measurement options, for example, may include one or any combination of the following: sequence number measurement option, transmission time measurement option, security check code option, measurement session identification option.
  • the sequence number measurement option is used to identify the message; the send time measurement option is used to indicate the time when the source host sends the IP packet; the security check code option is used to perform the security check; and the measurement session identification option is used to indicate that the process is in progress. Which measurement session belongs to the IP performance measurement, where the measurement session corresponds to the IP service session.
  • different measurement contents have respective first measurement information.
  • the first measurement information when the measurement content includes a time delay, includes at least: a transmission time measurement option and a sequence number measurement option. For example, when the measurement content includes jitter, the first measurement information includes at least: a transmission time measurement option and a sequence number measurement option. For example, when the measurement content includes packet loss, the first measurement information includes at least: a sequence number measurement option. For example, in measurement When the content includes the wrong sequence of the message, the first measurement information includes at least: a sequence number measurement option. For example, when the measurement content includes the message repetition, the first measurement information includes at least: a sequence number measurement option.
  • the first measurement information corresponding to the measurement content does not contain repeated measurement options.
  • the measurement content includes jitter and packet loss
  • the first measurement information corresponding to the measurement content includes at least: a sequence number measurement option and a transmission time measurement option, and does not include a repeated sequence number measurement option.
  • the first measurement information corresponding to the measurement content may further include a measurement session identification option and/or a security check code option.
  • the destination host may perform security check after receiving the IP packet, thereby discriminating the forged measurement packet, and ensuring accurate measurement. Safety.
  • the measurement information identifier is included in the first measurement information
  • the destination host can perform statistics according to different measurement sessions, so that different measurement sessions can be separately measured, and measurement results of each measurement session are obtained, thereby obtaining each IP service.
  • the IP performance metrics of the session make the measurement results more accurate and the measurement method more flexible.
  • the embodiment of the present invention extends the existing IPv4 protocol and the IPv6 protocol, and adds measurement options, such as a transmission time measurement option, a reception time measurement option, and a sequence number measurement. Options, measurement session identification options, security check code options.
  • the option consists of three parts: Option Type, option length, and option content. In order to distinguish it from other options, for these new measurement options, an option type different from the other options is required, and the option type of the above measurement option is defined as, for end-to-end IP performance measurement, and the IP device of the intermediate node cannot Delete or modify the contents of these end-to-end measurement options.
  • the option type can be represented by 8 bits, where 1 bit represents a copy flag, and 2 bits represent an option class, a 5-bit table.
  • Show option number ( option number ).
  • the option category of the above measurement options can be 2 (2 means for debugging and measurement), and the option number for sending time measurement option, receiving time measurement option, sequence number measurement option, measurement session identification option, security check code option can be separately For 5, 6, 7, 8, and 9.
  • the option type can also be represented by 8 bits, and the highest 2 bits of the option type of the above measurement option are defined as "00", so that the IP device capable of supporting the option type can be recognized by the option, IP devices that support this option type ignore this option and avoid exception handling that occurs because the IP device cannot support this option.
  • the options for the send time measurement option, the receive time measurement option, the sequence number measurement option, the measurement session identification option, and the security check code option can be 11, 12, 13, 14, and 15, respectively.
  • the source host and the destination host need to dynamically adjust the MTU saved in the measurement process because the source host and the destination host add measurement options to the IP packet to change the IP packet length of the service data. Transmission Unit, minimum transmission unit) value.
  • the first measurement information may also be compressed.
  • the first measurement information may be a compression option field or an entire header field. By compressing, the bandwidth occupied by IP packets can be reduced, and the transmission can be smooth.
  • the compression of the first measurement information may only compress a portion of the first measurement information, such as only the transmission time measurement option and/or the sequence number measurement option, without compressing the security check code option and/or measurement. Session identification options.
  • the above compression method may be, for example, the method shown in FIG. 4:
  • Step 401 Initialize the context of the measurement information in the first IP packet with the measurement information, where the measurement information used for initialization may be a configuration agreed by the source host and the destination host.
  • Step 402 Receive a feedback response sent by the destination host, where the feedback response is sent after the destination host determines the context of the measurement information according to the first IP with the measurement information.
  • Step 403 according to the change of the measurement information to be sent and the context of the initialized measurement information, In the TP packet of the subsequent service data, the change value of the transmission time measurement option, the reception time measurement option, the sequence number measurement option, and the like are carried, thereby saving bandwidth.
  • the destination host After receiving the IP packet of the service data, the destination host can learn the specific content of each measurement option included in the measurement information according to the measurement information context and the change value, that is, decompress, and record according to the decompressed measurement option. Statistics, and finally calculate the IP performance metric.
  • the step of acquiring the measurement configuration may be included, for example, the measurement configuration configured in the source host itself may be obtained, or the measurement configuration sent by the network management system may be acquired.
  • the embodiment may further include the step of negotiating the measurement configuration with the destination host according to the obtained measurement configuration.
  • the measurement configuration may be obtained by the static configuration of the source host and the destination host, or may be implemented by the network management remote operation, that is, the network management system sends the measurement configuration to the source host and the destination host. .
  • the destination host obtains the measurement configuration
  • the source host negotiates the measurement configuration with the destination host after obtaining the measurement configuration.
  • the measurement configuration negotiation may be a source host and a destination host, or a measurement proxy node of the source host and the destination host, or a measurement proxy node and a destination host of the source host, or a measurement proxy node and a destination host of the source host. Measure the proxy node.
  • the measurement negotiation between the source host and the destination host is taken as an example.
  • the negotiation of the measurement configuration with the measurement proxy node is basically the same as the negotiation of the measurement configuration between the source host and the destination host, and the measurement proxy node and the source host or the destination host may be in one entity, or Implemented as two entities.
  • the above measurement configuration may include, for example, measurement content.
  • the measurement configuration may further include one or any combination of the following in addition to the above: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, an effective waiting delay, a measurement verification algorithm, a key, Measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
  • the initial value of the sequence number measurement option is used to represent the first IP message with measurement information.
  • the sending interval of the measurement information is used to indicate the length of the sending interval between two IP packets with adjacent sequence numbers, that is, the source host is sent the next band after sending an IP packet with measurement information.
  • the approximate time of the IP packet with the measurement information (because the exact time depends on the time when the IP service session generates the service data IP packet), the transmission interval of the measurement information can also be expressed as the transmission frequency of the measurement information.
  • the measurement period is used to indicate the duration of the current measurement.
  • the measurement content is the content that needs to be measured for this measurement, that is, the packet loss, jitter, and message misordering mentioned above.
  • the effective waiting delay is used to indicate that when the destination host receives an IP packet whose delay exceeds the value, the delay of the IP packet should be recorded as infinity, that is, the packet is considered to be lost in performance measurement.
  • the measurement check algorithm is used to represent the algorithm used to perform the verification, such as the algorithm used for security check or redundancy check.
  • the key is used to indicate the key used to calculate the check code. It may be that the specific key content is sent, or the source host and the destination host both retain the key list, and the index of the sent key list is not sent. Key content, in this embodiment, the check code includes a security check code.
  • the measurement start time is used to indicate the approximate time that the source host sends the first IP packet with measurement information to the destination host (because the exact time depends on the time when the IP service session generates the service data IP packet).
  • the measurement type is used to indicate whether the measurement is an active measurement or a passive measurement.
  • the active measurement is a measurement of a special measurement message (an IP packet dedicated to IP performance measurement) rather than an IP packet for service data.
  • the measurement is performed, and the passive measurement is to measure the IP packet of the service data, instead of measuring the special measurement message.
  • the compression indication is used to indicate that the measurement information in the message is compressed and needs to be decompressed.
  • the measurement direction is used to indicate that the measurement is a one-way measurement or a two-way measurement.
  • the one-way measurement is the measurement of delay, jitter, packet loss, packet misordering, and message repetition in a single direction from the source host to the destination host.
  • the two-way measurement is the measurement of the delay, jitter, packet loss, packet misorder, and packet repetition in the two directions of the source host to the destination host and then back to the source host.
  • the method for negotiating the measurement configuration may be, for example, the method shown in FIG.
  • Methods for negotiating configuration configurations include:
  • Step 501 Generate a measurement negotiation request according to the obtained measurement configuration, where the measurement negotiation is requested.
  • the request includes a measurement configuration.
  • Step 502 Send the measurement negotiation request to the destination host, where the destination host sends a measurement response message to the source host after receiving the measurement negotiation request, when it can accept and is willing to accept the IP performance measurement; When it is unable or unwilling to accept the IP performance test, a rejection response message is sent to the source host.
  • Step 503 Receive a negotiation response message or a rejection response message sent by the destination host to receive the measurement.
  • the measurement configuration of the source host and the destination host can be clarified, and the parameters of the current measurement, such as the measurement content to be measured, for the active measurement or the passive measurement, and the sequence number measurement option are determined by the measurement configuration. Initial value, etc.
  • the measurement verification algorithm and the used key can be negotiated, and the measurement information can be negotiated to ensure that the measurement is flexible and consistent with both configurations.
  • the source and destination hosts need to adjust their saved MTU values after the measurement negotiation is completed, that is, use the original MTU value minus the total length of various measurement options that may be used.
  • the measurement method provided in this embodiment may further include the steps as shown in FIG. 6.
  • Step 601 Receive a measurement response sent by the destination host, where the measurement response message is sent by the source host to the destination host.
  • the IP packet carrying the service data of the first measurement information, and carrying the second measurement information corresponding to the IP packet.
  • the destination host receives the IP packet of the service data carrying the first measurement information sent by the source host.
  • the destination host records the measurement options included in the first measurement information according to the first measurement information carried in the received IP packet, and performs statistics on the recorded result, and calculates the IP performance metric value by statistical aggregation, that is, according to the first
  • the measurement information measures the received IP packet.
  • the destination host sends a measurement response packet based on the IP packet to the source host.
  • the measurement response packet can be a service data packet or a separate IP packet.
  • the measurement response message includes second measurement information corresponding to the IP packet received by the destination host.
  • the second measurement information includes the first measurement in the IP packet received by the destination host. Part or all of the information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option.
  • the second measurement information carried in the measurement response message may include a reception time measurement option; and when the measurement content includes delay and The first measurement information carried in the IP packet of the service data sent by the source host also includes the transmission time measurement option. Therefore, it can be said that the first measurement information of the IP packet sent by the source host includes the transmission time.
  • the second measurement information also includes a reception time measurement option.
  • the receiving time measurement option is used to indicate the time when the destination host receives the IP packet.
  • the second measurement information includes the first Measure all of the information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option; when the first measurement information includes a security check code option, the second measurement information includes the first The portion of the measurement information, that is, does not include the security check code option in the first measurement information, but includes a new security check code option.
  • the second measurement information in the measurement response includes the same sequence number measurement option.
  • the first measurement information in the IP packet received by the host includes the sequence number measurement option and the transmission time measurement option
  • the second measurement information in the measurement response includes the same sequence number measurement option and is sent.
  • the time measurement option and also includes the receiving time measurement option of the destination host.
  • the second measurement information may further include a security check code option and a measurement session identification option.
  • the security check code option in the second measurement information is usually different from the security check code option carried in the received IP 4 message, and the measurement session identification option and the received IP packet are carried.
  • the measurement session identification options are the same.
  • Step 602 Extract the second measurement information from the measurement response message.
  • Step 603 Perform recording statistics according to the second measurement information.
  • Recording statistics are performed according to the measurement options included in the second measurement information, and the IP performance metric value is calculated according to the statistical result to know the bidirectional IP performance.
  • the source host or the destination host when the source host or the destination host receives the IP packet or the IP packet of the data service, for example, the IP packet is fragmented during the transmission process, and the IP packet is received. After that, the received IP packet needs to be reorganized and restored to the original IP packet, that is, the originally sent packet, and then processed.
  • the compression step as shown in FIG. 4 needs to be performed before the IP packet or the measurement response packet is sent, and Decompression is required before making measurements based on measurement information.
  • the received IP packet needs to be verified. After the verification is passed, the next step is processed.
  • the decompression may be performed after verification, or may be decompressed and then verified.
  • the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols, such as the TCP protocol.
  • the measurement score is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied.
  • various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
  • the bandwidth occupation can be further reduced, and the security of the message can be ensured by carrying the security check code, and the spoofed message can be discriminated.
  • both parties can flexibly configure various parameters, and And a good understanding of the other party's configuration, to achieve the agreement between the two sides.
  • specific measurements can be made for a certain data service, making the measurement more flexible, more targeted, and the result closer to the true performance of the business data.
  • a method of measurement provided by another embodiment of the present invention will be described below with reference to FIG. This embodiment is a specific description of the previous embodiment.
  • the method includes:
  • Step 701 Obtain a measurement configuration sent by the network management.
  • the NMS performs remote operations on the source host and sends the measurement configuration to the source host.
  • the measurement configuration includes: initial value of sequence number measurement option, transmission interval of measurement information, measurement period, measurement content, effective waiting delay, security check algorithm, key, measurement start time, measurement type, compression indication, measurement Session ID, measurement direction, source host address, destination host address.
  • the initial value of the IP packet sequence number measurement option is 0; the measurement interval is 5 seconds; the measurement period is 30 minutes; the measurement content is delay and the message is out of order; the effective waiting delay is 3 seconds.
  • the security check algorithm is a key spalling algorithm; the key is 0xDlD83946; the measurement start time is 19:30 minutes, 10 seconds, 30 milliseconds on August 09, 2009; the measurement type is passive measurement; the compression indication is uncompressed;
  • the measurement session identifier is 0x1200 for representing the ongoing IP telephony service of the host (using the UDP protocol), and 0x1201 is for representing the ongoing IP Internet service of the host (using the TCP protocol); the measurement direction is bidirectional.
  • Step 702 Generate a measurement negotiation request according to the obtained measurement configuration, and send the measurement negotiation request to the destination host.
  • the source host generates a measurement negotiation request according to the measurement configuration, and the negotiation measurement request includes the foregoing measurement configuration.
  • the destination host After receiving the measurement negotiation request sent by the source host, the destination host sends a negotiation response message that accepts the measurement if it is willing and able to perform IP performance measurement with the source host; if it is unwilling or unable to perform measurement with the source host IP performance, the rejection is sent. Response message.
  • the measurement configuration is also included in the negotiation response message that accepts the measurement.
  • the received negotiation response message receiving the measurement includes: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, Measurement content, effective wait delay, security check algorithm, key, measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
  • Step 703 Receive a negotiation response message that is sent by the destination host and receives the measurement.
  • the source host and the destination host After receiving the negotiation response message sent by the destination host, the source host and the destination host complete the negotiation process.
  • Step 704 Carry the first measurement information corresponding to the measurement content in an option field of the header field of the IP packet of the service data.
  • an IPv4 packet is taken as an example.
  • the measurement content includes delay and message misordering.
  • the corresponding first measurement information includes at least: a sending time measurement option and a sequence number measurement option; and for the grammatical error sequence, the corresponding first measurement information includes at least: a sequence number measurement option.
  • the first measurement information also includes a security check code option.
  • the first measurement information further includes a measurement session identification option.
  • the transmission time measurement option is 19:30:10, 30 milliseconds on August 09, 2009, and the sequence number measurement option is 0, security check code option.
  • the measurement session identification option is 0x1201.
  • the above measurement option is carried in the option field of the header field of the IP packet of the service data.
  • the option type for each measurement option uses the value of the option type specified in advance.
  • Step 705 Send the IP packet to the destination host.
  • the IP packet may be fragmented.
  • the destination host needs to reassemble and revert to the original IP packet, that is, the IP packet sent by the source host.
  • the destination host performs security check on the original IP packet, and after performing the check, it performs measurement according to the first measurement information carried in the IP packet, and obtains a delay and a packet error from the source host to the destination host in one direction. In order, the unidirectional IP performance metric of the IP Internet service is obtained.
  • the second measurement information includes: a transmission time measurement option, a sequence number measurement option, a reception time measurement option, a security check code option, and a measurement session identification option.
  • the transmission time measurement option is 19:30:10, 30 milliseconds on August 09, 2009
  • the sequence number measurement option is 0,
  • the reception time measurement option is 19:30:10, 50 milliseconds on August 09, 2009
  • security The checksum option is 0xDlD48962 and the measurement session identification option is 0x1201.
  • the destination host sends the generated measurement response to the source host.
  • Step 706 Receive a measurement response sent by the destination host, where the measurement response carries the second measurement information.
  • Step 707 Extract the second measurement information from the measurement response message, and record the time when the measurement response message is received.
  • the measurement response message receiving time is 19:30:10 on August 09, 2009. 80 milliseconds in seconds.
  • the measurement response message Before the second measurement information is extracted, if the measurement response message has been fragmented in the transmission, the measurement response message needs to be reorganized and restored to the original IP packet, that is, the measurement response originally sent by the destination host. Text.
  • the original IP packet After the original IP packet is restored, the original packet is also checked for security. If the security check is performed, the second measurement information carried in the measurement response packet is extracted.
  • Step 708 Perform recording statistics according to the second measurement information.
  • the source host records and counts according to the measurement options included in the second measurement information, and can calculate the delay of the two-way IP telephone service and the packet misorder according to the statistical result. For example, this IP Internet service (measurement session identification option 0x1201) IP ⁇ transmission two-way delay one measurement record is 50 milliseconds (measurement response message reception time minus transmission time measurement option value), message misorder can pass
  • the source host records the sequence number measurement options included in multiple measurement response packets to count the message sequence.
  • the deviation between the measurement result and the real performance of the service data can be reduced, a more accurate measurement result can be obtained, and the measurement is safer and more flexible.
  • a method of measurement provided by another embodiment of the present invention will be described below with reference to FIG. The method includes:
  • Step 801 The destination host receives the IP packet of the service data, where the IP packet carries the first measurement information.
  • the first measurement information is specifically referred to the above embodiment.
  • Step 802 extracting the first measurement information.
  • Step 803 Perform measurement on the measurement content corresponding to the first measurement information according to the first measurement information.
  • the measurement content For the corresponding relationship between the first measurement information and the measurement content, refer to the foregoing embodiment.
  • the specific measurement reference may also be made to the foregoing embodiment.
  • the measurement method provided in this embodiment can perform measurement according to the measurement information carried in the IP packet of the service data, so that the measurement result is closer to the real performance of the service data.
  • the first measurement information may be extracted from the option field of the header field of the IP packet; for the IPv6 IP packet, the extension header of the IP packet may be used. The first measurement information is extracted from the option field of the domain.
  • the measurement response message may be sent to the source host according to the first measurement information carried in the IP packet.
  • the measurement response carries second measurement information corresponding to the IP4 message, the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement The information also includes a reception time measurement option.
  • the method further includes: performing a security check on the IP packet; and/or decompressing the first measurement information carried in the IP packet.
  • the security check may be performed first, and after the verification is performed, the decompression may be performed, or the decompression may be performed first, and then the security check is performed after the decompressed IP packet is obtained.
  • the method further includes: obtaining a measurement configuration configured in itself; or acquiring a measurement configuration sent by the network management; or negotiating the measurement configuration with the source host.
  • the measurement configuration may be specifically referred to the foregoing two embodiments, and the measurement is negotiated with the source host.
  • the configuration process can also refer to the above two embodiments.
  • the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols.
  • the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied.
  • various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
  • the bandwidth occupation can be further reduced, and the security check code option can be used to ensure the security of the message and identify the spoofed message.
  • the two parties can flexibly configure the parameters, and understand the configuration of the other party well, and reach the agreement between the two parties.
  • specific measurement can be performed on a certain data service, making the measurement more flexible, more targeted, and more close to the real performance of the business data.
  • a host 900 according to an embodiment of the present invention is described below with reference to FIG.
  • the host 900 includes:
  • the message processing module 901 is configured to: carry, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
  • the sending module 902 is configured to send the IP packet processed by the message processing module 901 to the destination host.
  • the measurement information can be carried in the IP packet of the service data, so that the destination host can measure the real service data according to the measurement information, thereby obtaining a measurement result closer to the real performance of the service data.
  • the packet processing module 901 may include, for example, a first processing unit 9011, configured to carry the IP packet for the IPv4 according to the measurement content in the option field of the header field of the IP packet of the service data.
  • the processing module 901 may include one of the following or any combination thereof:
  • the third packet processing unit 9013 is configured to delay the measurement content, and carry and send the IP packet in the service data.
  • the time measurement option and the sequence number measurement option; the fourth 4th message processing unit 9014 is configured to carry the transmission time measurement option and the sequence number measurement option in the IP packet of the service data when the measurement content includes the jitter;
  • the text processing unit 9015 is configured to: when the measurement content includes the packet loss, carry the sequence number measurement option in the IP packet of the service data;
  • the sixth packet processing unit 9016 is configured to: when the measurement content includes the packet misorder,
  • the IP packet of the service data carries the sequence number measurement option.
  • the seventh message processing unit 9017 is configured to carry the sequence number measurement option in the IP packet of the service data when the measurement content includes the text repetition.
  • each message included in the message processing module 901 does not carry duplicate options.
  • the message processing module 901 includes the third message processing unit 9013 and the sixth message processing unit 9016, it does not carry two sequence number measurement options, that is, measurements carried in the IP message of the data service.
  • the information includes only one sequence number measurement option, not two.
  • the first packet processing unit 9011 may include one or more of the first packet processing subunit 90111 to the fifth packet processing subunit 90115; the second packet processing unit 9012 may include the sixth packet.
  • the first message processing sub-unit 90111/sixth message processing sub-unit 90121 is configured to delay the measurement content, and carry and send in the option field of the header field/extension header field of the IP packet of the service data.
  • the time measurement option and the sequence number measurement option; the second message processing subunit 90112 / the seventh message processing subunit 90122 is configured to: in the header field/extension header field of the IP packet of the service data when the measurement content includes jitter
  • the option field carries a transmission time measurement option and a sequence number measurement option
  • the third text processing sub-unit 90113/eighth processing sub-unit 90123 is configured to: in the header field of the IP packet of the service data when the measurement content includes packet loss/
  • the option field of the extended header field carries the sequence number measurement option
  • the unit 90124 is configured to carry the sequence number measurement option in the option field of the header field/extension header field of the TP packet of the service data when the measurement content includes the packet misordering
  • the processing sub-unit 90125 is configured to carry the sequence number measurement option in the option field of the header field/extension header field of the IP packet
  • the host 900 may further include a receiving module 903, configured to receive a measurement response message sent by the destination host, where the measurement response message is based on the IP packet sent by the sending module 902, and carries the IP address.
  • a receiving module 903 configured to receive a measurement response message sent by the destination host, where the measurement response message is based on the IP packet sent by the sending module 902, and carries the IP address.
  • Corresponding second measurement information wherein the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option.
  • the host 900 may further include an extracting module 904, configured to extract second measurement information from the measurement response message received by the receiving module 903, and a measurement module 905, configured to be extracted according to the extraction module 904.
  • the second measurement information is used for recording statistics.
  • the sending module 902 specifically includes: an eighth packet processing unit 9021, configured to carry the security check code option and/or the measurement session identifier option in the IP packet processed by the message processing module 901. And/or, a compression unit 9022, configured to compress the first measurement information in the IP4 message processed by the eighth message processing unit 9021; and a sending unit 9023, configured to send the eighth message to the destination host The IP processing text processed by the text processing unit 9021 or the IP 4 good text processed by the compression unit 9022.
  • the connection relationship between the eighth processing unit 9021 and the compression unit 9022 may be changed.
  • the sending module 902 includes: a compression unit 9022, configured to process the IP packet processed by the text processing module 901. The first measurement information is compressed; and/or the eighth message processing unit 9021 is configured to carry the security check code option and/or the measurement session identification option in the IP file processed by the compression unit 9022; the sending unit 9023, The IP packet processed by the compression unit 9022 or the IP packet processed by the eighth packet processing unit 9021 is sent to the destination host.
  • the host 900 may further include: a configuration module 906, configured to: Get the measurement configuration.
  • a configuration module 906 configured to: Get the measurement configuration.
  • Get the measurement configuration reference may be made to the above two embodiments.
  • the configuration module 906 may include, for example, a first obtaining unit 9061, configured to acquire a measurement configuration in the host, that is, obtain a measurement configuration statically configured in the host; and/or a second obtaining unit 9062, Obtain the measurement configuration sent by the network management system.
  • the configuration module 906 may further include a negotiating unit 9063, configured to negotiate a measurement configuration with the destination host according to the measurement configuration acquired by the first obtaining unit 9061 or the second obtaining unit 9062.
  • the negotiating unit 9063 may include, for example, a request generating subunit 90631, configured to generate a measurement negotiation request according to the measurement configuration acquired by the first obtaining unit 9061 or the second obtaining unit 9062; and requesting the sending subunit 90632, where The measurement negotiation request generated by the request generation sub-unit 90631 is sent to the destination host.
  • the response receiving sub-unit 90633 is configured to receive the negotiation response message sent by the destination host to receive the measurement.
  • the receiving module 903 may include, for example, a receiving subunit 9031, configured to receive a measurement response message sent by the destination host. Further, the receiving module 903 may further include: a recombination subunit 9032, configured to reassemble the IP4 message in the process of receiving the IP address received by the subunit 9031, and revert to the original IP ⁇ ⁇ ⁇ .
  • the receiving module 903 may further include: a decompression subunit 9033, configured to decompress the second measurement information carried by the measurement response message received by the receiving subunit 9031; and/or
  • the verification unit 9034 is configured to perform security verification on the measurement response message received by the receiving subunit 9031.
  • the syndrome unit 9034 and the decompression subunit 9033 may have various connection relationships.
  • the receiving subunit 9031 is connected to the recombining subunit 9032, and the decompressing subunit 9033 decompresses the second measurement information in the measurement response processed by the recombining subunit 9032, and the verify subunit 9034 decompresses the subunit.
  • the 9033 processed measurement response message is verified.
  • the receiving subunit 9031 is connected to the recombining subunit 9032, and the parity subunit 9034 is paired.
  • the measurement response message processed by the recombination subunit 9032 is checked, and the decompression subunit 9033 decompresses the second measurement information in the measurement response message passed by the verification subunit.
  • the parity subunit 9034 or the decompression subunit 9033 can also be directly connected to the reception subunit 9031.
  • the type of the protocol for the IP performance test can be extended, so that the type of the IP packet to be tested is not limited to the UDP protocol, and may include other protocols.
  • the measurement score is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied.
  • various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
  • the security check code option can be used to ensure the security of the text and identify the spoofed message.
  • the two parties can flexibly configure the parameters, and understand the configuration of the other party well, and reach the agreement between the two parties.
  • specific measurement can be performed on a certain data service, making the measurement more flexible, more targeted, and the result closer to the real performance of the business data.
  • the host 1000 includes: a receiving module 1001, configured to receive an IP packet of the service data, where the IP packet carries the first measurement information, and an extraction module 1002, configured to extract the first measurement from the IP packet received by the receiving module 1001.
  • the measurement module 1003 is configured to measure the measurement content corresponding to the first measurement information according to the first measurement information extracted by the extraction module 1002.
  • the host provided in this embodiment can perform measurement according to the measurement information carried in the IP packet of the service data, so that the measurement result is more accurate and closer to the real performance of the service data.
  • the extracting module 1002 may include, for example, a first extracting unit 10021, configured to extract first measurement information from an option field of a header field of an IPv4 IP data packet; and/or, a second extracting unit 10022, Used in the option field of the extended header field of the IPv6 IP datagram Extracting the first measurement information.
  • the host 1000 provided in this embodiment may further include: a sending module 1004, configured to send a measurement response according to the first measurement information carried in the IP packet received by the receiving module 1001 and the measurement configuration acquired by the configuration module 1005. Wen to source host.
  • the measurement response carries the second measurement information corresponding to the IP packet, where the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement The information also includes a reception time measurement option.
  • the sending module 1004 may further include: a generating unit 10041, configured to generate, according to the first measurement information carried in the IP packet received by the receiving module 1001 and the measurement configuration taken by the configuration module 1005. Corresponding second measurement information of the IP packet, where the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option;
  • the sending unit 10042 is configured to send a measurement response message that carries the second measurement information.
  • the measurement response packet can be an IP packet of the service data or a separate IP packet.
  • the receiving module 1001 includes: a receiving unit 10011, configured to receive an IP packet of service data.
  • the further receiving module 1001 may further include: a recombining unit
  • the IP packet received by the receiving unit 10011 is fragmented during the transmission, the IP packet is reassembled and restored to the original IP packet.
  • the receiving module 1001 may further include: a security check unit
  • the unit 10013 configured to perform security check on the IP packet received by the receiving unit 10011; and/or decompress the unit 10014, configured to decompress the first measurement information carried in the IP4 packet received by the receiving unit 10011.
  • the security check unit 10013 and the decompression unit 10014 may have various connection relationships.
  • the receiving unit 1001 1 is connected to the recombining unit 10012, and the decompressing unit 10014 decompresses the first measurement information in the IP packet processed by the recombining unit 10012, and the security check unit 10013 performs the measurement after the decompressing unit 10014.
  • the response message is verified.
  • the receiving unit 1001 1 is connected to the reorganization unit 10012, and the verification unit 10013 checks the IP packet processed by the reassembly unit 10012, and the decompression unit 10014 verifies the IP packet passed by the security verification unit 10013. A measurement information is decompressed.
  • the check unit 10013 or the decompression unit 10014 can also be directly connected to the receiving unit 10011.
  • the host 1000 may further include: a configuration module 1005, configured to acquire a measurement configuration, and the measurement configuration may refer to the foregoing embodiment.
  • the measurement configuration can be obtained by the configuration module 1005, and the measurement content can be known.
  • the configuration module 1005 may further include: a first obtaining unit 10051, configured to acquire a measurement configuration in the host, that is, obtain a measurement configuration statically configured in the host; and/or a second obtaining unit 10052, Used to obtain the measurement configuration sent by the NMS.
  • a first obtaining unit 10051 configured to acquire a measurement configuration in the host, that is, obtain a measurement configuration statically configured in the host
  • a second obtaining unit 10052 Used to obtain the measurement configuration sent by the NMS.
  • the configuration module 1005 may further include a negotiating unit 10053, configured to negotiate a measurement configuration with the source host.
  • the negotiating unit 10053 may include, for example, a request receiving subunit 100531 to receive a measurement negotiation request, and a request response subunit 100532, configured to receive, according to the request, the measurement configuration carried in the measurement negotiation request received by the subunit 100531, And when the measurement can be accepted, the feedback response message receiving the measurement is fed back to the source host, and when the measurement is unwilling or unacceptable, the response rejection message is fed back to the source host.
  • the packet protocol type of the IP performance test can be extended, so that the type of the IP packet protocol to be tested is not limited to the UDP protocol, and may include other protocols.
  • the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied.
  • various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
  • the bandwidth occupation can be further reduced, and the security code can be ensured by carrying the security check code option, and the camouflage is discriminated. 4 ⁇ .
  • the measurement system includes a source host 1101, and the source host can perform IP communication with the destination host 1102, and is configured to carry first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content; and send the information to the destination host.
  • the IP packet includes a source host 1101, and the source host can perform IP communication with the destination host 1102, and is configured to carry first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content; and send the information to the destination host.
  • the IP packet includes a source host 1101, and the source host can perform IP communication with the destination host 1102, and is configured to carry first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content; and send the information to the destination host.
  • the measurement information can be carried in the IP packet of the service data, so that the destination host can measure the real service data according to the measurement information, thereby obtaining a measurement result closer to the real performance of the service data.
  • the measurement system further includes a destination host 1102, where the destination host 1102 is configured to receive an IP packet of the service data, extract the first measurement information carried in the IP packet, and perform measurement according to the first measurement information. .
  • the interaction between the source host 1101 and the destination host 1102 can refer to the methods shown in FIG. 1 and FIG. 8 and the specific examples as shown in FIG.
  • the embodiment of the present invention further provides an IP packet of a data service, where the IP packet includes measurement information, where the measurement information includes one or more measurement options.
  • the measurement information is used by the receiving host to perform measurement based on the measurement information.
  • the one or more measurement options may be carried in the option field of the header field of the IP packet; for IPv6 IP packets, the one or more measurement options may be carried in the IP address.
  • the extension field of the message is in the option field.
  • the measurement information may include one or any combination of the following: sequence number measurement options, transmission time measurement options, reception time measurement options, security check code options, measurement session identification options.
  • the sequence number measurement option is used to identify the 4 ⁇ text; the send time measurement option is used to indicate the time when the source host sends the IP packet; and the receive time measurement option is used to indicate that the destination host receives the IP packet.
  • the option type can be represented by 8 bits, where 1 bit indicates the copy flag, 2 bits indicate the option class, and 5 bits indicate the option number.
  • the option category of the above measurement options can be 2 (2 means for debugging and measurement), and the option number for sending time measurement option, receiving time measurement option, sequence number measurement option, measurement session identification option, security check code option can be separately For 5, 6, 7, 8, and 9.
  • the option type can also be represented by 8 bits, and the highest 2 bits of the option type of the above measurement option are defined as "00", so that the IP device capable of supporting the option type can be recognized by the option, IP devices that support this option type ignore this option and avoid exception handling that occurs because the IP device cannot support this option.
  • the options for the send time measurement option, the receive time measurement option, the sequence number measurement option, the measurement session identification option, and the security check code option can be 11, 12, 13, 14, and 15, respectively.
  • the destination host can perform measurement on the specific service data IP packet, and the obtained measurement result is closer to the real performance of the service data.
  • the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols.
  • the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied.
  • various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM) or a random access memory (RAM).
  • the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

A method for transmitting measure information includes: according to measure content, carrying the first measure information corresponding to the measure content in the IP packet of the service data; and transmitting the IP packet to a destination host. The present invention also discloses a measure method, which includes: receiving the IP packet of the service data, wherein the first measure information is carried in the IP packet; extracting the first measure information; according to the first measure information, measuring the measure content corresponding to the first measure information. A host and a measure system are also disclosed by the present invention. By the technical solutions provided by the present invention, carrying the measure information corresponding to the measure content in the IP packet of the service data, enables the receiver to perform statistic measurement according to the measure information, thus the deviation existing between the measure result and the real performance of the service data is reduced, and the requirement for wireless network QoS control is met much better.

Description

一种测量方法、 装置和系统 本申请要求于 2009 年 9 月 17 日提交中国专利局、 申请号为 200910190321. 发明名称为"一种测量方法、 装置和系统"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。  The present invention claims the priority of the Chinese patent application entitled "A Measurement Method, Apparatus and System" by the Chinese Patent Office, the application No. 200910190321. The entire contents are incorporated herein by reference.
技术领域 本发明涉及通信技术领域, 具体而言是涉及一种测量技术。 TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a measurement technique.
背景技术 为了能够满足多样化的用户带宽和质量需求, 为多种业务提供更高的 带宽, 全面降低成本, 无线接入网络目前越来越趋于 IP化。 在实现无线接 入网 IP化的过程中, 无线网络的 QoS ( Quality of Service, 服务质量)控制 逐渐成为一个重要的功能。 BACKGROUND In order to meet diverse user bandwidth and quality requirements, provide higher bandwidth for multiple services, and reduce overall costs, wireless access networks are becoming more and more IP-oriented. In the process of implementing IP access in the wireless access network, the QoS (Quality of Service) control of the wireless network gradually becomes an important function.
在无线接入网的 IP化过程中, 无线网络的 QoS依赖于 IP网络性能测 试。 目前对于端到端的 IP 网络性能测试是在没有业务流量的情况下, 由 IPPM ( IP Performance Metrics, IP性能度量)功能实体主动发送 IP性能测 量分组或者进行 IP性能测量相关的操作。 IPPM功能实体测量出来的 IP性 能指标可以作为评价 IP网络性能的依据。  In the IP process of the radio access network, the QoS of the wireless network depends on the IP network performance test. Currently, the end-to-end IP network performance test is performed by IPPM (IP Performance Metrics) functional entity to actively send IP performance measurement packets or perform IP performance measurement operations without service traffic. The IP performance indicators measured by the IPPM functional entity can be used as a basis for evaluating the performance of the IP network.
目前的这种 IP网络性能测试的方法, 是通过主动发送数据包来测量网 络性能, 并且测量的对象是主动发送的测量报文而非业务数据报文。 由于 测量报文与数据业务报文不同, 在网络中转发处理上可能不一致, 从而导 致使用测量报文测量出的结果与业务数据的真实性能之间会存在偏差。  The current method for IP network performance testing is to measure network performance by actively transmitting data packets, and the measurement object is an active measurement message instead of a service data message. Since the measurement packet is different from the data service packet, the forwarding processing may be inconsistent in the network, which may result in a deviation between the measurement result measured by the measurement message and the real performance of the service data.
并且, 目前的这种 IP网络性能测试的方法,测量报文仅限于 UDP( User Datagram Protocol, 用户数据协议)数据报文, 而其他协议数据报文的测量 还是空白, 例如该方法目前还不包括 TCP ( Transport Control Protocol, 传 输控制协议)数据报文的测量。 Moreover, in the current method of IP network performance testing, measurement packets are limited to UDP (User Datagram Protocol) data packets, and other protocol data packets are measured. It is still blank. For example, the method does not currently include measurement of TCP (Transport Control Protocol) data packets.
由于目前的测量方法仅仅是针对测量报文而不是业务数据, 因此无法 满足无线网络 QoS控制的需求。  Since the current measurement method is only for measurement messages rather than service data, it cannot meet the requirements of wireless network QoS control.
发明内容 本发明实施例提供了一种测量信息的发送方法以及测量方法, 以減少 测量结杲与业务数据真实性能之间存在的偏差。 SUMMARY OF THE INVENTION Embodiments of the present invention provide a method for transmitting measurement information and a measurement method to reduce the deviation between measurement scores and real performance of service data.
本发明实施例还提供了一种主机和测量系统。  The embodiment of the invention also provides a host and a measurement system.
本发明实施例提供的一种测量信息的发送方法, 该方法包括: 源主机根据测量内容在业务数据的 IP报文中携带与该测量内容对应的 第一测量信息;  A method for transmitting measurement information according to an embodiment of the present invention, the method includes: the source host carrying, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
向目的主机发送该 IP报文。  Send the IP packet to the destination host.
本发明实施例提供的一种测量方法, 该方法包括:  A measurement method provided by an embodiment of the present invention includes:
目的主机接收业务数据的 IP报文, 该 IP报文中携带第一测量信息; 提取该第一测量信息;  The destination host receives the IP packet of the service data, where the IP packet carries the first measurement information; and the first measurement information is extracted;
根据该第一测量信息, 对该第一测量信息对应的测量内容进行测量。 本发明实施例提供的一种主机, 该主机包括:  The measurement content corresponding to the first measurement information is measured according to the first measurement information. A host provided by an embodiment of the present invention includes:
报文处理模块, 用于根据测量内容在业务数据的 IP报文中携带与该测 量内容对应的第一测量信息;  a packet processing module, configured to carry, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
发送模块, 用于向目的主机发送报文处理模块处理后的 IP报文。 本发明实施例提供的一种主机, 该主机包括:  The sending module is configured to send the IP packet processed by the packet processing module to the destination host. A host provided by an embodiment of the present invention includes:
接收模块, 用于接收业务数据的 IP报文,该 IP报文中携带第一测量信 息;  a receiving module, configured to receive an IP packet of service data, where the IP packet carries the first measurement information;
提取模块, 用于从接收模块接收的 IP报文中提取该第一测量信息; 测量模块, 用于根据提取模块提取的第一测量信息, 对该第一测量信 息对应的测量内容进行测量。 An extracting module, configured to extract the first measurement information from the IP packet received by the receiving module; And a measurement module, configured to measure, according to the first measurement information extracted by the extraction module, the measurement content corresponding to the first measurement information.
本发明实施例提供的一种测量系统, 该系统包括: 能够与目的主机通 信的源主机, 和能够与源主机通信的目的主机,  A measurement system provided by an embodiment of the present invention includes: a source host capable of communicating with a destination host, and a destination host capable of communicating with the source host,
该源主机, 用于根据测量内容在业务数据的 IP 4艮文中携带与该测量内 容对应的第一测量信息; 并向目的主机发送该 IP报文;  The source host is configured to carry the first measurement information corresponding to the measurement content in the IP data of the service data according to the measurement content; and send the IP packet to the destination host;
所述目的主机,用于接收业务数据的 IP报文,所述 IP报文中携带第一 测量信息; 从所述接收模块接收的 IP报文中提取所述第一测量信息; 根据 所述提取模块提取的第一测量信息, 对所述第一测量信息对应的测量内容 进行测量。  The destination host is configured to receive an IP packet of the service data, where the IP packet carries the first measurement information, and the first measurement information is extracted from the IP packet received by the receiving module; The first measurement information extracted by the module is used to measure the measurement content corresponding to the first measurement information.
通过上述技术方案的描述可知, 本发明各实施例通过在业务数据的 IP 报文中携带测量内容对应的测量信息, 使得接收方可以根据该测量信息进 行统计测量, 从而减少测量结果与业务数据真实性能之间存在的偏差, 更 好的满足无线网络 QoS控制的需求。  According to the description of the foregoing technical solution, the embodiments of the present invention carry the measurement information corresponding to the measurement content in the IP packet of the service data, so that the receiver can perform statistical measurement according to the measurement information, thereby reducing the measurement result and the service data. There is a deviation between performances to better meet the needs of wireless network QoS control.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明实施例提供的一种测量方法的流程示意图;  FIG. 1 is a schematic flowchart of a measurement method according to an embodiment of the present disclosure;
图 2为本发明实施例中 IPv4头域的结构示意图;  2 is a schematic structural diagram of an IPv4 header field according to an embodiment of the present invention;
图 3为本发明实施例中 IPv6头域以及 展头域的结构示意图; 图 4为本发明实施例中压缩方法的流程示意图; 图 5为本发明实施例中协商方法的流程示意图; 3 is a schematic structural diagram of an IPv6 header field and a header field according to an embodiment of the present invention; FIG. 4 is a schematic flowchart of a compression method according to an embodiment of the present invention; FIG. 5 is a schematic flowchart of a negotiation method according to an embodiment of the present invention;
图 6为本发明实施例中接收方法的流程示意图;  6 is a schematic flowchart of a receiving method according to an embodiment of the present invention;
图 7为本发明实施例提供的一种测量方法的流程示意图;  FIG. 7 is a schematic flowchart of a measurement method according to an embodiment of the present disclosure;
图 8为本发明实施例提供的一种测量方法的流程示意图;  FIG. 8 is a schematic flowchart diagram of a measurement method according to an embodiment of the present disclosure;
图 9为本发明实施例提供的一种主机的结构示意图;  FIG. 9 is a schematic structural diagram of a host according to an embodiment of the present disclosure;
图 10为本发明实施例提供的一种主机的结构示意图;  FIG. 10 is a schematic structural diagram of a host according to an embodiment of the present disclosure;
图 11为本发明实施例提供的一种测量系统的结构示意图。  FIG. 11 is a schematic structural diagram of a measurement system according to an embodiment of the present invention.
具体实施方式 为使本发明的目的、 技术方案、 及优点更加清楚明白, 下面结合附图 并举实施例, 对本发明提供的技术方案进一步详细描述。 显然, 所描述的 实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所 有其他实施例, 都属于本发明保护的范围。 DETAILED DESCRIPTION OF THE EMBODIMENTS In order to make the objects, technical solutions, and advantages of the present invention more comprehensible, the technical solutions provided by the present invention are further described in detail below with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面结合附图 1 ,对本发明一实施例提供的测量信息发送方法进行详细 说明。 该测量方法包括:  The measurement information transmission method provided by an embodiment of the present invention will be described in detail below with reference to FIG. The measurement method includes:
步骤 101 , 源主机根据测量内容在业务数据的 IP报文中携带与该测量 内容对应的第一测量信息。  Step 101: The source host carries the first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content.
步骤 102, 向目的主机发送该 IP报文。  Step 102: Send the IP packet to the destination host.
本实施例通过将与测量内容对应的第一测量信息携帝到业务数据的 IP 报文中, 并将该 IP报文发送至目的主机,使得目的主机可以根据该 IP报文 中携带的第一测量信息对测量内容进行测量, 例如对第一测量信息进行记 录、 统计, 并根据统计结果计算 IP性能度量值。 由于是通过将第一测量信 息携带在业务数据的 IP报文中,因此可以对真实的业务数据直接进行测量, 从而保证了测量结杲与业务数据真实性能之间存在的偏差更小, 更好的满 足无线网络 QoS控制的需求。 并且, 本实施例由于对真实的业务数据进行 测量, 避免了只能对 UDP协议的报文进行测量的不足, 扩展了被测量的 IP •ί艮文的类型。 进一步的, 由于携带的第一测量信息为测量内容对应的测量 信息, 因此避免了携带不必要的测量信息, 在实现了灵活测量的同时, 节 省了带宽。 In this embodiment, the first measurement information corresponding to the measurement content is carried into the IP packet of the service data, and the IP packet is sent to the destination host, so that the destination host can be based on the first packet carried in the IP packet. The measurement information measures the measurement content, for example, records and counts the first measurement information, and calculates an IP performance metric according to the statistical result. Since the first measurement information is carried in the IP packet of the service data, the real service data can be directly measured, thereby ensuring that the deviation between the measurement balance and the real performance of the service data is smaller and better. Full The need for wireless network QoS control. Moreover, in this embodiment, the measurement of the real service data avoids the insufficiency of only measuring the UDP protocol packet, and expands the type of the IP address to be measured. Further, since the carried first measurement information is measurement information corresponding to the measurement content, unnecessary measurement information is avoided, and bandwidth is saved while implementing flexible measurement.
进一步的, 本实施例中, 需要将第一测量信息携带在业务数据的 IP报 文中, 具体的例如可以携带在 IP报文的头域中, 例如对于 IPv4的 IP报文, 可以携带在头域中的选项(Option )字段; 对于 IPv6的 IP报文, 可以携带 在扩展头域中的选项字段中, 例如目的地选项( Destination Options )字段。 其中 IPv4的 IP报文的头域可以参照附图 2所示的结构, IPv6的 IP报文的 头域以及扩展头域可以参照附图 3所示的结构。  Further, in this embodiment, the first measurement information needs to be carried in the IP packet of the service data, and the specific information may be carried in the header field of the IP packet, for example, the IPv4 IP packet may be carried in the header. Option (Option) field in the domain; For IPv6 IP packets, it can be carried in the option field in the extended header field, such as the Destination Options field. For the header field of the IPv4 IP packet, refer to the structure shown in FIG. 2. The header field and the extended header field of the IPv6 IP packet can refer to the structure shown in FIG.
本实施例中, 测量内容例如可以包括以下之一或其任意组合: 时延、 抖动、 丢包、 报文错序、 报文重复。 上述测量内容仅是示例, 并不限制本 发明的范围, 还可以是其他的测量内容。  In this embodiment, the measurement content may include, for example, one of the following or any combination thereof: delay, jitter, packet loss, packet misorder, and message repetition. The above measurement contents are merely examples, and do not limit the scope of the present invention, and may be other measurement contents.
本实施例中, 第一测量信息可以包括一个或者多个测量选项, 例如可 以包括以下之一或其任意组合: 顺序号测量选项, 发送时间测量选项, 安 全校验码选项、 测量会话标识选项。  In this embodiment, the first measurement information may include one or more measurement options, for example, may include one or any combination of the following: sequence number measurement option, transmission time measurement option, security check code option, measurement session identification option.
其中, 顺序号测量选项用于标识 4艮文; 发送时间测量选项用于表示源 主机发送 IP报文的时间; 安全校验码选项用于进行安全校验; 测量会话标 识选项用于表示正在进行的 IP性能测量属于哪个测量会话 , 其中测量会话 与 IP业务会话——对应。  The sequence number measurement option is used to identify the message; the send time measurement option is used to indicate the time when the source host sends the IP packet; the security check code option is used to perform the security check; and the measurement session identification option is used to indicate that the process is in progress. Which measurement session belongs to the IP performance measurement, where the measurement session corresponds to the IP service session.
在本实施例中, 不同的测量内容具有各自对应的第一测量信息。  In this embodiment, different measurement contents have respective first measurement information.
例如, 在测量内容包括了时延时, 第一测量信息至少包括: 发送时间 测量选项和顺序号测量选项。 例如, 在测量内容包括了抖动时, 第一测量 信息至少包括: 发送时间测量选项和顺序号测量选项。 例如, 在测量内容 包括了丟包时, 第一测量信息至少包括: 顺序号测量选项。 例如, 在测量 内容包括了报文错序时, 第一测量信息至少包括: 顺序号测量选项。 例如, 在测量内容包括了报文重复时, 第一测量信息至少包括: 顺序号测量选项。 For example, when the measurement content includes a time delay, the first measurement information includes at least: a transmission time measurement option and a sequence number measurement option. For example, when the measurement content includes jitter, the first measurement information includes at least: a transmission time measurement option and a sequence number measurement option. For example, when the measurement content includes packet loss, the first measurement information includes at least: a sequence number measurement option. For example, in measurement When the content includes the wrong sequence of the message, the first measurement information includes at least: a sequence number measurement option. For example, when the measurement content includes the message repetition, the first measurement information includes at least: a sequence number measurement option.
在测量内容包括多个内容的组合时, 该测量内容对应的第一测量信息 中不含有重复的测量选项。 例如, 测量内容包括抖动和丢包, 则该测量内 容对应的第一测量信息至少包括: 顺序号测量选项和发送时间测量选项, 不包括重复的顺序号测量选项。  When the measurement content includes a combination of a plurality of contents, the first measurement information corresponding to the measurement content does not contain repeated measurement options. For example, the measurement content includes jitter and packet loss, and the first measurement information corresponding to the measurement content includes at least: a sequence number measurement option and a transmission time measurement option, and does not include a repeated sequence number measurement option.
此外, 无论测量内容包括哪些具体的内容, 该测量内容对应的第一测 量信息都可以进一步包括测量会话标识选项和 /或安全校验码选项。  In addition, regardless of the specific content included in the measurement content, the first measurement information corresponding to the measurement content may further include a measurement session identification option and/or a security check code option.
在本实施例中, 在第一测量信息中包括安全校验码选项时, 目的主机 可以在接收到该 IP报文后, 进行安全校验, 从而辨別伪造的测量报文, 保 证测量的准确和安全。 在第一测量信息中包括测量会话标识选项时, 目的 主机可以根据不同的测量会话进行统计, 从而实现对不同的测量会话分别 进行测量, 得到每个测量会话的测量结果, 从而得到每个 IP业务会话的 IP 性能度量值, 使得测量结果可以更精确, 测量方式可以更灵活。  In this embodiment, when the security check code option is included in the first measurement information, the destination host may perform security check after receiving the IP packet, thereby discriminating the forged measurement packet, and ensuring accurate measurement. Safety. When the measurement information identifier is included in the first measurement information, the destination host can perform statistics according to different measurement sessions, so that different measurement sessions can be separately measured, and measurement results of each measurement session are obtained, thereby obtaining each IP service. The IP performance metrics of the session make the measurement results more accurate and the measurement method more flexible.
在本实施例中,在业务数据的 IP报文中携带第一测量信息时,对于 IPv4 和 IPv6的 IP 文存在差异。  In this embodiment, when the first measurement information is carried in the IP packet of the service data, there is a difference between the IPv4 and IPv6 IP documents.
为了实现在业务数据的 IP报文中携带测量信息, 本发明实施例扩展了 现有的 IPv4协议和 IPv6协议,新增了测量选项,例如,发送时间测量选项、 接收时间测量选项、 顺序号测量选项、 测量会话标识选项、 安全校验码选 项。按照 IPv4或者 IPv6协议的格式,选项由三个部分组成:选项类型( Option Type ) 、 选项长度和选项内容。 为了区別于其他选项, 对于这些新增的测 量选项, 需要使用不同于其他选项的选项类型, 并且上述测量选项的选项 类型定义为, 用于端到端 IP性能测量,且中间节点的 IP设备不能删除或者 修改这些端到端测量选项的内容。  In order to carry the measurement information in the IP packet of the service data, the embodiment of the present invention extends the existing IPv4 protocol and the IPv6 protocol, and adds measurement options, such as a transmission time measurement option, a reception time measurement option, and a sequence number measurement. Options, measurement session identification options, security check code options. According to the IPv4 or IPv6 protocol format, the option consists of three parts: Option Type, option length, and option content. In order to distinguish it from other options, for these new measurement options, an option type different from the other options is required, and the option type of the above measurement option is defined as, for end-to-end IP performance measurement, and the IP device of the intermediate node cannot Delete or modify the contents of these end-to-end measurement options.
例如在 IPv4的报文中, 选项类型可以通过 8比特表示, 其中 1比特表 示拷贝标记( copied flag ) , 2比特表示选项类别 ( option class ) , 5比特表 示选项号码( option number ) 。 上述测量选项的选项类别可以为 2 ( 2代表 用于调试和测量) , 且发送时间测量选项、 接收时间测量选项、 顺序号测 量选项、 测量会话标识选项、 安全校验码选项的选项号码可以分别为 5、 6、 7、 8、 9。 For example, in an IPv4 message, the option type can be represented by 8 bits, where 1 bit represents a copy flag, and 2 bits represent an option class, a 5-bit table. Show option number ( option number ). The option category of the above measurement options can be 2 (2 means for debugging and measurement), and the option number for sending time measurement option, receiving time measurement option, sequence number measurement option, measurement session identification option, security check code option can be separately For 5, 6, 7, 8, and 9.
例如在 IPv6的报文中, 选项类型也可以通过 8比特表示, 上述测量选 项的选项类型的最高 2个比特定义为 "00" , 从而可以使得能够支持该选 项类型的 IP设备识别该选项,不能够支持该选项类型的 IP设备忽略该选项, 避免由于 IP设备无法支持该选项而发生的异常处理。 例如, 发送时间测量 选项、 接收时间测量选项、 顺序号测量选项、 测量会话标识选项、 安全校 -验码选项的选项类型可以分别为 11、 12、 13、 14、 15。  For example, in an IPv6 message, the option type can also be represented by 8 bits, and the highest 2 bits of the option type of the above measurement option are defined as "00", so that the IP device capable of supporting the option type can be recognized by the option, IP devices that support this option type ignore this option and avoid exception handling that occurs because the IP device cannot support this option. For example, the options for the send time measurement option, the receive time measurement option, the sequence number measurement option, the measurement session identification option, and the security check code option can be 11, 12, 13, 14, and 15, respectively.
本实施例中, 因为源主机和目的主机在 IP报文中增加了测量选项导致 业务数据的 IP报文长度发生变化, 因此源主机和目的主机需要在测量过程 中动态调整自身保存的 MTU ( Minimum Transmission Unit, 最小传输单元) 值。  In this embodiment, the source host and the destination host need to dynamically adjust the MTU saved in the measurement process because the source host and the destination host add measurement options to the IP packet to change the IP packet length of the service data. Transmission Unit, minimum transmission unit) value.
进一步的, 本实施例中还可以对第一测量信息进行压缩。 在对第一测 量信息进行压缩时, 可以是压缩选项字段, 也可以压缩整个头域。 通过压 缩可以减少 IP报文所占用的带宽, 保证传输的顺利。  Further, in the embodiment, the first measurement information may also be compressed. When the first measurement information is compressed, it may be a compression option field or an entire header field. By compressing, the bandwidth occupied by IP packets can be reduced, and the transmission can be smooth.
在本实施例中, 对第一测量信息的压缩可以仅压缩部分的第一测量信 息, 例如仅压缩发送时间测量选项和 /或顺序号测量选项, 而不压缩安全校 验码选项和 /或测量会话标识选项。  In this embodiment, the compression of the first measurement information may only compress a portion of the first measurement information, such as only the transmission time measurement option and/or the sequence number measurement option, without compressing the security check code option and/or measurement. Session identification options.
本实施例中, 上述压缩方法例如可以为如图 4所示的方法:  In this embodiment, the above compression method may be, for example, the method shown in FIG. 4:
步骤 401 , 在第一个带有测量信息的 IP报文中初始化测量信息的上下 文, 其中初始化使用的测量信息可以为源主机和目的主机约定的配置。  Step 401: Initialize the context of the measurement information in the first IP packet with the measurement information, where the measurement information used for initialization may be a configuration agreed by the source host and the destination host.
步骤 402,接收目的主机发送的反馈响应,其中反馈响应为目的主机根 据第一个带有测量信息的 IP ·ί艮文确定测量信息的上下文后发送的。  Step 402: Receive a feedback response sent by the destination host, where the feedback response is sent after the destination host determines the context of the measurement information according to the first IP with the measurement information.
步骤 403 , 根据待发送的测量信息与初始化的测量信息上下文的变化, 在后续的业务数据的 TP报文中, 携带发送时间测量选项、 接收时间测量选 项、 顺序号测量选项等的变化值, 从而能够节约带宽。 Step 403, according to the change of the measurement information to be sent and the context of the initialized measurement information, In the TP packet of the subsequent service data, the change value of the transmission time measurement option, the reception time measurement option, the sequence number measurement option, and the like are carried, thereby saving bandwidth.
目的主机在接收业务数据的 IP报文后, 可以根据测量信息上下文以及 上述变化值, 获知测量信息中包括的各测量选项的具体内容, 即解压缩, 并根据解压缩得到的测量选项进行记录和统计,最后计算出 IP性能度量值。  After receiving the IP packet of the service data, the destination host can learn the specific content of each measurement option included in the measurement information according to the measurement information context and the change value, that is, decompress, and record according to the decompressed measurement option. Statistics, and finally calculate the IP performance metric.
进一步的, 本实施例中还可以包括获取测量配置的步骤, 例如可以获 取配置在源主机自身中的测量配置, 还可以是获取网管发送的测量配置。 在获取了上述测量配置后, 进一步的, 本实施例还可以包括根据上述获取 的测量配置与目的主机协商测量配置的步骤。  Further, in this embodiment, the step of acquiring the measurement configuration may be included, for example, the measurement configuration configured in the source host itself may be obtained, or the measurement configuration sent by the network management system may be acquired. After the measurement configuration is obtained, further, the embodiment may further include the step of negotiating the measurement configuration with the destination host according to the obtained measurement configuration.
具体而言, 获取测量配置对于源主机和目的主机而言, 可以是获取通 过静态配置在自身中的测量配置; 或者也可以通过网管远端操作实现, 即 网管发送测量配置给源主机和目的主机。 其中, 目的主机获取测量配置还 可以是通过源主机在获取了测量配置后, 与目的主机协商测量配置实现。 进行测量配置协商的可以为源主机与目的主机, 也可以为源主机与目的主 机的测量代理节点, 或者为源主机的测量代理节点与目的主机, 或者为源 主机的测量代理节点与目的主机的测量代理节点。 在本实施例以及后续实 施例中, 以源主机与目的主机进行测量协商为例。 并且可以认为与测量代 理节点之间进行测量配置的协商, 和与源主机和目的主机之间进行测量配 置的协商基本相同, 并且测量代理节点与源主机或者目的主机可以在一个 实体中, 也可以实现为两个实体。  Specifically, the measurement configuration may be obtained by the static configuration of the source host and the destination host, or may be implemented by the network management remote operation, that is, the network management system sends the measurement configuration to the source host and the destination host. . The destination host obtains the measurement configuration, and the source host negotiates the measurement configuration with the destination host after obtaining the measurement configuration. The measurement configuration negotiation may be a source host and a destination host, or a measurement proxy node of the source host and the destination host, or a measurement proxy node and a destination host of the source host, or a measurement proxy node and a destination host of the source host. Measure the proxy node. In this embodiment and the following embodiments, the measurement negotiation between the source host and the destination host is taken as an example. And it can be considered that the negotiation of the measurement configuration with the measurement proxy node is basically the same as the negotiation of the measurement configuration between the source host and the destination host, and the measurement proxy node and the source host or the destination host may be in one entity, or Implemented as two entities.
其中, 上述测量配置例如可以包括: 测量内容。 测量配置除了包括上 述内容以外, 进一步还可以包括以下之一或其任意组合: 顺序号测量选项 的初始值、 测量信息的发送间隔、 测量周期、 有效等待时延、 测量校验算 法、 密钥、 测量起始时间、 测量类型、 压缩指示、 测量会话标识、 测量方 向、 源主机地址、 目的主机地址。  Wherein, the above measurement configuration may include, for example, measurement content. The measurement configuration may further include one or any combination of the following in addition to the above: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, an effective waiting delay, a measurement verification algorithm, a key, Measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
顺序号测量选项的初始值用于表示第一个带有测量信息的 IP报文中, 顺序号测量选项的值。 测量信息的发送间隔用于表示带有相邻顺序号的两 个 IP报文之间的发送间隔时长, 也即指示源主机在发送了一个带有测量信 息的 IP报文之后, 发送下一个带有测量信息的 IP报文的大致时间(因为精 确时间取决于 IP业务会话产生业务数据 IP报文的时间), 测量信息的发送 间隔还可以表示为测量信息的发送频率。 测量周期用于表示本次测量持续 的时长。 测量内容即为本次测量需要测量的内容, 也即上面提到的丢包、 抖动、 报文错序等。 有效等待时延用于表示当目的主机接收时延超过了该 值的 IP报文时,应该记录该 IP报文的时延为无穷大, 即在性能测量方面认 为该报文丢失。 测量校验算法用于表示进行校验所采用的算法, 例如安全 校验或者冗余校验所采用的算法。 密钥用于指示计算校验码所使用的密钥 , 可以是发送具体的密钥内容, 也可以是源主机和目的主机都保留有密钥列 表, 发送密钥列表的索引, 不发送具体的密钥内容, 本实施例中校验码包 括安全校验码。 测量起始时间用于表示源主机向目的主机发送第一个带有 测量信息的 IP报文的大致时间(因为精确时间取决于 IP业务会话产生业务 数据 IP报文的时间)。 测量类型用于表示本次测量是主动测量或者是被动 测量,其中主动测量即为对特殊的测量报文(专门用于 IP性能测量的 IP报 文)进行测量而非对业务数据的 IP报文进行测量, 而被动测量即为对业务 数据的 IP报文进行测量, 而非对特殊的测量报文进行测量。 压缩指示用于 表示该报文中的测量信息经过压缩, 需要进行解压缩。 测量方向用于表示 本次测量为单向测量或者为双向测量, 单向测量即为源主机到目的主机单 方向上的时延、 抖动、 丢包、 报文错序、 报文重复等测量, 而双向测量即 为源主机到目的主机再返回源主机两个方向环回路由上的时延、 抖动、 丢 包、 报文错序、 报文重复等测量。 The initial value of the sequence number measurement option is used to represent the first IP message with measurement information. The value of the sequence number measurement option. The sending interval of the measurement information is used to indicate the length of the sending interval between two IP packets with adjacent sequence numbers, that is, the source host is sent the next band after sending an IP packet with measurement information. The approximate time of the IP packet with the measurement information (because the exact time depends on the time when the IP service session generates the service data IP packet), the transmission interval of the measurement information can also be expressed as the transmission frequency of the measurement information. The measurement period is used to indicate the duration of the current measurement. The measurement content is the content that needs to be measured for this measurement, that is, the packet loss, jitter, and message misordering mentioned above. The effective waiting delay is used to indicate that when the destination host receives an IP packet whose delay exceeds the value, the delay of the IP packet should be recorded as infinity, that is, the packet is considered to be lost in performance measurement. The measurement check algorithm is used to represent the algorithm used to perform the verification, such as the algorithm used for security check or redundancy check. The key is used to indicate the key used to calculate the check code. It may be that the specific key content is sent, or the source host and the destination host both retain the key list, and the index of the sent key list is not sent. Key content, in this embodiment, the check code includes a security check code. The measurement start time is used to indicate the approximate time that the source host sends the first IP packet with measurement information to the destination host (because the exact time depends on the time when the IP service session generates the service data IP packet). The measurement type is used to indicate whether the measurement is an active measurement or a passive measurement. The active measurement is a measurement of a special measurement message (an IP packet dedicated to IP performance measurement) rather than an IP packet for service data. The measurement is performed, and the passive measurement is to measure the IP packet of the service data, instead of measuring the special measurement message. The compression indication is used to indicate that the measurement information in the message is compressed and needs to be decompressed. The measurement direction is used to indicate that the measurement is a one-way measurement or a two-way measurement. The one-way measurement is the measurement of delay, jitter, packet loss, packet misordering, and message repetition in a single direction from the source host to the destination host. The two-way measurement is the measurement of the delay, jitter, packet loss, packet misorder, and packet repetition in the two directions of the source host to the destination host and then back to the source host.
本实施例中, 协商测量配置的方法例如可以为附图 5所示的方法。 协 商测量配置的方法包括:  In this embodiment, the method for negotiating the measurement configuration may be, for example, the method shown in FIG. Methods for negotiating configuration configurations include:
步骤 501 , 根据获取的测量配置, 生成测量协商请求, 其中测量协商请 求中包括测量配置。 Step 501: Generate a measurement negotiation request according to the obtained measurement configuration, where the measurement negotiation is requested. The request includes a measurement configuration.
步骤 502,将该测量协商请求发送至目的主机, 其中目的主机在接收到 该测量协商请求后, 在能够接受并且愿意接受该 IP性能测量时, 会发送接 受测量的协商响应消息至源主机; 而在不能够或者不愿意接受该 IP性能测 试时, 会发送拒绝响应消息至源主机。  Step 502: Send the measurement negotiation request to the destination host, where the destination host sends a measurement response message to the source host after receiving the measurement negotiation request, when it can accept and is willing to accept the IP performance measurement; When it is unable or unwilling to accept the IP performance test, a rejection response message is sent to the source host.
步骤 503 ,接收目的主机发送的接受测量的协商响应消息或者拒绝响应 消息。  Step 503: Receive a negotiation response message or a rejection response message sent by the destination host to receive the measurement.
通过该测量协商过程 , 可以明确源主机与目的主机的测量配置, 并通 过测量配置约定本次测量的各项参数, 例如待测量的测量内容, 为主动测 量或者被动测量, 以及顺序号测量选项的初始值等。 此外还可以协商测量 校验算法, 以及使用的密钥, 并且还可以协商是否对测量信息进行压缩, 以保证测量的灵活和双方配置的一致。 另外, 源主机和目的主机需要在测 量协商完成后调整自身保存的 MTU值, 即使用原有的 MTU值减去可能使 用的各种测量选项的总共长度。  Through the measurement negotiation process, the measurement configuration of the source host and the destination host can be clarified, and the parameters of the current measurement, such as the measurement content to be measured, for the active measurement or the passive measurement, and the sequence number measurement option are determined by the measurement configuration. Initial value, etc. In addition, the measurement verification algorithm and the used key can be negotiated, and the measurement information can be negotiated to ensure that the measurement is flexible and consistent with both configurations. In addition, the source and destination hosts need to adjust their saved MTU values after the measurement negotiation is completed, that is, use the original MTU value minus the total length of various measurement options that may be used.
进一步的, 本实施例提供的测量方法还可以包括如附图 6所示的步骤: 步骤 601 ,接收目的主机发送的测量响应 ·ί艮文, 其中该测量响应报文基 于本源主机向目的主机发送的携带第一测量信息的业务数据的 IP报文, 且 携带与该 IP报文相应的第二测量信息。  Further, the measurement method provided in this embodiment may further include the steps as shown in FIG. 6. Step 601: Receive a measurement response sent by the destination host, where the measurement response message is sent by the source host to the destination host. The IP packet carrying the service data of the first measurement information, and carrying the second measurement information corresponding to the IP packet.
目的主机会接收源主机发送的携带第一测量信息的业务数据的 IP报 文。 目的主机会根据接收的 IP报文携带的第一测量信息, 对第一测量信息 中包括的测量选项进行记录, 并对记录结果进行统计, 通过统计结杲计算 IP性能度量值, 即根据第一测量信息对接收的 IP报文进行测量。  The destination host receives the IP packet of the service data carrying the first measurement information sent by the source host. The destination host records the measurement options included in the first measurement information according to the first measurement information carried in the received IP packet, and performs statistics on the recorded result, and calculates the IP performance metric value by statistical aggregation, that is, according to the first The measurement information measures the received IP packet.
在测量配置中包括的测量方向为双向测量时, 目的主机会向源主机发 送基于该 IP报文的测量响应报文。 测量响应报文可以是业务数据报文也可 以是单独的 IP报文。测量响应报文中会包括与目的主机接收的 IP报文相应 的第二测量信息。 该第二测量信息包括目的主机接收的 IP报文中第一测量 信息的部分或者全部, 以及在第一测量信息包括发送时间测量选项时, 该 第二测量信息还包括接收时间测量选项。 在测量配置中包括的测量方向为 双向测量, 且测量内容包括时延和 /或抖动时, 测量响应报文中携带的第二 测量信息会包括接收时间测量选项; 而当测量内容包括时延和 /或抖动时, 源主机发送的业务数据的 IP报文中携带的第一测量信息也会包括发送时间 测量选项, 所以, 可以说在源主机发送的 IP报文的第一测量信息包括发送 时间测量选项时, 该第二测量信息还会包括接收时间测量选项。 在本发明 各实施例中, 接收时间测量选项用于表示目的主机接收到 IP报文的时间。 When the measurement direction included in the measurement configuration is bidirectional, the destination host sends a measurement response packet based on the IP packet to the source host. The measurement response packet can be a service data packet or a separate IP packet. The measurement response message includes second measurement information corresponding to the IP packet received by the destination host. The second measurement information includes the first measurement in the IP packet received by the destination host. Part or all of the information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option. When the measurement direction included in the measurement configuration is bidirectional measurement, and the measurement content includes delay and/or jitter, the second measurement information carried in the measurement response message may include a reception time measurement option; and when the measurement content includes delay and The first measurement information carried in the IP packet of the service data sent by the source host also includes the transmission time measurement option. Therefore, it can be said that the first measurement information of the IP packet sent by the source host includes the transmission time. When the option is measured, the second measurement information also includes a reception time measurement option. In the embodiments of the present invention, the receiving time measurement option is used to indicate the time when the destination host receives the IP packet.
在本实施例中, 如果接收的 IP报文中的第一测量信息只包括顺序号测 量选项、 发送时间测量选项以及测量会话标识选项中的一个或者多个, 则 该第二测量信息包括第一测量信息的全部, 并且第一测量信息包括发送时 间测量选项时, 该第二测量信息还包括接收时间测量选项; 在第一测量信 息包括安全校验码选项时, 该第二测量信息包括第一测量信息的部分, 即 不包括第一测量信息中的安全校验码选项, 而是包括新的安全校验码选项。  In this embodiment, if the first measurement information in the received IP packet includes only one or more of a sequence number measurement option, a transmission time measurement option, and a measurement session identification option, the second measurement information includes the first Measure all of the information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option; when the first measurement information includes a security check code option, the second measurement information includes the first The portion of the measurement information, that is, does not include the security check code option in the first measurement information, but includes a new security check code option.
例如, 如果目的主机接收的 IP报文中的第一测量信息只包含有顺序号 测量选项, 则测量响应 4艮文中的第二测量信息包含有同样的顺序号测量选 项。 通过在测量响应报文中携带同样的顺序号测量选项, 可以测量双向的 丢包、 报文错序和报文重复。 如杲目的主机接收的 IP报文中的第一测量信 息中包含有顺序号测量选项和发送时间测量选项, 则测量响应 ^艮文中的第 二测量信息中包含有同样的顺序号测量选项和发送时间测量选项, 并且同 时还包含目的主机的接收时间测量选项。 通过在测量响应报文中携带同样 的顺序号测量选项和发送时间测量选项以及接收时间测量选项, 可以测量 双向的时延、 抖动, 也可以同时测量双向的丢包、 报文错序、 报文重复。  For example, if the first measurement information in the IP packet received by the destination host only includes the sequence number measurement option, the second measurement information in the measurement response includes the same sequence number measurement option. By carrying the same sequence number measurement option in the measurement response message, you can measure two-way packet loss, packet misordering, and message repetition. If the first measurement information in the IP packet received by the host includes the sequence number measurement option and the transmission time measurement option, the second measurement information in the measurement response includes the same sequence number measurement option and is sent. The time measurement option, and also includes the receiving time measurement option of the destination host. By carrying the same sequence number measurement option, transmission time measurement option, and reception time measurement option in the measurement response message, two-way delay and jitter can be measured, and two-way packet loss, packet misorder, and message can be simultaneously measured. repeat.
本实施例中, 该第二测量信息还可以包括安全校验码选项和测量会话 标识选项。 其中, 第二测量信息中的安全校验码选项通常与接收的 IP 4艮文 中携带的安全校验码选项不同, 而测量会话标识选项与接收的 IP报文中携 带的测量会话标识选项相同。 In this embodiment, the second measurement information may further include a security check code option and a measurement session identification option. The security check code option in the second measurement information is usually different from the security check code option carried in the received IP 4 message, and the measurement session identification option and the received IP packet are carried. The measurement session identification options are the same.
目的主机发送测量响应报文后, 源主机会接收到该测量响应报文。 步骤 602, 从测量响应报文中提取出该第二测量信息。  After the destination host sends the measurement response packet, the source host receives the measurement response packet. Step 602: Extract the second measurement information from the measurement response message.
步骤 603 , 根据该第二测量信息进行记录统计。  Step 603: Perform recording statistics according to the second measurement information.
根据该第二测量信息中包括的测量选项进行记录统计, 并根据统计结 果计算 IP性能度量值能够得知双向的 IP性能。  Recording statistics are performed according to the measurement options included in the second measurement information, and the IP performance metric value is calculated according to the statistical result to know the bidirectional IP performance.
在本实施例中, 无论是源主机或者是目的主机, 在接收数据业务的 IP 报文或者单独的 IP报文时, 如杲 IP报文在传递的过程中经过分片,在接收 IP报文后需要对接收的 IP报文进行重组, 恢复为原始的 IP报文, 也即最 初发送的 ^艮文, 再进行后续的处理。  In this embodiment, when the source host or the destination host receives the IP packet or the IP packet of the data service, for example, the IP packet is fragmented during the transmission process, and the IP packet is received. After that, the received IP packet needs to be reorganized and restored to the original IP packet, that is, the originally sent packet, and then processed.
在本实施例中, 无论是源主机或者是目的主机, 在测量配置中包括压 缩指示时, 均需要在发送 IP报文或者测量响应报文前执行如附图 4所示的 压缩步骤, 并且在根据测量信息进行测量之前, 需要解压缩。  In this embodiment, when the source host or the destination host includes the compression indication in the measurement configuration, the compression step as shown in FIG. 4 needs to be performed before the IP packet or the measurement response packet is sent, and Decompression is required before making measurements based on measurement information.
在本实施例中, 无论是源主机或者是目的主机, 在测量配置中包括测 量校验算法时, 需要对接收到的 IP报文进行校验, 在校验通过后, 进行下 一步处理。  In this embodiment, whether the source host or the destination host includes the measurement verification algorithm in the measurement configuration, the received IP packet needs to be verified. After the verification is passed, the next step is processed.
需要说明的是, 进行校验或者解压缩并没有固定的顺序, 例如可以先 进行校验后解压缩, 也可以先解压缩后校验。  It should be noted that there is no fixed order for performing verification or decompression. For example, the decompression may be performed after verification, or may be decompressed and then verified.
通过本实施例, 可以扩展 IP性能测试的报文协议类型, 使得被测试的 IP报文协议类型不仅仅限于 UDP协议, 也可以包括其他协议, 例如 TCP 协议。 并且, 由于直接对业务数据的 IP报文进行测量, 所以测量结杲更为 精确, 与业务数据的真实性能之间的差距更小, 能够更好的满足 QoS控制 需求。 并且, 可以测量各种测量内容, 并根据需要只携带待测量内容对应 的测量内容, 有效利用带宽。 在本实施例中, 通过对测量信息进行压缩, 可以进一步的减少带宽的占用, 通过携带安全校验码可以保证报文的安全, 辨别伪装的 ·ί艮文。 通过测量配置的协商, 双方可以灵活配置各项参数, 并 且很好的了解到对方的配置, 达成双方的一致。 通过携带测量会话标识选 项, 可以针对某一数据业务进行具体的测量, 使得测量更灵活, 更具针对 性, 结果也更接近业务数据的真实性能。 With this embodiment, the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols, such as the TCP protocol. Moreover, since the IP packet of the service data is directly measured, the measurement score is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied. Moreover, various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized. In this embodiment, by compressing the measurement information, the bandwidth occupation can be further reduced, and the security of the message can be ensured by carrying the security check code, and the spoofed message can be discriminated. By measuring the configuration negotiation, both parties can flexibly configure various parameters, and And a good understanding of the other party's configuration, to achieve the agreement between the two sides. By carrying the measurement session identification option, specific measurements can be made for a certain data service, making the measurement more flexible, more targeted, and the result closer to the true performance of the business data.
下面结合附图 7描述本发明另一实施例提供的测量的方法。 本实施例 是针对上一实施例的具体说明。 该方法包括:  A method of measurement provided by another embodiment of the present invention will be described below with reference to FIG. This embodiment is a specific description of the previous embodiment. The method includes:
步骤 701 , 获取网管发送的测量配置。  Step 701: Obtain a measurement configuration sent by the network management.
网管对源主机进行远端操作, 将测量配置发送给源主机。 该测量配置 包括: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 测量 内容、 有效等待时延、 安全校验算法、 密钥、 测量起始时间、 测量类型、 压缩指示、 测量会话标识、 测量方向、 源主机地址、 目的主机地址。  The NMS performs remote operations on the source host and sends the measurement configuration to the source host. The measurement configuration includes: initial value of sequence number measurement option, transmission interval of measurement information, measurement period, measurement content, effective waiting delay, security check algorithm, key, measurement start time, measurement type, compression indication, measurement Session ID, measurement direction, source host address, destination host address.
其中, IP报文顺序号测量选项的初始值为 0; 测量选项的发送间隔为 5 秒钟; 测量周期为 30分钟; 测量内容为时延和报文错序; 有效等待时延为 3秒钟; 安全校验算法为密钥散裂算法; 密钥为 0xDlD83946; 测量起始时 间为 2009年 08月 09日 19时 30分 10秒 30毫秒; 测量类型为被动测量; 压缩指示为未经过压缩; 测量会话标识为 0x1200用于代表主机正在进行的 IP电话业务(使用 UDP协议) , 以及 0x1201用于代表主机正在进行的 IP 上网业务(使用 TCP协议); 测量方向为双向。  The initial value of the IP packet sequence number measurement option is 0; the measurement interval is 5 seconds; the measurement period is 30 minutes; the measurement content is delay and the message is out of order; the effective waiting delay is 3 seconds. The security check algorithm is a key spalling algorithm; the key is 0xDlD83946; the measurement start time is 19:30 minutes, 10 seconds, 30 milliseconds on August 09, 2009; the measurement type is passive measurement; the compression indication is uncompressed; The measurement session identifier is 0x1200 for representing the ongoing IP telephony service of the host (using the UDP protocol), and 0x1201 is for representing the ongoing IP Internet service of the host (using the TCP protocol); the measurement direction is bidirectional.
步骤 702, 根据获取的测量配置, 生成测量协商请求, 并将该测量协商 请求发送至目的主机。  Step 702: Generate a measurement negotiation request according to the obtained measurement configuration, and send the measurement negotiation request to the destination host.
源主机根据测量配置生成测量协商请求, 该协商测量请求中包括上述 测量配置。  The source host generates a measurement negotiation request according to the measurement configuration, and the negotiation measurement request includes the foregoing measurement configuration.
目的主机在接收到源主机发送的测量协商请求后, 如果愿意且能够与 源主机进行 IP性能测量, 则发送接受测量的协商响应消息; 如果不愿意或 者不能够与源主机 IP性能测量则发送拒绝响应消息。 其中, 接受测量的协 商响应消息中也会包括测量配置。 本步骤中, 接收的接受测量的协商响应 消息中包括: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 测量内容、 有效等待时延、 安全校验算法、 密钥、 测量起始时间、 测量类 型、 压缩指示、 测量会话标识、 测量方向、 源主机地址、 目的主机地址。 After receiving the measurement negotiation request sent by the source host, the destination host sends a negotiation response message that accepts the measurement if it is willing and able to perform IP performance measurement with the source host; if it is unwilling or unable to perform measurement with the source host IP performance, the rejection is sent. Response message. The measurement configuration is also included in the negotiation response message that accepts the measurement. In this step, the received negotiation response message receiving the measurement includes: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, Measurement content, effective wait delay, security check algorithm, key, measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
步骤 703 , 接收目的主机发送的接受测量的协商响应消息。  Step 703: Receive a negotiation response message that is sent by the destination host and receives the measurement.
接收目的主机发送的接受测量的协商响应消息后, 源主机和目的主机 双方完成协商过程。  After receiving the negotiation response message sent by the destination host, the source host and the destination host complete the negotiation process.
步骤 704, 在业务数据的 IP报文的头域的选项字段中携带测量内容对 应的第一测量信息。  Step 704: Carry the first measurement information corresponding to the measurement content in an option field of the header field of the IP packet of the service data.
本实施例中, 以 IPv4的报文为例。 在上述步骤确定的测量配置中, 测 量内容包括时延和报文错序。 对于时延, 对应的第一测量信息至少包括: 发送时间测量选项和顺序号测量选项; 对于 文错序, 对应的第一测量信 息至少包括: 顺序号测量选项。 为了保证^ ί艮文的安全, 第一测量信息中还 包括安全校验码选项。 并且为了更灵活、 更精确的获得各业务的测量结果, 第一测量信息中还包括测量会话标识选项。  In this embodiment, an IPv4 packet is taken as an example. In the measurement configuration determined in the above steps, the measurement content includes delay and message misordering. For the delay, the corresponding first measurement information includes at least: a sending time measurement option and a sequence number measurement option; and for the grammatical error sequence, the corresponding first measurement information includes at least: a sequence number measurement option. In order to ensure the security of the text, the first measurement information also includes a security check code option. And in order to obtain the measurement result of each service more flexibly and accurately, the first measurement information further includes a measurement session identification option.
其中, 例如, 第一个携带第一测量信息的 IP报文中, 发送时间测量选 项为 2009年 08月 09日 19时 30分 10秒 30毫秒, 顺序号测量选项为 0, 安全校验码选项为 0xDlD56896, 测量会话标识选项为 0x1201。  For example, in the first IP packet carrying the first measurement information, the transmission time measurement option is 19:30:10, 30 milliseconds on August 09, 2009, and the sequence number measurement option is 0, security check code option. For 0xDlD56896, the measurement session identification option is 0x1201.
将上述测量选项携带在业务数据的 IP报文的头域的选项字段中。 且各 测量选项的选项类型使用预先分配指定的选项类型的值。  The above measurement option is carried in the option field of the header field of the IP packet of the service data. And the option type for each measurement option uses the value of the option type specified in advance.
步骤 705, 向目的主机发送该 IP报文。  Step 705: Send the IP packet to the destination host.
在传递的过程中, 该 IP报文可能经过分片。  During the delivery process, the IP packet may be fragmented.
如杲该 IP报文在传递过程中经过分片,则目的主机在接收到该 IP报文 后需要进行重组, 恢复为原始 IP报文, 即源主机发送的 IP报文。  If the IP packet is fragmented during the transmission process, the destination host needs to reassemble and revert to the original IP packet, that is, the IP packet sent by the source host.
目的主机对该原始 IP报文进行安全校验,在通过校验后,根据该 IP报 文中携带的第一测量信息进行测量, 得到从源主机到目的主机单方向的时 延和报文错序, 进而得到 IP上网业务的单方向 IP性能度量值。  The destination host performs security check on the original IP packet, and after performing the check, it performs measurement according to the first measurement information carried in the IP packet, and obtains a delay and a packet error from the source host to the destination host in one direction. In order, the unidirectional IP performance metric of the IP Internet service is obtained.
由于测量配置中的测量方向为双向, 所以目的主机生成测量响应 文, 且该测量响应报文中携带与接收的 IP报文相应的第二测量信息。 该第二测 量信息包括: 发送时间测量选项, 顺序号测量选项, 接收时间测量选项, 安全校验码选项以及测量会话标识选项。 其中, 发送时间测量选项为 2009 年 08月 09日 19时 30分 10秒 30毫秒, 顺序号测量选项为 0,接收时间测 量选项为 2009年 08月 09日 19时 30分 10秒 50毫秒, 安全校验码选项为 0xDlD48962, 测量会话标识选项为 0x1201。 Since the measurement direction in the measurement configuration is bidirectional, the destination host generates a measurement response message. And the measurement response packet carries the second measurement information corresponding to the received IP packet. The second measurement information includes: a transmission time measurement option, a sequence number measurement option, a reception time measurement option, a security check code option, and a measurement session identification option. Among them, the transmission time measurement option is 19:30:10, 30 milliseconds on August 09, 2009, the sequence number measurement option is 0, and the reception time measurement option is 19:30:10, 50 milliseconds on August 09, 2009, security The checksum option is 0xDlD48962 and the measurement session identification option is 0x1201.
目的主机向源主机发送生成的测量响应4艮文。  The destination host sends the generated measurement response to the source host.
步骤 706,接收目的主机发送的测量响应 4艮文, 该测量响应 文中携带 该第二测量信息。  Step 706: Receive a measurement response sent by the destination host, where the measurement response carries the second measurement information.
步骤 707,从测量响应报文中提取出该第二测量信息, 并且记录下接收 到此测量响应报文的时间, 例如测量响应报文的接收时间是 2009年 08月 09日 19时 30分 10秒 80毫秒。  Step 707: Extract the second measurement information from the measurement response message, and record the time when the measurement response message is received. For example, the measurement response message receiving time is 19:30:10 on August 09, 2009. 80 milliseconds in seconds.
在提取出第二测量信息之前, 如果测量响应报文在传输中经过了分片 , 则需要将测量响应报文进行重组, 恢复成原始 IP报文, 也即目的主机最初 发送的测量响应 4艮文。  Before the second measurement information is extracted, if the measurement response message has been fragmented in the transmission, the measurement response message needs to be reorganized and restored to the original IP packet, that is, the measurement response originally sent by the destination host. Text.
在恢复为原始 IP报文后, 还需要对该原始报文进行安全校验, 如果通 过安全校验, 则提取测量响应报文中携带的第二测量信息。  After the original IP packet is restored, the original packet is also checked for security. If the security check is performed, the second measurement information carried in the measurement response packet is extracted.
步骤 708, 根据该第二测量信息进行记录统计。  Step 708: Perform recording statistics according to the second measurement information.
源主机根据该第二测量信息中包括的测量选项进行记录、 统计, 并可 以根据统计结果计算得到双向的 IP电话业务的时延和报文错序。 例如此次 IP上网业务(测量会话标识选项 0x1201 ) IP ^艮文传输的双向时延一次测量 记录是 50毫秒(测量响应报文接收时间减去发送时间测量选项值) , 报文 错序可以通过源主机记录多个测量响应报文中包含的顺序号测量选项来统 计报文错序  The source host records and counts according to the measurement options included in the second measurement information, and can calculate the delay of the two-way IP telephone service and the packet misorder according to the statistical result. For example, this IP Internet service (measurement session identification option 0x1201) IP ^艮 transmission two-way delay one measurement record is 50 milliseconds (measurement response message reception time minus transmission time measurement option value), message misorder can pass The source host records the sequence number measurement options included in multiple measurement response packets to count the message sequence.
通过本实施例提供的测量方法, 可以减少测量结果与业务数据真实性 能之间的偏差, 获得更精确的测量结杲, 并且测量更安全, 更灵活。 下面结合附图 8描述本发明又一实施例提供的测量的方法。 该方法包 括: Through the measurement method provided in this embodiment, the deviation between the measurement result and the real performance of the service data can be reduced, a more accurate measurement result can be obtained, and the measurement is safer and more flexible. A method of measurement provided by another embodiment of the present invention will be described below with reference to FIG. The method includes:
步骤 801 , 目的主机接收业务数据的 IP报文, 该 IP报文中携带第一测 量信息。 其中第一测量信息具体参见上述实施例。  Step 801: The destination host receives the IP packet of the service data, where the IP packet carries the first measurement information. The first measurement information is specifically referred to the above embodiment.
步骤 802, 提取该第一测量信息。  Step 802, extracting the first measurement information.
步骤 803 ,根据该第一测量信息,对该第一测量信息对应的测量内容进 行测量。 其中第一测量信息与测量内容的对应关系可以参见上述实施例, 具体测量的实现也可以参照上述实施例。  Step 803: Perform measurement on the measurement content corresponding to the first measurement information according to the first measurement information. For the corresponding relationship between the first measurement information and the measurement content, refer to the foregoing embodiment. For the implementation of the specific measurement, reference may also be made to the foregoing embodiment.
通过本实施例提供的测量方法, 可以根据业务数据的 IP报文中携带的 测量信息进行测量, 从而使得测量结果更接近业务数据的真实性能。  The measurement method provided in this embodiment can perform measurement according to the measurement information carried in the IP packet of the service data, so that the measurement result is closer to the real performance of the service data.
进一步的, 本实施例中, 对于 IPv4的 IP报文, 可以从该 IP报文的头 域的选项字段中提取该第一测量信息; 对于 IPv6的 IP 文, 可以从该 IP 报文的扩展头域的选项字段中提取该第一测量信息。  Further, in this embodiment, for the IPv4 IP packet, the first measurement information may be extracted from the option field of the header field of the IP packet; for the IPv6 IP packet, the extension header of the IP packet may be used. The first measurement information is extracted from the option field of the domain.
进一步的, 本实施例中, 如果测量配置中的测量方向为双向, 则在接 收到该 IP报文后, 可以根据该 IP报文中携带的第一测量信息,发送测量响 应艮文至源主机。 其中测量响应 中携带与该 IP 4艮文相应的第二测量信 息, 该第二测量信息包括第一测量信息的部分或者全部, 并且在第一测量 信息包括发送时间测量选项时 , 该第二测量信息还包括接收时间测量选项。  Further, in this embodiment, if the measurement direction in the measurement configuration is bidirectional, after receiving the IP packet, the measurement response message may be sent to the source host according to the first measurement information carried in the IP packet. . The measurement response carries second measurement information corresponding to the IP4 message, the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement The information also includes a reception time measurement option.
进一步的, 本实施例中, 在步骤 801之后, 该方法进一步包括: 对该 IP报文进行安全校验;和 /或,对该 IP报文携带的第一测量信息进行解压缩。  Further, in this embodiment, after the step 801, the method further includes: performing a security check on the IP packet; and/or decompressing the first measurement information carried in the IP packet.
在本实施例中, 可以先进行安全校验, 校验通过后在进行解压缩, 也 可以先解压缩, 在得到解压后的 IP报文后再进行安全校验。  In this embodiment, the security check may be performed first, and after the verification is performed, the decompression may be performed, or the decompression may be performed first, and then the security check is performed after the decompressed IP packet is obtained.
本实施例中, 在步骤 801之前, 该方法进一步包括: 获取配置在自身 中的测量配置; 或者获取网管发送的测量配置; 或者与源主机协商测量配 置。  In this embodiment, before step 801, the method further includes: obtaining a measurement configuration configured in itself; or acquiring a measurement configuration sent by the network management; or negotiating the measurement configuration with the source host.
其中, 该测量配置具体可以参照上述两个实施例, 与源主机协商测量 配置的过程也可以参照上述两个实施例。 The measurement configuration may be specifically referred to the foregoing two embodiments, and the measurement is negotiated with the source host. The configuration process can also refer to the above two embodiments.
通过本实施例 , 可以扩展 IP性能测试的报文协议类型, 使得被测试的 IP报文协议类型不仅仅限于 UDP协议, 也可以包括其他协议。 并且, 由于 直接对业务数据的 IP报文进行测量, 所以测量结果更为精确, 与业务数据 的真实性能之间的差距更小, 能够更好的满足 QoS控制需求。 并且, 可以 测量各种测量内容, 并根据需要只携带待测量内容对应的测量内容, 有效 利用带宽。 在本实施例中, 通过对测量信息进行压缩, 可以进一步的減少 带宽的占用, 通过携带安全校验码选项可以保证报文的安全, 辨別伪装的 报文。 通过测量配置的协商, 双方可以灵活配置各项参数, 并且很好的了 解到对方的配置, 达成双方的一致。 通过携带测量会话标识选项, 可以针 对某一数据业务进行具体的测量, 使得测量更灵活, 更具针对性, 结杲也 更接近业务数据的真实性能。  With this embodiment, the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols. Moreover, since the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied. Moreover, various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized. In this embodiment, by compressing the measurement information, the bandwidth occupation can be further reduced, and the security check code option can be used to ensure the security of the message and identify the spoofed message. By measuring the configuration negotiation, the two parties can flexibly configure the parameters, and understand the configuration of the other party well, and reach the agreement between the two parties. By carrying the measurement session identification option, specific measurement can be performed on a certain data service, making the measurement more flexible, more targeted, and more close to the real performance of the business data.
下面结合附图 9描述本发明一实施例提供的一种主机 900。 该主机 900 包括:  A host 900 according to an embodiment of the present invention is described below with reference to FIG. The host 900 includes:
报文处理模块 901 , 用于根据测量内容在业务数据的 IP报文中携带与 该测量内容对应的第一测量信息;  The message processing module 901 is configured to: carry, according to the measurement content, the first measurement information corresponding to the measurement content in the IP packet of the service data;
发送模块 902, 用于向目的主机发送报文处理模块 901处理后的 IP报 文。  The sending module 902 is configured to send the IP packet processed by the message processing module 901 to the destination host.
通过本实施例, 可以在业务数据的 IP报文中携带测量信息, 从而使得 目的主机能够根据该测量信息对真实业务数据进行测量, 从而得到更接近 业务数据真实性能的测量结杲。  In this embodiment, the measurement information can be carried in the IP packet of the service data, so that the destination host can measure the real service data according to the measurement information, thereby obtaining a measurement result closer to the real performance of the service data.
本实施例中,报文处理模块 901例如可以包括:第一 4艮文处理单元 9011, 用于对于 IPv4的 IP报文, 根据测量内容在业务数据的 IP报文的头域的选 项字段中携带与测量内容对应的第一测量信息; 和 /或第二报文处理单元 9012, 用于对于 IPv6的 IP报文, 根据测量内容在业务数据的 IP报文的扩 展头域的选项字段中携带与测量内容对应的第一测量信息。 本实施例中, 4艮文处理模块 901例如可以包括以下之一或其任意组合: 第三报文处理单元 9013 , 用于在测量内容包括时延时 , 在业务数据的 IP报 文中携带发送时间测量选项和顺序号测量选项; 第四 4艮文处理单元 9014, 用于在测量内容包括抖动时, 在业务数据的 IP报文中携带发送时间测量选 项和顺序号测量选项; 第五 4艮文处理单元 9015 , 用于在测量内容包括丢包 时,在业务数据的 IP报文中携带顺序号测量选项;第六报文处理单元 9016, 用于在测量内容包括报文错序时, 在业务数据的 IP报文中携带顺序号测量 选项; 第七 ·ί艮文处理单元 9017, 用于在测量内容包括 文重复时, 在业务 数据的 IP报文中携带顺序号测量选项。 In this embodiment, the packet processing module 901 may include, for example, a first processing unit 9011, configured to carry the IP packet for the IPv4 according to the measurement content in the option field of the header field of the IP packet of the service data. The first measurement information corresponding to the measurement content; and/or the second message processing unit 9012, configured to carry the IP packet for the IPv6 according to the measurement content in the option field of the extended header field of the IP packet of the service data The first measurement information corresponding to the measurement content. In this embodiment, the processing module 901 may include one of the following or any combination thereof: The third packet processing unit 9013 is configured to delay the measurement content, and carry and send the IP packet in the service data. The time measurement option and the sequence number measurement option; the fourth 4th message processing unit 9014 is configured to carry the transmission time measurement option and the sequence number measurement option in the IP packet of the service data when the measurement content includes the jitter; The text processing unit 9015 is configured to: when the measurement content includes the packet loss, carry the sequence number measurement option in the IP packet of the service data; the sixth packet processing unit 9016 is configured to: when the measurement content includes the packet misorder, The IP packet of the service data carries the sequence number measurement option. The seventh message processing unit 9017 is configured to carry the sequence number measurement option in the IP packet of the service data when the measurement content includes the text repetition.
需要说明的是, 本实施例中, 当报文处理模块 901 包括第三报文处理 单元 9013至第七 4艮文处理单元 9017中的多个时, 报文处理模块 901中包 括的各报文处理单元不会携带重复的选项。 例如, 当报文处理模块 901 包 括第三报文处理单元 9013和第六报文处理单元 9016时, 不会携带两个顺 序号测量选项, 也即被携带在数据业务的 IP报文中的测量信息只包括一个 顺序号测量选项, 而非两个。  It should be noted that, in this embodiment, when the message processing module 901 includes a plurality of the third message processing unit 9013 to the seventh message processing unit 9017, each message included in the message processing module 901 The processing unit does not carry duplicate options. For example, when the message processing module 901 includes the third message processing unit 9013 and the sixth message processing unit 9016, it does not carry two sequence number measurement options, that is, measurements carried in the IP message of the data service. The information includes only one sequence number measurement option, not two.
在具体实现时, 第一报文处理单元 9011可以包括第一报文处理子单元 90111至第五报文处理子单元 90115中的一个或者多个;第二报文处理单元 9012可以包括第六报文处理子单元 90121至第十 4良文处理子单元 90125中 的一个或者多个。 其中, 第一 4艮文处理子单元 90111/第六报文处理子单元 90121用于在测量内容包括时延时, 在业务数据的 IP报文的头域 /扩展头域 的选项字段中携带发送时间测量选项和顺序号测量选项; 第二报文处理子 单元 90112/第七报文处理子单元 90122用于在测量内容包括抖动时, 在业 务数据的 IP报文的头域 /扩展头域的选项字段中携带发送时间测量选项和 顺序号测量选项; 第三 文处理子单元 90113/第八 文处理子单元 90123 用于在测量内容包括丢包时,在业务数据的 IP报文的头域 /扩展头域的选项 字段中携带顺序号测量选项; 第四^ 处理子单元 90114/第九 "^艮文处理子 单元 90124用于在测量内容包括报文错序时,在业务数据的 TP报文的头域 / 扩展头域的选项字段中携带顺序号测量选项; 第五报文处理子单元 90115/ 第十 文处理子单元 90125用于在测量内容包括 文重复时, 在业务数据 的 IP报文的头域 /扩展头域的选项字段中携带顺序号测量选项。 In a specific implementation, the first packet processing unit 9011 may include one or more of the first packet processing subunit 90111 to the fifth packet processing subunit 90115; the second packet processing unit 9012 may include the sixth packet. One or more of the text processing subunit 90121 to the tenth fourth good text processing subunit 90125. The first message processing sub-unit 90111/sixth message processing sub-unit 90121 is configured to delay the measurement content, and carry and send in the option field of the header field/extension header field of the IP packet of the service data. The time measurement option and the sequence number measurement option; the second message processing subunit 90112 / the seventh message processing subunit 90122 is configured to: in the header field/extension header field of the IP packet of the service data when the measurement content includes jitter The option field carries a transmission time measurement option and a sequence number measurement option; the third text processing sub-unit 90113/eighth processing sub-unit 90123 is configured to: in the header field of the IP packet of the service data when the measurement content includes packet loss/ The option field of the extended header field carries the sequence number measurement option; the fourth ^ processing subunit 90114/ninth "^艮文处理 The unit 90124 is configured to carry the sequence number measurement option in the option field of the header field/extension header field of the TP packet of the service data when the measurement content includes the packet misordering; the fifth packet processing subunit 90115/the tenth text The processing sub-unit 90125 is configured to carry the sequence number measurement option in the option field of the header field/extension header field of the IP packet of the service data when the measurement content includes the text repetition.
进一步的, 本实施例中, 该主机 900还可以包括接收模块 903, 用于接 收目的主机发送的测量响应报文, 该测量响应报文基于发送模块 902发送 的 IP报文,并携带与该 IP报文相应的第二测量信息, 其中第二测量信息包 括第一测量信息的部分或者全部 , 并且在第一测量信息包括发送时间测量 选项时, 该第二测量信息还包括接收时间测量选项。  Further, in this embodiment, the host 900 may further include a receiving module 903, configured to receive a measurement response message sent by the destination host, where the measurement response message is based on the IP packet sent by the sending module 902, and carries the IP address. Corresponding second measurement information, wherein the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option.
进一步的, 本实施例中, 该主机 900还可以包括提取模块 904, 用于从 接收模块 903接收的测量响应报文中提取第二测量信息; 测量模块 905, 用 于根据提取模块 904提取的第二测量信息进行记录统计。  Further, in this embodiment, the host 900 may further include an extracting module 904, configured to extract second measurement information from the measurement response message received by the receiving module 903, and a measurement module 905, configured to be extracted according to the extraction module 904. The second measurement information is used for recording statistics.
进一步的, 本实施例中, 发送模块 902具体包括: 第八报文处理单元 9021 ,用于在报文处理模块 901处理后的 IP报文中携带安全校验码选项和 / 或测量会话标识选项; 和 /或, 压缩单元 9022, 用于对所述第八报文处理单 元 9021处理后的 IP 4艮文中的第一测量信息进行压缩; 发送单元 9023, 用 于向目的主机发送第八^艮文处理单元 9021处理后的 IP ·ί艮文或者压缩单元 9022处理后的 IP 4良文。  Further, in this embodiment, the sending module 902 specifically includes: an eighth packet processing unit 9021, configured to carry the security check code option and/or the measurement session identifier option in the IP packet processed by the message processing module 901. And/or, a compression unit 9022, configured to compress the first measurement information in the IP4 message processed by the eighth message processing unit 9021; and a sending unit 9023, configured to send the eighth message to the destination host The IP processing text processed by the text processing unit 9021 or the IP 4 good text processed by the compression unit 9022.
在本实施例中, 第八 4艮文处理单元 9021和压缩单元 9022的连接关系 可以改变, 例如, 发送模块 902包括: 压缩单元 9022, 用于对所述 文处 理模块 901处理后的 IP报文中的第一测量信息进行压缩; 和 /或, 第八报文 处理单元 9021, 用于在压缩单元 9022处理后的 IP 文中携带安全校验码 选项和 /或测量会话标识选项; 发送单元 9023, 用于向目的主机发送该压缩 单元 9022处理后的 IP报文或者所述第八报文处理单元 9021处理后的 IP报 文。  In this embodiment, the connection relationship between the eighth processing unit 9021 and the compression unit 9022 may be changed. For example, the sending module 902 includes: a compression unit 9022, configured to process the IP packet processed by the text processing module 901. The first measurement information is compressed; and/or the eighth message processing unit 9021 is configured to carry the security check code option and/or the measurement session identification option in the IP file processed by the compression unit 9022; the sending unit 9023, The IP packet processed by the compression unit 9022 or the IP packet processed by the eighth packet processing unit 9021 is sent to the destination host.
进一步的, 本实施例中, 该主机 900还可以包括: 配置模块 906, 用于 获取测量配置。 其中所述测量配置具体可以参照上述两个实施例。 Further, in this embodiment, the host 900 may further include: a configuration module 906, configured to: Get the measurement configuration. For the measurement configuration, reference may be made to the above two embodiments.
本实施例中, 配置模块 906例如可以包括: 第一获取单元 9061 , 用于 获取本主机中测量配置, 即获取静态配置在本主机中的测量配置; 和 /或, 第二获取单元 9062, 用于获取网管发送的测量配置。  In this embodiment, the configuration module 906 may include, for example, a first obtaining unit 9061, configured to acquire a measurement configuration in the host, that is, obtain a measurement configuration statically configured in the host; and/or a second obtaining unit 9062, Obtain the measurement configuration sent by the network management system.
进一步的, 配置模块 906还可以包括协商单元 9063 , 用于根据第一获 取单元 9061或者第二获取单元 9062获取的测量配置与目的主机协商测量 配置。  Further, the configuration module 906 may further include a negotiating unit 9063, configured to negotiate a measurement configuration with the destination host according to the measurement configuration acquired by the first obtaining unit 9061 or the second obtaining unit 9062.
本实施例中, 协商单元 9063例如可以包括: 请求生成子单元 90631 , 用于根据第一获取单元 9061或者第二获取单元 9062获取的测量配置生成 测量协商请求; 请求发送子单元 90632, 用于将请求生成子单元 90631生成 的测量协商请求发送至目的主机; 响应接收子单元 90633 , 用于接收目的主 机发送的接受测量的协商响应消息。  In this embodiment, the negotiating unit 9063 may include, for example, a request generating subunit 90631, configured to generate a measurement negotiation request according to the measurement configuration acquired by the first obtaining unit 9061 or the second obtaining unit 9062; and requesting the sending subunit 90632, where The measurement negotiation request generated by the request generation sub-unit 90631 is sent to the destination host. The response receiving sub-unit 90633 is configured to receive the negotiation response message sent by the destination host to receive the measurement.
进一步的,本实施例中,接收模块 903例如可以包括:接收子单元 9031 , 用于接收目的主机发送的测量响应报文。 进一步的, 接收模块 903还可以 包括: 重组子单元 9032, 用于在接收子单元 9031接收的 IP · ^文在传输的 过程中经过分片时, 对该 IP 4艮文进行重组, 恢复为原始 IP ·ί艮文。  Further, in this embodiment, the receiving module 903 may include, for example, a receiving subunit 9031, configured to receive a measurement response message sent by the destination host. Further, the receiving module 903 may further include: a recombination subunit 9032, configured to reassemble the IP4 message in the process of receiving the IP address received by the subunit 9031, and revert to the original IP · 艮 艮.
进一步的, 本实施例中, 接收模块 903例如还可以包括: 解压缩子单 元 9033,用于对接收子单元 9031接收的测量响应报文携带的第二测量信息 进行解压缩; 和 /或, 校验子单元 9034, 用于对接收子单元 9031接收的测 量响应报文进行安全校验。  Further, in this embodiment, the receiving module 903 may further include: a decompression subunit 9033, configured to decompress the second measurement information carried by the measurement response message received by the receiving subunit 9031; and/or The verification unit 9034 is configured to perform security verification on the measurement response message received by the receiving subunit 9031.
在本实施例中, 校验子单元 9034与解压缩子单元 9033可以具有各种 连接关系。 例如, 接收子单元 9031与重组子单元 9032相连, 解压缩子单 元 9033对重组子单元 9032处理后的测量响应 ^艮文中的第二测量信息进行 解压缩, 校验子单元 9034对解压缩子单元 9033处理后的测量响应报文进 行校验。  In this embodiment, the syndrome unit 9034 and the decompression subunit 9033 may have various connection relationships. For example, the receiving subunit 9031 is connected to the recombining subunit 9032, and the decompressing subunit 9033 decompresses the second measurement information in the measurement response processed by the recombining subunit 9032, and the verify subunit 9034 decompresses the subunit. The 9033 processed measurement response message is verified.
例如, 接收子单元 9031与重組子单元 9032相连, 校验子单元 9034对 重组子单元 9032处理后的测量响应 文进行校验, 解压缩子单元 9033对 校验子单元校验通过的测量响应报文中的第二测量信息进行解压缩。 For example, the receiving subunit 9031 is connected to the recombining subunit 9032, and the parity subunit 9034 is paired. The measurement response message processed by the recombination subunit 9032 is checked, and the decompression subunit 9033 decompresses the second measurement information in the measurement response message passed by the verification subunit.
按照上述示例中校验子单元 9034和解压缩子单元 9033的连接关系, 校验子单元 9034或者解压缩子单元 9033还可以直接与接收子单元 9031相 连接。  According to the connection relationship of the syndrome unit 9034 and the decompression subunit 9033 in the above example, the parity subunit 9034 or the decompression subunit 9033 can also be directly connected to the reception subunit 9031.
通过本实施例, 可以扩展 IP性能测试的 文协议类型, 使得被测试的 IP报文协议类型不仅仅限于 UDP协议, 也可以包括其他协议。 并且, 由于 直接对业务数据的 IP报文进行测量, 所以测量结杲更为精确, 与业务数据 的真实性能之间的差距更小, 能够更好的满足 QoS控制需求。 并且, 可以 测量各种测量内容, 并根据需要只携带待测量内容对应的测量内容, 有效 利用带宽。 在本实施例中, 通过对测量信息进行压缩, 可以进一步的減少 带宽的占用, 通过携带安全校验码选项可以保证 文的安全, 辨别伪装的 报文。 通过测量配置的协商, 双方可以灵活配置各项参数, 并且很好的了 解到对方的配置, 达成双方的一致。 通过携带测量会话标识选项, 可以针 对某一数据业务进行具体的测量, 使得测量更灵活, 更具针对性, 结果也 更接近业务数据的真实性能。  With this embodiment, the type of the protocol for the IP performance test can be extended, so that the type of the IP packet to be tested is not limited to the UDP protocol, and may include other protocols. Moreover, since the IP packet of the service data is directly measured, the measurement score is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied. Moreover, various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized. In this embodiment, by compressing the measurement information, the bandwidth occupation can be further reduced, and the security check code option can be used to ensure the security of the text and identify the spoofed message. By measuring the configuration negotiation, the two parties can flexibly configure the parameters, and understand the configuration of the other party well, and reach the agreement between the two parties. By carrying the measurement session identification option, specific measurement can be performed on a certain data service, making the measurement more flexible, more targeted, and the result closer to the real performance of the business data.
下面参照附图 10对本发明另一实施例提供的一种主机 1000进行详细 描述。 该主机 1000包括: 接收模块 1001, 用于接收业务数据的 IP报文, 该 IP报文中携带第一测量信息; 提取模块 1002, 用于从接收模块 1001接 收的 IP报文中提取第一测量信息;测量模块 1003 ,用于根据提取模块 1002 提取的第一测量信息, 对该第一测量信息对应的测量内容进行测量。  A host 1000 according to another embodiment of the present invention will be described in detail below with reference to FIG. The host 1000 includes: a receiving module 1001, configured to receive an IP packet of the service data, where the IP packet carries the first measurement information, and an extraction module 1002, configured to extract the first measurement from the IP packet received by the receiving module 1001. The measurement module 1003 is configured to measure the measurement content corresponding to the first measurement information according to the first measurement information extracted by the extraction module 1002.
通过本实施例提供的主机, 可以根据业务数据的 IP报文中携带的测量 信息进行测量, 从而使得测量结果更准确, 更接近业务数据的真实性能。  The host provided in this embodiment can perform measurement according to the measurement information carried in the IP packet of the service data, so that the measurement result is more accurate and closer to the real performance of the service data.
本实施例中, 提取模块 1002例如可以包括: 第一提取单元 10021 , 用 于从 IPv4的 IP数据报文的头域的选项字段中提取第一测量信息; 和 /或, 第二提取单元 10022, 用于从 IPv6的 IP数据报文的扩展头域的选项字段中 提取第一测量信息。 In this embodiment, the extracting module 1002 may include, for example, a first extracting unit 10021, configured to extract first measurement information from an option field of a header field of an IPv4 IP data packet; and/or, a second extracting unit 10022, Used in the option field of the extended header field of the IPv6 IP datagram Extracting the first measurement information.
进一步的, 本实施例提供的主机 1000还可以包括: 发送模块 1004, 用 于根据接收模块 1001接收的 IP报文中携带的第一测量信息以及配置模块 1005获取的测量配置, 发送测量响应 4艮文至源主机。 其中测量响应 4艮文中 携带与该 IP报文相应的第二测量信息, 其中第二测量信息包括第一测量信 息的部分或者全部, 并且在第一测量信息包括发送时间测量选项时, 第二 测量信息还包括接收时间测量选项。  Further, the host 1000 provided in this embodiment may further include: a sending module 1004, configured to send a measurement response according to the first measurement information carried in the IP packet received by the receiving module 1001 and the measurement configuration acquired by the configuration module 1005. Wen to source host. The measurement response carries the second measurement information corresponding to the IP packet, where the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement The information also includes a reception time measurement option.
进一步的, 本实施例中, 发送模块 1004还可以包括: 生成单元 10041 , 用于根据接收模块 1001接收的 IP报文中携带的第一测量信息以及配置模块 1005徒取的测量配置, 生成与该 IP报文相应的第二测量信息, 其中第二测 量信息包括第一测量信息的部分或者全部, 并且在第一测量信息包括发送 时间测量选项时, 该第二测量信息还包括接收时间测量选项; 发送单元 10042, 用于发送携带该第二测量信息的测量响应报文。 该测量响应报文可 以是业务数据的 IP报文也可以是单独的 IP报文。  Further, in this embodiment, the sending module 1004 may further include: a generating unit 10041, configured to generate, according to the first measurement information carried in the IP packet received by the receiving module 1001 and the measurement configuration taken by the configuration module 1005. Corresponding second measurement information of the IP packet, where the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option; The sending unit 10042 is configured to send a measurement response message that carries the second measurement information. The measurement response packet can be an IP packet of the service data or a separate IP packet.
进一步的, 本实施例中, 接收模块 1001 包括: 接收单元 10011 , 用于 接收业务数据的 IP报文。 进一步的接收模块 1001还可以包括: 重组单元 Further, in this embodiment, the receiving module 1001 includes: a receiving unit 10011, configured to receive an IP packet of service data. The further receiving module 1001 may further include: a recombining unit
10012, 用于在接收单元 10011接收的 IP报文在传输的过程中经过分片时, 对该 IP报文进行重组, 恢复为原始 IP报文。 10012. When the IP packet received by the receiving unit 10011 is fragmented during the transmission, the IP packet is reassembled and restored to the original IP packet.
进一步的, 本实施例中, 接收模块 1001 还可以包括: 安全校验单元 Further, in this embodiment, the receiving module 1001 may further include: a security check unit
10013, 用于对接收单元 10011接收的 IP报文进行安全校验; 和 /或, 解压 缩单元 10014, 用于对接收单元 10011接收的 IP 4艮文中携带的第一测量信 息进行解压缩。 10013, configured to perform security check on the IP packet received by the receiving unit 10011; and/or decompress the unit 10014, configured to decompress the first measurement information carried in the IP4 packet received by the receiving unit 10011.
在本实施例中, 安全校验单元 10013与解压缩单元 10014可以具有各 种连接关系。 例如, 接收单元 1001 1与重组单元 10012相连, 解压缩单元 10014对重組单元 10012处理后的 IP报文中的第一测量信息进行解压缩, 安全校验单元 10013对解压缩单元 10014处理后的测量响应报文进行校验。 例如, 接收单元 1001 1与重组单元 10012相连, 校验单元 10013对重 组单元 10012处理后的 IP报文进行校验, 解压缩单元 10014对安全校验单 元 10013校验通过的 IP报文中的第一测量信息进行解压缩。 In this embodiment, the security check unit 10013 and the decompression unit 10014 may have various connection relationships. For example, the receiving unit 1001 1 is connected to the recombining unit 10012, and the decompressing unit 10014 decompresses the first measurement information in the IP packet processed by the recombining unit 10012, and the security check unit 10013 performs the measurement after the decompressing unit 10014. The response message is verified. For example, the receiving unit 1001 1 is connected to the reorganization unit 10012, and the verification unit 10013 checks the IP packet processed by the reassembly unit 10012, and the decompression unit 10014 verifies the IP packet passed by the security verification unit 10013. A measurement information is decompressed.
按照上述示例中安全校验单元 10013和解压缩单元 10014的连接关系 , 校验单元 10013或者解压缩单元 10014还可以直接与接收单元 10011相连 接。  According to the connection relationship between the security check unit 10013 and the decompression unit 10014 in the above example, the check unit 10013 or the decompression unit 10014 can also be directly connected to the receiving unit 10011.
本实施例中, 该主机 1000还可以包括: 配置模块 1005, 用于获取测量 配置,该测量配置可以参照上述实施例。通过配置模块 1005获取测量配置, 可以得知测量内容。  In this embodiment, the host 1000 may further include: a configuration module 1005, configured to acquire a measurement configuration, and the measurement configuration may refer to the foregoing embodiment. The measurement configuration can be obtained by the configuration module 1005, and the measurement content can be known.
本实施例中, 配置模块 1005进一步还可以包括: 第一获取单元 10051 , 用于获取本主机中测量配置, 即获取静态配置在本主机中的测量配置; 和 / 或, 第二获取单元 10052, 用于获取网管发送的测量配置。  In this embodiment, the configuration module 1005 may further include: a first obtaining unit 10051, configured to acquire a measurement configuration in the host, that is, obtain a measurement configuration statically configured in the host; and/or a second obtaining unit 10052, Used to obtain the measurement configuration sent by the NMS.
进一步的, 配置模块 1005还可以包括协商单元 10053, 用于与源主机 协商测量配置。  Further, the configuration module 1005 may further include a negotiating unit 10053, configured to negotiate a measurement configuration with the source host.
本实施例中, 协商单元 10053例如可以包括: 请求接收子单元 100531 , 接收测量协商请求; 请求响应子单元 100532 , 用于根据请求接收子单元 100531接收的测量协商请求中携带的测量配置, 在愿意并且能够接受该测 量时, 反馈接受测量的协商响应消息至源主机, 在不愿意或者不能够接受 该测量时, 反馈拒绝响应消息至源主机。  In this embodiment, the negotiating unit 10053 may include, for example, a request receiving subunit 100531 to receive a measurement negotiation request, and a request response subunit 100532, configured to receive, according to the request, the measurement configuration carried in the measurement negotiation request received by the subunit 100531, And when the measurement can be accepted, the feedback response message receiving the measurement is fed back to the source host, and when the measurement is unwilling or unacceptable, the response rejection message is fed back to the source host.
通过本实施例, 可以扩展 IP性能测试的报文协议类型, 使得被测试的 IP报文协议类型不仅仅限于 UDP协议, 也可以包括其他协议。 并且, 由于 直接对业务数据的 IP报文进行测量, 所以测量结果更为精确, 与业务数据 的真实性能之间的差距更小, 能够更好的满足 QoS控制需求。 并且, 可以 测量各种测量内容, 并根据需要只携带待测量内容对应的测量内容, 有效 利用带宽。 在本实施例中, 通过对测量信息进行压缩, 可以进一步的减少 带宽的占用, 通过携带安全校验码选项可以保证^^文的安全, 辨别伪装的 4艮文。 通过测量配置的协商, 双方可以灵活配置各项参数, 并且很好的了 解到对方的配置, 达成双方的一致。 With this embodiment, the packet protocol type of the IP performance test can be extended, so that the type of the IP packet protocol to be tested is not limited to the UDP protocol, and may include other protocols. Moreover, since the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied. Moreover, various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized. In this embodiment, by compressing the measurement information, the bandwidth occupation can be further reduced, and the security code can be ensured by carrying the security check code option, and the camouflage is discriminated. 4 艮文. Through the negotiation of the measurement configuration, the two parties can flexibly configure the parameters, and understand the configuration of the other party well, and reach the agreement between the two parties.
下面结合附图 11详细描述本发明一实施例提供的测量系统。 该测量系 统包括源主机 1101 , 该源主机能够与目的主机 1102进行 IP通信, 用于根 据测量内容在业务数据的 IP报文中携带与该测量内容对应的第一测量信 息; 并向目的主机发送该 IP报文。  A measurement system according to an embodiment of the present invention will be described in detail below with reference to FIG. The measurement system includes a source host 1101, and the source host can perform IP communication with the destination host 1102, and is configured to carry first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content; and send the information to the destination host. The IP packet.
通过本实施例, 可以在业务数据的 IP报文中携带测量信息, 从而使得 目的主机能够根据该测量信息对真实业务数据进行测量, 从而得到更接近 业务数据真实性能的测量结杲。  In this embodiment, the measurement information can be carried in the IP packet of the service data, so that the destination host can measure the real service data according to the measurement information, thereby obtaining a measurement result closer to the real performance of the service data.
本实施例中, 该测量系统进一步包括目的主机 1102, 该目的主机 1102 用于接收业务数据的 IP报文,提取该 IP报文中携带的第一测量信息, 并根 据该第一测量信息进行测量。  In this embodiment, the measurement system further includes a destination host 1102, where the destination host 1102 is configured to receive an IP packet of the service data, extract the first measurement information carried in the IP packet, and perform measurement according to the first measurement information. .
本实施例中, 源主机 1101的具体实现可以参照如附图 9所示的主机, 目的主机的具体实现可以参照如附图 10所示的主机。  For the specific implementation of the source host 1101, refer to the host shown in FIG. 9. For the specific implementation of the destination host, refer to the host shown in FIG.
本实施例中, 源主机 1101与目的主机 1102的交互可以参照如附图 1 和附图 8所示的方法以及如附图 7所示的具体示例。  In this embodiment, the interaction between the source host 1101 and the destination host 1102 can refer to the methods shown in FIG. 1 and FIG. 8 and the specific examples as shown in FIG.
本发明实施例还提供了一种数据业务的 IP报文,该 IP报文包含测量信 息, 其中该测量信息包含一个或多个测量选项。 该测量信息用于接收主机 根据该测量信息进行测量。  The embodiment of the present invention further provides an IP packet of a data service, where the IP packet includes measurement information, where the measurement information includes one or more measurement options. The measurement information is used by the receiving host to perform measurement based on the measurement information.
对于 IPv4的 IP报文, 该一个或者多个测量选项可以被携带在本 IP报 文的头域的选项字段中; 对于 IPv6的 IP报文,该一个或者多个测量选项可 以被携带在本 IP报文的扩展头域的选项字段中。  For IPv4 IP packets, the one or more measurement options may be carried in the option field of the header field of the IP packet; for IPv6 IP packets, the one or more measurement options may be carried in the IP address. The extension field of the message is in the option field.
测量信息可以包括以下之一或其任意组合: 顺序号测量选项, 发送时 间测量选项, 接收时间测量选项, 安全校验码选项, 测量会话标识选项。  The measurement information may include one or any combination of the following: sequence number measurement options, transmission time measurement options, reception time measurement options, security check code options, measurement session identification options.
其中, 顺序号测量选项用于标识 4艮文; 发送时间测量选项用于表示源 主机发送 IP报文的时间;接收时间测量选项用于表示目的主机接收到 IP报 文的时间, 安全校验码选项用于进行安全校验; 测量会话标识选项用于表 示正在进行的 IP性能测量属于哪个测量会话,其中测量会话与 IP业务会话The sequence number measurement option is used to identify the 4 艮 text; the send time measurement option is used to indicate the time when the source host sends the IP packet; and the receive time measurement option is used to indicate that the destination host receives the IP packet. The time of the text, the security check code option is used for security check; the measurement session identification option is used to indicate which measurement session the ongoing IP performance measurement belongs to, where the measurement session and the IP service session
—对应。 -correspond.
例如在 IPv4的4艮文中, 选项类型可以通过 8比特表示, 其中 1比特表 示拷贝标记( copied flag ) , 2比特表示选项类别 ( option class ) , 5比特表 示选项号码( option number ) 。 上述测量选项的选项类别可以为 2 ( 2代表 用于调试和测量) , 且发送时间测量选项、 接收时间测量选项、 顺序号测 量选项、 测量会话标识选项、 安全校验码选项的选项号码可以分别为 5、 6、 7、 8、 9。  For example, in IPv4, the option type can be represented by 8 bits, where 1 bit indicates the copy flag, 2 bits indicate the option class, and 5 bits indicate the option number. The option category of the above measurement options can be 2 (2 means for debugging and measurement), and the option number for sending time measurement option, receiving time measurement option, sequence number measurement option, measurement session identification option, security check code option can be separately For 5, 6, 7, 8, and 9.
例如在 IPv6的报文中, 选项类型也可以通过 8比特表示 , 上述测量选 项的选项类型的最高 2个比特定义为 "00" , 从而可以使得能够支持该选 项类型的 IP设备识别该选项,不能够支持该选项类型的 IP设备忽略该选项, 避免由于 IP设备无法支持该选项而发生的异常处理。 例如, 发送时间测量 选项、 接收时间测量选项、 顺序号测量选项、 测量会话标识选项、 安全校 -验码选项的选项类型可以分别为 11、 12、 13、 14、 15。  For example, in an IPv6 message, the option type can also be represented by 8 bits, and the highest 2 bits of the option type of the above measurement option are defined as "00", so that the IP device capable of supporting the option type can be recognized by the option, IP devices that support this option type ignore this option and avoid exception handling that occurs because the IP device cannot support this option. For example, the options for the send time measurement option, the receive time measurement option, the sequence number measurement option, the measurement session identification option, and the security check code option can be 11, 12, 13, 14, and 15, respectively.
通过本实施例提供的业务数据 IP报文, 可以使得目的主机针对具体的 业务数据 IP报文进行测量, 得到的测量结果更接近业务数据的真实性能。  With the service data IP packet provided in this embodiment, the destination host can perform measurement on the specific service data IP packet, and the obtained measurement result is closer to the real performance of the service data.
通过本实施例提供的测量系统,可以扩展 IP性能测试的报文协议类型, 使得被测试的 IP报文协议类型不仅仅限于 UDP协议,也可以包括其他协议。 并且, 由于直接对业务数据的 IP报文进行测量, 所以测量结果更为精确, 与业务数据的真实性能之间的差距更小, 能够更好的满足 QoS控制需求。 并且, 可以测量各种测量内容, 并根据需要只携带待测量内容对应的测量 内容, 有效利用带宽。  With the measurement system provided in this embodiment, the packet protocol type of the IP performance test can be extended, so that the type of the tested IP packet protocol is not limited to the UDP protocol, and may include other protocols. Moreover, since the IP packet of the service data is directly measured, the measurement result is more accurate, and the difference between the real performance of the service data is smaller, and the QoS control requirement can be better satisfied. Moreover, various measurement contents can be measured, and only the measurement content corresponding to the content to be measured is carried as needed, and the bandwidth is effectively utilized.
最后需要说明的是, 本领域普通技术人员可以理解实现上述实施例方 法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算机可读取存储介质中, 该程序在执行时, 可包 括如上述各方法的实施例的流程。 其中, 所述的存储介盾可为磁碟、 光盘、 只读存储记忆体(ROM )或随机存储记忆体(RAM )等。 Finally, it should be understood that those skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable. In the storage medium, the program can be packaged when it is executed. The flow of an embodiment of each of the above methods is included. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM) or a random access memory (RAM).
本发明实施例中的各功能单元可以集成在一个处理模块中, 也可以是 各个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 上述集成的模块既可以采用硬件的形式实现, 也可以采用软件功能模块的 形式实现。 所述集成的模块如果以软件功能模块的形式实现并作为独立的 产品销售或使用时, 也可以存储在一个计算机可读取存储介质中。 上述提 到的存储介质可以是只读存储器, 磁盘或光盘等。  The functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.
上述具体实施例并不用以限制本发明, 对于本技术领域的普通技术人 员来说, 凡在不脱离本发明原理的前提下, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above specific embodiments are not intended to limit the present invention, and any modifications, equivalents, improvements, etc., which are included in the present invention, should be included in the present invention without departing from the principles of the present invention. Within the scope of protection.

Claims

权利要求 Rights request
1、 一种测量信息的发送方法, 其特征在于, 所述方法包括: 源主机根据测量内容在业务数据的 IP报文中携带与所述测量内容对应 的第一测量信息;  A method for transmitting measurement information, the method comprising: the source host carrying the first measurement information corresponding to the measurement content in an IP packet of the service data according to the measurement content;
向目的主机发送所述 IP报文。  Send the IP packet to the destination host.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述在业务数据的 IP 报文中携带与所述测量内容对应的第一测量信息, 包括:  The method according to claim 1, wherein the carrying the first measurement information corresponding to the measurement content in the IP packet of the service data includes:
对于 IPv4的 IP报文, 在业务数据的 IP报文的头域的选项字段中携带 与所述测量内容对应的第一测量信息; 和 /或  For the IPv4 IP packet, the first measurement information corresponding to the measurement content is carried in an option field of the header field of the IP packet of the service data; and/or
对于 IPv6的 IP报文, 在业务数据的 IP报文的扩展头域的选项字段中 携带与所述测量内容对应的第一测量信息。  For the IPv6 IP packet, the first measurement information corresponding to the measurement content is carried in the option field of the extended header field of the IP packet of the service data.
3、 根据权利要求 1所述的方法, 其特征在于,  3. The method of claim 1 wherein:
所述测量内容包括以下之一或其任意组合: 时延、 抖动、 丢包、 4艮文 错序、 报文重复;  The measurement content includes one or any combination of the following: delay, jitter, packet loss, error sequence, message repetition;
所述第一测量信息包括顺序号测量选项, 或者顺序号测量选项以及以 下之一或其任意组合: 发送时间测量选项、 安全校验码选项、 测量会话选 项;  The first measurement information includes a sequence number measurement option, or a sequence number measurement option, and one or any combination thereof: a transmission time measurement option, a security check code option, and a measurement session option;
其中, 在测量内容包括时延时, 与所述测量内容对应的第一测量信息 至少包括: 发送时间测量选项和顺序号测量选项; 和 /或  The first measurement information corresponding to the measurement content includes at least: a transmission time measurement option and a sequence number measurement option; and/or
在测量内容包括抖动时, 与所述测量内容对应的第一测量信息至少包 括: 发送时间测量选项和顺序号测量选项; 和 /或  When the measurement content includes jitter, the first measurement information corresponding to the measurement content includes at least: a transmission time measurement option and a sequence number measurement option; and/or
在测量内容包括丢包时, 与所述测量内容对应的第一测量信息至少包 括: 顺序号测量选项; 和 /或  When the measurement content includes packet loss, the first measurement information corresponding to the measurement content includes at least: a sequence number measurement option; and/or
在测量内容包括 ·ί艮文错序时, 与所述测量内容对应的第一测量信息至 少包括: 顺序号测量选项; 和 /或  The first measurement information corresponding to the measurement content includes at least: a sequence number measurement option; and/or when the measurement content includes:
在测量内容包括 ·ί艮文重复时, 与所述测量内容对应的第一测量信息至 少包括: 顺序号测量选项。 When the measurement content includes the repetition of the content, the first measurement information corresponding to the measurement content is Less include: Sequence number measurement options.
4、 根据权利要求 1所述的方法, 其特征在于, 在所述向目的主机发送 所述 IP 文之后 , 所述方法还包括:  The method according to claim 1, wherein after the sending the IP document to the destination host, the method further includes:
接收所述目的主机基于所述 IP报文发送的测量响应报文, 所述测量响 应报文中携带与所述 IP报文相应的第二测量信息, 其中所述第二测量信息 包括所述第一测量信息的全部或者部分, 以及在所述第一测量信息包括发 送时间测量选项时, 所述第二测量信息还包括接收时间测量选项;  Receiving, by the destination host, a measurement response message sent by the IP packet, where the measurement response message carries second measurement information corresponding to the IP packet, where the second measurement information includes the first All or part of the measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option;
从所述测量响应报文中提取出所述第二测量信息;  Extracting the second measurement information from the measurement response message;
根据所述第二测量信息进行记录统计。  Recording statistics are performed based on the second measurement information.
5、 根据权利要求 1至 4中任一项所述的方法, 其特征在于, 在所述根 据测量内容在业务数据的 IP报文中携带与所述测量内容对应的测量信息之 前, 所述方法还包括:  The method according to any one of claims 1 to 4, wherein before the carrying the measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content, the method Also includes:
获取配置在自身中的测量配置; 或者  Get the measurement configuration configured in itself; or
获取网管发送的测量配置; 或者  Obtain the measurement configuration sent by the network management; or
获取配置在自身中的测量配置, 并与目的主机协商测量配置; 或者 获取网管发送的测量配置, 并与目的主机协商测量配置;  Obtain the measurement configuration configured in the device and negotiate the measurement configuration with the destination host. Or obtain the measurement configuration sent by the NMS and negotiate the measurement configuration with the destination host.
其中, 所述测量配置包括: 所述测量内容;  The measurement configuration includes: the measurement content;
或者, 所述测量配置包括: 所述测量内容以及以下之一或其任意组合: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 有效等待时 延、 测量校验算法、 密钥、 测量起始时间、 测量类型、 压缩指示、 测量会 话标识、 测量方向、 源主机地址、 目的主机地址。  Alternatively, the measurement configuration includes: the measurement content and one or any combination of the following: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, an effective waiting delay, a measurement verification algorithm, a key , measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
6、 根据权利要求 5所述的方法, 其特征在于, 所述与目的主机协商测 量配置包括:  The method according to claim 5, wherein the negotiating the measurement configuration with the destination host comprises:
根据获取的测量配置, 生成测量协商请求, 其中所述测量协商请求中 包括所述测量配置;  Generating a measurement negotiation request according to the obtained measurement configuration, where the measurement negotiation request includes the measurement configuration;
将所述测量协商请求发送至所述目的主机; 接收所述目的主机发送的接受测量的协商响应消息。 Sending the measurement negotiation request to the destination host; Receiving a negotiation response message sent by the destination host to receive the measurement.
7、 一种测量方法, 其特征在于, 所述方法包括:  7. A method of measuring, the method comprising:
目的主机接收业务数据的 IP报文, 所述 IP报文中携带第一测量信息; 提取所述第一测量信息;  The destination host receives the IP packet of the service data, where the IP packet carries the first measurement information; and the first measurement information is extracted;
根据所述第一测量信息, 对所述第一测量信息对应的测量内容进行测 量。  And measuring the measurement content corresponding to the first measurement information according to the first measurement information.
8、 根据权利要求 7所述的测量方法, 其特征在于, 所述提取所述第一 测量信息, 包括:  The measuring method according to claim 7, wherein the extracting the first measurement information comprises:
对于 IPv4的 IP报文, 从所述 IP报文的头域的选项字段中提取所述第 一测量信息; 和 /或  For the IPv4 IP packet, extracting the first measurement information from an option field of a header field of the IP packet; and/or
对于 IPv6的 IP报文, 从所述 IP报文的扩展头域的选项字段中提取所 述第一测量信息。  For the IPv6 IP packet, the first measurement information is extracted from an option field of the extended header field of the IP packet.
9、 根据权利要求 7所述的方法, 其特征在于,  9. The method of claim 7 wherein:
所述第一测量信息包括: 顺序号测量选项, 或者顺序号测量选项和以 下之一或其任意组合: 发送时间测量选项, 安全校验码选项, 测量会话选 项;  The first measurement information includes: a sequence number measurement option, or a sequence number measurement option and one or any combination thereof: a transmission time measurement option, a security check code option, a measurement session option;
所述第一测量信息对应的测量内容包括以下之一或其任意组合: 时延、 抖动、 丢包、 报文错序、 报文重复;  The measurement content corresponding to the first measurement information includes one or any combination of the following: delay, jitter, packet loss, packet misorder, and message repetition;
其中, 在测量内容包括时延时, 与所述测量内容对应的第一测量信息 至少包括: 发送时间测量选项和顺序号测量选项; 和 /或  The first measurement information corresponding to the measurement content includes at least: a transmission time measurement option and a sequence number measurement option; and/or
在测量内容包括抖动时, 与所述测量内容对应的第一测量信息至少包 括: 发送时间测量选项和顺序号测量选项; 和 /或  When the measurement content includes jitter, the first measurement information corresponding to the measurement content includes at least: a transmission time measurement option and a sequence number measurement option; and/or
在测量内容包括丢包时, 与所述测量内容对应的第一测量信息至少包 括: 顺序号测量选项; 和 /或  When the measurement content includes packet loss, the first measurement information corresponding to the measurement content includes at least: a sequence number measurement option; and/or
在测量内容包括 ·ί艮文错序时, 与所述测量内容对应的第一测量信息至 少包括: 顺序号测量选项; 和 /或 在测量内容包括 ·ί艮文重复时, 与所述测量内容对应的第一测量信息至 少包括: 顺序号测量选项。 When the measurement content includes the wrong sequence, the first measurement information corresponding to the measurement content at least includes: a sequence number measurement option; and/or When the measurement content includes a repetition, the first measurement information corresponding to the measurement content at least includes: a sequence number measurement option.
10、 根据权利要求 7所述的方法, 其特征在于, 在所述提取所述第一 测量信息之后, 所述方法还包括:  The method according to claim 7, wherein after the extracting the first measurement information, the method further comprises:
根据所述第一测量信息, 发送测量响应报文至源主机, 其中所述测量 响应报文中携带与所述 IP报文相应的第二测量信息, 其中所述第二测量信 息包括所述第一测量信息的部分或者全部, 以及在所述第一测量信息包括 发送时间测量选项时, 所述第二测量信息还包括接收时间测量选项。  Transmitting a measurement response message to the source host according to the first measurement information, where the measurement response message carries second measurement information corresponding to the IP packet, where the second measurement information includes the first Part or all of the measurement information, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option.
11、 根据权利要求 8至 10中任一项所述的方法, 其特征在于, 在所述 接收业务数据的 IP报文之前, 所述方法还包括:  The method according to any one of claims 8 to 10, wherein before the receiving the IP packet of the service data, the method further includes:
获取配置在自身中的测量配置; 或者  Get the measurement configuration configured in itself; or
获取网管发送的测量配置; 或者  Obtain the measurement configuration sent by the network management; or
与源主机协商测量配置;  Negotiate the measurement configuration with the source host;
其中, 所述测量配置包括: 所述测量内容;  The measurement configuration includes: the measurement content;
或者, 所述测量配置包括: 所述测量内容以及以下之一或其任意组合: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 有效等待时 延、 测量校验算法、 密钥、 测量起始时间、 测量类型、 压縮指示、 测量会 话标识、 测量方向、 源主机地址、 目的主机地址。  Alternatively, the measurement configuration includes: the measurement content and one or any combination of the following: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, an effective waiting delay, a measurement verification algorithm, a key , measurement start time, measurement type, compression indication, measurement session identification, measurement direction, source host address, destination host address.
12、 根据权利要求 11所述的方法, 其特征在于, 所述与源主机协商测 量配置, 包括:  The method according to claim 11, wherein the negotiating the measurement configuration with the source host comprises:
接收源主机发送的测量协商请求, 所述测量协商请求中包括所述测量 配置;  Receiving a measurement negotiation request sent by the source host, where the measurement negotiation request includes the measurement configuration;
根据所述测量协商请求, 发送接受测量会话消息至所述源主机, 或者 发送拒绝响应消息至所述源主机。  And according to the measurement negotiation request, sending a measurement session message to the source host, or sending a rejection response message to the source host.
13、 一种主机, 其特征在于, 所述主机包括:  13. A host, wherein the host comprises:
报文处理模块, 用于根据测量内容在业务数据的 IP报文中携带与所述 测量内容对应的第一测量信息; a packet processing module, configured to carry and describe in the IP packet of the service data according to the measurement content Measuring first measurement information corresponding to the content;
发送模块, 用于向目的主机发送所述报文处理模块处理后的 IP报文。 And a sending module, configured to send, to the destination host, the IP packet processed by the packet processing module.
14、 根据权利要求 13所述的主机, 其特征在于, 所述报文处理模块包 括: The host according to claim 13, wherein the message processing module comprises:
第一报文处理单元,用于对于 IPv4的 IP报文,根据测量内容在业务数 据的 IP报文的头域的选项字段中携带与所述测量内容对应的第一测量信 息; 和 /或  a first packet processing unit, configured to carry, by the IP content of the IPv4, the first measurement information corresponding to the measurement content in an option field of a header field of the IP packet of the service data according to the measurement content; and/or
第二报文处理单元,用于对于 IPv6的 IP报文,根据测量内容在业务数 据的 IP报文的扩展头域的选项字段中携带与所述测量内容对应的第一测量 信息。  The second packet processing unit is configured to carry the first measurement information corresponding to the measurement content in the option field of the extended header field of the IP packet of the service data according to the measurement content.
15、 根据权利要求 13所述的主机, 其特征在于, 所述报文处理模块包 括以下之一或其任意组合:  The host according to claim 13, wherein the message processing module comprises one or any combination of the following:
第三报文处理单元, 用于在测量内容包括时延时, 在业务数据的 IP报 文中携带发送时间测量选项和顺序号测量选项;  The third packet processing unit is configured to delay the measurement content including the transmission time measurement option and the sequence number measurement option in the IP packet of the service data;
第四报文处理单元, 用于在测量内容包括抖动时, 在业务数据的 IP报 文中携带发送时间测量选项和顺序号测量选项;  a fourth packet processing unit, configured to: when the measurement content includes the jitter, carry the transmission time measurement option and the sequence number measurement option in the IP packet of the service data;
第五报文处理羊元, 用于在测量内容包括丢包时, 在业务数据的 IP报 文中携带顺序号测量选项;  The fifth packet processing sheep element is configured to carry a sequence number measurement option in the IP packet of the service data when the measurement content includes the packet loss;
第六报文处理单元, 用于在测量内容包括报文错序时, 在业务数据的 IP报文中携带顺序号测量选项;  a sixth packet processing unit, configured to carry a sequence number measurement option in the IP packet of the service data when the measurement content includes the packet misordering;
第七 4艮文处理单元, 用于在测量内容包括报文重复时, 在业务数据的 The seventh processing unit is configured to: when the measurement content includes the message repetition, in the service data
IP ·^艮文中携带顺序号测量选项。 IP ·^艮 carries the sequence number measurement option.
16、 根据权利要求 13所述的主机, 其特征在于, 所述主机还包括: 接收模块, 用于接收所述目的主机发送的测量响应报文, 其中所述测 量响应报文基于所述发送模块发送的 IP报文,并携带与所述 IP报文相应的 第二测量信息, 其中所述第二测量信息包括所述第一测量信息的部分或者 全部, 以及在所述第一测量信息包括发送时间测量选项时, 所述第二测量 信息还包括接收时间测量选项; The host according to claim 13, wherein the host further comprises: a receiving module, configured to receive a measurement response message sent by the destination host, where the measurement response message is based on the sending module And transmitting the IP packet, and carrying the second measurement information corresponding to the IP packet, where the second measurement information includes a part of the first measurement information or All, and when the first measurement information includes a transmission time measurement option, the second measurement information further includes a reception time measurement option;
提取模块, 用于从所述接收模块接收的测量响应报文中提取所述第二 测量信息;  An extraction module, configured to extract the second measurement information from the measurement response message received by the receiving module;
测量模块, 用于根据所述提取模块提取的所述第二测量信息进行记录 统计。  And a measurement module, configured to perform recording statistics according to the second measurement information extracted by the extraction module.
17、 根据权利要求 13至 16中任一项所述的主机, 其特征在于, 所述发送模块包括:  The host according to any one of claims 13 to 16, wherein the sending module comprises:
第八报文处理单元, 用于在所述报文处理模块处理后的 IP报文中携带 安全校验码选项和 /或测量会话标识选项; 和 /或, 压缩单元, 用于对所述第 八^ ¾文处理单元处理后的 IP 艮文中的第一测量信息进行压缩;  An eighth packet processing unit, configured to carry a security check code option and/or a measurement session identification option in the IP packet processed by the packet processing module; and/or a compression unit, configured to The first measurement information in the IP packet processed by the processing unit is compressed;
发送单元, 用于向目的主机发送所述第八报文处理单元处理后的 IP报 文或者所述压缩单元处理后的 IP 艮文;  a sending unit, configured to send, to the destination host, the IP packet processed by the eighth packet processing unit or the IP packet processed by the compression unit;
或者, 所述发送模块包括:  Or the sending module includes:
压缩单元, 用于对所述^艮文处理模块处理后的 IP报文中的第一测量信 息进行压缩; 或者  a compression unit, configured to compress the first measurement information in the IP packet processed by the processing module; or
所述压縮单元与第八报文处理单元, 用于在所述压缩单元处理后的 IP 报文中携带安全校验码选项和 /或测量会话标识选项;  The compression unit and the eighth packet processing unit are configured to carry a security check code option and/or a measurement session identification option in the IP packet processed by the compression unit;
发送单元, 用于向目的主机发送所述压缩单元处理后的 IP报文, 或所 述压缩单元与所述第八报文处理单元处理后的 IP报文。  And a sending unit, configured to send, to the destination host, the IP packet processed by the compression unit, or the IP packet processed by the compression unit and the eighth packet processing unit.
18、 根据权利要求 13至 16中任一项所述的主机, 其特征在于, 所述 主机还包括:  The host according to any one of claims 13 to 16, wherein the host further comprises:
配置模块, 用于获取测量配置, 其中所述测量配置包括: 所述测量内 容; 或者所述测量配置包括: 所述测量内容以及以下之一或其任意组合: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 有效等待时 延、 测量校验算法、 密钥、 测量起始时间、 测量类型、 压缩指示、 测量会 话标识、 测量方向、 源主 L地址、 目的主 L地址。 a configuration module, configured to acquire a measurement configuration, where the measurement configuration includes: the measurement content; or the measurement configuration includes: the measurement content and one or any combination of the following: initial value of the sequence number measurement option, measurement Information transmission interval, measurement period, effective waiting delay, measurement verification algorithm, key, measurement start time, measurement type, compression indication, measurement meeting Word identification, measurement direction, source primary L address, destination primary L address.
19、 一种主机, 其特征在于, 所述主机包括:  19. A host, wherein the host comprises:
接收模块, 用于接收业务数据的 IP报文, 所述 IP报文中携带第一测量 信息;  a receiving module, configured to receive an IP packet of the service data, where the IP packet carries the first measurement information;
提取模块, 用于从所述接收模块接收的 IP报文中提取所述第一测量信 息;  An extracting module, configured to extract the first measurement information from an IP packet received by the receiving module;
测量模块, 用于根据所述提取模块提取的第一测量信息, 对所述第一 测量信息对应的测量内容进行测量。  And a measurement module, configured to perform measurement on the measurement content corresponding to the first measurement information according to the first measurement information extracted by the extraction module.
20、 根据权利要求 19所述的主机, 其特征在于, 所述提取模块包括: 第一提取单元,用于从 IPv4的 IP数据报文的头域的选项字段中提取所 述第一测量信息; 和 /或  The host according to claim 19, wherein the extracting module comprises: a first extracting unit, configured to extract the first measurement information from an option field of a header field of an IPv4 IP data packet; and / or
第二提取单元,用于从 IPv6的 IP数据报文的扩展头域的选项字段中提 取所述第一测量信息。  And a second extracting unit, configured to extract the first measurement information from an option field of an extended header field of the IPv6 IP data packet.
21、 根据权利要求 19所述的主机, 其特征在于, 所述主机还包括: 发送模块, 用于根据所述第一测量信息, 发送测量响应报文至源主机, 其中所述测量响应报文中携带与所述 IP报文相应的第二测量信息, 其中所 述第二测量信息包括所述第一测量信息的部分或者全部, 以及在所述第一 测量信息包括发送时间测量选项时 , 所述第二测量信息还包括接收时间测 量选项。  The host according to claim 19, wherein the host further comprises: a sending module, configured to send a measurement response message to the source host according to the first measurement information, where the measurement response message is Carrying second measurement information corresponding to the IP packet, where the second measurement information includes part or all of the first measurement information, and when the first measurement information includes a transmission time measurement option, The second measurement information further includes a reception time measurement option.
22、 根据权利要求 19至 21 中任一项所述的主机, 其特征在于, 所述 主机还包括:  The host according to any one of claims 19 to 21, wherein the host further comprises:
配置模块, 用于获取测量配置, 其中, 所述测量配置包括: 所述测量 内容;  a configuration module, configured to acquire a measurement configuration, where the measurement configuration includes: the measurement content;
或者, 所述测量配置包括: 所述测量内容以及以下之一或其任意组合: 顺序号测量选项的初始值、 测量信息的发送间隔、 测量周期、 有效等待时 延、 测量校验算法、 密钥、 测量起始时间、 测量类型、 压缩指示、 测量会 话标识、 测量方向、 源主 L地址、 目的主 L地址。 Alternatively, the measurement configuration includes: the measurement content and one or any combination of the following: an initial value of the sequence number measurement option, a transmission interval of the measurement information, a measurement period, an effective waiting delay, a measurement verification algorithm, a key , measurement start time, measurement type, compression indication, measurement meeting Word identification, measurement direction, source primary L address, destination primary L address.
23、 一种测量系统, 其特征在于, 所述系统包括: 能够与目的主机通 信的源主机, 和能够与源主机通信的目的主机,  23. A measurement system, the system comprising: a source host capable of communicating with a destination host, and a destination host capable of communicating with the source host,
所述源主机, 用于根据测量内容在业务数据的 IP报文中携带与所述测 量内容对应的第一测量信息; 并向目的主机发送所述 IP报文;  The source host is configured to: carry the first measurement information corresponding to the measurement content in the IP packet of the service data according to the measurement content; and send the IP packet to the destination host;
所述目的主机,用于接收业务数据的 IP报文,所述 IP报文中携带第一 测量信息; 从所述接收模块接收的 IP报文中提取所述第一测量信息; 根据 所述提取模块提取的第一测量信息, 对所述第一测量信息对应的测量内容 进行测量。  The destination host is configured to receive an IP packet of the service data, where the IP packet carries the first measurement information, and the first measurement information is extracted from the IP packet received by the receiving module; The first measurement information extracted by the module is used to measure the measurement content corresponding to the first measurement information.
PCT/CN2010/076858 2009-09-17 2010-09-14 Measure method, apparatus and system WO2011032482A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910190321.1A CN102026221B (en) 2009-09-17 2009-09-17 Measuring method, device and system
CN200910190321.1 2009-09-17

Publications (1)

Publication Number Publication Date
WO2011032482A1 true WO2011032482A1 (en) 2011-03-24

Family

ID=43758103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076858 WO2011032482A1 (en) 2009-09-17 2010-09-14 Measure method, apparatus and system

Country Status (2)

Country Link
CN (1) CN102026221B (en)
WO (1) WO2011032482A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883464A (en) * 2012-09-13 2013-01-16 大唐移动通信设备有限公司 Gx interface resource releasing method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217237B (en) * 2011-05-09 2013-12-04 华为技术有限公司 Method and device for medium stream performance monitoring
CN103379046A (en) * 2012-04-20 2013-10-30 唐漫宇 Method for improving message sending efficiency through IP message combining and splitting technology
CN108075945B (en) * 2016-11-18 2021-04-27 腾讯科技(深圳)有限公司 Application testing method and device
CN106533847B (en) * 2017-01-24 2020-02-07 腾讯科技(深圳)有限公司 UDP communication quality detection method and device and UDP communication system
CN114666243A (en) * 2022-03-29 2022-06-24 迈普通信技术股份有限公司 Network quality measuring method, device, system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075960A (en) * 2007-06-22 2007-11-21 清华大学 Method for controlling fluid based on router virtual display load feedback in high-speed network
WO2008108697A1 (en) * 2007-03-08 2008-09-12 Telefonaktiebolaget Lm Ericsson (Publ) Passive monitoring of network performance
CN101304345A (en) * 2008-06-26 2008-11-12 北京邮电大学 Interposition type measurement node for self-organization network and measurement method thereof
CN101527670A (en) * 2008-03-04 2009-09-09 华为技术有限公司 Configuration method and device for full header information message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100358301C (en) * 2004-06-18 2007-12-26 华为技术有限公司 Active measuring system and method
CN1937541B (en) * 2005-09-20 2010-08-11 华为技术有限公司 Network performance test method
EP1793528B1 (en) * 2005-12-05 2008-03-26 Alcatel Lucent Method of monitoring the quality of a realtime communication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008108697A1 (en) * 2007-03-08 2008-09-12 Telefonaktiebolaget Lm Ericsson (Publ) Passive monitoring of network performance
CN101075960A (en) * 2007-06-22 2007-11-21 清华大学 Method for controlling fluid based on router virtual display load feedback in high-speed network
CN101527670A (en) * 2008-03-04 2009-09-09 华为技术有限公司 Configuration method and device for full header information message
CN101304345A (en) * 2008-06-26 2008-11-12 北京邮电大学 Interposition type measurement node for self-organization network and measurement method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883464A (en) * 2012-09-13 2013-01-16 大唐移动通信设备有限公司 Gx interface resource releasing method and device
CN102883464B (en) * 2012-09-13 2015-02-04 大唐移动通信设备有限公司 Gx interface resource releasing method and device

Also Published As

Publication number Publication date
CN102026221B (en) 2014-05-07
CN102026221A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
EP3482514B1 (en) Systems, apparatuses and methods for network packet management
US7286536B2 (en) Method and system for early header compression
US20200358886A1 (en) Data Transmission Method, Apparatus, And System
US9742650B2 (en) Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
WO2018196491A1 (en) Method and apparatus for decompressing and compressing uplink data
JP3694241B2 (en) Method and apparatus for telecommunications using Internet protocols
CA2671666C (en) Method, communications node, and memory for dynamic dictionary updating and optimization for compression and decompression of messages
WO2011032482A1 (en) Measure method, apparatus and system
US20080310452A1 (en) Data link layer headers
WO2007128217A1 (en) Method of internet protocol(ip) message transmission, negotiated bandwidth saving capability and saving network bandwidth
WO2007012275A1 (en) Authentication authorization accounting protocol message transmitting method
JP7050094B2 (en) Packet transmission method, proxy server, and computer readable storage medium
WO2011079785A1 (en) Method and apparatus for transmitting data packets
WO2015139324A1 (en) Configuration indication method and communication device
WO2010001684A1 (en) Communication system
WO2024032742A1 (en) Service processing method and apparatus, device, storage medium, and program product
WO2009109128A1 (en) Method and apparatus of full header information message configuration
WO2017067224A1 (en) Packet processing method and apparatus
CN113784389B (en) Data processing method and device
WO2017143538A1 (en) Voice data transmission method and apparatus
CN108574684A (en) A kind of method and apparatus of decompression
CN114040389B (en) High-speed safe transmission method suitable for application scene of Internet of things
WO2012103722A1 (en) Reception method and apparatus, transmission method and apparatus, and processing system for rtp media data
CN116896567B (en) Method and device for transmitting data by network layer protocol
WO2013067809A1 (en) Inter-protocol-layer data segmentation and recombination processing method and device

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: 10816686

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: 10816686

Country of ref document: EP

Kind code of ref document: A1