CN104836698A - Method monitoring network environment and device - Google Patents

Method monitoring network environment and device Download PDF

Info

Publication number
CN104836698A
CN104836698A CN201410235575.1A CN201410235575A CN104836698A CN 104836698 A CN104836698 A CN 104836698A CN 201410235575 A CN201410235575 A CN 201410235575A CN 104836698 A CN104836698 A CN 104836698A
Authority
CN
China
Prior art keywords
network
flow
discharge record
data
flows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410235575.1A
Other languages
Chinese (zh)
Other versions
CN104836698B (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 method monitoring network environment and a device, and belongs to the communication field. The method comprises, in the operation process of a local application, obtaining a network mark in real time and starting real-time network monitoring to obtain flow data which at least comprises flow or a network speed; according to events in the application, regularly establishing a flow record which comprises the network mark and the flow data; and comparing an item of the flow records with a former item of flow records, and determining that the network environment is abnormal if the network mark indicates that a currently used network is not changed and the flow data shows that flow changes or network speed changes of other networks reach a preset condition. The device comprises an obtaining module, an establishing module and a first determining module. The network environment is comprehensively judged on the basis of the network mark and the flow, the accuracy rate of the network environment judgment is achieved, single dependence on the network mark is prevented, and unnecessary benefit loss due to misjudgement can be prevented from being brought for a user.

Description

The method and apparatus of monitoring network environment
Technical field
The present invention relates to the communications field, particularly a kind of method and apparatus of monitoring network environment.
Background technology
At present, the Online Video application on iPhone equipment all has the function that network environment judges.This function is usually based on the network state mark Network flag that the mixed-media network modules mixed-media interface Reachability of system provides, and whether the LAN IP be assigned to during access WiFi effectively comes to judge network environment.
But easily there is erroneous judgement in the boundary time that above-mentioned Online Video is applied in network environment switching, may bring less desirable campus network thus, affect Consumer's Experience to user.Such as, Online Video application at a time switches to 3G network by WiFi network, but, the result that network environment judges still is shown as the status indication of WiFi network, thus can cause in the unwitting situation of user, flow after this all according to 3G network charging, brings loss to user.
Summary of the invention
In view of this, embodiments provide a kind of method and apparatus of monitoring network environment, to improve the accuracy rate that network environment judges.Described technical scheme is as follows:
On the one hand, provide a kind of method of monitoring network environment, comprising:
In the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed;
Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal.
On the other hand, provide a kind of device of monitoring network environment, comprising:
Acquisition module, in the running applied in this locality, Real-time Obtaining network identity also starts real-time network monitoring and obtains data on flows, and described data on flows at least comprises flow or network speed;
Set up module, for regularly setting up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
First determination module, for this discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: in the running of this locality application, and Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the monitoring network environment that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the monitoring network environment that another embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the monitoring network environment that another embodiment of the present invention provides;
Fig. 4 is the structure drawing of device of a kind of monitoring network environment that another embodiment of the present invention provides;
Fig. 5 is the structure drawing of device of the another kind of 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.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, one embodiment of the invention provides a kind of method of monitoring network environment, comprising:
101: in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed.
In the present embodiment, described application can be local any one application of installing, and typically refer to the application that can use network traffics, as Online Video application etc., the present embodiment is not specifically limited this.
Described network identity refers to the Network flag that the mixed-media network modules mixed-media interface Reachability of system provides, be used for marking presently used network, if network identity is WiFi, then show currently to use WiFi network, or network identity is 3G, then show currently to use 3G network etc.
Described network monitor refers to monitors flow, and particularly, the traffic interface that can be provided by system carries out flow monitoring, and the present embodiment does not do too much explanation to this.Monitor the data on flows obtained and can comprise much information, as Record ID, type of service, event title, event start time, WiFi flow, 3G flow, speed of download etc., the present embodiment is not specifically limited this.
102: regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows.
Event in the application that the present embodiment relates to can be any one event, includes but not limited to: online viewing video, online browse webpage, off-line are downloaded a file, uploaded a file, a video file is broadcast on limit below, network environment switches to 3G by WiFi, network environment switches to WiFi etc. by 3G.
Described regular foundation can be set up according to the preassigned cycle, and this cycle of specifying can be arranged as required, and the present embodiment does not limit concrete numerical value.
The discharge record of described foundation can be stored in a statistical form, uniquely identifies each bar discharge record by Record ID.This statistical form is stored in local device, can regularly upgrade.
103: this discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal.
In the present embodiment, described discharge record is many, and this flow refers to arbitrary wherein except Article 1.Described this discharge record and a upper discharge record being compared circulates to perform, and that is, any two the adjacent discharge records in discharge record all can compare, to grasp change of network environment situation in time.
Further, in the present embodiment, can also after determining that network environment is abnormal, at the warning information of local output network environmental abnormality.Described warning information is for pointing out user's current network conditions abnormal, and mode has multiple, includes but not limited to: text message prompting, audible alarm etc., the present embodiment is not specifically limited this.
In the present embodiment, optionally, described this discharge record and a upper discharge record to be compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, can comprise:
When this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
When this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
In the present embodiment, further, if the flow of described second network increases reach default flow threshold, then determine that network environment is abnormal, can comprise:
Obtain the type of service that this application is current, if the flow of second network increases the flow threshold being reached for this type of service and presetting, then determine that network environment is abnormal.
In the present embodiment, optionally, described method also comprises:
If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; Or,
If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases.
In addition, it is worth mentioning that, if the network identity in this discharge record and a upper discharge record changes, then think that normal network switches, belong to critical condition, therefore, without the need to statistic flow situation of change.And the time that usual network switches is very of short duration, switch as completed network within 1 minute, even if the flow of network or network speed have growth, then usually also within the scope that can tolerate within this 1 minute.Therefore, it is considered herein that the situation without the need to switching statistic flow or network speed change in the so of short duration time at network, also just too much explanation is not done to the vicissitudinous situation of network identity in this discharge record and a upper discharge record in various embodiments.
In the present embodiment, optionally, described in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, can comprise:
In the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
In the present embodiment, optionally, describedly regularly set up discharge record according to the event in described application, can comprise:
When event occurs or designated period reaches in described application, set up discharge record.
In the present embodiment, optionally, said method can also comprise:
After determining that network environment is abnormal, suspend the current business of this application.
The said method that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
See Fig. 2, another embodiment of the present invention provides a kind of method of monitoring network environment, comprising:
201: in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed.
This step can comprise the following steps:
In the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
202: regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows.
This step can specifically comprise:
When event occurs or designated period reaches in described application, set up discharge record.
Such as, set up a discharge record when network environment is switched to 3G by WiFi, set up a discharge record when off-line downloads a file, when reaching whenever the cycle of specifying in the process that off-line is downloaded, also set up discharge record etc.
203: when this discharge record with on network identity in a discharge record be first network, if if the flow of second network increases the network speed growth reaching default flow threshold or second network reach default threshold speed, then determine that network environment is abnormal.
In the present embodiment, described first network can be WiFi network, and described second network can be 3G network; Or described first network is 3G network, and described 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, and namely can there is multiple network in the same moment can access, but, one of them network can only be used access during local device access network.
In the present embodiment, flow and the network speed of each network can be obtained by network monitor.For any one network, the flow of this network in the flow of this network in this discharge record and a upper discharge record is subtracted each other, just can learn whether the flow of this network increases, and increase how many.Described flow threshold can be arranged as required, can be set to a unified flow threshold, or also can arrange different flow threshold etc. respectively according to type of service, the present embodiment is not specifically limited to this.In like manner, for any one network, the network speed of this network in the network speed of this network in this discharge record and a upper discharge record is subtracted each other, just can learn whether the network speed of this network increases, and increase how many.Described threshold speed can be arranged as required, and the present embodiment does not limit concrete numerical value.
In the present embodiment, the flow of second network increases the network speed growth reaching default flow threshold or second network and reaches default threshold speed, may be the scene that erroneous judgement appears in network identity.Such as, network identity is WiFi network, and the growth of the flow of 3G network reaches default flow threshold, therefore, can determine that local device is current and use 3G network, instead of the WiFi network indicated by network identity, network environment will be considered as in this case abnormal.
Wherein, if the flow of described second network increases reach default flow threshold, then determine that network environment is abnormal, can comprise:
Obtain the type of service that this application is current, if the flow of second network increases the flow threshold being reached for this type of service and presetting, then determine that network environment is abnormal.
In the present embodiment, various flow rate threshold value can be set, types of service corresponding different respectively.Such as, being download file business setting first flow threshold value, is browsing page business setting second flow threshold, and arrange the 3rd flow threshold etc. for watching video traffic online, the present embodiment is not specifically limited this.
In addition, it is worth mentioning that, when arranging flow threshold, can also arrange the charging regulation of flow in conjunction with operator, such as, operator carrys out flow meter expense according to 1 yuan/MB, then can arrange flow threshold is 1MB, thinks that network environment is abnormal when flow grows beyond 1MB.Certainly, also can go out corresponding flow threshold etc. according to this charging regulation formulae discovery preset, the present embodiment is not specifically limited this.
In the present embodiment, optionally, described method can also comprise:
If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; Or,
If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases.
In the present embodiment, optionally, after determining that network environment is abnormal, can also at the warning information of local output network environmental abnormality.
In the present embodiment, optionally, said method can also comprise:
After determining that network environment is abnormal, suspend the current business of this application.
The said method that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; When this discharge record with on network identity in a discharge record be first network, if if the flow of second network grows beyond default flow threshold or network speed grows beyond default threshold speed, then determine that network environment is abnormal; At the warning information of local output network environmental abnormality; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
See Fig. 3, another embodiment of the present invention provides a kind of method of monitoring network environment, comprising:
301: in the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, start real-time network monitoring and obtain data on flows, this data on flows at least comprises flow or network speed.
In the present embodiment, it is configurable for whether sending registration notification, can configure as required, when being configured to send registration notification, this registration notification is the trigger condition of network monitor, only just starts real-time network monitoring when receiving the registration notification that current business sends.
Such as, current business, for watch video online, after the registration notification receiving the transmission of this business, starts real-time network and monitors the data on flows obtained when watching video online.
302: regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows.
This step can specifically comprise:
When event occurs or designated period reaches in described application, set up discharge record.
303: this discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then perform 304; If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then perform 305; If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then perform 306.
304: determine that network environment is abnormal, at the warning information of local output network environmental abnormality, suspend the current business of this application, flow process terminates.
Wherein, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, can comprise:
When this discharge record with on network identity in a discharge record be first network, if if the flow of second network increases the network speed growth reaching default flow threshold or second network reach default threshold speed, then determine that network environment is abnormal.
Wherein, if the flow of described second network increases reach default flow threshold, then determine that network environment is abnormal, comprising:
Obtain the type of service that this application is current, if the flow of second network increases the flow threshold being reached for this type of service and presetting, then determine that network environment is abnormal.
In the present embodiment, the current business suspending this application considers because network environment is abnormal, the flow that current business may be caused to bring brings loss to user, therefore, suspend current business, can inquire whether user continues current business, guarantee the situation that user is knowing the inside story makes decision whether continue current business.
Such as, local application current business is that off-line downloads a file, then after determining that network environment is abnormal, suspend and download this file, whether Pop-up message inquiry user continues to download, and continues to download this file, if user does not agree to, terminate this downloading task after the agreement obtaining user.
305: determine that network environment is normal, flow process terminates.
306: the information that output flow increases or network speed increases, flow process terminates.
Such as, when this discharge record with on network identity in a discharge record be WiFi, if the flow of WiFi network or network speed do not become, flow or the network speed of 3G network do not become yet, then determine that network environment is normal; Or, if the flow of 3G network increases reach default flow threshold, then determine that network environment is abnormal, outputting alarm; Or, if the flow of WiFi network increases or network speed growth reaches default condition, then export the information that WiFi flow increases or network speed increases.
For another example, when this discharge record with on network identity in a discharge record be 3G, if the flow of 3G network or network speed do not become, flow or the network speed of WiFi network do not become yet, then determine that network environment is normal; Or, if the flow of 3G network increases or network speed growth reaches default condition, then export the information that 3G flow increases or network speed increases; Or, if the flow of WiFi network increases or network speed growth reaches default condition, then determine that network environment is abnormal, outputting alarm.
The said method that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, start real-time network monitoring and obtain data on flows, this data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, at the warning information of local output network environmental abnormality, suspend the current business of this application; If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
See Fig. 4, another embodiment of the present invention provides a kind of device of monitoring network environment, comprising:
Acquisition module 401, in the running applied in this locality, Real-time Obtaining network identity also starts real-time network monitoring and obtains data on flows, and described data on flows at least comprises flow or network speed;
Set up module 402, for regularly setting up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
First determination module 403, for this discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal.
See Fig. 5, in the present embodiment, optionally, the first determination module 403 can comprise:
Flow determining unit 403a, for when this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
Network speed determining unit 403b, for when this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
Further, described flow determining unit may be used for:
When this discharge record with on network identity in a discharge record be first network, obtain the type of service that this application is current, if the flow of second network increases the flow threshold being reached for this type of service and presetting, then determine that network environment is abnormal.
In the present embodiment, said apparatus can also comprise:
Second determination module, if indicate the network of current use not become for network identity and data on flows shows that flow or network speed do not become, then determines that network environment is normal; Or,
3rd determination module, if indicate the network of current use not become for network identity but data on flows show this network flow increase or network speed increase reach default condition, then output flow increase or network speed increase information.
In the present embodiment, optionally, acquisition module 401 can comprise:
Acquiring unit 401a, in the running applied in this locality, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
In the present embodiment, optionally, set up module 402 can comprise:
Set up unit 402a, for when event occurs or designated period reaches in described application, set up discharge record.
In the present embodiment, optionally, said apparatus can also comprise:
Processing module, for after determining that network environment is abnormal, suspends the current business of this application.
The said apparatus that the present embodiment provides can perform the method that above-mentioned either method embodiment provides, and detailed process refers to the description in embodiment of the method, does not repeat herein.
The said apparatus that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
See Fig. 6, present embodiments provide a kind of terminal 600, communication unit 610 can be comprised, include the memory 620 of one or more non-volatile readable storage mediums, input unit 630, display unit 640, transducer 650, voicefrequency circuit 660, WiFi (wireless fidelity, Wireless Fidelity) module 670, include the parts such as processor 680 and power supply 690 that more than or processes core.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 6, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 610 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication unit 610 can be RF (Radio Frequency, radio frequency) circuit, router, modulator-demodulator, etc. network communication equipment.Especially, when communication unit 610 is RF circuit, after being received by the downlink information of base station, more than one or one processor 680 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes 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 by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include 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 (CodeDivision Multiple Access, code division multiple access), WCDMA (Wideband Code Division MultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.Memory 620 can be used for storing software program and module, and processor 680 is stored in software program and the module of memory 620 by running, thus performs the application of various function and data processing.Memory 620 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 600.In addition, memory 620 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 620 can also comprise Memory Controller, to provide the access of processor 680 and input unit 630 pairs of memories 620.
Input unit 630 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Alternatively, input unit 630 can comprise Touch sensitive surface 630a and other input equipments 630b.Touch sensitive surface 630a, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 630a or near Touch sensitive surface 630a such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 630a can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 680, and the order that energy receiving processor 680 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 630a.Except Touch sensitive surface 630a, input unit 630 can also comprise other input equipments 630b.Alternatively, other input equipments 630b can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 640 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 600 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 640 can comprise display floater 640a, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display floater 640a.Further, Touch sensitive surface 630a can cover display floater 640a, when Touch sensitive surface 630a detects thereon or after neighbouring touch operation, send processor 680 to determine the type of touch event, on display floater 640a, provide corresponding vision to export with preprocessor 680 according to the type of touch event.Although in figure 6, Touch sensitive surface 630a and display floater 640a be as two independently parts realize inputting and input function, in certain embodiments, can by integrated for Touch sensitive surface 630a and display floater 640a and realize input and output function.
Terminal 600 also can comprise at least one transducer 650, such as optical sensor, motion sensor and other transducers.Alternatively, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 640a, proximity transducer when terminal 600 moves in one's ear, can cut out display floater 640a and/or backlight.As the one of motion sensor,
Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 600 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 660, loud speaker 660a, microphone 660b can provide the audio interface between user and terminal 600.Voicefrequency circuit 660 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 660a, by loud speaker 660a be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 660b, voice data is converted to after being received by voicefrequency circuit 660, after again voice data output processor 680 being processed, through RF circuit 610 to send to such as another terminal, or export voice data to memory 620 to process further.Voicefrequency circuit 660 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 600.
In order to realize radio communication, this terminal can be configured with wireless communication unit 670, this wireless communication unit 670 can be WiFi module.WiFi belongs to short range wireless transmission technology, and by wireless communication unit 670, terminal 600 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows wireless communication unit 670, be understandable that, it does not belong to must forming of terminal 600, can omit in the scope of essence not changing invention as required completely.
Processor 680 is control centres of terminal 600, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 620 and/or module is stored in by running or performing, and call the data be stored in memory 620, perform various function and the deal with data of terminal 600, thus integral monitoring is carried out to mobile phone.Optionally, processor 680 can comprise one or more process core; Preferably, processor 680 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 680.
Terminal 600 also comprises the power supply 690 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 680 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 690 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 600 can also comprise camera, bluetooth module etc., does not repeat them here.
Above composition graphs 6 gives the alternate configurations of terminal 600, and wherein one or more modules to be stored in described memory and to be configured to be performed by described one or more processor, and described one or more module has following function:
In the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed;
Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
This discharge record and a upper discharge record are compared, as network identity indicates the network of current use not become but data on flows shows that the fruit changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal.
Wherein, described this discharge record and a upper discharge record to be compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, comprising:
When this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
When this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
Wherein, if the flow of described second network increases reach default flow threshold, then determine that network environment is abnormal, comprising:
Obtain the type of service that described application is current, if the flow of second network increases the flow threshold being reached for described type of service and presetting, then determine that network environment is abnormal.
Wherein, described one or more module also has following function:
If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; Or,
If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases.
Wherein, described in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, comprising:
In the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
Wherein, describedly regularly set up discharge record according to the event in described application, comprising:
When event occurs or designated period reaches in described application, set up discharge record.
Wherein, described one or more module also has following function:
After determining that network environment is abnormal, suspend the current business of described application.
The above-mentioned terminal that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
The embodiment of the present invention additionally provides a kind of non-volatile readable storage medium, one or more module (programs) is stored in this storage medium, when this one or more module is employed in a device, this equipment can be made to perform the instruction (instructions) of following steps:
In the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed;
Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal.
Wherein, described this discharge record and a upper discharge record to be compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, comprising:
When this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
When this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
Wherein, if the flow of described second network increases reach default flow threshold, then determine that network environment is abnormal, comprising:
Obtain the type of service that described application is current, if the flow of second network increases the flow threshold being reached for described type of service and presetting, then determine that network environment is abnormal.
Wherein, this equipment can also perform the instruction of following steps:
If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; Or,
If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases.
Wherein, described in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, comprising:
In the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
Wherein, describedly regularly set up discharge record according to the event in described application, comprising:
When event occurs or designated period reaches in described application, set up discharge record.
Wherein, this equipment can also perform the instruction of following steps:
After determining that network environment is abnormal, suspend the current business of described application.
The above-mentioned non-volatile readable storage medium that the present embodiment provides, in the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed; Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows; This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal; Mark Network Based and flow monitoring comprehensive descision network environment, even if when there is erroneous judgement in network identity, also can to make network environment in conjunction with flow and judging accurately, improve the accuracy rate that network environment judges, avoid the single dependence to network identity, prevent because erroneous judgement brings unnecessary interests loss to user.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of non-volatile readable storage medium, described non-volatile readable storage medium can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. a method for monitoring network environment, is characterized in that, described method comprises:
In the running of this locality application, Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, and described data on flows at least comprises flow or network speed;
Regularly set up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
This discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determines that network environment is abnormal.
2. method according to claim 1, it is characterized in that, described this discharge record and a upper discharge record to be compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal, comprising:
When this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
When this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
3. method according to claim 2, is characterized in that, if the flow of described second network increases reach default flow threshold, then determines that network environment is abnormal, comprising:
Obtain the type of service that described application is current, if the flow of second network increases the flow threshold being reached for described type of service and presetting, then determine that network environment is abnormal.
4. method according to claim 1, is characterized in that, described method also comprises:
If network identity indicates the network of current use not become and data on flows shows that flow or network speed do not become, then determine that network environment is normal; Or,
If network identity indicates the network of current use not become but data on flows shows that the flow of this network increases or network speed growth reaches default condition, then the information that output flow increases or network speed increases.
5. method according to claim 1, is characterized in that, described in the running of this locality application, and Real-time Obtaining network identity also starts real-time network monitoring acquisition data on flows, comprising:
In the running of this locality application, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
6. method according to claim 1, is characterized in that, describedly regularly sets up discharge record according to the event in described application, comprising:
When event occurs or designated period reaches in described application, set up discharge record.
7. method according to claim 1, is characterized in that, described method also comprises:
After determining that network environment is abnormal, suspend the current business of described application.
8. a device for monitoring network environment, is characterized in that, described device comprises:
Acquisition module, in the running applied in this locality, Real-time Obtaining network identity also starts real-time network monitoring and obtains data on flows, and described data on flows at least comprises flow or network speed;
Set up module, for regularly setting up discharge record according to the event in described application, described discharge record comprises described network identity and data on flows;
First determination module, for this discharge record and a upper discharge record are compared, if network identity indicates the network of current use not become but data on flows shows that the changes in flow rate of other network or network speed change reach default condition, then determine that network environment is abnormal.
9. device according to claim 8, is characterized in that, described first determination module comprises:
Flow determining unit, for when this discharge record with on network identity in a discharge record be first network, if the flow of second network increases reach default flow threshold, then determine that network environment is abnormal; Or,
Network speed determining unit, for when this discharge record with on network identity in a discharge record be first network, if the network speed of second network increases reach default threshold speed, then determine that network environment is abnormal.
10. device according to claim 9, is characterized in that, described flow determining unit is used for:
When this discharge record with on network identity in a discharge record be first network, obtain the type of service that described application is current, if the flow of second network increases the flow threshold being reached for described type of service and presetting, then determine that network environment is abnormal.
11. devices according to claim 8, is characterized in that, described device also comprises:
Second determination module, if indicate the network of current use not become for network identity and data on flows shows that flow or network speed do not become, then determines that network environment is normal; Or,
3rd determination module, if indicate the network of current use not become for network identity but data on flows show this network flow increase or network speed increase reach default condition, then output flow increase or network speed increase information.
12. devices according to claim 8, is characterized in that, described acquisition module comprises:
Acquiring unit, in the running applied in this locality, Real-time Obtaining network identity, and when receiving the registration notification that current business sends, starting real-time network monitoring and obtaining data on flows.
13. devices according to claim 8, is characterized in that, described module of setting up comprises:
Set up unit, for when event occurs or designated period reaches in described application, set up discharge record.
14. devices according to claim 8, is characterized in that, described device also comprises:
Processing module, for after determining that network environment is abnormal, suspends the current business of described 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 true CN104836698A (en) 2015-08-12
CN104836698B 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)

Cited By (3)

* 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
CN109376062A (en) * 2018-09-28 2019-02-22 东莞市欧珀精密电子有限公司 Network state reminding method and relevant apparatus
CN112583635A (en) * 2020-11-24 2021-03-30 视联动力信息技术股份有限公司 Method and device for detecting network state of video network, terminal equipment and storage medium

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

Cited By (5)

* 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
CN109376062A (en) * 2018-09-28 2019-02-22 东莞市欧珀精密电子有限公司 Network state reminding method and relevant apparatus
CN109376062B (en) * 2018-09-28 2022-10-18 Oppo广东移动通信有限公司 Network state prompting method and related device
CN112583635A (en) * 2020-11-24 2021-03-30 视联动力信息技术股份有限公司 Method and device for detecting network state of video network, terminal equipment and storage medium
CN112583635B (en) * 2020-11-24 2024-05-28 视联动力信息技术股份有限公司 Method, device, terminal equipment and storage medium for detecting state of video networking network

Also Published As

Publication number Publication date
CN104836698B (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN104142862B (en) The overload protection method of server and device
CN105005909A (en) Method and device for predicting lost users
CN105119806A (en) Message updating method and device
CN103442330A (en) Position notification method and device
CN104135728B (en) Method for connecting network and device
CN105120065A (en) Message processing method and device
CN104735671A (en) Malicious call recognition method and device
CN104618873A (en) Method and device for sharing access point information
CN104717341A (en) Message prompting method and terminal
CN104301504A (en) Message viewing method and device and mobile terminal
CN105429775A (en) Method and device for reporting log
CN103312597B (en) A kind of speech message generation method and device
CN104378488A (en) Harassing call processing method and device
CN103368828B (en) A kind of message temporary storage and system
CN104935955A (en) Live video stream transmission method, device and system
CN104602135A (en) Method and device for controlling full screen play
CN105049470A (en) Event confirming method, apparatus and system
CN104618223A (en) Information recommendation management method, device and system
CN105389259A (en) Method, apparatus and system for performing application testing
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN103647868B (en) Reduce the method and apparatus that the tinkle of bells is bothered
CN104639354A (en) Router management method and device
CN106454976A (en) Switching method and device for wireless network and terminal
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud
CN103561155B (en) Send the method for note, device and terminal

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