CN104836698B - The method and apparatus of monitoring network environment - Google Patents

The method and apparatus of monitoring network environment Download PDF

Info

Publication number
CN104836698B
CN104836698B CN201410235575.1A CN201410235575A CN104836698B CN 104836698 B CN104836698 B CN 104836698B CN 201410235575 A CN201410235575 A CN 201410235575A CN 104836698 B CN104836698 B CN 104836698B
Authority
CN
China
Prior art keywords
network
flow
discharge record
flows
data
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
CN201410235575.1A
Other languages
Chinese (zh)
Other versions
CN104836698A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410235575.1A priority Critical patent/CN104836698B/en
Publication of CN104836698A publication Critical patent/CN104836698A/en
Application granted granted Critical
Publication of CN104836698B publication Critical patent/CN104836698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and apparatus of monitoring network environment, belong to the communications field.The method includes:In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition data on flows, the data on flows includes at least flow or network speed;Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and data on flows;This discharge record and a upper discharge record are compared, if network identity indicates that currently used network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network environment is abnormal.Described device includes:Acquisition module establishes module and the first determining module.The present invention is based on network identities and flow monitoring comprehensive descision network environment, improve the accuracy rate of network environment judgement, avoid the single dependence to network identity, prevent from unnecessary interests being brought to lose to user due to judging by accident.

Description

The method and apparatus of monitoring network environment
Technical field
The present invention relates to the communications field, more particularly to a kind of method and apparatus of monitoring network environment.
Background technology
At present, the Online Video application in iPhone equipment all has the function of network environment judgement.The usual base of the function When the network state label Network flag and access WiFi that the network module interface Reachability of system is provided Whether the LAN IP that is assigned to effectively judges network environment.
But above-mentioned Online Video applies the boundary time switched in network environment to be susceptible to erroneous judgement, thus may Undesirable campus network is brought to user, influences user experience.For example, Online Video application is at a time by WiFi network 3G network is switched to, still, the result that network environment judges still appears as the status indication of WiFi network, so as to cause In the case of user is unwitting, flow hereafter brings loss all in accordance with 3G network charging to user.
Invention content
In view of this, an embodiment of the present invention provides a kind of method and apparatus of monitoring network environment, to improve network rings The accuracy rate that border judges.The technical solution is as follows:
On the one hand, a kind of method of monitoring network environment is provided, including:
In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition flow number According to the data on flows includes at least flow or network speed;
Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and stream Measure data;
This discharge record and a upper discharge record are compared, if network identity indicates currently used network not Become but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network environment is different Often.
On the other hand, a kind of device of monitoring network environment is provided, including:
Acquisition module, in locally applied operational process, obtaining network identity in real time and starting real-time network prison It surveys and obtains data on flows, the data on flows includes at least flow or network speed;
Module is established, for periodically establishing discharge record according to the event in the application, the discharge record includes institute State network identity and data on flows;
First determining module, for this discharge record and a upper discharge record to be compared, if network identity refers to Show that currently used network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, Then determine that network environment is abnormal.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:It is real in locally applied operational process When obtain network identity and start real-time network monitoring obtain data on flows, the data on flows include at least flow or network speed; Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates that currently used network is unchanged but flow Statistics indicate that changes in flow rate or the network speed variation of other networks reach preset condition, it is determined that network environment is abnormal;Based on net Network marks and flow monitoring comprehensive descision network environment, even if in the case where erroneous judgement occurs in network identity, can also combine stream Amount accurate judgement is made to network environment, improve network environment judgement accuracy rate, avoid to network identity it is single according to Rely, prevent from unnecessary interests being brought to lose to user due to judging by accident.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the method flow diagram for the monitoring network environment that one embodiment of the invention provides;
Fig. 2 is the method flow diagram for the monitoring network environment that another embodiment of the present invention provides;
Fig. 3 is the method flow diagram for the monitoring network environment that another embodiment of the present invention provides;
Fig. 4 is a kind of structure drawing of device for monitoring network environment that another embodiment of the present invention provides;
Fig. 5 is the structure drawing of device for another monitoring network environment that another embodiment of the present invention provides;
Fig. 6 is the terminal structure figure that another embodiment of the present invention provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Referring to Fig. 1, one embodiment of the invention provides a kind of method of monitoring network environment, including:
101:In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition flow Data, the data on flows include at least flow or network speed.
In the present embodiment, the application can be any one locally-installed application, typically refer to that network flow can be used Application, such as Online Video application, the present embodiment is not specifically limited this.
The network identity refers to the Network flag that the network module interface Reachability of system is provided, and is used for Currently used network is marked, if network identity is WiFi, then shows that currently used is WiFi network or network identity For 3G, then show that currently used is 3G network etc..
The network monitor refers to be monitored flow, specifically, can by system provide traffic interface come into Row flow monitoring, the present embodiment do not do this excessive explanation.Much information can be included by monitoring obtained data on flows, such as be recorded ID, type of service, event title, event start time, WiFi flows, 3G flows, speed of download etc., the present embodiment to this not It is specifically limited.
102:Discharge record is periodically established according to the event in the application, the discharge record includes the network identity And data on flows.
The event in application that the present embodiment is related to can be any one event, including but not limited to:Online viewing one A video, one webpage of online browse, video file, a net are broadcast in one file of download, upload one file, side below offline Network environment switches to 3G by WiFi, network environment switches to WiFi etc. by 3G.
The regular foundation can be established according to the preassigned period, which can set as needed It puts, the present embodiment does not limit concrete numerical value.
The discharge record of the foundation can be stored in a statistical form, by Record ID come each flow note of unique identification Record.The statistical form is stored in local device, can periodically be updated.
103:This discharge record and a upper discharge record are compared, if network identity indicates currently used net Network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network environment It is abnormal.
In the present embodiment, the discharge record is a plurality of, this flow refers to any bar wherein in addition to first.Institute State that compare this discharge record and a upper discharge record be that cycle performs, that is to say, that arbitrary in discharge record Two adjacent discharge records can all compare, to grasp change of network environment situation in time.
It further, can also be abnormal in locally output network environment after network environment exception is determined in the present embodiment Warning information.The warning information is for prompting user's current network conditions abnormal, and there are many modes, including but not limited to: Text message prompting, audible alarm etc., the present embodiment is not specifically limited this.
It is optionally, described to compare this discharge record and a upper discharge record in the present embodiment, if network mark Note indicates that currently used network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset Condition, it is determined that network environment is abnormal, can include:
In the case that network identity in this discharge record and a upper discharge record is first network, if the The flow growth of two networks reaches preset flow threshold, it is determined that network environment is abnormal;Alternatively,
In the case that network identity in this discharge record and a upper discharge record is first network, if the The network speed growth of two networks reaches preset threshold speed, it is determined that network environment is abnormal.
In the present embodiment, further, if the flow growth of second network reaches preset flow threshold, really Determine network environment exception, can include:
This is obtained using current type of service, if to be reached for the type of service preset for the flow growth of the second network Flow threshold, it is determined that network environment is abnormal.
In the present embodiment, optionally, the method further includes:
If network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that Network environment is normal;Alternatively,
If network identity indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or net Speed, which increases, reaches preset condition, then the prompt message that output flow increases or network speed increases.
In addition, it is noted that if this discharge record is changed with the network identity in a upper discharge record, Then it is considered normal network switching, belongs to critical condition, it is therefore not necessary to counts changes in flow rate situation.Moreover, usually network is cut The time changed is very of short duration, such as network switching is completed within 1 minute, even if the flow of network or network speed have within this 1 minute Increase, then generally also within the scope of it can tolerate.Therefore, it is considered herein that without in the network switching so of short duration time Interior statistics flow or the situation of network speed variation, in various embodiments also just not to this discharge record and a upper discharge record In network identity situation about changing do excessive explanation.
It is optionally, described in locally applied operational process in the present embodiment, network identity is obtained in real time and starts reality When network monitor obtain data on flows, can include:
In locally applied operational process, network identity is obtained in real time, and in the note for receiving current business transmission During volume notice, start real-time network monitoring and obtain data on flows.
In the present embodiment, optionally, the event according in the application periodically establishes discharge record, can include:
When event occurs in the application or the specified period reaches, discharge record is established.
In the present embodiment, optionally, the above method can also include:
After network environment exception is determined, suspend the current business of the application.
The above method provided in this embodiment in locally applied operational process, obtains network identity and starts in real time Real-time network monitoring obtains data on flows, and the data on flows includes at least flow or network speed;According to the event in the application Discharge record is periodically established, the discharge record includes the network identity and data on flows;By this discharge record and upper one Discharge record compares, if network identity indicates that currently used network is unchanged but data on flows shows the stream of other networks Amount variation or network speed variation reach preset condition, it is determined that network environment is abnormal;It is integrated based on network identity and flow monitoring Judge network environment, even if in the case where erroneous judgement occurs in network identity, network environment can also be made accurately with reference to flow Judgement, improve network environment judgement accuracy rate, avoid the single dependence to network identity, prevent due to judge by accident to user Unnecessary interests is brought to lose.
Referring to Fig. 2, another embodiment of the present invention provides a kind of method of monitoring network environment, including:
201:In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition flow Data, the data on flows include at least flow or network speed.
This step may comprise steps of:
In locally applied operational process, network identity is obtained in real time, and in the note for receiving current business transmission During volume notice, start real-time network monitoring and obtain data on flows.
202:Discharge record is periodically established according to the event in the application, the discharge record includes the network identity And data on flows.
This step can specifically include:
When event occurs in the application or the specified period reaches, discharge record is established.
For example, a discharge record is established when network environment switches to 3G by WiFi, when downloading a file offline A discharge record is established, during offline download whenever reaching in the specified period, also establishes discharge record etc. Deng.
203:In the case that network identity in this discharge record and a upper discharge record is first network, such as The flow growth of the second network of fruit reaches preset flow threshold or if the network speed growth of the second network reaches preset speed Spend threshold value, it is determined that network environment is abnormal.
In the present embodiment, the first network can be WiFi network, and second network can be 3G network;Alternatively, The first network is 3G network, and second network is WiFi network etc., and the present embodiment is not specifically limited this.
For local device, the network that can access can have multiple, i.e., there may be at the same moment multiple Network has access to, and still, local device can only be accessed when accessing network using one of network.
In the present embodiment, the flow and network speed of each network can be obtained by network monitor.For any one network, The flow of the flow of the network in this discharge record and the network in a upper discharge record is subtracted each other, it is possible to learn the net The flow of network whether increase and increase how much.The flow threshold can be arranged as required to, and could be provided as a unification Flow threshold, alternatively, different flow threshold etc. can also respectively be set according to type of service, the present embodiment does not do this It is specific to limit.Similarly, it for any one network, will be somebody's turn to do in the network speed of the network in this discharge record and a upper discharge record The network speed of network subtracts each other, it is possible to learn the network network speed whether increase and increase how much.The threshold speed can root According to needing to set, the present embodiment does not limit concrete numerical value.
In the present embodiment, the flow growth of the second network reaches preset flow threshold or the network speed of the second network increases Reach preset threshold speed, it may be possible to which the scene judged by accident occurs in network identity.For example, network identity is WiFi network, and 3G The flow growth of network has reached preset flow threshold, hence, it can be determined that local device was being currently used is 3G nets WiFi network indicated by network rather than network identity will be regarded as network environment exception in this case.
Wherein, if the flow growth of second network reaches preset flow threshold, it is determined that network environment is abnormal, It can include:
This is obtained using current type of service, if to be reached for the type of service preset for the flow growth of the second network Flow threshold, it is determined that network environment is abnormal.
In the present embodiment, various flow rate threshold value can be set, correspond to different types of service respectively.For example, for lower published article Part business sets first flow threshold value, and second flow threshold value is set for browsing web traffic, for online viewing video traffic setting Third flow threshold etc., the present embodiment is not specifically limited this.
In addition, it is noted that when setting flow threshold, it can be combined with operator and the charging regulation of flow come Setting, for example, operator to charge on traffic, then can set flow threshold as 1MB, when flow is grown beyond according to 1 yuan/MB Network environment exception is thought during 1MB.It is of course also possible to a corresponding stream is calculated with preset formula according to the charging regulation Threshold value etc. is measured, the present embodiment is not specifically limited this.
In the present embodiment, optionally, the method can also include:
If network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that Network environment is normal;Alternatively,
If network identity indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or net Speed, which increases, reaches preset condition, then the prompt message that output flow increases or network speed increases.
In the present embodiment, optionally, after network environment exception is determined, can also be abnormal in locally output network environment Warning information.
In the present embodiment, optionally, the above method can also include:
After network environment exception is determined, suspend the current business of the application.
The above method provided in this embodiment in locally applied operational process, obtains network identity and starts in real time Real-time network monitoring obtains data on flows, and the data on flows includes at least flow or network speed;According to the event in the application Discharge record is periodically established, the discharge record includes the network identity and data on flows;In this discharge record and upper one In the case that network identity in discharge record is first network, if the flow of the second network grows beyond preset stream Measure threshold value or if network speed grows beyond preset threshold speed, it is determined that network environment is abnormal;Locally exporting network rings The warning information of border exception;Based on network identity and flow monitoring comprehensive descision network environment, even if being missed in network identity In the case of sentencing, also accurate judgement can be made to network environment with reference to flow, improve the accuracy rate of network environment judgement, The single dependence to network identity is avoided, prevents from unnecessary interests being brought to lose to user due to judging by accident.
Referring to Fig. 3, another embodiment of the present invention provides a kind of method of monitoring network environment, including:
301:In locally applied operational process, network identity is obtained in real time, and send receiving current business Registration notification when, start real-time network monitoring obtain data on flows, the data on flows include at least flow or network speed.
In the present embodiment, if send registration notification and be configurable, can be configured as needed, noted when being configured to send During volume notice, which is the trigger condition of network monitor, only in the registration notification for receiving current business transmission Start real-time network monitoring.
For example, current business is online viewing video, after the registration notification for receiving business transmission, start real-time network Monitoring obtains data on flows during online viewing video.
302:Discharge record is periodically established according to the event in the application, the discharge record includes the network identity And data on flows.
This step can specifically include:
When event occurs in the application or the specified period reaches, discharge record is established.
303:This discharge record and a upper discharge record are compared, if network identity indicates currently used net Network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, then performs 304;If Network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, then performs 305;If network Label indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or network speed growth reaches preset Condition then performs 306.
304:It determines network environment exception, in the warning information of locally output network environment exception, suspends working as the application Preceding business, flow terminate.
Wherein, if network identity indicates that currently used network is unchanged but data on flows shows that the flow of other networks becomes Change or network speed variation reaches preset condition, it is determined that network environment is abnormal, can include:
In the case that network identity in this discharge record and a upper discharge record is first network, if the The flow growth of two networks reaches preset flow threshold or if the network speed growth of the second network reaches preset speed threshold Value, it is determined that network environment is abnormal.
Wherein, if the flow growth of second network reaches preset flow threshold, it is determined that network environment is abnormal, Including:
This is obtained using current type of service, if to be reached for the type of service preset for the flow growth of the second network Flow threshold, it is determined that network environment is abnormal.
In the present embodiment, the current business for suspending the application is allowed for due to network environment exception, may be caused current The flow that business is brought brings loss to user, therefore, suspends current business, can ask the user whether to continue current business, Ensure that user decides whether to continue current business in the case where knowing.
For example, locally applied current business is one file of download offline, then after network environment exception is determined, under pause This document is carried, Pop-up message asks the user whether to continue to download, and continues to download this document after the agreement for obtaining user, if with Family disagrees, and terminates the downloading task.
305:Determine that network environment is normal, flow terminates.
306:The prompt message that output flow increases or network speed increases, flow terminate.
For example, in the case that the network identity in this discharge record and a upper discharge record is WiFi, if The flow or network speed of WiFi network are unchanged, and the flow or network speed of 3G network are also unchanged, it is determined that network environment is normal;Alternatively, such as The flow growth of fruit 3G network reaches preset flow threshold, it is determined that network environment is abnormal, outputting alarm;If alternatively, The flow of WiFi network increases or network speed growth reaches preset condition, then exports the prompting that WiFi flows increase or network speed increases Information.
For another example, in the case that the network identity in this discharge record and a upper discharge record is 3G, if 3G The flow or network speed of network are unchanged, and the flow or network speed of WiFi network are also unchanged, it is determined that network environment is normal;If alternatively, The flow of 3G network increases or network speed growth reaches preset condition, then exports the prompting letter that 3G flows increase or network speed increases Breath;Alternatively, if the flow of WiFi network increases or network speed growth reaches preset condition, it is determined that network environment is abnormal, defeated Go out alarm.
The above method provided in this embodiment in locally applied operational process, obtains network identity in real time, and When receiving the registration notification of current business transmission, start real-time network monitoring and obtain data on flows, which at least wraps Include flow or network speed;Discharge record is periodically established according to the event in the application, the discharge record includes the network mark Note and data on flows;This discharge record and a upper discharge record are compared, if network identity instruction is currently used Network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network rings Border is abnormal, in the warning information of locally output network environment exception, suspends the current business of the application;If network identity indicates Currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that network environment is normal;If network mark Note indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or network speed growth reaches preset item Part, the then prompt message that output flow increases or network speed increases;Based on network identity and flow monitoring comprehensive descision network environment, Even if in the case where erroneous judgement occurs in network identity, also accurate judgement can be made to network environment with reference to flow, improved The accuracy rate that network environment judges, avoids the single dependence to network identity, prevent due to judge by accident bring to user it is unnecessary Interests are lost.
Referring to Fig. 4, another embodiment of the present invention provides a kind of device of monitoring network environment, including:
Acquisition module 401, in locally applied operational process, obtaining network identity in real time and starting real-time network Monitoring obtains data on flows, and the data on flows includes at least flow or network speed;
Module 402 is established, for periodically establishing discharge record according to the event in the application, the discharge record includes The network identity and data on flows;
First determining module 403, for this discharge record and a upper discharge record to be compared, if network identity Indicate that currently used network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset item Part, it is determined that network environment is abnormal.
Referring to Fig. 5, in the present embodiment, optionally, the first determining module 403 can include:
Flow determination unit 403a is for the network identity in this article of discharge record and upper one article of discharge record In the case of one network, if the flow growth of the second network reaches preset flow threshold, it is determined that network environment is abnormal;Or Person,
Network speed determination unit 403b is for the network identity in this article of discharge record and upper one article of discharge record In the case of one network, if the network speed growth of the second network reaches preset threshold speed, it is determined that network environment is abnormal.
Further, the flow determination unit can be used for:
In the case that network identity in this discharge record and a upper discharge record is first network, obtaining should Using current type of service, if the flow growth of the second network is reached for the preset flow threshold of the type of service, really Determine network environment exception.
In the present embodiment, above device can also include:
Second determining module, if indicating that currently used network is unchanged and data on flows shows flow for network identity Or network speed is unchanged, it is determined that network environment is normal;Alternatively,
Third determining module, if indicating that currently used network is unchanged but data on flows shows the net for network identity The flow of network increases or network speed growth reaches preset condition, then the prompt message that output flow increases or network speed increases.
In the present embodiment, optionally, acquisition module 401 can include:
Acquiring unit 401a in locally applied operational process, obtaining network identity in real time, and is being received During the registration notification that current business is sent, start real-time network monitoring and obtain data on flows.
In the present embodiment, optionally, establishing module 402 can include:
Unit 402a is established, for when event occurs in the application or the specified period reaches, establishing discharge record.
In the present embodiment, optionally, above device can also include:
Processing module, for after network environment exception is determined, suspending the current business of the application.
Above device provided in this embodiment can perform the method that any of the above-described embodiment of the method provides, and detailed process is detailed See the description in embodiment of the method, do not repeat herein.
Above device provided in this embodiment in locally applied operational process, obtains network identity and starts in real time Real-time network monitoring obtains data on flows, and the data on flows includes at least flow or network speed;According to the event in the application Discharge record is periodically established, the discharge record includes the network identity and data on flows;By this discharge record and upper one Discharge record compares, if network identity indicates that currently used network is unchanged but data on flows shows the stream of other networks Amount variation or network speed variation reach preset condition, it is determined that network environment is abnormal;It is integrated based on network identity and flow monitoring Judge network environment, even if in the case where erroneous judgement occurs in network identity, network environment can also be made accurately with reference to flow Judgement, improve network environment judgement accuracy rate, avoid the single dependence to network identity, prevent due to judge by accident to user Unnecessary interests is brought to lose.
Referring to Fig. 6, present embodiments provide a kind of terminal 600, can include communication unit 610, including there are one or one The memory 620 of a Yi Shang non-volatile readable storage medium, input unit 630, display unit 640, sensor 650, audio Circuit 660, WiFi (wireless fidelity, Wireless Fidelity) module 670, including there are one or more than one process cores The components such as the processor 680 and power supply 690 of the heart.
It will be understood by those skilled in the art that the restriction of terminal structure shown in Fig. 6 not structure paired terminal, can wrap It includes and either combines certain components or different components arrangement than illustrating more or fewer components.Wherein:
Communication unit 610 can be used for receive and send messages or communication process in, signal sends and receivees, the communication unit 610 Can be RF (Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipments.Particularly, when When communication unit 610 is RF circuits, after the downlink information of base station is received, transfer at one or more than one processor 680 Reason;In addition, the data for being related to uplink are sent to base station.Usually as communication unit RF circuits include but not limited to antenna, At least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 610 can also be by wireless Communication communicates with network and other equipment.The wireless communication can use any communication standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc.. Memory 620 can be used for storage software program and module, and processor 680 is stored in the software journey of memory 620 by operation Sequence and module, so as to perform various functions application and data processing.Memory 620 can mainly include storing program area and deposit Store up data field, wherein, storing program area can storage program area, the application program needed at least one function (for example broadcast by sound Playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as sound according to terminal 600 Frequency evidence, phone directory etc.) etc..In addition, memory 620 can include high-speed random access memory, can also include non-volatile Property memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, it deposits Reservoir 620 can also include Memory Controller, to provide the access of processor 680 and input unit 630 to memory 620.
Input unit 630 can be used for receiving the number inputted or character information and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Optionally, input unit 630 may include touching Sensitive surfaces 630a and other input equipments 630b.Touch sensitive surface 630a, also referred to as touch display screen or Trackpad are collected User on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or attachment touch-sensitive Operation on the 630a of surface or near touch sensitive surface 630a), and corresponding attachment device is driven according to preset formula. Optionally, touch sensitive surface 630a may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 680, and can reception processing Order that device 680 is sent simultaneously is performed.It is furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface 630a.In addition to touch sensitive surface 630a, input unit 630 can also include other input equipments 630b. Optionally, other input equipments 630b can include but is not limited to physical keyboard, function key (such as volume control button, switch Button etc.), it is trace ball, mouse, one or more in operating lever etc..
Display unit 640 can be used for display by information input by user or be supplied to the information of user and terminal 600 Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 640 may include display panel 640a, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) display panel is configured 640a.Further, touch sensitive surface 630a can cover display panel 640a, when touch sensitive surface 630a detect on it or near Touch operation after, send to processor 680 with determine touch event type, be followed by subsequent processing device 680 according to touch event Type provides corresponding visual output on display panel 640a.Although in figure 6, touch sensitive surface 630a and display panel 640a It is the component independent as two to realize input and input function, but in some embodiments it is possible to by touch sensitive surface 630a and display panel 640a is integrated and is realized and output and input function.
Terminal 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Optionally, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 640a, and proximity sensor can close display when terminal 600 is moved in one's ear Panel 640a and/or backlight.As one kind of motion sensor,
Gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, can detect when static Go out size and the direction of gravity, can be used to identify application (such as horizontal/vertical screen switching, dependent game, the magnetometer appearance of mobile phone posture State is calibrated), Vibration identification correlation function (such as pedometer, tap) etc.;The gyroscope that can also configure as terminal 600, air pressure The other sensors such as meter, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 660, loud speaker 660a, microphone 660b can provide the audio interface between user and terminal 600.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 660a, is converted by loud speaker 660a by frequency circuit 660 It is exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 660b, by voicefrequency circuit 660 Audio data is converted to after reception, then after audio data output processor 680 is handled, through RF circuits 610 to be sent to such as Audio data is exported to memory 620 to be further processed by another terminal.Voicefrequency circuit 660 is also possible that ear Tip jack, to provide the communication of peripheral hardware earphone and terminal 600.
In order to realize wireless communication, wireless communication unit 670 can be configured in the terminal, the wireless communication unit 670 It can be WiFi module.WiFi belongs to short range wireless transmission technology, and unit 670 can help terminal 600 by radio communication User sends and receive e-mail, browses webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed. Although Fig. 6 shows wireless communication unit 670, but it is understood that, and must be configured into for terminal 600 is not belonging to, it is complete It can be omitted in the range for the essence for not changing invention as needed entirely.
Processor 680 is the control centre of terminal 600, utilizes various interfaces and each portion of connection whole mobile phone Point, it is stored in memory 620 by running or performing the software program being stored in memory 620 and/or module and call Interior data perform the various functions of terminal 600 and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor 680 may include one or more processing cores;Preferably, processor 680 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Terminal 600 further includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 690 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 600 can also include camera, bluetooth module etc., and details are not described herein.
The alternative construction of terminal 600 is given above in association with Fig. 6, wherein one or more modules are stored in the memory In and be configured to be performed by one or more of processors, one or more of modules have following function:
In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition flow number According to the data on flows includes at least flow or network speed;
Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and stream Measure data;
This discharge record and a upper discharge record are compared, as network identity indicates that currently used network is unchanged But data on flows shows that the fruit changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network environment is different Often.
Wherein, it is described to compare this discharge record and a upper discharge record, if network identity instruction currently makes Network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that net Network environmental abnormality, including:
In the case that network identity in this discharge record and a upper discharge record is first network, if the The flow growth of two networks reaches preset flow threshold, it is determined that network environment is abnormal;Alternatively,
In the case that network identity in this discharge record and a upper discharge record is first network, if the The network speed growth of two networks reaches preset threshold speed, it is determined that network environment is abnormal.
Wherein, if the flow growth of second network reaches preset flow threshold, it is determined that network environment is abnormal, Including:
The current type of service of the application is obtained, if to be reached for the type of service pre- for the flow growth of the second network If flow threshold, it is determined that network environment is abnormal.
Wherein, one or more of modules also have following function:
If network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that Network environment is normal;Alternatively,
If network identity indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or net Speed, which increases, reaches preset condition, then the prompt message that output flow increases or network speed increases.
Wherein, it is described in locally applied operational process, network identity is obtained in real time and starts real-time network monitoring obtains Data on flows is obtained, including:
In locally applied operational process, network identity is obtained in real time, and in the note for receiving current business transmission During volume notice, start real-time network monitoring and obtain data on flows.
Wherein, the event according in the application periodically establishes discharge record, including:
When event occurs in the application or the specified period reaches, discharge record is established.
Wherein, one or more of modules also have following function:
After network environment exception is determined, suspend the current business of the application.
Above-mentioned terminal provided in this embodiment in locally applied operational process, obtains network identity and starts in real time Real-time network monitoring obtains data on flows, and the data on flows includes at least flow or network speed;According to the event in the application Discharge record is periodically established, the discharge record includes the network identity and data on flows;By this discharge record and upper one Discharge record compares, if network identity indicates that currently used network is unchanged but data on flows shows the stream of other networks Amount variation or network speed variation reach preset condition, it is determined that network environment is abnormal;It is integrated based on network identity and flow monitoring Judge network environment, even if in the case where erroneous judgement occurs in network identity, network environment can also be made accurately with reference to flow Judgement, improve network environment judgement accuracy rate, avoid the single dependence to network identity, prevent due to judge by accident to user Unnecessary interests is brought to lose.
The embodiment of the present invention additionally provides a kind of non-volatile readable storage medium, in the storage medium storage there are one or Multiple modules (programs) when the one or more module is used in equipment, can cause the equipment to perform following step Rapid instruction (instructions):
In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition flow number According to the data on flows includes at least flow or network speed;
Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and stream Measure data;
This discharge record and a upper discharge record are compared, if network identity indicates currently used network not Become but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that network environment is different Often.
Wherein, it is described to compare this discharge record and a upper discharge record, if network identity instruction currently makes Network is unchanged but data on flows shows that the changes in flow rate of other networks or network speed variation reach preset condition, it is determined that net Network environmental abnormality, including:
In the case that network identity in this discharge record and a upper discharge record is first network, if the The flow growth of two networks reaches preset flow threshold, it is determined that network environment is abnormal;Alternatively,
In the case that network identity in this discharge record and a upper discharge record is first network, if the The network speed growth of two networks reaches preset threshold speed, it is determined that network environment is abnormal.
Wherein, if the flow growth of second network reaches preset flow threshold, it is determined that network environment is abnormal, Including:
The current type of service of the application is obtained, if to be reached for the type of service pre- for the flow growth of the second network If flow threshold, it is determined that network environment is abnormal.
Wherein, which can also be performed the instruction of following steps:
If network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that Network environment is normal;Alternatively,
If network identity indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or net Speed, which increases, reaches preset condition, then the prompt message that output flow increases or network speed increases.
Wherein, it is described in locally applied operational process, network identity is obtained in real time and starts real-time network monitoring obtains Data on flows is obtained, including:
In locally applied operational process, network identity is obtained in real time, and in the note for receiving current business transmission During volume notice, start real-time network monitoring and obtain data on flows.
Wherein, the event according in the application periodically establishes discharge record, including:
When event occurs in the application or the specified period reaches, discharge record is established.
Wherein, which can also be performed the instruction of following steps:
After network environment exception is determined, suspend the current business of the application.
Above-mentioned non-volatile readable storage medium provided in this embodiment, in locally applied operational process, is obtained in real time It takes network identity and starts real-time network monitoring and obtain data on flows, the data on flows includes at least flow or network speed;According to Event in the application periodically establishes discharge record, and the discharge record includes the network identity and data on flows;It incite somebody to action this Discharge record is compared with a upper discharge record, if network identity indicates that currently used network is unchanged but data on flows The changes in flow rate or network speed variation for showing other networks reach preset condition, it is determined that network environment is abnormal;Based on network mark Even if note and flow monitoring comprehensive descision network environment in the case where erroneous judgement occurs in network identity, can also combine flow pair Network environment makes accurate judgement, improves the accuracy rate of network environment judgement, avoids the single dependence to network identity, prevents Only unnecessary interests is brought to lose to user due to judging by accident.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment Complete, relevant hardware can also be instructed to complete by program, the program can be stored in it is a kind of it is non-volatile can It reads in storage medium, the non-volatile readable storage medium can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (12)

  1. A kind of 1. method of monitoring network environment, which is characterized in that the method includes:
    In locally applied operational process, network identity is obtained in real time and starts real-time network monitoring acquisition data on flows, institute Data on flows is stated including at least flow or network speed;
    Discharge record is periodically established according to the event in the application, the discharge record includes the network identity and flow number According to;
    In the case that network identity in this discharge record and a upper discharge record is first network, if the second net The flow growth of network reaches preset flow threshold, it is determined that network environment is abnormal;Alternatively, in this discharge record and upper one In the case that network identity in discharge record is first network, if the network speed growth of the second network reaches preset speed Threshold value, it is determined that network environment is abnormal.
  2. 2. according to the method described in claim 1, it is characterized in that, if the flow growth of second network reaches preset Flow threshold, it is determined that network environment is abnormal, including:
    The current type of service of the application is obtained, if to be reached for the type of service preset for the flow growth of the second network Flow threshold, it is determined that network environment is abnormal.
  3. 3. according to the method described in claim 1, it is characterized in that, the method further includes:
    If network identity indicates that currently used network is unchanged and data on flows shows that flow or network speed are unchanged, it is determined that network Environment is normal;Alternatively,
    If network identity indicates that currently used network is unchanged but data on flows shows that the flow of the network increases or network speed increases Length reaches preset condition, then the prompt message that output flow increases or network speed increases.
  4. 4. according to the method described in claim 1, it is characterized in that, described in locally applied operational process, acquisition in real time Network identity simultaneously starts real-time network monitoring acquisition data on flows, including:
    In locally applied operational process, network identity is obtained in real time, and lead in the registration for receiving current business transmission When knowing, start real-time network monitoring and obtain data on flows.
  5. 5. according to the method described in claim 1, it is characterized in that, the event according in the application periodically establishes flow Record, including:
    When event occurs in the application or the specified period reaches, discharge record is established.
  6. 6. according to the method described in claim 1, it is characterized in that, the method further includes:
    After network environment exception is determined, suspend the current business of the application.
  7. 7. a kind of device of monitoring network environment, which is characterized in that described device includes:
    Acquisition module obtains in locally applied operational process, obtaining network identity in real time and starting real-time network monitoring Data on flows is obtained, the data on flows includes at least flow or network speed;
    Module is established, for periodically establishing discharge record according to the event in the application, the discharge record includes the net Network marks and data on flows;
    First determining module is first network for the network identity in this discharge record and a upper discharge record In the case of, if the flow growth of the second network reaches preset flow threshold, it is determined that network environment is abnormal;Alternatively, at this In the case that discharge record is first network with the network identity in a upper discharge record, if the network speed of the second network Growth reaches preset threshold speed, it is determined that network environment is abnormal.
  8. 8. device according to claim 7, which is characterized in that the flow determination unit is used for:
    In the case that network identity in this discharge record and a upper discharge record is first network, described answer is obtained With current type of service, if the flow growth of the second network is reached for the preset flow threshold of the type of service, really Determine network environment exception.
  9. 9. device according to claim 7, which is characterized in that described device further includes:
    Second determining module, if indicating that currently used network is unchanged and data on flows shows flow or net for network identity Speed is unchanged, it is determined that network environment is normal;Alternatively,
    Third determining module, if indicating that currently used network is unchanged but data on flows shows the network for network identity Flow increases or network speed growth reaches preset condition, then the prompt message that output flow increases or network speed increases.
  10. 10. device according to claim 7, which is characterized in that the acquisition module includes:
    Acquiring unit in locally applied operational process, obtaining network identity in real time, and is receiving current business During the registration notification of transmission, start real-time network monitoring and obtain data on flows.
  11. 11. device according to claim 7, which is characterized in that the module of establishing includes:
    Unit is established, for when event occurs in the application or the specified period reaches, establishing discharge record.
  12. 12. device according to claim 7, which is characterized in that described device further includes:
    Processing module, for after network environment exception is determined, suspending the current business of the application.
CN201410235575.1A 2014-05-29 2014-05-29 The method and apparatus of monitoring network environment Active CN104836698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410235575.1A CN104836698B (en) 2014-05-29 2014-05-29 The method and apparatus of monitoring network environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410235575.1A CN104836698B (en) 2014-05-29 2014-05-29 The method and apparatus of monitoring network environment

Publications (2)

Publication Number Publication Date
CN104836698A CN104836698A (en) 2015-08-12
CN104836698B true CN104836698B (en) 2018-06-08

Family

ID=53814348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410235575.1A Active CN104836698B (en) 2014-05-29 2014-05-29 The method and apparatus of monitoring network environment

Country Status (1)

Country Link
CN (1) CN104836698B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487808A (en) * 2016-11-21 2017-03-08 武汉斗鱼网络科技有限公司 A kind of dynamic method for uploading of live video and system
CN109376062B (en) * 2018-09-28 2022-10-18 Oppo广东移动通信有限公司 Network state prompting method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420346A (en) * 2008-11-20 2009-04-29 四川长虹电器股份有限公司 Network connection state controlling method
US7599293B1 (en) * 2002-04-25 2009-10-06 Lawrence Michael Bain System and method for network traffic and I/O transaction monitoring of a high speed communications network
CN201937832U (en) * 2010-12-24 2011-08-17 厦门市美亚柏科信息股份有限公司 Detecting device for WIFI (wireless fidelity) connection status
CN103024462A (en) * 2012-12-11 2013-04-03 深圳市同洲电子股份有限公司 Method for network detection and digital terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7599293B1 (en) * 2002-04-25 2009-10-06 Lawrence Michael Bain System and method for network traffic and I/O transaction monitoring of a high speed communications network
CN101420346A (en) * 2008-11-20 2009-04-29 四川长虹电器股份有限公司 Network connection state controlling method
CN201937832U (en) * 2010-12-24 2011-08-17 厦门市美亚柏科信息股份有限公司 Detecting device for WIFI (wireless fidelity) connection status
CN103024462A (en) * 2012-12-11 2013-04-03 深圳市同洲电子股份有限公司 Method for network detection and digital terminal

Also Published As

Publication number Publication date
CN104836698A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN104618222B (en) A kind of method and device for matching facial expression image
CN106453767B (en) Fall rear fault detection method and device
CN104822090B (en) The methods, devices and systems of video playback
CN107831386A (en) Identification charging abnormal method, equipment, mobile terminal and computer-readable storage medium
CN105005909A (en) Method and device for predicting lost users
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN106294168B (en) A kind of method and system carrying out Application testing
CN107770768A (en) A kind of data network restoration methods, mobile terminal
CN104199596B (en) scene interface switching method and device
CN107566255A (en) Unread message abstraction generating method and device
CN103312597B (en) A kind of speech message generation method and device
CN107526638A (en) Applied program processing method, device, mobile terminal and storage medium
CN105049470A (en) Event confirming method, apparatus and system
CN106454976B (en) A kind of switching method of wireless network, device and terminal
CN104423822A (en) Automated test script recording method and device
CN108345474A (en) Startup method, starter and the mobile terminal of application program
CN106101764A (en) A kind of methods, devices and systems showing video data
CN108282834A (en) A kind of method and terminal of terminal access LTE network
CN107817932A (en) Account switching method, device and user terminal
CN104951637B (en) A kind of method and device for obtaining training parameter
CN109817241A (en) Audio-frequency processing method, device and storage medium
CN107465802A (en) A kind of methods, devices and systems for showing communication message
CN108810057A (en) Acquisition method, device and the storage medium of user behavior data
CN107949021B (en) Switch the method and terminal device of receives link in terminal device
CN105045372A (en) Method and equipment controlling wearable device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant