CN102006203B - Method for monitoring Flash network flow on webpage - Google Patents

Method for monitoring Flash network flow on webpage Download PDF

Info

Publication number
CN102006203B
CN102006203B CN2010105764441A CN201010576444A CN102006203B CN 102006203 B CN102006203 B CN 102006203B CN 2010105764441 A CN2010105764441 A CN 2010105764441A CN 201010576444 A CN201010576444 A CN 201010576444A CN 102006203 B CN102006203 B CN 102006203B
Authority
CN
China
Prior art keywords
flash
webpage
network
flow
variable
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.)
Expired - Fee Related
Application number
CN2010105764441A
Other languages
Chinese (zh)
Other versions
CN102006203A (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.)
Nantong Huinong Bio-organic Fertilizer Co.,Ltd.
Original Assignee
Suzhou Codyy Network 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 Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2010105764441A priority Critical patent/CN102006203B/en
Publication of CN102006203A publication Critical patent/CN102006203A/en
Application granted granted Critical
Publication of CN102006203B publication Critical patent/CN102006203B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention belongs to the technical field of networks and particularly relates to a method for monitoring Flash network flow on a webpage. The method comprises the following steps that: a source user opens the webpage; the webpage loads a Flash plugin, a Flash receiving user and a webpage related operating instruction, and calls an application programming interface (API) for network operation processing such as audio and video playing, audio and video recording, audio and video releasing, resource loading and the like to acquire information of network processing and analyze the information, wherein the processing comprises flow uploading, flow downloading and the like, and each processing is separately stored; periodic summaries are performed regularly, and webpage functions are immediately called and transmitted to summary results; and the webpage processes and displays the summary results. The method is realized on the basis of the webpage completely, data are directly acquired from information related to the network operation, flow monitoring data are accurate and timely, a third-party application system does not need supporting, so that the method is convenient, quick and efficient.

Description

Realize the method for Flash network flow monitoring on a kind of webpage
Technical field
The invention belongs to networking technology area, be specifically related to realize on a kind of webpage the method for Flash network flow monitoring.
Background technology
Statistical report according to the China Internet Network Information Center (CNNIC) issue shows that by in by the end of June, 2010, Chinese netizen's scale reaches 4.2 hundred million, has broken through 400,000,000 high pointes, and than increasing by 3,600 ten thousand people the end of the year 2009, Internet penetration rises to 31.8%.Above data are enough to show, the Internet is to the influence degree of people's work, life, study, and by this platform of the Internet, we can surf the web, and watch film and television, check information, reading, chat etc.Enjoying the Internet simultaneously easily, we are also ceaselessly consuming various resources, and as Internet resources, server resource, information resources etc., wherein, Internet resources have the greatest impact to the user's.The situation of China is more special, and most of netizens surf the Net by the ADSL dialing and the mode in fixed network broadband, and major part all is to use shared bandwidth and local area network (LAN).In this case, if network traffics increase, will influence other users' network speed, because of these processes all are to operate on the backstage, therefore, the user often can't learn the situation of the shared bandwidth resources of current certain function of local computer, and whether certain function that also can't learn own internet usage can exert an influence and produce great influence other users.In the present stage computer application, there are a lot of softwares can realize the monitoring of network traffics, as DU Meter, QQ doctor, QQ computer house keeper, 360 security guards etc., but these softwares all need to download and install, can make amendment to user's computer like this, read operation and some controls of registration are installed, bring serious potential safety hazard to the user.In addition, these softwares can only carry out traffic monitoring to single software, usually, having a plurality of modules in the single software operates network, if can't monitor to the module in the single software, equally also the concrete condition that network traffics expend can't be learnt, the problem that exists in the network flow monitoring can't be solved up hill and dale.
Realize the method for Flash network flow monitoring on a kind of webpage, be intended to solve the problem that exists in the present stage realization network monitoring, this technology need not to download any control, need not the support of third party's application framework and application system, fully just can realize specific monitoring to the network traffics of each the Flash module in the webpage based on webpage, easy to operate, quick, reaction is a kind of popular technology of truly can popularizing in time.And realize that principle is simple, can embed easily in the various internet, applications.
Summary of the invention
The objective of the invention is: the method that realizes the Flash network flow monitoring on a kind of webpage is provided.
In order to achieve the above object, technical scheme of the present invention is: realize the method for Flash network flow monitoring on a kind of webpage, may further comprise the steps:
1) source user is opened webpage, webpage loads the Flash plug-in unit automatically, after Flash loads successfully, calls the setInterval function, the turn-on flow rate monitoring regularly gathers, the turn-on flow rate monitoring regularly gathers, and wherein, described function is represented with variable netInterval, being used for that network traffics are carried out stage regularly gathers, wherein, can dispose or be provided with the blanking time of netInterval, Flash global traffic record array carried out circle statistics analyze aggregation process;
2) user's operation web page, Flash is initiated the network operation instruction, Flash calls API and carries out the network processes operation, wherein, described network processes operation refers to the audio frequency and video broadcast, audio frequency and video are recorded, the audio frequency and video issue, resource loads, the example of Flash initialization this moment network operation related object, described network operation related object refers to NetConnection, NetStream, wherein, NetConnection represents with variable nc, NetStream represents with variable ns, after NetStream is initialised success, by calling the info attribute of ns, obtain the NetStreamInfo object of ns institute storage networking flow, wherein, NetStreamInfo represents with variable nsInfo, by obtaining the currentBytesPerSecond attribute of nsInfo, can obtain the byte number of the Network Transmission that ns current this second taken place, by judging the generation source of ns,, just be designated downloading flow if the source is to be produced by the mode of going into, if the source is what to be produced by the mode that goes out, just be designated and upload flow, and after this ns identified, with upload relevant with ns, download message deposits in the Flash global traffic record array;
3) after the flow information tabulate statistics, Flash invoking web page JavaScript flow immediately handles function, import into gather upload data such as flow, downloading flow, webpage processs and displays importing data into, promptly realizes fully the Flash network flow monitoring based on webpage.
In the technique scheme, step 1) comprises following process:
Source user is opened webpage, webpage loads the Flash plug-in unit automatically, after Flash loads successfully, call setInterval function (netInterval represents with variable), be used for that network traffics are carried out regularly stage and gather that (can dispose or be provided with the blanking time of netInterval, be defaulted as for 1 second), promptly Flash global traffic record array is carried out circle statistics and analyze aggregation process.
In the technique scheme, step 2) comprise following process:
2a) (these instructions comprise the function call that the user registers by ExternalInterface.addCallback JavaScript function call Flash by webpage whenever Flash receives new dependent instruction, the operational order that Flash oneself initiates, other network connects the operational order of initiation etc.) when carrying out network operation;
2b) Flash calls that API carries out that audio frequency and video are play, audio frequency and video are recorded, audio frequency and video issues, the network operation processing is carried out in resource loading etc., this moment Flash initialization NetConnection (nc represents with variable), NetStream network operation related objects such as (ns represent with variable) example, after NetStream is initialised success, by calling the info attribute of ns, obtain NetStreamInfo (nsInfo represents with the variable) object of ns institute storage networking flow;
2c) by obtaining the currentBytesPerSecond attribute of nsInfo, can obtain the byte number of the Network Transmission that ns current this second taken place, by judging the generation source of ns, if the source is by broadcast, the mode that loading etc. is gone into produces, just be designated downloading flow, if the source is by recording, the mode that issue etc. go out produces, just be designated and upload flow, and after this ns identified, with upload relevant with ns, download message deposits in the Flash global traffic record array, if there has been the flow information of this ns before, then this ns data on flows information in the Flash global traffic record array is upgraded;
2d) because netInterval periodically analyzes aggregation process to the Flash global traffic, so when the global traffic array has change, netInterval can gather out immediately, and handles function by ExternalInterface.call function call webpage JavaScript flow.
In the technique scheme, step 3) comprises following process:
Webpage JavaScript flow is handled function and is received after the network traffics combined data handles, and on webpage network traffic information is operated or is shown, promptly realizes the Flash network flow monitoring on the webpage.
The present invention compared with prior art has the following advantages:
1) realizes based on webpage fully, do not need to download any control, do not need third party's application system to support.
2) can monitor and add up the single information relevant among the single Flash of webpage, the single Flash, can fundamentally understand the network traffic information of the Flash in the current web page, in time, accurately, in detail with network traffics.
3) realize that principle is simple, fully based on webpage, do not need to download any plug-in unit, green, environmental protection can be widely used in the internet, applications such as Web conference, long-distance education.
Description of drawings
Figure of description is a detail flowchart of the present invention.
Embodiment
Realize the method for Flash network flow monitoring on a kind of webpage, may further comprise the steps:
1) source user is opened webpage, and webpage loads the Flash plug-in unit, and the turn-on flow rate monitoring regularly gathers;
2) user's operation web page, Flash is initiated the network operation instruction, Flash calls that API carries out that audio frequency and video are play, audio frequency and video are recorded, audio frequency and video issues, resource loading etc. carried out network processes and operated, write down the flow information of each new network processes operation simultaneously, recorded information comprises flow information, the downloading flow information etc. uploaded, and regularly the flow information of all records is carried out the time interval tabulate statistics of timing;
3) after the flow information tabulate statistics, Flash is the invoking web page function immediately, import into gather upload data such as flow, downloading flow, webpage processs and displays importing data into, promptly realizes fully the Flash network flow monitoring based on webpage.
Further describe method of the present invention below:
Referring to Figure of description, source user is opened webpage, webpage loads the Flash plug-in unit automatically, after Flash loads successfully, call setInterval function (netInterval represents with variable), be used for that network traffics are carried out stage regularly and gather (can dispose or be provided with the blanking time of netInterval, was defaulted as for 1 second), promptly Flash global traffic record array is carried out circle statistics and analyze aggregation process; (these instructions comprise the function call that the user registers by ExternalInterface.addCallback JavaScript function call Flash by webpage whenever Flash accepts new dependent instruction, the operational order that Flash oneself initiates, other network connects the operational order of initiation etc.) when carrying out network operation; Flash calls that API carries out that audio frequency and video are play, audio frequency and video are recorded, audio frequency and video issues, resource loading etc. carried out the network operation processing, the example of Flash meeting this moment initialization NetConnection (nc represents with variable), NetStream network operation related objects such as (ns represent with variable), after NetStream is initialised success, by calling the info attribute of ns, obtain NetStreamInfo (nsInfo represents with the variable) object of ns institute storage networking flow; By obtaining the currentBytesPerSecond attribute of nsInfo, can obtain the byte number of the Network Transmission that current this second of ns take place, by judging the generation source of ns, if the source is by broadcast, the mode that loading etc. is gone into produces, just be designated downloading flow, if the source is by recording, the mode that issue etc. go out produces, just be designated and upload flow, and after this ns identified, with upload relevant with ns, download message deposits in the Flash global traffic record array, if there has been the flow information of this ns before, then this ns data on flows information in the Flash global traffic record array is upgraded; Because netInterval periodically analyzes aggregation process to the Flash global traffic, so when the global traffic array has change, netInterval can gather out immediately, and handles function by ExternalInterface.call function call webpage JavaScript flow; Webpage JavaScript flow is handled function and is received after the network traffics combined data handles, and on webpage network traffic information is operated or is shown, promptly realizes the Flash network flow monitoring on the webpage.

Claims (4)

1. realize the method for Flash network flow monitoring on the webpage, it is characterized in that, may further comprise the steps:
1) source user is opened webpage, webpage loads the Flash plug-in unit automatically, after the Flash plug-in unit loads successfully, call the setInterval function, the turn-on flow rate monitoring regularly gathers, wherein, described function is represented with variable netInterval, is used for that network traffics are carried out stage regularly and gathers, wherein, can dispose or be provided with the blanking time of netInterval, Flash global traffic record array carried out circle statistics analyze aggregation process;
2) user's operation web page, Flash is initiated the network operation instruction, Flash calls API and carries out the network processes operation, wherein, described network processes operation refers to the audio frequency and video broadcast, audio frequency and video are recorded, the audio frequency and video issue, resource loads, the example of Flash initialization this moment network operation related object, described network operation related object refers to NetConnection, NetStream, wherein, NetConnection represents with variable nc, NetStream represents with variable ns, after NetStream is initialised success, by calling the info attribute of ns, obtain the NetStreamInfo object of ns institute storage networking flow, wherein, NetStreamInfo represents with variable nsInfo, by obtaining the currentBytesPerSecond attribute of nsInfo, can obtain the byte number of the Network Transmission that ns current this second taken place, by judging the generation source of ns,, just be designated downloading flow if the source is to be produced by the mode of going into, if the source is what to be produced by the mode that goes out, just be designated and upload flow, and after this ns identified, with upload relevant with ns, download message deposits in the Flash global traffic record array;
3) after the flow information tabulate statistics, Flash invoking web page JavaScript flow immediately handles function, import into gather upload flow, downloading flow data, webpage processs and displays importing data into, realizes fully the Flash network flow monitoring based on webpage.
2. realize the method for Flash network flow monitoring on a kind of webpage as claimed in claim 1, it is characterized in that wherein step 1) comprises following process:
Source user is opened webpage, webpage loads the Flash plug-in unit automatically, after Flash loads successfully, call the setInterval function, described function is represented with variable netInterval, is used for that network traffics are carried out stage regularly and gathers, wherein, can dispose or be provided with the blanking time of netInterval, was defaulted as for 1 second, Flash global traffic record array carried out circle statistics analyze aggregation process.
3. realize the method for Flash network flow monitoring on a kind of webpage as claimed in claim 1, it is characterized in that, wherein step 2) comprise following process:
2a) when the new dependent instruction of Flash reception carries out network operation, wherein, these instructions comprise the function call that the user registers by ExternalInterface.addCallback JavaScript function call Flash by webpage, the operational order that Flash oneself initiates, other network connects the operational order of initiating;
2b) Flash calls API and carries out network operation and handle, wherein, described network processes operation refers to the audio frequency and video broadcast, audio frequency and video are recorded, the audio frequency and video issue, resource loads, the example of Flash initialization this moment network operation related object, described network operation related object refers to NetConnection, NetStream, wherein, NetConnection represents with variable nc, NetStream represents with variable ns, after NetStream is initialised success,, obtain the NetStreamInfo object of ns institute storage networking flow by calling the info attribute of ns, wherein, NetStreamInfo represents with variable nsInfo;
2c) by obtaining the currentBytesPerSecond attribute of nsInfo, can obtain the byte number of the Network Transmission that ns current this second taken place, by judging the generation source of ns, if the source is what to be produced by the mode of going into, just be designated downloading flow, if the source is what to be produced by the mode that goes out, just be designated and upload flow, wherein, the mode of going into refers to play, load, the mode that goes out refers to record, issue, and after this ns identified, with upload relevant with ns, download message deposits in the Flash global traffic record array, if there has been the flow information of this ns before, then this ns data on flows information in the Flash global traffic record array is upgraded;
2d) because netInterval periodically analyzes aggregation process to the Flash global traffic, so when the global traffic array has change, netInterval can gather out immediately, and handles function by ExternalInterface.call function call webpage JavaScript flow.
4. realize the method for Flash network flow monitoring on a kind of webpage as claimed in claim 1, it is characterized in that wherein step 3) comprises following process:
Webpage JavaScript flow is handled function and is received after the network traffics combined data handles, and on webpage network traffic information is operated or is shown, realizes the Flash network flow monitoring on the webpage.
CN2010105764441A 2010-12-07 2010-12-07 Method for monitoring Flash network flow on webpage Expired - Fee Related CN102006203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105764441A CN102006203B (en) 2010-12-07 2010-12-07 Method for monitoring Flash network flow on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105764441A CN102006203B (en) 2010-12-07 2010-12-07 Method for monitoring Flash network flow on webpage

Publications (2)

Publication Number Publication Date
CN102006203A CN102006203A (en) 2011-04-06
CN102006203B true CN102006203B (en) 2011-10-05

Family

ID=43813295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105764441A Expired - Fee Related CN102006203B (en) 2010-12-07 2010-12-07 Method for monitoring Flash network flow on webpage

Country Status (1)

Country Link
CN (1) CN102006203B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136954A (en) * 2011-04-26 2011-07-27 苏州阔地网络科技有限公司 Method and system for monitoring network flow based on webpage realization
CN102164100A (en) * 2011-04-26 2011-08-24 苏州阔地网络科技有限公司 Webpage-based Method and system for realizing secure interaction of group information
CN102164143A (en) * 2011-04-26 2011-08-24 苏州阔地网络科技有限公司 Method and system for realizing timing safety synchronization based on webpage
CN102185736A (en) * 2011-04-26 2011-09-14 苏州阔地网络科技有限公司 Webpage-based multi-Flash network traffic monitoring method and system
CN102164146A (en) * 2011-04-27 2011-08-24 苏州阔地网络科技有限公司 Method and system for automatically deleting downloaded documents from server
CN102137116A (en) * 2011-04-27 2011-07-27 苏州阔地网络科技有限公司 Method and system for multipath radio and video communication based on webpage
CN102185848A (en) * 2011-04-27 2011-09-14 苏州阔地网络科技有限公司 Webpage-based audio and video communication method and system
CN103945233B (en) * 2013-01-22 2017-12-15 华为技术有限公司 Flow media playing method and mobile terminal
CN111640049A (en) * 2020-05-30 2020-09-08 计雄昆 Student data traceability-based information analysis system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881899A (en) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 Network flow monitoring system and method
CN101350781A (en) * 2008-07-31 2009-01-21 成都市华为赛门铁克科技有限公司 Method, equipment and system for monitoring flux
CN101465763A (en) * 2008-12-30 2009-06-24 上海地面通信息网络有限公司 Method for monitoring and analyzing user terminal network appliance flux

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030048296A1 (en) * 2001-09-12 2003-03-13 Paul Cullen Method & apparatus for enhancing the graphical user interface presented by an application
US7725574B2 (en) * 2006-01-23 2010-05-25 International Business Machines Corporation Web browser-based programming language error determination and reporting
CN101231590A (en) * 2008-02-02 2008-07-30 山东浪潮齐鲁软件产业股份有限公司 IVR flow editor analytic model operated base on script and COM component
MY150343A (en) * 2009-01-22 2013-12-31 Mimos Berhad A sensor management system
CN101634947A (en) * 2009-08-31 2010-01-27 腾讯科技(深圳)有限公司 IE control using local resources of client and application method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881899A (en) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 Network flow monitoring system and method
CN101350781A (en) * 2008-07-31 2009-01-21 成都市华为赛门铁克科技有限公司 Method, equipment and system for monitoring flux
CN101465763A (en) * 2008-12-30 2009-06-24 上海地面通信息网络有限公司 Method for monitoring and analyzing user terminal network appliance flux

Also Published As

Publication number Publication date
CN102006203A (en) 2011-04-06

Similar Documents

Publication Publication Date Title
CN102006203B (en) Method for monitoring Flash network flow on webpage
US11019119B2 (en) Web-based live broadcast
US20210352090A1 (en) Network security monitoring method, network security monitoring device, and system
WO2020094034A1 (en) Wireless network connection method for terminal
US10142482B2 (en) Method and apparatus for providing ambient social telephony
US20120317151A1 (en) Model-Based Method for Managing Information Derived From Network Traffic
CN103188119A (en) Confidence intervals for key performance indicators in communication networks
US20200275145A1 (en) Methods and apparatus to monitor a media presentation
CN104348811A (en) Method and device for detecting attack of DDoS (distributed denial of service)
US11533299B2 (en) Classification of encrypted internet traffic
CN104113727A (en) Monitoring video playing method, device and system
CN105807651A (en) Remote terminal controlling method, apparatus and system
WO2013039834A2 (en) A method for segmenting users of mobile internet
CN112331202B (en) Voice screen projection method and device, electronic equipment and computer readable storage medium
CN105898620A (en) Multimedia real-time live broadcast method and device
CN107948669A (en) Based on CDN fast video production methods
CN103974057A (en) Video quality user experience value evaluation method, device and system
WO2023077813A1 (en) Method and apparatus for determining fake traffic in live broadcast room
CN104834649B (en) It can realize the smart machine and multiple-equipment team working method of more equipment collaborations
CN102136954A (en) Method and system for monitoring network flow based on webpage realization
CN103179288B (en) Incoming information display method and system, come display information pushing equipment and terminal
CN103647940A (en) Intelligent monitoring mobile phone, remote video monitoring system and monitoring method thereof
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN102088479B (en) Method for realizing multi-Flash network flow monitoring on webpage
CN104113509A (en) Media file push method and server

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: 215121 Jiangsu Province, Suzhou City Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee after: Kuo Di education and science company limited

Address before: 215121 Jiangsu Province, Suzhou City Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee before: Suzhou Kuodi Network Technology Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: 226600 Industrial Concentration Zone of Libao Town, Haian City, Nantong City, Jiangsu Province

Patentee after: Nantong Huinong Bio-organic Fertilizer Co.,Ltd.

Address before: 215121 Jiangsu Province, Suzhou City Industrial Park No. 666 Feng Ting Avenue Weiting Intelligent Industrial Park Building 8

Patentee before: CODYY EDUCATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111005

Termination date: 20201207

CF01 Termination of patent right due to non-payment of annual fee