CN103392327B - A kind of reorientation method and the network equipment - Google Patents

A kind of reorientation method and the network equipment Download PDF

Info

Publication number
CN103392327B
CN103392327B CN201280003044.9A CN201280003044A CN103392327B CN 103392327 B CN103392327 B CN 103392327B CN 201280003044 A CN201280003044 A CN 201280003044A CN 103392327 B CN103392327 B CN 103392327B
Authority
CN
China
Prior art keywords
message
window
terminal
response
redirected
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.)
Active
Application number
CN201280003044.9A
Other languages
Chinese (zh)
Other versions
CN103392327A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103392327A publication Critical patent/CN103392327A/en
Application granted granted Critical
Publication of CN103392327B publication Critical patent/CN103392327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of reorientation method and the network equipment are disclosed.A kind of reorientation method comprises: the request of data message forwarding terminal transmission to server; The response message of the described request of data message that reception server sends; Obtain the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.The embodiment of the present invention achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.

Description

A kind of reorientation method and the network equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of reorientation method and the network equipment.
Background technology
Being redirected, is exactly forward a network request again fixed direction to other position in simple terms.This technology can be applied to several scenes, such as, along with mobile Internet development brings data traffic to grow continuously and fast, the real-time of remind consumption and friendly are had higher requirement, carry out user consuming remind time (consumption prompting, threshold value prompting etc. time as not enough in user balance) just can apply reorientation method.
Reorientation method conventional in prior art is: gateway device intercepts the GET request message of user http agreement, then directly replys 302 messages, user is redirected on a portal page, reminds to carry out consumption to user.
But, when user sends the GET request message of http agreement by terminal, such as, open a page, if comprise multiple wicket lattice in this page, each wicket comprises oneself Url, and each wicket understands the content that oneself sends this wicket of GET acquisition request.According to existing method, gateway device can intercept the GET request that wicket sends, and reply 302 messages, then terminal is after execution is redirected, the portal page can be presented in wicket, but wicket cannot show this portal page completely, user directly cannot obtain this complete redirection page surface information.Therefore, in above-mentioned reorientation method, user directly cannot obtain complete redirection page surface information, affects Consumer's Experience.
Summary of the invention
Provide a kind of reorientation method and the network equipment in the embodiment of the present invention, can Consumer's Experience be promoted.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
First aspect, provides a kind of reorientation method, comprising:
The request of data message of terminal transmission is forwarded to server;
The response message of the described request of data message that reception server sends;
Obtain the response window information in described response message;
When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
In conjunction with one side face, in the implementation that the first is possible, when described response window information representation is main window, before sending redirection message to terminal, also comprise:
Judge whether to perform according to preset strategy and be redirected, if so, again when described response window information representation is main window, send redirection message to described terminal.
In conjunction with one side face, and/or the first possible implementation, in the implementation that the second is possible, described when described response window information representation is main window, send redirection message to terminal, comprising:
When described response window information is Frame field, send redirection message to terminal.
In conjunction with one side face, and/or the first possible implementation, and/or the implementation that the second is possible, in the implementation that the third is possible, also comprise:
When described response window information representation is wicket, abandon described response message.
Second aspect, provides a kind of redirection device, comprising:
Packet sending and receiving unit, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends;
Information acquisition unit, for obtaining the response window information in response message that described packet sending and receiving unit receives;
Be redirected unit, for when the response window information representation that described information acquisition unit obtains is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
In conjunction with one side face, in the implementation that the first is possible, also comprise:
Identifying unit, before sending redirection message at described redirected unit to terminal, judges whether to perform according to preset strategy and is redirected, if so, send redirection message by described redirected unit to described terminal again.
In conjunction with one side face, and/or the first possible implementation, in the implementation that the second is possible, described redirected unit, specifically for when described response window information is Frame field, sends redirection message to terminal.
The third aspect, also provides a kind of network equipment, comprising:
R-T unit, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends;
Processor, for obtaining the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
In conjunction with one side face, in the implementation that the first is possible, described processor, also for before sending redirection message to terminal, judge whether to perform according to preset strategy and be redirected, if so, again when described response window information representation is main window, redirection message is sent to described terminal.
Fourth aspect, also provides a kind of Redirectional system, comprises gateway device,
Described gateway device, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends; Obtain the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
In the embodiment of the present invention, the network equipment is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of reorientation method flow chart of the embodiment of the present invention;
Fig. 2 is the another kind of reorientation method flow chart of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of redirection device of the embodiment of the present invention;
Fig. 4 is the structural representation of the another kind of redirection device of the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of network equipment of the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of Redirectional system of the embodiment of the present invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, it is a kind of reorientation method flow chart of the embodiment of the present invention.
The method can comprise:
Step 101, forwards the request of data message of terminal transmission to server.
The network equipment such as gateway is after the request of data message receiving terminal to server transmission, and different from existing method, in the embodiment of the present invention, the network equipment does not perform redirected, but by this request of data message repeating to server.This request of data message can be GET message.
Server generates the response message of this request of data message according to this request of data message, then this response message is sent to this network equipment.Wherein, this response message is identical with the response message of the request of data message that server in prior art generates.
Step 102, the response message of the request of data message that reception server sends.
Step 103, obtains the response window information in response message.
The network equipment, after the response message receiving server transmission, reads the response window information in this response message.The response window of this response window information representation corresponding to this response message.
Such as, if this response window information can be FRAME field, be then indicated as main window, can be SubFRAME field, be then indicated as wicket.Wherein, main window can refer to the window in end side full screen display, and also can refer to can the window of complete display redirection page surface information, and the window be not necessarily displayed in full screen.
Certainly, this response window information also can also be specifically other identification informations except FRAME field and SubFRAME field, as long as consult between server and the network equipment, and the window that the network equipment can be corresponding according to this information identification.
Step 104, when response window information representation is main window, sends redirection message to terminal, to make terminal be redirected according to this redirection message, and is redirected the page in main window display.
When the response window information representation that the network equipment acquires is main window, the network equipment abandons this response message, and sends redirection message, such as 302 messages to terminal.Terminal, after receiving this redirection message, is redirected according to this redirection message, and is redirected the page in the main window display that response message is corresponding, and this redirected page can be that consumption reminds the page or remaining sum display page or threshold value to remind the page etc.
In the embodiment of the present invention, the network equipment is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
See Fig. 2, it is the another kind of reorientation method flow chart of the embodiment of the present invention.
The method can comprise:
Step 201, forwards the request of data message of terminal transmission to server.
Step 202, the response message of the request of data message that reception server sends.
This step 201 ~ 202 are similar with previous embodiment step 101 ~ 102.
Step 203, judges whether to perform according to preset strategy and is redirected.
Different from a upper embodiment, the network equipment, before execution next step, first judges whether to need to perform to be redirected according to preset strategy, if so, then proceeds to step 204, if not, then the response message of server is sent to terminal.
This preset strategy can be the time point pre-set, and judges that time point that this pre-sets starts to perform when arriving and is redirected, namely perform subsequent step to the response message received when network equipment timing.This preset strategy also can receive redirect instruction, after the network equipment judges to receive redirected instruction, perform and be redirected, such as, other equipment trigger when download or spending amount that terminal detected go beyond the limit and send redirect instruction etc. to this network equipment, the network equipment judges whether to receive this redirect instruction after receiving response message, is redirected, namely performs subsequent step to the response message received if then perform.
In another embodiment, the network equipment all can perform this step when receiving response message each time, such as, the network equipment according on a response message determine perform be redirected after, for the response message of subsequently received server, no longer can perform this step, and directly be redirected, as previously described in a prior embodiment.
Step 204, obtains the response window information in response message, and judges whether this response window information is characterized by main window.
The network equipment can read FRAME field in response message or SubFRAME field, if FRAME field, then shows that response window information is main window, performs step 205; If SubFRAME field, then show that response window information is wicket, perform step 206.
Step 205, sends redirection message to terminal, to make terminal be redirected according to this redirection message, and is redirected the page in main window display.
Step 206, abandons response message.
In the present embodiment, if when response window information is wicket, then abandon the response message that server sends, to avoid producing unnecessary flow, affect Consumer's Experience.
In the embodiment of the present invention, the network equipment is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
In another embodiment of the invention, step 203 can adjust, as long as performed before step 205,206 as required with the order of other steps.
Be more than the description to the inventive method embodiment, below the device realizing said method be introduced.
See Fig. 3, it is the structural representation of a kind of redirection device of the embodiment of the present invention.
This device can comprise:
Packet sending and receiving unit 301, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends.
Information acquisition unit 302, for obtaining the response window information in response message that described packet sending and receiving unit 301 receives.
Be redirected unit 303, for when the response window information representation that described information acquisition unit 302 obtains is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
Packet sending and receiving unit 301 is after the request of data message receiving terminal to server transmission, do not perform redirected, but by this request of data message repeating to server, and the response message of the request of data message of reception server transmission, information acquisition unit 302 reads the response window information in this response message.The response window of this response window information representation corresponding to this response message, when response window information representation is main window, be redirected unit 303 and abandon this response message, and send redirection message to terminal, terminal is after receiving this redirection message, be redirected according to this redirection message, and be redirected the page in the main window display that response message is corresponding, this redirected page can be that consumption reminds the page or remaining sum display page or threshold value to remind the page etc.
In the embodiment of the present invention, this redirection device is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
See Fig. 4, it is the structural representation of the another kind of redirection device of the embodiment of the present invention.
This device is except comprising packet sending and receiving unit 401, information acquisition unit 402, be redirected unit 403 and identifying unit 404.
Wherein, identifying unit 404, before sending redirection message at described redirected unit 403 to terminal, judges whether to perform according to preset strategy and is redirected, if so, send redirection message by described redirected unit 403 to described terminal again.
Described redirected unit 403, specifically for when described response window information is Frame field, sends redirection message to terminal.
In the embodiment of the present invention, this redirection device is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
See Fig. 5, it is the structural representation of a kind of network equipment of the embodiment of the present invention.
This network equipment can comprise:
R-T unit 501, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends;
Processor 502, for obtaining the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display.
In another embodiment, processor 502, can also be used for before sending redirection message to terminal, judges whether to perform and is redirected, if so, again when described response window information representation is main window, send redirection message to described terminal according to preset strategy.
This network equipment can be gateway etc.
In the embodiment of the present invention, this network equipment is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
See Fig. 6, it is the structural representation of a kind of Redirectional system of the embodiment of the present invention.
This Redirectional system can comprise gateway device 601, terminal 602 and server 603.
Described gateway device 601, for forwarding the request of data message that terminal 602 sends to server 603; The response message of the described request of data message that reception server 603 sends; Obtain the response window information in described response message; When described response window information representation is main window, send redirection message to terminal 601, to make described terminal 601 be redirected according to described redirection message, and be redirected the page in described main window display.
In the embodiment of the present invention, this system is by obtaining the response window information in the response message of server, and when response window information representation is main window, redirection message is sent again to terminal, achieve terminal carry out be redirected after the redirected page can show in main window, make user directly can obtain complete redirection page surface information, improve Consumer's Experience.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (6)

1. a reorientation method, is characterized in that, comprising:
The request of data message of terminal transmission is forwarded to server;
The response message of the described request of data message that reception server sends;
Obtain the response window information in described response message;
When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display; When described response window information representation is wicket, abandon described response message; Wherein, described main window is: at the window of end side full screen display, or, can the full screen display window of complete display described redirection page surface information or non-full screen display window.
2. method according to claim 1, is characterized in that, when described response window information representation is main window, before sending redirection message, also comprises to terminal:
Judge whether to perform according to preset strategy and be redirected, if so, again when described response window information representation is main window, send redirection message to described terminal.
3. method according to claim 1 and 2, is characterized in that, described when described response window information representation is main window, sends redirection message, comprising to terminal:
When described response window information is Frame field, send redirection message to terminal.
4. a network equipment, is characterized in that, comprising:
R-T unit, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends;
Processor, for obtaining the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display; When described response window information representation is wicket, abandon described response message; Wherein, described main window is: at the window of end side full screen display, or, can the full screen display window of complete display described redirection page surface information or non-full screen display window.
5. the network equipment according to claim 4, is characterized in that,
Described processor, also for before sending redirection message to terminal, judges whether to perform according to preset strategy and is redirected, if so, again when described response window information representation is main window, send redirection message to described terminal.
6. a Redirectional system, is characterized in that, comprises gateway device,
Described gateway device, for forwarding the request of data message that terminal sends to server; The response message of the described request of data message that reception server sends; Obtain the response window information in described response message; When described response window information representation is main window, send redirection message to terminal, to make described terminal be redirected according to described redirection message, and be redirected the page in described main window display; When described response window information representation is wicket, abandon described response message; Wherein, described main window is: at the window of end side full screen display, or, can the full screen display window of complete display described redirection page surface information or non-full screen display window.
CN201280003044.9A 2012-12-28 2012-12-28 A kind of reorientation method and the network equipment Active CN103392327B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087824 WO2014101095A1 (en) 2012-12-28 2012-12-28 Redirection method and network device

Publications (2)

Publication Number Publication Date
CN103392327A CN103392327A (en) 2013-11-13
CN103392327B true CN103392327B (en) 2016-03-09

Family

ID=49535846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280003044.9A Active CN103392327B (en) 2012-12-28 2012-12-28 A kind of reorientation method and the network equipment

Country Status (2)

Country Link
CN (1) CN103392327B (en)
WO (1) WO2014101095A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812400B (en) * 2014-12-29 2019-02-12 中国电信股份有限公司 Realize the method, apparatus and system of outstanding window service
CN105959199A (en) * 2015-08-31 2016-09-21 杭州迪普科技有限公司 Information push method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621784A (en) * 2008-11-21 2010-01-06 中国移动通信集团广东有限公司 Propelling type setup and counselling technique of mobile PS domain terminal
CN102025593A (en) * 2009-09-21 2011-04-20 中国移动通信集团公司 Distributed user access system and method
CN102792292A (en) * 2009-12-07 2012-11-21 考持·维 System and method for website performance optimization and Internet traffic processing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621784A (en) * 2008-11-21 2010-01-06 中国移动通信集团广东有限公司 Propelling type setup and counselling technique of mobile PS domain terminal
CN102025593A (en) * 2009-09-21 2011-04-20 中国移动通信集团公司 Distributed user access system and method
CN102792292A (en) * 2009-12-07 2012-11-21 考持·维 System and method for website performance optimization and Internet traffic processing

Also Published As

Publication number Publication date
CN103392327A (en) 2013-11-13
WO2014101095A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
KR102077366B1 (en) Audio control process
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN104980898A (en) Information pushing method, system and equipment
CN104486793A (en) Data transmission method and base station
CN104780183A (en) Information sharing method, device and electronic device
CN105517195A (en) State detection method and wireless network node
US11064052B2 (en) Page insertion method and device
CN104349320A (en) Sharing method and electronic equipment
CN103605549A (en) Interface exit display method and device
CN104518968A (en) Message processing method and transparent proxy server
CN104469394A (en) Video resource acquiring method, background server, video client and system
CN103392327B (en) A kind of reorientation method and the network equipment
CN104035935A (en) Webpage content push method and system for browser bookmark uniform resource locator (URL)
CN104283920A (en) Use method, server, terminal and system for Webapp router
US20150317143A1 (en) Method and apparatus for installing webpage application
CN108370500B (en) Optimized settings for wireless devices
CN104541491A (en) Method, device and terminal for pushing webpage
CN103559195A (en) Searching method and terminal
CN103853347A (en) Information release method based on gravity sensing horizontal screen display of mobile terminal
CN102695240B (en) Connection control method and access network equipment
CN105453681A (en) A data scheduling method and apparatus
EP2953036A1 (en) File trimming method, terminal and server
JP2017517059A (en) Recognizing page download time through optimized resource scheduling
CN102932234B (en) Method, equipment and system for displaying push information and refreshing number in refreshing process
CN105610937A (en) System and method for obtaining visitor and access device information

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