Nothing Special   »   [go: up one dir, main page]

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

Video testing method based on deep packet inspection Download PDF

Info

Publication number
CN103763551B
CN103763551B CN201410046716.5A CN201410046716A CN103763551B CN 103763551 B CN103763551 B CN 103763551B CN 201410046716 A CN201410046716 A CN 201410046716A CN 103763551 B CN103763551 B CN 103763551B
Authority
CN
China
Prior art keywords
video
data
time
buffer
flv
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
CN201410046716.5A
Other languages
Chinese (zh)
Other versions
CN103763551A (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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (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
Effective method of testing is not had at present based on true mobile device video.
In prior art to the video measurement of true mobile device mainly through automation tools control appliance displaying video, and changed the success rate, the buffering duration etc. that judge video playback by interface.But it is comparatively large that the shortcoming of this method is time delay error, and video playback is gone wrong also be difficult to judge.
Summary of the invention
The present invention is directed to the deficiency that prior art exists, propose one and carry out video playback on true mobile terminal, and obtain video display process by packet, 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 carrying out video playback on mobile terminals, and obtaining video display process by packet, comprising the following steps:
(1) video to be measured is play by automation tools control terminal;
(2) data communication bag is captured;
(3) whether comprise in this data communication bag
" 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, wherein " video/mp4 " video file type that is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", the video format that " video/f4f " is flash, the video format that " video/3gpp " uses for mobile phone, expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4) whether, by judging video data type, analyzing this video streaming data packet is discernible video flowing;
(5) test analysis is carried out to the video flowing identified.
Further, in step (4) to the concrete steps that video data type judges be wherein: 1) if front four bytes of this video packets of data as " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra " wherein a kind of, be then mp4 form, otherwise be FLV form;
2) size being each section to the judging characteristic of MPEGTS video is fixedly 204 bytes, and whether the first byte of each section is 0x47;
Further, in step (5), the process of test analysis carried out to video flowing specific as follows: 1), to all video streaming data packet analyze its source data packet address, whether destination address, source port, target port be identical, if identical, series of video stream packets is reconfigured a link, thus be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising removing the packet repeated, analyze each video streaming data packet time point, the delay skew of video, the time migration that receives;
3), calculate buffer time first time, player has the buffering of 5 seconds, with the time migration 5 seconds of video for benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, set up the Buffer Pool of a video playback on backstage, receive the video flowing that should cushion as the criterion starting to play, be generally 5 seconds;
5), at the playing process of backstage simulation player, deducted the video data in a second every one second, check whether the data of lower buffering are less than buffer value simultaneously, illustrate cushioned if the data of current broadcasting are less than buffer value;
6) if find once to cushion, record is carried out, 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 buffer 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, time delay error can be reduced, and video playback produced problem is judged, the video that all mobile terminals (mobile phone and PAD) plays accurately can be tested, the buffering number of times in video display process can be had a clear understanding of, buffer time, can be used for the play quality measuring video itself, can support to assess video display effect under different terminals, different network environments.
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
Elaborate to embodiments of the invention below, the present embodiment is implemented under premised on technical solution of the present invention, give 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) mobile terminal playing video to be measured is controlled by automation tools;
(2) data communication bag is captured;
(3) whether comprise in this data communication bag
" 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, wherein " video/mp4 " video file type that is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", the video format that " video/f4f " is flash, video content can be: h.264.TS, the video format that " video/3gpp " uses for mobile phone, Normal squeezing is higher frequently, expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4) whether, by judging video data type, analyzing this video streaming data packet is discernible video flowing;
(5) test analysis is carried out to the video flowing identified.
Further, in step (4) to the concrete steps that video data type judges be wherein: 1) if front four bytes of this video packets of data as " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra " wherein a kind of, be then mp4 form, otherwise be FLV form;
2) size being each section to the judging characteristic of MPEGTS video is fixedly 204 bytes, and whether the first byte of each section is 0x47;
Further, in step (5), the process of test analysis carried out to video flowing specific as follows: 1), to all video streaming data packet analyze its source data packet address, whether destination address, source port, target port be identical, if identical, series of video stream packets is reconfigured a link, thus be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising removing the packet repeated, analyze each video streaming data packet time point, the delay skew of video, the time migration that receives;
3), calculate buffer time first time, player has the buffering of 5 seconds, with the time migration 5 seconds of video for benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, set up the Buffer Pool of a video playback on backstage, receive the video flowing that should cushion as the criterion starting to play, be generally 5 seconds;
5), at the playing process of backstage simulation player, deducted the video data in a second every one second, check whether the data of lower buffering are less than buffer value simultaneously, illustrate cushioned if the data of current broadcasting are less than buffer value;
6) if find once to cushion, record is carried out, 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 buffer 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, judges video buffer time delay, number of times, tests video to be played, and judges video playback produced problem.
The content be not described in detail in specification of the present invention belongs to the known prior art of professional and technical personnel in the field.

Claims (4)

1., based on a video measurement method for deep-packet detection, for carrying out video playback on mobile terminals, and obtaining video display process by packet, comprising the following steps:
(1) mobile terminal playing video to be measured is controlled by automation tools;
(2) data communication bag is captured;
(3) whether comprise " video/mp4 " in this data communication bag, " 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, wherein " video/mp4 " video file type that is mp4, extension name: .mp4, " video/flv ", " video/x-flv ", " video/f4v ", the video format that " video/f4f " is flash, the video format that " video/3gpp " uses for mobile phone, its expansion .3 by name, " multipart/byte ", " application/octet-stream " is binary byte stream,
(4) whether by judging video data type, analyzing this video streaming data packet is discernible video flowing;
(5) test analysis is carried out to the video flowing identified, wherein the process of test analysis is carried out to video flowing specific as follows:
1), its source data packet address is analyzed to all video streaming data packet, whether destination address, source port, target port be identical, if identical, series of video stream packets is reconfigured a link, thus be spliced into a virtual TCP video flowing, and the time series of reconstructed video stream;
2), real-time analysis video flowing, comprising removing the packet repeated, analyze each video streaming data packet time point, the delay skew of video, the time migration that receives;
3), calculate buffer time first time, player has the buffering of 5 seconds, with the time migration 5 seconds of video for benchmark, calculate receive video cost in 5 seconds time as buffer time;
4), at the playing process of backstage simulation player, set up the Buffer Pool of a video playback on backstage, receive the video flowing that should cushion as the criterion starting to play;
5), at the playing process of backstage simulation player, deducted the video data in a second every one second, check whether the data of lower buffering are less than buffer value simultaneously, illustrate cushioned if the data of current broadcasting are less than buffer value;
6) if find once to cushion, record is carried out, 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 buffer delay.
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: in step (4) to the concrete steps that video data type judges be: 1) if front four bytes of this video packets of data as " jP ", " moov ", " mdat ", " pnot ", " udta ", " ftyp ", " afra " wherein a kind of, be then mp4 form, otherwise be FLV form;
2) size being 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, is characterized in that: this step 5) in buffer value be 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 CN103763551A (en) 2014-04-30
CN103763551B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109921937A (en) * 2019-03-15 2019-06-21 杭州当虹科技股份有限公司 The test macro and method that a kind of pair of stream protocol long-time task is verified automatically

Families Citing this family (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
CN106791805B (en) * 2016-12-06 2018-08-10 中国联合网络通信集团有限公司 A kind of method and device of video traffic assessment
CN109982068B (en) * 2017-12-28 2020-09-04 中国移动通信集团福建有限公司 Method, apparatus, device and medium for evaluating quality of synthesized video
CN109274963B (en) * 2018-11-08 2020-04-21 中影环球(北京)科技有限公司 Failure prediction method for cinema showing server

Citations (5)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026017B (en) * 2010-11-29 2012-08-08 福州瑞芯微电子有限公司 Efficient test method for video decoding
CN103458087A (en) * 2013-08-30 2013-12-18 华南理工大学 Remote mobile phone test experiencing method based on RTMP

Patent Citations (5)

* 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
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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109921937A (en) * 2019-03-15 2019-06-21 杭州当虹科技股份有限公司 The test macro and method that a kind of pair of stream protocol long-time task is verified automatically

Also Published As

Publication number Publication date
CN103763551A (en) 2014-04-30

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
CN104427402B (en) A kind of wireless network streaming media quality acquisition methods and system
US8897144B2 (en) Quality of user experience testing for video transmissions
US8942109B2 (en) Impairment simulation for network communication to enable voice quality degradation estimation
US20100211675A1 (en) Real-time network data analysing system
US20070081471A1 (en) Apparatus and method for analyzing packet data streams
CN104735473A (en) Video stream playing detection method and device
CN103974061B (en) A kind of method of testing and system play
CN102340789B (en) Dialing test terminal and dialing test method
CN106210708A (en) The detection method of a kind of picture delay and system
Alvarez et al. Field measurements of mobile services with Android smartphones
CN106952657B (en) Voice quality detection method and device
JP2019524029A (en) Video service quality evaluation method and apparatus
CN106535240B (en) Mobile APP centralized performance analysis method based on cloud platform
CN106330621A (en) Testing method for interchanger transmission signal performance and testing system
CN108235149A (en) A kind of method and device for optimizing video playing fluency
CN105515916A (en) Aging test monitoring method and device
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN102223262B (en) Evaluation platform and method of quality of experience of video based on QoS
CN107888909B (en) A kind of measurement method of the net switching system of IP video
CN108668167B (en) Video restoration method and device
US20140022923A1 (en) Test system and a test method for determining processing parameters of audio and/or video data
CN103684920B (en) Method for testing MAC address aging time of switch and network analyzer
CN106254098A (en) A kind of tune-up data acquisition method, system and embedded radio system

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 UUSENSE TECHNOLOGY CO.,LTD.

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

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

PC01 Cancellation of the registration of the contract for pledge of patent right