CN104065523B - Connection speed detection method and device - Google Patents

Connection speed detection method and device Download PDF

Info

Publication number
CN104065523B
CN104065523B CN201310088249.8A CN201310088249A CN104065523B CN 104065523 B CN104065523 B CN 104065523B CN 201310088249 A CN201310088249 A CN 201310088249A CN 104065523 B CN104065523 B CN 104065523B
Authority
CN
China
Prior art keywords
address
connection speed
click
area
link
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
CN201310088249.8A
Other languages
Chinese (zh)
Other versions
CN104065523A (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 Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310088249.8A priority Critical patent/CN104065523B/en
Publication of CN104065523A publication Critical patent/CN104065523A/en
Application granted granted Critical
Publication of CN104065523B publication Critical patent/CN104065523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of connection speed detection method and device, belong to network communication field.Address link whether is covered in pre- click on area the described method includes: detecting;If it is detected that being covered with address link in the pre- click on area, the network address that the address covered in the pre- click on area links corresponding server is obtained;The terminal, which is detected, according to the network address that the address got links corresponding server links with the address connection speed between corresponding server.The present invention links the network address of corresponding server by obtaining the address covered in pre- click on area, and the terminal is detected according to the network address that the address got links corresponding server and links with the address connection speed between corresponding server, solving user can not play after opening video link, or playback rate it is unsmooth thus waste network bandwidth the problem of, reach saving hardware and Internet resources, improves the purpose of detection efficiency and detection performance.

Description

Connection speed detection method and device
Technical field
The present invention relates to network communication field, in particular to a kind of connection speed detection method and device.
Background technique
With the continuous development of network technology, more and more users pass through network acquisition information.For example, user can lead to It crosses the address chain clicked in Webpage and fetches watching video program or downloading file, at this time, it may be necessary to user terminal and address The connection speed linked between corresponding server is detected, so as to the intuitive netstat of user.
In existing connection speed detection method, after user clicks address link, terminal links corresponding service from address Device receives the file data of transmission, such as video program data or downloading file data, while it is inscribed to detect predetermined period of time The data volume received calculates the connection speed between terminal and server according to the data volume received in predetermined period of time.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
In existing connection speed detection method, user, which must click on to open after address links, just to be started to be attached speed Rate detection.For consolidated network resource, in order to guarantee service quality, service provider, which would generally provide multiple address chains and fetch, shares stream Amount, for example provide multiple live streaming addresses to same live television programs and link, alternatively, providing multiple downloadings to same downloading resource Address link.In order to select the optimal address link of network connection status, user is needed to click each address link successively to check Corresponding connection speed is respectively linked, and the process for opening the link page needs to occupy more hardware and Internet resources, detection effect Rate is not high, also, clicks address from user and be linked to terminal to detect that the process of corresponding connection speed needs to consume longer Time, detection performance are low.
Summary of the invention
In order to solve to need to occupy more hardware and Internet resources, the longer problem of detection time, sheet in the prior art Inventive embodiments provide a kind of connection speed detection method and device.The technical solution is as follows:
On the one hand, a kind of connection speed detection method is provided, which comprises
It detects and whether is covered with address link in pre- click on area;
If it is detected that being covered with address link in the pre- click on area, the ground covered in the pre- click on area is obtained Location links the network address of corresponding server;
The network address detection of corresponding server is linked according to the address covered in the pre- click on area got The terminal links the connection speed between corresponding server with the address covered in the pre- click on area.
On the other hand, a kind of connection speed detection device is provided, described device includes:
Whether first detection module is covered with address link for detecting in pre- click on area;
First address acquisition module, if detecting to be covered with ground in the pre- click on area for the first detection module Location link then obtains the network address that the address covered in the pre- click on area links corresponding server;
First connection speed detection module, the pre- click area for being got according to first address acquisition module The network address that the address covered in domain links corresponding server detects covering in the terminal and the pre- click on area Address links the connection speed between corresponding server.
Technical solution provided in an embodiment of the present invention has the benefit that
Link the network address of corresponding server by obtaining the address covered in pre- click on area, and according to getting Address link the network address of corresponding server and detect the terminal and link connection between corresponding server with the address Rate, solve the problem of user can not be played after opening video link or playback rate it is unsmooth thus waste network bandwidth, reach Saving hardware and Internet resources have been arrived, the purpose of detection efficiency and detection performance is improved.
Detailed description of the invention
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, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the method flow diagram for the connection speed detection method that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of connection speed detection method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of operation chart provided by Embodiment 2 of the present invention;
Fig. 4 is another operation chart provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of connection speed display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 6 is another connection speed display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 7 is another connection speed display schematic diagram provided by Embodiment 2 of the present invention;
Fig. 8 is the structure drawing of device for the connection speed detection device that the embodiment of the present invention three provides;
Fig. 9 is the structure drawing of device for the connection speed detection device that the embodiment of the present invention four 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.
Embodiment one
Referring to Figure 1, the method flow diagram of the connection speed detection method provided it illustrates the embodiment of the present invention one.This Embodiment mainly is applied to come in terminal for example, the connection speed detection method can wrap with the connection speed detection method It includes:
Step 102, it detects and whether is covered with address link in pre- click on area;
Step 104, if it is detected that being covered with address link in the pre- click on area, covering in the pre- click on area is obtained Address link the network address of corresponding server;
Step 106, the network of corresponding server is linked according to the address covered in the pre- click on area got It detects the address covered in the terminal and the pre- click on area and links connection speed between corresponding server in location.
In one embodiment, pre- click on area includes the region that directive property element is directed toward before selection determines.It is described Selection determines to include the operation such as clicking or touching, and the directive property element includes cursor, pointer, finger etc..For example, in PC platform In, pre- click on area can be before user clicks predetermined model around the pointer cursor position of mouse or other external equipments Interior region is enclosed, in mobile platform, pre- click on area, which can be gesture before user touches and be directed toward around hovering position, to be made a reservation for Region in range.
In conclusion the method that the embodiment of the present invention one provides, is linked by obtaining the address covered in pre- click on area The network address of corresponding server, and the terminal is detected according to the network address that the address got links corresponding server The connection speed between corresponding server is linked with the address, solving user can not play after opening video link, or broadcast It puts unsmooth rate thus the problem of waste network bandwidth, has reached saving hardware and Internet resources, improved detection efficiency and detection The purpose of performance.
Embodiment two
In order to which the connection speed detection method provided above-described embodiment one is described in more detail, Fig. 2 is referred to, is shown The method flow diagram of connection speed detection method provided by Embodiment 2 of the present invention is gone out.The present embodiment is mainly with the connection speed Detection method is applied to come in terminal for example, the connection speed detection method may include:
Step 202, whether terminal detects is covered with address link in pre- click on area;
In one embodiment, pre- click on area includes the region that directive property element is directed toward before selection determines.It is described Selection determines to include the operation such as clicking or touching, and the directive property element includes cursor, pointer, finger etc..For example, in PC platform In, pre- click on area can be before user clicks predetermined model around the pointer cursor position of mouse or other external equipments Interior region is enclosed, in mobile platform, pre- click on area, which can be gesture before user touches and be directed toward around hovering position, to be made a reservation for Region in range.
In addition, the shape and range of pre- click on area can be configured in advance according to actual needs.Specifically refer to Fig. 3 And Fig. 4 is cursor of mouse surrounding predetermined area which respectively show pre- click on area by taking a certain live television programs page as an example When, operation chart in both cases.Wherein, cursor of mouse surrounding predetermined area range is larger in Fig. 3, can cover simultaneously Multiple address links are covered, at this point, terminal (there can be all addresses link covered in cursor of mouse surrounding predetermined area in figure The address of underscore links) it is detected;Cursor of mouse surrounding predetermined area is very small in Fig. 4, is only capable of the region of covering very little, At this point, the address chain that terminal is only directed toward cursor of mouse arrow taps into capable detection.
Step 204, if it is detected that being covered with address link in pre- click on area, which further detects the pre- click Whether the position retention time in region is more than reservation threshold;
When pre- click on area is mobile, pre- click on area is also possible to cover address link, at this point, user may be not It needs to tap into capable detection to the address chain covered, in order to avoid unnecessary detection procedure, saves hardware resource, terminal is right Address chain taps into before row detection, it is also necessary to which whether the position retention time for detecting pre- click on area in same point is more than predetermined valve Value.
Specifically for example, terminal detects that cursor of mouse stops after moving, start the timer in predetermined clock period immediately, If the position of the cursor of mouse is not moved during timer is run to 0.5s, detect that the position of pre- click on area is protected The time is held more than reservation threshold.
Step 206, if it is detected that the position retention time of the pre- click on area is more than reservation threshold, which obtains should The address covered in pre- click on area links the network address of corresponding server;
When terminal detects that there are address chains to connect in pre- click on area, and the pre- click on area is protected in the position of current location When holding the time more than reservation threshold, then confirm that user needs to tap into capable detection to the address chain that the pre- click on area covers, at this point, The address that terminal extracts the pre- click on area covering links the network address of corresponding server.
Step 208, which links the net of corresponding server according to the address covered in the pre- click on area got The network address detected terminal links the connection speed between corresponding server with the address covered in the pre- click on area;
Terminal can obtain the data of predetermined amount of data according to the network address of acquisition from corresponding server, while record obtains Take the time used in the data of the predetermined amount of data, and by the number of the predetermined amount of data and the acquisition of record predetermined amount of data According to the used time between ratio link corresponding service as the address covered in the terminal and the pre- click on area Connection speed between device.For example, terminal obtains 300kb from corresponding server according to the network address that an address of acquisition links Data, the acquisition time of record is 1s, then the terminal links the connection speed between corresponding server with the address and is 300kb/s。
Alternatively, terminal can also be interior at preset time intervals, number is obtained from the server according to the network address of acquisition According to, while the data volume that statistics obtains in the predetermined time interval, and the data volume that statistics is obtained and the predetermined time Ratio between interval links the connection between corresponding server as the address covered in the terminal and the pre- click on area Rate.For example, terminal obtains number from corresponding server in the time interval of 1s, according to the network address for obtaining address link According to counting the data volume that gets is 250kb, then the terminal links the connection speed between corresponding server with the address and is 250kb/s。
As the supplement of above-mentioned connection speed detection method, terminal can also take the network diagnosis work built in operating system Have to detect terminal and address and link connection state among corresponding server.With PING (Packet Internet Groper, the detection of network packet) for, terminal sends to the corresponding server of network address got according to Ping order and subscribes The data packet of quantity, server return again to the data packet received to terminal, and terminal is according to the quantity of the data packet received And packet loss and transmission between the delay estimation terminal server corresponding with the network address got of received data packet Time delay, and determine whether the connection between terminal and server is unobstructed according to the packet loss and propagation delay time that estimate.
Step 210, which it is corresponding to show that the terminal detected is linked with the address that pre- click on area covers to user Server between connection speed corresponding to information.
Wherein, information corresponding to connection speed includes connection speed and connection speed grade.Terminal can be in the pre- point The connection speed that display detects in the address link surrounding preset range covered in region is hit, and/or, according to the company detected It connects rate and determines connection speed grade, and the address chain attachment covered in the pre- click on area closely shows the connection speed etc. Grade, different connection speed grades include the predetermined pattern of different digital, different colors, different texts and different numbers One of or two or more combinations.The method of display can be floating layer and show, flash is shown etc..
Terminal directly can be attached the numerical value of nearly display connection speed in address chain, can also show according to connection speed The connection speed grade that numerical value determines, wherein the numerical value of connection speed and the corresponding relationship of connection speed grade may refer to down State table 1:
Table 1
Wherein, M represents the mainstream connection speed in current network, and specific value can refer to current internet environment and set It is fixed.
Specifically, refer to Fig. 5, it illustrates a kind of connection speed display schematic diagram provided by Embodiment 2 of the present invention, Wherein, cursor of mouse surrounding predetermined area is very small, only covers " address 9 ", and terminal is only shown should " address 9 " corresponding connection Rate and connection speed grade.Its connection speed grade is with five lattice signal icon representations, and a lattice indicate extremely slow, and five lattice indicate pole Fastly.In addition, terminal, which can also link address, adds corresponding background color to distinguish connection speed grade, for example, setting by Five kinds of connection speed grades shallowly are respectively corresponded to deep five kinds of colors, color is deeper, and connection speed is faster.
In the above scheme, when being covered with the link of more than two addresses in the pre- click on area, terminal can be all Information corresponding to the corresponding connection speed of display, also can choose only in capped address link surrounding preset range Show the corresponding information of the address link that connection speed is most fast in the link of the two or more address.
The case where being linked for the address for only showing that connection speed is most fast in more than two address links, specifically, terminal The first best address link is determined first, which is linked as the more than two addresses covered in the pre- click on area The most fast address link of connection speed in link;Terminal shows detection in preset range around the first best address links The connection speed of first best address link out, the connection speed of first best address link are as follows: the terminal and this One best address links the connection speed between corresponding server;And/or terminal is according to the first best address detected The connection speed of link determines the connection speed grade of the first best address link, and around the first best address link The connection speed grade of the display first best address link in preset range, different connection speed grades includes different number Word, one of the predetermined pattern of different colors, different texts and different number or two or more combinations.
Fig. 6 specifically is referred to, it illustrates another connection speed display schematic diagram provided by Embodiment 2 of the present invention, with Fig. 3 is corresponding, 9 address links is covered in pre- click on area, wherein the connection speed of " address 9 " is most fast, then terminal It shows connection speed corresponding to " address 9 ", while being connected thereto the corresponding background color of speed grade for the addition of address 9.
As a preferred embodiment of the above solution, when being only covered with an address link in pre- click on area, terminal can also be obtained Same resource address is taken to link the network address of corresponding server, this is linked as in current page clicking area with pre- with resource address The identical address link of the purpose resource of the address link covered in domain;Terminal also according to get this with resource address link The network address of corresponding server detects the terminal and links connection speed between corresponding server with resource address with this, And show that the terminal that detects links information corresponding to connection speed between corresponding server with resource address with this. Wherein, terminal according to get this with the network address that resource address links corresponding server detect the terminal and this with provide Source address links in the step of connection speed between corresponding server and step 208 according in the pre- click on area got The network address that the address of covering links corresponding server detects the terminal and links with the address covered in the pre- click on area The step of connection speed between corresponding server, is similar, and details are not described herein again.
It wherein, can be first from preset when terminal acquisition links the network address of corresponding server with resource address The page template of current page is inquired in page template library, includes to have purpose resource identical each in the page template of current page A address is linked at the relative position in the current page;Terminal includes according in the page template of the current page inquired The identical each address of purpose resource be linked at the relative position in current page and determine and linked with resource address, and obtain true Fixed same resource address links the network address of corresponding server.It wherein, include developer's collection in page template library And safeguard network in all pages page template.
In addition, terminal links with this connection between corresponding server in the terminal that detects of display with resource address When rate, the information for only showing that this is corresponding with the most fast address link of connection speed in resource address link can choose.Tool Body, terminal determines the second best address link first, which is linked as this with connecting in resource address link The most fast address link of rate;Terminal can be shown in preset range around the second best address link detect this The connection speed of two best addresses links, the connection speed of second best address link are as follows: the terminal and this second most preferably Location links the connection speed between corresponding server;And/or the terminal can also be according to the second best address detected The connection speed of link determines the connection speed grade of the second best address link, and around the second best address link The connection speed grade of the display second best address link in preset range, different connection speed grades includes different number Word, one of the predetermined pattern of different colors, different texts and different number or two or more combinations.
Fig. 7 specifically is referred to, it illustrates another connection speed display schematic diagram provided by Embodiment 2 of the present invention, In, " address 6 " this address link in " 01 collection download address " is covered only in pre- click on area, also, terminal detects Out in " 01 collection download address ", " address 9 " corresponding connection speed is most fast, at this point, terminal is corresponding in addition to display " address 6 " Except connection speed and connection speed grade, the connection speed and connection speed grade of " address 9 " are also shown, while being " address 6 " are connected thereto the corresponding background color of speed grade with " address 9 " addition.
In addition, connection of the terminal between showing the terminal detected to user with the address to link corresponding server Before rate, whether the position for also detecting the pre- click on area is moved;If it is detected that the position of the pre- click on area is mobile, eventually End, which is terminated, detects the terminal according to the network address that the address of the pre- click on area covering got links corresponding server The step of linking the connection speed between corresponding server with the address that the pre- click on area covers, and terminate basis and get Same resource address link the network address of corresponding server and detect the terminal and link corresponding service with resource address with this The step of connection speed between device.
In conclusion connection speed detection method provided by Embodiment 2 of the present invention, by obtaining fate around cursor The address covered in domain links the network address of corresponding server, and links corresponding server according to the address got Network address detects the terminal and the address and links connection speed between corresponding server, to user's the machine present period Interior, (such as play target video) whether smoothness is done detects in advance, and returns to effective information, so as to user shift to an earlier date decision whether after The video is put in continued broadcasting.The embodiment of the present invention is able to solve that user can not play after opening video link or playback rate is unsmooth And the problem of wasting network bandwidth, reach saving hardware and Internet resources, improves the purpose of detection efficiency and detection performance;Its Secondary, connection speed detection method provided by Embodiment 2 of the present invention also is detecting to be covered in the presumptive area around cursor After the link of address, whether the further detection light target residence time is more than reservation threshold, obtains corresponding clothes if so, executing The step of network address of business device, solves the problems, such as that possibility taps into row detection to the address chain for not needing detection, reaches and avoid Unnecessary detection procedure saves the purpose of hardware resource.
Embodiment three
Fig. 6 is referred to, it illustrates the structure drawing of device for the connection speed detection device that the embodiment of the present invention three provides.It should Connection speed detection device may be implemented to become a part in terminal or terminal.The connection speed detection device, can wrap It includes:
Whether first detection module 301 is covered with address link for detecting in pre- click on area;
First address acquisition module 302, if detecting to be covered with address in pre- click on area for first detection module 301 Link then obtains the network address that the address covered in the pre- click on area links corresponding server;
First connection speed detection module 303, the address link for being got according to the first address acquisition module 302 The network address of corresponding server detect the address covered in the terminal and the pre- click on area link corresponding server it Between connection speed.
In one embodiment, pre- click on area includes the region that directive property element is directed toward before selection determines.It is described Selection determines to include the operation such as clicking or touching, and the directive property element includes cursor, pointer, finger etc..For example, in PC platform In, pre- click on area can be before user clicks predetermined model around the pointer cursor position of mouse or other external equipments Interior region is enclosed, in mobile platform, pre- click on area, which can be gesture before user touches and be directed toward around hovering position, to be made a reservation for Region in range.
In conclusion the connection speed detection device that the embodiment of the present invention three provides, by obtaining fate around cursor The address covered in domain links the network address of corresponding server, and links corresponding server according to the address got Network address detects the terminal and the address and links connection speed between corresponding server, solves user and is opening video link Can not be played after connecing or playback rate it is unsmooth and the problem of waste network bandwidth, reached saving hardware and Internet resources, improved The purpose of detection efficiency and detection performance.
Example IV
In order to which the connection speed detection device provided above-described embodiment three is described further, Fig. 7 is referred to, is shown The structure drawing of device for the connection speed detection device that the embodiment of the present invention four provides.The connection speed detection device may be implemented As a part in terminal or terminal.The connection speed detection device may include:
Whether first detection module 301 is covered with address link for detecting in pre- click on area;
First address acquisition module 302, if detecting to be covered with address in pre- click on area for first detection module 301 Link then obtains the network address that the address covered in the pre- click on area links corresponding server;
First connection speed detection module 303, the pre- click area for being got according to the first address acquisition module 302 The network address that the address covered in domain links corresponding server detects the address covered in the terminal and the pre- click on area Link the connection speed between corresponding server.
In one embodiment, pre- click on area includes the region that directive property element is directed toward before selection determines.It is described Selection determines to include the operation such as clicking or touching, and the directive property element includes cursor, pointer, finger etc..For example, in PC platform In, pre- click on area can be before user clicks predetermined model around the pointer cursor position of mouse or other external equipments Interior region is enclosed, in mobile platform, pre- click on area, which can be gesture before user touches and be directed toward around hovering position, to be made a reservation for Region in range.
Second detection module 304 is linked for obtaining the address covered in the pre- click on area in address acquisition module 302 Before the network address of corresponding server, whether the position retention time for detecting the pre- click on area is more than reservation threshold;
First address acquisition module 302, if detecting that the position of the pre- click on area is kept for the second detection module 304 Time is more than reservation threshold, then executes the step of acquisition address links the network address of corresponding server.
Wherein, the first connection speed detection module 303, comprising:
First data capture unit 303a, the network address for being obtained according to the first address acquisition module 302 from this The data of server acquisition predetermined amount of data;
Time recording unit 303b obtains the data of the predetermined amount of data for recording the first data capture unit 303a Time;
First rate acquiring unit 303c, for by the predetermined amount of data and record acquisition the predetermined amount of data data Time between ratio the company between corresponding server is linked as the address covered in the terminal and the pre- click on area Connect rate.
In addition, the first connection speed detection module 303 further include:
Second data capture unit 303d is obtained at preset time intervals according to the first address acquisition module 302 The network address from the server obtain data;
Data volume statistic unit 303e is obtained in the predetermined time interval for counting the second data capture unit 303d Data volume;
Second rate acquiring unit 303f, for the ratio between the obtained data volume and the predetermined time interval will to be counted Value links the connection speed between corresponding server with the address covered in the pre- click on area as the terminal.
The device further include:
First connection speed display module 305, for the first connection speed detection module 303 according to get this is pre- The network address that the address covered in click on area links corresponding server detects covering in the terminal and the pre- click on area Address link the connection speed between corresponding server after, to user show the first connection speed detection module 303 examine The terminal measured links corresponding to the connection speed between corresponding server with the address covered in the pre- click on area Information.
First connection speed display module 305, comprising:
First display unit 305a is shown in preset range around the address link for covering in the pre- click on area The connection speed that first connection speed detection module 303 detects;
First rate level de-termination unit 305b, the connection for being detected according to the first connection speed detection module 303 Rate determines connection speed grade;
Second display unit 305c shows the around the address link for covering in pre- click on area in preset range The connection speed grade that one speed grade determination unit 305b is determined;
Different connection speed grades includes the pre- of different digital, different colors, different texts and different numbers Determine one of pattern or more than one combination.
First connection speed display module 305, further includes:
First best address determination unit 305d, for when be covered in pre- click on area more than two addresses link when, Determine the first best address link, which is linked as in the link of the more than two addresses covered in pre- click on area Connection speed it is most fast address link;
Third display unit 305e, for being linked in the first best address that the first best address determination unit 305d is determined The connection speed of the best address link of the first connection speed detection module 303 of display detects in the preset range of surrounding first Corresponding information.
The device further include:
Second address acquisition module 306, for obtaining with money when being only covered with an address link in pre- click on area Source address links the network address of corresponding server, and it is all with pre- click that this with resource address is linked as other in current page The identical address link of the purpose resource of the address link covered in region;
Second connection speed detection module 307, the same resource address for being got according to the second address acquisition module 306 The network address for linking corresponding server detects the terminal and links connection between corresponding server with resource address with this Rate;
Second connection speed display module 308, the terminal detected for showing the second connection speed detection module 307 Information corresponding to the connection speed between corresponding server is linked with resource address with this.
Second address acquisition module 306, comprising:
Page template query unit 306a, for inquiring the page template of current page from preset page template library, Comprising there is the identical each address of purpose resource to be linked at the relative position in current page in the page template of the current page;
With resource link determination unit 306b, current page for being inquired according to page template query unit 306a The relative position that the identical each address of the purpose resource for including in page template is linked in current page determines the same resource Address link;
With resource address acquiring unit 306c, for obtain determine with resource link determination unit 306b this with resource Location links the network address of corresponding server.
Second connection speed display module 308, comprising:
Second best address determination unit 308a, for determining the second best address link, the second best address link For same resource address link in connection speed it is most fast address link;
5th display unit 308b, for being linked in the second best address that the second best address determination unit 308a is determined The connection speed of the best address link of the second connection speed detection module 307 of display detects in the preset range of surrounding second Corresponding information.
The device further include:
Whether third detection module 309, the position for detecting pre- click on area move;
If third detection module 309 detects that the position of pre- click on area is mobile,
First connection speed detection module 303 terminates the pre- click on area got according to the first address acquisition module 302 The address that the address of interior covering links covering in the network address detection terminal and pre- click on area of corresponding server links pair The step of connection speed between the server answered;
Second connection speed detection module 307 terminates the same resource address got according to the second address acquisition module 306 The network address detection terminal for linking corresponding server links connection speed between corresponding server with same resource address The step of.
In conclusion the connection speed detection device that the embodiment of the present invention four provides, by obtaining fate around cursor The address covered in domain links the network address of corresponding server, and links corresponding server according to the address got Network address detects the terminal and the address and links connection speed between corresponding server, to user's the machine present period Interior, (such as play target video) whether smoothness is done detects in advance, and returns to effective information, so as to user shift to an earlier date decision whether after The video is put in continued broadcasting.The embodiment of the present invention is able to solve that user can not play after opening video link or playback rate is unsmooth Thus the problem of waste network bandwidth, reach saving hardware and Internet resources, improves the purpose of detection efficiency and detection performance; Secondly, the connection speed detection device that the embodiment of the present invention four provides, also is detecting to cover in the presumptive area around cursor After having address link, whether the further detection light target residence time is more than reservation threshold, if so, it is corresponding to execute acquisition The step of network address of server, solves the problems, such as that possibility taps into row detection to the address chain for not needing detection, reaches and keep away Exempt from unnecessary detection procedure, saves the purpose of hardware resource.
It should be understood that connection speed detection device provided by the above embodiment is when detecting connection speed, only more than The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, connection speed detection device provided by the above embodiment belongs to connection speed detection method embodiment Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above 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 in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (19)

1. a kind of connection speed detection method, in terminal, which is characterized in that the described method includes:
It detects and whether is covered with address link in pre- click on area;
If it is detected that being covered with address link in the pre- click on area, the address chain covered in the pre- click on area is obtained Connect the network address of corresponding server;
According to the address covered in the pre- click on area got link corresponding server network address detection described in Terminal links the connection speed between corresponding server with the address covered in the pre- click on area;
Show that the terminal detected links the company between corresponding server with the address covered in the pre- click on area Connect information corresponding to rate;When being only covered with an address link in the pre- click on area, obtain with resource address chain The network address of corresponding server is connect, the same resource address is linked as in current page covering in the pre- click on area Address link the link of purpose resource identical address;Corresponding server is linked according to the same resource address got Network address detect the terminal and link connection speed between corresponding server with the same resource address;Display detection The terminal out with the same resource address link the connection speed between corresponding server corresponding to information.
2. the method according to claim 1, wherein described obtain the address chain covered in the pre- click on area Before the network address for connecing corresponding server, further includes:
Whether the position retention time for detecting the pre- click on area is more than reservation threshold;
If it is detected that the position retention time of the pre- click on area is more than reservation threshold, the acquisition address chain is executed The step of connecing the network address of corresponding server.
3. according to the method described in claim 2, it is characterized in that, covering in the pre- click on area that the basis is got Address link the network address of corresponding server and detect the address covered in the terminal and the pre- click on area and link Connection speed between corresponding server, comprising:
The data of predetermined amount of data are obtained from the server according to the network address of acquisition;
Record obtains the time of the data of the predetermined amount of data;
Using the ratio between the time of the data of the acquisition of the predetermined amount of data and record predetermined amount of data as described in Terminal links the connection speed between corresponding server with the address covered in the pre- click on area.
4. according to the method described in claim 2, it is characterized in that, covering in the pre- click on area that the basis is got Address link the network address of corresponding server and detect the address covered in the terminal and the pre- click on area and link Connection speed between corresponding server, comprising:
In at preset time intervals, data are obtained from the server according to the network address of acquisition;
Count the data volume obtained in the predetermined time interval;
The ratio between the obtained data volume and the predetermined time interval will be counted as the terminal and the pre- point It hits the address covered in region and links connection speed between corresponding server.
5. the method according to claim 1, wherein described show the terminal detected and the address chain Connect information corresponding to the connection speed between corresponding server, comprising:
The connection speed detected is shown in the preset range around the link of address covered in the pre- click on area;
And/or
Connection speed grade is determined according to the connection speed detected;The address link covered in the pre- click on area Around preset range in the display connection speed grade, different connection speed grades includes different digital, different One of predetermined pattern of color, different texts and different numbers or two or more combinations.
6. the method according to claim 1, wherein when being covered with more than two addresses in the pre- click on area When link, it is described show the terminal that detects and the address of covering in the pre- click on area link corresponding server it Between connection speed corresponding to information, comprising:
Determine that the first address links, first address is linked as the more than two addresses covered in the pre- click on area link In connection speed it is most fast address link;
The connection speed of first address link detected is shown in the preset range around the link of first address Corresponding information.
7. the method according to claim 1, wherein the acquisition links corresponding server with resource address Network address, comprising:
The page template of current page is inquired from preset page template library, includes in the page template of the current page The identical each address of purpose resource is linked at the relative position in the current page;
Institute is linked at according to the identical each address of the purpose resource for including in the page template of the current page inquired It states the relative position in current page and determines the same resource address link;
Obtain the network address that the determining same resource address links corresponding server.
8. the method according to claim 1, wherein described show the terminal and the same resource detected Address links information corresponding to the connection speed between corresponding server, comprising:
Determine that the second address links, the most fast ground of the connection speed that second address is linked as in the same resource address link Location link;
The connection speed of second address link detected is shown in the preset range around the link of second address Corresponding information.
9. method according to any one of claims 1 to 8, which is characterized in that the method also includes:
Whether move the position for detecting the pre- click on area;
If it is detected that the position of the pre- click on area is mobile, terminates and covered in the pre- click on area that the basis is got The network address that the address of lid links corresponding server detects the address chain covered in the terminal and the pre- click on area The step of connecing the connection speed between corresponding server;And terminate the same resource address link pair that the basis is got It is fast that the network address for the server answered detects the connection that the terminal is linked with the same resource address between corresponding server The step of rate.
10. a kind of connection speed detection device, in terminal, which is characterized in that described device includes:
Whether first detection module is covered with address link for detecting in pre- click on area;
First address acquisition module, if detecting to be covered with address chain in the pre- click on area for the first detection module It connects, then obtains the network address that the address covered in the pre- click on area links corresponding server;
First connection speed detection module, in the pre- click on area for being got according to first address acquisition module The network address that the address of covering links corresponding server detects the address covered in the terminal and the pre- click on area Link the connection speed between corresponding server;
First connection speed display module, in the first connection speed detection module according to the pre- click got The network address that the address covered in region links corresponding server detects covering in the terminal and the pre- click on area Address link the connection speed between corresponding server after, show what the first connection speed detection module detected The terminal links letter corresponding to the connection speed between corresponding server with the address covered in the pre- click on area Breath;
Described device further include: the second address acquisition module is only covered with an address chain for working as in the pre- click on area When connecing, the network address that corresponding server is linked with resource address is obtained;
Second connection speed detection module, the same resource address chain for being got according to second address acquisition module The network address for connecing corresponding server detects the terminal and links company between corresponding server with the same resource address Connect rate;
Second connection speed display module, for showing the terminal and institute that the second connection speed detection module detects It states same resource address and links information corresponding to connection speed between corresponding server.
11. device according to claim 10, which is characterized in that described device further include:
Second detection module is corresponded to for obtaining the address covered in the pre- click on area link in the address acquisition module Server network address before, whether the position retention time for detecting the pre- click on area is more than reservation threshold;
First address acquisition module, if detecting that the position of the pre- click on area is kept for second detection module Time is more than reservation threshold, then executes the step of acquisition address links the network address of corresponding server.
12. device according to claim 11, which is characterized in that the first connection speed detection module, comprising:
First data capture unit, the network address for being obtained according to first address acquisition module is from the service The data of device acquisition predetermined amount of data;
Time recording unit, the time for obtaining the data of the predetermined amount of data for recording first data capture unit;
First rate acquiring unit, for by the data of the predetermined amount of data and the acquisition predetermined amount of data of record when Between between ratio the company between corresponding server is linked as the address covered in the terminal and the pre- click on area Connect rate.
13. device according to claim 11, which is characterized in that the first connection speed detection module, comprising:
Second data capture unit, at preset time intervals, according to first address acquisition module acquisition Network address obtains data from the server;
Data volume statistic unit, the data obtained in the predetermined time interval for counting second data capture unit Amount;
Second rate acquiring unit is made for that will count the ratio between the obtained data volume and the predetermined time interval Address to cover in the terminal and the pre- click on area links the connection speed between corresponding server.
14. device according to claim 10, which is characterized in that
The first connection speed display module, comprising:
First display unit shows described the around the address link for covering in the pre- click on area in preset range The connection speed that one connection speed detection module detects;
First rate level de-termination unit, the connection speed for being detected according to the first connection speed detection module determine Connection speed grade;
Second display unit, the address chain attachment for covering in the pre- click on area closely show the first rate grade The connection speed grade that determination unit determines;
Different connection speed grades includes the predetermined figure of different digital, different colors, different texts and different numbers One of case or more than one combination.
15. device according to claim 10, which is characterized in that the first connection speed display module, further includes:
First address determination unit, for determining first when being covered with the link of more than two addresses in the pre- click on area Address link, first address are linked as the connection speed in the link of the more than two addresses covered in the pre- click on area Most fast address link;
Third display unit, in the preset range around the link of the first address that first address determination unit determines Show information corresponding to the connection speed for first address link that the first connection speed detection module detects.
16. device according to claim 10, which is characterized in that second address acquisition module includes:
Page template query unit, it is described current for inquiring the page template of current page from preset page template library Comprising there is the identical each address of purpose resource to be linked at the relative position in the current page in the page template of the page;
With resource link determination unit, the page template of the current page for being inquired according to the page template query unit In include the relative position that is linked in the current page of the identical each address of purpose resource with determining the same resource Location link;
With resource address acquiring unit, corresponded to for obtaining the same resource address link determined with resource link determination unit Server network address.
17. device according to claim 10, which is characterized in that the second connection speed display module, comprising:
Second address determination unit, for determining that the second address links, second address is linked as the same resource address chain The most fast address link of connection speed in connecing;
5th display unit, in the preset range around the link of the second address that second address determination unit determines Show information corresponding to the connection speed for second address link that the second connection speed detection module detects.
18. 0 to 17 any device according to claim 1, which is characterized in that described device further include:
Whether third detection module, the position for detecting the pre- click on area move;
If the third detection module detects that the position of the pre- click on area is mobile, first connection speed detects mould The address link covered in the pre- click on area got described in the termination of a block according to first address acquisition module corresponds to Server network address detect the address covered in the terminal and the pre- click on area link corresponding server it Between connection speed the step of;The second connection speed detection module termination is described to be obtained according to second address acquisition module The network address that the same resource address got links corresponding server detects the terminal and the same resource address chain The step of connecing the connection speed between corresponding server.
19. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage at least one refers to It enables, claim 1-9 any connection speed detection method is realized when described instruction is executed by processor.
CN201310088249.8A 2013-03-19 2013-03-19 Connection speed detection method and device Active CN104065523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310088249.8A CN104065523B (en) 2013-03-19 2013-03-19 Connection speed detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310088249.8A CN104065523B (en) 2013-03-19 2013-03-19 Connection speed detection method and device

Publications (2)

Publication Number Publication Date
CN104065523A CN104065523A (en) 2014-09-24
CN104065523B true CN104065523B (en) 2019-08-27

Family

ID=51553065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310088249.8A Active CN104065523B (en) 2013-03-19 2013-03-19 Connection speed detection method and device

Country Status (1)

Country Link
CN (1) CN104065523B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385594A (en) * 2016-09-18 2017-02-08 深圳市青柠互动科技开发有限公司 Method for optimizing video live broadcast services
CN107707938B (en) * 2017-10-11 2020-12-08 湖南机友科技有限公司 Method and device for reducing live video playing delay
CN107896345A (en) * 2017-11-24 2018-04-10 四川长虹电器股份有限公司 The method of test network Connection Time in Android intelligent television
CN113542072B (en) * 2021-07-19 2023-01-20 凌云天博光电科技股份有限公司 Signal intensity display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523481A (en) * 2002-11-29 2004-08-25 �ձ����ŵ绰��ʽ���� Linked contents browsing support device, and method and program therefor, and recording medium therewith
CN101247405A (en) * 2008-03-27 2008-08-20 深圳市迅雷网络技术有限公司 Method, system and device for calculating download time and resource downloading
CN101615197A (en) * 2009-07-30 2009-12-30 浙江大学 A kind of personalized network resource recommended method of connection speed Network Based

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523481A (en) * 2002-11-29 2004-08-25 �ձ����ŵ绰��ʽ���� Linked contents browsing support device, and method and program therefor, and recording medium therewith
CN101247405A (en) * 2008-03-27 2008-08-20 深圳市迅雷网络技术有限公司 Method, system and device for calculating download time and resource downloading
CN101615197A (en) * 2009-07-30 2009-12-30 浙江大学 A kind of personalized network resource recommended method of connection speed Network Based

Also Published As

Publication number Publication date
CN104065523A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN106339398B (en) A kind of pre-reading method of Webpage, device and intelligent terminal
CN104065523B (en) Connection speed detection method and device
CN110730387B (en) Video playing control method and device, storage medium and electronic device
CN102932206B (en) The method and system of monitoring website access information
CN102932207B (en) The method of monitoring website access information and server
US20120317151A1 (en) Model-Based Method for Managing Information Derived From Network Traffic
CN108737898A (en) A kind of hot spot live streaming method for pushing, server and storage medium
US8823750B2 (en) Input pointer delay and zoom logic
TW201510868A (en) Methods and apparatuses of switching applications and adding entry information
US11175735B2 (en) Choice-based analytics that combine gaze and selection data
CA2769946A1 (en) A method and system for efficient and exhaustive url categorization
CN103729446A (en) Processing method and device for user operation data and server
CN106230809B (en) A kind of mobile Internet public sentiment monitoring method and system based on URL
CN108287743A (en) Method for page jump, terminal in application program and storage medium
JP6447726B2 (en) Card addition method, apparatus, device, and computer storage medium
CN104394475A (en) Streaming media file playing method and media player
CN102385583A (en) Method for controlling browser to open window and web browser
CN103530029A (en) EMS graphical dynamic menu display method based on human-computer interface user behavior analysis
CN102469034A (en) Floatable novel Internet real-time chat method based on browser
CN112818201A (en) Network data acquisition method and device, computer equipment and storage medium
CN105956086A (en) Multimedia resource recommendation method and apparatus
Kupoluyi et al. Muzeel: Assessing the impact of JavaScript dead code elimination on mobile web performance
CN110020237A (en) Webpage jump method and device
CN110045924A (en) It is classified storage method, device, electronic equipment and computer readable storage medium
CN104571859B (en) A kind of method and its terminal controlling player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant