CN102547553B - Method, system and device for accessing service based on wireless application protocol (WAP) - Google Patents

Method, system and device for accessing service based on wireless application protocol (WAP) Download PDF

Info

Publication number
CN102547553B
CN102547553B CN201010614919.1A CN201010614919A CN102547553B CN 102547553 B CN102547553 B CN 102547553B CN 201010614919 A CN201010614919 A CN 201010614919A CN 102547553 B CN102547553 B CN 102547553B
Authority
CN
China
Prior art keywords
address
information
url information
terminal
response message
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
CN201010614919.1A
Other languages
Chinese (zh)
Other versions
CN102547553A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201010614919.1A priority Critical patent/CN102547553B/en
Publication of CN102547553A publication Critical patent/CN102547553A/en
Application granted granted Critical
Publication of CN102547553B publication Critical patent/CN102547553B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a system and a device for accessing a service based on a wireless application protocol (WAP), and aims to solve the problem of resource waste caused by service access when the Internet protocol (IP) types of the conventional mobile terminal and a service platform are different. The method comprises the following steps that: a WAP gateway receives an Internet request message with uniform resource locator (URL) information, sends a hyper text transport protocol (HTTP) request message to a target service platform according to a protocol of an IP address corresponding to the URL information, and converts and sends a received content response message to an identification terminal when the protocols of the IP addresses of the identification terminal and the target service platform are different. According to the method, the WAP gateway receives the content response message returned by the target service platform, and correspondingly converts the content response message according to the protocol of the IP address of the terminal, so that the terminal can access the service even if the protocols of the IP addresses of the identification terminal and the target service platform are different.

Description

A kind of method, system and device that carry out Operational Visit based on WAP
Technical field
The present invention relates to mobile communication technology field, relate in particular to a kind of method, system and device that carry out Operational Visit based on WAP (wireless application protocol) (WirelessApplication Protocol, WAP).
Background technology
When in prior art, mobile phone users access network side is carried out Operational Visit, mainly pass through proxy mode, the i.e. proxy server address of pre-configured WAP gateway in mobile terminal, when mobile phone users is initiated access request, this access request is routed to WAP gateway, WAP gateway is according to the URL(uniform resource locator) of carrying in this access request (Uniform Resource Locator, URL) information, server to target network address place sends access request, and after receiving the corresponding information that server returns, this response message is returned to mobile terminal.
Along with the development of mobile communication technology and broadband technology, the quantity of mobile terminal constantly increases, and also will constantly increase accordingly to the demand of IP address.And when a large amount of mobile terminals is in line states always, the IP of network side node access also needs more IP address.In the face of the great demand of next generation network to IP address, internet protocol version four (Internet Protocol version 4, IPv4) address cannot meet far away, therefore occurred to IPv4 inherit and the IPv 6 that replaces (InternetProtocol version 6, IPv6).
The IPv4 service providing due to current business platform major part in prior art, when IPv6 mobile terminal carries out Operational Visit to IPv4 business platform, in order to meet IPv6 mobile terminal and IPv4 mobile terminal to carry out the demand of Operational Visit based on WAP, can dispose network address translation (Network Address Translation at business platform front end, NAT) equipment, Fig. 1 is the system configuration schematic diagram that increases the laggard row Operational Visit of NAT device in prior art.When the IP address class type of mobile terminal and business platform IP address class type when different, address transition is carried out through NAT device in the IP address of the business platform carrying in access request, be converted to the type that business platform can be identified, equally, when business platform is during to mobile terminal return data information, IP address corresponding to this transmission of data information is also converted to through NAT device the type that mobile terminal can be identified.In said process due to mobile terminal and business platform based on IP address class type when different, need to increase NAT device, and the different IP address of all types all needs the conversion through NAT device, NAT device probably becomes the bottleneck in Operational Visit process.
Or, in order to meet IPv6 mobile terminal and IPv4 mobile terminal, based on WAP, carrying out the demand of Operational Visit, can be by original business platform upgrading, upgrade to IPv4 service and the IPv6 service supported, or also can for each IPv4 business platform, dispose corresponding IPv6 business platform respectively at existing network side, the Operational Visit service that the mobile terminal that dissimilar business platform is respectively corresponding provides, Fig. 2 is to the upgrade system configuration schematic diagram of laggard row Operational Visit of business platform in prior art.The method is also larger to the change of existing network, and for IPv4 network and excessive initial stage of IPv6 network, because the demand of IPv4 service is larger, thereby has caused the wasting of resources of IPv6 business platform.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method, system and device that carry out Operational Visit based on WAP, when solving in prior art that the IP type of mobile terminal and business platform is different, the wasting of resources causing in order to realize Operational Visit, and the bottleneck problem that causes of NAT device.
A kind of method of carrying out Operational Visit based on WAP that the embodiment of the present invention provides, comprising:
The online request message that WAP gateway receiving terminal sends, and obtain the IP address information corresponding to uniform resource position mark URL information of the webpage to be visited carrying in described online request message;
According to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message;
Receive the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
A kind of system of carrying out Operational Visit based on WAP that the embodiment of the present invention provides, comprising:
Terminal, for send online request message to WAP gateway, the uniform resource position mark URL information of wherein carrying webpage to be visited in this online request message, receives the content response information that described WAP gateway sends;
WAP gateway, the online request sending for receiving terminal, and IP address information corresponding to the uniform resource position mark URL information of obtaining the webpage to be visited carrying in described online request, according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message, receive the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after being changed, described content response message sends to terminal.
A kind of device that carries out Operational Visit based on WAP that the embodiment of the present invention provides, comprising:
Receive acquisition module, the online request message sending for receiving terminal, and obtain the IP address information corresponding to uniform resource position mark URL information of the webpage to be visited carrying in described online request message;
The first sending module, for according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message;
The second sending module, for receiving the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
The embodiment of the present invention provides a kind of method, system and device that carry out Operational Visit based on WAP, in the method when WAP gateway receives after the online request message that carries URL information, obtain IP address information corresponding to this URL information, and according to this IP address based on agreement, to target service platform, initiate HTTP request message, when the IP address of identification terminal and target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after the content response message receiving is changed, send to terminal.Due in embodiments of the present invention when WAP gateway receives the content response message that target service platform returns, can according to the IP address of terminal based on agreement, this content response message is changed accordingly, and when sending HTTP request message to target service platform, according to the IP address of this target service platform based on agreement send, thereby while having realized agreement based on different of IP address at terminal and target service platform, the process of terminal carrying out service access.
Accompanying drawing explanation
Fig. 1 is the system configuration schematic diagram that increases the laggard row Operational Visit of NAT device in prior art;
Fig. 2 is to the upgrade system configuration schematic diagram of laggard row Operational Visit of business platform in prior art;
Fig. 3 carries out the process of Operational Visit for what the embodiment of the present invention provided based on WAP;
A kind of concrete process of carrying out Operational Visit based on WAP gateway that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 carries out another detailed process of Operational Visit for what the embodiment of the present invention provided based on WAP;
A kind of system configuration schematic diagram that carries out Operational Visit based on WAP that Fig. 6 provides for the embodiment of the present invention;
A kind of apparatus structure schematic diagram that carries out Operational Visit based on WAP that Fig. 7 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention is in order effectively to reduce and to carry out the wasting of resources of Operational Visit based on WAP, and take leave of the dependence to NAT device, a kind of method, system and device that carry out Operational Visit based on WAP are provided, WAP gateway has been assigned with IPv4 address in embodiments of the present invention, also be assigned with IPv6 address simultaneously, WAP gateway can be supported IPv4 and IPv6 dual stack, can receive, parsing, process IP v4 message and IPv6 message.Meanwhile, WAP gateway can according to the IP address of terminal based on agreement, and the IP address of target service platform based on agreement corresponding message is carried out to adaptation.
Below in conjunction with Figure of description, the embodiment of the present invention is elaborated.
Fig. 3 carries out the process of Operational Visit for what the embodiment of the present invention provided based on WAP, and this process comprises the following steps:
S301: terminal sends online request message to target service platform, the URL information of wherein carrying webpage to be visited in this online request.
The destination address of this online request message be this terminal of territory in the address of WAP gateway IP address based on the identical address of agreement.And this online request message is HTML (Hypertext Markup Language) (Hyper TextTransfer Protocol, HTTP) request message, according to the destination address information of online request message, by the network element in core net, for example GGSN or PDN Gateway route to WAP gateway.
The online request message that S302:WAP gateway receiving terminal sends, and obtain IP address information corresponding to this URL information.
WAP gateway obtains IP address information corresponding to URL information and comprises:
Local IP address information corresponding to described URL information of whether preserving of WAP gateway judgement;
When IP address information corresponding to described URL information preserved in this locality, the described IP address information that self is preserved is as IP address information corresponding to described URL information of obtaining;
Otherwise, according to the IP address of described terminal based on agreement, to domain name system (Domain NameSystem, DNS) server, initiate the analysis request that comprises described URL information, and receive IP address information corresponding to described URL information that domain name system server returns.
S303: according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message.
To target service platform, initiating corresponding HTML (Hypertext Markup Language) HTTP request message specifically comprises: extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation be to should IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, in the IP address that source address is self with this target service platform IP address based on the identical address of agreement.
S304: described WAP gateway receives the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement whether identical, when judgment result is that while being, carry out step S306, otherwise, carry out step S305.
S305: according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
Concrete while carrying IP address information in the corresponding message of this content, before content response message after conversion is sent to terminal, described method also comprises: the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address of selecting, IP address information in this content response message is modified, and modification IP address is carried in described content response message.
Described according to this IP address of selecting, the IP address information in this content response message is modified and comprised:
Identify the HTTP identification information in this content response information;
According to this IP address of selecting, after this HTTP identification information, insert the prefix of this IP address of selecting.
S306: this content response message is returned to described terminal.
In embodiments of the present invention when WAP gateway receives the content response information that target service platform returns, due to the IP address of terminal and target service platform based on agreement different, one of the IP address that is terminal and target service platform is IPv4 address, and one is IPv6 address.For this content response message being sent to end side, WAP need to according to receive this content response message terminal IP address based on agreement, this content response message is changed, be converted to the form that terminal can be identified.And while having carried IP address information in the corresponding message of this content, due to the IP address of this IP address information and target service platform based on agreement identical, send to after end side, terminal None-identified, so WAP gateway also needs the IP address based on same protocol according to the IP address of selection and described terminal in the IP address of self, according to the IP address information of selecting, IP address information in this content response message is modified, and modification IP address is carried in described content response message.
Concrete WAP gateway in embodiments of the present invention can be realized protocol translation function, and it has the self-adaptive processing logic of IPv4 and IPv6 agreement, and when carrying out protocol translation, according to the IP address of terminal based on agreement carry out.Therefore the IP address that needs to preserve each terminal in WAP gateway based on protocol type information, for example preserving a certain terminal is IPv4 address, or the information of IPv6 address.And the IP address that need to judge terminal and target service platform due to WAP gateway based on agreement whether identical, the IP address that therefore also needs to preserve each business platform in WAP gateway based on protocol type information.
In addition, the address that the destination address of the online request message of initiating due to terminal is in embodiments of the present invention WAP gateway, because this WAP gateway exists the IP address based on different agreement, therefore in this online request message that terminal sends the address of this this WAP gateway based on agreement, according to the IP address of terminal based on agreement determine.And because WAP gateway has been assigned with IPv4 address and IPv6 address, therefore for the ease of terminal, initiate online request message in embodiments of the present invention, in this terminal, preserve with self IP address based on the IP address information of identical this WAP gateway of protocol type.For example, when the address of terminal is IPv4 address, in this terminal, preserve the IPv4 address of WAP gateway, when the address of this terminal is IPv6 address, in this terminal, preserve the IPv6 address of WAP gateway.
Fig. 4 is a kind of concrete process of carrying out Operational Visit based on WAP gateway that the embodiment of the present invention provides, and in this process, take the address of terminal is IPv6 address, and the address of target service platform is that IPv4 address describes, and this process comprises the following steps:
S401: terminal, according to the IPv6 address information of the WAP gateway of preserving, sends online request message, the URL information of wherein carrying webpage to be visited in this online request message, the IPv6 address that the destination address of this online request message is WAP gateway to this WAP gateway.
S402:WAP gateway receives after this online request message, judges self whether to preserve the IP address information corresponding to URL information of carrying in this online request message, when judgment result is that while being, carries out step S403, otherwise, carry out step S404.
S403: the IP address information that self is preserved, as IP address information corresponding to this URL information of obtaining, carry out afterwards step S405.
S404:WAP gateway sends the analysis request that comprises described URL information to dns server, and receives IP address information corresponding to described URL information that described dns server returns.
Because the address of this target service platform is IPv4 address, so IP address corresponding to this URL information is IPv4 address.
The IPv4 address that S405:WAP gateway is corresponding according to this URL information, is encapsulated as IPv4 packet by this online request, to target service platform, initiates HTTP request corresponding to this online request.
Wherein this HTTP request is the IPv4 packet that meets IPv4 agreement, the URL information that comprises webpage to be visited in this IPv4 packet, and the IPv4 address that the source address of this IPv4 packet is this WAP gateway, destination address is IPv4 address corresponding to this URL information.
S406: target service platform receives after this HTTP request, this HTTP request is processed accordingly, and asked to WAP gateway returned content response message according to this HTTP.
S407:WAP gateway receives after the content response message that this target service platform returns, the IP address that judges this terminal and target service platform based on agreement whether identical, when judgment result is that while being, carry out step S408, otherwise, carry out step S409.
S408: this content response message is directly sent to terminal.
S409: judge in this content response message whether comprise IP address information, when judgment result is that while being, carry out step S410, otherwise, carry out step S411.
S410: the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address information of selecting, IP address information in this content response message is modified, and modification IP address is carried in described content response message.
S411: according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
The IPv4 packet that the target platform receiving is returned is converted to IPv6 packet, the IPv6 address that the source address of this IPv6 packet is WAP gateway, the IPv6 address that destination address is this terminal.
Because the address of terminal is IPv6 address, and what in this content response, comprise is IPv4 address, terminal receives behind this address None-identified, therefore for the ease of the identification of terminal, WAP gateway in the IP address of judgement terminal and target service platform based on agreement when different, WAP need to change the type of this content response message, and IPv4 packet is converted to IPv6 packet.And while carrying IP address information in this content response message, this IP address is IPv4 address, need to modify to this IPv4 address, be revised as the IP type that terminal can be identified.When modify in the concrete IPv4 address in content response message, because also meeting HTTP, this content response message requires, therefore first WAP gateway is identified the HTTP identification information in this content response message, after this HTTP sign of identification, after this HTTP sign, insert the IPv6 address prefix of this WAP gateway self.
Specifically for example, the IPv4 address comprising in the content response message that target service platform returns is: http: // 211.125.6.23/img/ha.jspwAP gateway is when modifying to the IPv4 address in this content response information according to the IPv6 address of self, first identify HTTP sign, as http: //, or wsp: // etc., after this HTTP sign, insert the IPv6 address prefix 1::7176:2789:ab89:2e23 of self, so the IP address information of carrying in this amended content response information is http: // 1::7176:2789:ab89:2e23/211.125.6.23/img/ha.jsp.
In embodiments of the present invention, when terminal receives the content response message that WAP gateway returns, and while comprising IP address information in this content response message, because WAP gateway is revised the information that comprises IP address in this content response message, when terminal is clicked link corresponding to this amended IP address, to this WAP gateway, send content requests message, when WAP gateway receives the content requests message that described terminal sends according to described content response message, while identifying self the IP address information of carrying in this content requests message, content requests message after removal self IP address information is sent to target service platform.
Concrete for example when this WAP gateway is revised the IP address in this content response message according to the prefix of the IPv6 address of self, this IP address is revised as behind IPv6 address.When terminal is clicked link corresponding to this IP address, to this WAP gateway, send the content requests message that comprises this revised IPv6 address, this content requests message is forwarded to WAP gateway.Because this links corresponding address, it is IPv4 address, terminal cannot link corresponding address to this by IPv6 protocol stack and initiate the request of obtaining content, therefore when WAP gateway is identified the prefix of the IPv6 address of carrying self in the IPv6 address in this content requests message, the IPv6 address prefix of self is removed, the content requests message after removal self IPv6 address prefix is converted to IPv4 Packet Generation to target service platform.
In embodiments of the present invention when WAP gateway receives the online request message of terminal transmission, according to the URL information of carrying in this online request, while obtaining IP address information corresponding to this URL information, need to according to this IP address based on agreement, at IP layer, the online request message that comprises this IP address information is encapsulated, be encapsulated as meet this IP address based on the packet of agreement, for example, when this IP address is IPv4 address, the online request that this is comprised to IP address information is encapsulated as IPv4 packet, when this IP address is IPv6 address, the online request that comprises IP address information is encapsulated as to IPv6 packet.And the destination address of this packet is the address of target service platform, i.e. IP address corresponding to this URL information, source address is for self meeting the address of this IP address class type, for example IP address corresponding to this URL information is IPv4 address, the IPv4 address that source address of this packet is WAP gateway, when IP address corresponding to this URL information is IPv6 address, the IPv6 address that source address of this packet is WAP gateway.
After packet encapsulation, according to this packet, to target service platform, initiate the HTTP request that this online request message is corresponding, and when receiving the content response message that target service platform returns, due to the IP address of preserving each terminal and each business platform in WAP gateway based on agreement, therefore can judge the business platform that sends this content response information, and receive this content response message terminal IP address based on agreement whether identical, when the IP address of terminal and business platform based on agreement when identical, by this content response message according to the IP address of terminal and business platform based on agreement, this content response information is encapsulated, after being encapsulated as corresponding packet, send to terminal., when terminal and business platform are all IPv4 address, by this content response Information encapsulation, be for example IPv4 packet, the IPv4 address that wherein destination address of this packet is terminal, the IPv4 address that source address is WAP gateway.
When the IP address of judgement terminal and business platform based on agreement when different, in order to make this content response information meet the requirement of terminal, need to according to the IP address of terminal based on agreement, this content response message is encapsulated as packet that should agreement, but during the IP address information comprising in this content response message, in the IP address that this content response message is encapsulated as to counterpart terminal based on the packet of agreement time, WAP gateway needs first this IP address information is revised as to the IP address that meets demanding terminal.
The process of revising in embodiments of the present invention, for first identifying the HTTP sign in the IP address comprising in this content response message, is added the prefix of the IP address of the WAP gateway corresponding with the IP address class type of terminal after this HTTP sign.After IP address in this content response message is revised, need to according to the IP address of terminal based on agreement, IP layer by this content response message be encapsulated as meet this IP address based on the packet of agreement.Concrete for example when this terminal is IPv4 address, when target service platform is IPv6 address, after HTTP sign in recognizing content response message, after HTTP sign, insert the prefix of WAP gateway IPv4 address, and the amended content response message in IP address is encapsulated as to IPv4 packet, the source address of this packet is the IPv4 address of WAP gateway, the IPv4 address that destination address is terminal.
Fig. 5 carries out another detailed process of Operational Visit for what the embodiment of the present invention provided based on WAP, in this process, take the address of terminal is IPv4 address, the address of target service platform is that IPv6 address describes, the terminal that is IPv4 address for easy title address is IPv4 terminal, address be IPv6 address target also platform be called IPv6 business platform, this process comprises the following steps:
The IPv4 address information of the WAP gateway that S501:IPv4 terminal is preserved according to self, to this WAP gateway, send online request message, the URL information of wherein carrying webpage to be visited in this online request message, the IPv4 address that the destination address of this online request is this WAP gateway.
S502:WAP gateway receives after this online request message, judges self whether to preserve the IPv6 address information corresponding to URL information of carrying in this online request message, when judgment result is that while being, carries out step S503, otherwise, carry out step S504.
S503: the IPv6 address information that self is preserved, as IPv6 address information corresponding to this URL information of obtaining, carry out afterwards step S505.
S504:WAP gateway sends the analysis request that comprises described URL information to dns server, and receives IPv6 address information corresponding to described URL information that described dns server returns.
Because the address of this target service platform is IPv6 address, so IP address corresponding to this URL information is IPv6 address.
The IPv6 address that S505:WAP gateway is corresponding according to this URL information, is encapsulated as IPv6 packet by this online request, to target service platform, initiates HTTP request corresponding to this online request.
This HTTP request is the IPv6 packet that meets IPv6 agreement, the URL information that comprises webpage to be visited in this IPv6 packet, and the IPv6 address that the source address of this IPv6 packet is this WAP gateway, destination address is IPv6 address corresponding to this URL information.
S506: target service platform receives after this HTTP request, this HTTP request is processed accordingly, and asked to WAP gateway returned content response message according to this HTTP.
S507:WAP gateway receives after the content response information that this target service platform returns, the IP address that judges this terminal and target service platform based on agreement whether identical, when judgment result is that while being, carry out step S508, otherwise, carry out step S509.
Because this terminal is IPv4 terminal, target service platform is IPv6 business platform, therefore the IP address of now WAP gateway judgement terminal and target service platform based on agreement different.
S508: this content response message is directly sent to terminal.
S509: judge in this content response message whether comprise IP address information, when judgment result is that while being, carry out step S510, otherwise, carry out step S511.
S510: the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address information of selecting, IP address information in this content response message is modified, and amended IP address is carried in content response message.
S511: according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
Wherein in this content response message, comprise IPv6 address information corresponding to URL information, concrete is the information of html page corresponding to this IPv6 address.The IPv6 address information of carrying in this concrete content response message is http: // 1::7176:2789:ab89:2e23/sports/video/fue214345.flv.
Because this terminal is IPv4 terminal, therefore when WAP gateway is when sending this content response message to terminal, need to identify the HTTP sign that comprises IP address in this content response message, and identify http at this HTTP: // automatic powder adding adds the IPv4 address prefix of self afterwards, if this IPv4 address prefix is <10.0.0.172>, by the IP address rewrite in content response information, be:
http://10.0.0.172/1::7176:2789:ab89:2e23/sports/video/fue214345.flv
The source address of this IPv4 packet is the IPv6 address of WAP gateway, the IPv4 address that destination address is this terminal.
S512: when terminal is clicked link corresponding to this IP address, send content requests message to this WAP gateway.
When S513:WAP gateway receives the content requests message that described terminal sends according to described content response message, identify and in this content requests message, carry the IP address of self, the content request message of removing behind self IP address is sent to target service platform.
Now when WAP gateway receives the content requests message of terminal transmission, owing to comprising http in this content requests message: in the IP address of // 10.0.0.172/1::7176:2789:ab89:2e23/sports/video/fue214345 .flv, carry the IPv4 address information 10.0.0.172 of self, therefore when WAP gateway recognizes the IPv4 address that comprises self in this IP address, WAP gateway is removed self the IPv4 address in this IP address, by the IP address of removing behind self IPv4 address http: // 1::7176:2789:ab89:2e23/sports/video/fue214345.flv, be included in content request message, send to target service platform.
At succeeding target business platform, when providing corresponding content information to terminal, its process is identical with the implementation procedure after above-mentioned steps S506, does not here just repeat one by one.
In embodiments of the present invention when WAP gateway receives the online request message that comprises URL information of terminal transmission, obtain in the process of IP address information corresponding to this URL information, first WAP gateway judges self whether to preserve IP address information corresponding to this URL information, when self not preserving IP address corresponding to this URL information, this WAP gateway sends the analysis request that comprises this URL information to dns server, obtain IP address information corresponding to described URL information that this dns server returns, and in this locality, preserve the corresponding relation of this URL information and this IP address information.
Dns server returns to IP address information corresponding to described URL information and comprises: domain name system server receives the first analysis request that comprises described URL information that described WAP gateway sends;
When domain name system server finds self not preserve corresponding A or the AAAA record in IP address of described terminal, but when preserving AAAA or A and recording, to described WAP gateway, return to response message, and, the second analysis request that comprises described URL information sending according to described WAP gateway, returns to IP address corresponding to described URL information to described WAP gateway;
When domain name system server find self to preserve the IP address of described terminal corresponding record time, to described WAP gateway, return to IP address corresponding to described URL information.
In embodiments of the present invention when WAP gateway sends analysis request to dns server, because the IP address corresponding to URL information of carrying in this online request may be IPv4 address, also may be IPv6 address, therefore in embodiments of the present invention WAP gateway support to DNS to initiating A analysis request, and also support to initiate AAAA analysis request to DNS.But WAP gateway cannot be predicted and to dns server, send which kind of analysis request.Mutual for the ease of between WAP gateway and dns server, WAP gateway can be given tacit consent to preferential initiation AAAA analysis request.
When WAP gateway is initiated A analysis request to dns server, DNS is according to the analysis request receiving, judge and self there is no A record, but when preserving AAAA and recording, dns server returns to response message RCODE 0 (NO ERROR) to WAP gateway, and records that current to reply Answer number be 0.WAP gateway receives after the response message that dns server returns, and initiates AAAA analysis request, to obtain IP address information corresponding to this URL information to dns server.Or, when WAP gateway is initiated AAAA analysis request to dns server, DNS is according to the analysis request receiving, judge and self there is no AAAA record, but when preserving A and recording, dns server returns to response message RCODE 0 (NO ERROR) to WAP gateway, and records that current to reply Answer number be 0.WAP gateway receives after the response message that dns server returns, and initiates A analysis request, to obtain IP address information corresponding to this URL information to dns server.
In addition, in order to reduce the inquiry of dns server and to resolve pressure, in this WAP gateway, can preserve in embodiments of the present invention IP address information corresponding to each URL information that dns server returns, while having again terminal to send the online request that comprises this URL information so that follow-up, the URL information that WAP gateway can directly be preserved according to this locality and the corresponding relation of IP address, obtain corresponding IP address.In addition, for same URL information its corresponding a plurality of IPv4 address of possibility and IPv6 address, for the ease of WAP gateway, select, under default mode, WAP gateway can preferentially be selected IPv6 address, or IPv4 address.
A kind of system configuration schematic diagram that carries out Operational Visit based on WAP that Fig. 6 provides for the embodiment of the present invention, this system comprises:
Terminal 61, for send online request message to WAP gateway, the uniform resource position mark URL information of wherein carrying webpage to be visited in this online request message, receives the content response information that described WAP gateway sends;
WAP gateway 62, the online request message sending for receiving terminal, and IP address information corresponding to the uniform resource position mark URL information of obtaining the webpage to be visited carrying in described online request, according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request, while receiving the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after being changed, described content response message sends to terminal.
Described WAP gateway 62 also for, while carrying IP address information in described content response message, the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address of selecting, IP address information in this content response message is modified, and amended IP address is carried in described content response message.
In described system,
Described terminal 61 also for, according to described content response message, to described WAP gateway, send content requests message;
Described WAP gateway 62 also for, receive the content requests message that described terminal sends according to described content response message, identify self the IP address information of carrying in this content requests message, the content requests message of removing after self IP address information is sent to target service platform.
In described system,
Described WAP gateway 62 also for, to domain name system server, send the first analysis request comprise described URL information;
Described system also comprises:
Domain name system server 63, the first analysis request that comprises described URL information sending for receiving described WAP gateway, when finding self not preserve corresponding A or the AAAA record in IP address of described terminal, but when preserving AAAA or A and recording, to described WAP gateway, return to response message, and the second analysis request that comprises described URL information sending according to described WAP gateway, returns to IP address corresponding to described URL information to described WAP gateway; When find self to preserve the IP address of described terminal corresponding record time, to described WAP gateway, return to IP address corresponding to described URL information.
A kind of apparatus structure schematic diagram that carries out Operational Visit based on WAP that Fig. 7 provides for the embodiment of the present invention, this device comprises:
Receive acquisition module 71, the online request message sending for receiving terminal, and obtain the IP address information corresponding to uniform resource position mark URL information of the webpage to be visited carrying in described online request message;
The first sending module 72, for according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message;
The second sending module 73, for receiving the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal.
Described the second sending module 73 also for, while carrying IP address information in described content response message, the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address of selecting, IP address information in this content response message is modified, and amended IP address is carried in described content response message.
Described reception acquisition module 71 also for, receive the content requests message that described terminal sends according to described content response message;
Described the second sending module 73 also for, identify while carrying the IP address information of self in this content requests message, the content requests message of removing after self IP address information is sent to target service platform.
Described reception acquisition module 71 comprises:
Judging unit 711, for judging local IP address information corresponding to described URL information of whether preserving;
The first acquiring unit 712, for when local while preserving IP address information corresponding to described URL information, the described IP address information that self is preserved is as IP address information corresponding to described URL information of obtaining;
Second acquisition unit 713, for when IP address information corresponding to described URL information do not preserved in this locality, according to the IP address of described terminal based on agreement, to domain name system server, initiate the analysis request that comprises described URL information, and receive IP address information corresponding to described URL information that domain name system server returns.
Described the first sending module 72 specifically for, extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation meet this IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, source address is the IP address of self, and wherein this self IP address is the IP address based on same protocol, IP address with described target service platform.
Described the second sending module 73 also for, identify the HTTP identification information in this content response information, according to this IP address of selecting, after this HTTP identification information, insert the prefix of this IP address of selecting.
The embodiment of the present invention provides a kind of method, system and device that carry out Operational Visit based on WAP, in the method when WAP gateway receives after the online request message that carries URL information, obtain IP address information corresponding to this URL information, and according to this IP address based on agreement, to target service platform, initiate HTTP request message, when the IP address of identification terminal and target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after the content response message receiving is changed, send to terminal.Due in embodiments of the present invention when WAP gateway receives the content response message that target service platform returns, can according to the IP address of terminal based on agreement, this content response message is changed accordingly, and when sending HTTP request message to target service platform, according to the IP address of this target service platform based on agreement send, thereby while having realized agreement based on different of IP address at terminal and target service platform, the process of terminal carrying out service access.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (16)

1. based on WAP (wireless application protocol) WAP, carry out a method for Operational Visit, it is characterized in that, comprising:
The online request message that WAP gateway receiving terminal sends, and obtain the IP address information corresponding to uniform resource position mark URL information of the webpage to be visited carrying in described online request message;
According to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message;
Receive the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal;
Wherein, according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message and comprise:
Extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation meet this IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, source address is the IP address of self, and wherein this self IP address is the IP address based on same protocol, IP address with described target service platform.
2. the method for claim 1, is characterized in that, while carrying IP address information in described content response message, the content response message after conversion is sent to described method before terminal and also comprise:
The IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address information of selecting, IP address information in this content response message is modified, and modification IP address is carried in described content response message.
3. method as claimed in claim 2, is characterized in that, described method also comprises:
Receive the content requests message that described terminal sends according to described content response message;
Identify while carrying the IP address information of self in this content requests message, the content requests message of removing after self IP address information is sent to target service platform.
4. method as claimed in claim 1 or 2, is characterized in that, described in obtain the webpage to be visited carrying in described online request IP address information corresponding to uniform resource position mark URL information comprise:
Local IP address information corresponding to described URL information of whether preserving of judgement;
When IP address information corresponding to described URL information preserved in this locality, the described IP address information that self is preserved is as IP address information corresponding to described URL information of obtaining;
Otherwise, according to the IP address of described terminal based on agreement, to domain name system server, initiate the analysis request comprise described URL information, and receive IP address information corresponding to described URL information that domain name system server returns.
5. method as claimed in claim 4, is characterized in that, domain name system server returns to IP address information corresponding to described URL information and comprises:
Domain name system server receives the first analysis request that comprises described URL information that described WAP gateway sends;
When domain name system server finds self not preserve corresponding A or the AAAA record in IP address of described terminal, but when preserving AAAA or A and recording, to described WAP gateway, return to response message, and, the second analysis request that comprises described URL information sending according to described WAP gateway, returns to IP address corresponding to described URL information to described WAP gateway;
When domain name system server find self to preserve the IP address of described terminal corresponding record time, to described WAP gateway, return to IP address corresponding to described URL information.
6. method as claimed in claim 2, is characterized in that, described according to this IP address of selecting, and the IP address information in this content response message is modified and comprised:
Identify the HTTP identification information in this content response information;
According to this IP address of selecting, after this HTTP identification information, insert the prefix of this IP address of selecting.
7. based on WAP (wireless application protocol) WAP, carry out a system for Operational Visit, it is characterized in that, described system comprises:
Terminal, for send online request message to WAP gateway, the uniform resource position mark URL information of wherein carrying webpage to be visited in this online request message, receives the content response information that described WAP gateway sends;
WAP gateway, the online request message sending for receiving terminal, and IP address information corresponding to the uniform resource position mark URL information of obtaining the webpage to be visited carrying in described online request message, according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request, , receive the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after being changed, described content response message sends to terminal, wherein, according to described IP address based on agreement, to target service platform, initiating corresponding HTML (Hypertext Markup Language) HTTP request message comprises: extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation meet this IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, source address is the IP address of self, wherein this self IP address is the IP address based on same protocol, IP address with described target service platform.
8. system as claimed in claim 7, it is characterized in that, described WAP gateway also for, while carrying IP address information in described content response message, the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address of selecting, the IP address information in this content response message is modified, and amended IP address is carried in described content response message.
9. system as claimed in claim 8, is characterized in that, in described system,
Described terminal also for, according to described content response message, to described WAP gateway, send content requests message;
Described WAP gateway also for, receive the content requests message that described terminal sends according to described content response message, identify self the IP address information of carrying in this content requests message, the content requests message of removing after self IP address information is sent to target service platform.
10. the system as described in claim 7,8 or 9, is characterized in that, in described system,
Described WAP gateway also for, to domain name system server, send the first analysis request comprise described URL information;
Described system also comprises:
Domain name system server, the first analysis request that comprises described URL information sending for receiving described WAP gateway, when finding self not preserve corresponding A or the AAAA record in IP address of described terminal, but when preserving AAAA or A and recording, to described WAP gateway, return to response message, and the second analysis request that comprises described URL information sending according to described WAP gateway, returns to IP address corresponding to described URL information to described WAP gateway; When find self to preserve the IP address of described terminal corresponding record time, to described WAP gateway, return to IP address corresponding to described URL information.
11. 1 kinds of devices that carry out Operational Visit based on WAP, is characterized in that, described device comprises:
Receive acquisition module, the online request message sending for receiving terminal, and obtain the IP address information corresponding to uniform resource position mark URL information of the webpage to be visited carrying in described online request message;
The first sending module, for according to described IP address based on agreement, to target service platform, initiate corresponding HTML (Hypertext Markup Language) HTTP request message;
The second sending module, for receiving the content response message that described target service platform returns, the IP address that judges described terminal and described target service platform based on agreement when different, according to the IP address of described terminal based on agreement, after described content response message is changed, send to terminal;
Wherein, described the first sending module specifically for, extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation meet this IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, the IP address that source address is self, wherein this self IP address is the IP address based on same protocol, IP address with described target service platform.
12. devices as claimed in claim 11, it is characterized in that, described the second sending module also for, while carrying IP address information in described content response message, the IP address of the IP address of selection and described terminal based on same protocol in the IP address of self, according to this IP address of selecting, the IP address information in this content response message is modified, and amended IP address is carried in described content response message.
13. devices as claimed in claim 12, is characterized in that, described reception acquisition module also for, receive the content requests message that described terminal sends according to described content response message;
Described the second sending module also for, identify while carrying the IP address information of self in this content requests message, the content requests message of removing after self IP address information is sent to target service platform.
14. devices as described in claim 11,12 or 13, is characterized in that, described reception acquisition module comprises:
Judging unit, for judging local IP address information corresponding to described URL information of whether preserving;
The first acquiring unit, for when local while preserving IP address information corresponding to described URL information, the described IP address information that self is preserved is as IP address information corresponding to described URL information of obtaining;
Second acquisition unit, for when IP address information corresponding to described URL information do not preserved in this locality, according to the IP address of described terminal based on agreement, to domain name system server, initiate the analysis request that comprises described URL information, and receive IP address information corresponding to described URL information that domain name system server returns.
15. devices as claimed in claim 14, it is characterized in that, described the first sending module specifically for, extract the URL information in described online request, according to IP address corresponding to described URL information based on agreement, by described URL Information encapsulation meet this IP address based on the packet of agreement, and the destination address of this packet is IP address corresponding to described URL information obtaining, source address is the IP address of self, and wherein this self IP address is the IP address based on same protocol, IP address with described target service platform.
16. devices as claimed in claim 12, it is characterized in that, described the second sending module specifically for, identify the HTTP identification information in this content response information, according to this IP address of selecting, after this HTTP identification information, insert the prefix of this IP address of selecting.
CN201010614919.1A 2010-12-30 2010-12-30 Method, system and device for accessing service based on wireless application protocol (WAP) Expired - Fee Related CN102547553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010614919.1A CN102547553B (en) 2010-12-30 2010-12-30 Method, system and device for accessing service based on wireless application protocol (WAP)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010614919.1A CN102547553B (en) 2010-12-30 2010-12-30 Method, system and device for accessing service based on wireless application protocol (WAP)

Publications (2)

Publication Number Publication Date
CN102547553A CN102547553A (en) 2012-07-04
CN102547553B true CN102547553B (en) 2014-10-08

Family

ID=46353278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010614919.1A Expired - Fee Related CN102547553B (en) 2010-12-30 2010-12-30 Method, system and device for accessing service based on wireless application protocol (WAP)

Country Status (1)

Country Link
CN (1) CN102547553B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220278A (en) * 2013-04-01 2013-07-24 深信服网络科技(深圳)有限公司 Method for controlling access connection request of webpage and gateway
CN105208689A (en) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 Method and apparatus for inserting toolbar
CN106856434B (en) 2015-12-08 2020-06-30 阿里巴巴集团控股有限公司 Method and device for converting access request
CN107277882B (en) * 2016-04-07 2020-07-07 中国移动通信有限公司研究院 Data routing method, device and base station
CN107277866B (en) * 2016-04-07 2020-06-19 中国移动通信有限公司研究院 Data service switching method, device, base station and system
CN111756866B (en) * 2019-03-29 2023-11-07 深信服科技股份有限公司 Website content intercommunication method, device, equipment and storage medium
CN110392130B (en) * 2019-08-23 2022-09-23 北京天融信网络安全技术有限公司 Information processing method based on network, electronic equipment and network system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399742A (en) * 2007-09-28 2009-04-01 中国移动通信集团公司 Data service network system and access method of data service
CN101827133A (en) * 2009-03-06 2010-09-08 中国移动通信集团公司 Address analyzing device, IPv4 network access method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399742A (en) * 2007-09-28 2009-04-01 中国移动通信集团公司 Data service network system and access method of data service
CN101827133A (en) * 2009-03-06 2010-09-08 中国移动通信集团公司 Address analyzing device, IPv4 network access method and system

Also Published As

Publication number Publication date
CN102547553A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102547553B (en) Method, system and device for accessing service based on wireless application protocol (WAP)
EP2611111B1 (en) Method of implementing content-centric network (CCN) using internet protocol (IP)-based network in gateway, and gateway
CN103339901B (en) Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node
EP3149898B1 (en) Network packet encapsulation and routing
CN103181146B (en) The method and apparatus that in mobile communication system, DNS is redirected can be realized
CN113595897B (en) Path detection method and device
CA2884683C (en) Split network address translation
CN102611763A (en) DNS (Domain Name Server) inquiring method and equipment
CN111510476B (en) Communication method, communication device, computer equipment and computer readable storage medium
CN112073545B (en) MP-TCP capability for transmitting server devices using DNS
CN105991793B (en) The method and apparatus of message forwarding
CN102752411A (en) Redirection method and device
CN102685259A (en) Method, system and intelligent DNS (Domain Name Server) for analyzing DNS analysis request
CN106507414B (en) Message forwarding method and device
CN103581361A (en) Domain name resolution proxy method, device and system
CN102137172A (en) Access method and access device for DNS (Domain Name Server)
CN105429880A (en) Network equipment and method for performing router forwarding by network equipment
EP2124397A1 (en) A method for transfering the ip transmission session and the equipment whereto
CN104935682A (en) Domain name resolution method and system
JPWO2011117959A1 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
CN110601993B (en) Multi-outlet load balancing method and device
JP2019087908A (en) IPv6 network system, home gateway device, migration technology application method, and application program
CN111200643A (en) Method, device and system for detecting website address
CN104618242A (en) Method and device for transferring message
US20060209833A1 (en) Communication apparatus and computer program product for communicating with other communication apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
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: 20141008