CN113726811A - Packet loss compensation method for elevator video monitoring data transmission - Google Patents

Packet loss compensation method for elevator video monitoring data transmission Download PDF

Info

Publication number
CN113726811A
CN113726811A CN202111048264.0A CN202111048264A CN113726811A CN 113726811 A CN113726811 A CN 113726811A CN 202111048264 A CN202111048264 A CN 202111048264A CN 113726811 A CN113726811 A CN 113726811A
Authority
CN
China
Prior art keywords
message
rtp
queue
serial number
time point
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
CN202111048264.0A
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.)
Suzhou Luoyi Xinke Intelligent Technology Co ltd
Original Assignee
Suzhou Luoyi Xinke Intelligent Technology 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 Suzhou Luoyi Xinke Intelligent Technology Co ltd filed Critical Suzhou Luoyi Xinke Intelligent Technology Co ltd
Priority to CN202111048264.0A priority Critical patent/CN113726811A/en
Publication of CN113726811A publication Critical patent/CN113726811A/en
Pending legal-status Critical Current

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

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

Abstract

The invention discloses a packet loss compensation method for elevator video monitoring data transmission, which comprises the following steps that an annular queue is added at an RTP message sending end, and a backup is stored in the annular queue after each message is sent; the receiving end starts to traverse from the first RTP packet of the circular queue to the last RTP packet of the circular queue, judges whether each queue slot position is empty during the period, if so, the RTP message of the slot position is lost; when the current RTP message is lost, calculating the time point of the current message, and if the time point is invalid, determining that the message is lost; the receiving end forms a retransmission request in the form of RTCP extended message according to the serial number of RTP message losing the slot position, and sends the request to the sending end; the video quality during UDP transmission is ensured, and the video big data transmission performance under the actual complex environment is greatly improved.

Description

Packet loss compensation method for elevator video monitoring data transmission
Technical Field
The invention belongs to the technical field of elevator monitoring, and relates to a packet loss compensation method for elevator video monitoring data transmission.
Background
In the field of video streaming, UDP transmission is common, because UDP transmission does not guarantee reliable arrival of packets. The monitoring equipment is installed in the elevator, but when part of the elevator is in a basement, packet loss occurs in links due to network interruption, so that video is affected, some data is lost, the video quality is reduced, and even normal decoding and displaying cannot be performed.
Therefore, there is a need to provide a packet loss compensation method for elevator video monitoring data transmission to overcome the above problems.
Disclosure of Invention
In view of the above mentioned problems, the present invention aims to provide a packet loss compensation method for elevator video monitoring data transmission, which improves video big data transmission performance in a practical complex environment.
In order to meet the purpose, the invention adopts the following technical scheme: a packet loss compensation method for elevator video monitoring data transmission is characterized in that: comprising the following steps, S1: adding a ring queue at an RTP message sending end, wherein each message is stored with a backup in the ring queue after being sent; the circular queue is a special linear table and can be deleted at the head of the queue and inserted at the tail of the queue. An inserted element is called enqueue, and a deleted element is called dequeue; s2: according to the specification of standard RFC3550 on RTP messages, the header of an RTP message has a 16-bit serial number, and the serial number is generated in an increasing way, namely, each message can obtain a serial number, and the serial number of the next message is added with one on the basis of the serial number of the previous message; s3: the receiving end stores the received message into a ring queue of the receiving end according to the serial number, and the specific storage position is determined by the serial number of the message and the size of the ring queue; s4: the receiving end starts to traverse from the first RTP packet of the circular queue to the last RTP packet of the circular queue, judges whether each queue slot position is empty during the period, if so, the RTP message of the slot position is lost; s5: when the current RTP message is lost, calculating the time point of the current message, and if the time point is invalid, determining that the message is lost; s6: the receiving end forms a retransmission request in the form of RTCP extended message according to the serial number of RTP message losing the slot position, and sends the request to the sending end; s7: when the sending end receives the RTCP retransmission request message, searching the annular queue of the sending end according to the serial number in the message, and if the annular queue of the sending end can search the RTP message of the corresponding serial number, taking out the message for resending; s8: and the receiving end repeats the step 4 after receiving the RTP message.
Compared with the prior art, the scheme of the invention has the beneficial effects that: the video quality during UDP transmission is ensured, and the video big data transmission performance under the actual complex environment is greatly improved.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
The invention relates to a packet loss compensation method for elevator video monitoring data transmission, which aims at a special environment in which network signals are easy to interrupt in a special elevator use environment.
The packet loss compensation method for the elevator video monitoring data transmission comprises the following steps,
s1: adding a ring queue at an RTP message sending end, wherein each message is stored with a backup in the ring queue after being sent; the circular queue is a special linear table and can be deleted at the head of the queue and inserted at the tail of the queue. An inserted element is called enqueue and a deleted element is called dequeue. The ring queue is created before the RTP packet is normally delivered.
S2: according to the specification of standard RFC3550 for RTP packets, the RTP packet header has a 16-bit serial number, and the serial number is generated in an incremental manner, that is, each packet obtains a serial number, and the serial number of the next packet is added to the serial number of the previous packet.
S3: the receiving end stores the received message into a ring queue of the receiving end according to the serial number, the specific storage position is determined by the serial number of the message and the size of the ring queue, wherein, the position calculation method of the RTP message in the ring queue comprises the following steps:
assuming that the size of the circular queue is N and the sequence number of the current RTP packet is S, calculating the result of S modulo N to obtain the position P of the packet in the circular queue, that is, the position P can be uniquely determined by the following formula:
P=S%N。
s4: the receiving end starts to traverse from the first RTP packet of the circular queue to the last RTP packet of the circular queue, judges whether each queue slot position is empty during the period, if so, the RTP message of the slot position is lost;
s5: and when the current RTP message is lost, calculating the time point of the current message, and if the time point is invalid, judging that the packet is lost.
The time point defining, calculating and failure judging method comprises the following steps: and the time point of the real-time clock corresponding to the timestamp T in the RTP message in the ring queue is the time point T of the current RTP message. Assuming that the sampling rate of the video media data is S, the corresponding relationship between the time point and the timestamp can be obtained by the following formula:
t=T/S
then obtain the difference of the time points of different RTP messages, and assume the earliest RTP message time point in the ring queue to be t1For RTP packet N, its point in time is tNIf so, the aging Y of the RTP message NNIs uniquely determined by the following formula,
YN=tN-t1
obtaining the aging of the RTP message N, assuming the effective value of the aging to be Y, if Y isNIf the value of (D) is greater than Y, the aging of the RTP message N is considered to be invalid, otherwise, the aging of the RTP message N is considered to be valid.
The method for determining the moment point of message loss comprises the following steps:
supposing that the Nth RTP message is lost, firstly, judging that the Nth-1 message carries an RTP mark, if the Nth RTP message carries the mark, using the time point of the (N + 1) th RTP message as the time point of the Nth RTP message, and if the Nth RTP message does not carry the mark, using the time point of the (N-1) th RTP message as the time point of the Nth RTP message.
S6: the receiving end forms a retransmission request in the form of RTCP extended message according to the serial number of RTP message losing the slot position, and sends the request to the sending end;
s7: when the sending end receives the RTCP retransmission request message, the annular queue of the sending end is searched according to the serial number in the message, and if the annular queue of the sending end can search the RTP message of the corresponding serial number, the message is taken out to be sent again.
S8: the receiving end repeats step S4 after receiving the RTP packet.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (4)

1. A packet loss compensation method for elevator video monitoring data transmission is characterized in that: comprises the following steps of (a) carrying out,
s1: adding a ring queue at an RTP message sending end, wherein each message is stored with a backup in the ring queue after being sent; the circular queue is a special linear table and can be deleted at the head of the queue and inserted at the tail of the queue; an inserted element is called enqueue, and a deleted element is called dequeue;
s2: according to the specification of standard RFC3550 on RTP messages, the header of an RTP message has a 16-bit serial number, and the serial number is generated in an increasing way, namely, each message can obtain a serial number, and the serial number of the next message is added with one on the basis of the serial number of the previous message;
s3: the receiving end stores the received message into a ring queue of the receiving end according to the serial number, and the specific storage position is determined by the serial number of the message and the size of the ring queue;
s4: the receiving end starts to traverse from the first RTP packet of the circular queue to the last RTP packet of the circular queue, judges whether each queue slot position is empty during the period, if so, the RTP message of the slot position is lost;
s5: when the current RTP message is lost, calculating the time point of the current message, and if the time point is invalid, determining that the message is lost;
s6: the receiving end forms a retransmission request in the form of RTCP extended message according to the serial number of RTP message losing the slot position, and sends the request to the sending end;
s7: when the sending end receives the RTCP retransmission request message, searching the annular queue of the sending end according to the serial number in the message, and if the annular queue of the sending end can search the RTP message of the corresponding serial number, taking out the message for resending;
s8: and the receiving end repeats the step 4 after receiving the RTP message.
2. The packet loss compensation method for elevator video monitoring data transmission according to claim 1, characterized in that: the position calculation method of the RTP message in the ring queue comprises the following steps: assuming that the size of the circular queue is N and the sequence number of the current RTP packet is S, calculating the result of S modulo N to obtain the position P of the packet in the circular queue, that is, the position P can be uniquely determined by the following formula: p ═ S% N.
3. The packet loss compensation method for elevator video monitoring data transmission according to claim 1, characterized in that: the time point of a real-time clock corresponding to the timestamp T in the RTP message in the ring queue is the time point T of the current RTP message; assuming that the sampling rate of the video media data is S, the corresponding relationship between the time point and the timestamp can be obtained by the following formula: t is T/S.
4. The packet loss compensation method for elevator video monitoring data transmission according to claim 1, characterized in that: the method for determining the moment point of message loss comprises the following steps: supposing that the Nth RTP message is lost, firstly, judging that the (N-1) th message carries an RTP mark, if the message carries the mark, taking the time point of the (N + 1) th RTP message as the time point of the Nth RTP message, and if the message does not carry the mark, taking the time point of the (N-1) th RTP message as the time point of the Nth RTP message.
CN202111048264.0A 2021-09-08 2021-09-08 Packet loss compensation method for elevator video monitoring data transmission Pending CN113726811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111048264.0A CN113726811A (en) 2021-09-08 2021-09-08 Packet loss compensation method for elevator video monitoring data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111048264.0A CN113726811A (en) 2021-09-08 2021-09-08 Packet loss compensation method for elevator video monitoring data transmission

Publications (1)

Publication Number Publication Date
CN113726811A true CN113726811A (en) 2021-11-30

Family

ID=78682447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111048264.0A Pending CN113726811A (en) 2021-09-08 2021-09-08 Packet loss compensation method for elevator video monitoring data transmission

Country Status (1)

Country Link
CN (1) CN113726811A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825841A (en) * 2014-03-19 2014-05-28 北京众合德信技术有限公司 Ethernet message sequencing method and device
CN106792262A (en) * 2016-12-05 2017-05-31 乐视控股(北京)有限公司 Method of transmitting video data and device
WO2018133478A1 (en) * 2017-01-17 2018-07-26 烽火通信科技股份有限公司 Stream media transmission optimization method and device
CN110225419A (en) * 2019-05-15 2019-09-10 深圳市麦谷科技有限公司 A kind of packet loss repeating method for realizing flow control
CN111131075A (en) * 2019-11-21 2020-05-08 武汉兴图新科电子股份有限公司 High-concurrency data packet buffering method
CN111343501A (en) * 2020-03-06 2020-06-26 随锐科技集团股份有限公司 Packet loss detection method and system, and computer readable storage medium
CN112929455A (en) * 2021-05-11 2021-06-08 北京华云安信息技术有限公司 UDP-based data transmission method, device, equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825841A (en) * 2014-03-19 2014-05-28 北京众合德信技术有限公司 Ethernet message sequencing method and device
CN106792262A (en) * 2016-12-05 2017-05-31 乐视控股(北京)有限公司 Method of transmitting video data and device
WO2018133478A1 (en) * 2017-01-17 2018-07-26 烽火通信科技股份有限公司 Stream media transmission optimization method and device
CN110225419A (en) * 2019-05-15 2019-09-10 深圳市麦谷科技有限公司 A kind of packet loss repeating method for realizing flow control
CN111131075A (en) * 2019-11-21 2020-05-08 武汉兴图新科电子股份有限公司 High-concurrency data packet buffering method
CN111343501A (en) * 2020-03-06 2020-06-26 随锐科技集团股份有限公司 Packet loss detection method and system, and computer readable storage medium
CN112929455A (en) * 2021-05-11 2021-06-08 北京华云安信息技术有限公司 UDP-based data transmission method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106656422B (en) Streaming media transmission method for dynamically adjusting FEC redundancy
AU2008330261B2 (en) Play-out delay estimation
US20230171301A1 (en) Monitoring Network Conditions
EP2936770B1 (en) Apparatus and methods for controlling jitter buffer
US6684354B2 (en) Data transmission method, data transmission apparatus, data receiving apparatus, and packet data structure
CN107979449B (en) Data transmission method and device
US20050182850A1 (en) Protocol information processing system and method information processing device and method recording medium and program
JP4452983B2 (en) Receiving apparatus and method, program, and recording medium
US20020154600A1 (en) Data communication system
US7577145B2 (en) Packet communication method, communication system, communication apparatus, communication program and recording medium containing communication program
US9781488B2 (en) Controlled adaptive rate switching system and method for media streaming over IP networks
US20090135724A1 (en) Method and apparatus of RTP control protocol (RTCP) processing in real-time transport protocol (RTP) intermediate systems
US20210392065A1 (en) Receive-side timestamp accuracy
JP4930588B2 (en) Relay device and relay method
CN1917639A (en) Method of enhancing vedio signal by discarding packets and using retransmission
JP2008530903A (en) Retransmission protocol without handshaking
US10938731B2 (en) Tracking flows having encrypted sequence and acknowledgment numbers
US20160337091A1 (en) Method and device for retransmitting packet of mmt service, and retransmission request method and device
CN113726811A (en) Packet loss compensation method for elevator video monitoring data transmission
CN110913421B (en) Method and device for determining voice packet number
JPWO2014171543A1 (en) Data transmission apparatus, data transmission method, and program thereof
EP3907943B1 (en) Round-trip estimation
WO2016203870A1 (en) Transmission apparatus, transmission method, and communication system
US8379675B2 (en) Jitter buffering control for controlling storage locations of a jitter buffer, and a method therefor
WO2015003557A1 (en) Method and device for data packet reassembly

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211130

WD01 Invention patent application deemed withdrawn after publication