CN104509066B - A kind of method and the network equipment, management server for accessing network - Google Patents

A kind of method and the network equipment, management server for accessing network Download PDF

Info

Publication number
CN104509066B
CN104509066B CN201580000001.9A CN201580000001A CN104509066B CN 104509066 B CN104509066 B CN 104509066B CN 201580000001 A CN201580000001 A CN 201580000001A CN 104509066 B CN104509066 B CN 104509066B
Authority
CN
China
Prior art keywords
address
message
web
page requests
domain name
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.)
Expired - Fee Related
Application number
CN201580000001.9A
Other languages
Chinese (zh)
Other versions
CN104509066A (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.)
Individual
Original Assignee
Individual
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
Priority claimed from CN201410247852.0A external-priority patent/CN104010051B/en
Application filed by Individual filed Critical Individual
Priority to CN201580000001.9A priority Critical patent/CN104509066B/en
Publication of CN104509066A publication Critical patent/CN104509066A/en
Application granted granted Critical
Publication of CN104509066B publication Critical patent/CN104509066B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0281Proxies
    • 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)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and the network equipment, management server for accessing network, method includes the inquiry of the domain name request message that receiving terminal apparatus is sent, wherein, the domain name for the targeted website that inquiry of the domain name request message carried terminal equipment is accessed;Inquiry of the domain name request message is forwarded to dns server;The inquiry of the domain name successful respond message that dns server is returned is received, wherein, inquiry of the domain name successful respond message carries the corresponding IP address of domain name of targeted website;The corresponding IP address of domain name of the website carried in inquiry of the domain name successful respond message is revised as the IP address of management server;Amended inquiry of the domain name successful respond message is returned into terminal device, during so that terminal device is to targeted website transmission web-page requests message, entrained purpose IP address is the IP address of management server in web-page requests message.By the above-mentioned means, the data message that the present invention can be interacted between management terminal device and network.

Description

A kind of method and the network equipment, management server for accessing network
Technical field
The present invention relates to network technique field, more particularly to a kind of method and the network equipment for accessing network, management clothes Business device.
Background technology
With the development of internet, the information provided on internet is more and more, and the service provided is also more and more, People increasingly like obtaining information or service by internet.And user when accessing internet, it is necessary to by terminal device Internet is accessed, at present, the method for common end device access internet is sought to:By terminal device connection route device, then lead to Router connection internet is crossed, in brief, all information interacted between terminal device and internet are required to by route The forwarding of device.
At present, as the router of the bridge between terminal device and internet, only provide data message forwarding function or Person's routing function, function is single.
The content of the invention
The present invention solves the technical problem of provide a kind of method and the network equipment network equipment for accessing network, pipe Manage server, the data message that can be interacted between management terminal device and network.
In order to solve the above technical problems, one aspect of the present invention is:A kind of method for accessing network is provided, The inquiry of the domain name request message sent including receiving terminal apparatus, wherein, domain name inquiry request message carries the terminal The domain name for the targeted website that equipment is accessed;Domain name inquiry request message is forwarded to domain name system DNS server;Receive institute Dns server is stated according to domain name inquiry request message, the inquiry of the domain name successful respond message of return, wherein, domain name Successful inquiring response message carries the corresponding IP address of domain name of the targeted website;By domain name successful inquiring response message The corresponding IP address of domain name of the targeted website of middle carrying is revised as the IP address of management server;Will be described amended Inquiry of the domain name successful respond message returns to the terminal device, so that the terminal device sends webpage to the targeted website During request message, entrained purpose IP address is the IP address of management server in the web-page requests message.
Wherein, the web-page requests include HTTP request message, Hyper text transfer security protocol HTTPS request message or based on transmission control protocol application layer protocol SPDY request messages.
In order to solve the above technical problems, another technical solution used in the present invention is:A kind of side for accessing network is provided Method, including:Data message transmitted by receiving terminal apparatus;Judge whether the data message is the terminal device to target What website was sent, the web-page requests message for requested webpage content;If the data message is web-page requests message, by institute State the IP address that purpose IP address in data message is revised as management server;Forwarded to the management server after the modification Data message so that URL address of the management server in the amended data message, to the target network Stand requested webpage content, and the web page contents for asking to obtain are returned to the terminal device.
In order to solve the above technical problems, another technical scheme that the present invention is used is:A kind of side for accessing network is provided Method, including web-page requests message is received, wherein, web-page requests message is set comprising purpose IP address, source IP address and the terminal The URL addresses of the standby targeted website accessed, the purpose IP address is the IP address of management server, and the source IP address is The IP address of terminal device;Sending inquiry of the domain name to dns server according to the URL addresses carried in the web-page requests message please Message is sought, to ask the IP address of the targeted website;Receive the inquiry of the domain name successful respond report that the dns server is returned Text, wherein, domain name successful inquiring response message carries the corresponding IP address of domain name of the targeted website;By the webpage Purpose IP address in request message is revised as the IP address of the targeted website, with the source IP in the web-page requests message The IP address of management server is revised as in location, and forwards the amended web-page requests message to the targeted website;Receive The web-page requests response message that the targeted website is returned according to the amended web-page requests message;By the web-page requests Purpose IP address is revised as the IP address of the terminal device in response message, and forwards the webpage please to the terminal device Seek response message.
Wherein, methods described also includes:According to the web-page requests message or/and web-page requests response message, institute is obtained State the content that terminal device is accessed;The content accessed according to the terminal device, analyzes the use of the using terminal equipment The behavioural habits at family, and according to the behavioural habits to terminal device advertisement.
In order to solve the above technical problems, the also technical scheme that the present invention is used is:A kind of network equipment is provided, including First receiving module, the inquiry of the domain name request message sent for receiving terminal apparatus, wherein, domain name inquiry request message Carry the domain name for the targeted website that the terminal device is accessed;First sending module, for forwarding the domain to dns server Name inquiry request message;Second receiving module, for receiving the dns server according to domain name inquiry request message, is returned The inquiry of the domain name successful respond message returned, wherein, domain name successful inquiring response message carries the domain name of the targeted website Corresponding IP address;Modified module, for the domain for the targeted website that will be carried in domain name successful inquiring response message The corresponding IP address of name is revised as the IP address of management server;Second hair module, for by the amended inquiry of the domain name Successful respond message returns to the terminal device, during so that the terminal device is to targeted website transmission web-page requests, Entrained purpose IP address is the IP address of management server in the web-page requests.
Wherein, the web-page requests include HTTP request, HTTPS request or SPDY requests.
In order to solve the above technical problems, the also technical scheme that the present invention is used is:A kind of network equipment is provided, including Receiving module, for the data message transmitted by receiving terminal apparatus;Judge module, for judge the data message whether be Web-page requests message from the terminal device to targeted website requested webpage content;Modified module, in the judge module When determining the data message for web-page requests message, purpose IP address in the data message is revised as management server IP address;Sending module, for forwarding the amended data message to the management server, so that the management clothes It is engaged in URL address of the device in the amended data message, to the targeted website requested webpage content, and to the end End equipment returns to the web page contents that request is obtained.
In order to solve the above technical problems, one aspect of the present invention is:A kind of management server is provided, including First receiving module, for receiving web-page requests message, wherein, the web-page requests message is with including purpose IP address, source IP Location and the URL addresses of targeted website, the purpose IP address are the IP address of management server, and the source IP address sets for terminal Standby IP address;Sending module, for according to the URL addresses carried in the web-page requests message to dns server sending domain Name inquiry request message, to ask the corresponding IP address of domain name of the targeted website;Second receiving module, it is described for receiving The inquiry of the domain name successful respond message that dns server is returned according to inquiry of the domain name request message, wherein, domain name successful inquiring Response message carries the corresponding IP address of domain name of the targeted website;First modification sending module, for the webpage to be asked The source IP address for asking the purpose IP address in message to be revised as in the IP address of the targeted website, the web-page requests message is repaiied The IP address of management server is changed to, and the amended web-page requests message is forwarded to the targeted website;3rd receives Module, for receiving the web-page requests response message that the targeted website is returned according to the amended web-page requests message, Wherein, web-page requests response message carries web page contents;Second modification sending module, for by the web-page requests response message Middle purpose IP address is revised as the IP address of the terminal device, and forwards the web-page requests response report to the terminal device Text.
Wherein, management server also includes:Acquisition module, for according to the web-page requests message and web-page requests response Message, obtains the content that the terminal device is accessed;Pushing module is analyzed, in being accessed according to the terminal device Hold, analyze the behavioural habits of the user of the using terminal equipment, and according to the behavioural habits to terminal device advertisement.
The beneficial effects of the invention are as follows:The situation of prior art is different from, inventive network equipment is receiving DNS service When device is to terminal device return domain name successful inquiring response message, the targeted website that will be carried in inquiry of the domain name successful respond message The corresponding IP address of domain name be revised as the IP address of management server, or, sent out receiving terminal device to targeted website When sending web-page requests message, purpose IP address in web-page requests message is revised as to the IP address of management server, so that terminal Equipment and the data message interacted of targeted website, are required to be forwarded by management server, and then can set terminal It is standby to be managed with the data message interacted of targeted website, generate Web portal platform.
Brief description of the drawings
Fig. 1 is the structure chart that the present invention accesses web implementations;
Fig. 2 is the structure chart that inventive network accesses system second embodiment;
Fig. 3 is that the present invention accesses the flow chart that the first in web implementations accesses the method for network;
Fig. 4 is the flow chart that the present invention accesses the method for second of access network in web implementations;
Fig. 5 is the structural representation of inventive network equipment first embodiment;
Fig. 6 is the structural representation of inventive network equipment second embodiment;
Fig. 7 is the structural representation of the embodiment of inventive network equipment the 3rd;
Fig. 8 is the structural representation of the embodiment of inventive network equipment the 4th;
Fig. 9 is the structural representation of management server first embodiment of the present invention;
Figure 10 is the structural representation of management server second embodiment of the present invention;
Figure 11 is the flow chart for the method first embodiment that the present invention accesses network;
Figure 12 is the flow chart for the method second embodiment that the present invention accesses network;
Figure 13 is the flow chart for the embodiment of method the 3rd that the present invention accesses network.
Embodiment
The present invention is described in detail with embodiment below in conjunction with the accompanying drawings.
Referring to Fig. 1, network access system 10 includes terminal device 101, the network equipment 102, dns server 103, management Server 104 and targeted website 105.Terminal device 101 is by the access network of the network equipment 102, in embodiments of the present invention, The network equipment 102 can be cable router, or wireless router, for example:WIFI routers;Or, the network equipment 102 For access in radio equipment, such as DSL DSLAM equipment, fiber access device, the network equipment 102 or radio reception device, Such as wireless base station;Further, as shown in Fig. 2 the network equipment can also be SDN (Software Defined Network, software defined network) in chain of command equipment 112, SDN refer to control and data separating network, SDN nets The control of message in network is controlled by chain of command equipment 112.
When terminal device 101 is by the form access target website 105 of domain name, for example:In the browser of terminal device 101 The domain name of upper input www.XX.com targeted website 105, then need first to translate domain names into for IP address, terminal device 101 to Dns server 103 sends domain name inquiry request message, wherein, inquiry of the domain name request message reaches the network equipment 102, net at first The inquiry of the domain name request message that the receiving terminal apparatus 101 of network equipment 102 is sent, wherein, inquiry of the domain name request message carried terminal The domain name for the targeted website 105 that equipment is accessed.The network equipment 102 forwards inquiry of the domain name request to report to dns server 103 Text.Dns server 103 is after inquiry of the domain name request message is received, according to inquiry of the domain name request message searched targets website 105 The corresponding IP address of domain name, and after the corresponding IP address of the domain name of targeted website 105 is retrieved, to the returns to field of terminal device 101 Name successful inquiring response message, wherein, inquiry of the domain name successful respond message carries the corresponding IP of domain name of the targeted website 105 Address.
Inquiry of the domain name successful respond message first passes through the network equipment 102, then arrive into the transmit process of terminal device 101 Terminal device 101.The network equipment 102 is received after inquiry of the domain name successful respond message, by inquiry of the domain name successful respond message The corresponding IP address of domain name of the website of carrying is revised as the IP address of management server 104, and the network equipment 102 will be changed Inquiry of the domain name successful respond message afterwards returns to terminal device 101.Terminal device 101 connect repair amended inquiry of the domain name into Work(response message, equivalent to terminal device knows domain name mapping success, then terminal device 101 sends webpage to objective network and asked Message is sought, with the content of requested webpage, wherein, entrained purpose IP address in web-page requests message, in embodiment of the present invention In, because the domain name addresses of targeted website 105 is replaced the IP address of management server 104, then taken in web-page requests message The purpose IP address of band is the IP address of management server 104;Web-page requests message includes HTTP request message, HTTPS request Message and SPDY request messages.
Due to the IP address that the purpose IP address in web-page requests message is management server 104, therefore, web-page requests report Text can be transferred to up to management server 104, wherein, the IP address and terminal of web-page requests message also carried terminal equipment 101 are set The URL addresses of standby 101 targeted websites 105 accessed.Management server 104 is received after reception web-page requests message, can be solved Web-page requests message is analysed, the URL addresses of targeted website and the IP address of terminal device 101 is obtained, and according to web-page requests report The URL addresses carried in text send domain name inquiry request message to dns server 103, with the target corresponding to request URL address The IP address of website 105.Management server 104 is after the IP address of targeted website 105 is received, by web-page requests message The source IP address that purpose IP address is revised as in the IP address of targeted website 105, web-page requests message is revised as management server IP address, and forward amended web-page requests message to targeted website 105.Targeted website 105 receives amended net After page request message, web-page requests response message is returned to according to amended web-page requests message, wherein, web-page requests response report Text carries web page contents.
Management server 104 is received after web-page requests response message, by purpose IP address in web-page requests response message It is revised as the IP address of terminal device 101, and to the converting web page request response message of terminal device 101.Because web-page requests should The purpose IP address for answering message is the IP address of terminal device 101, then web-page requests response message is transferred to up to terminal device 101。
Seen from the above description:Pass through the datagram of the terminal device 101 and network interaction of the access network of the network equipment 102 Text, is required to the forwarding by management server 104, so that management server 104 enters for the network of terminal device 101 Mouthful, the data message that management server 104 can be interacted between management terminal device 101 and network, the use of collection terminal equipment 101 User data, and according to user data, carries out accurately advertisement pushing, or there is provided personalized recommendation function etc., for example:Pipe Server 104 is managed according to web-page requests message and web-page requests response message, the content that terminal device 101 is accessed is obtained, and The content accessed according to terminal device 101, analyze using terminal equipment user behavioural habits, and according to behavioural habits to Terminal device advertisement.
In other alternate embodiments, the network equipment 102 is not changed when receiving inquiry of the domain name successful respond message The IP address of targeted website is carried in inquiry of the domain name successful respond message, web-page requests message is sent being connected to terminal device 101 When, then change the purpose IP address carried in web-page requests message.Then the network equipment 102 is received transmitted by terminal device 101 Data message when, whether be terminal device to targeted website 105 send, for requested webpage content if judging data message Web-page requests message, in embodiments of the present invention, web-page requests message include HTTP request message, HTTPS request message or Person's SPDY request messages.If data message is web-page requests message, purpose IP address in data message is revised as management clothes The IP address of business device 104, and amended data message is forwarded to management server 104, wherein, amended data message is also The IP address of carried terminal equipment 101 and the URL addresses of the targeted website accessed.
Management server 104 is received after amended web-page requests message, web-page requests message that can be after analytic modification, Obtain the IP address of terminal device 101 and the URL addresses of targeted website.Management server 104 can take according to URL addresses to DNS Business device 103 obtains the corresponding IP address in targeted website.And according to the IP address of targeted website to targeted website requested webpage content, And the web page contents that request is obtained are returned to terminal device 101, wherein, the specific processing method of management server 104 see Foregoing description, is no longer repeated one by one herein.
In order to allow reader to more fully understand present disclosure, the citing of above two embodiment is illustrated below.
Example 1:The network equipment is WIFI routers, and WIFI routers include IP bags routing module and DNS successful respond frames IP Address modified module, management server is WIFI Internet portal platforms, and WIFI Internet portal platforms connect including web-page requests Receive and forwarding module and the reception of web-page requests response result and forwarding module.
The responsible IP bags and network that network is sent to end-user browses device of IP bags routing module issues the IP of user terminal Bag is route;DNS successful respond frame IP address modified modules are responsible for identifying the DNS that dns server returns to terminal device Successful query acknowledgement frame, is revised as wifi mutual by the IP address of the domain name correspondence IP address field in DNS successful query acknowledgement frames The IP address of intranet portal platform.Web-page requests are received and forwarding module is responsible for the web-page requests message that receiving terminal apparatus is sent (such as Http requests, Https requests, SPDY requests), according to the ur l of web-page requests message, web-page requests message is transmitted to The corresponding targeted websites of ur l;Web-page requests response result is received and forwarding module is responsible for the net that real-time reception targeted website is returned Page request-reply result message (such as Http request-replies result, Https request-replies result, SPDY request-replies result), Web-page requests response result message is transmitted to terminal device.
Comprise the following steps that, as shown in Figure 3:
Step S1:Terminal device sends DNS query request to dns server.
Step S2:Dns server returns to domain name successful inquiring response message.
Step S3:When inquiry of the domain name successful respond message passes through wifi routers, wifi routers identify that the domain name is looked into Successful respond message is ask, and the IP address of the corresponding IP address field of domain name in message is revised as wifi Internet portals and is put down The IP address of platform.Here inquiry of the domain name response message is the message of response after successful inquiry, inquires about the response message of failure (such as ur l correspondence domain names are not present) does not deal with.
Certainly, those skilled in the art can also be set to corresponding to specific domain name or IP address in WIFI routers Inquiry of the domain name successful respond message, the purpose IP address in the inquiry of the domain name successful respond message is not changed, so that terminal is set It is standby when accessing the domain name or the corresponding targeted website of the IP address, web-page requests message is not sent to pipe transmitted by terminal device Server is managed, but direct routing reaches targeted website, for example:In WIFI configuration files, specific domain name or IP are configured Address list, if the domain name in inquiry of the domain name successful respond message or the IP address corresponding to domain name are included in above-mentioned list In, then WIFI routers do not change the inquiry of the domain name successful respond message.Step S4:Wifi routers will substituted for IP address DNS query successful respond frame returns to terminal device.
Step S5:Terminal device sends web-page requests message (such as Http requests, Https to wifi Internet portals platform Request, SPDY requests etc.).
Step S6:The web-page requests message that wifi Internet portal platform receiving terminal apparatus is sent, according to web-page requests The ur l of message, the corresponding targeted websites of ur l are transmitted to by web-page requests message;
Step S7:(such as Http request-replies, Https request-replies, SPDY please for the web-page requests response message that website is returned Ask response etc.) to wifi Internet portal platforms.
Step S8:Web-page requests response message is transmitted to terminal device by wifi Internet portals platform.
Example 2:The network equipment is WIFI routers, and WIFI routers include IP bags routing module and the corresponding IP of web-page requests The purpose IP address modified module of bag, management server is WIFI Internet portal platforms, and WIFI Internet portal platforms include Web-page requests are received and forwarding module and the reception of web-page requests response result and forwarding module.
The responsible IP bags and network that network is sent to end-user browses device of IP bags routing module issues the IP of user terminal Bag is route;The IP address modified module of the corresponding IP bags of web-page requests is responsible for identifying the webpage sent to terminal device Request message (such as Http requests, Https requests, SPDY requests), by the purpose of the corresponding all IP bags of web-page requests message IP address is substituted for the IP address of wifi Internet portal platforms.
Web-page requests are received and forwarding module be responsible for web-page requests message that receiving terminal apparatus sends (such as Http requests, Https requests, SPDY requests etc.), according to the ur l of web-page requests message, web-page requests message is transmitted to the corresponding mesh of ur l Mark website;Web-page requests response result is received and forwarding module is responsible for the web-page requests response knot that real-time reception targeted website is returned Retribution text (such as Http request-replies result, Https request-replies result, SPDY request-replies result), should by web-page requests Answer result message and be transmitted to terminal device.
Detailed process is as follows, as shown in Figure 4:
Step S11:Terminal device sends Http requests to targeted website.
Step S12:Wifi routers identified from IP bags terminal device web-page requests message (such as Http request, Https requests, SPDY requests etc.), the purpose IP address of the corresponding all IP bags of all web-page requests messages of terminal device is replaced Change the IP address of wifi Internet portal platforms into.
Certainly, those skilled in the art can also be set to corresponding to specific domain name or IP address in WIFI routers Web-page requests message, the purpose IP address in the web-page requests message is not changed, so that web-page requests message is not sent to management Server, but direct routing reaches targeted website, for example:In WIFI configuration files, with configuring specific domain name or IP Location list, if the domain name or purpose IP address in web-page requests message are included in above-mentioned list, WIFI routers are not repaiied Change the web-page requests message.
Step S13:Web-page requests message is sent to wifi Internet portal platforms.
Step S14:The web-page requests message that wifi Internet portal platform receiving terminal apparatus is sent, according to web-page requests The ur l of message, the corresponding targeted websites of ur l are transmitted to by web-page requests message;
Step S15:Web-page requests response message (such as Http request-replies result, Https request-reply knots that website is returned Really, SPDY request-replies etc.) give wifi Internet portal platforms.
Step S16:Web-page requests response result message is transmitted to terminal device by wifi Internet portals platform.
In embodiments of the present invention, the network equipment receive dns server to terminal device return inquiry of the domain name into During work(response message, the corresponding IP address of domain name of the targeted website carried in inquiry of the domain name successful respond message is revised as pipe The IP address of server is managed, or, when receiving terminal device to targeted website transmission web-page requests message, by web-page requests Purpose IP address is revised as the IP address of management server in message, so that the datagram interacted of terminal device and targeted website Text, is required to be forwarded by management server, and then can be to the data message that interacts of the terminal device with targeted website It is managed.
Referring to Fig. 5, the network equipment 21 includes the first receiving module 211, the first sending module 212, the second receiving module 213rd, the hair of modified module 214 and second module 215.
Terminal device 22 is by the access network of the network equipment 21, all datagrams interacted between terminal device 22 and network Text, is required to the forwarding by the network equipment 21.If terminal device 22 is by domain name access targeted website, in access target net Before standing, in addition it is also necessary to send domain name inquiry request message to dns server 23, with the corresponding IP of the domain name of request target website Location.
The inquiry of the domain name request message that the receiving terminal apparatus 22 of first receiving module 211 is sent, wherein, inquiry of the domain name request The domain name for the website that message carried terminal equipment is accessed.First sending module 212 is asked to dns server forwarding inquiry of the domain name Message.Dns server 23 is received after inquiry of the domain name request message, according to the domain of inquiry of the domain name request message searched targets website The corresponding IP address of name, and after IP address is retrieved, domain name successful inquiring response message is returned, wherein, inquiry of the domain name success Response message carries the corresponding IP address of domain name of targeted website.
Second receiving module 213 receives the inquiry of the domain name successful respond message that dns server 23 is returned.Modified module 214 The corresponding I P addresses of the domain name of the website carried in inquiry of the domain name successful respond message are revised as to the I P of management server Location.Amended inquiry of the domain name successful respond message is returned to terminal device 22 by the second hair module 215.Terminal device 22, which connects, to be repaiied To amended inquiry of the domain name successful respond message, equivalent to terminal device 22 knows domain name mapping success.Terminal device 22 to Objective network sends web-page requests message, with the content of requested webpage, wherein, purpose IP entrained by web-page requests message Location, it is because the domain name addresses of targeted website 105 is replaced the IP address of management server, then entrained in web-page requests message Purpose IP address is the IP address of management server.Then web-page requests message transmissions reach management server, by management server Web page contents are returned to terminal device 22 to targeted website requested webpage content, and after web page contents are obtained, so that eventually The data message of end equipment 22 and network interaction is required to forward by management server.
In embodiments of the present invention, the network equipment receive dns server to terminal device return inquiry of the domain name into During work(response message, the corresponding IP address of domain name of the targeted website carried in inquiry of the domain name successful respond message is revised as pipe The IP address of server is managed, so that terminal device and the data message interacted of targeted website, are required to by management server Forwarded, and then terminal device can be managed with the data message interacted of targeted website.
Referring to Fig. 6, the network equipment 25 includes processor 251, memory 252, network adapter 253 and bus 254.Place Reason device 251, memory 252 and network adapter 253 are connected with bus 254.
Processor 251 is used for the inquiry of the domain name request message sent by the receiving terminal apparatus 27 of network adapter 253, its In, domain name inquiry request message carries the domain name for the targeted website that the terminal device is accessed;Pass through network adapter 253 forward domain name inquiry request message to dns server 26;Dns server is received according to institute by network adapter 253 State inquiry of the domain name request message, the inquiry of the domain name successful respond message of return, wherein, domain name successful inquiring response message is taken The corresponding IP address of domain name with the targeted website;By the website carried in domain name successful inquiring response message The corresponding IP address of domain name is revised as the IP address of management server;By network adapter 253 by the amended domain name Successful inquiring response message returns to the terminal device, so that the terminal device sends web-page requests to the targeted website During message, entrained purpose IP address is the IP address of management server in the web-page requests message.
Wherein, web-page requests message includes HTTP request message, HTTPS request message and SPDY request messages.
The aforesaid operations that processor 251 is performed can be stored in memory 252 in the form of one section of program, in processing When device 251 needs to perform aforesaid operations, this section of program is called in into processor 251 and performed.
Referring to Fig. 7, the network equipment 31 includes receiving module 311, judge module 312, modified module 313 and sending module 314。
Data message transmitted by the receiving terminal apparatus 32 of receiving module 314.Whether judge module 312 judges data message For web-page requests message from terminal device 32 to targeted website requested webpage content.If data message, which is inquiry of the domain name, asks report Text, then the network equipment 31 directly forward the inquiry of the domain name request message.Determining data message in judge module 312 please for webpage When seeking message, purpose IP address in data message is revised as the IP address of management server 33 by modified module 313.If judging mould Block 312 determines data message for other messages, then the network equipment 31 directly forwards the message, wherein, the network equipment 31 is received During the message that network side is sended over, the message directly is forwarded to terminal device 32, for example:Terminal device 32 passes through domain name access Network, it is necessary to first to dns server request target website the corresponding IP address of domain name, then the network equipment 31 directly forward domain name Inquiry request message and inquiry of the domain name successful respond message.
Sending module 314 forwards amended data message to management server 33, wherein amended data message is taken The IP address of tape terminal equipment and the URL addresses of targeted website.Management server 33 is received after data message, after modification Data message in URL addresses, return to the obtained webpage of request to targeted website requested webpage content, and to terminal device 32 Content, is forwarded, and then make so that the data message interacted between terminal device 32 and network is required to management server 33 Management server 33 is obtained as the Web portal of terminal device 32.In embodiments of the present invention, web-page requests message includes HTTP request message, HTTPS request message and SPDY request messages.
In embodiments of the present invention, the network equipment is receiving terminal device to targeted website transmission web-page requests message When, purpose IP address in web-page requests message is revised as to the IP address of management server, so that terminal device and targeted website Interaction data message, be required to be forwarded by management server, and then can be to terminal device and targeted website Interactive data message is managed, and generates Web portal platform.
Referring to Fig. 8, the network equipment 35 includes processor 351, memory 352, network adapter 353 and bus 354.Place Reason device 351, memory 352 and network adapter 353 are connected with bus 354.
Processor 351 is used for by the data message transmitted by the receiving terminal apparatus 36 of network adapter 353;Judge described The whether described terminal device 36 of data message is sent to targeted website, the web-page requests message for requested webpage content; If the data message is web-page requests message, purpose IP address in the data message is revised as management server 37 IP address;The amended data message is forwarded to the management server 37 by network adapter 353, so that the pipe URL address of the server 37 in the amended data message is managed, to the targeted website requested webpage content, and to The terminal device 36 returns to the web page contents for asking to obtain.In embodiments of the present invention, web-page requests message includes HTTP request message, HTTPS request message and SPDY request messages.
The aforesaid operations that processor 351 is performed can be stored in memory 352 in the form of one section of program, in processing When device 351 needs to perform aforesaid operations, this section of program is called in into processor 351 and performed.
Referring to Fig. 9, management server 41 includes the first receiving module 411, sending module 412, the second receiving module 413rd, the first modification sending module 414, the 3rd receiving module 415 and the second modification sending module 416.
The purpose IP address in web-page requests message transmitted by terminal device 42 is the IP address of management server 41, or Person, the web-page requests message transmitted by terminal device 42, after the network equipment is changed, purpose IP in web-page requests message The IP address of management server 41 is revised as in location, therefore, and web-page requests message can be routed to up to management server 41.
First receiving module 411 receives web-page requests message, wherein, web-page requests message includes purpose IP address, source IP Address and the URL addresses of targeted website, purpose IP address are the IP address of management server 41, and source IP address is terminal device IP address.Sending module 412 sends inquiry of the domain name according to the URL addresses carried in web-page requests message to dns server 43 please Message is sought, with the corresponding IP address of the domain name of request target website.Second receiving module 413 receives dns server 43 according to domain The inquiry of the domain name successful respond message that name inquiry request message is returned, wherein, inquiry of the domain name successful respond message carries target network The corresponding IP address of domain name stood.
Purpose IP address in web-page requests message with being revised as the IP of targeted website by the first modification sending module 414 Source IP address in location, web-page requests message is revised as the IP address of management server 41, and forwards modification to targeted website 44 Web-page requests message afterwards.Targeted website 44 is received after web-page requests message, and web-page requests are returned according to web-page requests message Response message, wherein, web-page requests response message carries web page contents.
3rd receiving module 415 receives the web-page requests response that targeted website is returned according to amended web-page requests message Message.Purpose IP address in web-page requests response message with being revised as the IP of terminal device 42 by the second modification sending module 416 Location, and to the converting web page request response message of terminal device 42.
Further, management server 41 also includes acquisition module (not shown) and analysis pushing module (not shown).Obtain Modulus root tuber obtains the content that terminal device 42 is accessed according to web-page requests message and/or web-page requests response message.Analysis is pushed away The content for sending module to be accessed according to terminal device 42, the behavioural habits of the user of analysis using terminal equipment 42, and according to row To be accustomed to the advertisement of terminal device 42.
In embodiments of the present invention, the data message interacted between terminal device and network is required to by management service The forwarding of device so that management server as terminal device Web portal, further, management server can also analysing terminal set The standby data message interacted between network, obtains the behavioural habits for the user for making terminal device, and then can carry out accurately Advertisement pushing.
Referring to Fig. 10, management server 45 includes processor 451, memory 452, network adapter 453 and bus 454.Processor 451, memory 452 and network adapter 453 are connected with bus 454.
Processor 451 is used to receive web-page requests message by the device 453 of Network adaptation 45, wherein, the web-page requests report The URL addresses for the targeted website that the IP address and terminal device 46 of literary carried terminal equipment are accessed;According to web-page requests message The URL addresses of middle carrying send domain name inquiry request message to dns server 47, to ask the mesh corresponding to the URL addresses Mark the IP address of website;The inquiry of the domain name successful respond report that the dns server 47 is returned is received by network adapter 453 Text, wherein, domain name successful inquiring response message carries the corresponding IP address of domain name of the targeted website;By the webpage Purpose IP address in request message is revised as the IP address of the targeted website, with the source IP in the web-page requests message The IP address of management server 45 is revised as in location, and is forwarded by network adapter 453 to the targeted website after the modification Web-page requests message;The targeted website is received according to the amended web-page requests message by network adapter 453 The web-page requests response message of return;Destination address in the web-page requests response message is revised as to the IP of the terminal device Address, and the web-page requests response message is forwarded to the terminal device 46 by network adapter 453.
The aforesaid operations that processor 451 is performed can be stored in memory 452 in the form of one section of program, in processing When device 451 needs to perform aforesaid operations, this section of program is called in into processor 451 and performed.
Figure 11 is referred to, a kind of method of access network includes:
Step S501:The inquiry of the domain name request message that receiving terminal apparatus is sent, wherein, inquiry of the domain name request message is carried The domain name for the targeted website that terminal device is accessed;
The domain name of targeted website and the IP address of targeted website are corresponded.
Step S502:Inquiry of the domain name request message is forwarded to dns server;
Dns server management domain name and the corresponding IP address of domain name.
Step S503:Dns server is received according to inquiry of the domain name request message, the inquiry of the domain name successful respond report of return Text, wherein, inquiry of the domain name successful respond message carries the corresponding IP address of domain name of targeted website;
Step S504:The corresponding IP address of domain name of the website carried in inquiry of the domain name successful respond message is revised as pipe Manage the IP address of server;
The corresponding IP address of domain name is revised as to the IP address of management server, equivalent to, by the domain name of targeted website with The IP address of management server is corresponding, during by the domain name access targeted website of targeted website, then the domain name solution of targeted website The IP address of analysis is the IP address of management server, and data message is sent directly to management server.
Step S505:Amended inquiry of the domain name successful respond message is returned into terminal device so that terminal device to When targeted website sends web-page requests message, in web-page requests message entrained purpose IP address for management server IP Location;
Web-page requests include HTTP request message, HTTPS request message or SPDY request messages.
In embodiments of the present invention, the network equipment receive dns server to terminal device return inquiry of the domain name into During work(response message, the corresponding IP address of domain name of the targeted website carried in inquiry of the domain name successful respond message is revised as pipe The IP address of server is managed, so that terminal device and the data message interacted of targeted website, are required to by management server Forwarded, and then terminal device can be managed with the data message interacted of targeted website.
Figure 12 is referred to, a kind of method of access network includes:
Step S601:Data message transmitted by receiving terminal apparatus;
Terminal device is the setting by network equipment connecting network by network equipment connecting network, the then terminal device It is standby.
Step S602:Whether be terminal device to targeted website send, for requested webpage content if judging data message Web-page requests message, if data message be web-page requests message, into step S604, otherwise into step S603;
Web-page requests message refers to for the message to targeted website requested webpage content, wherein, inquiry of the domain name request report Text and inquiry of the domain name successful respond message etc. are not belonging to web-page requests message.
Step S603:Forwarding data packets;
Step S604:Purpose IP address in data message is revised as to the IP address of management server;
Purpose IP address in data message is revised as the IP address of management server, then data message can be forwarded to management Server.
Step S605:Amended data message is forwarded to management server, so that management server is according to amended URL addresses in data message, are returned in the webpage that request is obtained to targeted website requested webpage content, and to terminal device Hold;
Web-page requests include HTTP request message, HTTPS request message or SPDY request messages.
In embodiments of the present invention, the network equipment is receiving terminal device to targeted website transmission web-page requests message When, purpose IP address in web-page requests message is revised as to the IP address of management server, so that terminal device and targeted website Interaction data message, be required to be forwarded by management server, and then can be to terminal device and targeted website Interactive data message is managed, and generates Web portal platform.
Figure 13 is referred to, a kind of method of access network includes:
Step S701:Receive web-page requests message, wherein, web-page requests message comprising purpose IP address, source IP address and The URL addresses for the targeted website that the terminal device is accessed, the purpose IP address is the IP address of management server, described Source IP address is the IP address of terminal device;
Web-page requests include HTTP request message, HTTPS request message or SPDY request messages.
Step S702:Domain name inquiry request report is sent to dns server according to the URL addresses carried in web-page requests message Text, with the IP address of request target website;
URL addresses carry the domain name of targeted website, then can be according to the IP of the domain Name acquisition targeted website of targeted website Location.
Step S703:The inquiry of the domain name successful respond message that dns server is returned is received, wherein, inquiry of the domain name is successfully answered Answer the corresponding IP address of domain name that message carries targeted website;
Step S704:Purpose IP address in web-page requests message is revised as to the IP address of targeted website, please with webpage Ask the source IP address in message to be revised as the IP address of management server, and amended web-page requests report is forwarded to targeted website Text;
Management server gets the IP address of targeted website, can send web-page requests to targeted website.
Step S705:Receive the web-page requests response message that targeted website is returned according to amended web-page requests message;
Web-page requests response message carries asked web page contents.
Step S706:Destination address in web-page requests response message is revised as to the IP address of terminal device, and to terminal Device forwards web-page requests response message.
Destination address in web-page requests response message is revised as after the IP address of terminal device, web-page requests response message It can be routed to up to terminal device.
Further, management server can also the data message that is interacted with website of analysing terminal equipment, know terminal device User access habits, and according to access habits advertisement, carry out personalized function recommendation etc., then method also includes: According to web-page requests message and/or web-page requests response message, the content that the terminal device is accessed is obtained;Set according to terminal The standby content accessed, analyzes the behavioural habits of the user of the using terminal equipment, and according to behavioural habits to terminal device Advertisement.
In embodiments of the present invention, the data message interacted between terminal device and network is required to by management service The forwarding of device so that management server as terminal device Web portal, further, management server can also analysing terminal set The standby data message interacted between network, obtains the behavioural habits for the user for making terminal device, and then can carry out accurately Advertisement pushing.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, is included within the scope of the present invention.

Claims (4)

1. a kind of method for accessing network, it is characterised in that including:
Web-page requests message is received, wherein, the web-page requests message includes purpose IP address, source IP address and terminal device institute The URL addresses of the targeted website of access, the purpose IP address is the IP address of management server, and the source IP address is terminal The IP address of equipment;
The web-page requests message is parsed, according to the URL addresses carried in the web-page requests message to dns server sending domain Name inquiry request message, to ask the IP address of the targeted website;
The inquiry of the domain name successful respond message that the dns server is returned is received, wherein, domain name successful inquiring response message Carry the corresponding IP address of domain name of the targeted website;
Purpose IP address in the web-page requests message is revised as to the IP address of the targeted website, and the webpage please Ask the source IP address in message to be revised as the IP address of management server, web-page requests are sent and to described to the targeted website Targeted website forwards the amended web-page requests message;
Receive the web-page requests response message that the targeted website is returned according to the amended web-page requests message;
Purpose IP address in the web-page requests response message is revised as to the IP address of the terminal device, and to the terminal Web-page requests response message described in device forwards.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
According to the web-page requests message and/web-page requests response message, the content that the terminal device is accessed is obtained;
The content accessed according to the terminal device, the behavioural habits of the user of the analysis use terminal device, and according to The behavioural habits are to terminal device advertisement.
3. a kind of management server, it is characterised in that including:
First receiving module, for receiving web-page requests message, wherein, the web-page requests message includes purpose IP address, source IP address and the URL addresses of targeted website, the purpose IP address are the IP address of management server, and the source IP address is eventually The IP address of end equipment;
Sending module, for parsing the web-page requests message, according to the URL addresses carried in the web-page requests message to Dns server sends domain name inquiry request message, to ask the corresponding IP address of domain name of the targeted website;
Second receiving module, for receiving the inquiry of the domain name success that the dns server is returned according to inquiry of the domain name request message Response message, wherein, domain name successful inquiring response message carries the corresponding IP address of domain name of the targeted website;
First modification sending module, for the purpose IP address in the web-page requests message to be revised as into the targeted website Source IP address in IP address, the web-page requests message is revised as the IP address of management server, and to the targeted website Forward the amended web-page requests message;
3rd receiving module, please for receiving the webpage that the targeted website is returned according to the amended web-page requests message Response message is sought, wherein, web-page requests response message carries web page contents;
Second modification sending module, for purpose IP address in the web-page requests response message to be revised as into the terminal device IP address, send web-page requests to the targeted website and forward the web-page requests response message to the terminal device.
4. management server according to claim 3, it is characterised in that the management server also includes:
Acquisition module, is visited for according to the web-page requests message and web-page requests response message, obtaining the terminal device The content asked;
Pushing module is analyzed, for the content accessed according to the terminal device, analysis uses the user of the terminal device Behavioural habits, and according to the behavioural habits to terminal device advertisement.
CN201580000001.9A 2014-06-05 2015-01-07 A kind of method and the network equipment, management server for accessing network Expired - Fee Related CN104509066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201580000001.9A CN104509066B (en) 2014-06-05 2015-01-07 A kind of method and the network equipment, management server for accessing network

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410247852.0A CN104010051B (en) 2014-06-05 2014-06-05 A kind of method and management server for accessing network
CN2014102478520 2014-06-05
PCT/CN2015/070285 WO2015184799A1 (en) 2014-06-05 2015-01-07 Network access method, network device and management server
CN201580000001.9A CN104509066B (en) 2014-06-05 2015-01-07 A kind of method and the network equipment, management server for accessing network

Publications (2)

Publication Number Publication Date
CN104509066A CN104509066A (en) 2015-04-08
CN104509066B true CN104509066B (en) 2017-10-27

Family

ID=52949010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580000001.9A Expired - Fee Related CN104509066B (en) 2014-06-05 2015-01-07 A kind of method and the network equipment, management server for accessing network

Country Status (1)

Country Link
CN (1) CN104509066B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110896410A (en) * 2018-11-15 2020-03-20 腾讯科技(深圳)有限公司 Video data uploading method and device, computer readable medium and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853002B (en) * 2015-04-29 2018-04-27 中国互联网络信息中心 A kind of dns resolution system and analytic method based on SDN network
CN114338809B (en) * 2021-12-28 2024-06-25 山石网科通信技术股份有限公司 Access control method, device, electronic equipment and storage medium
CN116032883B (en) * 2022-07-04 2023-10-27 荣耀终端有限公司 Domain name resolution request processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355550A (en) * 2007-07-27 2009-01-28 中国电信股份有限公司 Method and system for pushing wideband information combining telecom wideband AAA system
CN102045260A (en) * 2010-12-31 2011-05-04 成都市华为赛门铁克科技有限公司 Message transmission method in mobile IPv6 and UTM (unified threat management) equipment
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9237175B2 (en) * 2008-12-22 2016-01-12 Microsoft Technology Licensing, Llc Internet protocol (IP) address virtualization for terminal server sessions
CN102647482B (en) * 2012-03-31 2015-05-06 北京奇虎科技有限公司 Method and system for accessing website

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355550A (en) * 2007-07-27 2009-01-28 中国电信股份有限公司 Method and system for pushing wideband information combining telecom wideband AAA system
CN102045260A (en) * 2010-12-31 2011-05-04 成都市华为赛门铁克科技有限公司 Message transmission method in mobile IPv6 and UTM (unified threat management) equipment
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110896410A (en) * 2018-11-15 2020-03-20 腾讯科技(深圳)有限公司 Video data uploading method and device, computer readable medium and electronic equipment
CN110896410B (en) * 2018-11-15 2022-03-18 腾讯科技(深圳)有限公司 Video data uploading method and device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN104509066A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104010051B (en) A kind of method and management server for accessing network
CN103220371B (en) Content adaptation method and system
US7702317B2 (en) System and method to query wireless network offerings
CN104509066B (en) A kind of method and the network equipment, management server for accessing network
EP3860095A1 (en) Methods for information drainage, requesting transmission and communication acceleration, and drainage and node server
US20070266113A1 (en) Method for cache object aggregation
CN104158919A (en) Webpage access implementation method, server and client
CN105516385A (en) Domain name resolution method, server and system
CN102195882B (en) According to method and the device of the routing of data flow application type
CN107463453B (en) Method, device, equipment and storage medium for communication between different applications of same terminal
CN105681476A (en) Page skipping method, device and system
CN102647341B (en) Message processing method, device and system
CN110266661A (en) A kind of authorization method, device and equipment
CN110855766A (en) Method and device for accessing Web resources and proxy server
CN102739811A (en) Method and device of domain name resolution
CN101123578A (en) A method and system for improving access speed of network resource
CN102547553B (en) Method, system and device for accessing service based on wireless application protocol (WAP)
EP3089422B1 (en) Content distribution method, apparatus and system
US20120158796A1 (en) Method, apparatus and system for generating bookmarks
CN103201734B (en) The content transmission of context-aware
US20130268662A1 (en) Hypertext transfer protocol http stream association method and device
CN105871961A (en) Gray release routing method and device
CN101378407A (en) Method, system and equipment for pushing information
CN110933193A (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN103686852B (en) A kind of method, equipment and Wireless acceleration system that interaction data is processed

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171027