WO2017206767A1 - Method for diagnosing voice delay, gateway device, and computer storage medium - Google Patents

Method for diagnosing voice delay, gateway device, and computer storage medium Download PDF

Info

Publication number
WO2017206767A1
WO2017206767A1 PCT/CN2017/085574 CN2017085574W WO2017206767A1 WO 2017206767 A1 WO2017206767 A1 WO 2017206767A1 CN 2017085574 W CN2017085574 W CN 2017085574W WO 2017206767 A1 WO2017206767 A1 WO 2017206767A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
test data
receiving
transmission path
gateway
Prior art date
Application number
PCT/CN2017/085574
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 WO2017206767A1 publication Critical patent/WO2017206767A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for diagnosing a voice delay, a gateway device, and a computer storage medium.
  • IP Internet Protocol
  • VoIP Voice over Internet Protocol
  • VoIP that is, the analog voice signal is processed into a voice data stream by compression coding, and then packaged according to the TCP/IP (Transmission Control Protocol/Internet Protocol) standard, and then through a packet switching network (such as the Internet, ATM).
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • IP Transmission Control Protocol/Internet Protocol
  • the time information carried in the Real Time Transportation Control Protocol (RTCP) packet is used to calculate the delay of the VoIP voice communication, but this method requires that both parties that receive and send the RTCP packet support NTP ( Network Time Protocol (Network Time Protocol), that is, the time of sending and receiving RTCP packets is the same time standard, such as the world time standard, and the time carried in the RTCP packet is also the NTP time, and then the receiver can follow the NTP time and The NTP time carried in the RTCP packet calculates the delay in the VoIP voice communication. Therefore, in the prior art, both devices that require the RTCP packet to be sent and received support NTP. In addition, in the prior art, the delay of the VoIP voice communication is periodically calculated by periodically sending the RTCP packet, which additionally occupies the socket resource of the voice gateway system and causes a certain waste of network resources.
  • NTP Network Time Protocol
  • NTP Network Time Protocol
  • the delay of the VoIP voice communication is periodically calculated by periodically sending the RTCP packet, which additionally occupies the socket resource of the voice gateway system
  • the embodiment of the present invention is to provide a method for diagnosing a voice delay, a gateway device, and a computer storage medium, to solve the problem that the sender of the RTCP packet needs to be calculated based on the NTP time calculation transmission path delay carried by the RTCP packet in the prior art.
  • the receiver device must support the NTP issue.
  • An embodiment of the present invention provides a method for diagnosing a voice delay, including:
  • Sending a test data packet controlling the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and recording the sending time of the test data packet;
  • the acknowledgement packet is feedback of the test packet returned by the receiving gateway along the to-be-diagnosed transmission path
  • Embodiments of the present invention also provide a method for diagnosing a voice delay, including
  • an acknowledgement data packet for the test data packet is generated
  • the embodiment of the invention provides a gateway device, including
  • the first sending module is configured to send the test data packet generated by the generating module, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record the sending time of the test data packet;
  • a first receiving module configured to receive an acknowledgement data packet, and record a receiving time of the acknowledgement data packet;
  • the acknowledgement data packet is a feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
  • a calculating module configured to calculate a delay of the to-be diagnosed transmission path according to the sending time and the receiving time.
  • the embodiment of the invention further provides a gateway device, including
  • a second receiving module configured to receive a data packet transmitted by the sending gateway along the to-be-diagnosed transmission path
  • a determining module configured to determine whether the data packet received by the second receiving module is a test data packet
  • a second generation module configured to: when the determination result obtained by the determining module is that the received data packet is a test data packet, generate an acknowledgement data packet for the test data packet;
  • the second sending module is configured to send an acknowledgement packet to the sending gateway along the to-be-diagnosed transmission path.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the diagnostic voice delay applied to the transmitting end according to the embodiment of the present invention.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for the diagnostic voice delay applied to the receiving end according to the embodiment of the invention. method.
  • the method for diagnosing voice delay of the present invention, the gateway device and the computer storage medium can be calculated by using the reception time of the test data packet transmitted along the to-be-diagnosed transmission path and the reception time of the acknowledgment data packet transmitted by the transmission path to be diagnosed.
  • the delay of the transmission path to be diagnosed is compared with the prior art, in which the delay of the transmission path is determined by using the RTCP data packet, the device that sends the test data packet and the receiving gateway that receives the test data packet do not need to support NTP in this embodiment.
  • the protocol does not affect the accuracy of the delay calculated by the method of the embodiment even if the time of the transmitting device and the receiving gateway are not synchronized.
  • FIG. 1 is a flowchart of a method for diagnosing a voice delay according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for diagnosing a voice delay according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic block diagram of a gateway device according to Embodiment 3 of the present invention.
  • FIG. 4 is a system architecture diagram for providing a gateway device to implement a call between a local phone and a remote phone by using the third embodiment of the present invention
  • Figure 5 is a flow chart for performing voice delay diagnosis using the system of Figure 4.
  • FIG. 6 is a schematic diagram of a module of a gateway device according to Embodiment 4 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • this embodiment provides a method for diagnosing a voice delay, which is applied to a transmitting end.
  • the method includes:
  • S102 Send a test data packet, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record a sending time of the test data packet.
  • S103 Receive an acknowledgement packet, and record the receipt time of the acknowledgement packet.
  • the acknowledgment data packet is feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path, that is, the acknowledgment data packet is feedback that the receiving gateway sends back the test data packet after receiving the test data packet from the received data packet.
  • the voice communication in this embodiment mainly relates to VoIP voice communication, that is, IP telephone communication.
  • the process of implementing communication through VoIP voice communication is generally: the sender gateway performs data sampling on the sender's analog voice signal and encodes the data into a digital signal.
  • the encoded data is compressed into RTP (Real-time Transport Protocol) data packets, and then sent to the receiver gateway.
  • RTP Real-time Transport Protocol
  • the receiving gateway decompresses the data of the RTP data packet. , decoding, restore it to a voice signal, the receiver user can listen to the sender's voice.
  • the transmission path of the voice data is the transmission path of the RTP data packet, so it can be understood that, in this embodiment, the delay involved in the method for diagnosing the voice delay is mainly in the VoIP voice communication, and the RTP data packet
  • the delay of the transmission path, so the transmission path to be determined in this embodiment can be understood as the transmission path of the RTP data packet.
  • the selected method is implemented by using two devices under the same time standard to send RTCP data packets, in particular, the sender sends an RTCP data packet with a transmission time conforming to the NTP standard, and transmits the path through the transmission path.
  • the receiver takes the time difference between the RTCP packet reception time and the NTP time carried in the RTCP packet as the delay of the transmission path.
  • the delay is a one-way time of the transmission path.
  • the time standards of the sender and the receiver are the same, that is, the time synchronization between the sender and the receiver.
  • this embodiment proposes a diagnostic transmission.
  • the method of the path delay, the specific process includes the above S101, S102, S103 and S104.
  • the transmission time and reception time used in the present embodiment are both recorded by the party that originally transmitted the test packet, so the transmission time and the reception time are naturally relative to the same standard time. Since in this embodiment, the time for receiving the gateway is not involved, the time standard of the receiving gateway and the time at which the test packet is received do not have any influence on the calculation of the delay of the present embodiment.
  • the type of the test data packet is not limited, and includes a data packet that can be transmitted on the transmission path to be diagnosed by itself, for example, an RTP data packet or an RTCP data packet that can be transmitted in the transmission path of the RTP data packet; Or a packet that can be transmitted along the path to be diagnosed under certain control means, such as a customized packet transmitted along the path to be diagnosed under a certain control means.
  • step S101 When the test data packet generated in step S101 is an RTP data packet or an RTCP data packet, since the RTP data packet and the RTCP data packet are themselves transmitted along the transmission path of the RTP data packet, that is, the RTP data packet and the RTCP data packet itself are The transmission is performed along the path to be diagnosed. Therefore, in the case where the test packet is an RTP packet or an RTCP packet, step S102 is to send a test packet to the receiving gateway, and record the transmission time of the transmission test packet.
  • the forwarding node of the to-be-diagnosed transmission path between the transmitting gateway and the receiving gateway may be determined, and the test data is controlled.
  • the forwarding nodes along the path are forwarded in turn until they reach the receiving gateway.
  • the information of the forwarding node may be written into the customized data packet, and after receiving the customized data packet, each forwarding node may forward the customized data packet according to the information of the forwarding node in the customized data packet.
  • the receiving gateway after receiving the data packet, the receiving gateway first determines whether it is a test data packet. If yes, the receiving gateway immediately returns an acknowledgment data packet along the to-be-diagnosed transmission path, so as to send a gateway record acknowledgment data packet.
  • the receiving time it is conceivable that the source of the acknowledgment data packet in this embodiment includes but is not limited to: directly sending the test data packet as an acknowledgment data packet to the sending gateway along the path to be diagnosed, or regenerating the data packet as Confirm that the packet is sent back to the sending gateway along the path to be diagnosed.
  • the method for regenerating the data packet can refer to the above method for generating the test data packet, and the regenerated acknowledgement data packet can also be divided into an RTP data packet, an RTCP data packet, or a custom data packet, and the acknowledged data packet of the postback belongs to the RTP data.
  • the receiving gateway only needs to perform a sending operation, and the acknowledgment data packet can be transmitted to the transmitting gateway along the to-be-diagnosed transmission path, and when the acknowledgment data packet of the postback belongs to the customized data packet, the transmission is controlled along the to-be-diagnosed transmission.
  • the method of sending the path back to the sending gateway refer to the above method of sending the test data packet belonging to the customized data packet to the receiving gateway.
  • the test packet is directly used as the acknowledgment packet to be sent back in a manner that does not require re-generation, and the postback operation is simple.
  • the receiving gateway directly sends the test data packet to the sending gateway. At this time, the test data packet itself has met the requirement of sending back along the to-be-diagnosed transmission path.
  • the test data packet needs to be identified from the data packet, and then the acknowledgment data packet is sent back.
  • the process of receiving the gateway identification test data packet actually takes a certain time, and is calculated in this embodiment.
  • the delay of the transmission path to be diagnosed actually includes the identification time of the receiving gateway, but in general, the time of the identification is short relative to the transmission time of the data packet to be diagnosed, so the identification time can be ignored. The impact on latency. Further, in order to make the delay of the transmission path to be diagnosed in this embodiment more accurate, the identification time of the receiving gateway may be removed from the time delay calculated in step S104.
  • the specific value between the receiving gateways can record the total time required for the receiving gateway to continuously identify n (n is an integer) test packets, and then obtain the average time according to the total duration and the number of test packets n, and identify the average time as the average time. Time to use.
  • the RTP data packet or the RTCP data packet needs to satisfy the condition that can be distinguished from the normal RTP data packet or the RTCP data packet, and the receiving gateway can judge the received data. Whether the RTP packet or the RTCP packet is a test packet. In order to distinguish the RTP data packet or the RTCP data packet as the test data packet from the normal RTP data packet or the RTCP data packet, in step S101, when generating the test data packet, an RTP data packet or an RTCP data packet may be copied first.
  • the receiving gateway determining the test data packet may include determining whether the header information of the RTP data packet or the RTCP data packet is modified.
  • the specific information in the packet header may be modified into a preset judgment value, and the receiving gateway may only be in the header of the data packet. Whether the specific information is modified to a preset judgment value can determine whether the data packet is a test data packet.
  • the RTP data packet to be sent at the current time may be copied first, and then the PT value in one of the RTP data packet headers is modified to 126, and then the modified RTP data is sent.
  • the packet, the transmission time is recorded, and the original RTP data packet is also sent to the receiving gateway, and the original RTP data packet is used for normal voice communication.
  • the receiving gateway After receiving the RTP data packet, the receiving gateway recognizes that the PT value of the RTP data packet is the PT value of the normal RTP data packet, and decompresses and decodes the content of the RTP data packet to restore the analog voice signal; If it is recognized that the PT value in the header is 126, it can be judged that the RTP data packet is a test data packet, and then the acknowledge data packet is immediately sent back. In order to make the operation of the postback simple, and the postback path is ensured to be the transmission path to be determined, the RTP packet that is judged as the test packet can be directly determined. The postback is sent to the sending gateway. After receiving the RTP data packet with the RP value of 126, the sending gateway records the receiving time. According to the sending time and receiving time of the RTP data packet, the loopback delay of the transmission path to be determined can be calculated. The one-way delay of the transmission path is half of the loopback delay.
  • the receiving gateway cannot determine whether it is a test data packet according to whether the header information of the received data packet changes.
  • the sending gateway may write an indication information to indicate the identity of the test data packet, and instruct the receiving gateway to perform the operation of sending back the test data packet.
  • a custom data packet with a return instruction may be generated as a test data packet, and the return instruction is used to indicate that the receiving gateway receives the test packet immediately after receiving the test packet.
  • the acknowledgement packet is sent back along the transmission path to be determined.
  • a voice delay diagnosis switch can be set to implement the generation and transmission of the test data packet, and a human-computer interaction interface can be further provided. So that the user can control the enable and disable of the voice delay diagnostic switch.
  • enable the voice delay diagnosis switch When it is necessary to diagnose the delay of the voice of the transmission path, enable the voice delay diagnosis switch, enable the diagnosis of the voice delay, and perform the above steps S101-S104. After the voice delay diagnosis is completed, the voice delay diagnosis switch can be turned off. Wait for the next diagnosis.
  • the receiving time of the test data packet sent along the to-be-diagnosed transmission path and the receiving time of the acknowledgment data packet transmitted by the transmission path to be diagnosed can be used to calculate the time of the transmission path to be diagnosed.
  • the RTCP packet is used to determine the delay of the transmission path.
  • the device that sends the test packet and the receiving gateway that receives the test packet do not need to support the NTP protocol, even if the device and the receiver are received.
  • the time of the gateway is not synchronized, and the accuracy of the delay calculated by the method of the embodiment is not affected.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a method for diagnosing a voice delay, which is applied to a receiving end.
  • the method includes:
  • S204 Send an acknowledgement packet along the to-be-diagnosed transmission path to the sending gateway.
  • the method for diagnosing the voice delay in this embodiment is applicable to VoIP.
  • the transmission path of the voice data is the transmission path of the RTP data packet. Therefore, in this embodiment, the delay involved is mainly VoIP.
  • the delay of the transmission path of the RTP data packet, so the transmission path to be judged can be understood as the transmission path of the RTP data packet.
  • the test data packet of this embodiment includes a data packet that is transmitted on the transmission path to be diagnosed, for example, an RTP data packet or an RTCP data packet transmitted in a transmission path of the RTP data packet; or can be along a certain control means
  • a data packet to be diagnosed transmitted by the transmission path such as a custom data packet transmitted along the to-be-diagnosed transmission path under a certain control means.
  • the test data packet sent by the sending gateway may be an RTP data packet, an RTCP data packet, or a custom data packet, in order to improve the speed and efficiency of the determination in step S202, when determining whether the data packet is a test data packet, it may first determine Whether the data packet is an RTP data packet or an RTCP data packet, and whether the received data packet is a test data packet according to whether the RTP data packet or the RTCP data packet is modified.
  • the data packet is a custom data packet, if an instruction is returned in the data packet, indicating that the receiving gateway returns the acknowledgement data packet after receiving the data packet, the data packet is determined as a test data packet, and then the receiving gateway executes the return instruction. Returns the confirmation packet to the sending gateway.
  • the sending gateway generates a test data packet
  • the standard is to modify some information in the RTP data packet header, for example, the PT value, for example, to 126, and the receiving gateway judges the test packet and the sending gateway generation test.
  • the standard of the data packet corresponds to whether the RTP data packet is a test data packet by determining whether the PT value in the RTP data packet is 126.
  • the manner of generating the acknowledgment data packet includes: after receiving the test data packet, regenerating a new data packet as the acknowledgment data packet for the test data packet.
  • the acknowledgment data packet regenerated in this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet.
  • step S203 is actually a step of transmitting an RTP data packet or an RTCP data packet to the receiving gateway, and confirming that the data transmission path of the data packet is the transmission path to be determined.
  • the information such as the forwarding node of the transmission path of the acknowledgment data packet needs to be set, and the control acknowledgment data packet is sent back to the sending gateway along the transmission path to be determined.
  • the specific control manner refer to the first embodiment. Controls the description of the test packet transmission along the path to be diagnosed.
  • the method for generating the acknowledgment data packet further includes directly sending the identified test data packet as an acknowledgment data packet to the sending gateway along the to-be-determined transmission path, and adopting the method does not generate the acknowledgment data packet in advance, thereby avoiding wasting the gateway resource.
  • step S204 may be, after the test data packet is identified, the test data packet is sent back immediately.
  • step S204 is the simplest, and since the returned RTP data packet or the RTCP data packet itself belongs to a data packet that can be transmitted on the transmission path to be diagnosed, there is no need to use other control means to control the return path of the acknowledgement data packet. For the transmission path to be diagnosed.
  • test data packet sent by the sending gateway is a customized data packet
  • some modifications need to be made to the customized data packet, such as changing the forwarding node information of the transmission path carried by the gateway, so as to control the customized data.
  • the packet is returned along the path to be diagnosed.
  • the delay obtained by the transmitting gateway side is based on the transmission of the test data packet.
  • Inter- and acknowledgment data packet reception time calculation which actually includes the time between the receiving gateway receiving the test data packet and sending the acknowledgment data packet. This time is generally used in the identification test data packet, so In this embodiment, the receiving gateway may also record the time required for the self-identification test data packet, and notify the sending gateway of the time, so as to eliminate the error impact of the time on the delay.
  • the acknowledgment data packet can be sent back along the to-be-diagnosed transmission path, so that the sending gateway can determine the receiving time of the acknowledgment data packet, and identify the test data packet. Immediately after returning the acknowledgment packet, it is ensured that the time spent on the receiving gateway side is minimized, and the error of the calculated delay is reduced.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • this embodiment provides a gateway device, including:
  • a generating module 31 configured to generate a test data packet
  • the first sending module 32 is configured to send the test data packet generated by the generating module 31, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record the sending time of the test data packet;
  • the first receiving module 33 is configured to receive an acknowledgement data packet, and record a receiving time of the acknowledgement data packet; the acknowledgement data packet is a feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
  • the calculating module 34 is configured to calculate a delay of the transmission path to be diagnosed according to the sending time and the receiving time.
  • the sending time and the receiving time used by the calculating module 34 are recorded by the first sending module 32 and the first receiving module 33, the first sending module 32 and the first receiving Module 33 is in the same device and uses the same time standard, so the transmission time and reception time are naturally relative to the same standard time. Since in this embodiment, the time for receiving the gateway is not involved, the time standard of the receiving gateway and the time at which the test packet is received do not have any influence on the calculation of the delay of the present embodiment.
  • the test data packet includes a data packet that can be transmitted on the transmission path to be diagnosed by itself, for example, can be transmitted in the transmission path of the RTP data packet.
  • the test data packet generated by the generating module 31 is an RTP data packet or an RTCP data packet
  • the RTP data packet and the RTCP data packet are themselves transmitted along the transmission path of the RTP data packet, that is, the RTP data packet and the RTCP data packet.
  • the transmission path itself is transmitted along the path to be diagnosed. Therefore, for the case where the test data packet is an RTP data packet or an RTCP data packet, the first sending module 32 performs the process of sending an RTP data packet or an RTCP data packet to the receiving gateway, and recording and transmitting. The time at which RTP packets or RTCP packets are sent.
  • the first sending module 32 may determine the sending gateway to the receiving gateway.
  • the forwarding node of the transmission path to be diagnosed the control test packet is forwarded to the receiving gateway in turn along the forwarding node on the path.
  • the first sending module 32 may write information of the forwarding node of the transmission path to be diagnosed into the test data packet, and each forwarding node on the to-be diagnosed transmission path may receive the test data packet according to the test data packet.
  • the information of the forwarding node forwards the test data packet to the next hop forwarding node to achieve the purpose of transmitting the test data packet along the to-be-diagnosed transmission path, while ensuring the correctness of the delay calculated by the calculation module 34.
  • the first sending module 32 can directly send the data packet, and the method is simple, and the customized data packet is used as the test data.
  • the packet When the packet is used, it also needs to limit its transmission path. Compared with RTP data packets or RTCP data packets, its use is more complicated, and it is not as convenient to use as RTP data packets or RTCP data packets.
  • the receiving gateway first determines the received number. According to whether the packet is a test data packet, when the judgment result is that the received data packet is a test data packet, the receiving gateway immediately returns an acknowledgment data packet along the to-be-diagnosed transmission path, so as to send the gateway record to confirm the receiving time of the data packet. .
  • the source of the acknowledgment data packet in this embodiment includes, but is not limited to, directly detecting the identified test data packet as an acknowledgment data packet to the sending gateway along the path to be diagnosed, or regenerating the data packet as a acknowledgment data packet for the test data packet. Return to the sending gateway along the path to be diagnosed.
  • the regenerated data packet can refer to the description of the test packet generated by the first embodiment, and the acknowledgement data packet can also be divided into an RTP data packet, an RTCP data packet, or a custom data packet.
  • the acknowledgment packet sent back by the receiving gateway belongs to the RTP data packet or the RTCP data packet
  • the receiving gateway only needs to perform the operation of sending the acknowledgment data packet, and confirms that the data packet can be transmitted along the to-be-diagnosed transmission path to the sending gateway, when the postback is sent.
  • the method for transmitting the customized data packet to the receiving gateway along the path to be diagnosed by the first sending module 32 may be referred to. .
  • the delay of the transmission path to be diagnosed calculated by the calculation module 34 in this embodiment actually includes the judgment time of the receiving gateway, but in general, the judgment time is relative to the transmission time of the data packet in the transmission path to be diagnosed. The time is very short, so the error of the recognition time on the delay can be ignored. Further, in order to make the delay of the transmission path to be diagnosed in this embodiment more accurate, further, the calculation module 34 may remove the judgment time of the receiving gateway from the delay. For the determination of the judgment time, reference may be made to the related description in the first embodiment.
  • the RTP data packet or the RTCP data packet needs to satisfy a condition that can be distinguished from a normal RTP data packet or an RTCP data packet.
  • the receiving gateway can determine whether the received RTP data packet or the RTCP data packet is a test data packet. In order to be able to use RTP packets as test packets Or the RTCP data packet is distinguished from the normal RTP data packet or the RTCP data packet.
  • the generating module 31 When the generating module 31 generates the test data packet, the RTP data packet or the RTCP data packet may be copied first, and then the header information of the RTP data packet is modified or the RTCP is modified.
  • the packet header information of the packet is used as a test data packet by modifying the modified RTP data packet or the modified RTCP data packet.
  • the criterion for the receiving gateway to identify the test data packet may include determining whether the header information of the RTP data packet or the RTCP data packet is modified.
  • the generating module 31 may modify the specific information in the packet header to a preset judgment value when the test data packet is generated, and the receiving gateway may only modify according to whether the specific information in the packet header of the data packet is modified.
  • the preset judgment value can determine whether the data packet is a test data packet.
  • the generating module 31 may first copy the RTP packet to be sent at the current time, and then modify the PT value in one of the RTP packet headers to 126, the first sending.
  • the module 32 sends the modified RTP packet, records the transmission time, and sends the original RTP data packet to the receiving gateway to ensure the normal voice call.
  • the receiving gateway After receiving the RTP data packet, the receiving gateway recognizes that the PT value of the RTP data packet is the PT value of the normal RTP data packet, and decompresses and decodes the content of the RTP data packet to restore the analog voice signal; If it is recognized that the PT value in the header is 126, it can be judged that the RTP packet is a test data packet, and then the acknowledgement data packet is immediately sent back. For the simplicity of the postback operation, and the retransmission path is ensured to be the transmission path to be determined, the RTP data packet that is determined to be the test data packet can be directly sent back to the sending gateway, and the first receiving module 33 of the sending gateway receives the PT value of 126.
  • the receiving time is recorded, and the loopback delay of the transmission path to be determined can be calculated according to the sending time and the receiving time of the RTP data packet, and the one-way delay of the transmission path to be determined is the loopback delay. half.
  • the receiving gateway cannot determine whether it is a test data packet according to whether the received header information of the customized data packet changes. .
  • the indication indicates its identity and instructs the receiving gateway to perform a postback test packet.
  • the generating module 31 may generate a custom data packet with a return instruction, where the return instruction is used to instruct the receiving gateway to receive the test data packet. Immediately, the acknowledgement packet is sent back along the transmission path to be judged.
  • the data packet can be determined as the test data packet according to the return instruction.
  • the generating module 31 and the calculating module 34 in the gateway device may be used by a CPU (Central Processing Unit) and a DSP (Digital Signal Processor) in the gateway device.
  • a signal processor Central Processing Unit
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • the first transmitting module 32 and the first receiving module 33 in the gateway device are actually Applications can be implemented through communication modules (including: basic communication suites, operating systems, communication modules, standardized interfaces and protocols, etc.) and transceiver antennas.
  • FIG. 4 it is a system architecture diagram for implementing a call between a local phone and a remote phone by using the sending gateway of this embodiment.
  • the sending gateway device A, the signaling server, the receiving gateway device B, the local phone A, and the remote phone B are included.
  • the sending gateway device A and the receiving gateway device B are gateway integrated core system products, including but not limited to the following types: various uplink home gateways, uplink devices, trunk gateways, and user interface devices thereof , access gateway, etc.
  • the core gateway can directly connect to the phone, and the uplink can directly or indirectly connect to the Ethernet.
  • the call signaling server is a device for processing call signaling, including but not limited to a SIP (Session Initiation Protocol) server, a soft switch, and the like.
  • SIP Session Initiation Protocol
  • test data packet generated by the sending gateway device A is an RTP data packet, and is generated by modifying the PT value of the RTP data packet to 126. See Figure 5, Figure 5 is implemented using the system in Figure 4.
  • Flow chart of delay diagnosis, the specific voice delay process includes:
  • S501 sampling the voice analog signal, and packaging to form an RTP data packet
  • the sending gateway device A copies a current RTP data packet.
  • the sending gateway device A modifies the PT value in the RTP data packet header to be 126;
  • the sending gateway device A sends the modified RTP data packet to the receiving gateway device B, records the system time T1, and sends the original RTP data packet, turns off the voice delay diagnosis sending switch, and enables the voice delay diagnosis receiving switch to Processing the replied RTP packet;
  • the receiving gateway device B receives the RTP data packet, determines whether the PT value is 126, and if so, proceeds to S507, and if not, proceeds to S510;
  • the sending gateway device A receives the RTP data packet sent by the receiving gateway device B without any modification, determines whether the PT value is 126, if yes, proceeds to S509, and if not, proceeds to S510;
  • the first sending module can control the test data packet to be transmitted along the to-be-diagnosed transmission path, and the first receiving module receives the acknowledgement data packet sent back along the to-be-diagnosed transmission path, and the test data packet and the acknowledgement data packet are all along the edge.
  • the transmission path to be diagnosed can ensure that the delay of the diagnosis belongs to the delay of the transmission path to be diagnosed.
  • the sender and the receiver of the RTCP data packet need to be time-synchronized. Recording the transmission time of the test data packet and the receiving time of the acknowledgment data packet satisfy the requirement that the transmission time and the reception time are the same time standard. Therefore, in this embodiment, the voice delay is calculated, and is not affected by the sending gateway and the receiving network. Turn off the time synchronization limit.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • this embodiment provides a gateway device, including:
  • the second receiving module 61 is configured to receive a data packet that is sent by the sending gateway along the to-be-diagnosed transmission path;
  • the determining module 62 is configured to determine whether the data packet received by the second receiving module 61 is a test data packet
  • the second generation module 63 is configured to generate an acknowledgement data packet for the test data packet when the determination result obtained by the determination module 62 is that the received data packet is a test data packet;
  • the second sending module 64 is configured to send an acknowledgement packet to the sending gateway along the to-be-diagnosed transmission path.
  • the method for diagnosing voice delay in this embodiment is applicable to VoIP.
  • the transmission path of the voice data is the transmission path of the RTP data packet. Therefore, in this embodiment, the method for diagnosing the voice delay involves The delay is mainly the delay of the transmission path of the RTP data packet in the VoIP voice communication. Therefore, the transmission path to be determined in this embodiment can be understood as the transmission path of the RTP data packet.
  • the test data packet determined by the determining module 62 includes a data packet that is itself transmitted on the transmission path to be diagnosed, for example, an RTP data packet or an RTCP data packet transmitted in a transmission path of the RTP data packet; Or a data packet that can be transmitted along the path to be diagnosed under certain control means, for example, a custom data packet transmitted along the path to be diagnosed under a certain control means.
  • the determining module 62 determines that the rule of the test data packet corresponds to the manner in which the sending gateway generates the test data packet. For example, if the sending gateway generates the test data packet by modifying the existing RTP data packet or the RTCP data packet, After the second receiving module 61 receives the data packet, the determining module 62 may first determine whether the data packet is an RTP data packet or an RTCP data packet, and then according to Whether the RTP packet or the RTCP packet is modified to determine whether the received packet is a test packet.
  • the determining module 62 can determine whether the data packet is a test data packet by determining whether the data packet carries a return instruction.
  • the sending gateway if the sending gateway generates the test data packet, the information in the RTP data packet header, for example, the PT value, is modified, for example, to 126, and the determining module 62 identifies the test data packet.
  • the rule corresponds to the manner in which the sending gateway generates the test data packet, that is, the determining module 62 determines whether the PT value in the RTP data packet is 126, and if so, the RTP data packet is a test data packet.
  • the acknowledgment data packet of this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet.
  • the method for generating the acknowledgment data packet by the second generation module 63 includes: after receiving the test data packet, regenerating a new data packet as the acknowledgment data packet for the test data packet. It is conceivable that the acknowledgment data packet regenerated in this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet. For the generation process, reference may be made to the related description in the first embodiment.
  • the second sending module 64 When the confirmation data packet is an RTP data packet or an RTCP data packet, the second sending module 64 performs an operation of sending an RTP data packet or an RTCP data packet to the receiving gateway. At this time, confirming that the data packet transmission path is the transmission path to be determined. .
  • the confirmation data packet is a custom data packet, the second sending module 64 needs to set information such as a forwarding node that confirms the transmission path of the data packet, and controls the acknowledgment data packet to be sent back to the sending gateway along the to-be-determined transmission path, and the specific control is performed. For the manner, refer to the related description of controlling the transmission of the test data packet along the to-be-diagnosed transmission path in the first embodiment.
  • the manner in which the second generation module 63 generates the acknowledgment data packet further includes directly sending the identified test data packet as an acknowledgment data packet to the sending gateway along the to-be-determined transmission path, and the acknowledgment data packet is not generated in advance by using the method. Avoid wasting gateway resources.
  • the second sending module 64 sends back an acknowledgment data packet along the to-be-diagnosed transmission path to the sending gateway, which is actually sending an RTP data packet or an RTCP data packet.
  • the sending gateway since the returned RTP data packet or the RTCP data packet itself belongs to the data packet that can be transmitted on the transmission path to be diagnosed, it is not necessary to use other control means to control the return path of the acknowledgment data packet as the transmission path to be diagnosed.
  • the determining module 62 and the second generating module 63 in the gateway device may be implemented by a CPU, a DSP, an MCU, or an FPGA in the gateway device in an actual application;
  • the two receiving modules 61 and the second sending module 64 can be implemented in a practical application by a communication module (including: a basic communication suite, an operating system, a communication module, a standardized interface and a protocol, etc.) and a transmitting and receiving antenna.
  • the acknowledgment data packet is sent back along the to-be-diagnosed transmission path, so that the sending gateway can determine the receiving time of the acknowledgment data packet, and the test data and the acknowledgment data are all to be diagnosed.
  • Transmission on the transmission path ensures that the calculated delay belongs to the delay of the transmission path to be diagnosed.
  • the receiving gateway recognizes the test packet and immediately sends back the acknowledgement packet, which can reduce the return of the acknowledgement packet on the receiving gateway side. The time required is beneficial to reduce the error of the delay calculated by the sending gateway.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place.
  • the party may also be distributed to multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage medium includes: a mobile storage device, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the technical solution of the embodiment of the present invention can calculate the delay of the transmission path to be diagnosed by using the receiving time of the test data packet sent along the to-be-diagnosed transmission path and the receiving time of the acknowledgement data packet transmitted by the transmission path to be diagnosed.
  • the RTCP packet is used to determine the delay of the transmission path.
  • the device that sends the test packet and the receiving gateway that receives the test packet do not need to support the NTP protocol, even if the sending device and the receiving gateway do not have time. Synchronization does not affect the accuracy of the delay calculated by the method of the present embodiment.

Abstract

Disclosed in embodiments of the present invention are a method for diagnosing a voice delay, a gateway device and a computer storage medium. The method comprises: generating a test data packet; transmitting the test data packet, controlling the test data packet to be transmitted to a receiving gateway along a transmission path to be diagnosed, and recording a transmission time of the test data packet; receiving a confirmation data packet, and recording a receiving time of the confirmation data packet, the confirmation data packet being a feedback to the test data packet returned from the receiving gateway along the transmission path to be diagnosed; calculating a delay of the transmission path to be diagnosed according to the transmission time and the receiving time.

Description

一种诊断语音时延的方法、网关设备和计算机存储介质Method for diagnosing voice delay, gateway device and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610382565.X、申请日为2016年06月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application Serial No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种诊断语音时延的方法、网关设备和计算机存储介质。The present invention relates to the field of communications technologies, and in particular, to a method for diagnosing a voice delay, a gateway device, and a computer storage medium.
背景技术Background technique
随着通信技术的发展,在NGN(Next Generation Network,下一代网络)中,IP(Internet Protocol,网际协议)将作为同一的通信协议,整个网络将演变为以IP技术为核心,可以支持语音、数据、多媒体业务的融合网络,其中VoIP(Voice over Internet Protocol,IP电话)具有占用网络资源少,成本低廉等优势,很好地满足了人们的日常生活和工作的需求,是最具有潜力的应用。近年来,VoIP在世界范围内得到了飞速的发展,越来越被大众认可,相对于传统的电话网络,基于IP网络的VoIP明显具有成本低的优点,更受年轻用户的青睐。With the development of communication technology, in the Next Generation Network (NGN), IP (Internet Protocol) will serve as the same communication protocol. The entire network will evolve to adopt IP technology as the core and support voice, A converged network of data and multimedia services, in which VoIP (Voice over Internet Protocol) has the advantages of occupying less network resources and lower cost, and satisfies people's daily life and work needs, and is the most potential application. . In recent years, VoIP has developed rapidly around the world and is increasingly recognized by the public. Compared with traditional telephone networks, IP-based VoIP has obvious advantages of low cost and is favored by young users.
VoIP,即将模拟语音信号通过压缩编码处理,变成语音数据流,然后按照TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/网际协议)标准打包,再通过分组交换网(如Internet、ATM)传输,在接收端,通过解压缩编码还原为模拟语音信号。可以想到的是,发送方的语音数据流在经过了互联网连接的机器之间的传输后到达接收方是有时延 的,为了能为用户双方提供更优良的服务,需要确定VoIP语音通信的时延。一般而言,现有技术中,都是通过RTCP(Realtime Transportation Control Protocol,实时传输控制协议)包携带的时间信息来计算VoIP语音通信的时延,但是此方法要求收发RTCP包的双方支持NTP(Network Time Protocol,网络时间协议),即收发RTCP包的双发的时间是同一个时间标准比如世界时间标准,且在RTCP包中携带的时间也是NTP时间,然后接收方才能根据自身的NTP时间和RTCP包中携带的NTP时间计算出VoIP语音通信中的时延,所以现有技术中,要求收发RTCP包的双方设备支持NTP。此外,现有技术中,采用的是周期性发送RTCP报文的方式周期性地计算VoIP语音通信的时延,这会额外占用语音网关系统socket资源,并造成一定的网络资源的浪费。VoIP, that is, the analog voice signal is processed into a voice data stream by compression coding, and then packaged according to the TCP/IP (Transmission Control Protocol/Internet Protocol) standard, and then through a packet switching network (such as the Internet, ATM). The transmission, at the receiving end, is restored to an analog voice signal by decompression coding. It is conceivable that the sender's voice data stream arrives at the receiver after transmission between the Internet-connected machines. In order to provide better services for both users, it is necessary to determine the delay of VoIP voice communication. Generally, in the prior art, the time information carried in the Real Time Transportation Control Protocol (RTCP) packet is used to calculate the delay of the VoIP voice communication, but this method requires that both parties that receive and send the RTCP packet support NTP ( Network Time Protocol (Network Time Protocol), that is, the time of sending and receiving RTCP packets is the same time standard, such as the world time standard, and the time carried in the RTCP packet is also the NTP time, and then the receiver can follow the NTP time and The NTP time carried in the RTCP packet calculates the delay in the VoIP voice communication. Therefore, in the prior art, both devices that require the RTCP packet to be sent and received support NTP. In addition, in the prior art, the delay of the VoIP voice communication is periodically calculated by periodically sending the RTCP packet, which additionally occupies the socket resource of the voice gateway system and causes a certain waste of network resources.
发明内容Summary of the invention
本发明实施例期望提供一种诊断语音时延的方法、网关设备和计算机存储介质,以解决现有技术中需要基于RTCP包携带的NTP时间计算传输路径时延带来的RTCP包的发送方和接收方设备必须支持NTP的问题。The embodiment of the present invention is to provide a method for diagnosing a voice delay, a gateway device, and a computer storage medium, to solve the problem that the sender of the RTCP packet needs to be calculated based on the NTP time calculation transmission path delay carried by the RTCP packet in the prior art. The receiver device must support the NTP issue.
本发明实施例提供一种诊断语音时延的方法,包括:An embodiment of the present invention provides a method for diagnosing a voice delay, including:
生成测试数据包;Generate test data packets;
发送测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录所述测试数据包的发送时间;Sending a test data packet, controlling the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and recording the sending time of the test data packet;
接收确认数据包,记录所述确认数据包的接收时间;所述确认数据包为接收网关沿待诊断传输路径返回的对测试数据包的反馈Receiving an acknowledgement packet, recording a receipt time of the acknowledgement packet; the acknowledgement packet is feedback of the test packet returned by the receiving gateway along the to-be-diagnosed transmission path
根据所述发送时间和所述接收时间计算待诊断传输路径的时延。Calculating a delay of the transmission path to be diagnosed according to the transmission time and the reception time.
本发明实施例还提供一种诊断语音时延的方法,包括Embodiments of the present invention also provide a method for diagnosing a voice delay, including
接收发送网关沿待诊断传输路径上传输的数据包;Receiving, by the sending gateway, a data packet transmitted on the transmission path to be diagnosed;
判断接收的所述数据包是否为测试数据包; Determining whether the received data packet is a test data packet;
当判断结果为接收的所述数据包为测试数据包时,生成对测试数据包的确认数据包;When the result of the determination is that the received data packet is a test data packet, an acknowledgement data packet for the test data packet is generated;
沿待诊断传输路径发送确认数据包至发送网关。Send an acknowledgment packet along the to-be-diagnosed transmission path to the sending gateway.
本发明实施例提供一种网关设备,包括The embodiment of the invention provides a gateway device, including
生成模块,配置为生成测试数据包;Generating a module configured to generate a test data packet;
第一发送模块,配置为发送所述生成模块生成的所述测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录测试数据包的发送时间;The first sending module is configured to send the test data packet generated by the generating module, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record the sending time of the test data packet;
第一接收模块,配置为接收确认数据包,记录所述确认数据包的接收时间;所述确认数据包为接收网关沿待诊断传输路径返回的对测试数据包的反馈;a first receiving module, configured to receive an acknowledgement data packet, and record a receiving time of the acknowledgement data packet; the acknowledgement data packet is a feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
计算模块,配置为根据所述发送时间和所述接收时间计算待诊断传输路径的时延。And a calculating module, configured to calculate a delay of the to-be diagnosed transmission path according to the sending time and the receiving time.
本发明实施例还提供一种网关设备,包括The embodiment of the invention further provides a gateway device, including
第二接收模块,配置为接收发送网关沿待诊断传输路径上传输的数据包;a second receiving module, configured to receive a data packet transmitted by the sending gateway along the to-be-diagnosed transmission path;
判断模块,配置为判断所述第二接收模块接收的数据包是否为测试数据包;a determining module, configured to determine whether the data packet received by the second receiving module is a test data packet;
第二生成模块,配置为在所述判断模块获得的判断结果为接收的所述数据包为测试数据包时,生成对所述测试数据包的确认数据包;a second generation module, configured to: when the determination result obtained by the determining module is that the received data packet is a test data packet, generate an acknowledgement data packet for the test data packet;
第二发送模块,配置为沿所述待诊断传输路径发送确认数据包至发送网关。The second sending module is configured to send an acknowledgement packet to the sending gateway along the to-be-diagnosed transmission path.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的应用于发送端的诊断语音时延的方法。 The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform the diagnostic voice delay applied to the transmitting end according to the embodiment of the present invention. Methods.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于本发明实施例所述的应用于接收端的诊断语音时延的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for the diagnostic voice delay applied to the receiving end according to the embodiment of the invention. method.
采用本发明的诊断语音时延的方法、网关设备和计算机存储介质,可利用沿待诊断传输路径发送的测试数据包的接收时间,和接收待诊断传输路径传输的确认数据包的接收时间来计算待诊断传输路径的时延,相对于现有技术中,利用RTCP数据包确定传输路径的时延的方式,本实施例中发送测试数据包的设备和接收测试数据包的接收网关不须支持NTP协议,即使发送设备和接收网关的时间不同步,也不影响本实施例的方法计算出的时延的准确性。The method for diagnosing voice delay of the present invention, the gateway device and the computer storage medium can be calculated by using the reception time of the test data packet transmitted along the to-be-diagnosed transmission path and the reception time of the acknowledgment data packet transmitted by the transmission path to be diagnosed. The delay of the transmission path to be diagnosed is compared with the prior art, in which the delay of the transmission path is determined by using the RTCP data packet, the device that sends the test data packet and the receiving gateway that receives the test data packet do not need to support NTP in this embodiment. The protocol does not affect the accuracy of the delay calculated by the method of the embodiment even if the time of the transmitting device and the receiving gateway are not synchronized.
附图说明DRAWINGS
图1为本发明实施例一提供的一种诊断语音时延的方法的流程图;1 is a flowchart of a method for diagnosing a voice delay according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种诊断语音时延的方法的流程图;2 is a flowchart of a method for diagnosing a voice delay according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种网关设备的模块示意图;3 is a schematic block diagram of a gateway device according to Embodiment 3 of the present invention;
图4为利用本发明实施例三提供网关设备实现本端话机和远端话机通话的系统构架图;4 is a system architecture diagram for providing a gateway device to implement a call between a local phone and a remote phone by using the third embodiment of the present invention;
图5为利用图4中的系统进行语音时延诊断的流程图;Figure 5 is a flow chart for performing voice delay diagnosis using the system of Figure 4;
图6为本发明实施例四提供的一种网关设备的模块示意图。FIG. 6 is a schematic diagram of a module of a gateway device according to Embodiment 4 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
参见图1,本实施例提出了一种诊断语音时延的方法,应用于发送端;所述方法包括:Referring to FIG. 1, this embodiment provides a method for diagnosing a voice delay, which is applied to a transmitting end. The method includes:
S101、生成测试数据包; S101. Generate a test data packet.
S102、发送测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录测试数据包的发送时间;S102. Send a test data packet, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record a sending time of the test data packet.
S103、接收确认数据包,记录确认数据包的接收时间;S103. Receive an acknowledgement packet, and record the receipt time of the acknowledgement packet.
确认数据包为接收网关沿待诊断传输路径返回的对测试数据包的反馈,即确认数据包是接收网关从接收的数据包中识别出测试数据包后,沿待诊断传输路径回发的反馈。The acknowledgment data packet is feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path, that is, the acknowledgment data packet is feedback that the receiving gateway sends back the test data packet after receiving the test data packet from the received data packet.
S104、根据发送时间和接收时间计算待诊断传输路径的时延。S104. Calculate a delay of the transmission path to be diagnosed according to the sending time and the receiving time.
本实施例的语音通信主要涉及VoIP语音通信,即IP电话通信,通过VoIP语音通信方式实现通信的过程一般是,发送方网关对发送方的模拟语音信号进行数据采样并进行数据编码成数字信号,再将编码后的数据压缩打包成RTP(Real-time Transport Protocol,实时传输协议)数据包,然后发送给接收方网关,接收方网关接收到RTP数据包后,对RTP数据包的数据进行解压缩、解码,将其还原为语音信号,接收方用户就可以收听到发送方的语音。The voice communication in this embodiment mainly relates to VoIP voice communication, that is, IP telephone communication. The process of implementing communication through VoIP voice communication is generally: the sender gateway performs data sampling on the sender's analog voice signal and encodes the data into a digital signal. The encoded data is compressed into RTP (Real-time Transport Protocol) data packets, and then sent to the receiver gateway. After receiving the RTP data packet, the receiving gateway decompresses the data of the RTP data packet. , decoding, restore it to a voice signal, the receiver user can listen to the sender's voice.
在VoIP通信中,语音数据的传输路径就是RTP数据包的传输路径,所以可以理解的是,本实施例中,诊断语音时延的方法涉及的时延主要是VoIP语音通信中,RTP数据包的传输路径的时延,所以本实施例的待判断传输路径可以理解为RTP数据包的传输路径。In the VoIP communication, the transmission path of the voice data is the transmission path of the RTP data packet, so it can be understood that, in this embodiment, the delay involved in the method for diagnosing the voice delay is mainly in the VoIP voice communication, and the RTP data packet The delay of the transmission path, so the transmission path to be determined in this embodiment can be understood as the transmission path of the RTP data packet.
为了确定传输路径的时延,选择的方法是利用两个处于相同时间标准下的设备发送RTCP数据包实现的,具体是发送方发送一带有符合NTP标准的发送时间的RTCP数据包,通过传输路径发送给接收方,接收方将RTCP数据包的接收时间,和RTCP数据包中携带的NTP时间之间的时间差作为传输路径的时延,在现有技术中的时延是传输路径的单向时延,作为传输路径的起点和终点,发送方和接收方的时间标准是一致的,即发送方和接收方的时间同步。为了摆脱时间标准一致的限制,本实施例提出了诊断传 输路径时延的方法,具体的过程包括上述的S101、S102、S103和S104。In order to determine the delay of the transmission path, the selected method is implemented by using two devices under the same time standard to send RTCP data packets, in particular, the sender sends an RTCP data packet with a transmission time conforming to the NTP standard, and transmits the path through the transmission path. Sending to the receiver, the receiver takes the time difference between the RTCP packet reception time and the NTP time carried in the RTCP packet as the delay of the transmission path. In the prior art, the delay is a one-way time of the transmission path. As the start and end points of the transmission path, the time standards of the sender and the receiver are the same, that is, the time synchronization between the sender and the receiver. In order to get rid of the consistent limit of time standard, this embodiment proposes a diagnostic transmission. The method of the path delay, the specific process includes the above S101, S102, S103 and S104.
本实施例的使用的发送时间和接收时间都是由初始发送测试数据包的一方记录的,所以发送时间和接收时间自然是相对于同一标准的时间。由于在本实施例中,不涉及接收网关的时间,所以接收网关的时间标准和其接收测试数据包的时间对本实施例的时延的计算没有任何的影响。The transmission time and reception time used in the present embodiment are both recorded by the party that originally transmitted the test packet, so the transmission time and the reception time are naturally relative to the same standard time. Since in this embodiment, the time for receiving the gateway is not involved, the time standard of the receiving gateway and the time at which the test packet is received do not have any influence on the calculation of the delay of the present embodiment.
在本实施例中,测试数据包的类型没有限制,包括本身就能在待诊断传输路径上传输的数据包,比如,能在RTP数据包的传输路径中传输的RTP数据包或RTCP数据包;或在某种控制手段下能沿待诊断传输路径传输的数据包,例如在某种控制手段下沿待诊断传输路径传输的自定义的数据包。In this embodiment, the type of the test data packet is not limited, and includes a data packet that can be transmitted on the transmission path to be diagnosed by itself, for example, an RTP data packet or an RTCP data packet that can be transmitted in the transmission path of the RTP data packet; Or a packet that can be transmitted along the path to be diagnosed under certain control means, such as a customized packet transmitted along the path to be diagnosed under a certain control means.
当步骤S101中生成的测试数据包是RTP数据包或RTCP数据包时,由于RTP数据包和RTCP数据包本身就是沿着RTP数据包的传输路径传输的,即RTP数据包和RTCP数据包本身就沿待诊断传输路径传输,所以对于测试数据包为RTP数据包或RTCP数据包的情况而言,步骤S102为发送测试数据包到接收网关,记录发送测试数据包的发送时间。When the test data packet generated in step S101 is an RTP data packet or an RTCP data packet, since the RTP data packet and the RTCP data packet are themselves transmitted along the transmission path of the RTP data packet, that is, the RTP data packet and the RTCP data packet itself are The transmission is performed along the path to be diagnosed. Therefore, in the case where the test packet is an RTP packet or an RTCP packet, step S102 is to send a test packet to the receiving gateway, and record the transmission time of the transmission test packet.
当步骤S101中生成的测试数据包是自定义数据包,为了实现测试数据包沿待诊断传输路径传输的目的,可以确定发送网关到接收网关之间的待诊断传输路径的转发节点,控制测试数据包沿路径上的转发节点依次转发,直至到达接收网关。具体的,可以将转发节点的信息写入自定义数据包中,每一个转发节点收到该自定义数据包之后,可以根据自定义数据包中的转发节点的信息,将该自定义数据包转发到下一跳转发节点,实现测试数据包沿待诊断传输路径传输的目的,确保步骤S104中的时延的正确性。在上述的分析中,可以发现,将RTP数据包或RTCP数据包作为测试数据包使用时,直接发送即可,步骤简单,而将自定义数据包作为测试数据包使用时,还需要对其传输路径做限制,相对于RTP数据包和RTCP数据包而言,其使用较为复杂,不如RTP数据包和RTCP数据包使用方便。 When the test data packet generated in step S101 is a custom data packet, in order to realize the purpose of transmitting the test data packet along the to-be-diagnosed transmission path, the forwarding node of the to-be-diagnosed transmission path between the transmitting gateway and the receiving gateway may be determined, and the test data is controlled. The forwarding nodes along the path are forwarded in turn until they reach the receiving gateway. Specifically, the information of the forwarding node may be written into the customized data packet, and after receiving the customized data packet, each forwarding node may forward the customized data packet according to the information of the forwarding node in the customized data packet. Go to the next hop forwarding node to achieve the purpose of transmitting the test data packet along the path to be diagnosed, and ensure the correctness of the delay in step S104. In the above analysis, it can be found that when the RTP data packet or the RTCP data packet is used as the test data packet, the direct transmission can be performed, and the steps are simple, and when the customized data packet is used as the test data packet, it needs to be transmitted. The path is restricted. Compared with RTP packets and RTCP packets, its use is more complicated, and it is not as convenient as RTP packets and RTCP packets.
在本实施例中,接收网关收到数据包之后,会先判断其是否为测试数据包,如果是,接收方网关会立即沿待诊断传输路径返回一个确认数据包,以便发送网关记录确认数据包的接收时间,可以想到的是,本实施例中的确认数据包的来源包括但不限于:直接将测试数据包作为确认数据包沿待诊断路径回发到发送网关,或者,重新生成数据包作为确认数据包沿待诊断传输路径回发到发送网关。In this embodiment, after receiving the data packet, the receiving gateway first determines whether it is a test data packet. If yes, the receiving gateway immediately returns an acknowledgment data packet along the to-be-diagnosed transmission path, so as to send a gateway record acknowledgment data packet. The receiving time, it is conceivable that the source of the acknowledgment data packet in this embodiment includes but is not limited to: directly sending the test data packet as an acknowledgment data packet to the sending gateway along the path to be diagnosed, or regenerating the data packet as Confirm that the packet is sent back to the sending gateway along the path to be diagnosed.
重新生成数据包的方法可以参考上述关于生成测试数据包的方法,重新生成的确认数据包也可以分为RTP数据包、RTCP数据包或自定义数据包,当回发的确认数据包属于RTP数据包或RTCP数据包时,接收网关只需执行发送操作,确认数据包即可沿待诊断传输路径传输至发送网关,当回发的确认数据包属于自定义数据包时,控制其沿待诊断传输路径回发至发送网关的方法,可以参考上述将属于自定义数据包的测试数据包发送至接收网关的方法。The method for regenerating the data packet can refer to the above method for generating the test data packet, and the regenerated acknowledgement data packet can also be divided into an RTP data packet, an RTCP data packet, or a custom data packet, and the acknowledged data packet of the postback belongs to the RTP data. When a packet or RTCP data packet is used, the receiving gateway only needs to perform a sending operation, and the acknowledgment data packet can be transmitted to the transmitting gateway along the to-be-diagnosed transmission path, and when the acknowledgment data packet of the postback belongs to the customized data packet, the transmission is controlled along the to-be-diagnosed transmission. For the method of sending the path back to the sending gateway, refer to the above method of sending the test data packet belonging to the customized data packet to the receiving gateway.
在上述的描述中,相对于将重新生成的数据包作为确认数据包的方案,直接将测试数据包作为确认数据包回发的方式不需要重新生成的步骤,回发的操作简单。尤其是在测试数据包为RTP数据包或RTCP数据包的时候,接收网关直接发送测试数据包到发送网关即可,此时,测试数据包自身已经满足沿待诊断传输路径回发的要求。In the above description, with respect to the scheme of recreating the data packet as the acknowledgment packet, the test packet is directly used as the acknowledgment packet to be sent back in a manner that does not require re-generation, and the postback operation is simple. Especially when the test data packet is an RTP data packet or an RTCP data packet, the receiving gateway directly sends the test data packet to the sending gateway. At this time, the test data packet itself has met the requirement of sending back along the to-be-diagnosed transmission path.
在接收网关收到数据包之后,需要从数据包中识别出测试数据包,然后才能回发确认数据包,接收网关识别测试数据包的过程实际上也是需要一定的时间的,本实施例中计算的待诊断传输路径的时延实际上也包括接收网关的识别时间,但是一般而言,该识别的时间相对于数据包在待诊断传输路径的传输时间时很短暂的,所以可以忽略该识别时间对时延的影响。进一步地,为了使得本实施例的待诊断传输路径的时延更准确,可以从步骤S104中计算出来的时延中去除接收网关的识别时间。为了得到该识别时 间的具体值,可以记录接收网关不间断识别n个(n为整数)测试数据包需要的总时长,再根据该总时长和测试数据包的个数n得到平均时间,将该平均时间作为识别时间使用。After the receiving gateway receives the data packet, the test data packet needs to be identified from the data packet, and then the acknowledgment data packet is sent back. The process of receiving the gateway identification test data packet actually takes a certain time, and is calculated in this embodiment. The delay of the transmission path to be diagnosed actually includes the identification time of the receiving gateway, but in general, the time of the identification is short relative to the transmission time of the data packet to be diagnosed, so the identification time can be ignored. The impact on latency. Further, in order to make the delay of the transmission path to be diagnosed in this embodiment more accurate, the identification time of the receiving gateway may be removed from the time delay calculated in step S104. In order to get this recognition The specific value between the receiving gateways can record the total time required for the receiving gateway to continuously identify n (n is an integer) test packets, and then obtain the average time according to the total duration and the number of test packets n, and identify the average time as the average time. Time to use.
可以想到的,当测试数据包是RTP数据包或RTCP数据包时,该RTP数据包或RTCP数据包需满足能与普通RTP数据包或RTCP数据包区分开的条件,接收网关才能判断收到的RTP数据包或RTCP数据包是否为测试数据包。为了能将作为测试数据包的RTP数据包或RTCP数据包与普通RTP数据包或RTCP数据包区分开,在步骤S101中,生成测试数据包时,可以先复制一个RTP数据包或RTCP数据包,然后修改RTP数据包的包头信息或修改RTCP数据包的包头信息,将修改后的RTP数据包或修改后的RTCP数据包作为测试数据包使用。对应的,接收网关判断测试数据包的规则可以包括判断RTP数据包或RTCP数据包的包头信息是否被修改。It is conceivable that when the test data packet is an RTP data packet or an RTCP data packet, the RTP data packet or the RTCP data packet needs to satisfy the condition that can be distinguished from the normal RTP data packet or the RTCP data packet, and the receiving gateway can judge the received data. Whether the RTP packet or the RTCP packet is a test packet. In order to distinguish the RTP data packet or the RTCP data packet as the test data packet from the normal RTP data packet or the RTCP data packet, in step S101, when generating the test data packet, an RTP data packet or an RTCP data packet may be copied first. Then modify the header information of the RTP data packet or modify the header information of the RTCP data packet, and use the modified RTP data packet or the modified RTCP data packet as the test data packet. Correspondingly, the receiving gateway determining the test data packet may include determining whether the header information of the RTP data packet or the RTCP data packet is modified.
为了进一步保证接收网关判断的准确性,避免对正常语音通信产生干扰,在生成测试数据包时,可以将包头中的特定信息修改为预设的判断值,接收网关只要根据该数据包的包头中的特定信息是否被修改为预设的判断值,即可判断该数据包是否为测试数据包。In order to further ensure the accuracy of the receiving gateway judgment and avoid interference to the normal voice communication, when generating the test data packet, the specific information in the packet header may be modified into a preset judgment value, and the receiving gateway may only be in the header of the data packet. Whether the specific information is modified to a preset judgment value can determine whether the data packet is a test data packet.
以RTP数据包为例,在生成测试数据包时,可以先复制当前时刻将要发送的RTP数据包,再将其中一个RTP数据包包头中的PT值修改为126,接着发送该修改后的RTP数据包,记录发送时间,并将原始的RTP数据包也发送给接收网关,该原始的RTP数据包用于正常的语音通信。接收网关在接收到RTP数据包后,若识别出RTP数据包的PT值为正常的RTP数据包的PT值,对该RTP数据包的内容进行解压缩、解码等操作,还原出模拟语音信号;若识别出包头中的PT值为126,就可以判断该RTP数据包为测试数据包,然后立即回发确认数据包。为了回发操作的简单,以及回发路径确保为待判断传输路径,可以直接将判断为测试数据包的RTP数据包 回发给发送网关,发送网关收到RP值为126的RTP数据包后,记录接收时间,根据该RTP数据包的发送时间和接收时间可以计算出待判断传输路径的环回时延,待判断传输路径的单向时延是该环回时延的一半。Taking the RTP data packet as an example, when generating the test data packet, the RTP data packet to be sent at the current time may be copied first, and then the PT value in one of the RTP data packet headers is modified to 126, and then the modified RTP data is sent. The packet, the transmission time is recorded, and the original RTP data packet is also sent to the receiving gateway, and the original RTP data packet is used for normal voice communication. After receiving the RTP data packet, the receiving gateway recognizes that the PT value of the RTP data packet is the PT value of the normal RTP data packet, and decompresses and decodes the content of the RTP data packet to restore the analog voice signal; If it is recognized that the PT value in the header is 126, it can be judged that the RTP data packet is a test data packet, and then the acknowledge data packet is immediately sent back. In order to make the operation of the postback simple, and the postback path is ensured to be the transmission path to be determined, the RTP packet that is judged as the test packet can be directly determined. The postback is sent to the sending gateway. After receiving the RTP data packet with the RP value of 126, the sending gateway records the receiving time. According to the sending time and receiving time of the RTP data packet, the loopback delay of the transmission path to be determined can be calculated. The one-way delay of the transmission path is half of the loopback delay.
当该测试数据包是自定义数据包时,接收网关不能根据接收的数据包的包头信息是否改变来判断其是否为测试数据包。对此,发送网关在生成自定义数据包时,可以在测试数据包中写入指示信息指示其身份,并指示接收网关执行回发测试数据包的操作。作为一种实施方式,在生成自定义数据包时,可以生成带有返回指令的自定义数据包作为测试数据包,该返回指令用于指示接收到接收网关在收到测试该数据包后,立即沿待判断传输路径回发确认数据包。When the test data packet is a custom data packet, the receiving gateway cannot determine whether it is a test data packet according to whether the header information of the received data packet changes. In this regard, when generating the customized data packet, the sending gateway may write an indication information to indicate the identity of the test data packet, and instruct the receiving gateway to perform the operation of sending back the test data packet. As an implementation manner, when generating a custom data packet, a custom data packet with a return instruction may be generated as a test data packet, and the return instruction is used to indicate that the receiving gateway receives the test packet immediately after receiving the test packet. The acknowledgement packet is sent back along the transmission path to be determined.
为了便于控制测试数据包的发送,达到控制诊断语音时延的目的,本实施例中,可以设置一语音时延诊断开关来实现测试数据包的生成和发送,进一步地还可提供人机交互界面以便用户控制语音时延诊断开关的使能和关闭。当需要诊断传输路径的语音时延时,使能语音时延诊断开关,开启语音时延的诊断,进行上述的S101-S104的步骤,当语音时延诊断结束后,可以关闭语音时延诊断开关,等待下一次诊断。In order to facilitate the control of the transmission of the test data packet, the purpose of controlling the diagnosis of the voice delay is achieved. In this embodiment, a voice delay diagnosis switch can be set to implement the generation and transmission of the test data packet, and a human-computer interaction interface can be further provided. So that the user can control the enable and disable of the voice delay diagnostic switch. When it is necessary to diagnose the delay of the voice of the transmission path, enable the voice delay diagnosis switch, enable the diagnosis of the voice delay, and perform the above steps S101-S104. After the voice delay diagnosis is completed, the voice delay diagnosis switch can be turned off. Wait for the next diagnosis.
采用本实施例的诊断语音时延的方法,可利用沿待诊断传输路径发送的测试数据包的接收时间,和接收待诊断传输路径传输的确认数据包的接收时间来计算待诊断传输路径的时延,相对于现有技术中,利用RTCP包确定传输路径的时延的方式,本实施例中发送测试数据包的设备和接收测试数据包的接收网关不须支持NTP协议,即使发送设备和接收网关的时间不同步,也不影响本实施例的方法计算出的时延的准确性。According to the method for diagnosing the voice delay of the embodiment, the receiving time of the test data packet sent along the to-be-diagnosed transmission path and the receiving time of the acknowledgment data packet transmitted by the transmission path to be diagnosed can be used to calculate the time of the transmission path to be diagnosed. With respect to the prior art, the RTCP packet is used to determine the delay of the transmission path. In this embodiment, the device that sends the test packet and the receiving gateway that receives the test packet do not need to support the NTP protocol, even if the device and the receiver are received. The time of the gateway is not synchronized, and the accuracy of the delay calculated by the method of the embodiment is not affected.
实施例二:Embodiment 2:
参见图2,本实施例提供一种诊断语音时延的方法,应用于接收端;所述方法包括: Referring to FIG. 2, the embodiment provides a method for diagnosing a voice delay, which is applied to a receiving end. The method includes:
S201、接收待诊断传输路径上传输的数据包;S201. Receive a data packet transmitted on a transmission path to be diagnosed.
S202、判断接收的数据包是否为测试数据包;S202. Determine whether the received data packet is a test data packet.
S203、当判断结果为接收的所述数据包为测试数据包时,生成对测试数据包的确认数据包;S203. When the result of the determination is that the received data packet is a test data packet, generate an acknowledgement data packet for the test data packet.
S204、沿待诊断传输路径发送确认数据包至发送网关。S204. Send an acknowledgement packet along the to-be-diagnosed transmission path to the sending gateway.
本实施例的上述步骤是实施例一中的接收网关接收数据包至反馈确认数据包的步骤,可以理解的是,本实施例的确认数据包发送到发送网关后,发送网关可以记录确认数据包的接收时间,再根据测试数据包的发送时间就可以计算出待诊断传输路径的时延,具体的计算公式是:时延=接收时间-发送时间。The foregoing steps of the embodiment are the steps of the receiving gateway receiving the data packet to the feedback confirmation data packet in the first embodiment. It can be understood that after the acknowledgment data packet of the embodiment is sent to the sending gateway, the sending gateway can record the acknowledgment data packet. According to the receiving time, the delay of the transmission path to be diagnosed can be calculated according to the sending time of the test data packet. The specific calculation formula is: delay = receiving time - sending time.
本实施例的诊断语音时延的方法适用于VoIP,在VoIP通信中,语音数据的传输路径就是RTP数据包的传输路径,所以可以理解的是,本实施例中,涉及的时延主要是VoIP语音通信中,RTP数据包的传输路径的时延,所以待判断传输路径可以理解为RTP数据包的传输路径。The method for diagnosing the voice delay in this embodiment is applicable to VoIP. In the VoIP communication, the transmission path of the voice data is the transmission path of the RTP data packet. Therefore, in this embodiment, the delay involved is mainly VoIP. In the voice communication, the delay of the transmission path of the RTP data packet, so the transmission path to be judged can be understood as the transmission path of the RTP data packet.
本实施例的测试数据包包括本身就是在待诊断传输路径上传输的数据包,比如,在RTP数据包的传输路径中传输的RTP数据包或RTCP数据包;或在某种控制手段下能沿待诊断传输路径传输的数据包,例如在某种控制手段下沿待诊断传输路径传输的自定义数据包。The test data packet of this embodiment includes a data packet that is transmitted on the transmission path to be diagnosed, for example, an RTP data packet or an RTCP data packet transmitted in a transmission path of the RTP data packet; or can be along a certain control means A data packet to be diagnosed transmitted by the transmission path, such as a custom data packet transmitted along the to-be-diagnosed transmission path under a certain control means.
考虑到发送网关发送的测试数据包可以是RTP数据包、RTCP数据包、或自定义数据包,为了提高步骤S202中判断的速度和效率,在判断数据包是否为测试数据包时,可以先判断数据包是否为RTP数据包或RTCP数据包,再根据RTP数据包或RTCP数据包是否被修改判断收到的数据包是否为测试数据包。当数据包为自定义数据包时,若该数据包中返回指令,指示接收网关收到数据包后返回确认数据包,则将该数据包判断为测试数据包,然后接收网关执行该返回指令,返回确认数据包给发送网关。 Considering that the test data packet sent by the sending gateway may be an RTP data packet, an RTCP data packet, or a custom data packet, in order to improve the speed and efficiency of the determination in step S202, when determining whether the data packet is a test data packet, it may first determine Whether the data packet is an RTP data packet or an RTCP data packet, and whether the received data packet is a test data packet according to whether the RTP data packet or the RTCP data packet is modified. When the data packet is a custom data packet, if an instruction is returned in the data packet, indicating that the receiving gateway returns the acknowledgement data packet after receiving the data packet, the data packet is determined as a test data packet, and then the receiving gateway executes the return instruction. Returns the confirmation packet to the sending gateway.
可以想到的是,若发送网关在生成测试数据包时的标准是,将RTP数据包头中的某个信息例如PT值修改,例如修改为126,接收网关判断测试数据包的规则与发送网关生成测试数据包的标准相对应,即可以通过判断RTP数据包中的PT值是否为126判断RTP数据包是否为测试数据包。It is conceivable that if the sending gateway generates a test data packet, the standard is to modify some information in the RTP data packet header, for example, the PT value, for example, to 126, and the receiving gateway judges the test packet and the sending gateway generation test. The standard of the data packet corresponds to whether the RTP data packet is a test data packet by determining whether the PT value in the RTP data packet is 126.
在本实施例中,生成确认数据包的方式包括收到测试数据包后,针对该测试数据包重新生成一个新的数据包作为确认数据包。可以想到的是,本实施例重新生成的确认数据包可以是RTP数据包、RTCP数据包或自定义数据包,生成过程可以参考实施例一中的相关描述。当确认数据包是RTP数据包或RTCP数据包时,步骤S203实际上是发送RTP数据包或RTCP数据包到接收网关的步骤,确认数据包的传输路径就是待判断传输路径。当确认数据包属于自定义数据包时,需要设置确认数据包的传输路径的转发节点等信息,控制确认数据包沿待判断传输路径回发至发送网关,具体的控制方式可以参考实施例一中控制测试数据包沿待诊断传输路径传输的相关描述。In this embodiment, the manner of generating the acknowledgment data packet includes: after receiving the test data packet, regenerating a new data packet as the acknowledgment data packet for the test data packet. It is conceivable that the acknowledgment data packet regenerated in this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet. For the generation process, reference may be made to the related description in the first embodiment. When it is confirmed that the data packet is an RTP data packet or an RTCP data packet, step S203 is actually a step of transmitting an RTP data packet or an RTCP data packet to the receiving gateway, and confirming that the data transmission path of the data packet is the transmission path to be determined. When it is confirmed that the data packet belongs to the custom data packet, the information such as the forwarding node of the transmission path of the acknowledgment data packet needs to be set, and the control acknowledgment data packet is sent back to the sending gateway along the transmission path to be determined. For the specific control manner, refer to the first embodiment. Controls the description of the test packet transmission along the path to be diagnosed.
此外,生成确认数据包的方式还包括直接将识别出来的测试数据包作为确认数据包沿待判断传输路径回发给发送网关,采用此方法不用预先生成确认数据包,避免浪费网关资源。当发送网关发送的测试数据包是RTP数据包或RTCP数据包时,步骤S204可以是,在识别出测试数据包后,立即回发测试数据包。此时,步骤S204最简单,而且,由于回发的RTP数据包或RTCP数据包本身就属于能在待诊断传输路径上传输的数据包,所以无需采用其他控制手段控制确认数据包的回发路径为待诊断传输路径。当发送网关发送的测试数据包是自定义的数据包时,步骤S203中,还需要对自定义数据包进行某些修改,比如改变其携带的传输路径的转发节点信息等,才能控制自定义数据包沿待诊断传输路径返回。In addition, the method for generating the acknowledgment data packet further includes directly sending the identified test data packet as an acknowledgment data packet to the sending gateway along the to-be-determined transmission path, and adopting the method does not generate the acknowledgment data packet in advance, thereby avoiding wasting the gateway resource. When the test data packet sent by the sending gateway is an RTP data packet or an RTCP data packet, step S204 may be, after the test data packet is identified, the test data packet is sent back immediately. At this time, step S204 is the simplest, and since the returned RTP data packet or the RTCP data packet itself belongs to a data packet that can be transmitted on the transmission path to be diagnosed, there is no need to use other control means to control the return path of the acknowledgement data packet. For the transmission path to be diagnosed. When the test data packet sent by the sending gateway is a customized data packet, in step S203, some modifications need to be made to the customized data packet, such as changing the forwarding node information of the transmission path carried by the gateway, so as to control the customized data. The packet is returned along the path to be diagnosed.
可以想到的是,发送网关一侧得到的时延是根据测试数据包的发送时 间和确认数据包的接收时间计算的,这其中,其实包括了接收网关收到测试数据包,到发送确认数据包之间的时间,这时间一般是用在了识别测试数据包上,所以,本实施例中,接收网关还可以记录自身识别测试数据包需要的时间,将该时间告知发送网关,以便消除该时间对时延的误差影响。It is conceivable that the delay obtained by the transmitting gateway side is based on the transmission of the test data packet. Inter- and acknowledgment data packet reception time calculation, which actually includes the time between the receiving gateway receiving the test data packet and sending the acknowledgment data packet. This time is generally used in the identification test data packet, so In this embodiment, the receiving gateway may also record the time required for the self-identification test data packet, and notify the sending gateway of the time, so as to eliminate the error impact of the time on the delay.
采用本实施例的诊断语音时延的方法,可以在识别出测试数据包后,立即沿待诊断传输路径回发确认数据包,以便发送网关能确定确认数据包的接收时间,识别出测试数据包后立即回发确认数据包的方式,能确保在接收网关一侧花费的时间最少,降低计算出来的时延的误差。By using the method for diagnosing voice delay in this embodiment, after the test data packet is identified, the acknowledgment data packet can be sent back along the to-be-diagnosed transmission path, so that the sending gateway can determine the receiving time of the acknowledgment data packet, and identify the test data packet. Immediately after returning the acknowledgment packet, it is ensured that the time spent on the receiving gateway side is minimized, and the error of the calculated delay is reduced.
实施例三:Embodiment 3:
参见图3,本实施例提供一种网关设备,包括:Referring to FIG. 3, this embodiment provides a gateway device, including:
生成模块31,配置为生成测试数据包;a generating module 31 configured to generate a test data packet;
第一发送模块32,配置为发送所述生成模块31生成的所述测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录所述测试数据包的发送时间;The first sending module 32 is configured to send the test data packet generated by the generating module 31, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record the sending time of the test data packet;
第一接收模块33,配置为接收确认数据包,记录所述确认数据包的接收时间;所述确认数据包为接收网关沿待诊断传输路径返回的对测试数据包的反馈;The first receiving module 33 is configured to receive an acknowledgement data packet, and record a receiving time of the acknowledgement data packet; the acknowledgement data packet is a feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
计算模块34,配置为根据所述发送时间和所述接收时间计算待诊断传输路径的时延。The calculating module 34 is configured to calculate a delay of the transmission path to be diagnosed according to the sending time and the receiving time.
本实施例中,所述计算模块34使用的发送时间和接收时间是由所述第一发送模块32和所述第一接收模块33记录的,所述第一发送模块32和所述第一接收模块33在同一设备中,使用的时间标准相同,所以发送时间和接收时间自然是相对于同一标准的时间。由于在本实施例中,不涉及接收网关的时间,所以接收网关的时间标准和其接收测试数据包的时间对本实施例的时延的计算没有任何的影响。 In this embodiment, the sending time and the receiving time used by the calculating module 34 are recorded by the first sending module 32 and the first receiving module 33, the first sending module 32 and the first receiving Module 33 is in the same device and uses the same time standard, so the transmission time and reception time are naturally relative to the same standard time. Since in this embodiment, the time for receiving the gateway is not involved, the time standard of the receiving gateway and the time at which the test packet is received do not have any influence on the calculation of the delay of the present embodiment.
本实施例对所述生成模块31生成的测试数据包的类型没有限制,测试数据包包括本身就能在待诊断传输路径上传输的数据包,比如,能在RTP数据包的传输路径中传输的RTP数据包或RTCP数据包;或在某种控制手段下能沿待诊断传输路径传输的数据包,例如在某种控制手段下沿待诊断传输路径传输的自定义数据包。In this embodiment, there is no limitation on the type of the test data packet generated by the generating module 31. The test data packet includes a data packet that can be transmitted on the transmission path to be diagnosed by itself, for example, can be transmitted in the transmission path of the RTP data packet. RTP data packets or RTCP data packets; or data packets that can be transmitted along the path to be diagnosed under certain control means, such as custom data packets transmitted along the path to be diagnosed under certain control means.
当所述生成模块31生成的测试数据包是RTP数据包或RTCP数据包时,由于RTP数据包和RTCP数据包本身就是沿着RTP数据包的传输路径传输的,即RTP数据包和RTCP数据包本身就沿待诊断传输路径传输,所以对于测试数据包为RTP数据包或RTCP数据包的情况而言,第一发送模块32所做的就是发送RTP数据包或RTCP数据包到接收网关,记录发送RTP数据包或RTCP数据包的发送时间。When the test data packet generated by the generating module 31 is an RTP data packet or an RTCP data packet, since the RTP data packet and the RTCP data packet are themselves transmitted along the transmission path of the RTP data packet, that is, the RTP data packet and the RTCP data packet. The transmission path itself is transmitted along the path to be diagnosed. Therefore, for the case where the test data packet is an RTP data packet or an RTCP data packet, the first sending module 32 performs the process of sending an RTP data packet or an RTCP data packet to the receiving gateway, and recording and transmitting. The time at which RTP packets or RTCP packets are sent.
当所述生成模块31生成的测试数据包是自定义数据包时,为了实现测试数据包沿待诊断传输路径传输的目的,所述第一发送模块32可以通过确定发送网关到接收网关之间的待诊断传输路径的转发节点,控制测试数据包沿路径上的转发节点依次转发到达接收网关。进一步所述第一发送模块32可以将待诊断传输路径的转发节点的信息写入测试数据包中,待诊断传输路径上的每一个转发节点收到该测试数据包之后,可以根据测试数据包中的转发节点的信息,将该测试数据包转发到下一跳转发节点,实现测试数据包沿待诊断传输路径传输的目的,同时确保所述计算模块34计算的时延的正确性。在上述的分析中,可以发现,将RTP数据包或RTCP数据包作为测试数据包使用时,所述第一发送模块32直接发送数据包即可,方法简单,而将自定义数据包作为测试数据包使用时,还需要对其传输路径做限制,相对于RTP数据包或RTCP数据包而言,其使用较为复杂,不如RTP数据包或RTCP数据包使用方便。When the test data packet generated by the generating module 31 is a custom data packet, in order to achieve the purpose of transmitting the test data packet along the to-be-diagnosed transmission path, the first sending module 32 may determine the sending gateway to the receiving gateway. The forwarding node of the transmission path to be diagnosed, the control test packet is forwarded to the receiving gateway in turn along the forwarding node on the path. Further, the first sending module 32 may write information of the forwarding node of the transmission path to be diagnosed into the test data packet, and each forwarding node on the to-be diagnosed transmission path may receive the test data packet according to the test data packet. The information of the forwarding node forwards the test data packet to the next hop forwarding node to achieve the purpose of transmitting the test data packet along the to-be-diagnosed transmission path, while ensuring the correctness of the delay calculated by the calculation module 34. In the above analysis, it can be found that when the RTP data packet or the RTCP data packet is used as the test data packet, the first sending module 32 can directly send the data packet, and the method is simple, and the customized data packet is used as the test data. When the packet is used, it also needs to limit its transmission path. Compared with RTP data packets or RTCP data packets, its use is more complicated, and it is not as convenient to use as RTP data packets or RTCP data packets.
可以想到的是,接收网关收到数据包之后,会先判断接收到的所述数 据包是否为测试数据包,当判断结果为接收的所述数据包为测试数据包时,接收方网关会立即沿待诊断传输路径返回一个确认数据包,以便发送网关记录确认数据包的接收时间。本实施例中的确认数据包的来源包括但不限于:直接将识别出来的测试数据包作为确认数据包沿待诊断路径回发到发送网关,或者针对测试数据包重新生成数据包作为确认数据包,沿待诊断传输路径回发到发送网关。这里的重新生成数据包可以参考实施例一生成测试数据包的相关描述,确认数据包也可分为RTP数据包、RTCP数据包或自定义数据包。当接收网关回发的确认数据包属于RTP数据包或RTCP数据包时,接收网关只需执行发送确认数据包的操作,确认数据包即可沿待诊断传输路径传输至发送网关,当回发的确认数据包属于自定义数据包时,控制其沿待诊断传输路径回发至发送网关的方法,可以参考上述第一发送模块32将自定义数据包沿待诊断传输路径发送至接收网关的相关描述。It is conceivable that after receiving the data packet, the receiving gateway first determines the received number. According to whether the packet is a test data packet, when the judgment result is that the received data packet is a test data packet, the receiving gateway immediately returns an acknowledgment data packet along the to-be-diagnosed transmission path, so as to send the gateway record to confirm the receiving time of the data packet. . The source of the acknowledgment data packet in this embodiment includes, but is not limited to, directly detecting the identified test data packet as an acknowledgment data packet to the sending gateway along the path to be diagnosed, or regenerating the data packet as a acknowledgment data packet for the test data packet. Return to the sending gateway along the path to be diagnosed. Here, the regenerated data packet can refer to the description of the test packet generated by the first embodiment, and the acknowledgement data packet can also be divided into an RTP data packet, an RTCP data packet, or a custom data packet. When the acknowledgment packet sent back by the receiving gateway belongs to the RTP data packet or the RTCP data packet, the receiving gateway only needs to perform the operation of sending the acknowledgment data packet, and confirms that the data packet can be transmitted along the to-be-diagnosed transmission path to the sending gateway, when the postback is sent. For the method of controlling the data packet to be sent back to the sending gateway along the path to be diagnosed, the method for transmitting the customized data packet to the receiving gateway along the path to be diagnosed by the first sending module 32 may be referred to. .
一般而言,在接收网关收到数据包之后,需要进行测试数据包的判断,才能回发确认数据包,该判断的过程实际上也是需要一定的时间。所以,本实施例中所述计算模块34计算的待诊断传输路径的时延实际上也包括接收网关的判断时间,但是一般而言,该判断时间相对于数据包在待诊断传输路径的传输时间时很短暂的,所以可以忽略该识别时间对时延的误差影响。若为了使得本实施例的待诊断传输路径的时延更准确,进一步地,计算模块34可以从时延中去除接收网关的判断时间。该判断时间的确定可以参考实施例一中的相关描述。Generally, after the receiving gateway receives the data packet, it needs to judge the test data packet to send back the acknowledgment data packet, and the process of the judgment actually takes a certain time. Therefore, the delay of the transmission path to be diagnosed calculated by the calculation module 34 in this embodiment actually includes the judgment time of the receiving gateway, but in general, the judgment time is relative to the transmission time of the data packet in the transmission path to be diagnosed. The time is very short, so the error of the recognition time on the delay can be ignored. Further, in order to make the delay of the transmission path to be diagnosed in this embodiment more accurate, further, the calculation module 34 may remove the judgment time of the receiving gateway from the delay. For the determination of the judgment time, reference may be made to the related description in the first embodiment.
本实施例中,当所述生成模块31生成的测试数据包是RTP数据包或数据RTCP包时,该RTP数据包或RTCP数据包需满足能与普通RTP数据包或RTCP数据包区分开的条件,接收网关才能判断收到的RTP数据包或RTCP数据包是否为测试数据包。为了能将作为测试数据包的RTP数据包 或RTCP数据包与普通RTP数据包或RTCP数据包区分开,所述生成模块31生成测试数据包时,可以先复制一个RTP数据包或RTCP数据包,然后修改RTP数据包的包头信息或修改RTCP数据包的包头信息,将修改后的RTP数据包或修改后的RTCP数据包作为测试数据包使用。对应的,接收网关识别测试数据包的标准可以包括判断RTP数据包或RTCP数据包的包头信息是否被修改。为了进一步保证判断的准确性,生成模块31在生成测试数据包时,可以将包头中的特定信息修改为预设的判断值,接收网关只要根据该数据包的包头中的特定信息是否被修改为预设的判断值,即可判断该数据包是否为测试数据包。In this embodiment, when the test data packet generated by the generating module 31 is an RTP data packet or a data RTCP packet, the RTP data packet or the RTCP data packet needs to satisfy a condition that can be distinguished from a normal RTP data packet or an RTCP data packet. The receiving gateway can determine whether the received RTP data packet or the RTCP data packet is a test data packet. In order to be able to use RTP packets as test packets Or the RTCP data packet is distinguished from the normal RTP data packet or the RTCP data packet. When the generating module 31 generates the test data packet, the RTP data packet or the RTCP data packet may be copied first, and then the header information of the RTP data packet is modified or the RTCP is modified. The packet header information of the packet is used as a test data packet by modifying the modified RTP data packet or the modified RTCP data packet. Correspondingly, the criterion for the receiving gateway to identify the test data packet may include determining whether the header information of the RTP data packet or the RTCP data packet is modified. In order to further ensure the accuracy of the judgment, the generating module 31 may modify the specific information in the packet header to a preset judgment value when the test data packet is generated, and the receiving gateway may only modify according to whether the specific information in the packet header of the data packet is modified. The preset judgment value can determine whether the data packet is a test data packet.
以RTP数据包为例,所述生成模块31在生成测试数据包时,可以先复制当前时刻将要发送的RTP包,再将其中一个RTP包包头中的PT值修改为126,所述第一发送模块32发送该修改后的RTP包,记录发送时间,并将原始的RTP数据包也发送给接收网关,以便保证语音通话的正常。接收网关在接收到RTP数据包后,若识别出RTP数据包的PT值为正常的RTP数据包的PT值,对该RTP数据包的内容进行解压缩、解码等操作,还原出模拟语音信号;若识别出包头中的PT值为126,就可以判断该RTP包为测试数据包,然后立即回发确认数据包。为了回发操作的简单,以及回发路径确保为待判断传输路径,可以直接将判断为测试数据包的RTP数据包回发给发送网关,发送网关的第一接收模块33收到PT值为126的RTP数据包后,记录接收时间,根据该RTP数据包的发送时间和接收时间可以计算出待判断传输路径的环回时延,待判断传输路径的单向时延是该环回时延的一半。Taking the RTP data packet as an example, when generating the test data packet, the generating module 31 may first copy the RTP packet to be sent at the current time, and then modify the PT value in one of the RTP packet headers to 126, the first sending. The module 32 sends the modified RTP packet, records the transmission time, and sends the original RTP data packet to the receiving gateway to ensure the normal voice call. After receiving the RTP data packet, the receiving gateway recognizes that the PT value of the RTP data packet is the PT value of the normal RTP data packet, and decompresses and decodes the content of the RTP data packet to restore the analog voice signal; If it is recognized that the PT value in the header is 126, it can be judged that the RTP packet is a test data packet, and then the acknowledgement data packet is immediately sent back. For the simplicity of the postback operation, and the retransmission path is ensured to be the transmission path to be determined, the RTP data packet that is determined to be the test data packet can be directly sent back to the sending gateway, and the first receiving module 33 of the sending gateway receives the PT value of 126. After the RTP data packet, the receiving time is recorded, and the loopback delay of the transmission path to be determined can be calculated according to the sending time and the receiving time of the RTP data packet, and the one-way delay of the transmission path to be determined is the loopback delay. half.
当所述生成模块31生成的测试数据包是自定义数据包时,因为没有原始的数据包作对比,接收网关不能根据接收的自定义数据包的包头信息是否改变来判断其是否为测试数据包。此时,可以在自定义数据包中写入指 示信息指示其身份,并指示接收网关执行回发测试数据包。作为一种实施方式,所述生成模块31在生成测试数据包时,可以生成带有返回指令的自定义数据包作为测试数据包,该返回指令用于指示接收网关在收到测试该数据包后,立即沿待判断传输路径回发确认数据包。由此,在接收网关收到带有返回指令的数据包后,可以根据该返回指令确定该数据包为测试数据包。When the test data packet generated by the generating module 31 is a custom data packet, because there is no original data packet for comparison, the receiving gateway cannot determine whether it is a test data packet according to whether the received header information of the customized data packet changes. . At this point, you can write in the custom packet The indication indicates its identity and instructs the receiving gateway to perform a postback test packet. As an implementation manner, when generating the test data packet, the generating module 31 may generate a custom data packet with a return instruction, where the return instruction is used to instruct the receiving gateway to receive the test data packet. Immediately, the acknowledgement packet is sent back along the transmission path to be judged. Thus, after the receiving gateway receives the data packet with the return instruction, the data packet can be determined as the test data packet according to the return instruction.
本发明实施例中,所述网关设备中的生成模块31和计算模块34,在实际应用中均可由所述网关设备中的CPU(Central Processing Unit,中央处理器)、DSP(Digital Signal Processor,数字信号处理器)、MCU(Microcontroller Unit,微控制单元)或FPGA(Field-Programmable Gate Array,可编程门阵列)实现;所述网关设备中的第一发送模块32和第一接收模块33,在实际应用中可通过通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In the embodiment of the present invention, the generating module 31 and the calculating module 34 in the gateway device may be used by a CPU (Central Processing Unit) and a DSP (Digital Signal Processor) in the gateway device. a signal processor), an MCU (Microcontroller Unit) or an FPGA (Field-Programmable Gate Array); the first transmitting module 32 and the first receiving module 33 in the gateway device are actually Applications can be implemented through communication modules (including: basic communication suites, operating systems, communication modules, standardized interfaces and protocols, etc.) and transceiver antennas.
下面以发送网关设备A和接收网关设备B为例,对诊断语音时延做出详细的解释。参见图4,是利用本实施例的发送网关实现本端话机和远端话机之间通话的系统构架图。包括发送网关设备A、信令服务器、接收网关设备B、本端话机A、远端话机B。The following takes the sending gateway device A and the receiving gateway device B as an example to provide a detailed explanation for the diagnostic voice delay. Referring to FIG. 4, it is a system architecture diagram for implementing a call between a local phone and a remote phone by using the sending gateway of this embodiment. The sending gateway device A, the signaling server, the receiving gateway device B, the local phone A, and the remote phone B are included.
发送网关设备A、接收网关设备B是一种以网关为核心综合系统产品,包括但不受限于以下种类:各种上行的家庭网关及其上行设备、中继网关及其下挂用户接口设备、接入网关等。其中核心的网关能直接下挂话机,上行能直接或间接连接以太网。呼叫信令服务器是一种处理通话信令的设备,包括但不受限于SIP(Session Initiation Protocol,会话发起协议)服务器、软交换等。The sending gateway device A and the receiving gateway device B are gateway integrated core system products, including but not limited to the following types: various uplink home gateways, uplink devices, trunk gateways, and user interface devices thereof , access gateway, etc. The core gateway can directly connect to the phone, and the uplink can directly or indirectly connect to the Ethernet. The call signaling server is a device for processing call signaling, including but not limited to a SIP (Session Initiation Protocol) server, a soft switch, and the like.
假设发送网关设备A生成的测试数据包是RTP数据包,生成的方式是将RTP数据包的PT值修改为126。参见图5,图5利用图4中的系统实现 时延诊断的流程图,具体的语音时延过程包括:It is assumed that the test data packet generated by the sending gateway device A is an RTP data packet, and is generated by modifying the PT value of the RTP data packet to 126. See Figure 5, Figure 5 is implemented using the system in Figure 4. Flow chart of delay diagnosis, the specific voice delay process includes:
S501、对语音模拟信号进行采样,打包形成RTP数据包;S501: sampling the voice analog signal, and packaging to form an RTP data packet;
S502、在发送RTP媒体流时,检测语音延时诊断发送开关是否使能,如果是,进入S503,如果否,进入S510;S502, when transmitting the RTP media stream, detecting whether the voice delay diagnosis sending switch is enabled, if yes, proceeding to S503, if not, proceeding to S510;
S503、发送网关设备A拷贝一份当前RTP数据包;S503. The sending gateway device A copies a current RTP data packet.
S504、发送网关设备A修改RTP数据包头中的PT值为126;S504, the sending gateway device A modifies the PT value in the RTP data packet header to be 126;
S505、发送网关设备A发送修改后的RTP数据包给接收网关设备B,记录系统时间T1,并发送原始的RTP数据包,关闭语音时延诊断发送开关,使能语音时延诊断接收开关,以处理回复的RTP数据包;S505. The sending gateway device A sends the modified RTP data packet to the receiving gateway device B, records the system time T1, and sends the original RTP data packet, turns off the voice delay diagnosis sending switch, and enables the voice delay diagnosis receiving switch to Processing the replied RTP packet;
S506、接收网关设备B接收到RTP数据包,判断PT值是否为126,如果是,进入S507,如果否,进入S510;S506, the receiving gateway device B receives the RTP data packet, determines whether the PT value is 126, and if so, proceeds to S507, and if not, proceeds to S510;
S507、对收到的RTP数据包不做任何修改,立即回发给发送网关设备A;S507, without any modification to the received RTP data packet, immediately sent back to the sending gateway device A;
S508、发送网关设备A收到接收网关设备B发送的不做任何修改的RTP数据包,判断PT值是否为126,如果是,进入S509,如果否,进入S510;S508, the sending gateway device A receives the RTP data packet sent by the receiving gateway device B without any modification, determines whether the PT value is 126, if yes, proceeds to S509, and if not, proceeds to S510;
S509、记录接收RTP数据包的时间T2,关闭语音时延诊断接收开关,计算T2-T1的结果,并将时延诊断结果返回给人机界面;S509. Record the time T2 of receiving the RTP data packet, turn off the voice delay diagnosis receiving switch, calculate the result of T2-T1, and return the delay diagnosis result to the human-machine interface;
S510、正常语音处理。S510, normal voice processing.
采用本实施例的网关设备,第一发送模块能控制测试数据包沿待诊断传输路径传输,第一接收模块接收沿待诊断传输路径回发的确认数据包,测试数据包和确认数据包均沿待诊断传输路径传输,可以确保诊断的时延属于待诊断传输路径的时延,相对于现有技术中,需要发送RTCP数据包的发送方和接收方时间同步的限定,本实施例由同一侧记录测试数据包的发送时间和确认数据包的接收时间,满足了发送时间和接收时间是同一时间标准的需求,所以本实施例中,计算语音时延,不受发送网关和接收网 关时间同步的限制。With the gateway device of this embodiment, the first sending module can control the test data packet to be transmitted along the to-be-diagnosed transmission path, and the first receiving module receives the acknowledgement data packet sent back along the to-be-diagnosed transmission path, and the test data packet and the acknowledgement data packet are all along the edge. The transmission path to be diagnosed can ensure that the delay of the diagnosis belongs to the delay of the transmission path to be diagnosed. Compared with the prior art, the sender and the receiver of the RTCP data packet need to be time-synchronized. Recording the transmission time of the test data packet and the receiving time of the acknowledgment data packet satisfy the requirement that the transmission time and the reception time are the same time standard. Therefore, in this embodiment, the voice delay is calculated, and is not affected by the sending gateway and the receiving network. Turn off the time synchronization limit.
实施例四:Embodiment 4:
参见图6,本实施例提出一种网关设备,包括:Referring to FIG. 6, this embodiment provides a gateway device, including:
第二接收模块61,配置为接收发送网关沿待诊断传输路径上传输的数据包;The second receiving module 61 is configured to receive a data packet that is sent by the sending gateway along the to-be-diagnosed transmission path;
判断模块62,配置为判断所述第二接收模块61接收的数据包是否为测试数据包;The determining module 62 is configured to determine whether the data packet received by the second receiving module 61 is a test data packet;
第二生成模块63,配置为在所述判断模块62获得的判断结果为接收的所述数据包为测试数据包时,生成对测试数据包的确认数据包;The second generation module 63 is configured to generate an acknowledgement data packet for the test data packet when the determination result obtained by the determination module 62 is that the received data packet is a test data packet;
第二发送模块64,配置为沿待诊断传输路径发送确认数据包至发送网关。The second sending module 64 is configured to send an acknowledgement packet to the sending gateway along the to-be-diagnosed transmission path.
本实施例的诊断语音时延的方法适用于VoIP,在VoIP通信中,语音数据的传输路径就是RTP数据包的传输路径,所以可以理解的是,本实施例中,诊断语音时延的方法涉及的时延主要是VoIP语音通信中,RTP数据包的传输路径的时延,所以本实施例的待判断传输路径可以理解为RTP数据包的传输路径。The method for diagnosing voice delay in this embodiment is applicable to VoIP. In the VoIP communication, the transmission path of the voice data is the transmission path of the RTP data packet. Therefore, in this embodiment, the method for diagnosing the voice delay involves The delay is mainly the delay of the transmission path of the RTP data packet in the VoIP voice communication. Therefore, the transmission path to be determined in this embodiment can be understood as the transmission path of the RTP data packet.
本实施例中,所述判断模块62判断出来的测试数据包包括本身就是在待诊断传输路径上传输的数据包,比如,在RTP数据包的传输路径中传输的RTP数据包或RTCP数据包;或在某种控制手段下能沿待诊断传输路径传输的数据包,例如在某种控制手段下沿待诊断传输路径传输的自定义数据包。In this embodiment, the test data packet determined by the determining module 62 includes a data packet that is itself transmitted on the transmission path to be diagnosed, for example, an RTP data packet or an RTCP data packet transmitted in a transmission path of the RTP data packet; Or a data packet that can be transmitted along the path to be diagnosed under certain control means, for example, a custom data packet transmitted along the path to be diagnosed under a certain control means.
所述判断模块62判断测试数据包的规则是对应于发送网关生成测试数据包的方式的,例如,若发送网关生成测试数据包的方式是修改现有的RTP数据包或RTCP数据包,则在所述第二接收模块61收到数据包后,所述判断模块62可以先判断数据包是否为RTP数据包或RTCP数据包,再根据 RTP数据包或RTCP数据包是否被修改判断收到的数据包是否为测试数据包。若发送网关生成测试数据包的方式是生成携带返回指令的自定义数据包,返回指令指示接收网关收到数据包后回发确认数据包,则在所述第二接收模块61收到数据包后,所述判断模块62可以通过判断数据包中是否携带返回指令,判断该数据包是否为测试数据包。The determining module 62 determines that the rule of the test data packet corresponds to the manner in which the sending gateway generates the test data packet. For example, if the sending gateway generates the test data packet by modifying the existing RTP data packet or the RTCP data packet, After the second receiving module 61 receives the data packet, the determining module 62 may first determine whether the data packet is an RTP data packet or an RTCP data packet, and then according to Whether the RTP packet or the RTCP packet is modified to determine whether the received packet is a test packet. If the sending gateway generates the test data packet by generating a custom data packet carrying the return instruction, the returning instruction instructing the receiving gateway to send the data packet and sending back the acknowledgment data packet, after the second receiving module 61 receives the data packet, The determining module 62 can determine whether the data packet is a test data packet by determining whether the data packet carries a return instruction.
以RTP数据包为例,若发送网关在生成测试数据包时的方式是,将RTP数据包头中的某个信息例如PT值进行修改,例如修改为126,所述判断模块62识别测试数据包的规则与发送网关生成测试数据包的方式相对应,即所述判断模块62判断RTP数据包中的PT值是否为126,若是,则该RTP数据包为测试数据包。Taking the RTP data packet as an example, if the sending gateway generates the test data packet, the information in the RTP data packet header, for example, the PT value, is modified, for example, to 126, and the determining module 62 identifies the test data packet. The rule corresponds to the manner in which the sending gateway generates the test data packet, that is, the determining module 62 determines whether the PT value in the RTP data packet is 126, and if so, the RTP data packet is a test data packet.
可以想到的是,本实施例的确认数据包可以是RTP数据包、RTCP数据包或自定义数据包。所述第二生成模块63生成确认数据包的方法包括:收到测试数据包后,针对该测试数据包重新生成一个新的数据包作为确认数据包。可以想到的是,本实施例重新生成的确认数据包可以是RTP数据包、RTCP数据包或自定义数据包,生成过程可以参考实施例一中的相关描述。It is conceivable that the acknowledgment data packet of this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet. The method for generating the acknowledgment data packet by the second generation module 63 includes: after receiving the test data packet, regenerating a new data packet as the acknowledgment data packet for the test data packet. It is conceivable that the acknowledgment data packet regenerated in this embodiment may be an RTP data packet, an RTCP data packet or a custom data packet. For the generation process, reference may be made to the related description in the first embodiment.
当确认数据包是RTP数据包或RTCP数据包时,所述第二发送模块64执行发送RTP数据包或RTCP数据包到接收网关的操作,此时,确认数据包的传输路径就是待判断传输路径。当确认数据包是自定义数据包时,所述第二发送模块64需要设置确认数据包的传输路径的转发节点等信息,控制确认数据包沿待判断传输路径回发至发送网关,具体的控制方式可以参考实施例一中控制测试数据包沿待诊断传输路径传输的相关描述。When the confirmation data packet is an RTP data packet or an RTCP data packet, the second sending module 64 performs an operation of sending an RTP data packet or an RTCP data packet to the receiving gateway. At this time, confirming that the data packet transmission path is the transmission path to be determined. . When the confirmation data packet is a custom data packet, the second sending module 64 needs to set information such as a forwarding node that confirms the transmission path of the data packet, and controls the acknowledgment data packet to be sent back to the sending gateway along the to-be-determined transmission path, and the specific control is performed. For the manner, refer to the related description of controlling the transmission of the test data packet along the to-be-diagnosed transmission path in the first embodiment.
此外,所述第二生成模块63生成确认数据包的方式还包括直接将识别出来的测试数据包作为确认数据包沿待判断传输路径回发给发送网关,采用此方法不用预先生成确认数据包,避免浪费网关资源。尤其是在发送网 关发送的测试数据包是RTP数据包或RTCP数据包的情况下,所述第二发送模块64沿待诊断传输路径回发确认数据包至发送网关实际上就是,发送RTP数据包或RTCP数据包到发送网关,由于回发的RTP数据包或RTCP数据包本身就属于能在待诊断传输路径上传输的数据包,所以无需采用其他控制手段控制确认数据包的回发路径为待诊断传输路径。In addition, the manner in which the second generation module 63 generates the acknowledgment data packet further includes directly sending the identified test data packet as an acknowledgment data packet to the sending gateway along the to-be-determined transmission path, and the acknowledgment data packet is not generated in advance by using the method. Avoid wasting gateway resources. Especially in the sending network In the case that the transmitted test data packet is an RTP data packet or an RTCP data packet, the second sending module 64 sends back an acknowledgment data packet along the to-be-diagnosed transmission path to the sending gateway, which is actually sending an RTP data packet or an RTCP data packet. To the sending gateway, since the returned RTP data packet or the RTCP data packet itself belongs to the data packet that can be transmitted on the transmission path to be diagnosed, it is not necessary to use other control means to control the return path of the acknowledgment data packet as the transmission path to be diagnosed.
本发明实施例中,所述网关设备中的判断模块62和第二生成模块63,在实际应用中均可由所述网关设备中的CPU、DSP、MCU或FPGA实现;所述网关设备中的第二接收模块61和第二发送模块64,在实际应用中可通过通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口和协议等)及收发天线实现。In the embodiment of the present invention, the determining module 62 and the second generating module 63 in the gateway device may be implemented by a CPU, a DSP, an MCU, or an FPGA in the gateway device in an actual application; The two receiving modules 61 and the second sending module 64 can be implemented in a practical application by a communication module (including: a basic communication suite, an operating system, a communication module, a standardized interface and a protocol, etc.) and a transmitting and receiving antenna.
采用本实施例的网关设备,可以在识别出测试数据包后,立即沿待诊断传输路径回发确认数据包,以便发送网关能确定确认数据包的接收时间,测试数据和确认数据均在待诊断传输路径上传输,可以确保计算的时延属于待诊断传输路径的时延,其次,接收网关识别出测试数据包后立即回发确认数据包的方式,能减少接收网关一侧返回确认数据包所需的时间,有利于降低发送网关计算的时延的误差。With the gateway device of this embodiment, after the test data packet is identified, the acknowledgment data packet is sent back along the to-be-diagnosed transmission path, so that the sending gateway can determine the receiving time of the acknowledgment data packet, and the test data and the acknowledgment data are all to be diagnosed. Transmission on the transmission path ensures that the calculated delay belongs to the delay of the transmission path to be diagnosed. Secondly, the receiving gateway recognizes the test packet and immediately sends back the acknowledgement packet, which can reduce the return of the acknowledgement packet on the receiving gateway side. The time required is beneficial to reduce the error of the delay calculated by the sending gateway.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地 方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place. The party may also be distributed to multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a mobile storage device, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例的技术方案可利用沿待诊断传输路径发送的测试数据包的接收时间,和接收待诊断传输路径传输的确认数据包的接收时间来计算待诊断传输路径的时延,相对于现有技术中,利用RTCP数据包确定传输路径的时延的方式,本实施例中发送测试数据包的设备和接收测试数据包的接收网关不须支持NTP协议,即使发送设备和接收网关的时间不同步,也不影响本实施例的方法计算出的时延的准确性。 The technical solution of the embodiment of the present invention can calculate the delay of the transmission path to be diagnosed by using the receiving time of the test data packet sent along the to-be-diagnosed transmission path and the receiving time of the acknowledgement data packet transmitted by the transmission path to be diagnosed. In the prior art, the RTCP packet is used to determine the delay of the transmission path. In this embodiment, the device that sends the test packet and the receiving gateway that receives the test packet do not need to support the NTP protocol, even if the sending device and the receiving gateway do not have time. Synchronization does not affect the accuracy of the delay calculated by the method of the present embodiment.

Claims (12)

  1. 一种诊断语音时延的方法,包括:A method of diagnosing speech delay includes:
    生成测试数据包;Generate test data packets;
    发送所述测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录所述测试数据包的发送时间;Transmitting the test data packet, controlling the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and recording the sending time of the test data packet;
    接收确认数据包,记录所述确认数据包的接收时间;所述确认数据包为所述接收网关沿待诊断传输路径返回的对所述测试数据包的反馈;Receiving an acknowledgment data packet, recording a receiving time of the acknowledgment data packet; the acknowledgment data packet is feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
    根据所述发送时间和所述接收时间计算所述待诊断传输路径的时延。Calculating a delay of the to-be-diagnosed transmission path according to the sending time and the receiving time.
  2. 如权利要求1所述的诊断语音时延的方法,其中,所述测试数据包包括:实时传输协议RTP数据包、实时传输控制协议RTCP数据包或自定义数据包。The method of diagnosing speech delay according to claim 1, wherein the test data packet comprises: a real-time transport protocol RTP data packet, a real-time transport control protocol RTCP data packet, or a custom data packet.
  3. 如权利要求2所述的诊断语音时延的方法,其中,当所述测试数据包为RTP数据包时,所述生成测试数据包包括,修改RTP数据包的包头信息,将修改后的RTP数据包作为测试数据包;The method for diagnosing speech delay according to claim 2, wherein when said test data packet is an RTP data packet, said generating a test data packet comprises: modifying header information of the RTP data packet, and modifying the RTP data Package as a test packet;
    当所述测试数据包为RTCP数据包时,所述生成测试数据包包括,修改RTCP数据包的包头信息,将修改后的RTCP数据包作为测试数据包;When the test data packet is an RTCP data packet, the generating the test data packet includes: modifying a header information of the RTCP data packet, and using the modified RTCP data packet as a test data packet;
    当所述测试数据包为自定义数据包时,所述生成测试数据包包括,生成带有返回指令的自定义数据包作为测试数据包,所述返回指令用于指示接收网关在收到所述测试数据包后,沿所述待诊断传输路径回发确认数据包。When the test data packet is a custom data packet, the generating the test data packet includes: generating a custom data packet with a return instruction as a test data packet, where the return instruction is used to indicate that the receiving gateway receives the After the data packet is tested, an acknowledgement packet is sent back along the to-be-diagnosed transmission path.
  4. 如权利要求1-3任一项所述的诊断语音时延的方法,其中,所述确认数据包包括所述测试数据包。A method of diagnosing speech delay according to any of claims 1-3, wherein said acknowledgment data packet comprises said test data packet.
  5. 一种诊断语音时延的方法,包括;A method for diagnosing speech delay, comprising:
    接收发送网关沿待诊断传输路径上传输的数据包;Receiving, by the sending gateway, a data packet transmitted on the transmission path to be diagnosed;
    判断接收的所述数据包是否为测试数据包; Determining whether the received data packet is a test data packet;
    当判断结果为接收的所述数据包为测试数据包时,生成对所述测试数据包的确认数据包;When the judgment result is that the received data packet is a test data packet, generate an acknowledgement data packet for the test data packet;
    沿所述待诊断传输路径发送确认数据包至所述发送网关。Sending an acknowledgment packet along the to-be-diagnosed transmission path to the sending gateway.
  6. 一种网关设备,包括:A gateway device comprising:
    生成模块,配置为生成测试数据包;Generating a module configured to generate a test data packet;
    第一发送模块,配置为发送所述生成模块生成的所述测试数据包,控制所述测试数据包沿待诊断传输路径传输至接收网关,并记录所述测试数据包的发送时间;The first sending module is configured to send the test data packet generated by the generating module, control the test data packet to be transmitted to the receiving gateway along the to-be-diagnosed transmission path, and record the sending time of the test data packet;
    第一接收模块,配置为接收确认数据包,记录所述确认数据包的接收时间;所述确认数据包为所述接收网关沿待诊断传输路径返回的对所述测试数据包的反馈;a first receiving module, configured to receive an acknowledgement data packet, and record a receiving time of the acknowledgement data packet; the acknowledgement data packet is feedback of the test data packet returned by the receiving gateway along the to-be-diagnosed transmission path;
    计算模块,配置为根据所述发送时间和所述接收时间计算所述待诊断传输路径的时延。And a calculating module, configured to calculate a delay of the to-be-diagnosed transmission path according to the sending time and the receiving time.
  7. 如权利要求6所述的网关设备,其中,所述生成模块生成的测试数据包包括:RTP数据包、RTCP数据包或自定义数据包。The gateway device of claim 6, wherein the test data packet generated by the generating module comprises: an RTP data packet, an RTCP data packet, or a custom data packet.
  8. 如权利要求7所述的网关设备,其中,所述生成模块配置为,The gateway device of claim 7, wherein the generating module is configured to
    当所述测试数据包为RTP数据包时,修改RTP数据包的包头信息,将修改后的RTP数据包作为测试数据包;When the test data packet is an RTP data packet, modifying a header information of the RTP data packet, and using the modified RTP data packet as a test data packet;
    当所述测试数据包为RTCP数据包时,修改RTCP数据包的包头信息,将修改后的RTCP数据包作为测试数据包;When the test data packet is an RTCP data packet, modifying a header information of the RTCP data packet, and using the modified RTCP data packet as a test data packet;
    当所述测试数据包为自定义数据包时,生成带有返回指令的自定义数据包作为测试数据包,所述返回指令用于指示接收网关在收到所述测试数据包后,沿所述待诊断传输路径回发确认数据包。When the test data packet is a custom data packet, generating a custom data packet with a return instruction as a test data packet, where the return instruction is used to indicate that the receiving gateway, after receiving the test data packet, The transmission path is to be diagnosed and the acknowledgement packet is sent back.
  9. 如权利要求6-8任一项所述的网关设备,其中,所述确认数据包包括所述测试数据包。 A gateway device according to any of claims 6-8, wherein the acknowledgment data packet comprises the test data packet.
  10. 一种网关设备,包括:A gateway device comprising:
    第二接收模块,配置为接收发送网关沿待诊断传输路径上传输的数据包;a second receiving module, configured to receive a data packet transmitted by the sending gateway along the to-be-diagnosed transmission path;
    判断模块,配置为判断所述第二接收模块接收的所述数据包是否为测试数据包;a determining module, configured to determine whether the data packet received by the second receiving module is a test data packet;
    第二生成模块,配置为在判断模块获得的判断结果为接收的所述数据包为测试数据包时,生成对所述测试数据包的确认数据包;a second generation module, configured to generate an acknowledgement data packet for the test data packet when the judgment result obtained by the determination module is that the received data packet is a test data packet;
    第二发送模块,配置为沿所述待诊断传输路径发送确认数据包至所述发送网关。The second sending module is configured to send an acknowledgment data packet to the sending gateway along the to-be-diagnosed transmission path.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的诊断语音时延的方法。A computer storage medium having stored therein computer executable instructions for performing the method of diagnosing a speech delay according to any one of claims 1 to 4.
  12. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求5所述的诊断语音时延的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of diagnosing a speech delay of claim 5.
PCT/CN2017/085574 2016-06-01 2017-05-23 Method for diagnosing voice delay, gateway device, and computer storage medium WO2017206767A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610382565.XA CN107453936A (en) 2016-06-01 2016-06-01 A kind of method and gateway device for diagnosing voice delay time
CN201610382565.X 2016-06-01

Publications (1)

Publication Number Publication Date
WO2017206767A1 true WO2017206767A1 (en) 2017-12-07

Family

ID=60478493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/085574 WO2017206767A1 (en) 2016-06-01 2017-05-23 Method for diagnosing voice delay, gateway device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN107453936A (en)
WO (1) WO2017206767A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395277A (en) * 2023-10-13 2024-01-12 广州锡杨电子股份有限公司 Industrial computer and data monitoring system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802898B (en) * 2019-02-01 2022-08-09 深圳市比速智网技术有限公司 Multilink data transmission method, receiving device and storage medium
CN110300036A (en) * 2019-06-25 2019-10-01 广州小鹏汽车科技有限公司 Speech path network time-delay test method and test macro
WO2021159329A1 (en) * 2020-02-12 2021-08-19 深圳元戎启行科技有限公司 Streaming media network latency determination method and apparatus, computer device, readable storage medium, and remote driving system
CN113436610A (en) * 2020-03-23 2021-09-24 阿里巴巴集团控股有限公司 Test method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340441A (en) * 2008-08-19 2009-01-07 中兴通讯股份有限公司 Method and system for measuring quality of service of IP network data package
CN101729300A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Method and system for transmitting test data packets
CN103067217A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Indicating system and method of communication network service quality
CN105071980A (en) * 2015-07-13 2015-11-18 中国传媒大学 Intercom voice communication delay measurement method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340441A (en) * 2008-08-19 2009-01-07 中兴通讯股份有限公司 Method and system for measuring quality of service of IP network data package
CN101729300A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Method and system for transmitting test data packets
CN103067217A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Indicating system and method of communication network service quality
CN105071980A (en) * 2015-07-13 2015-11-18 中国传媒大学 Intercom voice communication delay measurement method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395277A (en) * 2023-10-13 2024-01-12 广州锡杨电子股份有限公司 Industrial computer and data monitoring system
CN117395277B (en) * 2023-10-13 2024-04-12 广州锡杨电子股份有限公司 Industrial computer and data monitoring system

Also Published As

Publication number Publication date
CN107453936A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
WO2017206767A1 (en) Method for diagnosing voice delay, gateway device, and computer storage medium
ES2827183T3 (en) Media plane and media service signaling plane mapping in a packet-switched network
JP2003169040A5 (en)
EP1697855A2 (en) Analyzing a media path in a packet switched network
US7532580B2 (en) Gateway apparatus, communication system, and delay measurement method
TW201129015A (en) System and method for supporting higher-layer protocol messaging in an in-band modem
TW201132043A (en) System and method for supporting higher-layer protocol messaging in an in-band modem
US9603051B2 (en) Systems and methods for push-to-talk voice communication over voice over internet protocol networks
WO2007056921A1 (en) A protocol testing device and the protocol testing method thereof
JP2007142786A (en) Handover server, and mobile communication terminal communcable thereof
US9888083B2 (en) Transcription of communication sessions
WO2014207978A1 (en) Transmission device, receiving device, and relay device
JP3492602B2 (en) Data transmitting device and data receiving device
JP5311460B2 (en) Connection control device
CN102158615B (en) LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server
JP2013051565A (en) Communication terminal device, communication control method, and communication control program
EP2337285A1 (en) A method for realizing message interworking and a converged service system
CN105072121A (en) Method and device for IMS terminal to self-organize network
WO2014019487A1 (en) Method, apparatus, and network device for data service experience evaluation
JP2013207431A (en) Transmission terminal device, data transmission and reception system, data transmission method, and program
US10298521B2 (en) Systems and methods for connecting legacy products via an analog telephone adapter (ATA)
JP4256277B2 (en) VoIP gateway device and position information transmission method
JP2012100126A (en) Voip terminal, network facsimile system, and communication quality improvement method used therefor
CN102255793B (en) Double tone multi-frequency processing method and device
JP5305533B2 (en) Communication test equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17805712

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17805712

Country of ref document: EP

Kind code of ref document: A1