CN103763551A - Video testing method based on deep packet inspection - Google Patents

Video testing method based on deep packet inspection Download PDF

Info

Publication number
CN103763551A
CN103763551A CN201410046716.5A CN201410046716A CN103763551A CN 103763551 A CN103763551 A CN 103763551A CN 201410046716 A CN201410046716 A CN 201410046716A CN 103763551 A CN103763551 A CN 103763551A
Authority
CN
China
Prior art keywords
video
time
data
flv
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410046716.5A
Other languages
Chinese (zh)
Other versions
CN103763551B (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.)
Hangzhou sound Polytron Technologies Inc
Original Assignee
HANGZHOU USENSE 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 HANGZHOU USENSE TECHNOLOGY Co Ltd filed Critical HANGZHOU USENSE TECHNOLOGY Co Ltd
Priority to CN201410046716.5A priority Critical patent/CN103763551B/en
Publication of CN103763551A publication Critical patent/CN103763551A/en
Application granted granted Critical
Publication of CN103763551B publication Critical patent/CN103763551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention relates to a video testing method based on deep packet inspection. The video testing method based on deep packet inspection is used for displaying videos on mobile terminals and acquiring the video playback process through data packets. The video testing method based on deep packet inspection includes the following procedures of (1) controlling the terminal to play the video to be tested through automatic tools, (2) fetching data communication packets, (3) judging whether the data communication packets are video streaming data packets or not, (4) analyzing whether the video streaming data packets are recognizable video streaming or not through judging on the video data type, and (5) testing and analyzing on the recognized video streaming. The video testing method based on deep packet inspection can reduce time-lag and test the effect of video playback.

Description

A kind of video measurement method based on deep-packet detection
Technical field
The present invention relates to a kind of video measurement method based on deep-packet detection, belong to video playback field.
Background technology
Based on true mobile device video, there is no effective method of testing at present.
In prior art to the video measurement of true mobile device mainly by automation tools control appliance displaying video, and by interface, change to judge the success rate, buffering duration etc. of video playback.But it is larger that the shortcoming of this method is time delay error, and video playback is gone wrong and is also difficult to judge.
Summary of the invention
The present invention is directed to the deficiency that prior art exists, propose a kind ofly on true mobile terminal, carrying out video playback, and by packet, obtain video display process, the method for test video result of broadcast.
Technical scheme of the present invention is: a kind of video measurement method based on deep-packet detection, for carry out video playback on mobile terminal, and obtain video display process by packet, and comprise the following steps:
(1) by automation tools control terminal, play video to be measured;
(2) capture data communication bag;
(3) in this data communication bag, whether comprise
" video/mp4 ", " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f ", " video/3gpp ", " multipart/byte ", " application/octet-stream " judges whether this data communication bag is video streaming data packet, the video file type that wherein " video/mp4 " is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f " is the video format of flash, the video format that " video/3gpp " used for mobile phone, expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4), by video data type is judged, whether analyze this video streaming data packet is discernible video flowing;
(5) video flowing identifying is carried out to test analysis.
Further, wherein in step (4), the concrete steps to video data type judgement are: 1) if front four bytes of this video packets of data are the wherein a kind of of " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra ", be mp4 form, otherwise be FLV form;
2) size that is each section to the judging characteristic of MPEGTS video is fixedly 204 bytes, and whether the first byte of each section is 0x47;
Further, 1), whether all video streaming data packet are analyzed to its source data packet address, destination address, source port, target port identical in step (5), video flowing is carried out to the process of test analysis specific as follows:, if identical, a succession of video streaming data packet is reconfigured to a link, thereby be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising the packet remove repeating, analyze the delay skew of each video streaming data packet time point, video, the time migration of receiving;
3), calculate buffer time for the first time, player has the buffering of 5 seconds, the time migration of video of take 5 seconds is benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, on backstage, set up the Buffer Pool of a video playback, receive the video flowing that should cushion as the criterion that starts to play, be generally 5 seconds;
5), at the playing process of backstage simulation player, every one second, deduct the video data in a second, check whether the data of lower buffering are less than buffer value simultaneously, if the data of current broadcasting are less than buffer value, explanation has cushioned;
6) if find once buffering, carry out record, statistics buffering number of times;
7) if the data of current broadcasting are greater than buffer value, explanation has restarted to play, and this time difference is as buffering time delay.
Further, the buffer value in described step 5) is 5 seconds.
Further, described mobile terminal comprises mobile phone and PAD.
Method of testing of the present invention, can reduce time delay error, and the problem that video playback is occurred judges, the video that can play all mobile terminals (mobile phone and PAD) is accurately tested, can have a clear understanding of the buffering number of times in video display process, buffer time, can be used for measuring the play quality of video itself, can support video display effect under different terminals, different network environments to assess.
Accompanying drawing explanation
Fig. 1 is test implementation procedure schematic diagram of the present invention;
Fig. 2 is the implementation procedure schematic diagram that video flowing of the present invention is analyzed.
Embodiment
Below embodiments of the invention are elaborated, the present embodiment is implemented take technical solution of the present invention under prerequisite, provided detailed execution mode and concrete operating process, but protection scope of the present invention is not limited to following embodiment.
As shown in Figure 1-2, the method comprises the following steps:
(1) by automation tools, control mobile terminal playing video to be measured;
(2) capture data communication bag;
(3) in this data communication bag, whether comprise
" video/mp4 ", " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f ", " video/3gpp ", " multipart/byte ", " application/octet-stream " judges whether this data communication bag is video streaming data packet, the video file type that wherein " video/mp4 " is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f " is the video format of flash, video content can be: h.264.TS, the video format that " video/3gpp " used for mobile phone, Normal squeezing is higher frequently, expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4), by video data type is judged, whether analyze this video streaming data packet is discernible video flowing;
(5) video flowing identifying is carried out to test analysis.
Further, wherein in step (4), the concrete steps to video data type judgement are: 1) if front four bytes of this video packets of data are the wherein a kind of of " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra ", be mp4 form, otherwise be FLV form;
2) size that is each section to the judging characteristic of MPEGTS video is fixedly 204 bytes, and whether the first byte of each section is 0x47;
Further, 1), whether all video streaming data packet are analyzed to its source data packet address, destination address, source port, target port identical in step (5), video flowing is carried out to the process of test analysis specific as follows:, if identical, a succession of video streaming data packet is reconfigured to a link, thereby be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising the packet remove repeating, analyze the delay skew of each video streaming data packet time point, video, the time migration of receiving;
3), calculate buffer time for the first time, player has the buffering of 5 seconds, the time migration of video of take 5 seconds is benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, on backstage, set up the Buffer Pool of a video playback, receive the video flowing that should cushion as the criterion that starts to play, be generally 5 seconds;
5), at the playing process of backstage simulation player, every one second, deduct the video data in a second, check whether the data of lower buffering are less than buffer value simultaneously, if the data of current broadcasting are less than buffer value, explanation has cushioned;
6) if find once buffering, carry out record, statistics buffering number of times;
7) if the data of current broadcasting are greater than buffer value, explanation has restarted to play, and this time difference is as buffering time delay.
Further, the buffer value in described step 5) is 5 seconds.
Further, described mobile terminal comprises mobile phone and PAD.
Method of testing of the present invention, can reduce time delay error, and video buffer time delay, number of times are judged, video to be played is tested, and the problem that video playback is occurred judges.
The content not being described in detail in specification of the present invention belongs to the known prior art of professional and technical personnel in the field.

Claims (5)

1. the video measurement method based on deep-packet detection, for carry out video playback on mobile terminal, and obtains video display process by packet, comprises the following steps:
(1) by automation tools, control mobile terminal playing video to be measured;
(2) capture data communication bag;
(3) in this data communication bag, whether comprise
" video/mp4 ", " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f ", " video/3gpp ", " multipart/byte ", " application/octet-stream " judges whether this data communication bag is video streaming data packet, the video file type that wherein " video/mp4 " is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", " video/f4f " is the video format of flash, the video format that " video/3gpp " used for mobile phone, its expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4), by video data type is judged, whether analyze this video streaming data packet is discernible video flowing;
(5) video flowing identifying is carried out to test analysis.
2. video measurement method according to claim 1, is characterized in that: described mobile terminal comprises mobile phone and PAD.
3. video measurement method according to claim 1, it is characterized in that: the concrete steps to video data type judgement in step (4) are: 1) wherein a kind of if front four bytes of this video packets of data are " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra ", be mp4 form, otherwise be FLV form;
2) size that is each section to the judging characteristic of MPEGTS video is fixedly 204 bytes, and whether the first byte of each section is 0x47.
4. video measurement method according to claim 1,1), whether all video streaming data packet are analyzed to its source data packet address, destination address, source port, target port identical it is characterized in that: in step (5), video flowing is carried out to the process of test analysis specific as follows:, if identical, a succession of video streaming data packet is reconfigured to a link, thereby be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising the packet remove repeating, analyze the delay skew of each video streaming data packet time point, video, the time migration of receiving;
3), calculate buffer time for the first time, player has the buffering of 5 seconds, the time migration of video of take 5 seconds is benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, on backstage, set up the Buffer Pool of a video playback, receive the video flowing that should cushion as the criterion that starts to play, be generally 5 seconds;
5), at the playing process of backstage simulation player, every one second, deduct the video data in a second, check whether the data of lower buffering are less than buffer value simultaneously, if the data of current broadcasting are less than buffer value, explanation has cushioned;
6) if find once buffering, carry out record, statistics buffering number of times;
7) if the data of current broadcasting are greater than buffer value, explanation has restarted to play, and this time difference is as buffering time delay.
5. video measurement method according to claim 4, is characterized in that: the buffer value in step 5) is 5 seconds.
CN201410046716.5A 2014-02-10 2014-02-10 Video testing method based on deep packet inspection Active CN103763551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410046716.5A CN103763551B (en) 2014-02-10 2014-02-10 Video testing method based on deep packet inspection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410046716.5A CN103763551B (en) 2014-02-10 2014-02-10 Video testing method based on deep packet inspection

Publications (2)

Publication Number Publication Date
CN103763551A true CN103763551A (en) 2014-04-30
CN103763551B CN103763551B (en) 2015-06-17

Family

ID=50530699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410046716.5A Active CN103763551B (en) 2014-02-10 2014-02-10 Video testing method based on deep packet inspection

Country Status (1)

Country Link
CN (1) CN103763551B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168506A (en) * 2014-08-13 2014-11-26 广州市香港科大霍英东研究院 Method for obtaining user video experience quality by sniffing HTTP data packet
CN106791805A (en) * 2016-12-06 2017-05-31 中国联合网络通信集团有限公司 A kind of method and device of video traffic assessment
CN109274963A (en) * 2018-11-08 2019-01-25 中影环球(北京)科技有限公司 A kind of failure prediction method of cinema projection server
CN109982068A (en) * 2017-12-28 2019-07-05 中国移动通信集团福建有限公司 Synthetic video method for evaluating quality, device, equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109921937B (en) * 2019-03-15 2022-02-18 杭州当虹科技股份有限公司 Testing system and method for automatically verifying long-time task of flow protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946196A (en) * 2005-10-06 2007-04-11 安科特纳 Combination meter for evaluating video delivered via Internet protocol
CN102026017A (en) * 2010-11-29 2011-04-20 福州瑞芯微电子有限公司 Efficient test method for video decoding
CN102075781A (en) * 2009-11-20 2011-05-25 上海倍亚得信息技术有限公司 System and method for testing user perception effect of video telephony and streaming media
CN102204265A (en) * 2010-12-31 2011-09-28 华为技术有限公司 Method, terminal, server, and system for evaluating video quality
CN103024440A (en) * 2013-01-11 2013-04-03 德科仕通信(上海)有限公司 Video quality evaluation and fault diagnosis method aiming at HAS (HTTP Adaptive Streaming)
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103458087A (en) * 2013-08-30 2013-12-18 华南理工大学 Remote mobile phone test experiencing method based on RTMP

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946196A (en) * 2005-10-06 2007-04-11 安科特纳 Combination meter for evaluating video delivered via Internet protocol
CN102075781A (en) * 2009-11-20 2011-05-25 上海倍亚得信息技术有限公司 System and method for testing user perception effect of video telephony and streaming media
CN102026017A (en) * 2010-11-29 2011-04-20 福州瑞芯微电子有限公司 Efficient test method for video decoding
CN102204265A (en) * 2010-12-31 2011-09-28 华为技术有限公司 Method, terminal, server, and system for evaluating video quality
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103024440A (en) * 2013-01-11 2013-04-03 德科仕通信(上海)有限公司 Video quality evaluation and fault diagnosis method aiming at HAS (HTTP Adaptive Streaming)
CN103458087A (en) * 2013-08-30 2013-12-18 华南理工大学 Remote mobile phone test experiencing method based on RTMP

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
霍其峰: "数字视频流IP传输的质量分析、系统测试与检测", 《广播电视信息》, 30 November 2011 (2011-11-30) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168506A (en) * 2014-08-13 2014-11-26 广州市香港科大霍英东研究院 Method for obtaining user video experience quality by sniffing HTTP data packet
CN106791805A (en) * 2016-12-06 2017-05-31 中国联合网络通信集团有限公司 A kind of method and device of video traffic assessment
CN109982068A (en) * 2017-12-28 2019-07-05 中国移动通信集团福建有限公司 Synthetic video method for evaluating quality, device, equipment and medium
CN109982068B (en) * 2017-12-28 2020-09-04 中国移动通信集团福建有限公司 Method, apparatus, device and medium for evaluating quality of synthesized video
CN109274963A (en) * 2018-11-08 2019-01-25 中影环球(北京)科技有限公司 A kind of failure prediction method of cinema projection server
CN109274963B (en) * 2018-11-08 2020-04-21 中影环球(北京)科技有限公司 Failure prediction method for cinema showing server

Also Published As

Publication number Publication date
CN103763551B (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN103763551B (en) Video testing method based on deep packet inspection
Casas et al. YOUQMON: A system for on-line monitoring of YouTube QoE in operational 3G networks
JP6225355B2 (en) Fault simulation for network communication enabling estimation of voice quality degradation
US10305613B2 (en) Method and system for detecting image delay
EP2767039B1 (en) Quality of user experience testing for video transmissions
US20100211675A1 (en) Real-time network data analysing system
US20070081471A1 (en) Apparatus and method for analyzing packet data streams
US20070177520A1 (en) Traffic load density measuring system, traffic load density measuring method, transmitter, receiver, and recording medium
CN103731631B (en) The method, apparatus and system of a kind of transmitting video image
CN104735473B (en) A kind of detection method and device of video render
CN102340789B (en) Dialing test terminal and dialing test method
Alvarez et al. Field measurements of mobile services with Android smartphones
CN105024868A (en) Network quality detection method and network quality detection system for video Internet
CN104811751A (en) Streaming media playing blockage pause recognition method and streaming media playing blockage pause recognition device
JP2019524029A (en) Video service quality evaluation method and apparatus
CN106535240B (en) Mobile APP centralized performance analysis method based on cloud platform
CN105516090A (en) Media play method, device and music teaching system
US7793171B2 (en) Protocol tester and method for performing a protocol test
CN111385163A (en) Flow analysis and detection method and device
CN107888909B (en) A kind of measurement method of the net switching system of IP video
CN102223262B (en) Evaluation platform and method of quality of experience of video based on QoS
Szilágyi et al. Network side lightweight and scalable YouTube QoE estimation
CN105515916A (en) Aging test monitoring method and device
CN102421005A (en) Embedded type based code stream analysis system
CN104539475A (en) Method and device for determining correctness of SCA collection data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 708 room 310012, Zhejiang small Enterprise Building, No. 553, Wensanlu Road, Zhejiang, Hangzhou

Patentee after: Hangzhou sound Polytron Technologies Inc

Address before: 708 room 310012, Zhejiang small Enterprise Building, No. 553, Wensanlu Road, Zhejiang, Hangzhou

Patentee before: Hangzhou Usense Technology Co., Ltd.

CI01 Publication of corrected invention patent application

Correction item: Patentee|Address

Correct: Hangzhou friendship sound Polytron Technologies Inc|708 room 310012, Zhejiang small Enterprise Building, No. 553, Wensanlu Road, Zhejiang, Hangzhou

False: Hangzhou sound Polytron Technologies Inc|708 room 310012, Zhejiang small Enterprise Building, No. 553, Wensanlu Road, Zhejiang, Hangzhou

Number: 51

Volume: 31

ERR Gazette correction
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Video testing method based on deep packet inspection

Effective date of registration: 20160824

Granted publication date: 20150617

Pledgee: The Agricultural Bank of the West Branch of Hangzhou Chinese Limited by Share Ltd

Pledgor: Hangzhou friendship sound Polytron Technologies Inc

Registration number: 2016330000060

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200527

Granted publication date: 20150617

Pledgee: The Agricultural Bank of the West Branch of Hangzhou Chinese Limited by Share Ltd.

Pledgor: HANGZHOU UUSENSE TECHNOLOGY Co.,Ltd.

Registration number: 2016330000060