A kind of network performance monitoring method and deviceTechnical field
The present invention relates to communication technical field, more particularly to a kind of network performance monitoring method and device.
Background technology
In recent years, along with the development of wireless WIFI network rapid technological improvement, wireless WIFI network is with itNetworking mode flexibly, is not retrained by netting twine, is accepted by vast computer user, simultaneously handsMachine and flat board apparatus such as computer the most all support the networking mode of WIFI.
By this WLAN WIFI, mobile terminal can scan the WIFI hot spot that it is neighbouring, utilize WIFIFocus is surfed the Net.When starting WLAN, WLAN interface can show the WIFI hot spot scanned,User manually can connect scanning WIFI hot spot, once connected if existing in the focus scannedWIFI hot spot, then this WIFI hot spot can be attached by system automatically.WIFI hot spot is typically provided with connectionPassword, can prevent from rubbing net and guaranteeing communication security.In WIFI connection procedure, for being provided with passwordWIFI hot spot, need to input password.
Existing online pattern has the disadvantage that (1) within the specific limits, if WIFI hot spot is notHaving and connect with outer net, the most simple is launching the WIFI signal of 2.4GHz, and mobile terminal still judgesHaving WIFI signal, and preferential attachment WIFI in the range of Gai, system background closes data traffic.Now,From the point of view of user side, mobile terminal has the most connected up WIFI, but still cannot get online.(2)If mobile terminal connects has gone up the WIFI hot spot that can surf the Net, but due to some unpredictable reasonsCause WIFI signal weak or the speed of Internet own is slow, and then when causing user to use WIFI to surf the NetNetwork speed already below the network speed of 4G/3G/2G data network.Now, mobile terminal still uses WIFIPath, user's experience of surfing the Net is had a greatly reduced quality.
For in prior art, mobile terminal can not monitor asking of network connectivty after being connected to WIFITopic, does not also propose effective solution.
Summary of the invention
The invention provides a kind of network performance monitoring method and device, at least to solve prior art is movedThe problem that dynamic terminal can not monitor network connectivty after being connected to WIFI.
According to an aspect of the invention, it is provided a kind of network performance monitoring method, including: monitoring roadWhether the hotspot connected by device connects with outer net, obtains the first monitoring result;Monitoring mobile terminal isNo and described router connects, and obtains the second monitoring result;In described first monitoring result or describedIndicate at least one of two monitoring results result be no in the case of, determine that described mobile terminal is by describedThe network of network performance that router connects is in the best state.
Alternatively, whether the hotspot that monitoring mobile terminal connects includes before connecting with outer net: collectThe WIFI information of described router;Wherein, described WIFI information includes at least one of: signal is strongDegree, described router receive and/or send the speed of data;Determine that described signal intensity makes a reservation for less than firstThreshold value and/or described speed are less than the second predetermined threshold.
Alternatively, whether the hotspot that monitoring router connects connects with outer net, obtains the first monitoring knotFruit includes: ping appointed website, if ping leads to described appointed website, the most described first monitoring resultIt is designated as being that, if ping can not be led to by described appointed website, the most described first monitoring result is designated as no.
Alternatively, whether monitoring mobile terminal connects with described router, obtains the second monitoring result and includes:The gateway that ping is corresponding with described router, if ping leads to described gateway, the most described second monitoring knotFruit is designated as being that, if described gateway can not be led to ping, the most described second monitoring result is designated as no.
Optionally it is determined that the network of network performance that described mobile terminal is connected by described router is inInclude after the best state: point out user's turn-on data network interface by described mobile terminal.
According to another aspect of the present invention, additionally provide a kind of network performance monitoring device, including: theOne monitoring modular, whether the hotspot connected for monitoring router connects with outer net, obtains the first prisonSurvey result;Second monitoring modular, is used for monitoring whether mobile terminal connects with described router, obtainsTwo monitoring results;First determines module, at described first monitoring result or described second monitoring knotIndicate at least one of Guo result be no in the case of, determine that described mobile terminal is by described router evenThe network of network performance connect is in the best state.
Alternatively, described device also includes: collection module, for monitoring the wireless heat that mobile terminal connectsBefore whether point connects with outer net, collect the WIFI information of described router;Wherein, described WIFI letterBreath includes at least one of: signal intensity, described router receive and/or send the speed of data;TheTwo determine module, be used for determining described signal intensity less than the first predetermined threshold and/or described speed less than theTwo predetermined thresholds.
Alternatively, described first monitoring modular is additionally operable to ping appointed website, if ping leads to described fingerDetermine website, the most described first monitoring result be designated as be, if described appointed website can not be led to, then by pingDescribed first monitoring result is designated as no.
Alternatively, described second monitoring modular is additionally operable to the ping gateway corresponding with described router, ifPing leads to described gateway, the most described second monitoring result be designated as be, if described net can not be led to pingClosing, the most described second monitoring result is designated as no.
Alternatively, described device also includes: reminding module, is used for determining that described mobile terminal is by describedAfter the network of network performance that router connects is in the best state, carried by described mobile terminalShow user's turn-on data network interface.
Pass through the present invention, it is provided that a kind of network performance monitoring method, including: monitoring router connectsWhether hotspot connects with outer net, obtains the first monitoring result;Monitoring mobile terminal whether with this routeDevice connects, and obtains the second monitoring result;At least one of the first monitoring result or the second monitoring resultInstruction result be no in the case of, determine at the network of network performance that mobile terminal is connected by routerIn the best state.Solving mobile terminal in prior art can not monitoring net after being connected to WIFIThe problem that network is connective, such that it is able to the connectedness of dynamic monitoring network, in the case of network is not smooth,More switching network, improves Consumer's Experience in time.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, belowThe accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described, aobvious andEasily insight, the accompanying drawing in describing below is some embodiments of the present invention, for ordinary skillFrom the point of view of personnel, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawingsAccompanying drawing.
Fig. 1 is the flow chart of network performance monitoring method according to embodiments of the present invention;
Fig. 2 is the structured flowchart of network performance monitoring device according to embodiments of the present invention;
Fig. 3 is another structured flowchart of network performance monitoring device according to embodiments of the present invention;
Fig. 4 is another structured flowchart of network performance monitoring device according to embodiments of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that instituteThe embodiment described is a part of embodiment of the present invention rather than whole embodiments.Based in the present inventionEmbodiment, it is all that those of ordinary skill in the art are obtained under not making creative work premiseOther embodiments, broadly fall into the scope of protection of the invention.
In describing the invention, it should be noted that term " first ", " second ", " the 3rd " onlyFor descriptive purposes, and it is not intended that instruction or hint relative importance.
As long as additionally, technical characteristic involved in invention described below difference embodiment is each otherBetween do not constitute conflict just can be combined with each other.
Embodiment 1
Providing a kind of network performance monitoring method in the present embodiment, Fig. 1 is according to embodiments of the present inventionThe flow chart of network performance monitoring method, as it is shown in figure 1, this flow process comprises the steps:
Step S11, whether the hotspot that monitoring router connects connects with outer net, obtains the first monitoringResult;
Step S12, whether monitoring mobile terminal connects with this router, obtains the second monitoring result;
Step S13, it is no for indicating result at least one of the first monitoring result or the second monitoring resultIn the case of, determine that the network of network performance that mobile terminal is connected by router is in the best shapeState.
By above-mentioned steps, whether the hotspot that router to be monitored connects connects with outer net, withTime mobile terminal to be monitored whether connect with this router, router connect hotspot and outer netIn the case of connection and mobile terminal connect with this router, just can determine that mobile terminal passes through routerThe network of network performance connected is in good state, as long as one of them does not connects, determines mobile wholeHold the network of network performance connected by router to be in the best state, solve in prior artMobile terminal can not monitor the problem of network connectivty after being connected to WIFI, such that it is able to dynamic monitoringThe connectedness of network, in the case of network is not smooth, the most more switching network, improve Consumer's Experience.
Owing to dynamic monitoring WIFI network connectedness can affect power consumption, in the case of network is normal, it is not required toIt is monitored.Therefore, in one alternate embodiment, the hotspot that monitoring mobile terminal connects isNo connect with outer net before, collect the WIFI information of this router, wherein, this WIFI information include withAt least one lower: signal intensity, router receive and/or send the speed of data, determine this signal intensityIt is less than the second predetermined threshold less than the first predetermined threshold and/or this speed.It is to say, at signal intensity ratioIn the case of less or reception, transmission data speed is smaller, just the performance of network can be supervisedSurvey, in order to avoid causing the waste of resource.Above-mentioned first predetermined threshold and the second predetermined threshold can be according to netsThe practical situations such as the requirement of network performance are determined, and the such as first predetermined threshold can be-80dbm, and secondPredetermined threshold can be 5 bags/second.
Above-mentioned steps S11 relates to monitor whether the hotspot of router connection connects with outer net, obtainsFirst monitoring result.It should be noted that the wireless heat that router connects can be monitored in several waysWhether point connects with outer net, is illustrated this below.In one alternate embodiment, ping refers toDetermining website, if ping leads to this appointed website, then the first monitoring result is designated as being that i.e. router connectsHotspot connect with outer net, if ping can not be led to by this appointed website, then this first monitoring result refers toBeing shown as no, the hotspot that i.e. router connects does not connects with outer net.
During network monitor, tested the speed by ping order, such as, can pass through pingSo.con tests the speed, if packet is all lost, then explanation ping is obstructed.When ping, also may be usedWith to so.com band page view.After having monitored, if ping lead to, interface prompt can normally onNet, is specially display network speed and the evaluation to network speed, such as: quickly, current network speed be suitable for chat, online,Play game, see video;If ping is obstructed, interface prompt is carried out even according to the order of free WIFI hot spotConnecing or user connects voluntarily, network is obstructed, carry out intelligence according to the order of free WIFI hot spot to be specially displayCan connect or network is obstructed, please manually select the WIFI that need to connect.
Above-mentioned steps S12 relates to monitor whether mobile terminal connects with this router, obtains the second monitoringResult.It should be noted that can monitor whether mobile terminal connects with this router in several ways,Below this is illustrated.In one alternate embodiment, the gateway that ping is corresponding with this router,If ping leads to this gateway, then the second monitoring result be designated as be, i.e. mobile terminal is with this router evenLogical, if this gateway can not be led to ping, then the second monitoring result is designated as no, i.e. mobile terminal with shouldRouter does not connects.By the way of ping gateway, monitor whether mobile terminal connects with this router, letterSingle easy.
When network performance is the best, in order to make user can surf the Net to continue through other modes,In one alternate embodiment, determine that the network of network performance that mobile terminal is connected by router is inAfter the best state, point out user's turn-on data network interface by mobile terminal, and then user canTo be surfed the Net by data network.
Embodiment 2
Additionally providing a kind of network performance monitoring device in the present embodiment, this device is used for realizing above-mentioned realityExecute example and preferred implementation, carry out repeating no more of explanation.As used below, term" module " can realize the software of predetermined function and/or the combination of hardware.Although described by following exampleDevice preferably realize with software, but hardware, or the realization of the combination of software and hardware is alsoMay and be contemplated.
Fig. 2 is the structured flowchart of network performance monitoring device according to embodiments of the present invention, as in figure 2 it is shown,This device includes: the first monitoring modular 21, for monitor hotspot that router connects whether with outer netConnection, obtains the first monitoring result;Second monitoring modular 22, be used for monitoring mobile terminal whether with this roadConnected by device, obtain the second monitoring result;First determines module 23, in the first monitoring result orAt least one of second monitoring result indicate result be no in the case of, determine that mobile terminal passes through this routeThe network of network performance that device connects is in the best state.
By said apparatus, not only to monitor, by the first monitoring modular 21, the hotspot that router connectsWhether connect with outer net, the most also will by the second monitoring modular 22 monitor mobile terminal whether with this routeDevice connects, and the hotspot connected at router connects with outer net and mobile terminal connects with this routerIn the case of, just can determine that the network of network performance that mobile terminal is connected by router is in goodState, as long as one of them does not connects, determines the network of network that mobile terminal is connected by routerThe best state can be in, solve mobile terminal in prior art and can not supervise after being connected to WIFIThe problem surveying network connectivty, such that it is able to the connectedness of dynamic monitoring network, in the feelings that network is not smoothUnder condition, the most more switching network, improve Consumer's Experience.
Fig. 3 is another structured flowchart of network performance monitoring device according to embodiments of the present invention, such as figureShown in 3, this device also includes: collection module 31, and the hotspot connected for monitoring mobile terminal isNo connect with outer net before, collect the WIFI information of this router;Wherein, this WIFI information include withAt least one lower: signal intensity, this router receive and/or send the speed of data;Second determines module32, it is used for determining that this signal intensity is less than the second predetermined threshold less than the first predetermined threshold and/or this speed.
Alternatively, the first monitoring modular 21 is additionally operable to ping appointed website, if ping leads to this appointment netStand, then the first monitoring result is designated as being that if ping can not be led to by this appointed website, then the first monitoring is tiedFruit is designated as no.
Alternatively, the second monitoring modular 22 is additionally operable to the ping gateway corresponding with this router, if pingThis gateway logical, then the second monitoring result is designated as being if this gateway can not be led to ping, then second to monitorResult is designated as no.
Fig. 4 is another structured flowchart of network performance monitoring device according to embodiments of the present invention, such as figureShown in 4, this device also includes: reminding module 41, is used for determining that this mobile terminal is by this router evenAfter the network of network performance connect is in the best state, by this mobile terminal, prompting user opensData network interface.
The further function of above-mentioned modules describes identical, at this no longer with above-mentioned corresponding embodimentRepeat.
In sum, a kind of network performance monitoring method provided by the present invention and device, solve existingThere is mobile terminal in technology can not monitor the problem of network connectivty after being connected to WIFI, such that it is able toThe connectedness of dynamic monitoring network, in the case of network is not smooth, the most more switching network, improve useFamily is experienced.
Those skilled in the art it should be appreciated that embodiments of the invention can be provided as method, system orComputer program.Therefore, the present invention can use complete hardware embodiment, complete software implementation,Or combine the form of embodiment in terms of software and hardware.And, the present invention can use one or moreThe computer-usable storage medium wherein including computer usable program code (includes but not limited to diskMemorizer, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present inventionThe flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchartAnd/or the flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagramAnd/or the combination of square frame.Can provide these computer program instructions to general purpose computer, special-purpose computer,The processor of Embedded Processor or other programmable data processing device is to produce a machine so that logicalThe instruction of the processor execution crossing computer or other programmable data processing device produces for realizing at streamThe function specified in one flow process of journey figure or multiple flow process and/or one square frame of block diagram or multiple square frameDevice.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to setIn the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memoryIn instruction produce and include the manufacture of command device, this command device realize in one flow process of flow chart orThe function specified in multiple flow processs and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device,Make on computer or other programmable devices, perform sequence of operations step computer implemented to produceProcess, thus the instruction performed on computer or other programmable devices provides for realizing at flow chartThe step of the function specified in one flow process or multiple flow process and/or one square frame of block diagram or multiple square frameSuddenly.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodimentRestriction.For those of ordinary skill in the field, can also do on the basis of the above descriptionGo out change or the variation of other multi-form.Here without also cannot all of embodiment be given exhaustive.And the obvious change thus extended out or variation still in the invention protection domain itIn.