CN107040617A - The method and device of data processing - Google Patents

The method and device of data processing Download PDF

Info

Publication number
CN107040617A
CN107040617A CN201610885578.9A CN201610885578A CN107040617A CN 107040617 A CN107040617 A CN 107040617A CN 201610885578 A CN201610885578 A CN 201610885578A CN 107040617 A CN107040617 A CN 107040617A
Authority
CN
China
Prior art keywords
address
domain name
preset
quality
terminal
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
CN201610885578.9A
Other languages
Chinese (zh)
Other versions
CN107040617B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610885578.9A priority Critical patent/CN107040617B/en
Publication of CN107040617A publication Critical patent/CN107040617A/en
Application granted granted Critical
Publication of CN107040617B publication Critical patent/CN107040617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of method and device of data processing, is related to Internet technical field, can further improve the efficiency of connection IP address.The method of the present invention mainly includes:Obtain domain name and the current environmental information of terminal to be visited;IP(Internet Protocol) IP address corresponding with domain name and matching with the environmental information is searched from default memory space;If finding the IP address, based on default IP quality-ordereds algorithm, quality-ordered is carried out to the IP address, so as to which after quality-ordered result is obtained, operation is attached according to the quality-ordered result.

Description

Data processing method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method and apparatus.
Background
In the Internet, each device communicates with another device via an IP (Internet Protocol) Address. For the convenience of user memory, a domain name is often used to identify a site address instead of an IP address, that is, one domain name corresponds to at least one IP address. When a client performs network access, a DNS (Domain Name System) server of an operator may resolve a plurality of IP addresses, and after obtaining the IP addresses, the client performs connection operations in sequence according to the received IP address sequence, that is, first tries to establish connection with a first IP address, if the connection is successful, the client performs communication with a server corresponding to the first IP address, and if the connection is failed, tries to establish connection with a second IP address until the connection with a certain IP address is successful. The time it takes for a client to establish a connection with each IP address is different, since the inherent or variable performance (e.g., load, wire speed, etc.) of different servers tends to be different. Therefore, if the IP address with poor quality is located in the front and the IP address with good quality is located in the back of the IP addresses sent by the DNS server, the client may take a lot of time to complete the connection operation.
In order to reduce the connection consumption time and increase the connection power, an optimization scheme, i.e. http dnslib, is proposed in the prior art. The specific implementation mode of the scheme is as follows: a server terminal which is specially used for analyzing the domain name of the client terminal is deployed for the client terminal; when a client accesses a certain domain name, sending an HTTP (Hypertext Transfer Protocol) request to the server, and after receiving the HTTP request, the server searches IP addresses corresponding to the domain name and sends the IP addresses to the client; after receiving the IP addresses issued by the server, the client performs quality sequencing on the IP addresses based on multiple dimensions, and tries connection operation in sequence from high to low based on quality until the connection is successful, so that the connection efficiency is improved. In addition, in order to enable the client to quickly obtain the IP address corresponding to the domain name, after the client obtains the IP address corresponding to a certain domain name from the server for the first time, the IP addresses are cached to the local, so that when the client accesses the domain name again, the client can directly obtain the corresponding IP address from the cache. However, for the same website or application, different servers are often deployed in different regions, and different servers are also deployed for different network types, and a client is easier to quickly and successfully connect with a server which is close to the client and has the same network type. Therefore, under the condition that the client locally caches the IP address obtained when a domain name is accessed for the first time, when the client accesses the domain name again, the geographical location or the used network type of the client may be different from that when the domain name is accessed for the first time, so that if the IP address in the cache is directly used as the IP address to be connected, connection efficiency may be low, and even if the connection is over time, all connections fail, and the IP address needs to be requested again from the server, which is time-consuming. Therefore, how to further improve the efficiency of connecting IP addresses is a big problem today.
Disclosure of Invention
In view of this, the data processing method and apparatus provided by the present invention can solve the problem of low efficiency of connecting IP addresses in the prior art.
In one aspect, the present invention provides a method of data processing, the method comprising:
acquiring a domain name to be accessed and current environmental information of a terminal;
searching an Internet Protocol (IP) address which corresponds to the domain name and is matched with the environmental information from a preset storage space;
and if the IP address is found, performing quality sequencing on the IP address based on a preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after the quality sequencing result is obtained.
In another aspect, the present invention provides an apparatus for data processing, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a domain name to be accessed and the current environmental information of a terminal;
the searching unit is used for searching an Internet Protocol (IP) address which corresponds to the domain name and is matched with the environmental information from a preset storage space;
and the sorting unit is used for performing quality sorting on the IP addresses based on a preset IP quality sorting algorithm when the searching unit finds the IP addresses so as to perform connection operation according to the quality sorting result after the quality sorting result is obtained.
By means of the technical scheme, the data processing method and the data processing device provided by the invention can determine the current environment information of the terminal after the domain name to be accessed is obtained, then search the IP address corresponding to the domain name and matched with the environment information from the preset storage space, perform quality sorting on the IP addresses based on a preset IP quality sorting algorithm if the IP address is searched, and perform connection operation according to the quality sorting result after the quality sorting result is obtained. Compared with the prior art that the IP address corresponding to the domain name in the preset storage space is directly used as the IP address to be connected, the IP address which simultaneously meets the two conditions of corresponding to the domain name to be accessed and matching with the environment information is determined as the IP address to be connected, so that the IP addresses acquired from the preset storage space are all the IP addresses which can be connected under the current environment (including the geographic position and the network type) of the terminal, and the phenomenon that the connection time is long and even the connection fails because the connection time is over is avoided when the IP address corresponding to the domain name stored in the preset storage space is not the IP address under the current environment of the terminal and is also connected with the IP addresses. Therefore, the invention can quickly acquire a group of IP addresses which are easy to connect by the client at present, and then try to connect in sequence according to the quality of the group of IP addresses, thereby further improving the efficiency of connecting the IP addresses.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method of data processing provided by an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method of data processing provided by an embodiment of the present invention;
FIG. 3 is a block diagram illustrating components of an apparatus for data processing according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another data processing apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a data processing method, which is mainly applied to a client side, and as shown in fig. 1, the method mainly includes:
101. and acquiring the domain name to be accessed and the current environment information of the terminal.
When a user wants to access a certain website on the client, the client can be triggered to access the website by clicking a link or inputting the website through a website input field. When a user clicks a link in a webpage or inputs a website in a website input field and the link is performed, the client can acquire a domain name to be accessed from the accessed website, and after the domain name is acquired, current environment information of the terminal is determined so as to search a required IP address based on the environment information.
Specifically, the environment information mainly includes a geographical location and a network type. The network types mainly include a 2G (The2rd Generation Telecommunication, second Generation mobile communication technology) network, a 3G (The 3rd Generation Telecommunication, third Generation mobile communication technology) network, a 4G (The 4rd Generation Telecommunication, fourth Generation mobile communication technology) network, and a WiFi (Wireless Fidelity) network.
102. And searching an IP address corresponding to the domain name and matched with the environmental information from a preset storage space.
Specifically, after determining the current environment information of the terminal to which the client belongs, the client may first search for the IP address corresponding to the domain name to be accessed from the preset storage space, and if the IP address corresponding to the domain name is searched from the preset storage space, search for the IP address matching the current environment information of the terminal from the searched IP address, so that after searching for the IP address matching both the two conditions, step 103 is executed.
103. And if the IP address is found, performing quality sequencing on the IP address based on a preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after the quality sequencing result is obtained.
Specifically, if the IP address corresponding to the domain name to be accessed and matching with the current environment information of the terminal is found from the preset storage space, in order to enable the client to quickly and successfully establish connection with one of the IP addresses, quality sequencing is performed on the obtained IP addresses based on a preset IP quality sequencing algorithm, and then connection is sequentially tried to be established with the IP addresses with the quality from high to low according to the quality sequencing result until the connection with the one IP address is successful.
The data processing method provided by the embodiment of the invention can determine the current environment information of the terminal after obtaining the domain name to be accessed, then search the IP address corresponding to the domain name and matched with the environment information from the preset storage space, if the IP address is searched, perform quality sorting on the IP addresses based on the preset IP quality sorting algorithm, and perform connection operation according to the quality sorting result after obtaining the quality sorting result. Compared with the prior art that the IP address corresponding to the domain name in the preset storage space is directly used as the IP address to be connected, the IP address which simultaneously meets the two conditions of corresponding to the domain name to be accessed and matching with the environment information is determined as the IP address to be connected, so that the IP addresses acquired from the preset storage space are all the IP addresses which can be connected under the current environment (including the geographic position and the network type) of the terminal, and the phenomenon that the connection time is long and even the connection fails because the connection time is over is avoided when the IP address corresponding to the domain name stored in the preset storage space is not the IP address under the current environment of the terminal and is also connected with the IP addresses. Therefore, the invention can quickly acquire a group of IP addresses which are easy to connect by the client at present, and then try to connect in sequence according to the quality of the group of IP addresses, thereby further improving the efficiency of connecting the IP addresses.
Further, according to the embodiment shown in fig. 1, another embodiment of the present invention further provides a data processing method, as shown in fig. 2, the method mainly includes:
201. and acquiring the domain name to be accessed and the current environment information of the terminal.
202. And searching an IP address corresponding to the domain name and matched with the environmental information from a preset storage space.
The specific implementation manner of the step can be as follows:
and A1, searching the IP address corresponding to the domain name from the preset storage space.
And A2, if the IP address corresponding to the domain name is found, matching the environment information with a terminal environment identifier for describing the terminal environment information when the IP address is stored.
This step can be specifically subdivided into:
a1, obtaining the geographic position and network type in the terminal environment identification of the IP address.
a2, determining the position range corresponding to the geographic position according to a preset position range algorithm.
Since the IP addresses of the server are a group of the same IP addresses within a certain location range, when determining whether the geographic location in the terminal environment identifier matches the current geographic location of the terminal, it is necessary to determine the location range corresponding to the geographic location in the terminal environment identifier according to a preset location range algorithm, and then determine whether the current geographic location of the terminal is within the location range, thereby determining whether the current geographic location of the terminal matches the geographic location of the IP address corresponding to the domain name in the preset storage space.
For example, a circle determined by taking the geographic position in the terminal environment identifier as a center of a circle and taking a preset radius (for example, 5KM) as a radius may be used as the position range corresponding to the geographic position in the terminal environment identifier.
a3, judging whether the geographic position in the environment information is in the position range and whether the network type in the environment information is the same as the network type in the terminal environment identification.
a4, if the geographic position in the environment information is in the position range and the network type in the environment information is the same as the network type in the terminal environment identifier, determining that the environment information is successfully matched with the terminal environment identifier of the IP address; and if the geographic position in the environment information is not in the position range or the network type in the environment information is different from the network type in the terminal environment identifier, determining that the environment information is unsuccessfully matched with the terminal environment identifier of the IP address.
Illustratively, the preset storage space stores IP addresses corresponding to 4 domain names to be accessed, which are IP1, IP2, IP3 and IP4, respectively. Wherein, the terminal environment of the IP1 is identified as "geographical location: beijing station; the network type: WiFi ", the terminal environment of IP2 is identified as" geographical location: a Shijiazhuang station; the network type: 4G ", the terminal environment of IP3 is identified as" geographical location: beijing west station; the network type: WiFi "and IP4 are identified as" geographical location: hangzhou West lake; the network type: 2G'. The current environment information of the terminal is' geographical position: three miles; the network type: and WiFi' respectively determining the position range corresponding to the geographic position in the terminal environment identifier of each IP address, then respectively matching the geographic position and the network type in the current environment information of the terminal with the position range and the network type corresponding to each IP address, and finally determining that the matching of IP1 and IP3 is successful and the matching of IP2 and IP4 is failed.
And A3, determining the IP address successfully matched as the IP address corresponding to the domain name and matched with the environment information.
In addition, the preset storage space comprises a memory and/or a database. When only the IP address is stored in the memory or the database, the client may directly search for the IP address corresponding to the domain name to be accessed and matching the environment information from the memory or the database. When the preset storage space for storing the IP address comprises a memory and a database, the client can firstly search the IP address from the memory; if the IP address is searched from the memory, the IP address is directly obtained from the memory; and if the IP address is not searched from the memory, performing secondary search from a database.
203. And if the IP address is found, performing quality sequencing on the IP address based on a preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after the quality sequencing result is obtained.
The specific implementation manner of performing quality sequencing on the IP addresses based on a preset IP quality sequencing algorithm is as follows: acquiring a weight value of each dimension in a preset dimension set and a dimension value of each dimension corresponding to the IP address; calculating the quality of the IP address according to a preset quality calculation formula, the dimension value of each dimension and the weight value of each dimension; after the quality of each IP address is obtained, a quality sorting operation is performed.
The preset dimensionality set comprises a Time To Live (TTL) value, historical speed measurement success times, historical speed measurement failure times, last connection success Time and actual connection success times.
Specifically, the TTL value is a connection establishment duration, the larger the TTL value is, the smaller the connection speed is, and the worse the IP quality is, and since the TTL value can basically determine whether a corresponding IP address can be successfully connected when a subsequent client performs a connection operation, the weight value of the TTL value in the above dimension is large, for example, may be 50%. In practical application, the client can measure the speed of each IP address stored in the preset storage space at regular time to obtain a corresponding TTL value; when the speed measurement is successful once, the historical speed measurement success frequency is accumulated by 1, and when the speed measurement is failed once, the historical speed measurement failure frequency is accumulated by 1; the TTL value of the number of successful historical speed tests is smaller than the weighted value of the number of failed historical speed tests, and may be, for example, 10%. The last successful connection time is the time of successfully connecting a certain IP address for the last time; after the user feeds back that a certain IP address is successfully connected, the last successful connection time is updated to be the feedback time; the smaller the difference between the time when the quality sorting is performed and the last connection success time is, the higher the IP address quality is, and the weight value of the dimension may be 10%. The actual connection success times are the accumulated times of successfully connecting a certain IP address fed back by the user, namely after the user knows that the certain IP address is successfully connected, the user feeds back the IP address to the client through the client interface, and after the client obtains the IP address, the actual connection success times corresponding to the IP address are added by 1; since the actual connection success frequency can reflect the actual situation of the connection operation performed by the client and the IP address corresponding to a certain domain name, the weight of the actual connection success frequency is greater than the historical speed measurement success frequency, the historical speed measurement failure frequency, and the like, and may be 20%, for example.
In practical application, the calculation method of the preset mass calculation formula mainly comprises the following steps: and firstly, calculating the quality score of each dimension according to the dimension value and the weight value of each dimension, and then summing the quality scores of the dimensions to obtain the final quality of the IP address.
For example, the quality score of the number of successful actual connections may be calculated by:wherein n isxFor the actual number of successful connections of the current IP address, nmaxThe maximum value of the actual connection success times in all the IP addresses to be sequenced is defined, m is the weighted value of the actual connection success times, such as when nxIs 5, nmax50, m is 20%, the quality score of the actual connection success times is 2.
It should be noted that, compared with the prior art, the embodiment of the present invention increases the dimension of the number of times of successful actual connection, so that the IP quality ranking result is more accurate.
In addition, the cloud server can monitor the actual connection condition of each client, increase or reduce dimensionality according to the actual connection condition of each client, or adjust the weighted value of the existing dimensionality, and issue an update instruction carrying the dimensionality information to each client; after the client receives the update instruction sent by the cloud server, the preset dimension set and/or the weighted value of the dimensions can be updated according to the dimension information carried in the update instruction, so that the accuracy of quality sequencing is improved, and the efficiency of connecting the subsequent clients with the IP addresses is improved.
204. And if the IP address is not found, sending a domain name resolution request carrying the domain name to a domain name resolution server.
The domain name resolution server may be a domain name resolution server of an operator, or a domain name resolution server specially serving the client.
When the client determines that there is no IP address corresponding to the domain name and matching the environmental information in the preset storage space, a domain name resolution request carrying the domain name may be sent to the domain name resolution server, so that the domain name resolution server resolves the domain name after receiving the domain name resolution request, and obtains a corresponding IP address.
205. And receiving the IP address corresponding to the domain name sent by the domain name resolution server.
206. And performing quality sequencing on the received IP addresses based on the preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after obtaining the quality sequencing result.
This step is consistent with the specific implementation manner of step 203, and is not described herein again.
Furthermore, since the storage space of the terminal is limited, the preset storage space needs to be cleaned regularly or irregularly, so as to reduce the burden of the terminal and ensure the normal operation of the terminal. Therefore, the client can clear the IP address in the preset storage space according to the preset clearing rule.
Specifically, as some domain names are not visited again after being visited for one or two times, the unused IP addresses in the preset time period can be cleared; because the client tries to connect according to the sequence of the quality of the IP addresses from high to low, the client can successfully connect a certain IP address with higher quality under the general condition without trying to connect the IP address with lower quality, and the IP address with the quality smaller than a preset threshold value can be cleaned; because the IP address of the server may be changed, the client may also delete the IP address whose storage duration is greater than the preset duration threshold, so as to subsequently obtain the latest IP address corresponding to the same domain name from the domain name resolution server side.
In addition, for the same domain name, since servers corresponding to different network types may be the same in a certain location range, or a location range including the same group of IP addresses determined by the client is smaller than an actual location range, IP addresses having the same IP address content and different terminal environment identifiers may appear in a preset storage space, and thus, a plurality of the same IP addresses in the preset storage space may be cleared into one IP address, and the terminal environment identifiers having the same IP addresses are merged.
For example, 3 IPs 4 (e.g. 192.168.1.1) are stored in the preset storage space, and the terminal environment identifiers of the respective IPs 4 are "geographical location: the rising area of Beijing; the network type: WiFi "," geographic location: the rising area of Beijing; the network type: 3G "and" geographic location: the Hai lake district of Beijing; the network type: 3G ", 2 192.168.1.1 can be deleted, and then 3 terminal environment identities are merged into: "geographical location: the Chaoyang district of Beijing and the Hai lake district of Beijing; the network type: WiFi and 3G ".
Further, according to the above method embodiment, another embodiment of the present invention further provides a data processing apparatus, as shown in fig. 3, the apparatus mainly includes: an acquisition unit 31, a lookup unit 32, and a sorting unit 33. Wherein,
an obtaining unit 31, configured to obtain a domain name to be accessed and current environment information of a terminal;
a searching unit 32, configured to search, from a preset storage space, an internet protocol IP address that corresponds to the domain name and matches the environment information;
a sorting unit 33, configured to, when the IP address is found by the finding unit 32, perform quality sorting on the IP address based on a preset IP quality sorting algorithm, so as to perform a connection operation according to a quality sorting result after the quality sorting result is obtained.
The data processing device provided by the embodiment of the invention can determine the current environment information of the terminal after obtaining the domain name to be accessed, then search the IP address corresponding to the domain name and matched with the environment information from the preset storage space, if the IP address is searched, perform quality sorting on the IP addresses based on the preset IP quality sorting algorithm, and perform connection operation according to the quality sorting result after obtaining the quality sorting result. Compared with the prior art that the IP address corresponding to the domain name in the preset storage space is directly used as the IP address to be connected, the IP address which simultaneously meets the two conditions of corresponding to the domain name to be accessed and matching with the environment information is determined as the IP address to be connected, so that the IP addresses acquired from the preset storage space are all the IP addresses which can be connected under the current environment (including the geographic position and the network type) of the terminal, and the phenomenon that the connection time is long and even the connection fails because the connection time is over is avoided when the IP address corresponding to the domain name stored in the preset storage space is not the IP address under the current environment of the terminal and is also connected with the IP addresses. Therefore, the invention can quickly acquire a group of IP addresses which are easy to connect by the client at present, and then try to connect in sequence according to the quality of the group of IP addresses, thereby further improving the efficiency of connecting the IP addresses.
Further, as shown in fig. 4, the apparatus further includes:
a sending unit 34, configured to send a domain name resolution request carrying the domain name to a domain name resolution server when the IP address is not found by the searching unit 32;
a first receiving unit 35, configured to receive an IP address corresponding to the domain name sent by the domain name resolution server;
the sorting unit 33 is further configured to perform quality sorting on the IP addresses received by the first receiving unit based on the preset IP quality sorting algorithm, so as to perform a connection operation according to a quality sorting result after the quality sorting result is obtained.
Further, as shown in fig. 4, the apparatus further includes:
an adding unit 36, configured to add a terminal environment identifier including the environment information to the received IP address after the first receiving unit 35 receives the IP address corresponding to the domain name sent by the domain name resolution server;
the storage unit 37 is configured to store the IP address and the domain name obtained after the terminal environment identifier is added by the adding unit 36 in the preset storage space.
Further, as shown in fig. 4, the search unit 32 includes:
a searching subunit 321, configured to search, from the preset storage space, an IP address corresponding to the domain name;
a matching subunit 322, configured to, when the searching subunit 321 finds the IP address corresponding to the domain name, match the environment information with a terminal environment identifier used for describing the terminal environment information when the IP address is stored;
a determining subunit 323, configured to determine, as the IP address corresponding to the domain name and matching the environment information, the IP address successfully matched by the matching subunit 322.
Further, as shown in fig. 4, the matching subunit 322 includes:
an obtaining module 3221, configured to obtain a geographic location and a network type in the terminal environment identifier of the IP address;
the determining module 3222 is configured to determine, according to a preset location range algorithm, a location range corresponding to the geographic location acquired by the acquiring module 3221;
a determining module 3223, configured to determine whether the geographic location in the environment information is within the location range and whether the network type in the environment information is the same as the network type in the terminal environment identifier;
the determining module 3222 is further configured to determine that, when the determination result of the determining module 3223 is that the geographic location in the environment information is within the location range and the network type in the environment information is the same as the network type of the IP address, the environment information is successfully matched with the terminal environment identifier in the terminal environment identifier, and when the determination result of the determining module 3223 is that the geographic location in the environment information is not within the location range or the network type in the environment information is different from the network type of the IP address, it is determined that the environment information is unsuccessfully matched with the terminal environment identifier in the terminal environment identifier.
Further, as shown in fig. 4, the apparatus further includes:
and a cleaning unit 38, configured to clean the IP address in the preset storage space according to a preset cleaning rule.
Further, as shown in fig. 4, the cleaning unit 38 includes:
a first cleaning subunit 381 configured to clean an IP address that is not used within a preset time period;
a second cleaning subunit 382, configured to clean an IP address whose quality is smaller than a preset threshold;
a third cleaning subunit 383, configured to clean the IP address whose storage duration is greater than the preset duration threshold;
and the duplicate removal subunit 384 is configured to perform duplicate removal processing on the IP addresses in the preset storage space, where the duplicate removal processing is configured to clean up a plurality of same IP addresses into one IP address, and merge terminal environment identifiers of the plurality of same IP addresses.
Further, as shown in fig. 4, the sorting unit 33 includes:
an obtaining subunit 331, configured to obtain a weight value of each dimension in a preset dimension set and a dimension value of each dimension corresponding to the IP address, where the preset dimension set includes a time to live TTL value, a historical speed measurement success number, a historical speed measurement failure number, a last connection success time, and an actual connection success number;
a calculating subunit 332, configured to calculate a quality of the IP address according to a preset quality calculation formula, a dimension value of each dimension, and a weight value of each dimension;
a sorting subunit 333, configured to perform a quality sorting operation after obtaining the quality of each IP address.
Further, as shown in fig. 4, the apparatus further includes:
a second receiving unit 39, configured to receive an update instruction sent by the cloud server;
an updating unit 310, configured to update the preset dimension set and/or the weight value of a dimension according to the dimension information carried in the update instruction received by the second receiving unit 310.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a data processing apparatus according to an embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (18)

1. A method of data processing, the method comprising:
acquiring a domain name to be accessed and current environmental information of a terminal;
searching an Internet Protocol (IP) address which corresponds to the domain name and is matched with the environmental information from a preset storage space;
and if the IP address is found, performing quality sequencing on the IP address based on a preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after the quality sequencing result is obtained.
2. The method of claim 1, further comprising:
if the IP address is not found, sending a domain name resolution request carrying the domain name to a domain name resolution server;
receiving an IP address corresponding to the domain name sent by the domain name resolution server;
and performing quality sequencing on the received IP addresses based on the preset IP quality sequencing algorithm so as to perform connection operation according to the quality sequencing result after obtaining the quality sequencing result.
3. The method according to claim 2, wherein after receiving the IP address corresponding to the domain name sent by the domain name resolution server, the method further comprises:
adding a terminal environment identifier comprising the environment information to the received IP address;
and storing the IP address added with the terminal environment identifier and the domain name into the preset storage space.
4. The method of claim 1, wherein searching for the IP address corresponding to the domain name and matching the context information from a predetermined storage space comprises:
searching an IP address corresponding to the domain name from the preset storage space;
if the IP address corresponding to the domain name is found, matching the environmental information with a terminal environmental identifier for describing the terminal environmental information when the IP address is stored;
and determining the successfully matched IP address as the IP address corresponding to the domain name and matched with the environment information.
5. The method of claim 4, wherein matching the context information with a terminal context identifier describing the terminal context information when the IP address is stored comprises:
acquiring the geographic position and the network type in the terminal environment identifier of the IP address;
determining a position range corresponding to the geographic position according to a preset position range algorithm;
judging whether the geographic position in the environment information is in the position range or not and whether the network type in the environment information is the same as the network type in the terminal environment identifier or not;
if the geographic position in the environment information is in the position range and the network type in the environment information is the same as the network type in the terminal environment identifier, determining that the environment information is successfully matched with the terminal environment identifier of the IP address;
and if the geographic position in the environment information is not in the position range or the network type in the environment information is different from the network type in the terminal environment identifier, determining that the environment information is unsuccessfully matched with the terminal environment identifier of the IP address.
6. The method of claim 1, further comprising:
and clearing the IP address in the preset storage space according to a preset clearing rule.
7. The method of claim 6, wherein clearing the IP address in the preset storage space according to a preset clearing rule comprises:
cleaning up an unused IP address in a preset time period;
and/or cleaning the IP address with the quality smaller than a preset threshold value;
and/or cleaning the IP address with the storage time length larger than the preset time length threshold;
and/or cleaning a plurality of same IP addresses in the preset storage space into one IP address, and merging the terminal environment identifications of the plurality of same IP addresses.
8. The method according to any one of claims 1 to 7, wherein quality ranking the IP addresses based on a preset IP quality ranking algorithm comprises:
acquiring a weight value of each dimension in a preset dimension set and a dimension value of each dimension corresponding to the IP address, wherein the preset dimension set comprises a survival time TTL value, historical speed measurement success times, historical speed measurement failure times, last connection success time and actual connection success times;
calculating the quality of the IP address according to a preset quality calculation formula, the dimension value of each dimension and the weight value of each dimension;
after the quality of each IP address is obtained, a quality sorting operation is performed.
9. The method of claim 8, further comprising:
receiving an updating instruction sent by a cloud server;
and updating the preset dimension set and/or the weight value of the dimension according to the dimension information carried in the updating instruction.
10. An apparatus for data processing, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a domain name to be accessed and the current environmental information of a terminal;
the searching unit is used for searching an Internet Protocol (IP) address which corresponds to the domain name and is matched with the environmental information from a preset storage space;
and the sorting unit is used for performing quality sorting on the IP addresses based on a preset IP quality sorting algorithm when the searching unit finds the IP addresses so as to perform connection operation according to the quality sorting result after the quality sorting result is obtained.
11. The apparatus of claim 10, further comprising:
a sending unit, configured to send a domain name resolution request carrying the domain name to a domain name resolution server when the IP address is not found by the searching unit;
a first receiving unit, configured to receive an IP address corresponding to the domain name sent by the domain name resolution server;
the sorting unit is further configured to perform quality sorting on the IP addresses received by the first receiving unit based on the preset IP quality sorting algorithm, so as to perform a connection operation according to a quality sorting result after the quality sorting result is obtained.
12. The apparatus of claim 11, further comprising:
an adding unit, configured to add a terminal environment identifier including the environment information to the received IP address after the first receiving unit receives the IP address corresponding to the domain name sent by the domain name resolution server;
and the storage unit is used for storing the IP address and the domain name after the terminal environment identifier is added by the adding unit into the preset storage space.
13. The apparatus of claim 10, wherein the lookup unit comprises:
the searching subunit is configured to search the IP address corresponding to the domain name from the preset storage space;
the matching subunit is configured to match, when the searching subunit finds the IP address corresponding to the domain name, the environment information with a terminal environment identifier used for describing the terminal environment information when the IP address is stored;
and the determining subunit is used for determining the IP address successfully matched with the matching subunit as the IP address corresponding to the domain name and matched with the environment information.
14. The apparatus of claim 13, wherein the matching subunit comprises:
the acquisition module is used for acquiring the geographic position and the network type in the terminal environment identifier of the IP address;
the determining module is used for determining a position range corresponding to the geographic position acquired by the acquiring module according to a preset position range algorithm;
the judging module is used for judging whether the geographic position in the environment information is in the position range or not and whether the network type in the environment information is the same as the network type in the terminal environment identifier or not;
the determining module is further configured to determine that the environment information is successfully matched with the terminal environment identifier of the IP address when a determination result of the determining module is that the geographic location in the environment information is within the location range and a network type in the environment information is the same as a network type in the terminal environment identifier, and determine that the environment information is unsuccessfully matched with the terminal environment identifier of the IP address when a determination result of the determining module is that the geographic location in the environment information is not within the location range or the network type in the environment information is not the same as the network type in the terminal environment identifier.
15. The apparatus of claim 10, further comprising:
and the cleaning unit is used for cleaning the IP address in the preset storage space according to a preset cleaning rule.
16. The apparatus of claim 15, wherein the cleaning unit comprises:
the first cleaning subunit is used for cleaning the IP addresses which are not used in the preset time period;
the second cleaning subunit is used for cleaning the IP address with the quality smaller than the preset threshold value;
the third cleaning subunit is used for cleaning the IP address with the storage duration being greater than the preset duration threshold;
and the duplication removing subunit is used for clearing the multiple same IP addresses in the preset storage space into one IP address and merging the terminal environment identifications of the multiple same IP addresses.
17. The apparatus according to any one of claims 10 to 16, wherein the sorting unit comprises:
the acquiring subunit is configured to acquire a weight value of each dimension in a preset dimension set and a dimension value of each dimension corresponding to the IP address, where the preset dimension set includes a time to live TTL value, a historical speed measurement success number, a historical speed measurement failure number, a last connection success time, and an actual connection success number;
the calculating subunit is used for calculating the quality of the IP address according to a preset quality calculating formula, the dimension value of each dimension and the weight value of each dimension;
and the sequencing subunit is used for performing quality sequencing operation after the quality of each IP address is obtained.
18. The apparatus of claim 17, further comprising:
the second receiving unit is used for receiving an updating instruction sent by the cloud server;
and the updating unit is used for updating the preset dimension set and/or the weight value of the dimension according to the dimension information carried in the updating instruction received by the second receiving unit.
CN201610885578.9A 2016-10-11 2016-10-11 Data processing method and device Active CN107040617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610885578.9A CN107040617B (en) 2016-10-11 2016-10-11 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610885578.9A CN107040617B (en) 2016-10-11 2016-10-11 Data processing method and device

Publications (2)

Publication Number Publication Date
CN107040617A true CN107040617A (en) 2017-08-11
CN107040617B CN107040617B (en) 2020-07-31

Family

ID=59532690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610885578.9A Active CN107040617B (en) 2016-10-11 2016-10-11 Data processing method and device

Country Status (1)

Country Link
CN (1) CN107040617B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351115A (en) * 2019-05-23 2019-10-18 中国平安财产保险股份有限公司 Reduce method, apparatus, computer equipment and the storage medium of network access time delay
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN113473455A (en) * 2021-06-30 2021-10-01 荣耀终端有限公司 Terminal application networking method and terminal
CN115022277A (en) * 2022-06-22 2022-09-06 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043530A (en) * 2006-03-21 2007-09-26 盛趣信息技术(上海)有限公司 Dynamic domain name analyzing method of network recognition
CN101610294A (en) * 2009-07-15 2009-12-23 浪潮电子信息产业股份有限公司 A kind of method of utilizing intelligent DNS to improve website visiting speed
CN101820451A (en) * 2009-02-26 2010-09-01 上海数讯信息技术有限公司 Dynamic domain name service optimizing system
CN202103713U (en) * 2011-04-21 2012-01-04 深圳市金正国脉科技发展有限公司 Visiting system
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN102739811A (en) * 2011-04-07 2012-10-17 中国移动通信集团公司 Method and device of domain name resolution
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN103338279A (en) * 2013-07-18 2013-10-02 上海数讯信息技术有限公司 Optimal sorting method and system based on domain name resolution
CN103501357A (en) * 2013-09-18 2014-01-08 深圳先进技术研究院 Domain name resolution system and domain name resolution method
CN103595825A (en) * 2013-10-25 2014-02-19 北京奇虎科技有限公司 Domain name resolution detection method, domain name resolution detection device and server
CN103685611A (en) * 2013-12-31 2014-03-26 山石网科通信技术有限公司 Network access processing method and device
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
CN103957282A (en) * 2013-09-12 2014-07-30 赛尔网络有限公司 Domain name resolution accelerating system of in-domain terminal users and method thereof
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Domain name resolution method, server, terminal and system
CN104253873A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Domain name parsing method, domain name server, domain name access method, system and terminal
CN104320335A (en) * 2014-11-20 2015-01-28 北京美琦华悦通讯科技有限公司 System and method for achieving optimal outlet route selection based on service quality dial testing
CN104519146A (en) * 2013-09-29 2015-04-15 中国电信股份有限公司 Method and system for domain name service based on user position
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043530A (en) * 2006-03-21 2007-09-26 盛趣信息技术(上海)有限公司 Dynamic domain name analyzing method of network recognition
CN101820451A (en) * 2009-02-26 2010-09-01 上海数讯信息技术有限公司 Dynamic domain name service optimizing system
CN101610294A (en) * 2009-07-15 2009-12-23 浪潮电子信息产业股份有限公司 A kind of method of utilizing intelligent DNS to improve website visiting speed
CN102739811A (en) * 2011-04-07 2012-10-17 中国移动通信集团公司 Method and device of domain name resolution
CN202103713U (en) * 2011-04-21 2012-01-04 深圳市金正国脉科技发展有限公司 Visiting system
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Optimal application server selection method and device for domain name system (DNS)
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN104253873A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Domain name parsing method, domain name server, domain name access method, system and terminal
CN103338279A (en) * 2013-07-18 2013-10-02 上海数讯信息技术有限公司 Optimal sorting method and system based on domain name resolution
CN103957282A (en) * 2013-09-12 2014-07-30 赛尔网络有限公司 Domain name resolution accelerating system of in-domain terminal users and method thereof
CN103501357A (en) * 2013-09-18 2014-01-08 深圳先进技术研究院 Domain name resolution system and domain name resolution method
CN104519146A (en) * 2013-09-29 2015-04-15 中国电信股份有限公司 Method and system for domain name service based on user position
CN103595825A (en) * 2013-10-25 2014-02-19 北京奇虎科技有限公司 Domain name resolution detection method, domain name resolution detection device and server
CN103685611A (en) * 2013-12-31 2014-03-26 山石网科通信技术有限公司 Network access processing method and device
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
CN104168340A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Domain name resolution method, server, terminal and system
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN104320335A (en) * 2014-11-20 2015-01-28 北京美琦华悦通讯科技有限公司 System and method for achieving optimal outlet route selection based on service quality dial testing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351115A (en) * 2019-05-23 2019-10-18 中国平安财产保险股份有限公司 Reduce method, apparatus, computer equipment and the storage medium of network access time delay
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN111212156B (en) * 2020-01-15 2022-11-11 中国银联股份有限公司 Network connection method and device
CN113473455A (en) * 2021-06-30 2021-10-01 荣耀终端有限公司 Terminal application networking method and terminal
CN113473455B (en) * 2021-06-30 2022-05-27 荣耀终端有限公司 Terminal application networking method and terminal
CN115022277A (en) * 2022-06-22 2022-09-06 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network
CN115022277B (en) * 2022-06-22 2024-05-14 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment under dual-stack network

Also Published As

Publication number Publication date
CN107040617B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN107395683B (en) Method for selecting return path and server
CN103281409B (en) Based on mobile Internet domain name analytic method and the dns server of Transmission Control Protocol
CN107040617B (en) Data processing method and device
CN104202360B (en) The method of accessed web page, device and router
CN105162900B (en) A kind of domain name mapping of multi-node collaboration and caching method and system
CN104954219B (en) CDN network access path optimization method, apparatus and system
CN103780714B (en) The detection method of a kind of dns server and device
CN104980478B (en) Sharing method, equipment and system are cached in content distributing network
CN104158919A (en) Webpage access implementation method, server and client
CN105491173B (en) DNS analysis method, server and network system
CN103312716B (en) A kind of method and system accessing internet information
CN106453460B (en) File distribution method, device and system
CN107342913B (en) Detection method and device for CDN node
CN104954507A (en) Domain name resolution method and system adopting data optimization
CN102932473B (en) The method of cross operator access to netwoks Web content
CN105704171B (en) System and method for realizing CDN access
CN109413229A (en) Domain name analytic method, equipment, system and storage medium
CN102833262A (en) Whois information-based phishing website gathering, identification method and system
CN105991798A (en) Method and device for network access by mobile terminal
CN105306609A (en) Network loading processing method and device
CN104144223B (en) A kind of data capture method and device
CN105991797B (en) The method and device of mobile terminal network visiting
CN110795434A (en) Method and device for constructing service attribute database
CN109788050B (en) Method, system, electronic device and medium for acquiring IP address of source station
CN104144170A (en) URL filtering method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: 27 Hospital Road, George Town, Grand Cayman, Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: 27 Hospital Road, George Town, Grand Cayman, Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right