CN106303752B - A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method - Google Patents

A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method Download PDF

Info

Publication number
CN106303752B
CN106303752B CN201510270759.6A CN201510270759A CN106303752B CN 106303752 B CN106303752 B CN 106303752B CN 201510270759 A CN201510270759 A CN 201510270759A CN 106303752 B CN106303752 B CN 106303752B
Authority
CN
China
Prior art keywords
packet loss
iptv
mpeg2
udp
network
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.)
Active
Application number
CN201510270759.6A
Other languages
Chinese (zh)
Other versions
CN106303752A (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.)
DEKSCOM TECHNOLOGIES Ltd
Original Assignee
DEKSCOM TECHNOLOGIES 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 DEKSCOM TECHNOLOGIES Ltd filed Critical DEKSCOM TECHNOLOGIES Ltd
Priority to CN201510270759.6A priority Critical patent/CN106303752B/en
Publication of CN106303752A publication Critical patent/CN106303752A/en
Application granted granted Critical
Publication of CN106303752B publication Critical patent/CN106303752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Present invention discloses a kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment methods, comprising: carries out the capture of MPEG2-TS/UDP/IP data flow in IPTV network intermediate point by acquisition equipment;Protocol analysis is carried out to MPEG2-TS data flow, the continuity counter CC field in the detection packet header TS calculates total TS packet loss number Nt caused by each CC error event if there is CC error event;If the integral multiple that Nt is 7, adds 1 for the counting A of Network Packet Loss event counter, the counting B of IPTV platform packet loss event counter is otherwise added 1;If Network Packet Loss event counter A > T, judge that IPTV Media Stream packet loss is to be set as 0 as caused by IP network problem, and by A;If IPTV platform packet loss event counter B > T, judge that IPTV Media Stream packet loss is and B to be set as 0 as caused by IPTV platform problem.The present invention can conveniently and efficiently judge that video code flow packet loss as caused by video server or IP network, improves the accuracy and efficiency of differentiation.

Description

A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method
Technical field
The invention belongs to communication test technical field, it is related to a kind of packet loss failure judgment method, more particularly to a kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method.
Background technique
User experience quality guarantee
In recent years, with IP network and the rapid development of application and increasingly sharpening for Communications Market competition, global is each Big telecommunications and radio and TV operator are just starting the upsurge of one burst of " triple play " business development.On the one hand, telecom operators pass through IPTV technology enters digital TV field;On the other hand, cable television operators also accelerate the two-way of digital TV network and change It makes and the transmission of main line programme signal IPization, in order to provide VOD program request and time shifted TV business.
As a kind of digital video service, IPTV must be competed with traditional cable television.Since people have got used to The cheap charging standard of cable television, unbroken service availability, therefore guarantee that IPTV user experience quality can reach (or super Cross) cable television just becomes the successful key element of IPTV, wherein guaranteeing that clearly IP video image quality is particularly important.In order to Effectively realize IPTV service quality assurance, operator must just have and can actively discover IPTV service quality problems and quickly position With the system and tool in isolated fault source, so as to promoted user experience quality, reduce fault correction time.
Show that the packet loss (hereinafter referred to as TS packet loss) in MPEG2-TS code stream is to cause IPTV video matter according to correlative study The most critical reason of amount decline (phenomena such as such as mosaic, flower screen).However TS packet loss may relate to various reasons, it is main to wrap It includes:
(1) IPTV content supplier (such as TV station) is in video program source cataloged procedure, since the soft and hardware of encoder is asked Topic leads to TS packet loss.
(2) IPTV video server is when providing video streaming services to user's set-top box, in fact it could happen that various failures are (such as Cpu load is overweight, file corruption or software error in disk), thus the part TS data packet in random drop video program source.
(3) the MPEG2-TS code stream of video server output is in IP network transmission process, since nodes are sent out Raw congestion or failure cause IP packet loss, so that discarding includes all TS packets in IP packet.According to IETF RFC2250 standard, The IP packet transmitted in IPTV network would generally encapsulate 7 TS video bags, thus TS packet loss caused by IP packet loss be usually 7 it is whole Several times.
According to statistical analysis, TS caused by the above first two failure (we might as well be referred to as IPTV platform problem) loses Packet number is presented random distribution nature, and TS packet loss caused by the third failure (i.e. IP network packet loss) then it is most for 7 it is whole Several times.
Code stream packet loss calculation method
MPEG2-TS transmission code stream is made of the TS packet of one group of continuous 188 byte, and the format of TS packet is as shown in Figure 1.
As shown in Figure 1, wherein program identification number PID(Program ID) field is used to identify the content (example that TS packet transmits Such as: video, audio or PSI programme information table).In TS code stream, video content and audio content use different PID respectively To be identified.Such as the example in Fig. 2, the TS packet transmitted video content that PID is 100, the TS packet that PID is 200 is transmitted in audio Hold.
Continuity counter (CC) field is the field of 4 bit, it to it is each with PID field be index TS packet Sequence carry out continuity counting, i.e., by the continuous T S packet with identical PID stamp continuous CC label (such as: 0,1,2,3 ... , 14,15,0,1,2 ...).IPTV test instrumentation is the CC word that can be flowed by tracking MPEG2-TS as monitoring is unified Section calculates TS packet loss number.
The responsibility of code stream packet loss failure is delimited
For a set of outstanding IPTV video quality fault diagnosis system, other than it can detect and calculate TS packet loss, It is as caused by IPTV platform problem or IP network packet loss and vital for distinguishing MPEG2-TS code stream packet loss, because (note: inside telecom operators, IPTV platform and IP bearer network are usually the problem of this responsibility for being related to IPTV failure is delimited It is safeguarded by different departments).
The IPTV video flowing protocol encapsulation format of mainstream includes MPEG2-TS/RTP/UDP/IP and MPEG2-TS/ at present Two kinds of UDP/IP.
For former protocol encapsulation mode (i.e. MPEG2-TS/RTP/UDP/IP), due to including RTP number in the packet header RTP According to packet number field, therefore more convenient it can accurately calculate RTP number of dropped packets;Industry can be by being associated with MPEG2- at present TS layers are distinguished packet loss caused by IPTV platform and IP network problem with RTP layers of packet loss index.Such as: if MPEG2-TS layers of presence Packet loss is not present in TS packet loss and RTP layers, then can determine whether that IPTV platform leads to TS packet loss;If MPEG2-TS layers and RTP layers all exist Packet loss, and the packet loss ratio of the two is suitable, then can determine whether that IP network leads to TS packet loss.
However, for latter protocol encapsulation mode (i.e. MPEG2-TS/UDP/IP), due to lacking RTP layers, according only to Udp protocol packet header (no any packet sequence number field) can not accurately calculate UDP number of dropped packets.For this purpose, there is an urgent need to one kind for industry New method distinguishes TS packet loss caused by IPTV platform and IP network problem in this case.
Summary of the invention
The technical problems to be solved by the present invention are: providing a kind of MPEG2-TS/UDP/IP code stream packet loss fault verification side Method can conveniently and efficiently judge that video code flow packet loss as caused by video server or IP network, improves the accurate of differentiation Degree and efficiency.
In order to solve the above technical problems, the present invention adopts the following technical scheme:
A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method, described method includes following steps:
Step S1, the capture of MPEG2-TS/UDP/IP data flow is carried out in some IPTV network intermediate point by acquisition equipment; Initialize installation, Network Packet Loss event counter are carried out to Network Packet Loss event counter and IPTV platform packet loss event counter Counting A be set as the counting B of 0, IPTV platform packet loss event counter and be set as 0;
Step S2, protocol analysis, and the continuity meter in the emphasis detection packet header TS are carried out to MPEG2-TS/UDP/IP data flow Number device CC field, if there is CC error event, that is, the CC field for belonging to the TS packet of the same PID is discontinuous, then calculates each CC Total TS packet loss number Nt caused by error event;
If the step S3, integral multiple that Nt is 7, adds 1 for the counting A of Network Packet Loss event counter, otherwise puts down IPTV The counting B of platform packet loss event counter adds 1;
If step S4, Network Packet Loss event counter A > T, judge that IPTV Media Stream packet loss is due to IP network problem It is caused, and 0 is set by A;If IPTV platform packet loss event counter B > T, judge IPTV Media Stream packet loss be due to Caused by IPTV platform problem, and 0 is set by B;According to the above judgement, corresponding expert system is generated on a user interface Prompt;Wherein, T is TS packet loss decision confidence threshold value, default value 3;
If step S5, MPEG2-TS stream is not finished, step S2 is jumped to, testing process is otherwise terminated.
A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method, described method includes following steps:
Step S1, the capture of MPEG2-TS/UDP/IP data flow is carried out in setting IPTV network intermediate point by acquisition equipment;
Step S2, protocol analysis, and the continuity meter in the emphasis detection packet header TS are carried out to MPEG2-TS/UDP/IP data flow Number device CC field, if there is CC error event, that is, the CC field for belonging to the TS packet of the same PID is discontinuous, then calculates each CC Total TS packet loss number Nt caused by error event;
If step S3, Nt is the integral multiple of n, the counting A of Network Packet Loss event counter is added 1, otherwise puts down IPTV The counting B of platform packet loss event counter adds 1;N is the quantity that TS packet can be encapsulated in 1 IP packet;
If step S4, Network Packet Loss event counter A > T, judge that IPTV Media Stream packet loss is due to IP network problem It is caused, and 0 is set by A;If IPTV platform packet loss event counter B > T, judge IPTV Media Stream packet loss be due to Caused by IPTV platform problem, and 0 is set by B;Wherein, T is TS packet loss decision confidence threshold value;
If step S5, MPEG2-TS stream is not finished, step S2 is jumped to, testing process is otherwise terminated.
As a preferred solution of the present invention, in step S1, to Network Packet Loss event counter and IPTV platform packet loss Event counter carries out Initialize installation, and the counting A of Network Packet Loss event counter is set as 0, IPTV platform packet loss event meter The counting B of number device is set as 0.
As a preferred solution of the present invention, in step S4, the default value of T is 3.
As a preferred solution of the present invention, n=7.
The beneficial effects of the present invention are: MPEG2-TS/UDP/IP code stream packet loss failure judgment method proposed by the present invention, Can conveniently and efficiently judge video code flow packet loss as caused by video server or IP network, improve differentiation accuracy and Efficiency.
Detailed description of the invention
Fig. 1 is the form schematic diagram for forming the TS packet of MPEG2-TS transmission code stream.
Fig. 2 is the schematic diagram for identifying the PID field of TS packet transferring content.
Fig. 3 is the flow chart of MPEG2-TS/UDP/IP code stream packet loss failure judgment method of the present invention.
Specific embodiment
The preferred embodiment that the invention will now be described in detail with reference to the accompanying drawings.
Embodiment one
Referring to Fig. 3, present invention discloses a kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method, it is specific to wrap Include following steps:
[step S1] carries out MPEG2-TS/UDP/IP data flow in some IPTV network intermediate point by acquisition equipment and catches It obtains;Initialize installation, A=0, B=are carried out to Network Packet Loss event counter (A) and IPTV platform packet loss event counter (B) 0。
[step S2] carries out protocol analysis to MPEG2-TS/UDP/IP data flow, can be according to consensus standard (MPEG2-TS association View defines in ISO/IEC 13818-1 specification) each protocol fields of data packet are extracted, and emphasis detects TS packet Continuity counter (CC) field of head, if there is CC error event, (the CC field for belonging to the TS packet of the same PID does not connect It is continuous), then calculate total TS packet loss number (Nt) caused by each CC error event.
It can be calculated according to the continuity of CC field, such as: the CC field of normal TS packet is all continuously that is, 1,2, 3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3 ...;When there is IP packet loss, CC field sequence is 1,2,10, 11,12 ..., at this moment can calculate number of dropped packets is 7.
[step S3] is if Nt is otherwise IPTV platform is lost Network Packet Loss event counter (A) plus 1 by the integral multiple of n Packet event counter (B) plus 1.According to IETF RFC2250 standard, 7 TS packets can be encapsulated in 1 IP packet, in the present embodiment, n= 7.Of course, it is possible to determine the value of n according to various criterion.
[step S4] judges that IPTV Media Stream packet loss is since IP network is asked if Network Packet Loss event counter A > T Caused by topic, and 0 is set by A;If IPTV platform packet loss event counter B > T, judge IPTV Media Stream packet loss be by Caused by IPTV platform problem, and 0 is set by B;According to the above judgement, corresponding expert system is generated on a user interface System prompt.Wherein, T is TS packet loss decision confidence threshold value, default value 3.
[step S5] jumps to step 2, otherwise terminates testing process if MPEG2-TS stream is not finished.
In conclusion MPEG2-TS/UDP/IP code stream packet loss failure judgment method proposed by the present invention, it can be conveniently and efficiently Video code flow packet loss is judged as caused by video server or IP network, improves the accuracy and efficiency of differentiation.
Description and application of the invention herein are illustrative, is not wishing to limit the scope of the invention to above-described embodiment In.The deformation and change of embodiments disclosed herein are possible, the realities for those skilled in the art The replacement and equivalent various parts for applying example are well known.It should be appreciated by the person skilled in the art that not departing from the present invention Spirit or essential characteristics in the case where, the present invention can in other forms, structure, arrangement, ratio, and with other components, Material and component are realized.Without departing from the scope and spirit of the present invention, can to embodiments disclosed herein into The other deformations of row and change.

Claims (5)

1. a kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method, which is characterized in that the method includes walking as follows It is rapid:
Step S1, some intermediate point by acquisition equipment in IPTV network carries out the capture of MPEG2-TS/UDP/IP data flow;It is right Network Packet Loss event counter and IPTV platform packet loss event counter carry out Initialize installation, Network Packet Loss event counter The counting B that counting A is set as 0, IPTV platform packet loss event counter is set as 0;
Step S2, protocol analysis, and the continuity counter in the emphasis detection packet header TS are carried out to MPEG2-TS/UDP/IP data flow CC field, if there is CC error event, that is, the CC field for belonging to the TS packet of the same program identification number PID is discontinuous, then calculates Total TS packet loss number Nt caused by each CC error event;
If the step S3, integral multiple that Nt is 7, adds 1 for the counting A of Network Packet Loss event counter, otherwise loses IPTV platform The counting B of packet event counter adds 1;
If step S4, Network Packet Loss event counter A > T, judge that IPTV Media Stream packet loss is since IP network problem causes , and 0 is set by A;If IPTV platform packet loss event counter B > T, judge that IPTV Media Stream packet loss is since IPTV is flat Caused by platform problem, and 0 is set by B;According to the above judgement, corresponding expert system prompt is generated on a user interface;Its In, T is TS packet loss decision confidence threshold value, default value 3;
If step S5, MPEG2-TS/UDP/IP stream is not finished, step S2 is jumped to, testing process is otherwise terminated.
2. a kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method, which is characterized in that the method includes walking as follows It is rapid:
Step S1, the setting intermediate point by acquisition equipment in IPTV network carries out the capture of MPEG2-TS/UDP/IP data flow;
Step S2, protocol analysis, and the continuity counter in the emphasis detection packet header TS are carried out to MPEG2-TS/UDP/IP data flow CC field, if there is CC error event, that is, the CC field for belonging to the TS packet of the same program identification number PID is discontinuous, then calculates Total TS packet loss number Nt caused by each CC error event;
If step S3, Nt is the integral multiple of n, the counting A of Network Packet Loss event counter is added 1, otherwise loses IPTV platform The counting B of packet event counter adds 1;N is the quantity that TS packet can be encapsulated in 1 IP packet;
If step S4, Network Packet Loss event counter A > T, judge that IPTV Media Stream packet loss is since IP network problem causes , and 0 is set by A;If IPTV platform packet loss event counter B > T, judge that IPTV Media Stream packet loss is since IPTV is flat Caused by platform problem, and 0 is set by B;Wherein, T is TS packet loss decision confidence threshold value;
If step S5, MPEG2-TS/UDP/IP stream is not finished, step S2 is jumped to, testing process is otherwise terminated.
3. MPEG2-TS/UDP/IP code stream packet loss failure judgment method according to claim 2, it is characterised in that:
In step S1, Initialize installation, network are carried out to Network Packet Loss event counter and IPTV platform packet loss event counter The counting B that the counting A of packet loss event counter is set as 0, IPTV platform packet loss event counter is set as 0.
4. MPEG2-TS/UDP/IP code stream packet loss failure judgment method according to claim 2, it is characterised in that:
In step S4, the default value of T is 3.
5. MPEG2-TS/UDP/IP code stream packet loss failure judgment method according to claim 2, it is characterised in that: n=7.
CN201510270759.6A 2015-05-25 2015-05-25 A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method Active CN106303752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510270759.6A CN106303752B (en) 2015-05-25 2015-05-25 A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510270759.6A CN106303752B (en) 2015-05-25 2015-05-25 A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method

Publications (2)

Publication Number Publication Date
CN106303752A CN106303752A (en) 2017-01-04
CN106303752B true CN106303752B (en) 2019-03-12

Family

ID=57634582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510270759.6A Active CN106303752B (en) 2015-05-25 2015-05-25 A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method

Country Status (1)

Country Link
CN (1) CN106303752B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810524B (en) * 2017-05-05 2020-06-30 德科仕通信(上海)有限公司 IPTV picture fault phenomenon detection method
CN110730053A (en) 2019-09-09 2020-01-24 晶晨半导体(深圳)有限公司 Network packet loss retransmission method based on TS format and UDP transmission mode

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111618A (en) * 2011-01-20 2011-06-29 德科仕通信(上海)有限公司 Method and system for improving correctness of calculating number of video transport stream (TS) packet losses
CN102546263A (en) * 2012-02-21 2012-07-04 德科仕通信(上海)有限公司 Failure isolation method and system for video server and Internet protocol (IP) network in Internet protocol television (IPTV) network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8339986B2 (en) * 2006-10-31 2012-12-25 Ixia Instrumentation of MPEG-2 transport streams for testing network performance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111618A (en) * 2011-01-20 2011-06-29 德科仕通信(上海)有限公司 Method and system for improving correctness of calculating number of video transport stream (TS) packet losses
CN102546263A (en) * 2012-02-21 2012-07-04 德科仕通信(上海)有限公司 Failure isolation method and system for video server and Internet protocol (IP) network in Internet protocol television (IPTV) network

Also Published As

Publication number Publication date
CN106303752A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US8625455B2 (en) System and method for handling streaming media
US9036488B2 (en) Faulty link detection method, apparatus, node, and system
US9590816B2 (en) System and method for creating multiple transportation streams of streaming media network test traffic in packet-based networks
US7321565B2 (en) System and method for analyzing the performance of multiple transportation streams of streaming media in packet-based networks
EP2432161B1 (en) Method of and system for measuring quality of audio and video bit stream transmissions over a transmission chain
CN101800671B (en) Method for detecting packet loss of H.264 video file
JP2004129275A (en) System and method for monitoring rtp streams using rtcpsr/rr packet information
CN105917314A (en) Application error detection method for cloud streaming service, and apparatus and system therefor
US8526449B2 (en) Apparatus for controlling data traffic and a method for measuring QoE
CN102572531B (en) Method and system for delimiting packet loss faults of internet protocol television (IPTV) network
CN101646099A (en) Network television quality test method
US20140369222A1 (en) Method for estimating network jitter in apparatus for transmitting coded media data
KR102428093B1 (en) Data processing methods, servers and data collection devices
CN109672929A (en) A kind of detection method and equipment of video traffic message
US9119103B2 (en) Managing media distribution based on a service quality index value
CN106303752B (en) A kind of MPEG2-TS/UDP/IP code stream packet loss failure judgment method
CN109905729A (en) The method and apparatus for sending multi-medium data package using cross-layer optimizing
CN107769988A (en) The method, apparatus and the network equipment that information is sent and detection messages are lost
CN102111618A (en) Method and system for improving correctness of calculating number of video transport stream (TS) packet losses
CN102149022B (en) Method and system for improving packet loss calculation accuracy at MPEG-TS (moving picture expert group-transmission stream) layer
WO2013098812A1 (en) Transport over udp system and method
CN109005403B (en) The monitoring method and system of MPEG video transmission quality
KR101067229B1 (en) Apparatus and method for analyzing trouble of real time service using timestamp
IT201900007037A1 (en) Device, method and computer program and system for distributing content based on the quality of experience.
CN111224820B (en) Bandwidth calculation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant