CN114051016A - IP intelligent matching method of mobile terminal in HTTP request and mobile terminal - Google Patents

IP intelligent matching method of mobile terminal in HTTP request and mobile terminal Download PDF

Info

Publication number
CN114051016A
CN114051016A CN202210032791.0A CN202210032791A CN114051016A CN 114051016 A CN114051016 A CN 114051016A CN 202210032791 A CN202210032791 A CN 202210032791A CN 114051016 A CN114051016 A CN 114051016A
Authority
CN
China
Prior art keywords
address
request
mobile terminal
preferred
server
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
CN202210032791.0A
Other languages
Chinese (zh)
Other versions
CN114051016B (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.)
Manjinba Shenzhen Technology Co ltd
Original Assignee
Manjinba Shenzhen Technology 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 Manjinba Shenzhen Technology Co ltd filed Critical Manjinba Shenzhen Technology Co ltd
Priority to CN202210032791.0A priority Critical patent/CN114051016B/en
Publication of CN114051016A publication Critical patent/CN114051016A/en
Application granted granted Critical
Publication of CN114051016B publication Critical patent/CN114051016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an IP intelligent matching method of a mobile terminal in an HTTP request and the mobile terminal, wherein the method comprises the following steps: sending out a fixed HTTP service interface request; when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS. The invention can initiate the request by optimizing the IP address, can reduce the time consumption of the whole network request process and improve the HTTP request response speed.

Description

IP intelligent matching method of mobile terminal in HTTP request and mobile terminal
Technical Field
The invention relates to the technical field of HTTP requests, in particular to an IP intelligent matching method of a mobile terminal in an HTTP request and the mobile terminal.
Background
Mobile terminals will have a wide variety of applications installed through which a user can initiate a fixed HTTP service interface request. The traditional request method is to perform domain Name resolution through a Domain Name Server (DNS), but when the DNS domain Name resolution is not ideal enough or the request speed is slow, the HTTP request directly accesses the Server data slowly, and especially in a remote area or an area with a small network coverage, the problem of time consumption of the request exists, the page data is greatly delayed, the service operation is affected, and the user experience is poor.
Disclosure of Invention
In view of this, in order to solve one of the technical problems in the related art to a certain extent, it is necessary to provide an intelligent IP matching method for a mobile terminal at the time of an HTTP request and a mobile terminal, which improve the speed of responding to the HTTP request.
The invention provides an IP intelligent matching method of a mobile terminal in an HTTP request, which comprises the following steps:
sending out a fixed HTTP service interface request;
when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS.
Further, in the HTTP requests sent out for the preset times in the unit time period, if the time taken for the requests to be responded is longer than the preset time and the total number of requests longer than the preset time is greater than or equal to a set value, it is considered that the request speed is abnormal and the request is initiated using the first preferred IP address.
Further, the first preferred IP address is an IP address that can respond at a normal speed when other mobile terminals except the mobile terminal have previously made a request using a server IP address resolved by DNS.
Further, the first preferred IP address is an IP address that the mobile terminal can respond at a normal speed when a request is initiated by a server IP address previously resolved using DNS.
Further, the issuing of the fixed HTTP service interface request includes: sending out a fixed HTTP service interface request at one time and one place;
the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
Further, when the speed of the request initiated by using the first preferred IP address is abnormal, a request is initiated by using a second preferred IP address; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
Further, when the speed of initiating the request by using the server IP address resolved by the DNS is abnormal, initiating the request by using the first preferred IP address includes:
when the request speed initiated by the server IP address analyzed by using the DNS is abnormal, judging whether the current area of the mobile terminal is in a set area, wherein the set area is an area which the mobile terminal has been in the past period of time;
when the current area of the mobile terminal is in the set area, a first preferred IP address is used for initiating a request;
when the current area of the mobile terminal is not in the set area, a second preferred IP address is used for initiating a request; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
Further, the mobile terminal stores a fixed server IP address locally in advance, and initiates a request using the fixed server IP address when the DNS cannot resolve the server IP address or the request cannot be initiated using the first preferred IP address or the second preferred IP address.
Further, the mobile terminal reports a request condition of a server IP address initiation request resolved by using a DNS to a server, the first preferred IP address is screened by the server according to the request condition, and the mobile terminal receives the first preferred IP address and initiates the request by using the first preferred IP address.
A second aspect of the present invention provides a mobile terminal having:
a processor; and
a storage device comprising processor-executable instructions that, when executed by a processor, perform the steps of the intelligent matching method.
According to the scheme, after the fixed HTTP service interface request is sent out, the domain name is analyzed through the DNS, and when the request initiating speed by using the analyzed server IP address is abnormal, the request is initiated by using the first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS. Therefore, the request can be initiated by optimizing the IP address, the time consumption of the whole network request process can be reduced, and the HTTP request response speed is improved.
Drawings
Fig. 1 is a flowchart illustrating an IP intelligent matching method of a mobile terminal in an HTTP request according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating an IP intelligent matching method of a mobile terminal in an HTTP request according to a second embodiment of the present invention.
Fig. 3 is a flowchart illustrating an IP intelligent matching method of a mobile terminal in an HTTP request according to a third embodiment of the present invention.
Fig. 4 is a flowchart illustrating an IP intelligent matching method of a mobile terminal in an HTTP request according to a fourth embodiment of the present invention.
Fig. 5 is a schematic circuit schematic structure diagram of the mobile terminal of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without any inventive step, are within the scope of the present invention. It is to be understood that the drawings are provided solely for the purposes of reference and illustration and are not intended as a definition of the limits of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a method according to a first embodiment of the present invention. The invention provides an IP intelligent matching method of a mobile terminal in an HTTP request, which comprises the following steps.
S101: a fixed HTTP service interface request is issued.
S102: when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS.
And installing an application program, such as an online shopping application program and the like, in the mobile terminal. The user can send out a fixed HTTP service interface request through the application program, and the mobile terminal continuously monitors the request condition in the request process. After initiating the HTTP request, the DNS server analyzes the IP address of the server, if the IP address of the server can be analyzed, the analyzed IP address of the server is used for initiating the request, and if the request speed is abnormal, the first preferred IP address is used for initiating the request.
Specifically, in the HTTP requests sent out for the preset times in the unit time period, if the time taken for the requests to be responded is longer than the preset time and the total number of requests longer than the preset time is greater than or equal to a set value, it is considered that the request speed is abnormal, and the request is initiated using the first preferred IP address. For example, 10 requests are issued in a unit time period, and if the time taken for the requests to be responded is longer than 3 seconds and the total number of requests longer than 3 seconds reaches 8 times, the request speed is considered to be abnormal, and the requests are initiated using the first preferred IP address.
The first preferred IP address may be obtained by screening. The mobile terminal can report the request condition (which can include the request duration, whether the request is abnormal or not) of the server IP address initiating request analyzed by using the DNS to the server, then the server screens out the request condition and sends the screened first preferred IP address to the mobile terminal requesting currently, and the mobile terminal initiates the request by using the first preferred IP address, so that the mobile terminal can be ensured to be responded when initiating the request by using the first preferred IP address as far as possible.
Specifically, the mobile terminal used by the user continuously monitors the request condition, reports the request condition to the server, and the server stores the request condition as past data of the user, where the past data has a server IP address with a normal request speed to screen the past data. It is to be understood that a request speed normal is relative to a request speed anomaly, and that a request speed normal may refer to being able to be requested when a request speed anomaly indicates that a request is not possible, and may refer to a request speed being faster when a request speed anomaly indicates that a request speed is slower.
It is also possible that the first preferred IP address is obtained by filtering past request situations of other mobile terminals. Other mobile terminals report the monitored request conditions to the server respectively, the server stores the request conditions of other mobile terminals as past data, and the server can store the past data respectively in a multi-dimensional mode (user dimension, positioning dimension, request IP condition and the like). The server screens the IP address capable of responding at normal speed from the past data, screens the preferred IP address by using the big data, and the preferred IP address has more objective reliability and higher probability of being responded.
The first preferred IP address may be an IP address having the fastest response speed. The past request conditions can be sorted according to the response speed, and the IP address with the highest response speed is pushed to the mobile terminal used by the user.
By the method provided by the first embodiment, the request can be initiated by optimizing the IP address, so that the time consumption of the whole network request process can be reduced, and the speed of responding to the HTTP request can be improved.
Fig. 2 is a flowchart of a method according to a second embodiment of the present invention. A second embodiment of the present invention provides an IP intelligent matching method for a mobile terminal in an HTTP request, where the method includes the following steps. It should be appreciated that the specific schemes applied to the first embodiment may be applied to the second embodiment accordingly for economy of space.
S201: the mobile terminal sends out a fixed HTTP service interface request at one time and one place.
For example, the mobile terminal a issues a fixed HTTP service interface request in Shenzhen at 9 am.
S202: when the request speed of the mobile terminal initiated by the server IP address analyzed by the DNS is abnormal, the mobile terminal initiates a request by using a first preferred IP address; the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
The mobile terminal a may transmit the past data including user information, a location when requesting the IP, a time when requesting the IP, and a situation of requesting the IP to the server. The mobile terminal a may be sampled N times within a predetermined period of time, and the location of the mobile terminal a when the IP is requested, the time when the IP is requested, and the condition of requesting the IP are recorded as a set of data each time, so that N sets of data will be obtained.
The data of a certain past time can be sampled, and the IP address which can be responded by the mobile terminal A at normal speed when the server IP address resolved by the DNS is used for initiating a request at the corresponding past time and the corresponding place can be screened from the data. For example, data of the last 10 days are sampled, it is determined whether a fixed HTTP service interface request is issued in shenzhen at 9 am of the last 10 days of the mobile terminal a, and an IP address capable of responding at normal speed is included in the server IP address initiation request resolved by the DNS, and if so, the server IP address is taken as the first preferred IP address.
By the method provided by the second embodiment, the past preferred IP address can be screened by combining the request condition of the mobile terminal at a specific time and a specific place, the matching degree of the preferred IP address and the mobile terminal is high, and the reliability of real-time and field response of the preferred IP address can be improved.
As shown in fig. 3, fig. 3 is a flowchart of a method according to a third embodiment of the present invention. The third embodiment of the present invention provides an IP intelligent matching method for a mobile terminal in an HTTP request, where the method includes the following steps. It should be appreciated that, for economy of space, the specific arrangements applicable to the first and/or second embodiment may be correspondingly applicable to the third embodiment.
S301: the mobile terminal sends out a fixed HTTP service interface request at one time and one place.
S302: when the request speed of the mobile terminal initiated by the server IP address analyzed by the DNS is abnormal, the mobile terminal initiates a request by using a first preferred IP address; the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
S303: when the speed of the mobile terminal initiating the request by using the first preferred IP address is abnormal, initiating the request by using a second preferred IP address; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
In this embodiment, the request is initiated by preferentially using the first preferred IP address, the screening of the first preferred IP address is screened out in the case that the mobile terminal requests the IP at the corresponding past time and the corresponding place, if the speed of initiating the request by using the first preferred IP address is abnormal, the request is initiated by using the second preferred IP address, and the screening of the second preferred IP address is screened out in the case that other mobile terminals in the area where the mobile terminal is located request the IP at the corresponding past time, so that the situations that the preferred IP cannot be requested or the request speed is slow can be greatly reduced,
as shown in fig. 4, fig. 4 is a flowchart of a method according to a fourth embodiment of the present invention. A fourth embodiment of the present invention provides an IP intelligent matching method for a mobile terminal in an HTTP request, where the method includes the following steps. It should be appreciated that, for economy of space, the details applicable to the other embodiments described above may be correspondingly applicable to the fourth embodiment.
S401: the mobile terminal sends out a fixed HTTP service interface request.
S402: when the server IP address initiation request speed analyzed by using the DNS is abnormal, it is determined whether the area where the mobile terminal is currently located is within a set area, where the set area is an area that the mobile terminal has reached in the past period of time, and when the area is within the set area, step S403 is executed, and when the area is not within the set area, step S404 is executed.
S403: initiating a request using the first preferred IP address; the first preferred IP address is an IP address that the mobile terminal can respond at a normal speed when a request is initiated by a server IP address previously resolved by using a DNS.
S404: initiating a request using the second preferred IP address; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
In this embodiment, for example, when the user is always in Shenzhen but not going to Guangzhou, Shenzhen can be considered as a set region, and Guangzhou as a non-set region. When a user goes to Guangzhou for the first time, a fixed HTTP service interface request is sent out in the Guangzhou, at the moment, the area where the user is located is judged not to be in the set area, the condition that other mobile terminals in the Guangzhou use server IP addresses obtained through DNS analysis at corresponding time in the past to send requests is used as analysis data, IP addresses capable of responding at normal speed are screened out to be used as second preferred IP addresses, the server sends the second preferred IP addresses to the mobile terminals, and the mobile terminals send requests by using the second preferred IP addresses. If the user has gone to Guangzhou for the first two days, the IP address he used when requesting HTTP in Guangzhou may be used, but if the user went to Guangzhou the previous year, he was outside the set time, and he is deemed not in the set area.
The embodiment determines in advance whether the user is in a set area, and the set area refers to an area that the mobile terminal has been in for a while, if not, the server pushes a second preferred IP address to the mobile terminal, so that the mobile terminal can initiate a request by using the second preferred IP address, skip a screening process of the first preferred IP address, and improve the speed of the remote HTTP service request.
In all the above embodiments, the mobile terminal may locally store a fixed server IP address in advance, and initiate the request using the fixed server IP address when the DNS cannot resolve to the server IP address or the request cannot be initiated using the first preferred IP address or the second preferred IP address. When the application program is downloaded to the mobile terminal, the application program can carry a fixed server IP address, and the server IP address is used as a final standby IP address.
Fig. 5 is a block diagram of an embodiment of the mobile terminal 100 according to the present invention, where the mobile terminal 100 may include a processor 10 and a storage device 20, and further includes a computer program stored in the storage device 20 and executable on the processor 10, such as an IP smart matching program for a mobile terminal in HTTP request.
The processor 10 may be a Central Processing Unit (CPU), but may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center of the mobile terminal 100 and that connects the various parts of the overall mobile terminal 100 using various interfaces and lines.
The storage device 20 may be used to store the computer programs and/or modules, and the processor 10 implements various functions of the mobile terminal by running or executing the computer programs and/or modules stored in the storage device 20 and calling data stored in the storage device 20. The storage device 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the storage device 20 may include a high speed random access storage device, and may also include a non-volatile storage device, such as a hard disk, a memory, a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, at least one piece of magnetic disk storage, a flash memory device, or other non-volatile solid state storage device.
The processor 10 is capable of executing executable instructions stored on the storage device 20 to implement the following method steps: sending out a fixed HTTP service interface request; when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS.
More specifically, in the HTTP requests sent out a preset number of times in a unit time period, if the time taken for the requests to be responded is longer than a preset time and the total number of times of the requests longer than the preset time is greater than or equal to a set value, it is considered that the request speed is abnormal and the requests are initiated using the first preferred IP address.
More specifically, the first preferred IP address may refer to an IP address that the mobile terminal can respond at a normal speed when a request is initiated by a server IP address that is previously resolved using DNS.
More specifically, the first preferred IP address may be an IP address that can respond at a normal speed when other mobile terminals except the mobile terminal have previously made a request using a server IP address resolved by DNS.
More specifically, the mobile terminal stores a fixed server IP address locally in advance, and initiates the request using the fixed server IP address when the DNS cannot resolve the server IP address or the request cannot be initiated using the first preferred IP address or the second preferred IP address.
More specifically, the mobile terminal reports a request condition of a request initiated by a server IP address resolved by using a DNS to the server, the first preferred IP address is screened by the server according to the request condition, and the mobile terminal receives the first preferred IP address and initiates the request by using the first preferred IP address.
The processor 10 is capable of executing executable instructions stored on the storage device 20 to implement the following method steps: sending out a fixed HTTP service interface request at one time and one place; when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address is an IP address that the mobile terminal can respond at a normal speed when a request is initiated by a server IP address previously resolved by using a DNS.
The processor 10 is capable of executing executable instructions stored on the storage device 20 to implement the following method steps: sending out a fixed HTTP service interface request at one time and one place; when the request speed of the mobile terminal initiated by the server IP address analyzed by the DNS is abnormal, the mobile terminal initiates a request by using a first preferred IP address; the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
The processor 10 is capable of executing executable instructions stored on the storage device 20 to implement the following method steps: sending out a fixed HTTP service interface request at one time and one place; when the request speed of the mobile terminal initiated by the server IP address analyzed by the DNS is abnormal, the mobile terminal initiates a request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at a normal speed when the mobile terminal initiates a request by using a server IP address resolved by a DNS at a corresponding time and a corresponding place; when the speed of the mobile terminal initiating the request by using the first preferred IP address is abnormal, initiating the request by using a second preferred IP address; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
The processor 10 is capable of executing executable instructions stored on the storage device 20 to implement the following method steps: sending out a fixed HTTP service interface request; when the request speed initiated by the server IP address analyzed by using the DNS is abnormal, judging whether the current area of the mobile terminal is in a set area, wherein the set area is an area which the mobile terminal has been in the past period of time; when the mobile terminal is in a set area, initiating a request by using a first preferred IP address, wherein the first preferred IP address refers to an IP address which can respond at a normal speed when the mobile terminal initiates a request by using a server IP address which is analyzed by a DNS; and when the mobile terminal is not in the set area, initiating a request by using a second preferred IP address, wherein the second preferred IP address refers to an IP address which can respond at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate requests by using a server IP address which is obtained by DNS resolution at a corresponding time in the past.
The invention also provides an IP intelligent matching device of the mobile terminal in the HTTP request, and the device comprises:
the sending module is used for sending a fixed HTTP service interface request;
the first using module is used for initiating a request by using a first preferred IP address when the speed of the request initiated by using the IP address of the server analyzed by the DNS is abnormal; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS.
Further, in the HTTP requests sent out for the preset times in the unit time period, if the time taken for the requests to be responded is longer than the preset time and the total number of requests longer than the preset time is greater than or equal to a set value, it is considered that the request speed is abnormal and the request is initiated using the first preferred IP address.
Further, the first preferred IP address is an IP address that can respond at a normal speed when other mobile terminals except the mobile terminal have previously made a request using a server IP address resolved by DNS.
Further, the first preferred IP address is an IP address that the mobile terminal can respond at a normal speed when a request is initiated by a server IP address previously resolved using DNS.
Further, the sending module is specifically configured to send a fixed HTTP service interface request at a time and a place;
the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
Further, the device further comprises a second using module, configured to initiate a request using a second preferred IP address when the speed of initiating a request using the first preferred IP address is abnormal; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
Further, the usage module includes:
a determining unit, configured to determine, when a request speed initiated by a server IP address resolved by using a DNS is abnormal, whether a current area of the mobile terminal is within a set area, where the set area is an area that the mobile terminal has been in the past for a period of time;
a first using unit, configured to initiate a request using a first preferred IP address when an area where the mobile terminal is currently located is within a set area;
a second using unit, configured to initiate a request using a second preferred IP address when the area where the mobile terminal is currently located is not within the set area; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
Further, the mobile terminal stores a fixed server IP address locally in advance, and initiates a request using the fixed server IP address when the DNS cannot resolve the server IP address or the request cannot be initiated using the first preferred IP address or the second preferred IP address.
Further, the mobile terminal reports a request condition of a server IP address initiation request resolved by using a DNS to a server, the first preferred IP address is screened by the server according to the request condition, and the mobile terminal receives the first preferred IP address and initiates the request by using the first preferred IP address.
Throughout the description and claims of this application, the words "comprise/comprises" and the words "have/includes" and variations of these are used to specify the presence of stated features, values, steps or components but do not preclude the presence or addition of one or more other features, values, steps, components or groups thereof.
Some features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, certain features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable combination in different embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. An IP intelligent matching method of a mobile terminal in an HTTP request is characterized by comprising the following steps:
sending out a fixed HTTP service interface request;
when the speed of a server IP address initiation request resolved by using the DNS is abnormal, initiating the request by using a first preferred IP address; the first preferred IP address refers to an IP address which can respond at normal speed when the mobile terminal initiates a request by using a server IP address resolved by DNS.
2. The method for intelligently matching the IP when the mobile terminal requests the HTTP according to claim 1, wherein in the HTTP requests sent out for the preset times in the unit time period, if the time length spent by the requests in response is longer than the preset time length and the total times of the requests longer than the preset time length are greater than or equal to a set value, the request speed is considered to be abnormal and the requests are initiated by using the first preferred IP address.
3. The method for intelligently matching the IP of the mobile terminal in the HTTP request according to claim 1, wherein the first preferred IP address is an IP address that can respond at a normal speed when the other mobile terminals except the mobile terminal have previously made a request using a server IP address resolved by DNS.
4. The method for intelligently matching the IP of the mobile terminal in the HTTP request according to claim 1, wherein the first preferred IP address is an IP address that the mobile terminal can respond at a normal speed when the mobile terminal initiates a request by using an IP address of a server that is previously resolved by DNS.
5. The IP intelligent matching method of the mobile terminal in the HTTP request according to claim 4, characterized in that:
the issuing of the fixed HTTP service interface request includes: sending out a fixed HTTP service interface request at one time and one place;
the first preferred IP address refers to an IP address that the mobile terminal can respond at a normal speed when initiating a request using a server IP address that is resolved by DNS at a corresponding time and a corresponding place in the past.
6. The method for intelligently matching IP when the mobile terminal requests HTTP according to claim 5 is characterized in that when the speed of the request initiated by using the first preferred IP address is abnormal, the request is initiated by using a second preferred IP address; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
7. The method for intelligently matching the IP of the mobile terminal in the HTTP request according to claim 4, wherein the initiating the request by using the first preferred IP address when the request speed is abnormal by using the IP address of the server resolved by the DNS comprises the following steps:
when the request speed initiated by the server IP address analyzed by using the DNS is abnormal, judging whether the current area of the mobile terminal is in a set area, wherein the set area is an area which the mobile terminal has been in the past period of time;
when the current area of the mobile terminal is in the set area, a first preferred IP address is used for initiating a request;
when the current area of the mobile terminal is not in the set area, a second preferred IP address is used for initiating a request; the second preferred IP address refers to an IP address that can be responded at a normal speed when other mobile terminals in the area where the mobile terminal is currently located initiate a request using a server IP address resolved by DNS at a corresponding time in the past.
8. The method for intelligently matching the IP of the mobile terminal in the HTTP request according to claim 6 or 7, wherein the mobile terminal stores a fixed server IP address locally in advance, and when the DNS cannot resolve to the server IP address or the request cannot be initiated by using the first preferred IP address or the second preferred IP address, the request is initiated by using the fixed server IP address.
9. The method according to claim 1, wherein the mobile terminal reports a request condition of a request initiated by a server IP address previously resolved by using a DNS to a server, the first preferred IP address is screened by the server according to the request condition, and the mobile terminal receives the first preferred IP address and initiates the request by using the first preferred IP address.
10. A mobile terminal, characterized in that the mobile terminal has:
a processor; and
storage means comprising processor executable instructions for performing the steps of the intelligent matching method of any of claims 1-9 when executed by a processor.
CN202210032791.0A 2022-01-12 2022-01-12 IP intelligent matching method of mobile terminal in HTTP request and mobile terminal Active CN114051016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210032791.0A CN114051016B (en) 2022-01-12 2022-01-12 IP intelligent matching method of mobile terminal in HTTP request and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210032791.0A CN114051016B (en) 2022-01-12 2022-01-12 IP intelligent matching method of mobile terminal in HTTP request and mobile terminal

Publications (2)

Publication Number Publication Date
CN114051016A true CN114051016A (en) 2022-02-15
CN114051016B CN114051016B (en) 2022-04-12

Family

ID=80196473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210032791.0A Active CN114051016B (en) 2022-01-12 2022-01-12 IP intelligent matching method of mobile terminal in HTTP request and mobile terminal

Country Status (1)

Country Link
CN (1) CN114051016B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN109391703A (en) * 2017-08-10 2019-02-26 阿里巴巴集团控股有限公司 Domain name analytic method, device, equipment and computer storage medium
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium
CN110113440A (en) * 2019-04-15 2019-08-09 北京奇艺世纪科技有限公司 A kind of request responding method, device and terminal
CN112532732A (en) * 2020-12-03 2021-03-19 郑州阿帕斯数云信息科技有限公司 HTTPS-based session processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391703A (en) * 2017-08-10 2019-02-26 阿里巴巴集团控股有限公司 Domain name analytic method, device, equipment and computer storage medium
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN109743364A (en) * 2018-12-20 2019-05-10 广州市百果园信息技术有限公司 Multistep connection control method, device, computer equipment and storage medium
CN110113440A (en) * 2019-04-15 2019-08-09 北京奇艺世纪科技有限公司 A kind of request responding method, device and terminal
CN112532732A (en) * 2020-12-03 2021-03-19 郑州阿帕斯数云信息科技有限公司 HTTPS-based session processing method and device

Also Published As

Publication number Publication date
CN114051016B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US8972580B2 (en) DNS outage avoidance method for recursive DNS servers
CN108718347B (en) Domain name resolution method, system, device and storage medium
CN107154963B (en) Request processing method and device and electronic equipment
US10938935B1 (en) Reduction in redirect navigation latency via speculative preconnection
CN106878368B (en) Method and device for realizing information push
US20210092089A1 (en) Intelligent redirector based on resolver transparency
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
CN109936613B (en) Disaster recovery method and device applied to server
WO2021017771A1 (en) Service request processing method and related device
CN110858843A (en) Service request processing method and device and computer readable storage medium
US20150249636A1 (en) Resource download method, service server and cellular phone client
US20190005047A1 (en) Intelligent database connection management
CN109964493B (en) Network connection detection method, device, terminal and computer storage medium
CN111382206B (en) Data storage method and device
CN116405460A (en) Domain name resolution method and device for content distribution network, electronic equipment and storage medium
CN111125595B (en) Multi-page control method and device, electronic equipment and storage medium
CN109981779B (en) Service providing method, server and computer storage medium
CN114051016B (en) IP intelligent matching method of mobile terminal in HTTP request and mobile terminal
WO2021120977A1 (en) Server, data processing method and medium
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN107580253B (en) Error-reporting page processing method and device, set top box and storage medium
WO2018023966A1 (en) Method and device for determining caching strategy
CN114745413B (en) Access control method and device for server, computer equipment and storage medium
CN108737460B (en) Connection processing method and client
CN104346228A (en) Application program sharing method and terminal

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