CN102006675B - Data transmission method, transmission equipment and mobile terminal - Google Patents
Data transmission method, transmission equipment and mobile terminal Download PDFInfo
- Publication number
- CN102006675B CN102006675B CN 200910171817 CN200910171817A CN102006675B CN 102006675 B CN102006675 B CN 102006675B CN 200910171817 CN200910171817 CN 200910171817 CN 200910171817 A CN200910171817 A CN 200910171817A CN 102006675 B CN102006675 B CN 102006675B
- Authority
- CN
- China
- Prior art keywords
- message
- page
- time
- wap gateway
- session connection
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000005540 biological transmission Effects 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 11
- 238000012423 maintenance Methods 0.000 claims description 45
- 230000008569 process Effects 0.000 description 25
- 238000012546 transfer Methods 0.000 description 9
- 230000001737 promoting effect Effects 0.000 description 6
- 230000000452 restraining effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 244000097202 Rathbunia alamosensis Species 0.000 description 2
- 235000009776 Rathbunia alamosensis Nutrition 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a data transmission method, transmission equipment and a mobile terminal. The method comprises the following steps of: receiving a request message sent from the mobile terminal; processing the request message and recording the time when the request message is processed; and sending a message for keeping the session connection or a message for redirecting webpage if the timeis longer than a preset request timeout time and request response sent from a service serving network is not received or not totally received. The invention improves the data transmission efficiency and the utilization rate of network resources.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of data transmission method, transmission equipment and portable terminal.
Background technology
Along with networks development, portable terminal can pass through WAP (wireless application protocol) (WAP, WirelessApplication Protocol) online, directly experience the demonstration directly perceived of the page, but, in the process of online, if will cause user's active cancellation or withdraw from browser without any reaction even white screen for a long time, not only influenced user's business experience, and increased in user's access process the page and clicked switching rate, thereby cause the increase of network traffics, also can cause simultaneously degradation problem under the wasting of resources of WAP gateway and the Access Success Rate.
Generally speaking, each visit of portable terminal all needs the three-way handshake through TCP, has just set up the data link channel of a TCP after the three-way handshake success, follow-uply carries out uploading and downloading of data again.But, portable terminal is in waiting for the request responding data procedures, because Wireless Application Protocol Gateway (WAPGW, Wireless Application Protocol Gateway) and service provider's (server, Service Provider) needs three-way handshake between, and owing to network reason or the reason of server own, shake hands all might exist at every turn and retransmit and cause mutual overlong time, if there is not data distributing for a long time, will cause on the portable terminal without any demonstration, surpass the user restrain oneself tolerances (generally in 10 seconds) after, this user generally can select cancellation when this visit, thereby causes the waste of network data transmission before.Simultaneously, if cancel this time visit, also can cause the once waste of the system resource of WAPGW side, produce the ticket writing of a mistake.
Because WAPGW generally has the processing capacity that intelligence is redirected, so-called intelligence is redirected and just refers to some redirected pages (such as 302 pages), WAPGW asks for portable terminal automatically again according to Redirect Address, and has saved the process of 302 page downloadings being given portable terminal.That is to say, if there is the repeatedly redirected situation that needs in the page of mobile terminal accessing, will cause the mutual overlong time between WAPGW and server, thereby caused the white screen on portable terminal, and the user when being arranged, any reaction will initiatively cancel this time visit not seeing for a long time.
In research and practice process to prior art, the present inventor finds that in the existing implementation, portable terminal is in access process, if do not issue data for a long time, perhaps the data distributing time delay is long, will cause the white screen on the portable terminal.After surpassing user's the tolerance that bears, will initiatively cancel this time visit, thereby reduce the success rate of user's visit, namely reduce the efficient of transfer of data, also wasted Internet resources simultaneously.
Summary of the invention
The embodiment of the invention provides a kind of data transmission method, transmission equipment and portable terminal, with the efficient of raising transfer of data, and utilization rate of network resource.
For solving the problems of the technologies described above, the present invention is that embodiment provides a kind of data transmission method, and described method comprises:
The request message that mobile terminal receive sends;
Described request message is handled, and recorded the time that described request message is handled;
Surpass the default request timed out time when the described time, and do not receive or receive the request response that services network sends, then send the message that keeps session connection or the redirected page to portable terminal.
The present invention is that embodiment also provides a kind of data transmission method, and described method comprises:
After sending a request message to WAP gateway or acting server, receive maintenance session connection or redirected page message that WAP gateway or acting server send;
Resolve the message of described maintenance session connection or the redirected page, obtain corresponding page and show the described page.
Correspondingly, the embodiment of the invention provides a kind of transmission equipment, comprising:
Receiving element is used for the request message that mobile terminal receive sends;
Record cell is used for described request message is handled, and records the time that the request message that receives is handled;
Judging unit, be used for judging whether the described time surpasses the default request timed out time, and, judging whether to receive or receive the request response that full server sends during the time above default request timed out, and send the judged result of the request response of not receiving or receiving the server transmission;
Message sending unit is used for receiving the described time and surpasses the default request timed out time, and when not receiving or receiving the request response that server sends, and sends the message that keeps session connection or the message of the redirected page to portable terminal.
The embodiment of the invention provides a kind of portable terminal, comprising:
Receiving element is for the message of the maintenance session connection that receives the transmission of WAP gateway or acting server or the message of the redirected page;
Resolution unit is used for resolving the message of described maintenance spark connection or the message of the redirected page, obtains corresponding page;
Display unit is used for the described page that shows that resolution unit parses.
By such scheme as can be known, in embodiments of the present invention, at WAP gateway (as example, but be not limited to this) when receiving the request message of user's transmission, to clocking of user's request time, if the overtime default request timed out time of time of timer record also do not receive or when receiving data in server, WAP gateway can issue one and keep the message of session connection or the message of the redirected page, to keep the connection link between portable terminal (such as mobile phone) and the WAP gateway.That is to say, in the mobile terminal network visiting process, if overlong time, utilize scheme of the present invention can give some promptings of mobile terminal user, tell the present access process of mobile phone users residing state, namely promote mobile phone users to the understanding of the in the know and disposition of own access process, perhaps this wait during this period of time in intercut a section business promotion message etc. for this mobile phone users, to strengthen the experience perceptibility of this mobile phone users, thereby improve the success rate of user's visit, and the efficient of transfer of data.
Description of drawings
The flow chart of a kind of data transmission method of providing in the embodiment of the invention is provided Fig. 1;
The flow chart of the another kind of data transmission method that provides in the embodiment of the invention is provided Fig. 2;
First application example of a kind of data transmission method of providing in the embodiment of the invention is provided Fig. 3;
Second application example of a kind of data transmission method of providing in the embodiment of the invention is provided Fig. 4;
The 3rd application example of a kind of data transmission method of providing in the embodiment of the invention is provided Fig. 5;
The structural representation of a kind of transmission equipment of providing in the embodiment of the invention is provided Fig. 6;
The structural representation of a kind of portable terminal of providing in the embodiment of the invention is provided Fig. 7.
Embodiment
Below we will be by reference to the accompanying drawings, embodiment of the present invention are described in detail.
See also Fig. 1, the flow chart of a kind of data transmission method of providing in the embodiment of the invention is provided, in this embodiment, for convenience of description, present embodiment is example with the WAP gateway, but is not limited to this, and described method comprises:
The request message that step 101:WAP gateway mobile terminal receive sends;
Wherein, this portable terminal can be mobile phone, PDA or utilize computer that data card dials up on the telephone etc., be referred to as portable terminal in the present embodiment.
Step 102:WAP gateway is handled described request message, and records the time that described request message is handled;
Preferably, can be by starting the time that the timer record is handled this request message.That is to say that WAP gateway carries out timing by the time that the mode that starts timer is handled this request message, so that surpassing default request timed out during the time, handling accordingly when receiving the request message that portable terminal sends.
Step 103: surpass the default request timed out time when the described time, and WAP gateway do not receive or do not receive the request response that the service provider provides, then send the message that keeps session connection or the message of the redirected page to portable terminal.
Wherein, do not receive and refer to that a page or file are bigger, transfer of data needs the regular hour, data do not issue transmission when finishing portable terminal just cancel this and operated.Such as: a cellphone subscriber downloads a mp3 song, and size is 3M, but does not just want to have downloaded when the user downloads to 500K, has cancelled; Perhaps user is when visit Sina website homepage, just close browser when not showing fully etc.
Preferably, can comprise in the message header of the message of described maintenance session connection: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number, but is not limited to this; Further, can also comprise in this message header: prolong the time of session connection maintenance etc.;
Wherein, can comprise in the message header of the message of the described redirected page: the parameter that WAP gateway or acting server need be handled; Further, can also comprise in this message header: prolong the time of session connection maintenance etc.
Wherein, the described default request timed out time at least can for: the user restrains oneself half of tolerances, but is not limited to this, also can carry out adaptability revision according to each user's the tolerances of restraining oneself, and the embodiment of the invention is not restricted.
Preferably, when terminal receives the message of the message of described maintenance session connection or the redirected page, resolve the message of described maintenance session connection or the message of the redirected page, obtain corresponding page and also show the described page, afterwards, described method can further include:
The parameter that WAP gateway or acting server mobile terminal receive are handled according to described network side network element needs sends new request message; And described request message resolved, obtain uniform resource position mark URL;
If comprise the parameter that described WAP gateway or acting server need be handled among the described URL, and the value of described parameter is not then carried out new connection to described request message and is handled when being NO.
Accordingly, the embodiment of the invention also provides the method for another kind of transfer of data, and its flow chart sees Fig. 2 for details, and described method comprises:
Step 201: portable terminal receives the message of the maintenance session connection that the network side network element sends or the message of the redirected page after sending a request message to WAP gateway or acting server;
Step 202: portable terminal is resolved the message of described maintenance session connection or the message of the redirected page, obtains corresponding page and shows the described page.
Wherein, comprise in the message header of the message of described maintenance session connection: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number; Further, can also comprise in this message header: prolong the time that session connection keeps; But be not limited to this, the embodiment of the invention is not restricted.
Can comprise in the message header of the message of the described redirected page: the parameter that the network side network element need be handled; Further, can also comprise in this message header: prolong the time that session connection keeps; But be not limited to this, the embodiment of the invention is not restricted.Such as, for this portable terminal intercuts a section business promotion message etc., the message that comprises this promoting service information can be the message of the conditional code of above-mentioned HTTP agreement, message can be divided into message header and message body, and the message header branch comprises x-wapgw-status, keep-alive field of conditional code and foregoing description etc.; Message body is exactly to want the page displayed content, just the promoting service information here.Visit Sina website such as the cellphone subscriber, the result who shows also is a message, the message header of this message is 200OK, the standard agreement head that may comprise some other HTTP simultaneously, message body is exactly the page of the Sina website seen of cellphone subscriber, in like manner, message header is exactly 100Continue described in the document etc., and message body is exactly the promoting service information that need carry out.
Wherein, the described page of described normal demonstration specifically comprises: the time that portable terminal keeps according to described prolongation session connection prolongs the described page of demonstration.
Preferably, described method can further include: portable terminal sends the parameter of handling according to described network side network element needs and sends new request message to the network side network element, and described request message comprises URL.
Preferably, the network side network element in the present embodiment comprises WAP gateway or acting server, but is not limited to this, and at different application scenarioss, its corresponding net element is also different, and the embodiment of the invention is not restricted.
In embodiments of the present invention, at WAP gateway (as example, but be not limited to this) when receiving the request message of user's transmission, carry out the user by the mode that starts timer and ask clocking of processing time, the tolerances of restraining oneself according to most user arranges a request timed out time (this time-out time is traditionally arranged to be half that the user restrains oneself tolerances, but be not limited to this), if the overtime default request timed out time of time of timer record, also do not receive or when receiving data in server, WAP gateway can issue one and keep the message of session connection or the message of the redirected page, to keep the connection link between portable terminal (such as mobile phone) and the WAP gateway.That is to say, in the mobile terminal network visiting process, if overlong time, utilize scheme of the present invention can give some promptings of mobile terminal user, tell the present access process of mobile phone users residing state, namely promote mobile phone users to the understanding of the in the know and disposition of own access process, perhaps this wait during this period of time in intercut a section business promotion message etc. for this mobile phone users, to strengthen the experience perceptibility of this mobile phone users, thereby improve the success rate of user's visit, and the efficient of transfer of data.
Further, in the embodiment of the invention, carry maintenance session connection or the redirected page by the conditional code 100 in the http header or expanded HTTP protocol status sign indicating number 102, not only can inform the residing state of the present access process of mobile phone users, can also intercut a section business promotion message for this mobile phone users; Simultaneously, to keep session connection or the redirected page be spare field or the extended field that utilizes in the existing http protocol owing to carry, can not interrupt the transfer process between portable terminal and the WAP gateway, for WAP gateway, do not increase extra equipment, to support to keep the operation of session connection or the redirected page yet.
Understanding for the ease of those skilled in the art illustrates with specific embodiment below.Also see also Fig. 3, first application example of a kind of data transmission method of providing in the embodiment of the invention is provided, among this embodiment, the gateway of portable terminal is example with the WAP gateway, but be not limited to this, be primarily aimed to connect to set up and exist the re-transmission situation to describe in the process.That is to say that in the present embodiment, WAP gateway carries out the expansion of protocol header by http protocol existing protocol conditional code 100 is continued (100Continue), expands a certain protocol head, for example " x-wapgw-status ", but be not limited to this.In this embodiment, WAP gateway, portable terminal need be supported simultaneously to prolate-headed parsing in this message, WAP gateway is when issuing the message that keeps session connection, in the message header of this message, increase this extension header, can also prolong the time (keep-alive) that session connection keeps by carrying in the message header of this message, the notice portable terminal connects the time that continuation keeps; Portable terminal after receiving message, by resolving the value of this message header, according to the value that parses search local corresponding relation (such as, the value that parses is 3001, corresponds to: network is busy at present, please after a while; In the wait process, broadcast recent preferential movable an introduction of China Mobile to you; The value that parses is 3002, corresponds to: at present the WAP gateway load is too high, handles your request after a while, intercuts the preferential activity etc. of a recent China Mobile in the wait process to you, carries out the corresponding page to show, specifically comprises:
Step 301:MS sends a request message to WAP gateway; The information such as page address that comprise the needs visit in this request message.
After step 302:WAP gateway receives described request message, start the time that the timer record is handled this request message;
Step 303:WAP gateway sends SYN (synchronize) message to server;
Wherein, SYN is the handshake that TCP/IP uses when connecting.Portable terminal need carry out three-way handshake with server, could set up tcp data behind the three-way handshake and connect, and namely sets up normal TCP network connection between portable terminal and the server.That is to say, under the normal condition, WAP gateway sends a SYN message to server earlier, server uses SYN-ACK to reply expression and has received this SYN message, portable terminal is again to reply (ACK, ACKnowledge) message response just can be set up reliable TCP like this and connect between portable terminal and server, data just can be transmitted between portable terminal and server.
If step 304:WAP gateway in the time, does not receive the SYN-ACK response of server feedback at default request timed out, then send SYN message to server again;
Step 305:WAP gateway judges that whether the described time surpass the default request timed out time, if surpass, does not also receive or receive the SYN-ACK response of full server feedback, and then execution in step 306; If do not have overtimely, then execution in step 308;
Need to prove not have sequencing between step 304 and the step 305, also can carry out simultaneously.Such as, after WAP gateway sent SYN message to server, if network is extremely busy, then WAP gateway may not receive the SYN-ACK response of server feedback, then needs to send SYN message to server again; If also can not receive the SYN-ACK response, also can continue to retransmit SYN message; At this moment, if the time of WAP gateway record surpasses default request timed out during the time, WAP gateway can send the message that keeps session connection to portable terminal, in order to make portable terminal continue to wait until.
Wherein, the default request timed out time, be that WAP gateway arranges according to the tolerances of restraining oneself of most of mobile phone users in advance, the described default request timed out time is at least half that the user restrains oneself tolerances generally speaking, such as 5 seconds, but be not limited to this, also can restrain oneself three of tolerances/second-class for the user.
Step 306:WAP gateway sends the message that keeps session connection to portable terminal, and execution in step 308 afterwards;
Wherein, comprise in the message header of the message of described maintenance session connection: the http protocol conditional code 100 of carrying page data continues, but is not limited to this; Further, can also comprise the time of prolongation session connection maintenance etc. in this message header, the embodiment of the invention is not restricted.Such as comprising at least in the message header in the message of the maintenance session connection of the transmission in the present embodiment:
HTTP/1.1100?Continue
keep-alive:5s
x-wapgw-status:3002。
Step 307: portable terminal is after the message that receives this maintenance session connection, resolve the message of described maintenance session connection, obtain the value of message header in this message, and search local corresponding relation according to this value, carry out the demonstration of the corresponding page, wherein, the time display page that keeps according to this prolongation session connection.
The SYN-ACK response that step 308:WAP gateway reception server sends;
Step 309:WAP gateway is to server A CK message;
That is to say that WAP gateway is finished three-way handshake between WAP gateway and the server after server A CK message, the two sets up reliable TCP connection, and namely data link is set up and finished.
Step 310:WAP gateway sends described request message to server;
Step 311: server sends request response to WAP gateway;
Step 312:WAP gateway is transmitted to portable terminal with the described request response message.
Need illustrate that in the present embodiment, terminal and WAP gateway need be supported prolate-headed parsing and processing simultaneously.
In embodiments of the present invention, if the overtime default request timed out time of time of timer record in the WAP gateway, also do not receive or when receiving data in server, WAP gateway can issue one and keep the message of session connection or the message of the redirected page, to keep the connection link between portable terminal (such as mobile phone) and the WAP gateway.That is to say, in the present embodiment, can by new HTTP message status sign indicating number of expansion (for example: 102KeepAlive) carry out carrying of message body, also can be by (for example: x-wapgw-status) carry out the demonstration of customized web page expanding the HTTP message header.Such as, portable terminal wait for during this period of time in for this mobile phone users intercuts a section business promotion message etc., to strengthen the experience perceptibility of this mobile phone users, increased a new channel for the Operator Specific Service popularization simultaneously; Also reduce the user and initiatively cancelled the frequency that trial is switched back and forth, thereby improved the utilance of network data transmission.
Also see also Fig. 4, second application example of a kind of data transmission method of providing in the embodiment of the invention is provided, among this embodiment, the gateway of portable terminal still is example with the WAP gateway, but being not limited to this, mainly is to set up at connection to exist the re-transmission situation to describe in the process.That is to say, in the present embodiment, WAP gateway is by expanding the maintenance activation processing that a new http protocol conditional code 102Keepalive carries out link, and this conditional code can be carried message body (Body) data, need WAP gateway in this case, portable terminal can be resolved message header (Header) part according to normal http protocol, simultaneously need can normal process for WAP gateway, transmit the Body part, portable terminal also needs normally to resolve the page and normal demonstration of Body part, WAP gateway, any one equipment of portable terminal all must not end session after handling this conditional code, do not interrupt connecting, and portable terminal needs to prolong the time-out time of connection according to the keep-alive time that issues.Specifically comprise:
Step 401:MS sends a request message to WAP gateway;
After step 402:WAP gateway receives described request message, start the time that the timer record is handled this request message;
Step 403:WAP gateway sends SYN message to server;
Step 404: if in the time, do not receive the SYN-ACK response of server feedback at default request timed out, then continue to send SYN message to server;
Step 405:WAP gateway judges that whether the described time surpass the default request timed out time, if surpass, does not also receive or receive the SYN-ACK response of full server feedback, and then execution in step 406; Otherwise, execution in step 407;
Step 406:WAP gateway sends the message that keeps session connection to portable terminal, and execution in step 408 afterwards;
Wherein, comprise in the message header of the message of described maintenance session connection: the http protocol conditional code 102 of carrying page data continues, but is not limited to this, further can also comprise the time of prolongation session connection maintenance etc., and the embodiment of the invention is not restricted.Such as comprising at least in the message header in the message of the maintenance session connection of the transmission in the present embodiment:
HTTP/1.1?102?Continue
keep-alive:5s
The Body data,
Wherein, these Body data can be data-messages such as promoting service confidence or card, and in this embodiment, the Body data can be: you are good for distinguished client: the page present of your application, please patience wait, intercut a segment information to you in the process of wait ....
Step 407: portable terminal is after the message that receives this maintenance session connection, resolve the message of described maintenance session connection, obtain the Body data of message header in this message, and the time of Body data and/or prolongation session connection maintenance, such as 5s etc., and carry out the demonstration of the corresponding page according to these Body data, and prolong the operations such as time that session connection keeps.
Step 408: server sends the SYN-ACK response to WAP gateway;
Step 409:WAP gateway is to server A CK message;
Step 410:WAP gateway sends described request message to server;
Step 411: server sends request response to WAP gateway;
Step 412:WAP gateway is transmitted to portable terminal with the described request response message.
Need illustrate that in the present embodiment, terminal and WAP gateway need be supported prolate-headed parsing and processing simultaneously.In this embodiment, operator can keep the message of session connection to issue some promoting service notification messages by this, thereby brings certain income for service operation.
Also see also Fig. 5, the 3rd application example of a kind of transfer of data of providing in the embodiment of the invention is provided, among this embodiment, the gateway of portable terminal still is example with the WAP gateway, but be not limited to this, be primarily aimed at the redirected too much situation of page number of processes and describe.That is to say, in the present embodiment, WAP gateway carries a certain location Location by existing 302 message of http protocol and (has carried the parameter that some WAP gateways need be handled among this Location, such as handle status parameter etc.) give portable terminal, portable terminal sends new request message automatically according to this parameter, WAP gateway is resolved and is received new request message, obtain the URL of this message correspondence, and the value of the disposition among the URL (handlestatus) parameter judged, if when having the value of this handlestatus parameter and this handlestatus parameter to be no, illustrating does not need this URL is carried out new connection, that is to say, this connection is the maintenance activation of current request, WAP gateway will be ignored the connection of request this time and handle, thereby realize keeping being connected between portable terminal and the WAP gateway, specifically comprise:
Step 501:MS sends a request message to WAP gateway;
After step 502:WAP gateway receives described request message, start the time that the timer record is handled this request message;
Step 503:WAP gateway sends SYN message to server;
Step 504: server is sending SYN-ACK response to WAP gateway at default request timed out in the time;
Step 505:WAP gateway is to the ACK of server feedback;
Step 506:WAP gateway sends described request message to server;
Step 507: server retransmits response message (i.e. 302 response messages) to the WAP gateway feedback page;
Step 508:WAP gateway sends described request message to server again;
Step 509: server feeds back 302 response messages again to WAP gateway;
Step 510:WAP gateway judges that whether the described time surpass the default request timed out time, if surpass, does not also receive or receive the request response of full server feedback, and then execution in step 511; If do not have overtimely, and receive the request response of server feedback, execution in step 516;
Step 511:WAP gateway sends to portable terminal and is redirected page message;
Wherein being redirected page message comprises: the parameter that described WAP gateway need be handled, such as:
HTTP/1.1302Found
Keep-Alive:5s
Location:http://URI/?handlestatus=no
Step 512: portable terminal is resolved the described redirected page message that receives, and obtains the parameter that WAP gateway need be handled;
Step 513: the parameter that portable terminal is handled according to described WAP gateway needs sends new request message to WAP gateway, and the URL that comprises such as this request message is:
GET?http://URI/?handlestatus=no
When step 514:WAP gateway receives new request message, described new request message is resolved, obtain the URL that comprises in this new request message, and judge the parameter (being handlestatus) that whether comprises described WAP gateway among this URL and need handle, if, and when the value of described parameter is NO, then described request message is not carried out new connection and handle; Otherwise carry out existing flow process, this flow process is known technology to those skilled in the art, does not repeat them here;
Step 515: server is to WAP gateway feedback 200ok response message;
Step 516:WAP gateway sends the 200ok response message to portable terminal.
In the present embodiment, only need support the specific logical of URL to handle in the WAP gateway side, not need mobile terminal side to do any synchronous transformation.
Need to prove, all be example with the WAP gateway at all above-mentioned embodiment of the present invention, but being not limited to this, also can be other equipment, such as acting server (Proxy), that is to say, acting server (Proxy) can be replaced the WAP gateway among above-mentioned all embodiment of the present invention, and the implementation procedure of its Proxy and WAP gateway implementation procedure are similar, specifically see for details above-mentionedly, do not repeat them here.
Implementation procedure based on said method, the embodiment of the invention also provides a kind of transmission equipment, its structural representation sees Fig. 6 for details, described transmission equipment comprises: receiving element 61, record cell 62, judging unit 63 and message sending unit 64, wherein, receiving element 61 is used for the request message that mobile terminal receive sends; Record cell 62 is used for described request message is handled, and records the time that the request message that receives is handled; Judging unit 63, be used for judging whether the described time surpasses the default request timed out time, and, judging whether to receive or receive the request response that full server sends during the time above default request timed out, and send the judged result of the request response of not receiving or receiving the server transmission; Message sending unit 64 is used for receiving the described time and surpasses the default request timed out time, and when not receiving or receiving the request response that server sends, and sends the message that keeps session connection or the message of the redirected page to portable terminal.
Preferably, described record cell can record the time that the request message that receives is handled by the startup timer of setting.
Preferably, the message header of the message of the maintenance session connection of described message sending unit transmission can include, but are not limited to this: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number;
Can include, but are not limited to this in the message header of the message of the redirected page of described message sending unit transmission: the parameter that described transmission equipment need be handled.
Preferably, the message header of the message of the maintenance session connection of described message sending unit transmission or the message of the redirected page can also comprise: prolong the time that session connection keeps.
Preferably, described receiving element also is used for the new request message of parameter transmission that mobile terminal receive is handled according to described transmission equipment needs; This transmission equipment can further include: resolution unit, parameter judging unit and be connected processing unit, and wherein, resolution unit is used for that described receiving element is received new request message and resolves, and obtains URL; The parameter judging unit is used for judging whether described URL comprises the parameter that described transmission equipment need be handled, if comprise this parameter, and the value of described parameter is when being NO, and transmission comprises that the value of this parameter and this parameter is the judged result of NO; Connect processing unit, be used for comprising described parameter receiving, and the value of described parameter is not carried out new connection to described request message and handled when being the judged result of NO.
Preferably, described transmission equipment can further include: the unit is set, is used for restraining oneself the default request timed out time of tolerances according to the user, the described request time-out time is at least half that the user restrains oneself tolerances.
Preferably, this transmission equipment can be integrated in WAP gateway or the acting server, also can independently dispose.
The implementation procedure of each unit sees implementation procedure corresponding in the said method for details in the described transmission equipment, does not repeat them here.
Accordingly, the embodiment of the invention also provides a kind of portable terminal, its structural representation sees Fig. 7 for details, comprise: receiving element 71, resolution unit 72 and display unit 73, wherein, receiving element 71 is used for after sending a request message to WAP gateway or acting server, receives the message of the maintenance session connection that WAP gateway or acting server send or the message of the redirected page; Resolution unit 72 is used for resolving described connection and keeps message or redirected page message, obtains corresponding page; Display unit 73 is used for the described page that shows that resolution unit parses.
Preferably, the message header of the message of the maintenance session connection that receives of described receiving element can include, but are not limited to: the http protocol conditional code 100 of carrying page data continues or expanded HTTP protocol status sign indicating number 102 continues;
The message header of the message of the redirected page that described receiving element receives can include, but are not limited to: the parameter that WAP gateway or acting server need be handled.
Preferably, can also comprise in the message message header of the message header of the message of the maintenance session connection that receives of described receiving element or the redirected page: prolong the time that session connection keeps.
This terminal equipment can also comprise: transmitting element, be used for sending new request message according to the parameter of the described WAP gateway that receives or the processing of acting server needs to WAP gateway or acting server, and described request message can comprise URL.
The implementation procedure of each unit sees implementation procedure corresponding in the said method for details in the described portable terminal, does not repeat them here.
From the above, in the embodiment of the invention, by expansion HTTP message header (for example: x-wapgw-status) carry out the demonstration of customized web page; Perhaps by new HTTP message status sign indicating number of expansion (for example: 102KeepAlive) carry out carrying of message body, show to carry out the page in terminal; Or increase connection time-delay keep-alive to portable terminal by 302 modes that are redirected.That is to say, at WAP gateway (as example, but be not limited to this) when receiving the request message of user's transmission, carry out clocking of user's request time by the mode that starts timer, the tolerances of restraining oneself according to most user arranges a request timed out time (this time-out time is traditionally arranged to be half that the user restrains oneself tolerances, but be not limited to this), if the overtime default request timed out time of time of timer record, also do not receive or when receiving data in server, WAP gateway can issue one and keep the message of session connection or the message of the redirected page, to keep the connection link between portable terminal (such as mobile phone) and the WAP gateway.That is to say, in the mobile terminal network visiting process, if overlong time, utilize scheme of the present invention can give some promptings of mobile terminal user, tell the present access process of mobile phone users residing state, namely promote mobile phone users to the understanding of the in the know and disposition of own access process, perhaps this wait during this period of time in intercut a section business promotion message etc. for this mobile phone users, to strengthen the experience perceptibility of this mobile phone users, promoting for Operator Specific Service has simultaneously increased a new channel; Thereby improve the success rate of user's visit, and the efficient of transfer of data.Simultaneously, also reduced the user and initiatively cancelled the frequency that trial is switched back and forth, thereby improved the utilance of network data transmission.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, perhaps transmission equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (11)
1. a data transmission method is characterized in that, comprising:
The request message that mobile terminal receive sends;
Described request message is handled, and recorded the time that described request message is handled;
Surpass the default request timed out time when the described time, and do not receive or do not receive the request response that services network sends, then send the message that keeps session connection or the redirected page to portable terminal; Wherein, the message header of the message of described maintenance session connection comprises: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number; Described redirected page message comprises: the parameter that WAP gateway or acting server need be handled;
And after sending the message that is redirected the page to portable terminal, mobile terminal receive is according to the new request message of the parameter transmission of described WAP gateway or the processing of acting server needs; Described new request message is resolved, obtain uniform resource position mark URL; If comprise the parameter that described WAP gateway or acting server need be handled among the described URL, and the value of described parameter is not then carried out new connection to described new request message and is handled when being NO.
2. method according to claim 1 is characterized in that, the time that described record is handled this request message is specially:
By starting the time that the timer record is handled this request message.
3. method according to claim 1 and 2 is characterized in that, the message header of the message of described maintenance session connection or the redirected page also comprises: prolong the time keep-alive that session connection keeps.
4. a data transmission method is characterized in that, described method comprises:
After sending a request message to WAP gateway or acting server, receive maintenance session connection that WAP gateway or acting server send or the message of the redirected page; Wherein, surpass the default request timed out time when the time that described request message is handled of recording, and when not receiving or not receiving the request response of services network transmission, described WAP gateway or acting server send the message of maintenance session connection or the message of the redirected page; Wherein, the message header of the message of described maintenance session connection comprises: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number, and the message of the described redirected page comprises: the parameter that WAP gateway or acting server need be handled;
Resolve the message of described maintenance session connection or the redirected page, obtain corresponding page and show the described page;
And after receiving the message that is redirected the page, the parameter of handling according to the described WAP gateway that receives or acting server needs sends new request message to WAP gateway or acting server.
5. method according to claim 4 is characterized in that, the message of described maintenance session connection or the message header of the redirected page also comprise: prolong the time that session connection keeps;
The described page of described demonstration specifically comprises: the time that portable terminal keeps according to described prolongation session connection prolongs the described page of demonstration.
6. a transmission equipment is characterized in that, comprising:
Receiving element is used for the request message that mobile terminal receive sends;
Record cell is used for the request message that described portable terminal sends is handled, and records the time that the request message that receives is handled;
Judging unit, be used for judging whether the described time surpasses the default request timed out time, and, judging whether to receive or receive the request response that full server sends during the time above default request timed out, and send the judged result of the request response of not receiving or receiving the server transmission;
Message sending unit is used for receiving the described time and surpasses the default request timed out time, and when not receiving or receiving the judged result of the request response that server sends, sends the message that keeps session connection or the redirected page to portable terminal; Wherein, the message header of the message of described maintenance session connection comprises: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number, and described message sending unit sends redirected page message and comprises: the parameter that described transmission equipment need be handled;
Described receiving element also is used for after described message sending unit sends the message that is redirected the page to portable terminal the new request message that the parameter that mobile terminal receive is handled according to described transmission equipment needs sends;
Resolution unit is used for the new request message that described receiving element receives is resolved, and obtains URL;
The parameter judging unit is used for judging whether described URL comprises the parameter that described transmission equipment need be handled, if comprise this parameter, and the value of described parameter is when being NO, and transmission comprises that the value of this parameter and this parameter is the judged result of NO;
Connects processing unit, be used for comprising described parameter receiving, and the value of described parameter is when being the judged result of NO that the new request message that described receiving element is received does not carry out new connection and handles.
7. according to the transmission equipment shown in the claim 6, it is characterized in that the time that described record cell is handled the request message that receives by the startup timer record of setting.
8. according to the transmission equipment shown in claim 6 or 7, it is characterized in that the message header of the maintenance session connection that described message sending unit sends or the message of the redirected page also comprises: prolong the time that session connection keeps.
9. according to the transmission equipment shown in claim 6 or 7, it is characterized in that transmission equipment is integrated in WAP gateway or the acting server, perhaps independent the deployment.
10. a portable terminal is characterized in that, comprising:
Receiving element is used for after sending a request message to WAP gateway or acting server, receives maintenance session connection that WAP gateway or acting server send or the message of the redirected page; Wherein, surpass the default request timed out time when the time that described request message is handled of recording, and when not receiving or not receiving the request response of services network transmission, described WAP gateway or acting server send the message of maintenance session connection or the message of the redirected page; Wherein, comprise in the message header of the message of the maintenance session connection that described receiving element receives: the http protocol conditional code 100 of carrying page data continues or 102 continuation of expanded HTTP protocol status sign indicating number, comprises in the message header of the message of the redirected page that described receiving element receives: the parameter that WAP gateway or acting server need be handled;
Resolution unit for the message of resolving described maintenance session connection or the redirected page, obtains corresponding page;
Display unit is used for the described page that shows that described resolution unit parses;
Transmitting element is used for after receiving the message that is redirected the page, and the parameter of handling according to the described WAP gateway that receives or acting server needs sends new request message to WAP gateway or acting server, and described new request message comprises URL.
11. the portable terminal according to shown in the claim 10 is characterized in that, also comprises in the message header of the maintenance session connection that described receiving element receives or the message of the redirected page: prolong the time that session connection keeps.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910171817 CN102006675B (en) | 2009-08-31 | 2009-08-31 | Data transmission method, transmission equipment and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910171817 CN102006675B (en) | 2009-08-31 | 2009-08-31 | Data transmission method, transmission equipment and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102006675A CN102006675A (en) | 2011-04-06 |
CN102006675B true CN102006675B (en) | 2013-09-11 |
Family
ID=43813636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910171817 Expired - Fee Related CN102006675B (en) | 2009-08-31 | 2009-08-31 | Data transmission method, transmission equipment and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102006675B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185854A (en) * | 2011-04-29 | 2011-09-14 | 广州市动景计算机科技有限公司 | Networking method for mobile communication equipment terminal and device thereof |
CN102209039B (en) * | 2011-06-27 | 2015-05-06 | 华为数字技术(成都)有限公司 | Method and equipment for transmitting file |
CN104735736B (en) * | 2013-12-24 | 2018-05-15 | 中国移动通信集团公司 | A kind of method for network access and user terminal |
CN105592175A (en) * | 2014-10-24 | 2016-05-18 | 中兴通讯股份有限公司 | Method and apparatus for redirection to web page |
US9860209B2 (en) * | 2015-05-12 | 2018-01-02 | Cisco Technology, Inc. | Stateful connection processing in a security device cluster |
CN106686621A (en) * | 2015-11-09 | 2017-05-17 | 中兴通讯股份有限公司 | Data transmission method and WAP device |
CN105872090B (en) * | 2016-05-27 | 2019-05-07 | 四川长虹电器股份有限公司 | Http communication method based on extended mode code |
CN107493307A (en) * | 2016-06-12 | 2017-12-19 | 创盛视联数码科技(北京)有限公司 | A kind of HTTP request time-out management method and device |
CN106550019B (en) * | 2016-10-20 | 2020-01-31 | 福建天泉教育科技有限公司 | Browser request processing method and system |
CN106412079B (en) * | 2016-10-20 | 2019-04-16 | 福建天泉教育科技有限公司 | Request processing method and system |
CN106941536A (en) * | 2017-05-03 | 2017-07-11 | 华东交通大学 | Data interactive method between client and server based on http protocol |
CN108984144B (en) * | 2018-08-13 | 2021-10-08 | 北京小米移动软件有限公司 | Data acquisition method, device and storage medium |
CN113504858A (en) * | 2021-07-16 | 2021-10-15 | 北京猿力未来科技有限公司 | Order page processing method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901461A (en) * | 2006-07-27 | 2007-01-24 | 马堃 | System and method for insert broadcasting advertisement in connecting net waiting process |
CN101197843A (en) * | 2007-11-13 | 2008-06-11 | 华为技术有限公司 | Page redirection method and wireless application protocol gateway |
CN201100950Y (en) * | 2008-01-21 | 2008-08-13 | 中国移动通信集团河北有限公司 | Smart Redirect WAP Gateway |
CN101471801A (en) * | 2007-12-28 | 2009-07-01 | 上海亿动信息技术有限公司 | Advertisement delivery method and apparatus for preventing fault advertisement in wireless internet |
-
2009
- 2009-08-31 CN CN 200910171817 patent/CN102006675B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901461A (en) * | 2006-07-27 | 2007-01-24 | 马堃 | System and method for insert broadcasting advertisement in connecting net waiting process |
CN101197843A (en) * | 2007-11-13 | 2008-06-11 | 华为技术有限公司 | Page redirection method and wireless application protocol gateway |
CN101471801A (en) * | 2007-12-28 | 2009-07-01 | 上海亿动信息技术有限公司 | Advertisement delivery method and apparatus for preventing fault advertisement in wireless internet |
CN201100950Y (en) * | 2008-01-21 | 2008-08-13 | 中国移动通信集团河北有限公司 | Smart Redirect WAP Gateway |
Also Published As
Publication number | Publication date |
---|---|
CN102006675A (en) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102006675B (en) | Data transmission method, transmission equipment and mobile terminal | |
US6363419B1 (en) | Method and apparatus for generating idle loop screen displays on mobile wireless computing devices | |
US20060080659A1 (en) | System and method of provisioning software to mobile devices | |
KR20070004522A (en) | Dynamic Split Portal Base Application Services Network Topology for Cellular Systems | |
US20080003996A1 (en) | Controlling mobile messaging remotely | |
JP2000099463A (en) | Centralized service management system for data network two-way interactive communication devices | |
CN101184304B (en) | Client terminal software download method, system and device for user facility | |
JP2003058286A (en) | Method and system for backing up data | |
WO2000078005A2 (en) | Apparatus and method for internet advertising | |
JP2001094592A (en) | Method and system for providing electronic mail service for mobile device by effectively using network band | |
WO2008106431A2 (en) | Technique for providing data objects prior to call establishment | |
US20090124285A1 (en) | Gateway relaying communication between a radio intelligent terminal and a server | |
EP1788753A1 (en) | Electric device, server apparatus, mobile terminal, communication system, communication method and program | |
EP2116033A1 (en) | Method and apparatus for event-based synchronization of information between communication devices | |
US20060056379A1 (en) | System and method for network-assisted connection in a wireless environment | |
KR100498361B1 (en) | Synchronization method for wireless internet in mobile communication device | |
CN101188626B (en) | Data downloading system, device and method | |
Rouhana et al. | BWIG: Bluetooth web Internet gateway | |
JP2001154964A (en) | How to distribute data resources | |
CN1780292B (en) | Method for assuring service platform with user terminal information under various applied protocols | |
CN103313228A (en) | Message transmission method under Android system | |
EP2124413B1 (en) | System and method for carrying out communication between a server and a user equipment | |
KR100694871B1 (en) | Gateway system and service method for mobile service in wireless open network | |
JP2005267014A (en) | Server device | |
JP4260461B2 (en) | Infrared communication system, infrared gateway device and infrared communication program |
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: 20130911 |