CN108449442A - A kind of iOS Network Optimization Strategies - Google Patents
A kind of iOS Network Optimization Strategies Download PDFInfo
- Publication number
- CN108449442A CN108449442A CN201810197307.3A CN201810197307A CN108449442A CN 108449442 A CN108449442 A CN 108449442A CN 201810197307 A CN201810197307 A CN 201810197307A CN 108449442 A CN108449442 A CN 108449442A
- Authority
- CN
- China
- Prior art keywords
- domain name
- domain
- request
- name
- url
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
Abstract
The present invention relates to a kind of iOS Network Optimization Strategies, include the following steps:Domain name processing is merged to several domain names, domain name after being merged, it is denoted as domain name X, when initiating network request with the domain name after merging, url will be asked to integrate in network bottom layer, multistage domain name is degraded, and request is distinguished in the way of path, request is sent to server, server will ask url to restore, real service server is asked, is returned the result.More than two domain names are merged into a unified domain name X by the present invention, initiate network request using domain name X, DNS name resolution is primary only for domain name X processing, effectively reduces the number of DNS name resolution, realizes request reusable.Analyzing efficiency is improved, Web vector graphic efficiency is improved.
Description
Technical field
The present invention relates to dns resolution technical field in iOS, specifically a kind of iOS Network Optimization Strategies.
Background technology
The first step of most network requests is all dns resolution(DNS name resolution), analysis request is according to network at that time
Situation is different, and the factors such as DNS cache strategy difference of each platform will produce mobile terminal app overall network performances either large or small
Influence.Mobile terminal app optimizations of network performance are related to many aspects, and DNS mappings are a wherein ring and highly important
One ring, because the benefit that it brings is not only to reduce the delay of network request.
After we input url in a browser, browser can carry out domain name mapping first.Under normal circumstances, once
DNS domain name mappings probably need 60-120 ms, the three-way handshake of a tcp to need 1.5 round-trip delay RTT
(round-trip time).
DNS cache:Inquiry of the domain name request is sent to local dns server by client computer first, and local dns server first exists
Record before(Caching)Middle lookup is then directly parsed using caching if there is caching, if do not cached, is entered
The searching of local caching.
Local cache:If local server locally cannot find caching, rhizosphere name DNS service is transmitted the request to
Device.
Dns server translates domain name into IP address, i.e. domain name mapping:Since Network Recognition does not recognize any domain name, this
A little is all character combination, and computer does not recognize certainly, and IP address just recognizes, domain name mapping be exactly by domain name translation at ip
Location.
Why domain name exists, and exactly sees that a string of addresses ip can be difficult to remember just there is domain name.
Domain name structure:A domain name from the point of view of us
.com top level domain this be global top level domain
This is top-level domain to baidu.com, and top-level domain is exactly that level-one is added before top level domain
This is second level domain to www.baidu.com, and there are many second level domain of Baidu, also tieba.baidu.com etc., can be with
Online is searched.
Browser has IP that can find server, can establish TCP connection between the two, and server needs and clear
Device of looking at establishes tcp three-way handshakes.
In the past, in the networks app are asked, a domain name will be increased by often increasing by one big function, such as:Domain name A, domain name
B, domain name C, domain name D.The shortcomings that this mode, is:Each domain name is needed to carry out DNS domain name mappings one by one.It is time-consuming and laborious,
It is unfavorable for the raising of Web vector graphic efficiency.
Invention content
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of iOS Network Optimization Strategies, by two
A above domain name merges into a unified domain name X, initiates network request using domain name X, DNS name resolution is only for domain name X
Processing is primary, effectively reduces the number of DNS name resolution, realizes request reusable.Analyzing efficiency is improved, Web vector graphic effect is improved
Rate.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of iOS Network Optimization Strategies, which is characterized in that include the following steps:
Domain name processing is merged to several domain names, the domain name after being merged is denoted as domain name X,
When initiating network request with the domain name after merging,
Url will be asked to integrate in network bottom layer,
Multistage domain name is degraded, and distinguishes request in the way of path,
Request is sent to server,
Server will ask url to restore,
Real service server is asked,
It returns the result.
Based on the above technical solution, several domain names include at least two different domain name A and domain name B.
Based on the above technical solution, url will be asked to integrate in network bottom layer, and will refer to:It, will according to the difference of request
Ask corresponding information assembled as parameter and url.
Based on the above technical solution, n grades of subdomain names are first degraded, reverts to Main Domain, n=mono-, two, three ...,
Assembly path1 parameters are as level-one subdomain name after Main Domain,
Assembly path1 and path2 parameters are as two level subdomain name after Main Domain, with oblique line/draw between path1 and path2 parameters
Point, it is distinguished with showing,
And so on.
Based on the above technical solution, server will ask url to restore, and refer to:
DNS name resolution is carried out to Main Domain,
Local request service is asked under corresponding path by path parameters.
More than two domain names are merged into a unified domain name X by iOS Network Optimization Strategies of the present invention, are utilized
Domain name X initiates network request, and DNS name resolution is primary only for domain name X processing, effectively reduces the number of DNS name resolution, real
Now ask reusable.Analyzing efficiency is improved, Web vector graphic efficiency is improved.
Description of the drawings
The present invention has following attached drawing:
The flow chart of Fig. 1 present invention.
Specific implementation mode
Below in conjunction with attached drawing, invention is further described in detail.
As shown in Figure 1, iOS Network Optimization Strategies of the present invention, include the following steps:
Domain name processing is merged to several domain names, the domain name after being merged is denoted as domain name X,
When initiating network request with the domain name after merging,
Url will be asked to integrate in network bottom layer,
Multistage domain name is degraded, and distinguishes request in the way of path,
Request is sent to server,
Server will ask url to restore,
Real service server is asked,
It returns the result.
Based on the above technical solution, several domain names include at least two different domain name A and domain name B.
Based on the above technical solution, url will be asked to integrate in network bottom layer, and will refer to:It, will according to the difference of request
Ask corresponding information assembled as parameter and url.
Such as:
Personal information is asked, then regard the corresponding information such as request personal information type, request id as parameter, in assembly to url
Face.Also can by some basic parameter assembly to url, such as:Facility information, network state, operation system information etc. are joined substantially
Number.
Based on the above technical solution, in tradition is asked, multistage domain name may be used, such as:
Main Domain http://A.com
His level-one subdomain name:http://sub1.A.com
His two level subdomain name:http://sub2.sub1.A.com
His three-level subdomain name:http://sub3.sub2.sub1.A.com.
Use can increase dns resolution burden in this way.For this purpose, the present invention uses following scheme:
N grades of subdomain names are first degraded, revert to Main Domain, n=mono-, two, three ...,
Assembly path1 parameters are as level-one subdomain name after Main Domain,
Assembly path1 and path2 parameters are as two level subdomain name after Main Domain, with oblique line/draw between path1 and path2 parameters
Point, it is distinguished with showing,
And so on.
Such as:
Main Domain http://A.com
Level-one:http://A.com/path1
Two level:http://A.com/path1/path2
Three-level:http://A.com/path1/path2/path3.
Based on the above technical solution, server will ask url to restore, and refer to:
DNS name resolution is carried out to Main Domain,
Local request service is asked under corresponding path by path parameters.
Such as:
Request url is http://A.com/path1/path2/path3, then server will ask url restore, obtain:
Local path file://path1/path2/path3.According to path finding service, certainly, also can to required parameter into
Row parses, then initiating business request.
The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (5)
1. a kind of iOS Network Optimization Strategies, which is characterized in that include the following steps:
Domain name processing is merged to several domain names, the domain name after being merged is denoted as domain name X,
When initiating network request with the domain name after merging,
Url will be asked to integrate in network bottom layer,
Multistage domain name is degraded, and distinguishes request in the way of path,
Request is sent to server,
Server will ask url to restore,
Real service server is asked,
It returns the result.
2. iOS Network Optimization Strategies as described in claim 1, it is characterised in that:Several domain names include at least two not
Same domain name A and domain name B.
3. iOS Network Optimization Strategies as described in claim 1, it is characterised in that:Url will be asked to integrate in network bottom layer, and be
Refer to:According to the difference of request, corresponding information will be asked assembled as parameter and url.
4. iOS Network Optimization Strategies as described in claim 1, it is characterised in that:N grades of subdomain names are first degraded, based on recovery
Domain name, n=mono-, two, three ...,
Assembly path1 parameters are as level-one subdomain name after Main Domain,
Assembly path1 and path2 parameters are as two level subdomain name after Main Domain, with oblique line/draw between path1 and path2 parameters
Point, it is distinguished with showing,
And so on.
5. iOS Network Optimization Strategies as described in claim 1, it is characterised in that:Server will ask url to restore, and refer to:
DNS name resolution is carried out to Main Domain,
Local request service is asked under corresponding path by path parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810197307.3A CN108449442A (en) | 2018-03-10 | 2018-03-10 | A kind of iOS Network Optimization Strategies |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810197307.3A CN108449442A (en) | 2018-03-10 | 2018-03-10 | A kind of iOS Network Optimization Strategies |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108449442A true CN108449442A (en) | 2018-08-24 |
Family
ID=63194494
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810197307.3A Pending CN108449442A (en) | 2018-03-10 | 2018-03-10 | A kind of iOS Network Optimization Strategies |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108449442A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113285920A (en) * | 2021-04-20 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Service access method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340549A (en) * | 2010-07-22 | 2012-02-01 | 中国移动通信集团公司 | Domain name resolution method and device |
CN102970339A (en) * | 2012-10-30 | 2013-03-13 | 北京奇虎科技有限公司 | Method for displaying web address and browser |
CN103327033A (en) * | 2013-07-16 | 2013-09-25 | 星云融创(北京)信息技术有限公司 | Method and device for improving accessing speed of network resource |
US20140006577A1 (en) * | 2012-06-29 | 2014-01-02 | Verizon Patent And Licensing Inc. | Virtual domain name system |
US8738805B1 (en) * | 2010-09-16 | 2014-05-27 | Google Inc. | Content selectable trusted DNS resolvers |
CN104184585A (en) * | 2013-05-28 | 2014-12-03 | 杭州迪普科技有限公司 | Device and method preventing DNS flood attack |
-
2018
- 2018-03-10 CN CN201810197307.3A patent/CN108449442A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340549A (en) * | 2010-07-22 | 2012-02-01 | 中国移动通信集团公司 | Domain name resolution method and device |
US8738805B1 (en) * | 2010-09-16 | 2014-05-27 | Google Inc. | Content selectable trusted DNS resolvers |
US20140006577A1 (en) * | 2012-06-29 | 2014-01-02 | Verizon Patent And Licensing Inc. | Virtual domain name system |
CN102970339A (en) * | 2012-10-30 | 2013-03-13 | 北京奇虎科技有限公司 | Method for displaying web address and browser |
CN104184585A (en) * | 2013-05-28 | 2014-12-03 | 杭州迪普科技有限公司 | Device and method preventing DNS flood attack |
CN103327033A (en) * | 2013-07-16 | 2013-09-25 | 星云融创(北京)信息技术有限公司 | Method and device for improving accessing speed of network resource |
Non-Patent Citations (1)
Title |
---|
伍向阳: "SCO UNIX环境下多级域名的配置", 《计算机与信息技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113285920A (en) * | 2021-04-20 | 2021-08-20 | 北京奇艺世纪科技有限公司 | Service access method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chen et al. | End-user mapping: Next generation request routing for content delivery | |
US11632353B2 (en) | Delegating DNS records to additional providers | |
Shaikh et al. | On the effectiveness of DNS-based server selection | |
US10015243B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US10361931B2 (en) | Methods and apparatus to identify an internet domain to which an encrypted network communication is targeted | |
US6839700B2 (en) | Load balancing content requests using dynamic document generation cost information | |
CN101431539B (en) | Domain name resolution method, system and apparatus | |
US11616831B1 (en) | Point to node in a multi-tiered middleware environment | |
US9577919B2 (en) | DNS wildcard beaconing | |
US7310687B2 (en) | Methods and systems for managing class-based condensation | |
CN106302842B (en) | Domain name resolution method, device and system | |
KR100293373B1 (en) | Method and system for creating and utilizing common cache for internetworks | |
CN101820451B (en) | Dynamic domain name service optimizing system | |
US8639748B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US20090100005A1 (en) | Mapping network addresses to geographical locations | |
CN108702396B (en) | Method and device for data processing | |
CN109905288B (en) | Application service classification method and device | |
CN106412063A (en) | CDN node detection and resource scheduling system and method in education network | |
US11372937B1 (en) | Throttling client requests for web scraping | |
WO2017096888A1 (en) | Method and device for implementing domain name system | |
CN103139252A (en) | Achieving method of network proxy cache acceleration and device thereof | |
CN111030999B (en) | Method for extracting files based on network data packet | |
CN108449442A (en) | A kind of iOS Network Optimization Strategies | |
CN104270371A (en) | CDN cache server selecting method based on fuzzy logic | |
CN103957252A (en) | Method and system for obtaining log of cloud storage 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180824 |