A method and system for connection multiplexing of Internet TV content requests
An Internet TV and content request technology, applied in the field of network communication, can solve the problems of consuming server memory, long connection time and short server connection establishment, avoiding waste of resources, reducing time, improving the speed of cutting and playing smoothly. sexual effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0085] figure 1 It is a schematic diagram of a connection multiplexing method for an Internet TV content request in this embodiment, including the following steps:
[0086] Step 1: Assume that the url to be accessed by the client is http: / / ip:port / file_1, establish a TCP connection for the first time, map the connection with ip:port, and mark the usage count as 1;
[0087] Step 2: Send an HTTP request to the server through the TCP connection established in the first step;
[0088] The third step: through the TCP connection established in the first step, receive the HTTP response message from the server, obtain the file size information, and continuously read the media data from the server until the download is completed;
[0089] Step 4: The client wants to access the next url http: / / ip:port / file_2, traverse the connection pool to see if there is a connection matching ip:port, find the connection established in the first step, and construct an HTTP request. Send to the serve...
Embodiment 2
[0119] This embodiment is a specific embodiment of embodiment one, specifically as follows:
[0120] Set the maximum number of the total number of TCP connections, that is, the second preset threshold is M=20, and the maximum number of TCP connections on the same server side is: the first preset threshold N=3, and the link has no data exchange time S=60 Seconds, every time interval I=5 (seconds) to send a detection packet C=3 times to the peer end of the TCP connection, the maximum number of total TCP connections on the server side is: the preset maximum value L=1000. The network set-top box starts to request to play program p_1, according to figure 1 Establish a TCP connection, record the number of uses num_1=1, and then send an HTTP request. After the request is successful, receive the HTTP response message returned by the server, read the media data and play it. The TCP connection corresponding to the server is seq=0. When performing channel switching, assuming that the sw...
Embodiment 3
[0123] A connection multiplexing system for implementing the connection multiplexing method in Embodiment 1 is specifically as follows:
[0124] A connection multiplexing system for Internet TV content requests, including a client and a server, the client is connected to multiple servers through a reusable TCP connection, and the server is connected to multiple clients through a reusable TCP connection ;The client is used to analyze the HTTP url to be connected, and then establish or select the TCP connection corresponding to the target server, and after constructing the HTTP request, send the HTTP request through the TCP connection and receive the response message returned by the server; the server uses After listening to the request information of the client, and selecting or establishing a TCP connection corresponding to the client, responding to the HTTP request of the client through the TCP connection and returning an HTTP response message.
[0125] The client is used to:...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


