# US 2016/0241664 A1 · Method, device, and system for redirecting data by using service proxy

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0241664 A1
- Document ID: US20160241664A1
- Status: Published application
- Kind: A1
- Application number: 15/140,314
- Filed: 2016-04-27
- Published: 2016-08-18
- Earliest claimed: 2013-10-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Linjin XIA; Yuan XIA; Junping ZHOU
- Web page: https://patentgrep.com/patent/US20160241664A1

## CPC

- H04L 67/563: Data redirection of data network streams
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure discloses a method for redirecting data by using a service proxy, including: forwarding, according to a data storage path carried in a received first data request message sent by a client, the first data request message to a data server; receiving a redirection response message sent by the data server, where the redirection response message carries a new path for storing requested data; sending, according to the new path for storing the requested data, a second data request message to a data server that is indicated by the new path; receiving data that is requested by the client and is sent by the data server that is indicated by the new path, and sending the requested data to the client. According to the method data acquiring efficiency is improved and a network delay is reduced.

## Claims

### Claim 1

A method for redirecting data by using a service proxy, comprising:
forwarding, according to a data storage path carried in a received first data request message sent by a client, the first data request message to a data server, wherein the data storage path is a storage path of data requested by the client, and the first data request message is used to request, from the data server, the data requested by the client;
receiving a redirection response message sent by the data server, wherein the redirection response message carries a new path for storing the requested data;
sending, according to the new path for storing the requested data, a second data request message to a data server that is indicated by the new path, wherein the second data request message is used to request, from the data server that is indicated by the new path, the data requested by the client; and
receiving the data that is requested by the client and is sent by the data server that is indicated by the new path, and sending the requested data to the client, so that the client acquires the requested data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the sending a second data request message to a data server that is indicated by the new path comprises:
sending the second data request message to another data server that is indicated by the new path; and
correspondingly, the receiving the requested data sent by the data server that is indicated by the new path comprises:
receiving the requested data sent by the another data server.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the sending a second data request message to a data server that is indicated by the new path comprises:
sending the second data request message to the data server that is indicated by the new path; and
correspondingly, the receiving the requested data sent by the data server that is indicated by the new path comprises:
receiving the requested data sent by the data server, wherein the requested data is stored in a file path that is indicated by the new path.

### Claim 4 (depends on 1)

The method according to claim 1, wherein before the step of forwarding the first data request message to a data server, the method further comprises:
establishing a Transmission Control Protocol (TCP) connection to each of the client and the data server.

### Claim 5 (depends on 2)

The method according to claim 2, wherein before the step of sending the second data request message to another data server that is indicated by the new path, the method further comprises:
establishing a TCP connection to the another data server.

### Claim 6

A proxy server, comprising an input device, an output device, a processor, and a memory, wherein
the input device is configured to receive a first data request message sent by a client;
the output device is configured to forward the first data request message that is sent by the client to a data server;
the input device is configured to forward the first data request message to the data server according to a data storage path carried in the received first data request message sent by the client, wherein the data storage path is a storage path of data requested by the client, and the first data request message is used to request, from the data server, the data requested by the client;
the output device is further configured to receive a redirection response message sent by the data server, wherein the redirection response message carries a new path for storing the requested data;
the processor is configured to generate a second data request message according to the redirection response message;
the output device is further configured to send, according to the new path for storing the requested data, the second data request message to a data server that is indicated by the new path, wherein the second data request message is used to request, from the data server that is indicated by the new path, the data requested by the client;
the input device is further configured to receive the data that is requested by the client and is sent by the data server that is indicated by the new path; and
the output device is further configured to send the requested data to the client, so that the client acquires the requested data.

### Claim 7 (depends on 6)

The proxy server according to claim 6, wherein
the output device is configured to send the second data request message to another data server that is indicated by the new path; and
the input device is configured to receive the requested data sent by the another data server.

### Claim 8 (depends on 6)

The proxy server according to claim 6, wherein
the output device is configured to send the second data request message to the data server that is indicated by the new path; and
the input device is configured to receive the requested data sent by the data server, wherein the requested data is stored in a file path that is indicated by the new path.

### Claim 9 (depends on 6)

The proxy server according to claim 6, wherein
the processor is further configured to: before the first data request message is forwarded to the data server, establish a TCP connection to each of the client and the data server.

### Claim 10 (depends on 7)

The proxy server according to claim 7, wherein
the processor is further configured to: before the second data request message is sent to the another data server that is indicated by the new path, establish a TCP connection to each of the client and the data server.
