CN112929227A - RTP packet loss detection method and device, electronic equipment and storage medium - Google Patents

RTP packet loss detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112929227A
CN112929227A CN201911244854.3A CN201911244854A CN112929227A CN 112929227 A CN112929227 A CN 112929227A CN 201911244854 A CN201911244854 A CN 201911244854A CN 112929227 A CN112929227 A CN 112929227A
Authority
CN
China
Prior art keywords
network interface
rtp packet
rtp
current
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911244854.3A
Other languages
Chinese (zh)
Inventor
崔飞
徐旭辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Datang Mobile Communications Equipment Co ltd
Original Assignee
Shanghai Datang Mobile Communications Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Datang Mobile Communications Equipment Co ltd filed Critical Shanghai Datang Mobile Communications Equipment Co ltd
Priority to CN201911244854.3A priority Critical patent/CN112929227A/en
Publication of CN112929227A publication Critical patent/CN112929227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Abstract

The embodiment of the invention discloses a method and a device for detecting RTP packet loss, electronic equipment and a storage medium, wherein the method for detecting the RTP packet loss comprises the following steps: acquiring all RTP packets corresponding to each network interface associated with a call terminal of a target call, and acquiring a sequence number of each RTP packet corresponding to a current network interface; detecting whether sequence numbers of a current RTP packet and an adjacent RTP packet are continuous, wherein the adjacent RTP packet refers to a first RTP packet received after the current RTP packet; and if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous, determining that the RTP packet loss occurs on the current network interface. The invention can effectively reduce the time consumption of network optimization and improve the efficiency of network optimization.

Description

RTP packet loss detection method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting RTP packet loss, an electronic device, and a storage medium.
Background
VoLTE (Voice over Long-Term Evolution Voice bearer) generally performs Voice data transmission by RTP (Real-time Transport Protocol) packets. By detecting RTP packet loss, VoLTE voice quality can be determined.
At this stage, whether the RTP packet is lost at the network interface between the calling terminal and the base station corresponding to the calling terminal (i.e., the first network interface hereinafter) and the network interface between the called terminal and the base station corresponding to the called terminal (i.e., the second network interface hereinafter) may be detected through the real-time analysis platform. Specifically, when performing a VoLTE voice call with the called terminal, the calling/called terminal may send RTP packets to the first/second base station in real time through the first/second network interface, and set a Sequence number (Sequence Mum) for each RTP packet according to a sending Sequence of the RTP packets. The real-time analysis platform may capture the RTP packet, acquire an SSRC (Synchronization Source identifier) and a Sequence Mum carried by the RTP packet, and determine that an RTP packet loss occurs currently when detecting that Sequence numbers of RTP packets corresponding to the same SSRC received continuously are not consecutive.
In the prior art, when RTP packet loss occurs, it can only be determined that a problem occurs in a VoLTE voice call, and the voice quality is poor, so that when a technician performs network optimization, all network interfaces in the VoLTE voice call need to be optimized, which results in low network optimization efficiency.
Disclosure of Invention
Because the existing methods have the above problems, embodiments of the present invention provide a method and an apparatus for detecting an RTP packet loss, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides an RTP packet loss detection method, including:
acquiring all RTP packets corresponding to each network interface associated with a call terminal of a target call, and acquiring a sequence number of each RTP packet corresponding to a current network interface;
detecting whether sequence numbers of a current RTP packet and an adjacent RTP packet are continuous, wherein the adjacent RTP packet refers to a first RTP packet received after the current RTP packet;
and if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous, determining that the RTP packet loss occurs on the current network interface.
Optionally, the network interface includes an uplink network interface and a downlink network interface, where the uplink network interface and the downlink network interface at least include:
a first uplink network interface and a first downlink network interface between the call terminal and a base station corresponding to the call terminal;
a second uplink network interface and a second downlink network interface between the base station corresponding to the call terminal and the core network associated with the call terminal;
and a third uplink network interface and a third downlink network interface between the core network associated with the call terminal and the IP multimedia system.
Optionally, when the current network interface is the first downlink network interface, the acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call includes:
determining a call terminal corresponding to a target call and a first downlink network interface associated with the call terminal;
and acquiring all corresponding RTP packets of the first downlink network interface in the target time period of the target call.
Optionally, when the current network interface is the second/third downlink network interface, the acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call includes:
determining a call terminal corresponding to a target call and a second/third downlink network interface associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interface;
and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files, wherein the capture packet format file is a storage format of an RTP packet.
Optionally, when the current network interface is a downlink network interface, the detecting whether the sequence numbers of the current RTP packet and the adjacent RTP packet are consecutive includes:
sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to the adjacent RTP packet;
and judging whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
Optionally, after determining that the RTP packet loss occurs to the current network interface, the method further includes:
and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
Optionally, the determining the number of RTP lost packets of the current network interface and the sequence number of each RTP packet with lost packets includes:
when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface;
and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
In a second aspect, an embodiment of the present invention further provides an RTP packet loss detection apparatus, including an obtaining module, a detecting module, and a determining module, where:
the acquisition module is used for acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call and acquiring the sequence number of each RTP packet corresponding to the current network interface;
the detection module is configured to detect whether sequence numbers of a current RTP packet and an adjacent RTP packet are consecutive, where the adjacent RTP packet refers to a first RTP packet received after the current RTP packet;
and the determining module is used for determining that the RTP packet loss occurs on the current network interface if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous.
Optionally, the network interface includes an uplink network interface and a downlink network interface, where the uplink network interface and the downlink network interface at least include:
a first uplink network interface and a first downlink network interface between the call terminal and a base station corresponding to the call terminal;
a second uplink network interface and a second downlink network interface between the base station corresponding to the call terminal and the core network associated with the call terminal;
and a third uplink network interface and a third downlink network interface between the core network associated with the call terminal and the IP multimedia system.
Optionally, the obtaining module is configured to:
determining a call terminal corresponding to a target call and a first downlink network interface associated with the call terminal;
and acquiring all corresponding RTP packets of the first downlink network interface in the target time period of the target call.
Optionally, the obtaining module is configured to:
determining a call terminal corresponding to a target call and a second/third downlink network interface associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interface;
and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files, wherein the capture packet format file is a storage format of an RTP packet.
Optionally, the detection module is configured to:
sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to the adjacent RTP packet;
and judging whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
Optionally, the determining module is further configured to:
and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
Optionally, the determining module is configured to:
when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface;
and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above method.
As can be seen from the foregoing technical solutions, in the embodiments of the present invention, whether an RTP packet loss occurs in each network interface is determined by obtaining the sequence number of the RTP packet corresponding to each network interface and based on the sequence number of the RTP packet corresponding to each network interface. Therefore, the network interface which causes poor voice quality, namely the network interface with the packet loss is determined, so that technical personnel can optimize the network interface with the packet loss in a targeted manner, time consumed by network optimization can be effectively reduced, and network optimization efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a RTP packet loss detection method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a network interface distribution according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an RTP packet loss detection apparatus according to an embodiment of the present invention;
fig. 4 is a logic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows a schematic flow chart of an RTP packet loss detection method provided in this embodiment, including:
s101, all RTP packets corresponding to each network interface associated with the call terminal of the target call are obtained, and the sequence number of each RTP packet corresponding to the current network interface is obtained.
The target call refers to a Volte voice call needing to detect call quality.
Referring to fig. 2, the call terminal refers to a call terminal corresponding to the target call, and includes a calling terminal UE (User Equipment) 1 and a called terminal UE2, where the terminals may be communication terminals such as a personal mobile phone.
The network interface associated with the call terminal of the target call refers to: the Network interfaces required to be used for transmitting the RTP Packet generated by the call terminal corresponding to the target call may be, for example, a Network interface between UE1 and ENB (Evolved Node B, base station) 1 corresponding to UE1, a Network interface between UE2 and ENB2 corresponding to UE2, a Network interface between ENB1 and EPC (Evolved Packet Core Network) 1 corresponding to ENB1, a Network interface between ENB2 and EPC2 corresponding to ENB2, a Network interface between EPC1 and IMS (IP Multimedia system), and a Network interface between EPC2 and IMS.
The network interface includes an uplink network interface and a downlink network interface, wherein the uplink network interface and the downlink network interface at least include: an uplink network interface (which may be referred to as a first uplink interface) and a downlink network interface (which may be referred to as a first downlink interface) between a call terminal and a base station corresponding to the call terminal; an uplink network interface (which can be called as a second uplink network interface) and a downlink network interface (which can be called as a second downlink network interface) between a base station corresponding to the call terminal and a core network associated with the call terminal; an upstream network interface (which may be referred to as a third upstream network interface) and a downstream network interface (which may be referred to as a third downstream network interface) between a core network associated with the call terminal and the IP multimedia system.
Referring to fig. 2, the first uplink interface may include: an upstream network interface UU (1) between the UE1 and the ENB1 corresponding to the UE1, and an upstream network interface UU (7) between the UE2 and the ENB2 corresponding to the UE 2. The second uplink interface may include: an upstream network interface S1(2) between the ENB1 and the EPC1 corresponding to the UE1, and an upstream network interface S1(8) between the ENB2 and the EPC2 corresponding to the UE 2. The third uplink interface may include: an upstream network interface SGI (3) between EPC1 and IMS, and an upstream network interface SGI (9) between EPC2 and IMS.
The first downlink interface may include: a downlink network interface UU (12) between the UE1 and the ENB1, and a downlink network interface UU (6) between the UE2 and the ENB 2. The second uplink interface may include: a downstream network interface S1(11) between ENB1 and EPC1, and a downstream network interface S1(5) between ENB2 and EPC 2. The third downlink interface may include: a downstream network interface SGI (10) between EPC1 and IMS, and a downstream network interface SGI (4) between EPC2 and IMS.
The current network interface refers to any one of all network interfaces corresponding to the call terminal.
In implementation, the real-time analysis platform may detect whether an RTP packet loss occurs at each network interface according to the sequence numbers of all RTP packets corresponding to each network interface associated with the call terminal of the target call. Specifically, first, all RTP packets corresponding to each network interface associated with the call terminal of the target call may be obtained, and each RTP packet may carry a corresponding SSRC and a sequence number. Then, the sequence number carried by each RTP packet corresponding to the current network interface may be obtained. It can be understood that the sequence number carried by each RTP packet corresponding to each network interface may be sequentially obtained until the sequence number of each RTP packet corresponding to each network interface associated with the call terminal of the target call is obtained. It can be understood that, since the SSRC of the terminal making the call is fixed in each call, the SSRC carried by each RTP packet is the same in each call.
S102, detecting whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
Wherein the adjacent RTP packet refers to a first RTP packet received after a current RTP packet.
Wherein, the current RTP packet refers to any RTP packet in all RTP packets corresponding to the current network interface.
In implementation, after the sequence number of each RTP packet corresponding to the current network interface is obtained, whether packet loss occurs in the current network interface may be determined according to the sequence number of the RTP packet. Specifically, it may be detected whether the sequence number of the current RTP packet is consecutive to the sequence number of the adjacent RTP packet. It can be understood that it may be detected whether the sequence number of each RTP packet is consecutive to the sequence number of the adjacent RTP packet in sequence until each RTP packet corresponding to the current network interface is detected.
S103, if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous, determining that the RTP packet loss occurs on the current network interface.
In implementation, if the sequence number of the current RTP packet is not consecutive to the sequence number of the adjacent RTP packet, it may be considered that the current network interface has an RTP packet loss, that is, an RTP packet loss occurs, and the voice call quality is poor. It can be understood that, after detecting whether an RTP packet loss occurs in each network interface, the detection result of this detection may be generated based on whether the RTP packet loss occurs in each network interface, and the detection result may be stored or output, so that a technician may check or receive the detection result, and perform network optimization based on the detection result, so as to improve voice call quality, for example, perform targeted maintenance on the network interface in which the RTP packet loss occurs in the detection result. If the sequence number of the current RTP packet is continuous with the sequence number of the adjacent RTP packet, the current network interface can be considered to have no RTP packet loss, and the voice communication quality is better.
As can be seen from the foregoing technical solutions, in the embodiments of the present invention, whether an RTP packet loss occurs in each network interface is determined by obtaining the sequence number of the RTP packet corresponding to each network interface and based on the sequence number of the RTP packet corresponding to each network interface. Therefore, the network interface which causes poor voice quality, namely the network interface with the packet loss is determined, so that technical personnel can optimize the network interface with the packet loss in a targeted manner, time consumed by network optimization can be effectively reduced, and network optimization efficiency is improved.
Further, on the basis of the above method embodiment, when the current network interface is the first downlink network interface, the RTP packet corresponding to the downlink network interface in the target time period may be obtained, and the corresponding processing in step S101 may be as follows: determining a call terminal corresponding to the target call and a first downlink network interface associated with the call terminal; and acquiring a first downlink network interface and all corresponding RTP packets in a target time period of the target call.
Wherein, the target time interval refers to the corresponding time interval of the RTP packet to be detected.
In implementation, when the current network interface is the first downlink network interface, the downlink RTP packet of the call terminal may be directly obtained. Specifically, first, a call terminal corresponding to the target call and a first downlink network interface corresponding to the call terminal may be determined. Then, the first downlink network interface may be obtained, and all RTP packets corresponding to the target time interval in the target call may be obtained. Taking the time period corresponding to the target call as 10:00-10:30 as an example, assuming that the target time period is 10:10-10:15, all RTP packets corresponding to the first downlink network interface at 10:10-10:15 may be obtained. Therefore, the current network interface is the first downlink network interface, only the RTP packet corresponding to the first downlink network interface in the target time period is acquired, whether the RTP packet loss occurs at the current network interface is detected, the number of the RTP packets needing to be detected can be effectively reduced, the detection time consumption can be effectively reduced, and the network optimization efficiency can be further improved.
Further, on the basis of the above method embodiment, when the current network interface is the second/third downlink network interface, the RTP packet may be obtained by obtaining the capture packet format file, and the corresponding processing in step S101 may be as follows: determining a call terminal corresponding to the target call and second/third downlink network interfaces associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interfaces; and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files.
Wherein, the capture packet format file is a storage format of an RTP packet.
In implementation, when the current network interface is the second/third downlink network interface, all RTP packets corresponding to the current network interface may be obtained by obtaining the capture packet format file. Specifically, first, a call terminal corresponding to the target call and a second/third downlink network interface associated with the call terminal may be determined. Then, it may be determined whether all capture packet format files corresponding to the second/third downlink network interfaces associated with the call terminal have been imported from the browser before the RTP packet corresponding to the first downlink network associated with the call terminal is acquired. If the RTP packet format file is imported, the capture packet format file corresponding to the target time interval of the target call may be obtained from all the capture packet format files, and the RTP packet stored in the capture packet format file is the RTP packet corresponding to the second/third downlink network interfaces.
Therefore, the current network interface is the second/third downlink network interface, only the corresponding RTP packet of the second/third downlink network interface in the target time period is obtained, whether the RTP packet loss occurs in the current network interface is detected, the number of the RTP packets needing to be detected can be further reduced, the detection time consumption can be further reduced, and the network optimization efficiency can be further improved.
Further, on the basis of the above method embodiment, when the current network interface is the downlink network interface, whether the sequence number is continuous may be detected by detecting whether the sequence number difference is one, and the corresponding processing in step S102 may be as follows: sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to an adjacent RTP packet; judging whether the sequence number corresponding to the current RTP packet is larger than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
And the current RTP packet is any one of the RTP packets corresponding to the current network interface.
In implementation, the current network interface is a downlink network interface, and after the sequence number of each RTP packet corresponding to the current network interface is acquired, all RTP packets corresponding to the current network interface may be sequenced according to the sequence of the receiving time. Then, the sequence number corresponding to the current RTP packet and the sequence number corresponding to the adjacent RTP packet of the current RTP packet may be determined. Then, it can be determined whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet of the current RTP packet by one, so as to determine whether the sequence number of the current RTP packet and the sequence number of the adjacent RTP packet are consecutive according to the determination result. If the sequence number is larger than the sequence number corresponding to the adjacent RTP packet of the current RTP packet by one, the sequence number of the current RTP packet is considered to be continuous with the sequence number of the adjacent RTP packet, otherwise, the sequence number of the current RTP packet is considered to be discontinuous with the sequence number of the adjacent RTP packet. Therefore, whether the RTP packets are continuous or not is determined according to the sequence number difference, the detection efficiency can be improved to a certain extent, the detection time consumption is further reduced, and the network optimization efficiency is improved.
Further, on the basis of the above method embodiment, the number of RTP lost packets of the current network interface and the sequence number of each RTP packet in which a packet is lost may also be determined, and the corresponding processing may be as follows: and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
In implementation, when it is detected that the sequence numbers of the current RTP packet and the adjacent RTP packet are not consecutive, that is, an RTP packet loss occurs, the number of RTP packet losses of the current network interface and the sequence number of the RTP packet with the packet loss may also be determined. Taking the sequence number of the current RTP packet as 5 and the sequence number of the adjacent RTP packet as 8 as an example, it may be determined that packet loss occurs at the current network interface, the number of lost packets is 2, and the sequence numbers corresponding to the RTP packets in which packet loss occurs are 6 and 7. It can be understood that the number of lost packets of each network interface and the sequence number corresponding to the RTP packet to be lost may be summarized, and a detection result may be generated and output as a data basis for a technician to perform network optimization. Therefore, technicians can determine the packet loss degree of each network interface more intuitively and maintain each network interface in a targeted manner, so that the network optimization time can be further shortened, and the network optimization efficiency is improved.
It should be noted that, considering that the importing of the capture packet format file may be before the RTP packet of the call terminal is acquired or after the RTP packet of the call terminal is acquired, if the capturing packet format file is not imported (that is, all capture packet format files corresponding to the second/third downlink network interfaces are imported after the RTP packet corresponding to the first downlink network interface associated with the call terminal is acquired), whether the RTP packet loss occurs in the second/third downlink network interface, and the number of lost packets and the sequence number of lost RTP packets may be determined according to the detection result of the first downlink network interface and by combining the sequence numbers carried by the capture packet format files corresponding to the second/third downlink network interfaces in the target time period. Taking the number of lost packets in the detection result of the first downlink network interface as 3, and the sequence numbers corresponding to the RTP packets that have lost packets as 5, 7, and 8 as examples, it may be determined whether there are 5, 7, and 8 in the sequence numbers carried in the capture packet format file corresponding to the target time period of the second/third downlink network interface, and if not, it may be determined that the RTP packets have been lost by the second/third downlink network interface, the number of lost packets is 3, and the sequence numbers corresponding to the RTP packets that have lost packets are 5, 7, and 8; if all the data packets are available, it can be determined that the second/third downlink network interfaces do not generate the RTP packet loss; if only part of the RTP packets are assumed, if only 5, it may be determined that the RTP packets are lost at the second/third downlink network interface, the number of the lost packets is 2, and the sequence numbers corresponding to the RTP packets in which the RTP packets are lost are 7 and 8.
Further, on the basis of the above method embodiment, the detection result of the uplink network interface may be determined according to the detection result of the downlink network interface corresponding to the uplink network interface, and the corresponding processing may be as follows: when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface; and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
In implementation, when the current network interface is an uplink network interface, the number of lost packets of the downlink network interface corresponding to the uplink network interface and the sequence number of the RTP packet in which the lost packet occurs may be determined, and a capture packet format file corresponding to the uplink network interface may be obtained. Then, the number of lost packets of the uplink network interface and the sequence number of the RTP packet with the packet loss can be determined based on the number of lost packets of the downlink network interface corresponding to the uplink network interface and the sequence number of the RTP packet with the packet loss, and the sequence number of each RTP packet in the captured packet format file corresponding to the uplink network interface. Referring to fig. 2, taking the current network interface as the uplink network interface UU (7) as an example, it may be determined that the downlink network interface corresponding to the UU (7) is the UU (12), and if the number of lost packets of the UU (12) is 3 and the sequence numbers of RTP packets in which packet loss occurs are 4, 5, and 6, it may be determined whether there are 4, 5, and 6 in the sequence numbers of RTP packets corresponding to the UU (7). If yes, determining that no packet loss occurs in the UU (7); if no or partial packet exists, if 5 or 6 exists, the number of the lost packets of the UU (7) can be determined to be 1, and the sequence number of the RTP packet in which the packet is lost is 4. It can be understood that after the number of lost packets corresponding to each network interface and the sequence number of each RTP packet with a lost packet are determined, a detection result may be generated and output based on the number of lost packets corresponding to each network interface and the sequence number of each RTP packet with a lost packet, and the detection result may be used as a data basis for a technician to perform network optimization. Therefore, technicians can determine the packet loss degree of each network interface (including the uplink network interface and the downlink network interface) more intuitively and maintain each network interface in a targeted manner, so that the time consumption of network optimization can be further reduced, and the network optimization efficiency can be further improved.
Fig. 3 shows an RTP packet loss detection apparatus provided in this embodiment, which includes an obtaining module 301, a detecting module 302, and a determining module 303, where:
the acquiring module 301 is configured to acquire all RTP packets corresponding to each network interface associated with the call terminal of the target call, and acquire a sequence number of each RTP packet corresponding to the current network interface;
the detecting module 302 is configured to detect whether sequence numbers of a current RTP packet and an adjacent RTP packet are consecutive, where the adjacent RTP packet refers to a first RTP packet received after the current RTP packet;
the determining module 303 is configured to determine that an RTP packet loss occurs at the current network interface if the sequence numbers of the current RTP packet and the adjacent RTP packet are not consecutive.
Optionally, the network interface includes an uplink network interface and a downlink network interface, where the uplink network interface and the downlink network interface at least include:
a first uplink network interface and a first downlink network interface between the call terminal and a base station corresponding to the call terminal;
a second uplink network interface and a second downlink network interface between the base station corresponding to the call terminal and the core network associated with the call terminal;
and a third uplink network interface and a third downlink network interface between the core network associated with the call terminal and the IP multimedia system.
Optionally, the obtaining module 301 is configured to:
determining a call terminal corresponding to a target call and a first downlink network interface associated with the call terminal;
and acquiring all corresponding RTP packets of the first downlink network interface in the target time period of the target call.
Optionally, the obtaining module 301 is configured to:
determining a call terminal corresponding to a target call and a second/third downlink network interface associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interface;
and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files, wherein the capture packet format file is a storage format of an RTP packet.
Optionally, the detecting module 302 is configured to:
sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to the adjacent RTP packet;
and judging whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
Optionally, the determining module 303 is further configured to:
and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
Optionally, the determining module 303 is configured to:
when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface;
and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
The RTP packet loss detection apparatus described in this embodiment may be configured to execute the method embodiments, and the principle and the technical effect are similar, which are not described herein again.
Referring to fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403;
wherein the content of the first and second substances,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call program instructions in the memory 402 to perform the methods provided by the above-described method embodiments.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. An RTP packet loss detection method is characterized by comprising the following steps:
acquiring all RTP packets corresponding to each network interface associated with a call terminal of a target call, and acquiring a sequence number of each RTP packet corresponding to a current network interface;
detecting whether sequence numbers of a current RTP packet and an adjacent RTP packet are continuous, wherein the adjacent RTP packet refers to a first RTP packet received after the current RTP packet;
and if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous, determining that the RTP packet loss occurs on the current network interface.
2. The RTP packet loss detection method according to claim 1, wherein the network interface comprises an uplink network interface and a downlink network interface, and the uplink network interface and the downlink network interface at least comprise:
a first uplink network interface and a first downlink network interface between the call terminal and a base station corresponding to the call terminal;
a second uplink network interface and a second downlink network interface between the base station corresponding to the call terminal and the core network associated with the call terminal;
and a third uplink network interface and a third downlink network interface between the core network associated with the call terminal and the IP multimedia system.
3. The RTP packet loss detection method according to claim 2, wherein, when the current network interface is the first downlink network interface, the acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call comprises:
determining a call terminal corresponding to a target call and a first downlink network interface associated with the call terminal;
and acquiring all corresponding RTP packets of the first downlink network interface in the target time period of the target call.
4. The RTP packet loss detection method according to claim 2, wherein, when the current network interface is a second/third downlink network interface, the acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call includes:
determining a call terminal corresponding to a target call and a second/third downlink network interface associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interface;
and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files, wherein the capture packet format file is a storage format of an RTP packet.
5. The RTP packet loss detection method according to claim 2, wherein when the current network interface is a downlink network interface, the detecting whether sequence numbers of the current RTP packet and an adjacent RTP packet are consecutive includes:
sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to the adjacent RTP packet;
and judging whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
6. The RTP packet loss detection method according to claim 1, wherein after determining that the RTP packet loss occurs at the current network interface, the method further comprises:
and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
7. The method according to claim 6, wherein the determining the number of RTP lost packets of the current network interface and the sequence number of each RTP packet that is lost comprises:
when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface;
and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
8. An RTP packet loss detection device is characterized by comprising an acquisition module, a detection module and a determination module, wherein:
the acquisition module is used for acquiring all RTP packets corresponding to each network interface associated with the call terminal of the target call and acquiring the sequence number of each RTP packet corresponding to the current network interface;
the detection module is configured to detect whether sequence numbers of a current RTP packet and an adjacent RTP packet are consecutive, where the adjacent RTP packet refers to a first RTP packet received after the current RTP packet;
and the determining module is used for determining that the RTP packet loss occurs on the current network interface if the sequence numbers of the current RTP packet and the adjacent RTP packet are not continuous.
9. The RTP packet loss detection apparatus according to claim 8, wherein the network interface comprises an uplink network interface and a downlink network interface, wherein the uplink network interface and the downlink network interface at least comprise:
a first uplink network interface and a first downlink network interface between the call terminal and a base station corresponding to the call terminal;
a second uplink network interface and a second downlink network interface between the base station corresponding to the call terminal and the core network associated with the call terminal;
and a third uplink network interface and a third downlink network interface between the core network associated with the call terminal and the IP multimedia system.
10. The RTP packet loss detection apparatus according to claim 9, wherein the obtaining module is configured to:
determining a call terminal corresponding to a target call and a first downlink network interface associated with the call terminal;
and acquiring all corresponding RTP packets of the first downlink network interface in the target time period of the target call.
11. The RTP packet loss detection apparatus according to claim 9, wherein the obtaining module is configured to:
determining a call terminal corresponding to a target call and a second/third downlink network interface associated with the call terminal, and acquiring all capture packet format files corresponding to the second/third downlink network interface;
and selecting a capture packet format file corresponding to the target time interval of the target call from all the capture packet format files, wherein the capture packet format file is a storage format of an RTP packet.
12. The RTP packet loss detection apparatus according to claim 9, wherein the detection module is configured to:
sequencing all RTP packets corresponding to the current network interface according to the receiving time, and determining a sequence number corresponding to the current RTP packet and a sequence number corresponding to the adjacent RTP packet;
and judging whether the sequence number corresponding to the current RTP packet is greater than the sequence number corresponding to the adjacent RTP packet by one so as to detect whether the sequence numbers of the current RTP packet and the adjacent RTP packet are continuous.
13. The RTP packet loss detection apparatus according to claim 8, wherein the determining module is further configured to:
and determining the RTP lost packet number of the current network interface and the sequence number corresponding to each RTP packet with lost packet based on the sequence numbers of the current RTP packet and the adjacent RTP packets.
14. The RTP packet loss detection apparatus according to claim 13, wherein the determining module is configured to:
when the current network interface is an uplink network interface, determining a downlink network interface corresponding to the current network interface and a sequence number corresponding to each RTP packet with packet loss of the downlink network interface;
and determining the number of the RTP lost packets of the current network interface and the sequence number of each RTP packet lost by the current network interface based on the sequence number of each RTP packet corresponding to the current network interface and the sequence number of each RTP packet lost by the downlink network interface.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the RTP packet loss detection method according to any one of claims 1 to 7 when executing the program.
16. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the RTP packet loss detection method according to any one of claims 1 to 7.
CN201911244854.3A 2019-12-06 2019-12-06 RTP packet loss detection method and device, electronic equipment and storage medium Pending CN112929227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911244854.3A CN112929227A (en) 2019-12-06 2019-12-06 RTP packet loss detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911244854.3A CN112929227A (en) 2019-12-06 2019-12-06 RTP packet loss detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112929227A true CN112929227A (en) 2021-06-08

Family

ID=76161943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911244854.3A Pending CN112929227A (en) 2019-12-06 2019-12-06 RTP packet loss detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112929227A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040236547A1 (en) * 2003-01-22 2004-11-25 Rappaport Theodore S. System and method for automated placement or configuration of equipment for obtaining desired network performance objectives and for security, RF tags, and bandwidth provisioning
US20060026288A1 (en) * 2004-07-30 2006-02-02 Arup Acharya Method and apparatus for integrating wearable devices within a SIP infrastructure
CN104349400A (en) * 2013-07-23 2015-02-11 华为技术有限公司 Wireless communication method, wired transmission detection method, and correlation device
CN105075183A (en) * 2014-02-13 2015-11-18 华为技术有限公司 Method and apparatus for detecting mobile communications network
CN108199916A (en) * 2017-12-27 2018-06-22 中国移动通信集团山东有限公司 A kind of VoLTE voice quality monitors method and system
CN109962801A (en) * 2017-12-25 2019-07-02 中国移动通信集团福建有限公司 Communication quality exception localization method, device, equipment and medium
CN110536314A (en) * 2018-05-23 2019-12-03 中国移动通信集团重庆有限公司 Determination method, apparatus, equipment and the medium of voice quality

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040236547A1 (en) * 2003-01-22 2004-11-25 Rappaport Theodore S. System and method for automated placement or configuration of equipment for obtaining desired network performance objectives and for security, RF tags, and bandwidth provisioning
US20060026288A1 (en) * 2004-07-30 2006-02-02 Arup Acharya Method and apparatus for integrating wearable devices within a SIP infrastructure
CN104349400A (en) * 2013-07-23 2015-02-11 华为技术有限公司 Wireless communication method, wired transmission detection method, and correlation device
CN105075183A (en) * 2014-02-13 2015-11-18 华为技术有限公司 Method and apparatus for detecting mobile communications network
CN109962801A (en) * 2017-12-25 2019-07-02 中国移动通信集团福建有限公司 Communication quality exception localization method, device, equipment and medium
CN108199916A (en) * 2017-12-27 2018-06-22 中国移动通信集团山东有限公司 A kind of VoLTE voice quality monitors method and system
CN110536314A (en) * 2018-05-23 2019-12-03 中国移动通信集团重庆有限公司 Determination method, apparatus, equipment and the medium of voice quality

Similar Documents

Publication Publication Date Title
WO2017210888A1 (en) Paging method, apparatus, and system
CN107395572B (en) Data processing method and Internet of things gateway
CN104363580B (en) Data download method and communication system
WO2019022442A3 (en) Method for supporting sms transmission for user equipment that can receive service from 3gpp 5g system and from eps in wireless communication system, and apparatus therefor
CN105850201A (en) Paging message transmission method, base station, mobility management entity, and user equipment
JP2020523869A (en) Method, device and storage medium for transmitting paging messages
US20170111939A1 (en) Method and Apparatus for Controlling Creation of Mobile Communication Network Connection
CN105516112A (en) Method and system for realizing voice call through browser based on WebRTC (Web Real-Time Communication)
CN104427626A (en) Semi-static scheduling method and system
WO2019047117A1 (en) Network access method, terminal device and network device
CN110971757A (en) Method and device for adding WeChat friends from telephone application
CN101867978A (en) Semi-static scheduling cycle management method, user equipment, base station and communication system
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
US10256986B2 (en) Recovering missed multimedia broadcast and multicast service data in a multicast broadcast single frequency network
CN112929227A (en) RTP packet loss detection method and device, electronic equipment and storage medium
CN108712441B (en) Information processing method and device and terminal
CN108696829B (en) Supplementary service setting processing method and device
CN104159323A (en) User terminal data transmission method and multi-channel transmission user terminal
CN101321371A (en) Accidental access response method, system and device
WO2016183823A1 (en) Group service feedback method and apparatus
CN114244813A (en) Call abnormity processing method and device and electronic equipment
CN111107661B (en) Random access resource acquisition method and device
CN112770107A (en) Modification method of load bearing and related device
CN108093199B (en) Conference processing method and device
CN112533154A (en) Data processing method, device and storage medium

Legal Events

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

Application publication date: 20210608