CN112533154A - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium Download PDF

Info

Publication number
CN112533154A
CN112533154A CN201910886159.0A CN201910886159A CN112533154A CN 112533154 A CN112533154 A CN 112533154A CN 201910886159 A CN201910886159 A CN 201910886159A CN 112533154 A CN112533154 A CN 112533154A
Authority
CN
China
Prior art keywords
data packet
data
packet
equipment
sequence numbers
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.)
Granted
Application number
CN201910886159.0A
Other languages
Chinese (zh)
Other versions
CN112533154B (en
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.)
Chengdu TD Tech Ltd
First Research Institute of Ministry of Public Security
Original Assignee
Chengdu TD Tech Ltd
First Research Institute of Ministry of Public Security
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 Chengdu TD Tech Ltd, First Research Institute of Ministry of Public Security filed Critical Chengdu TD Tech Ltd
Priority to CN201910886159.0A priority Critical patent/CN112533154B/en
Publication of CN112533154A publication Critical patent/CN112533154A/en
Application granted granted Critical
Publication of CN112533154B publication Critical patent/CN112533154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Abstract

The application provides a data processing method, a device and a storage medium, wherein the method comprises the following steps: the monitoring equipment receives a first data packet from the talkback equipment forwarded by the data forwarding server; if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to ensure that the sequence numbers of the first data packet and the second data packet are continuous, and the second data packet is the last data packet received by the monitoring equipment; and the monitoring equipment sends the first data packet with the modified serial number to the receiving equipment. According to the data processing method, the monitoring equipment can modify the serial number of the data packet with the packet loss, so that the serial number of the data packet received by the receiving equipment is continuous, the phenomenon that the receiving equipment senses the packet loss of the data packet is avoided, and the problem that a large amount of transmission bandwidth is occupied by additionally establishing a channel is further avoided.

Description

Data processing method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, an apparatus, and a storage medium.
Background
With the development of the trunking service, the application of the voice multicast service is more and more extensive. Voice multicast service refers to a main talker device transmitting the same audio data to a plurality of other devices at the same time. At present, the basic flow of the voice multicast service is as follows: the data forwarding server receives the audio data packet sent by the main speaking device, and forwards the received audio data packet to other devices in the voice multicast through the multicast channel.
If the audio data packet received by the other device has a packet loss, the data forwarding server needs to establish a unicast channel with the device generating the packet loss again to resend the lost audio data packet. The method in the prior art needs to additionally establish a unicast channel, and occupies a large amount of transmission bandwidth.
Disclosure of Invention
The application provides a data processing method, a data processing device and a storage medium, which can avoid the packet loss behavior of a receiving device sensing data packets, and further avoid the problem that a large amount of transmission bandwidth is occupied by additionally establishing a channel.
A first aspect of the present application provides a data processing method, including:
the monitoring equipment receives a first data packet from the talkback equipment forwarded by the data forwarding server;
and if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to ensure that the sequence numbers of the first data packet and the second data packet are continuous, and the second data packet is the last data packet received by the monitoring equipment.
Optionally, the method further includes:
and if the identification of the talkback equipment of the first data packet is different from the identification of the talkback equipment of the second data packet, the monitoring equipment modifies the identification of the talkback equipment of the first data packet into the identification of the talkback equipment of the second data packet.
Optionally, if the sequence numbers of the first data packet and the second data packet are not consecutive, before the listening device modifies the sequence number of the first data packet, the method further includes:
and the monitoring equipment determines that the identification of the talkback equipment of the first data packet is the same as the identification of the talkback equipment of the second data packet.
Optionally, the first data packet and the second data packet are both audio real-time transport protocol RTP data packets.
A second aspect of the present application provides a data processing apparatus comprising:
the receiving and sending module is used for receiving a first data packet from the talkback equipment forwarded by the data forwarding server;
and the processing module is configured to modify the sequence number of the first data packet if the sequence numbers of the first data packet and the second data packet are not consecutive, so that the sequence numbers of the first data packet and the second data packet are consecutive, and the second data packet is a previous data packet received by the transceiver module.
Optionally, the processing module is further configured to modify the identifier of the intercom device of the first data packet into the identifier of the intercom device of the second data packet if the identifier of the intercom device of the first data packet is different from the identifier of the intercom device of the second data packet.
Optionally, before the processing module modifies the sequence number of the first data packet if the sequence numbers of the first data packet and the second data packet are not consecutive, the processing module 502 is further configured to determine that the identifier of the intercom device of the first data packet is the same as the identifier of the intercom device of the second data packet.
Optionally, the first data packet and the second data packet are both audio real-time transport protocol RTP data packets.
A third aspect of the present application provides a data processing apparatus comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the data processing apparatus to perform the data processing method described above.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the above-mentioned data processing method.
The application provides a data processing method, a device and a storage medium, wherein the method comprises the following steps: the monitoring equipment receives a first data packet from the talkback equipment forwarded by the data forwarding server; if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to ensure that the sequence numbers of the first data packet and the second data packet are continuous, and the second data packet is the last data packet received by the monitoring equipment; and the monitoring equipment sends the first data packet with the modified serial number to the receiving equipment. In the data processing method provided by the application, in the transmission process of the downlink data packet, the monitoring equipment can modify the serial number of the data packet with the packet loss, so that the serial number of the data packet received by the receiving equipment is continuous, the receiving equipment is prevented from sensing the packet loss behavior of the data packet, and the problem that a large amount of transmission bandwidth is occupied by additionally establishing a channel is avoided.
Drawings
Fig. 1 is a schematic view of a data processing scenario in a cluster service provided in the prior art;
fig. 2 is a schematic view of a scenario when a packet is lost in a cluster service provided in the prior art;
FIG. 3 is a first flowchart illustrating a data processing method according to the present application;
fig. 4 is a second schematic flowchart of a data processing method provided in the present application;
FIG. 5 is a first schematic structural diagram of a data processing apparatus provided in the present application;
fig. 6 is a schematic structural diagram of a data processing apparatus according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the embodiments of the present application, and it is obvious that the described embodiments are some but not all of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term of the present application is to be interpreted:
the main speaking device comprises: in multicast or multicast service, the device is authorized to act as a main speaker for sending data packets to the data forwarding server so that the data forwarding server sends the received data packets to the receiving device.
The monitoring equipment: and the device receives the data packet forwarded by the data forwarding server from the talkback device in the multicast or multicast service.
Downlink multicast channel: and in a multicast channel between the data forwarding server and the monitoring equipment, the data forwarding server can send the data packet from the main speaking equipment to the monitoring equipment through the multicast channel. Illustratively, if the listening devices are A, B and C, the channel for the data forwarding server to send data from the intercom device to both listening devices A, B and C is a multicast channel.
Unicast channel: this application refers to the channel between the data forwarding server and one listening device. Illustratively, if the listening devices are A, B and C, the channel through which the data forwarding server sends data from the intercom device to listening device a alone is a unicast channel.
Sequence number of packet: the talker device transmits packets to the listener device, each packet having a Sequence Number (SEQ). The sequence numbers of the data packets continuously sent by the master device to the listener devices are continuous. Illustratively, if a user corresponding to the intercom device speaks a session, the intercom device generates a plurality of data packets corresponding to the session and sends the data packets to the listening device, where the sequence numbers of the data packets corresponding to the session are 1, 2, and 3, for example.
Identification of the packet's talker: the source (SSRC) of the data packet, i.e. the identity of the speaking device that sent the data packet. For example, if a data packet received by the listening device is from the intercom device a, the SSRC corresponding to the data packet is the intercom device a.
Packet loss: after receiving the data packet from the main speaking device, the monitoring device determines that packet loss occurs in the data packet if the sequence number of the data packet is discontinuous. Illustratively, the data packets sent by the intercom device to the listening device should be 1, 2, 3, and 4, but the data packets received by the listening device are 1, 2, and 4 due to the poor network environment where the intercom device is located or due to other reasons, the data packet 3 is lost in the received data packet.
In order to more clearly explain the data processing method in the present application, a data processing method in the related art is first explained below.
Fig. 1 is a schematic view of a data processing scenario in a cluster service provided in the prior art. As shown in fig. 1, the scenario includes: a main intercom device 10, a data forwarding server 20, a listening device 30, a listening device 40 and a listening device 50. It should be understood that fig. 1 exemplarily shows 3 listening devices, but other numbers are of course possible. The channel for the user to transmit the data packet between the data forwarding server 20 and the monitoring device 30 is a multicast channel a, the channel for the user to transmit the data packet between the data forwarding server 20 and the monitoring device 40 is a multicast channel b, and the channel for the user to transmit the data packet between the data forwarding server 20 and the monitoring device 50 is a multicast channel c.
It will be appreciated that a plurality of listening devices may be included in each of listening device 30, listening device 40 and listening device 50. Fig. 1 exemplarily shows that listening devices B and C are included in listening device 30, listening devices D and E are included in listening device 40, and listening devices F and G are included in listening device 50. Correspondingly, the intercom device 10 may transmit the data packet to the monitoring devices B and C through the multicast channel a, the intercom device 10 may transmit the data packet to the monitoring devices D and E through the multicast channel B, and the intercom device 10 may transmit the data packet to the monitoring devices F and G through the multicast channel C.
In the scenario shown in fig. 1, if a packet received by the monitoring device is lost. One possible implementation manner provided in the prior art is as follows: the monitoring device that has lost the packet will send a packet loss retransmission request to the data forwarding server 20, and send the sequence number of the lost data packet to the data forwarding server 20. After receiving the packet loss reissue request sent by the monitoring device, the data forwarding server 20 establishes a unicast channel with the monitoring device to resend the lost data packet. Alternatively, the lost packet may be a packet requested by the data forwarding server 20 from the intercom device 10, or may be a packet stored in the data forwarding server 20.
Fig. 2 is a schematic view of a scenario when a packet is lost in a cluster service provided in the prior art. As shown in fig. 2, if data packets received by the monitoring devices B and C are lost, the monitoring devices B and C both send a packet loss complementary transmission request to the forwarding server 20, and after receiving the packet loss complementary transmission request sent by the monitoring devices B and C, the data forwarding server 20 establishes unicast channels, such as unicast channels d and e, with the monitoring devices B and C to send the lost data packets. The method in the prior art needs to additionally establish a unicast channel, and occupies a large amount of transmission bandwidth. The number of the monitoring devices with packet loss shown in fig. 2 is 2, and when a large number of data packets received by the monitoring devices are all packet loss, a large number of additional unicast channels need to be established between the data forwarding server 20 and the monitoring devices, so that a larger amount of transmission bandwidth is occupied, and the progress of other services is affected.
In the scenario shown in fig. 1, if a packet received by the monitoring device is lost. Another possible implementation provided in the prior art is packet loss compensation. When the sequence number of the data packet received by the data forwarding server is discontinuous, a plurality of silent data packets can be compensated, and then the silent data packets are sent to the monitoring equipment. For example, suppose a packet is lost, sequence numbers of the packets received by the receiving end are 1 and 3, and a packet with sequence number 2 is lost in the middle. When compensating the silent audio frame, the data forwarding server adds a silent data packet between sequence numbers 1 and 3 of the data packets, thereby ensuring the continuity of the sequence numbers of the data packets received by the monitoring equipment.
However, this method has some problems, firstly, the complexity is increased, an algorithm for generating a silent data packet needs to be implemented in the data forwarding server, and secondly, the time delay is increased, because a certain amount of packet data must be buffered to compensate for the silent data packet, and then it can be determined which packet loss exists in the received data packet, and further, the silent data packet can be compensated.
In order to solve the above problems, the present application provides a data processing method, in a transmission process of a downlink data packet, by setting a monitoring device between a data forwarding server and the monitoring device, the monitoring device can modify a serial number of the data packet that has a packet loss, so that the serial number of the data packet received by the monitoring device is continuous, the monitoring device is prevented from sensing a packet loss behavior of the data packet, and further, a problem that an extra channel is established to occupy a large amount of transmission bandwidth is avoided.
It should be understood that the scene diagram shown in fig. 1 is also a scene diagram to which the data processing method provided in the present application is applicable.
The intercom device and the listening device in the present application may include, but are not limited to, a mobile terminal or a fixed terminal. The mobile terminal devices include, but are not limited to, a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, a portable device (e.g., a portable computer, a pocket computer, or a handheld computer), and the like. Fixed terminals include, but are not limited to, desktop computers and the like.
Fig. 3 is a first schematic flow chart of a data processing method provided in the present application. The execution entity of the method flow shown in fig. 3 may be a data processing device, which may be implemented by any software and/or hardware. As shown in fig. 3, the data processing method provided in this embodiment may include:
s301, the monitoring device receives a first data packet from the talkback device forwarded by the data forwarding server.
In the multicast service, the intercom device sends the data packet to the data forwarding server, and the data forwarding server sends the received data packet to the monitoring device. Correspondingly, the listening device may receive the data packet from the intercom device forwarded by the data forwarding server.
When multicast service is performed between the talkback device and the monitoring device, the talkback device may send a plurality of data packets to the monitoring device. It should be understood that, in this embodiment, the data packet from the intercom device forwarded by the data forwarding server currently received by the listening device is taken as the first data packet.
Optionally, if the multicast service in this embodiment is a voice multicast service, the corresponding first data packet may be an audio real-time transport protocol RTP data packet.
S302, if the sequence numbers of the first data packet and the second data packet are not consecutive, the monitoring device modifies the sequence number of the first data packet so that the sequence numbers of the first data packet and the second data packet are consecutive, and the second data packet is a previous data packet received by the monitoring device.
The first data packet received by the listening device carries a sequence number of the data packet, or the first data packet may be marked with a corresponding sequence number. The listening device may determine a sequence number of the first data packet after receiving the first data packet.
In this embodiment, after receiving the first data packet, the monitoring device may compare and determine the sequence number of the last data packet, that is, the sequence number of the second data packet, where if the sequence numbers of the first data packet and the second data packet are not consecutive, it is proved that packet loss occurs between the first data packet and the second data packet.
Optionally, if the multicast service in this embodiment is a voice multicast service, the corresponding first data packet may be an audio real-time transport protocol RTP data packet.
In this embodiment, to avoid the problem that a large number of unicast channels are established due to packet loss and a large number of transmission bandwidths are occupied, the sequence number of the first data packet with a discontinuous sequence number is modified, so that the sequence numbers of the first data packet and the second data packet are continuous.
In this embodiment, when packet loss occurs, the sequence number of the received data packet may be modified, so that the sequence number of the data packet received by the monitoring device is continuous, that is, the monitoring device does not sense the occurrence of packet loss, and further, the problem that a large amount of transmission broadband is occupied due to the establishment of a large number of unicast channels due to packet loss is avoided.
In addition, the data transmission method provided in this embodiment is to determine whether the sequence number of the data packet is consecutive to the sequence number of the previous data packet when the monitoring device receives each data packet, and modify the sequence number of the data packet to a sequence number consecutive to the sequence number of the previous data packet if the sequence number is not consecutive, so as to avoid the problems that a certain amount of packet data needs to be buffered and the delay of receiving the data packet by the monitoring device in the prior art is increased.
Illustratively, if the sequence number of a first data packet received by the snooping device is 3 and the sequence number of a second data packet received last is 1, it is determined that the sequence numbers of the first data packet and the second data packet are not consecutive, the snooping device modifies the sequence number of the first data packet, for example, modifies the sequence number of the first data packet to 2, so that the modified sequence numbers of the first data packet and the second data packet are consecutive.
The data processing method provided in the present embodiment includes: the monitoring equipment receives a first data packet from the talkback equipment forwarded by the data forwarding server; if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to ensure that the sequence numbers of the first data packet and the second data packet are continuous, and the second data packet is the last data packet received by the monitoring equipment; and the monitoring equipment sends the first data packet with the modified serial number to the receiving equipment. In the data processing method provided by the application, in the transmission process of the downlink data packet, the monitoring equipment can modify the serial number of the data packet with the packet loss, so that the serial number of the data packet received by the receiving equipment is continuous, the receiving equipment is prevented from sensing the packet loss behavior of the data packet, and the problem that a large amount of transmission bandwidth is occupied by additionally establishing a channel is avoided.
On the basis of the above embodiments, the data processing method provided by the present application is further described below with reference to fig. 4. Fig. 4 is a schematic flowchart of a second data processing method provided in the present application, and as shown in fig. 4, the data processing method provided in this embodiment may include:
s401, the monitoring device receives a first data packet from the talkback device forwarded by the data forwarding server.
S402, if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to make the sequence numbers of the first data packet and the second data packet continuous.
And S403, if the identification of the talkback device of the first data packet is different from the identification of the talkback device of the second data packet, the monitoring device modifies the identification of the talkback device of the first data packet into the identification of the talkback device of the second data packet.
It should be understood that the implementation manners in S401 to S402 in this embodiment may refer to the relevant descriptions in S301 to S302 in the above embodiments, and are not limited herein. It should be noted that, in this embodiment, the execution sequence of S403 and S402 is not limited, and the two operations may also be executed simultaneously. The following specifically describes the embodiment in S403.
The data packet received by the listening device and sent from the intercom device carries an identifier (SSRC) of the intercom device. In the above S403, correspondingly, the first data packet may carry the identifier of the intercom device of the first data packet.
In a possible implementation manner, the scenarios corresponding to the implementation manners in S401 to S402 in this embodiment are: the listener device determines that the identity of the talker for the first packet is the same as the identity of the talker for the second packet.
In this embodiment, if the monitoring device determines that the identifier of the intercom device of the first data packet is the same as the identifier of the intercom device of the second data packet, that is, it determines that the intercom device has not switched, the monitoring device may modify the sequence number of the first data packet when the sequence numbers of the first data packet and the second data packet are not consecutive. In this scenario, since the master device is not switched, the monitoring terminal does not perceive packet loss by modifying the sequence number of the first data packet so that the sequence numbers of the first data packet and the second data packet are consecutive.
In a possible implementation manner, if the identifier of the intercom device of the first data packet is different from the identifier of the intercom device of the second data packet, that is, the intercom device in the multicast service is switched, that is, the intercom device of the first data packet is different from the intercom device of the second data packet. In this scenario, the monitoring device can recognize the switching of the main speaking device, and if the serial numbers of the data packets sent by the same main speaking device are modified to be continuous, although the monitoring terminal cannot sense the packet loss when receiving the data packets of the same main speaking device, the monitoring terminal can sense the packet loss when receiving the data packets of different main speaking devices, and further, the problem of additionally establishing a unicast channel can be solved.
For example, if the identification of the intercom device of the first packet is different from the identification of the intercom device of the second packet, the intercom device that sends the first packet is correspondingly different from the intercom device that sends the second packet. For example, the data packets sent by the talkback device a to the listening device have sequence numbers of 1, 2 and 5, and the data packets sent by the talkback device a' to the listening device have sequence numbers of 2, 3 and 5. When the monitoring equipment receives a data packet sent by the talkback equipment A, the serial number of the data packet can be modified into 1, 2 and 3; correspondingly, when the monitoring device receives the data packet sent by the talkback device a ', because the change of the talkback device can be sensed, the serial number of the data packet can be modified to 2, 3 and 5, but the modified serial number of the data packet is repeated with the modified serial number of the data packet sent by the talkback device a, and the monitoring device may drop the data packet sent by the talkback device a', which has the modified serial number of 2 and 3.
In order to avoid the above situation, in this embodiment, after the snooping device receives the first data packet, the identifier of the intercom device of the first data packet may be compared with the identifier of the intercom device of the second data packet received last. If the identification of the intercom device of the first data packet is different from the identification of the intercom device of the second data packet, it is determined that the intercom device is switched after receiving the second data packet, that is, the intercom device of the first data packet is different from the intercom device of the second data packet.
Correspondingly, if the identification of the talkback device of the first data packet is different from the identification of the talkback device of the second data packet, the monitoring device modifies the identification of the talkback device of the first data packet into the identification of the talkback device of the second data packet, so that the monitoring device does not sense the identification of the talkback device of the received data packet and only modifies the serial number of the data packet.
As shown in the above example, the data packets sent by the intercom device a to the listening device have sequence numbers of 1, 2 and 5, and the data packets sent by the intercom device a' to the listening device have sequence numbers of 2, 3 and 5. The data packets with sequence numbers of 1, 2 and 5 sent by the talkback device a to the monitoring device carry the identifier of the talkback device a, such as "a", and the data packets with sequence numbers of 2, 3 and 5 sent by the talkback device a ' to the monitoring device carry the identifier of the talkback device a ', such as "a '". Correspondingly, in this embodiment, the identification of the intercom device may be "a '", and the identifications of the intercom devices with the serial numbers of 2, 3 and 5 packets may be modified from "a'" to "a".
Correspondingly, according to the embodiment in S402 in this embodiment, the sequence numbers of the packets with sequence numbers 1, 2, and 5 may be modified to 1, 2, and 3, respectively, and the sequence numbers of the packets with sequence numbers 2, 3, and 5 may be modified to 4, 5, and 6, so that the sequence numbers of the packets are kept continuous in the scenario of whether the intercom device is switched or not.
The first table shows a correspondence table before and after modification of the serial number of the data packet received by the listening device, the identification of the intercom device.
Watch 1
Before modification After modification
1(A) 1(A)
2(A) 2(A)
5(A) 3(A)
2(A') 4(A)
3(A') 5(A)
5(A') 6(A)
In this embodiment, if the identifier of the intercom device of the first data packet is different from the identifier of the intercom device of the second data packet, the monitoring device modifies the identifier of the intercom device of the first data packet into the identifier of the intercom device of the second data packet, and if the serial numbers of the first data packet and the second data packet are not consecutive, the monitoring device modifies the serial number of the first data packet so that the serial numbers of the first data packet and the second data packet are consecutive, and the second data packet is the last data packet received by the monitoring device. The data processing method provided in this embodiment can avoid the problem that the monitoring device loses packets of data packets corresponding to different pieces of intercom equipment after the serial number of the first data packet is modified when the intercom equipment is switched.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to the present application. As shown in fig. 5, the data processing apparatus 500 includes: a transceiver module 501 and a processing module 502.
The transceiver module 501 is configured to receive a first data packet from the intercom device forwarded by the data forwarding server.
The processing module 502 is configured to modify the sequence number of the first data packet if the sequence numbers of the first data packet and the second data packet are not consecutive, so that the sequence numbers of the first data packet and the second data packet are consecutive, and the second data packet is a previous data packet received by the transceiver module 501.
Optionally, the processing module 502 is further configured to modify the identifier of the intercom device of the first data packet into the identifier of the intercom device of the second data packet if the identifier of the intercom device of the first data packet is different from the identifier of the intercom device of the second data packet.
Optionally, before the processing module 502 modifies the sequence number of the first data packet when the sequence numbers of the first data packet and the second data packet are not consecutive, the processing module 502 is further configured to determine that the identifier of the intercom device of the first data packet is the same as the identifier of the intercom device of the second data packet.
Optionally, the first data packet and the second data packet are both audio real-time transport protocol RTP data packets.
The principle and technical effect of the data processing apparatus provided in this embodiment are similar to those of the data processing method, and are not described herein again.
Fig. 6 is a schematic structural diagram of a data processing apparatus according to the present application. The data processing device may be, for example, a terminal device, such as a smartphone, a tablet, a computer, or the like. As shown in fig. 6, the data processing apparatus 600 includes: a memory 601 and at least one processor 602.
A memory 601 for storing program instructions.
The processor 602 is configured to implement the data processing method in this embodiment when the program instructions are executed, and specific implementation principles may be referred to in the foregoing embodiments, which are not described herein again.
The data processing device 600 may further comprise an input/output interface 603.
The input/output interface 603 may include a separate output interface and input interface, or may be an integrated interface that integrates input and output. The output interface is used for outputting data, the input interface is used for acquiring input data, the output data is a general name output in the method embodiment, and the input data is a general name input in the method embodiment.
The present application also provides a readable storage medium, in which an execution instruction is stored, and when at least one processor of the data processing apparatus executes the execution instruction, when the computer execution instruction is executed by the processor, the data processing method in the above embodiment is implemented.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the data processing apparatus may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the data processing apparatus to implement the data processing method provided by the various embodiments described above.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
In the above embodiments of the data Processing apparatus, it should be understood that the Processing module may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A data processing method, comprising:
the monitoring equipment receives a first data packet from the talkback equipment forwarded by the data forwarding server;
and if the sequence numbers of the first data packet and the second data packet are not continuous, the monitoring equipment modifies the sequence number of the first data packet so as to ensure that the sequence numbers of the first data packet and the second data packet are continuous, and the second data packet is the last data packet received by the monitoring equipment.
2. The method of claim 1, further comprising:
and if the identification of the talkback equipment of the first data packet is different from the identification of the talkback equipment of the second data packet, the monitoring equipment modifies the identification of the talkback equipment of the first data packet into the identification of the talkback equipment of the second data packet.
3. The method of claim 1, wherein before the listening device modifies the sequence number of the first packet if the sequence numbers of the first and second packets are not consecutive, the method further comprises:
and the monitoring equipment determines that the identification of the talkback equipment of the first data packet is the same as the identification of the talkback equipment of the second data packet.
4. The method of claim 1, wherein the first packet and the second packet are both audio real-time transport protocol (RTP) packets.
5. A data processing apparatus, comprising:
the receiving and sending module is used for receiving a first data packet from the talkback equipment forwarded by the data forwarding server;
and the processing module is configured to modify the sequence number of the first data packet if the sequence numbers of the first data packet and the second data packet are not consecutive, so that the sequence numbers of the first data packet and the second data packet are consecutive, and the second data packet is a previous data packet received by the transceiver module.
6. The apparatus of claim 5,
the processing module is further configured to modify the identifier of the intercom device of the first data packet to the identifier of the intercom device of the second data packet if the identifier of the intercom device of the first data packet is different from the identifier of the intercom device of the second data packet.
7. The apparatus of claim 5,
before the processing module modifies the sequence number of the first data packet if the sequence numbers of the first data packet and the second data packet are not consecutive, the processing module is further configured to determine that the identifier of the intercom device of the first data packet is the same as the identifier of the intercom device of the second data packet.
8. The apparatus of claim 5, wherein the first packet and the second packet are both audio real-time transport protocol (RTP) packets.
9. A data processing apparatus, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the data processing apparatus to perform the method of any of claims 1-4.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-4.
CN201910886159.0A 2019-09-19 2019-09-19 Data processing method, device and storage medium Active CN112533154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910886159.0A CN112533154B (en) 2019-09-19 2019-09-19 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910886159.0A CN112533154B (en) 2019-09-19 2019-09-19 Data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112533154A true CN112533154A (en) 2021-03-19
CN112533154B CN112533154B (en) 2022-04-22

Family

ID=74974004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910886159.0A Active CN112533154B (en) 2019-09-19 2019-09-19 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112533154B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783780A (en) * 2021-09-29 2021-12-10 中孚信息股份有限公司 IEEE802.11 packet loss statistics and flow prediction method, system and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697354A (en) * 2005-06-17 2005-11-16 顾红波 Method for reliable transmitting data through multicast and unicast protocol, and host of receiving data
CN101515934A (en) * 2009-03-24 2009-08-26 华为技术有限公司 Method, device and communication system for forwarding scalable video coded data message
CN101729228A (en) * 2008-10-31 2010-06-09 华为技术有限公司 Method, network node and system for inhibiting retransmission of lost packet
US20190109678A1 (en) * 2016-06-03 2019-04-11 Mitsubishi Electric Corporation Requesting retransmission of data in a multicast network
CN109842856A (en) * 2017-11-29 2019-06-04 成都鼎桥通信技术有限公司 A kind of method and apparatus shielding uplink packet loss

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697354A (en) * 2005-06-17 2005-11-16 顾红波 Method for reliable transmitting data through multicast and unicast protocol, and host of receiving data
CN101729228A (en) * 2008-10-31 2010-06-09 华为技术有限公司 Method, network node and system for inhibiting retransmission of lost packet
CN101515934A (en) * 2009-03-24 2009-08-26 华为技术有限公司 Method, device and communication system for forwarding scalable video coded data message
US20190109678A1 (en) * 2016-06-03 2019-04-11 Mitsubishi Electric Corporation Requesting retransmission of data in a multicast network
CN109842856A (en) * 2017-11-29 2019-06-04 成都鼎桥通信技术有限公司 A kind of method and apparatus shielding uplink packet loss

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783780A (en) * 2021-09-29 2021-12-10 中孚信息股份有限公司 IEEE802.11 packet loss statistics and flow prediction method, system and terminal

Also Published As

Publication number Publication date
CN112533154B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN111435844B (en) Method, device, equipment and system for correcting audio data in dual-wireless Bluetooth communication
US10798138B2 (en) Instant calling method, apparatus and system
WO2020164349A1 (en) Data transmission control method and related product
CN107534812B (en) Ring network of Bluetooth loudspeaker
CN111447603A (en) Data transmission method and device
US20220046393A1 (en) Group communication forwarding to a secondary service
CN110944311A (en) Method for allocating time slot of wireless earphone and wireless earphone adopting same
EP3057280B1 (en) Multiparty call method and apparatus
CN112533154B (en) Data processing method, device and storage medium
KR20140127700A (en) Multipoint conference device and switching method from point-to-point communication to multipoint conference
US11129119B2 (en) Data synchronization method, device and storage medium
CN110545151B (en) Method for synchronizing states between audio ends and sending audio data packets and audio equipment
CN114268911B (en) Communication method and device, readable storage medium and TWS system
WO2022100211A1 (en) Data processing method and apparatus, storage medium, terminal, and network access point device
WO2022121819A1 (en) Call method and device
EP3843495B1 (en) Communication method and apparatus, and device
US10349456B2 (en) Video communication system, video transmission terminal, video reception terminal, communication method, and recording medium
JP2013538515A (en) Cellular network
EP1976201A1 (en) Shared communication capabilities of mobile stations for high bandwidth communications
US11917043B2 (en) Data transmission method and apparatus
CN110769445A (en) Data transmission method and device
CN103024685A (en) Multi-channel PTT (push-to-talk) system and implementation method thereof
WO2017054284A1 (en) Communication method and related device
EP3007472B1 (en) Service scheduling method, system, terminal and storage medium based on clustering system
WO2022227587A1 (en) Shared service establishment method and related product

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
GR01 Patent grant
GR01 Patent grant