WO2014101095A1 - Redirection method and network device - Google Patents

Redirection method and network device Download PDF

Info

Publication number
WO2014101095A1
WO2014101095A1 PCT/CN2012/087824 CN2012087824W WO2014101095A1 WO 2014101095 A1 WO2014101095 A1 WO 2014101095A1 CN 2012087824 W CN2012087824 W CN 2012087824W WO 2014101095 A1 WO2014101095 A1 WO 2014101095A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
message
response
redirection
redirect
Prior art date
Application number
PCT/CN2012/087824
Other languages
French (fr)
Chinese (zh)
Inventor
郭建成
张雪峰
黄经安
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280003044.9A priority Critical patent/CN103392327B/en
Priority to PCT/CN2012/087824 priority patent/WO2014101095A1/en
Publication of WO2014101095A1 publication Critical patent/WO2014101095A1/en

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a redirection method and a network device. Background technique
  • Redirection in simple terms, redirects the network request to another location.
  • the technology can be applied to a variety of scenarios. For example, with the continuous growth of data traffic caused by the development of mobile Internet, higher requirements are placed on the real-time and friendliness of consumption reminders, such as users when they are reminded of consumption (such as users).
  • the redirection method can be applied when the balance is insufficient, such as consumption reminders, threshold reminders, etc.
  • the redirection method commonly used in the prior art is: the gateway device intercepts the GET request message of the user http protocol, and then directly replies to the 302 message, redirects the user to a portal page, and performs a consumption reminder for the user.
  • the gateway device intercepts the GET request sent by the small window and replies to the 302 message.
  • the portal page is displayed in the small window.
  • the small window cannot completely display the portal page. The user cannot directly get the complete redirect page information. Therefore, in the above redirection method, the user cannot directly obtain the complete redirect page information, which affects the user experience. Summary of the invention
  • the embodiment of the invention provides a redirection method and a network device, which can improve the user experience.
  • a redirection method including:
  • the redirect message is sent to the terminal, so that the terminal redirects according to the redirected message, and displays the redirected page in the main window.
  • the response window information when the response window information is characterized In the window, before sending a redirect message to the terminal, it also includes:
  • the sending the redirection packet to the terminal includes:
  • the redirect message is sent to the terminal.
  • the method further includes:
  • the response window information is characterized as a small window
  • the response message is discarded.
  • a redirection device including:
  • a packet sending and receiving unit configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
  • An information obtaining unit configured to obtain response window information in the response message received by the packet sending and receiving unit
  • a redirecting unit configured to: when the response window information obtained by the information acquiring unit is represented as a main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirected packet, and The main window shows the redirect page.
  • the method further includes:
  • a determining unit configured to determine, according to a preset policy, whether to perform redirection according to a preset policy, and if yes, the redirecting unit sends a redirect message to the terminal.
  • the redirection unit is specifically configured to send a heavy weight to the terminal when the response window information is a Frame field.
  • Directional message is specifically configured to send a heavy weight to the terminal when the response window information is a Frame field.
  • a network device including:
  • transceiver device configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
  • a processor configured to obtain response window information in the response packet; when the response window information is represented as a main window, send a redirect message to the terminal, so that the terminal performs the redirection message according to the redirect message Redirect, and display the redirect page in the main window.
  • the processor is further configured to determine, according to a preset policy, whether to perform redirection before sending a redirection packet to the terminal, and if yes, when the response is Window letter When the information is represented as the main window, the redirect message is sent to the terminal.
  • a redirection system including a gateway device,
  • the gateway device is configured to: forward a data request message sent by the terminal to the server; receive a response message of the data request message sent by the server; obtain response window information in the response message; When the information is represented as the main window, the redirect message is sent to the terminal, so that the terminal performs redirection according to the redirected message, and displays the redirected page in the main window.
  • the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting.
  • the targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • FIG. 1 is a flowchart of a redirection method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another redirection method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a redirection device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another redirection device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a redirection system according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a redirection method according to an embodiment of the present invention.
  • the method can include:
  • Step 101 Forward the data request message sent by the terminal to the server.
  • the gateway After the network device, for example, the gateway receives the data request message sent by the terminal to the server, the existing method does not In the embodiment of the present invention, the network device does not perform redirection, but forwards the data request packet to the server.
  • the data request message can be a GET message.
  • the server generates a response message of the data request message according to the data request message, and then sends the response message to the network device.
  • the response packet is the same as the response packet of the data request packet generated by the server in the prior art.
  • Step 102 Receive a response message of a data request message sent by the server.
  • Step 103 Obtain response window information in the response message.
  • the network device After receiving the response message sent by the server, the network device reads the response window information in the response message.
  • the response window information represents a response window corresponding to the response message.
  • the response window information can be a FRAME field, it indicates a main window, which can be
  • the SubFRAME field is indicated as a small window.
  • the main window may refer to a window displayed on the terminal side in full screen, or may be a window that can completely display the redirected page information, and is not necessarily a full-screen display window.
  • the response window information may also be other identification information except the FRAME field and the SubFRAME field, as long as the server negotiates with the network device, and the network device can identify the corresponding window according to the information.
  • Step 104 When the response window information is represented as the main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and displays the redirect page in the main window.
  • the network device When the response window information obtained by the network device is represented as the main window, the network device discards the response message and sends a redirect message, such as a 302 message, to the terminal. After receiving the redirect packet, the terminal performs redirection according to the redirect packet, and displays a redirect page in the main window corresponding to the response packet, where the redirect page may be a consumption reminder page or a balance display page or a threshold. Reminder page, etc.
  • the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting.
  • the targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • FIG. 2 it is a flowchart of another redirection method according to an embodiment of the present invention.
  • the method can include:
  • Step 201 Forward, to the server, a data request message sent by the terminal.
  • Step 202 Receive a response message of a data request message sent by the server.
  • This step 201 202 is similar to step 101 102 of the previous embodiment.
  • Step 203 Determine whether to perform redirection according to a preset policy. Different from the previous embodiment, before performing the next step, the network device first determines whether to perform redirection according to the preset policy, and if yes, proceeds to step 204, and if not, sends a response message of the server to the terminal.
  • the preset policy may be a preset time point. When the network device times and determines that the preset time point arrives, the redirection is started, that is, the subsequent step is performed on the received response message.
  • the preset policy may also receive a redirecting instruction. When the network device determines that the redirected instruction is received, the network device performs a redirection. For example, the other device triggers the network device when detecting that the download amount or the consumption amount of the terminal exceeds the limit. After the redirection instruction is sent, the network device determines whether the redirection instruction is received after receiving the response message, and if yes, performs redirection, that is, performs subsequent steps on the received response message.
  • the network device may perform the step without receiving the response message every time, for example, after the network device determines to perform the redirection according to the last response message, and responds to the subsequently received server. For the message, the step can be performed no longer, and the redirect is directly performed, as described in the previous embodiment.
  • Step 204 Obtain response window information in the response message, and determine whether the response window information is represented as a main window.
  • the network device can read the FRAME field or the SubFRAME field in the response message. If it is a FRAME field, it indicates that the response window information is the main window, and step 205 is performed; if it is a SubFRAME field, the response window information is a small window, and the step is performed. 206.
  • Step 205 Send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and displays the redirect page in the main window.
  • Step 206 Discard the response message.
  • the response window information is a small window
  • the response packet sent by the server is discarded to avoid unnecessary traffic and affect the user experience.
  • the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting.
  • the targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • step 203 and other steps may be adjusted as needed, as long as it is performed before steps 205, 206.
  • FIG. 3 is a schematic structural diagram of a redirection device according to an embodiment of the present invention.
  • the device can include:
  • a packet sending and receiving unit 301 configured to forward, to the server, a data request message sent by the terminal; The response message of the data request message sent.
  • the information obtaining unit 302 is configured to obtain response window information in the response message received by the message sending and receiving unit 301.
  • the redirecting unit 303 is configured to: when the response window information obtained by the information acquiring unit 302 is represented as a main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and A redirect page is displayed in the main window.
  • the packet sending and receiving unit 301 After receiving the data request message sent by the terminal to the server, the packet sending and receiving unit 301 does not perform the redirection, but forwards the data request message to the server, and receives the response message of the data request message sent by the server.
  • the information acquisition unit 302 reads the response window information in the response message.
  • the response window information represents the response window corresponding to the response message.
  • the redirecting unit 303 discards the response message and sends a redirect message to the terminal, and the terminal receives the response message.
  • the redirect message After the packet is redirected, the redirect message is redirected according to the redirect message, and the redirect page is displayed in the main window corresponding to the response packet.
  • the redirect page may be a consumption reminder page or a balance display page or a threshold reminder page.
  • the redirection device obtains the response window information in the response packet of the server, and sends the redirection packet to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal.
  • the redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • FIG. 4 it is a schematic structural diagram of another redirection device according to an embodiment of the present invention.
  • the apparatus may include, in addition to the message transceiving unit 401, the information acquiring unit 402, the redirecting unit 403, and the determining unit 404.
  • the determining unit 404 is configured to determine, according to the preset policy, whether to perform redirection according to the preset policy before the redirecting unit 403 sends the redirection packet to the terminal, and if yes, the redirection unit 403 sends the redirection to the terminal.
  • Directional message is configured to determine, according to the preset policy, whether to perform redirection according to the preset policy before the redirecting unit 403 sends the redirection packet to the terminal, and if yes, the redirection unit 403 sends the redirection to the terminal.
  • the redirecting unit 403 is specifically configured to: when the response window information is a Frame field, send a redirect message to the terminal.
  • the redirection device obtains the response window information in the response packet of the server, and sends the redirection packet to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal.
  • the redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • the network device can include: The transceiver device 501 is configured to: forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
  • the processor 502 is configured to obtain the response window information in the response packet, and send the redirect message to the terminal, so that the terminal is configured according to the redirect message, when the response window information is represented as the main window. Redirect and display the redirect page in the main window.
  • the processor 502 is further configured to: before the sending the redirect message to the terminal, determine whether to perform the redirection according to the preset policy, and if yes, when the response window information is represented as the main window, Sending a redirect message to the terminal.
  • the network device can be a gateway or the like.
  • the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal.
  • the redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • FIG. 6 is a schematic structural diagram of a redirection system according to an embodiment of the present invention.
  • the redirection system can include a gateway device 601, a terminal 602, and a server 603.
  • the gateway device 601 is configured to: forward the data request message sent by the terminal 602 to the server 603; receive the response message of the data request message sent by the server 603; and obtain the response window information in the response message; When the response window information is represented as the main window, the redirection packet is sent to the terminal 601, so that the terminal 601 performs redirection according to the redirection packet, and displays the redirection page in the main window.
  • the system obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting.
  • the targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
  • the disclosed systems, devices, and methods may In other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.

Landscapes

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

Abstract

Disclosed are a redirection method and a network device. The redirection method comprises: forwarding to a server a data request packet transmitted by a terminal; receiving a response packet transmitted by the server for the data request packet; acquiring response window information in the response packet; and, when the response window information characterizes a main window, transmitting a redirection packet to the terminal to allow the terminal to redirect on the basis of the redirection packet and to display a redirect page at the main window. Embodiments of the present invention implement the display of the redirect page in the main window when the terminal is redirected, and allow a user to acquire directly complete redirect page information, thus enhancing user experience.

Description

一种重定向方法及网络设备  Redirection method and network device
技术领域 本发明涉及通信技术领域, 尤其涉及一种重定向方法及网络设备。 背景技术 The present invention relates to the field of communications technologies, and in particular, to a redirection method and a network device. Background technique
重定向, 简单来说就是将网络请求重新定个方向转到其它位置。该技术可以应用 于多种场景, 例如, 随着移动互联网发展带来数据流量持续高速增长, 对消费提醒的 实时性和友好性提出了更高的要求,在对用户进行消费提醒时(如用户余额不足时的 消费提醒、 阈值提醒等) 就可以应用重定向方法。  Redirection, in simple terms, redirects the network request to another location. The technology can be applied to a variety of scenarios. For example, with the continuous growth of data traffic caused by the development of mobile Internet, higher requirements are placed on the real-time and friendliness of consumption reminders, such as users when they are reminded of consumption (such as users). The redirection method can be applied when the balance is insufficient, such as consumption reminders, threshold reminders, etc.
现有技术中常用的重定向方法是:网关设备截取用户 http协议的 GET请求消息, 然后直接回复 302报文, 把用户重定向到一个 portal页面上, 以对用户进行消费提醒 等。  The redirection method commonly used in the prior art is: the gateway device intercepts the GET request message of the user http protocol, and then directly replies to the 302 message, redirects the user to a portal page, and performs a consumption reminder for the user.
然而, 在用户通过终端发送 http协议的 GET请求消息时, 例如打开一个页面, 若该页面中包含多个小窗口格, 每个小窗口包含自己的 Url, 每个小窗口会自己发送 GET请求获取该小窗口的内容。 按照现有方法, 网关设备会截取小窗口发送的 GET 请求, 并回复 302报文, 则终端在执行重定向后, portal页面会显示在小窗口中, 然 而,小窗口无法完全显示该 portal页面,用户无法直接获得该完整的重定向页面信息。 因此,上述重定向方法中,用户无法直接获得完整的重定向页面信息,影响用户体验。 发明内容  However, when the user sends a GET request message of the http protocol through the terminal, for example, a page is opened. If the page contains multiple small window grids, each small window contains its own Url, and each small window will send a GET request by itself. The content of the small window. According to the existing method, the gateway device intercepts the GET request sent by the small window and replies to the 302 message. After the terminal performs the redirection, the portal page is displayed in the small window. However, the small window cannot completely display the portal page. The user cannot directly get the complete redirect page information. Therefore, in the above redirection method, the user cannot directly obtain the complete redirect page information, which affects the user experience. Summary of the invention
本发明实施例中提供了一种重定向方法及网络设备, 能够提升用户体验。  The embodiment of the invention provides a redirection method and a network device, which can improve the user experience.
为了解决上述技术问题, 本发明实施例公开了如下技术方案:  In order to solve the above technical problem, the embodiment of the present invention discloses the following technical solutions:
第一方面, 提供一种重定向方法, 包括:  In a first aspect, a redirection method is provided, including:
向服务器转发终端发送的数据请求报文;  Forwarding a data request message sent by the terminal to the server;
接收服务器发送的所述数据请求报文的响应报文;  Receiving a response message of the data request message sent by the server;
获得所述响应报文中的响应窗口信息;  Obtaining response window information in the response message;
当所述响应窗口信息表征为主窗口时, 向终端发送重定向报文, 以使所述终端根 据所述重定向报文进行重定向, 并在所述主窗口显示重定向页面。  When the response window information is represented as the main window, the redirect message is sent to the terminal, so that the terminal redirects according to the redirected message, and displays the redirected page in the main window.
结合上述一方面,在第一种可能的实现方式中,在当所述响应窗口信息表征为主 窗口时, 向终端发送重定向报文之前, 还包括: In combination with the above aspect, in a first possible implementation manner, when the response window information is characterized In the window, before sending a redirect message to the terminal, it also includes:
根据预置策略判断是否执行重定向,若是, 再当所述响应窗口信息表征为主窗口 时, 向所述终端发送重定向报文。  Determining whether to perform redirection according to the preset policy. If yes, when the response window information is represented as a main window, the redirection packet is sent to the terminal.
结合上述一方面, 和 /或第一种可能的实现方式, 在第二种可能的实现方式中, 所述当所述响应窗口信息表征为主窗口时, 向终端发送重定向报文, 包括:  With reference to the foregoing aspect, and/or the first possible implementation manner, in a second possible implementation manner, when the response window information is represented as a main window, the sending the redirection packet to the terminal includes:
当所述响应窗口信息为 Frame字段时, 向终端发送重定向报文。  When the response window information is a Frame field, the redirect message is sent to the terminal.
结合上述一方面, 和 /或第一种可能的实现方式, 和 /或第二种可能的实现方式, 在第三种可能的实现方式中, 还包括:  In combination with the foregoing aspect, and/or the first possible implementation manner, and/or the second possible implementation manner, in a third possible implementation manner, the method further includes:
当所述响应窗口信息表征为小窗口时, 丢弃所述响应报文。  When the response window information is characterized as a small window, the response message is discarded.
第二方面, 提供一种重定向装置, 包括:  In a second aspect, a redirection device is provided, including:
报文收发单元,用于向服务器转发终端发送的数据请求报文; 接收服务器发送的 所述数据请求报文的响应报文;  a packet sending and receiving unit, configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
信息获取单元, 用于获得所述报文收发单元接收到的响应报文中的响应窗口信 息;  An information obtaining unit, configured to obtain response window information in the response message received by the packet sending and receiving unit;
重定向单元,用于当所述信息获取单元获得的响应窗口信息表征为主窗口时, 向 终端发送重定向报文, 以使所述终端根据所述重定向报文进行重定向, 并在所述主窗 口显示重定向页面。  a redirecting unit, configured to: when the response window information obtained by the information acquiring unit is represented as a main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirected packet, and The main window shows the redirect page.
结合上述一方面, 在第一种可能的实现方式中, 还包括:  In combination with the foregoing aspect, in a first possible implementation manner, the method further includes:
判定单元,用于在所述重定向单元向终端发送重定向报文之前,根据预置策略判 断是否执行重定向, 若是, 再由所述重定向单元向所述终端发送重定向报文。  And a determining unit, configured to determine, according to a preset policy, whether to perform redirection according to a preset policy, and if yes, the redirecting unit sends a redirect message to the terminal.
结合上述一方面, 和 /或第一种可能的实现方式, 在第二种可能的实现方式中, 所述重定向单元,具体用于当所述响应窗口信息为 Frame字段时, 向终端发送重定向 报文。  With reference to the foregoing aspect, and/or the first possible implementation manner, in a second possible implementation manner, the redirection unit is specifically configured to send a heavy weight to the terminal when the response window information is a Frame field. Directional message.
第三方面, 还提供一种网络设备, 包括:  In a third aspect, a network device is provided, including:
收发装置,用于向服务器转发终端发送的数据请求报文; 接收服务器发送的所述 数据请求报文的响应报文;  a transceiver device, configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
处理器,用于获得所述响应报文中的响应窗口信息; 当所述响应窗口信息表征为 主窗口时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文进行重定向, 并在所述主窗口显示重定向页面。  a processor, configured to obtain response window information in the response packet; when the response window information is represented as a main window, send a redirect message to the terminal, so that the terminal performs the redirection message according to the redirect message Redirect, and display the redirect page in the main window.
结合上述一方面, 在第一种可能的实现方式中, 所述处理器, 还用于在向终端发 送重定向报文之前, 根据预置策略判断是否执行重定向, 若是, 再当所述响应窗口信 息表征为主窗口时, 向所述终端发送重定向报文。 With reference to the foregoing aspect, in a first possible implementation manner, the processor is further configured to determine, according to a preset policy, whether to perform redirection before sending a redirection packet to the terminal, and if yes, when the response is Window letter When the information is represented as the main window, the redirect message is sent to the terminal.
第四方面, 还提供一种重定向系统, 包括网关设备,  In a fourth aspect, a redirection system is provided, including a gateway device,
所述网关设备,用于向服务器转发终端发送的数据请求报文; 接收服务器发送的 所述数据请求报文的响应报文; 获得所述响应报文中的响应窗口信息; 当所述响应窗 口信息表征为主窗口时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文 进行重定向, 并在所述主窗口显示重定向页面。  The gateway device is configured to: forward a data request message sent by the terminal to the server; receive a response message of the data request message sent by the server; obtain response window information in the response message; When the information is represented as the main window, the redirect message is sent to the terminal, so that the terminal performs redirection according to the redirected message, and displays the redirected page in the main window.
本发明实施例中, 网络设备通过获取服务器的响应报文中的响应窗口信息, 并在 响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定向后 的重定向页面可以在主窗口中进行显示, 使用户可以直接获得完整的重定向页面信 息, 提升了用户体验。 附图说明  In the embodiment of the present invention, the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting. The targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前 提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例一种重定向方法流程图;  FIG. 1 is a flowchart of a redirection method according to an embodiment of the present invention;
图 2为本发明实施例另一种重定向方法流程图;  2 is a flowchart of another redirection method according to an embodiment of the present invention;
图 3为本发明实施例一种重定向装置的结构示意图;  3 is a schematic structural diagram of a redirection device according to an embodiment of the present invention;
图 4为本发明实施例另一种重定向装置的结构示意图;  4 is a schematic structural diagram of another redirection device according to an embodiment of the present invention;
图 5为本发明实施例一种网络设备的结构示意图;  FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图 6为本发明实施例一种重定向系统的结构示意图。 具体实施方式 为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发明实 施例的上述目的、特征和优点能够更加明显易懂, 下面结合附图对本发明实施例中技 术方案作进一步详细的说明。  FIG. 6 is a schematic structural diagram of a redirection system according to an embodiment of the present invention. The above described objects, features and advantages of the embodiments of the present invention will become more apparent and understood. The technical solution is described in further detail.
参见图 1, 为本发明实施例一种重定向方法流程图。  FIG. 1 is a flowchart of a redirection method according to an embodiment of the present invention.
该方法可以包括:  The method can include:
步骤 101, 向服务器转发终端发送的数据请求报文。  Step 101: Forward the data request message sent by the terminal to the server.
网络设备例如网关在接收到终端向服务器发送的数据请求报文后,与现有方法不 同,本发明实施例中,网络设备不执行重定向,而是将该数据请求报文转发至服务器。 该数据请求报文可以是 GET报文。 After the network device, for example, the gateway receives the data request message sent by the terminal to the server, the existing method does not In the embodiment of the present invention, the network device does not perform redirection, but forwards the data request packet to the server. The data request message can be a GET message.
服务器根据该数据请求报文生成该数据请求报文的响应报文,然后将该响应报文 发送至该网络设备。其中, 该响应报文与现有技术中服务器生成的数据请求报文的响 应报文相同。  The server generates a response message of the data request message according to the data request message, and then sends the response message to the network device. The response packet is the same as the response packet of the data request packet generated by the server in the prior art.
步骤 102, 接收服务器发送的数据请求报文的响应报文。  Step 102: Receive a response message of a data request message sent by the server.
步骤 103, 获得响应报文中的响应窗口信息。  Step 103: Obtain response window information in the response message.
网络设备在接收到服务器发送的响应报文后, 读取该响应报文中的响应窗口信 息。 该响应窗口信息表征了该响应报文所对应的响应窗口。  After receiving the response message sent by the server, the network device reads the response window information in the response message. The response window information represents a response window corresponding to the response message.
例如, 若该响应窗口信息可以为 FRAME 字段, 则表明为主窗口, 可以为 For example, if the response window information can be a FRAME field, it indicates a main window, which can be
SubFRAME 字段, 则表明为小窗口。 其中, 主窗口可以是指在终端侧全屏显示的窗 口, 也可以是指能够完整显示重定向页面信息的窗口, 而不一定是全屏显示的窗口。 The SubFRAME field is indicated as a small window. The main window may refer to a window displayed on the terminal side in full screen, or may be a window that can completely display the redirected page information, and is not necessarily a full-screen display window.
当然, 该响应窗口信息具体也还可以是除 FRAME字段和 SubFRAME字段外的 其他标识信息, 只要服务器与网络设备之间协商, 且网络设备可以根据该信息识别对 应的窗口即可。  Of course, the response window information may also be other identification information except the FRAME field and the SubFRAME field, as long as the server negotiates with the network device, and the network device can identify the corresponding window according to the information.
步骤 104, 当响应窗口信息表征为主窗口时, 向终端发送重定向报文, 以使终端 根据该重定向报文进行重定向, 并在主窗口显示重定向页面。  Step 104: When the response window information is represented as the main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and displays the redirect page in the main window.
当网络设备获得到的响应窗口信息表征为主窗口时, 网络设备丢弃该响应报文, 并向终端发送重定向报文, 例如 302报文。 终端在接收到该重定向报文后, 根据该重 定向报文进行重定向, 并在响应报文对应的主窗口显示重定向页面, 该重定向页面可 以是消费提醒页面或余额显示页面或阈值提醒页面等。  When the response window information obtained by the network device is represented as the main window, the network device discards the response message and sends a redirect message, such as a 302 message, to the terminal. After receiving the redirect packet, the terminal performs redirection according to the redirect packet, and displays a redirect page in the main window corresponding to the response packet, where the redirect page may be a consumption reminder page or a balance display page or a threshold. Reminder page, etc.
本发明实施例中, 网络设备通过获取服务器的响应报文中的响应窗口信息, 并在 响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定向后 的重定向页面可以在主窗口中进行显示, 使用户可以直接获得完整的重定向页面信 息, 提升了用户体验。  In the embodiment of the present invention, the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting. The targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
参见图 2, 为本发明实施例另一种重定向方法流程图。  Referring to FIG. 2, it is a flowchart of another redirection method according to an embodiment of the present invention.
该方法可以包括:  The method can include:
步骤 201, 向服务器转发终端发送的数据请求报文。  Step 201: Forward, to the server, a data request message sent by the terminal.
步骤 202, 接收服务器发送的数据请求报文的响应报文。  Step 202: Receive a response message of a data request message sent by the server.
该步骤 201 202与前述实施例步骤 101 102类似。  This step 201 202 is similar to step 101 102 of the previous embodiment.
步骤 203, 根据预置策略判断是否执行重定向。 与上一实施例不同, 网络设备在执行下一步骤之前, 首先根据预置策略判断是否 需要执行重定向, 若是, 则转入步骤 204, 若否, 则将服务器的响应报文发送至终端。 Step 203: Determine whether to perform redirection according to a preset policy. Different from the previous embodiment, before performing the next step, the network device first determines whether to perform redirection according to the preset policy, and if yes, proceeds to step 204, and if not, sends a response message of the server to the terminal.
该预置策略可以是预先设置的时间点,当网络设备计时并判断该预先设置的时间 点到达时开始执行重定向, 即对接收到的响应报文执行后续步骤。该预置策略也可以 接收到重定向指令, 当网络设备判断接收到重定向的指令后, 执行重定向, 例如, 其 他设备在检测到终端的下载量或消费金额超过限度时触发向该网络设备发送重定向 指令等, 网络设备在接收到响应报文后判断是否接收到该重定向指令,若是则执行重 定向, 即对接收到的响应报文执行后续步骤。  The preset policy may be a preset time point. When the network device times and determines that the preset time point arrives, the redirection is started, that is, the subsequent step is performed on the received response message. The preset policy may also receive a redirecting instruction. When the network device determines that the redirected instruction is received, the network device performs a redirection. For example, the other device triggers the network device when detecting that the download amount or the consumption amount of the terminal exceeds the limit. After the redirection instruction is sent, the network device determines whether the redirection instruction is received after receiving the response message, and if yes, performs redirection, that is, performs subsequent steps on the received response message.
在另一实施例中, 网络设备可以无须在每一次接收到响应报文时均执行本步骤, 例如,在网络设备根据上一响应报文确定执行重定向后,对于后续接收到的服务器的 响应报文, 可以不再执行本步骤, 而直接进行重定向, 如前一实施例所述。  In another embodiment, the network device may perform the step without receiving the response message every time, for example, after the network device determines to perform the redirection according to the last response message, and responds to the subsequently received server. For the message, the step can be performed no longer, and the redirect is directly performed, as described in the previous embodiment.
步骤 204, 获得响应报文中的响应窗口信息, 并判断该响应窗口信息是否表征为 主窗口。  Step 204: Obtain response window information in the response message, and determine whether the response window information is represented as a main window.
网络设备可以读取响应报文中的 FRAME字段或 SubFRAME字段,若为 FRAME 字段, 则表明响应窗口信息为主窗口, 执行步骤 205; 若为 SubFRAME字段, 则表 明响应窗口信息为小窗口, 执行步骤 206。  The network device can read the FRAME field or the SubFRAME field in the response message. If it is a FRAME field, it indicates that the response window information is the main window, and step 205 is performed; if it is a SubFRAME field, the response window information is a small window, and the step is performed. 206.
步骤 205, 向终端发送重定向报文, 以使终端根据该重定向报文进行重定向, 并 在主窗口显示重定向页面。  Step 205: Send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and displays the redirect page in the main window.
步骤 206, 丢弃响应报文。  Step 206: Discard the response message.
在本实施例中, 若响应窗口信息为小窗口时, 则丢弃服务器发送的响应报文, 以 避免产生不必要的流量, 影响用户体验。  In this embodiment, if the response window information is a small window, the response packet sent by the server is discarded to avoid unnecessary traffic and affect the user experience.
本发明实施例中, 网络设备通过获取服务器的响应报文中的响应窗口信息, 并在 响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定向后 的重定向页面可以在主窗口中进行显示, 使用户可以直接获得完整的重定向页面信 息, 提升了用户体验。  In the embodiment of the present invention, the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting. The targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
在本发明的另一实施例中, 步骤 203与其他步骤的顺序可以根据需要调整, 只要 在步骤 205、 206之前执行即可。  In another embodiment of the present invention, the order of step 203 and other steps may be adjusted as needed, as long as it is performed before steps 205, 206.
以上是对本发明方法实施例的描述, 下面对实现上述方法的装置进行介绍。 参见图 3, 为本发明实施例一种重定向装置的结构示意图。  The above is a description of the embodiment of the method of the present invention. The apparatus for implementing the above method will be described below. 3 is a schematic structural diagram of a redirection device according to an embodiment of the present invention.
该装置可以包括:  The device can include:
报文收发单元 301, 用于向服务器转发终端发送的数据请求报文; 接收服务器发 送的所述数据请求报文的响应报文。 a packet sending and receiving unit 301, configured to forward, to the server, a data request message sent by the terminal; The response message of the data request message sent.
信息获取单元 302, 用于获得所述报文收发单元 301接收到的响应报文中的响应 窗口信息。  The information obtaining unit 302 is configured to obtain response window information in the response message received by the message sending and receiving unit 301.
重定向单元 303, 用于当所述信息获取单元 302获得的响应窗口信息表征为主窗 口时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文进行重定向, 并在 所述主窗口显示重定向页面。  The redirecting unit 303 is configured to: when the response window information obtained by the information acquiring unit 302 is represented as a main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and A redirect page is displayed in the main window.
报文收发单元 301 在接收到终端向服务器发送的数据请求报文后, 不执行重定 向, 而是将该数据请求报文转发至服务器, 并接收服务器发送的数据请求报文的响应 报文,信息获取单元 302读取该响应报文中的响应窗口信息。该响应窗口信息表征了 该响应报文所对应的响应窗口, 当响应窗口信息表征为主窗口时, 重定向单元 303 丢弃该响应报文, 并向终端发送重定向报文, 终端在接收到该重定向报文后, 根据该 重定向报文进行重定向, 并在响应报文对应的主窗口显示重定向页面, 该重定向页面 可以是消费提醒页面或余额显示页面或阈值提醒页面等。  After receiving the data request message sent by the terminal to the server, the packet sending and receiving unit 301 does not perform the redirection, but forwards the data request message to the server, and receives the response message of the data request message sent by the server. The information acquisition unit 302 reads the response window information in the response message. The response window information represents the response window corresponding to the response message. When the response window information is represented as the main window, the redirecting unit 303 discards the response message and sends a redirect message to the terminal, and the terminal receives the response message. After the packet is redirected, the redirect message is redirected according to the redirect message, and the redirect page is displayed in the main window corresponding to the response packet. The redirect page may be a consumption reminder page or a balance display page or a threshold reminder page.
本发明实施例中, 该重定向装置通过获取服务器的响应报文中的响应窗口信息, 并在响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定 向后的重定向页面可以在主窗口中进行显示,使用户可以直接获得完整的重定向页面 信息, 提升了用户体验。  In the embodiment of the present invention, the redirection device obtains the response window information in the response packet of the server, and sends the redirection packet to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal. The redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
参见图 4, 为本发明实施例另一种重定向装置的结构示意图。  Referring to FIG. 4, it is a schematic structural diagram of another redirection device according to an embodiment of the present invention.
该装置除了可以包括报文收发单元 401、 信息获取单元 402、 重定向单元 403和 判定单元 404。  The apparatus may include, in addition to the message transceiving unit 401, the information acquiring unit 402, the redirecting unit 403, and the determining unit 404.
其中, 判定单元 404, 用于在所述重定向单元 403向终端发送重定向报文之前, 根据预置策略判断是否执行重定向,若是, 再由所述重定向单元 403向所述终端发送 重定向报文。  The determining unit 404 is configured to determine, according to the preset policy, whether to perform redirection according to the preset policy before the redirecting unit 403 sends the redirection packet to the terminal, and if yes, the redirection unit 403 sends the redirection to the terminal. Directional message.
所述重定向单元 403, 具体用于当所述响应窗口信息为 Frame字段时, 向终端发 送重定向报文。  The redirecting unit 403 is specifically configured to: when the response window information is a Frame field, send a redirect message to the terminal.
本发明实施例中, 该重定向装置通过获取服务器的响应报文中的响应窗口信息, 并在响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定 向后的重定向页面可以在主窗口中进行显示,使用户可以直接获得完整的重定向页面 信息, 提升了用户体验。  In the embodiment of the present invention, the redirection device obtains the response window information in the response packet of the server, and sends the redirection packet to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal. The redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
参见图 5, 为本发明实施例一种网络设备的结构示意图。  FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
该网络设备可以包括: 收发装置 501, 用于向服务器转发终端发送的数据请求报文; 接收服务器发送的 所述数据请求报文的响应报文; The network device can include: The transceiver device 501 is configured to: forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
处理器 502, 用于获得所述响应报文中的响应窗口信息; 当所述响应窗口信息表 征为主窗口时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文进行重定 向, 并在所述主窗口显示重定向页面。  The processor 502 is configured to obtain the response window information in the response packet, and send the redirect message to the terminal, so that the terminal is configured according to the redirect message, when the response window information is represented as the main window. Redirect and display the redirect page in the main window.
在另一实施例中, 处理器 502, 还可以用于在向终端发送重定向报文之前, 根据 预置策略判断是否执行重定向, 若是, 再当所述响应窗口信息表征为主窗口时, 向所 述终端发送重定向报文。  In another embodiment, the processor 502 is further configured to: before the sending the redirect message to the terminal, determine whether to perform the redirection according to the preset policy, and if yes, when the response window information is represented as the main window, Sending a redirect message to the terminal.
该网络设备可以是网关等。  The network device can be a gateway or the like.
本发明实施例中, 该网络设备通过获取服务器的响应报文中的响应窗口信息, 并 在响应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定向 后的重定向页面可以在主窗口中进行显示,使用户可以直接获得完整的重定向页面信 息, 提升了用户体验。  In the embodiment of the present invention, the network device obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the redirecting of the terminal. The redirect page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
参见图 6, 为本发明实施例一种重定向系统的结构示意图。  FIG. 6 is a schematic structural diagram of a redirection system according to an embodiment of the present invention.
该重定向系统可以包括网关设备 601, 终端 602和服务器 603。  The redirection system can include a gateway device 601, a terminal 602, and a server 603.
所述网关设备 601, 用于向服务器 603转发终端 602发送的数据请求报文; 接收 服务器 603发送的所述数据请求报文的响应报文;获得所述响应报文中的响应窗口信 息; 当所述响应窗口信息表征为主窗口时, 向终端 601发送重定向报文, 以使所述终 端 601根据所述重定向报文进行重定向, 并在所述主窗口显示重定向页面。  The gateway device 601 is configured to: forward the data request message sent by the terminal 602 to the server 603; receive the response message of the data request message sent by the server 603; and obtain the response window information in the response message; When the response window information is represented as the main window, the redirection packet is sent to the terminal 601, so that the terminal 601 performs redirection according to the redirection packet, and displays the redirection page in the main window.
本发明实施例中, 该系统通过获取服务器的响应报文中的响应窗口信息, 并在响 应窗口信息表征为主窗口时, 再向终端发送重定向报文, 实现了终端进行重定向后的 重定向页面可以在主窗口中进行显示, 使用户可以直接获得完整的重定向页面信息, 提升了用户体验。  In the embodiment of the present invention, the system obtains the response window information in the response packet of the server, and sends the redirect message to the terminal when the response window information is represented as the main window, thereby realizing the weight of the terminal after the redirecting. The targeted page can be displayed in the main window, so that the user can directly obtain the complete redirect page information, which improves the user experience.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。这些功 能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专 业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实 现不应认为超出本发明的范围。  One of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。  A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方法, 可 以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所 述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如 多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执 行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些 接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may In other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显 示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到 多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例 方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以 是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以 存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或 者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现 出来, 该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机 设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor)执行本 发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘、移动硬 盘、只读存储器(ROM, Read-Only Memory ) 随机存取存储器(RAM, Random Access Memory), 磁碟或者光盘等各种可以存储程序代码的介质。  The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任 何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保 护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种重定向方法, 其特征在于, 包括:  A redirecting method, comprising:
向服务器转发终端发送的数据请求报文; 接收服务器发送的所述数据请求报文的响应报文; 获得所述响应报文中的响应窗口信息; 当所述响应窗口信息表征为主窗口时, 向终端发送重定向报文, 以使所述终 端根据所述重定向报文进行重定向, 并在所述主窗口显示重定向页面。  Forwarding a data request message sent by the terminal to the server; receiving a response message of the data request message sent by the server; obtaining response window information in the response message; and when the response window information is represented as a main window, Sending a redirect message to the terminal, so that the terminal performs redirection according to the redirect message, and displays a redirect page in the main window.
2、 根据权利要求 1所述的方法, 其特征在于, 在当所述响应窗口信息表征 为主窗口时, 向终端发送重定向报文之前, 还包括: 根据预置策略判断是否执行重定向, 若是, 再当所述响应窗口信息表征为主 窗口时, 向所述终端发送重定向报文。 The method according to claim 1, wherein before the redirecting the message is sent to the terminal, the method further includes: determining, according to the preset policy, whether to perform the redirection, If yes, when the response window information is represented as the main window, the redirect message is sent to the terminal.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述当所述响应窗口信 息表征为主窗口时, 向终端发送重定向报文, 包括: 当所述响应窗口信息为 Frame字段时, 向终端发送重定向报文。 The method according to claim 1 or 2, wherein, when the response window information is represented as a main window, sending a redirect message to the terminal, the method includes: when the response window information is a Frame field The redirect message is sent to the terminal.
4、 根据权利要求 1至 3中任意一项所述的方法, 其特征在于, 还包括: 当所述响应窗口信息表征为小窗口时, 丢弃所述响应报文。 The method according to any one of claims 1 to 3, further comprising: discarding the response message when the response window information is characterized as a small window.
5、 一种重定向装置, 其特征在于, 包括: 报文收发单元, 用于向服务器转发终端发送的数据请求报文; 接收服务器发 送的所述数据请求报文的响应报文; 信息获取单元,用于获得所述报文收发单元接收到的响应报文中的响应窗口 信息; A redirection device, comprising: a packet sending and receiving unit, configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server; And configured to obtain a response window in the response message received by the packet sending and receiving unit. Information
重定向单元, 用于当所述信息获取单元获得的响应窗口信息表征为主窗口 时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文进行重定向, 并 在所述主窗口显示重定向页面。  a redirecting unit, configured to: when the response window information obtained by the information acquiring unit is represented as a main window, send a redirect message to the terminal, so that the terminal performs redirection according to the redirected packet, and The main window shows the redirect page.
6、 根据权利要求 5所述的装置, 其特征在于, 还包括: 6. The device according to claim 5, further comprising:
判定单元, 用于在所述重定向单元向终端发送重定向报文之前, 根据预置策 略判断是否执行重定向,若是,再由所述重定向单元向所述终端发送重定向报文。  The determining unit is configured to determine, according to the preset policy, whether to perform redirection according to the preset policy before the redirection unit sends the redirection packet to the terminal, and if yes, the redirection unit sends the redirection packet to the terminal.
7、 根据权利要求 5或 6所述的装置, 其特征在于, 7. Apparatus according to claim 5 or claim 6 wherein:
所述重定向单元,具体用于当所述响应窗口信息为 Frame字段时, 向终端发 送重定向报文。  The redirecting unit is specifically configured to: when the response window information is a Frame field, send a redirect message to the terminal.
8、 一种网络设备, 其特征在于, 包括: 8. A network device, comprising:
收发装置, 用于向服务器转发终端发送的数据请求报文; 接收服务器发送的 所述数据请求报文的响应报文;  a transceiver device, configured to forward a data request message sent by the terminal to the server; and receive a response message of the data request message sent by the server;
处理器, 用于获得所述响应报文中的响应窗口信息; 当所述响应窗口信息表 征为主窗口时, 向终端发送重定向报文, 以使所述终端根据所述重定向报文进行 重定向, 并在所述主窗口显示重定向页面。  a processor, configured to obtain response window information in the response message; when the response window information is represented as a main window, send a redirect message to the terminal, so that the terminal performs the redirection message according to the redirection message Redirect, and display the redirect page in the main window.
9、 根据权利要求 8所述的网络设备, 其特征在于, 9. The network device according to claim 8, wherein:
所述处理器, 还用于在向终端发送重定向报文之前, 根据预置策略判断是否 执行重定向, 若是, 再当所述响应窗口信息表征为主窗口时, 向所述终端发送重 定向报文。 The processor is further configured to: determine, according to a preset policy, whether to perform redirection according to a preset policy before sending the redirect message to the terminal, and if yes, send the redirect to the terminal when the response window information is represented as a main window. Message.
10、 一种重定向系统, 其特征在于, 包括网关设备, 10. A redirection system, comprising: a gateway device,
所述网关设备, 用于向服务器转发终端发送的数据请求报文; 接收服务器发 送的所述数据请求报文的响应报文; 获得所述响应报文中的响应窗口信息; 当所 述响应窗口信息表征为主窗口时, 向终端发送重定向报文, 以使所述终端根据所 述重定向报文进行重定向, 并在所述主窗口显示重定向页面。  The gateway device is configured to: forward a data request message sent by the terminal to the server; receive a response message of the data request message sent by the server; obtain response window information in the response message; When the information is represented as the main window, the redirect message is sent to the terminal, so that the terminal performs redirection according to the redirected message, and displays the redirected page in the main window.
PCT/CN2012/087824 2012-12-28 2012-12-28 Redirection method and network device WO2014101095A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280003044.9A CN103392327B (en) 2012-12-28 2012-12-28 A kind of reorientation method and the network equipment
PCT/CN2012/087824 WO2014101095A1 (en) 2012-12-28 2012-12-28 Redirection method and network device

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 (1)

Publication Number Publication Date
WO2014101095A1 true WO2014101095A1 (en) 2014-07-03

Family

ID=49535846

Family Applications (1)

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

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
CN103392327B (en) 2016-03-09
CN103392327A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
JP2017529793A5 (en)
US10609181B2 (en) Method and apparatus for controlling service chain of service flow
US9774705B2 (en) Router-based networking control
US20160127450A1 (en) Method and apparatus for accelerating data transmission in a network communication system
CN103401946B (en) HTTP uploads accelerated method and system
JP2015502125A5 (en)
US10812421B2 (en) Conveying instant messages via HTTP
WO2016086755A1 (en) Packet processing method and transparent proxy server
US10057165B2 (en) Packet forwarding method and device
WO2013000413A1 (en) File transfer method and device
WO2011088711A1 (en) Method and system for updating web page data
US10887641B2 (en) Techniques to dynamically configure a sender bitrate for streaming media connections
US20150296406A1 (en) Traffic distribution method, device, and system
US9973587B2 (en) Web page pushing method and apparatus, and terminal
WO2016000176A1 (en) Page insertion method and device
WO2014101095A1 (en) Redirection method and network device
WO2017067267A1 (en) Data packet redirection method, system and ap
WO2017097027A1 (en) Data processing method, apparatus and system based on internet content adaptation protocol
JP4627290B2 (en) Rate control method, server, and program using TCP
WO2014100973A1 (en) Video processing method, device and system
CN106487890A (en) A kind of cross-node communication network requesting method based on XMPP
JP6668960B2 (en) Information processing device and program
WO2016106557A1 (en) Method and apparatus for sending video
JP2016174287A (en) Tcp control device, and control method and program therefor

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280003044.9

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12891313

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12891313

Country of ref document: EP

Kind code of ref document: A1