CN105915582A - Method for router to access webpage, and router - Google Patents
Method for router to access webpage, and router Download PDFInfo
- Publication number
- CN105915582A CN105915582A CN201610182033.1A CN201610182033A CN105915582A CN 105915582 A CN105915582 A CN 105915582A CN 201610182033 A CN201610182033 A CN 201610182033A CN 105915582 A CN105915582 A CN 105915582A
- Authority
- CN
- China
- Prior art keywords
- domain name
- virtual domain
- response message
- http response
- webpage
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
-
- 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/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
- H04L61/3025—Domain name generation or assignment
Abstract
The invention is applied to the technical field of communication, and provides a method for a router to access a webpage, and a router. The method comprises the following steps: when an HTTP request message of a client accessing the webpage is received, obtaining a real domain name corresponding to the webpage and an IP address of a Web server corresponding to the webpage; according to the real domain name, accessing the Web server, and receiving an HTTP response message returned by the Web server; generating multiple virtual domain names, and establishing mapping relations between the multiple virtual domain names and the real domain name; and according to the multiple virtual domain names, modifying the HTTP response message, and returning the modified HTTP response message to the client. According to the invention, through modifying the real domain name in the HTTP response message to the different virtual names, a browser of the client is made to consume that there are different Web servers for providing service, and accordingly, a concurrent linking number is increased, such that the webpage access rate is greatly improved, and the bandwidth utilization rate is improved.
Description
Technical field
The invention belongs to communication technical field, particularly relate to method and the router of router access webpage.
Background technology
HTTP (HyperText Transfer Protocol, HTTP) is to maximum concurrent connection number
Specified, such as, HTTP 1.1 (HyperText Transfer Protocol Version 1.1, hypertext
Host-host protocol-version 1.1) the maximum concurrent connection number that defines same domain name is 2.Different browsers pair
The regulation of maximum concurrent connection number is likely to difference, and such as, the maximum concurrent connection number of IE8 regulation is 10,
The maximum concurrent connection number of Firefox3.6.8 and chrome5.0 regulation is 6.
In prior art, in order to ensure the stability of web page browsing, maximum concurrent connection number is changeless,
The speed causing accessing webpage in some cases is relatively low and bandwidth availability ratio is relatively low.
Summary of the invention
In consideration of it, embodiments provide method and the router of a kind of router access webpage, to solve
Certainly in prior art, fixing maximum concurrent connection number causes the speed accessing webpage in some cases relatively low
And the problem that bandwidth availability ratio is relatively low.
First aspect, a kind of method embodiments providing router access webpage, including:
When receiving the HTTP request message of client-access webpage, obtain corresponding true of described webpage
Domain name and the IP address of Web server corresponding to described webpage;
According to Web server described in described true domain name access, and receive what described Web server returned
Http response message;
Generate multiple virtual Domain Name, and set up the mapping pass of multiple described virtual Domain Name and described true domain name
System;
Described http response message is revised according to multiple described virtual Domain Names, and by amended described
Http response message returns to described client.
Second aspect, embodiments provides a kind of router, including:
Info web acquiring unit, is used for when receiving the HTTP request message of client-access webpage,
Obtain true domain name corresponding to described webpage and the IP address of Web server corresponding to described webpage;
Http response message reception units, is used for according to Web server described in described true domain name access,
And receive the http response message that described Web server returns;
Virtual Domain Name signal generating unit, is used for generating multiple virtual Domain Name, and set up multiple described virtual Domain Name with
The mapping relations of described true domain name;
Http response message modification unit, rings for revising described HTTP according to multiple described virtual Domain Names
Answer message, and amended described http response message is returned to described client.
The embodiment of the present invention compared with prior art exists and provides the benefit that: the embodiment of the present invention is by connecing
When receiving the HTTP request message of client-access webpage, generate multiple virtual Domain Name, according to multiple virtual
The http response message that domain name amendment server returns, and amended http response message is returned to
Client, is revised as different virtual Domain Names from there through by the true domain name in http response message, makes
The browser of client is thought has different Web servers to provide service, thus increases concurrent connection number,
Substantially increase the speed accessing webpage, and improve bandwidth availability ratio.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or existing skill
In art description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only
It is only some embodiments of the present invention, for those of ordinary skill in the art, is not paying creative labor
On the premise of dynamic property, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flowchart of the method for the router access webpage that the embodiment of the present invention provides;
Fig. 2 is the flowchart of the method for the router access webpage that another embodiment of the present invention provides;
Fig. 3 is the structured flowchart of the router that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
Fig. 1 shows the flowchart of the method for the router access webpage that the embodiment of the present invention provides, in detail
State as follows:
In step S101, when receiving the HTTP request message of client-access webpage, obtaining should
True domain name that webpage is corresponding and the IP address of Web server corresponding to this webpage.
In step s 102, according to this Web server of true domain name access, and this Web server is received
The http response message returned.
It should be noted that the executive agent of the embodiment of the present invention is router.In embodiments of the present invention,
Router, when receiving the HTTP request message of client-access webpage, obtains corresponding true of this webpage
Domain name and the IP (Internet Protocol, Internet protocol) of Web (webpage) server corresponding to this webpage
Address, according to this Web server of true domain name access, and receives the HTTP that this Web server returns
Response message.
In step s 103, generate multiple virtual Domain Name, and set up multiple virtual Domain Name and true domain name
Mapping relations.
Alternatively, the number of virtual Domain Name can determine according to current bandwidth availability ratio.Such as, when currently
Bandwidth availability ratio when the first pre-set interval, generate N number of virtual Domain Name;When current bandwidth availability ratio exists
During the second pre-set interval, generate M virtual Domain Name.Wherein, the maximum of the first pre-set interval is less than the
The minimum of a value of two pre-set interval, the maximum of the second pre-set interval is less than the first preset value, and N is more than M, N
It is positive integer with M.
In step S104, revise this http response message according to multiple virtual Domain Names, and by after amendment
This http response message return to this client.
Preferably, this revise this http response message according to multiple virtual Domain Names particularly as follows:
True domain name in the message header of this http response message is revised as in multiple virtual Domain Name wherein
One virtual Domain Name.
In embodiments of the present invention, according to the multiple virtual Domain Names amendment http response message generated, will
True domain name in the message header of http response message be revised as in multiple virtual Domain Name one of them is virtual
Domain name, and amended http response message is returned to client, make the browser of client think have
Different Web servers provides service, thus increases concurrent connection number.Such as, the maximum of same domain name
Concurrent connection number be Q, Q be the positive integer more than or equal to 1, the number of virtual Domain Name is N, then maximum
Concurrent connection number increases to N × Q, thus substantially increases the speed accessing webpage, and improves bandwidth profit
By rate.
What Fig. 2 showed the method for the router access webpage that another embodiment of the present invention provides realizes flow process
Figure, with reference to Fig. 2:
In step s 201, when receiving the HTTP request message of client-access webpage, obtaining should
True domain name that webpage is corresponding and the IP address of Web server corresponding to this webpage;
In step S202, according to this Web server of true domain name access, and receive this Web server
The http response message returned;
In step S203, obtain current bandwidth availability ratio;
In step S204, if current bandwidth availability ratio is less than the first preset value, then generate multiple virtual
Domain name, and set up the mapping relations of multiple virtual Domain Name and true domain name;
In step S205, revise this http response message according to multiple virtual Domain Names, and by after amendment
This http response message return to this client.
As one embodiment of the present of invention, it is less than the situation of the first preset value at current bandwidth availability ratio
Under, just generate multiple virtual Domain Name to increase concurrent connection number, thus avoid making in the case of link is busy
Become link to block up, and in the case of link more free time, improve bandwidth availability ratio.
Preferably, after this sets up multiple virtual Domain Name mapping relations with true domain name, the method is also wrapped
Include:
Generating a plurality of DNS record, this DNS a plurality of record is respectively used to record multiple virtual Domain Name and this IP
The mapping relations of address.
In embodiments of the present invention, after setting up multiple virtual Domain Name mapping relations with true domain name, on road
DNS (Domain Name System, a domain name system is generated according to each virtual Domain Name respectively by device
System) record, a DNS record is for a virtual Domain Name and the mapping of the IP address of this Web server
Relation.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to perform suitable
The priority of sequence, the execution sequence of each process should determine with its function and internal logic, and should be unreal to the present invention
The implementation process executing example constitutes any restriction.
The embodiment of the present invention is by when receiving the HTTP request message of client-access webpage, and generation is many
Individual virtual Domain Name, the http response message returned according to multiple virtual Domain Names amendment server, and will amendment
After http response message return to client, from there through by the true domain name in http response message
Being revised as different virtual Domain Names, making the browser of client think has different Web servers to provide clothes
Business, thus increase concurrent connection number, substantially increase the speed accessing webpage, and improve bandwidth availability ratio.
Fig. 3 shows the structured flowchart of the router that the embodiment of the present invention provides, and this router may be used for fortune
The method of the router access webpage shown in row Fig. 1 or Fig. 2.For convenience of description, illustrate only and this
The part that bright embodiment is relevant.
With reference to Fig. 3, this router includes:
Info web acquiring unit 31, in the HTTP request message receiving client-access webpage
Time, obtain true domain name corresponding to described webpage and the IP address of Web server corresponding to described webpage;
Http response message reception units 32, for according to Web service described in described true domain name access
Device, and receive the http response message that described Web server returns;
Virtual Domain Name signal generating unit 33, is used for generating multiple virtual Domain Name, and sets up multiple described virtual Domain Name
Mapping relations with described true domain name;
Http response message modification unit 34, for revising described HTTP according to multiple described virtual Domain Names
Response message, and amended described http response message is returned to described client.
Preferably, described router also includes:
Bandwidth availability ratio acquiring unit 35, for obtaining current bandwidth availability ratio.
Preferably, described virtual Domain Name signal generating unit 33 specifically for:
If described current bandwidth availability ratio is less than the first preset value, then generates multiple virtual Domain Name, and set up
Multiple described virtual Domain Names and the mapping relations of described true domain name.
Preferably, described router also includes:
DNS record generation unit 36, is used for generating a plurality of DNS record, a plurality of described DNS record point
Yong Yu not record the mapping relations of multiple described virtual Domain Name and described IP address.
Preferably, described http response message modification unit 34 specifically for:
Described true domain name in the message header of described http response message is revised as multiple described virtual Domain
The described virtual Domain Name of one of them in Ming.
The embodiment of the present invention is by when receiving the HTTP request message of client-access webpage, and generation is many
Individual virtual Domain Name, the http response message returned according to multiple virtual Domain Names amendment server, and will amendment
After http response message return to client, from there through by the true domain name in http response message
Being revised as different virtual Domain Names, making the browser of client think has different Web servers to provide clothes
Business, thus increase concurrent connection number, substantially increase the speed accessing webpage, and improve bandwidth availability ratio.
Those of ordinary skill in the art are it is to be appreciated that combine respectively showing of the embodiments described herein description
The unit of example and algorithm steps, it is possible to come with the combination of electronic hardware or computer software and electronic hardware
Realize.These functions perform with hardware or software mode actually, depend on the application-specific of technical scheme
And design constraint.Each specifically should being used for can be used different methods to realize by professional and technical personnel
Described function, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and foregoing description
Router and the specific works process of unit, be referred to the corresponding process in preceding method embodiment,
This repeats no more.
In several embodiments provided herein, it should be understood that disclosed router and method,
Can realize by another way.Such as, router embodiment described above is only schematically,
Such as, the division of described unit, be only a kind of logic function and divide, actual can have when realizing other
Dividing mode, the most multiple unit can in conjunction with or be desirably integrated into another system, or some features can
To ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or logical
Letter connection can be by some interfaces, the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery
Or other form.
The described unit illustrated as separating component can be or may not be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs
Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit
In.
If described function realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, the skill of the present invention
Part or the part of this technical scheme that prior art is contributed by art scheme the most in other words are permissible
Embodying with the form of software product, this computer software product is stored in a storage medium, including
Some instructions are with so that a computer equipment (can be that personal computer, server, or network set
Standby etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium
Including: USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), deposit at random
Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be stored
The medium of program code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to
This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in
Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should
Described it is as the criterion with scope of the claims.
Claims (10)
1. the method for a router access webpage, it is characterised in that including:
When receiving the HTTP request message of client-access webpage, obtain corresponding true of described webpage
Domain name and the IP address of Web server corresponding to described webpage;
According to Web server described in described true domain name access, and receive what described Web server returned
Http response message;
Generate multiple virtual Domain Name, and set up the mapping pass of multiple described virtual Domain Name and described true domain name
System;
Described http response message is revised according to multiple described virtual Domain Names, and by amended described
Http response message returns to described client.
2. the method for claim 1, it is characterised in that the multiple virtual Domain Name of described generation it
Before, described method also includes:
Obtain current bandwidth availability ratio.
3. method as claimed in claim 2, it is characterised in that the multiple virtual Domain Name of described generation, and
Set up the mapping relations of multiple described virtual Domain Name and described true domain name particularly as follows:
If described current bandwidth availability ratio is less than the first preset value, then generates multiple virtual Domain Name, and set up
Multiple described virtual Domain Names and the mapping relations of described true domain name.
4. the method for claim 1, it is characterised in that set up multiple described virtual Domain described
Name with the mapping relations of described true domain name after, described method also includes:
Generating a plurality of DNS record, a plurality of described DNS record is respectively used to record multiple described virtual Domain Name
Mapping relations with described IP address.
5. the method for claim 1, it is characterised in that described according to multiple described virtual Domain Names
Revise described http response message particularly as follows:
Described true domain name in the message header of described http response message is revised as multiple described virtual Domain
The described virtual Domain Name of one of them in Ming.
6. a router, it is characterised in that including:
Info web acquiring unit, is used for when receiving the HTTP request message of client-access webpage,
Obtain true domain name corresponding to described webpage and the IP address of Web server corresponding to described webpage;
Http response message reception units, is used for according to Web server described in described true domain name access,
And receive the http response message that described Web server returns;
Virtual Domain Name signal generating unit, is used for generating multiple virtual Domain Name, and set up multiple described virtual Domain Name with
The mapping relations of described true domain name;
Http response message modification unit, rings for revising described HTTP according to multiple described virtual Domain Names
Answer message, and amended described http response message is returned to described client.
7. router as claimed in claim 6, it is characterised in that described router also includes:
Bandwidth availability ratio acquiring unit, for obtaining current bandwidth availability ratio.
8. router as claimed in claim 7, it is characterised in that described virtual Domain Name signal generating unit has
Body is used for:
If described current bandwidth availability ratio is less than the first preset value, then generates multiple virtual Domain Name, and set up
Multiple described virtual Domain Names and the mapping relations of described true domain name.
9. router as claimed in claim 6, it is characterised in that described router also includes:
DNS record generation unit, is used for generating a plurality of DNS record, and a plurality of described DNS record is used respectively
In the mapping relations recording multiple described virtual Domain Name and described IP address.
10. router as claimed in claim 6, it is characterised in that described http response message modification
Unit specifically for:
Described true domain name in the message header of described http response message is revised as multiple described virtual Domain
The described virtual Domain Name of one of them in Ming.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610182033.1A CN105915582B (en) | 2016-03-28 | 2016-03-28 | The method and router of router access webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610182033.1A CN105915582B (en) | 2016-03-28 | 2016-03-28 | The method and router of router access webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105915582A true CN105915582A (en) | 2016-08-31 |
CN105915582B CN105915582B (en) | 2019-04-02 |
Family
ID=56744561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610182033.1A Expired - Fee Related CN105915582B (en) | 2016-03-28 | 2016-03-28 | The method and router of router access webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105915582B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111049789A (en) * | 2018-10-15 | 2020-04-21 | 北京京东尚科信息技术有限公司 | Domain name access method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1700682A (en) * | 2004-05-21 | 2005-11-23 | 迈普(四川)通信技术有限公司 | Virtual domain name resolution proxy method and system |
CN102656863A (en) * | 2009-12-18 | 2012-09-05 | 高通股份有限公司 | HTTP optimization, multi-homing, mobility and priority |
CN104221390A (en) * | 2012-04-26 | 2014-12-17 | 高通股份有限公司 | Enhanced block-request streaming system for handling low-latency streaming |
-
2016
- 2016-03-28 CN CN201610182033.1A patent/CN105915582B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1700682A (en) * | 2004-05-21 | 2005-11-23 | 迈普(四川)通信技术有限公司 | Virtual domain name resolution proxy method and system |
CN102656863A (en) * | 2009-12-18 | 2012-09-05 | 高通股份有限公司 | HTTP optimization, multi-homing, mobility and priority |
CN104221390A (en) * | 2012-04-26 | 2014-12-17 | 高通股份有限公司 | Enhanced block-request streaming system for handling low-latency streaming |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111049789A (en) * | 2018-10-15 | 2020-04-21 | 北京京东尚科信息技术有限公司 | Domain name access method and device |
CN111049789B (en) * | 2018-10-15 | 2023-05-12 | 北京京东尚科信息技术有限公司 | Domain name access method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105915582B (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10467241B2 (en) | Dynamically provisioning instances of a single-tenant application for multi-tenant use | |
US20180278725A1 (en) | Converting a single-tenant application for multi-tenant use | |
CN103747112A (en) | CDN back-to-source method, first server and system thereof | |
CN104380278A (en) | Device, system, and method for client-governed session persistency between one or more clients and servers of a data center | |
US20070005739A1 (en) | Method and apparatus for dynamically controlling the selection and redundancy of web service components | |
CN111163130B (en) | Network service system and data transmission method thereof | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
CN108777698A (en) | Webpage storage method, system and block chain node device | |
CN104426862A (en) | Method, system, and browser realizing cross-domain request login | |
CN108173774A (en) | The upgrade method and system of a kind of client | |
CN101895520B (en) | Widget system data sharing method, server and data sharing system | |
CN109376172A (en) | Data capture method and system based on block chain | |
CN109962961A (en) | A kind of reorientation method and system of content distribution network CDN service node | |
CN104793982A (en) | Method and device for establishing virtual machine | |
CN112988378A (en) | Service processing method and device | |
CN106055706A (en) | Cache resource storage method and device | |
CN111338750A (en) | Pressure adjusting method and device for execution node, server and storage medium | |
CN104735041A (en) | Method and device for having access to offline resources | |
CN105556918A (en) | Resource downloading method, electronic device, and apparatus | |
CN105763616A (en) | Resource-downloading method and device | |
CN106326403A (en) | Web page generating method and device | |
CN105915582A (en) | Method for router to access webpage, and router | |
JP6233846B2 (en) | Variable-length nonce generation | |
CN114095578B (en) | Function distribution method, unified scheduling platform, edge node and computing device | |
CN107977381B (en) | Data configuration method, index management method, related device and computing equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191226 Address after: Room 101, building 2, No.97 Maoshan Road, Chang'an Town, Dongguan City, Guangdong Province Patentee after: Dongguan tengze Electronic Technology Co., Ltd Address before: 518000 A building, Sha four science and Technology Park, manholes street, Shenzhen, Guangdong, Baoan District Patentee before: Shenzhen Allwins Technology Corporation |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190402 Termination date: 20200328 |
|
CF01 | Termination of patent right due to non-payment of annual fee |