Method, apparatus and system for establishing connection with server
A technology for establishing connections and servers, which is applied in transmission systems, broadcasting devices, broadcasting-related systems, etc., and can solve problems such as heavy workload and the inability to change IP addresses of servers at will
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] On the set-top box side, such as figure 2 shown, including:
[0074] Step 201: sending an IP address request message;
[0075] In this embodiment, the set-top box may send the IP address request message in a broadcast or multicast manner to request the IP address of the server. The IP address request message can adopt a custom format as shown in Table 1, wherein the first 11 bytes are SERVERFOUND, indicating that the message is used to obtain the server IP address; the next 1 byte is 0, indicating that the message It is an IP address request message sent by the set-top box; the last 4 bytes are filled with the IP address of the set-top box, so that the server can return a response message according to the IP address of the set-top box.
[0076] Table 1:
[0077] byte meaning 11 bytes String "SERVERFOUND", get server IP address 1 byte 0 client requests 4 bytes Client IP address, network byte order
[0078] Step 202: receiving a r...
Embodiment 2
[0095] On the set-top box side, such as Figure 4 shown, including:
[0096] Step 401: sending an IP address request message;
[0097] Step 402: receiving a response message to the IP address request message returned by more than one server;
[0098] Step 403: Obtain the server IP address from the response message;
[0099] The above steps 401-403 are the same as steps 201-203 in the first embodiment.
[0100] Step 404: When more than two server IP addresses are obtained, select a preferred server IP address from the two or more server IP addresses.
[0101] In a digital home network, in order to improve service quality, there may be more than two servers. If more than two servers have returned response messages to the IP address request message, the set-top box will obtain more than two server IP addresses from the response messages. Because the set-top box can only be connected to one server at a time to obtain services, in order to avoid conflicts in information proces...
Embodiment approach
[0103] The first method is to select a preferred server IP address according to the network segments to which the two or more server IP addresses belong. For example, calculation is performed according to the subnet mask in the IP address to find out the server in the same network segment (that is, local area network) as the set-top box. Since the set-top box and the server are in the same local area network, the service quality of the server will be better. Moreover, in order to ensure that the server still has remaining ports for connection, it is also possible to select the IP address of the server as the preferred server IP address after determining that the number of set-top boxes that can be connected to the server is greater than 0.
[0104] The second is to select the preferred server IP address according to the time when the server returns the response message. Because the IP address request message of the set-top box is sent to multiple servers at the same time, the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 