[go: up one dir, main page]

CN106375839A - Connection establishment method and user terminal - Google Patents

Connection establishment method and user terminal Download PDF

Info

Publication number
CN106375839A
CN106375839A CN201610798957.4A CN201610798957A CN106375839A CN 106375839 A CN106375839 A CN 106375839A CN 201610798957 A CN201610798957 A CN 201610798957A CN 106375839 A CN106375839 A CN 106375839A
Authority
CN
China
Prior art keywords
user terminal
response message
service identifiers
connection
service
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.)
Pending
Application number
CN201610798957.4A
Other languages
Chinese (zh)
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610798957.4A priority Critical patent/CN106375839A/en
Publication of CN106375839A publication Critical patent/CN106375839A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to the technical field of the Internet, and discloses a connection establishment method and a user terminal. The user terminal comprises a sending module used for sending a multicast messages, wherein the multicast message comprises a first IP address and a first port number of the user terminal; a receiving module used for receiving a response message, wherein the response message comprises a second IP address and a second port number of the user terminal; and a processing module used for determining that a connection is established with the other user terminal when the receiving module receives the response message. By adoption of the user terminal provided by the embodiment of the invention, the connection establishment speed between the user terminals can be accelerated.

Description

连接建立方法及用户终端Connection establishment method and user terminal

技术领域technical field

本发明实施例涉及互联网技术领域,特别涉及一种连接建立方法及用户终端。The embodiments of the present invention relate to the technical field of the Internet, and in particular to a method for establishing a connection and a user terminal.

背景技术Background technique

随着移动互联网技术的发展,智能电视取代传统的电视已成为一种趋势。智能电视可以具有操作系统,除了可以具有传统的电视的功能以外,例如通过接入有线电视的信号而实时播放电视节目,还可以安装或卸载应用,从而提供多种多样的服务。另外,智能电视可以与手机等其他智能设备直接通信,例如可以通过手机搜索电视而与电视建立连接。With the development of mobile Internet technology, it has become a trend for smart TVs to replace traditional TVs. A smart TV can have an operating system, in addition to the functions of a traditional TV, such as real-time broadcasting of TV programs through access to cable TV signals, and the ability to install or uninstall applications, thereby providing a variety of services. In addition, a smart TV can directly communicate with other smart devices such as a mobile phone, for example, a mobile phone can search for a TV to establish a connection with the TV.

目前,手机和电视的连接过程具体包括:第一步,手机发送组播消息。第二步,电视收到该组播消息后进行响应,其中响应的内容中包括设备的IP(Internet Protocol,互联网协议)地址以及端口号。第三步,手机收到响应以后与电视建立HTTP(Hyper TextTransport Protocol,超文本传输协议)连接,并从电视获得相应的信息,例如设备名以及服务ID(Identify,身份标识)等。第四步:手机向电视注册服务,待注册成功后,电视向手机返回注册ID,从而完成整个连接创建过程。其中,服务ID与注册ID一一对应。At present, the connection process between the mobile phone and the TV specifically includes: first step, the mobile phone sends a multicast message. In the second step, the TV responds after receiving the multicast message, wherein the content of the response includes the IP (Internet Protocol, Internet Protocol) address and port number of the device. In the third step, the mobile phone establishes an HTTP (Hyper TextTransport Protocol, hypertext transfer protocol) connection with the TV after receiving the response, and obtains corresponding information from the TV, such as a device name and a service ID (Identify, identification). Step 4: The mobile phone registers the service with the TV. After the registration is successful, the TV returns the registration ID to the mobile phone, thus completing the entire connection creation process. Wherein, there is a one-to-one correspondence between the service ID and the registration ID.

本申请的发明人在实践中发现,由于HTTP是建立在TCP(Transmission ControlProtocol,传输控制协议)之上的,因此在现有的手机和智能电视的连接过程中,上述手机和智能电视之间需要建立TCP连接,因此使得手机与智能电视之间需要不断地相互确认信息,从而使得连接建立时间过长,特别是在网络环境不好的情况下,可能会长时间无法建立连接。另外,在现有中,服务注册也是集成在连接创建过程中,因此会进一步拖长连接建立的完成时间。The inventors of the present application have found in practice that since HTTP is based on TCP (Transmission Control Protocol, Transmission Control Protocol), during the connection process between the existing mobile phone and the smart TV, there needs to be a connection between the above-mentioned mobile phone and the smart TV. To establish a TCP connection, the mobile phone and the smart TV need to constantly confirm information with each other, which makes the connection establishment time too long, especially in the case of a bad network environment, the connection may not be established for a long time. In addition, in the existing system, service registration is also integrated in the connection creation process, so it will further prolong the completion time of connection establishment.

发明内容Contents of the invention

本发明的目的在于提供一种连接建立方法及用户终端,能够提高用户终端之间的连接建立速度。The purpose of the present invention is to provide a method for establishing a connection and a user terminal, which can increase the speed of establishing a connection between user terminals.

为解决上述技术问题,本发明的实施例提供了一种用户终端,包含:发送模块,用于发送组播消息,所述组播消息中包括:本用户终端的第一IP地址和第一端口号;接收模块,用于接收响应消息,所述响应消息中包括:另一用户终端的第二IP地址和第二端口号;以及处理模块,用于当所述接收模块接收到所述响应消息时,确定与所述另一用户终端建立起了连接。In order to solve the above technical problems, an embodiment of the present invention provides a user terminal, including: a sending module, configured to send a multicast message, and the multicast message includes: the first IP address and the first port of the user terminal number; a receiving module, configured to receive a response message, including: a second IP address and a second port number of another user terminal; and a processing module, configured to receive the response message when the receiving module receives the response message , it is determined that a connection has been established with the other user terminal.

本发明的实施例还提供了一种用户终端,包含:接收模块,用于接收组播消息,所述组播消息中包括:另一用户终端的第一IP地址和第一端口号;发送模块,用于根据所述组播消息,向所述另一用户终端返回响应消息,所述响应消息中包括:本用户终端的第二IP地址和第二端口号;处理模块,用于当所述发送模块向所述另一用户终端返回了所述响应消息时,确定与所述另一用户终端建立起了连接。The embodiment of the present invention also provides a user terminal, including: a receiving module, configured to receive a multicast message, and the multicast message includes: a first IP address and a first port number of another user terminal; a sending module , for returning a response message to the other user terminal according to the multicast message, where the response message includes: a second IP address and a second port number of the user terminal; a processing module, configured to when the When the sending module returns the response message to the other user terminal, it determines that a connection is established with the other user terminal.

本发明的实施例还提供了一种连接建立方法,用于第一用户终端,包含:发送组播消息,所述组播消息中包括:所述第一用户终端的第一IP地址和第一端口号;接收响应消息,所述响应消息中包括:所述第二用户终端的第二IP地址和第二端口号;以及当接收到所述响应消息时,确定与所述第二用户终端建立起了连接。The embodiment of the present invention also provides a method for establishing a connection for a first user terminal, including: sending a multicast message, and the multicast message includes: the first IP address and the first IP address of the first user terminal Port number; receive a response message, the response message includes: the second IP address and the second port number of the second user terminal; and when receiving the response message, determine to establish the connection with the second user terminal connected.

本发明的实施例还提供了一种连接建立方法,用于第二用户终端,包含:接收组播消息,所述组播消息中包括:第一用户终端的第一IP地址和第一端口号;根据所述组播消息,向所述第一用户终端返回响应消息,所述响应消息中包括:所述第二用户终端的第二IP地址和第二端口号;以及当向所述第一用户终端返回了所述响应消息时,确定与所述第一用户终端建立起了连接。Embodiments of the present invention also provide a connection establishment method for a second user terminal, including: receiving a multicast message, the multicast message including: a first IP address and a first port number of the first user terminal ; According to the multicast message, return a response message to the first user terminal, the response message includes: the second IP address and the second port number of the second user terminal; When the user terminal returns the response message, it is determined that a connection has been established with the first user terminal.

本发明实施例相对于现有技术而言,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接,而无需后续的HTTP创建和服务注册。也就是说,在本发明实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。Compared with the prior art, the embodiment of the present invention, when two user terminals (such as mobile phones and smart TVs) exchange each other's IP addresses and port numbers through multicast messages and response messages, the two user terminals are confirmed to be The endpoint establishes the connection without subsequent HTTP creation and service registration. That is to say, in the connection establishment process of the embodiment of the present invention, such as the existing HTTP creation process and service registration process are not included, thereby simplifying the connection establishment process of the embodiment of the present invention, thereby speeding up the The connection establishment speed between user terminals.

另外,所述响应消息中还包括:本用户终端的服务标识;本用户终端中的处理模块,用于在确认与所述另一用户终端建立起了连接之后,接受所述另一用户终端的服务注册请求,所述服务注册请求包括所述服务标识;本用户终端中的缓存模块,用于在所述处理模块确认与所述另一用户终端建立起了连接之前,缓存所述服务标识对应的服务管理文件。本实施例,由于在用户终端之间建立起了连接之前,就已缓存服务管理文件,因此在建立了连接之后,若接收到了服务注册请求,则可以立即响应该服务注册请求,从而加快服务注册速度。In addition, the response message also includes: the service identifier of the user terminal; the processing module in the user terminal is configured to accept the service ID of the other user terminal after confirming that a connection has been established with the other user terminal. A service registration request, the service registration request including the service identifier; a caching module in the user terminal, configured to cache the corresponding service identifier before the processing module confirms that a connection has been established with the other user terminal. service management file. In this embodiment, since the service management file is cached before the connection is established between the user terminals, after the connection is established, if a service registration request is received, the service registration request can be responded immediately, thereby speeding up the service registration speed.

附图说明Description of drawings

图1是根据本发明的第一实施例的连接建立方法的流程示意图;FIG. 1 is a schematic flowchart of a method for establishing a connection according to a first embodiment of the present invention;

图2是根据本发明的第二实施例的连接建立方法的流程示意图;FIG. 2 is a schematic flowchart of a method for establishing a connection according to a second embodiment of the present invention;

图3是根据本发明的第三实施例的连接建立方法的流程示意图;FIG. 3 is a schematic flowchart of a method for establishing a connection according to a third embodiment of the present invention;

图4是根据本发明的第四实施例的连接建立方法的流程示意图;FIG. 4 is a schematic flowchart of a method for establishing a connection according to a fourth embodiment of the present invention;

图5是根据本发明的第五实施例的用户终端的结构示意图;FIG. 5 is a schematic structural diagram of a user terminal according to a fifth embodiment of the present invention;

图6是根据本发明的第六实施例的用户终端的结构示意图;FIG. 6 is a schematic structural diagram of a user terminal according to a sixth embodiment of the present invention;

图7是根据本发明的第七实施例的用户终端的结构示意图;FIG. 7 is a schematic structural diagram of a user terminal according to a seventh embodiment of the present invention;

图8是根据本发明的第八实施例的用户终端的结构示意图;FIG. 8 is a schematic structural diagram of a user terminal according to an eighth embodiment of the present invention;

图9是根据本发明的第九实施例的连接建立系统的结构示意图。Fig. 9 is a schematic structural diagram of a connection establishment system according to a ninth embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请各权利要求所要求保护的技术方案。In order to make the object, technical solution and advantages of the present invention clearer, various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art can understand that in each embodiment of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solution claimed in each claim of the present application can be realized.

现有中,手机和智能电视的连接建立过程包括:HTTP连接的建立和服务的注册。而HTTP是基于TCP(TCP为现有的一种安全可靠的连接建立方式,其通过连接建立双方多次的握手(确认)操作来保证传递的信息的准确性)的,因此HTTP连接的建立需要手机与智能电视之间进行多次握手操作,因此HTTP的创建会使得现有的连接建立过程变慢。另外,连接建立过程中一般注册完所有的服务,但是这些注册的服务中,可能大部分都不会实际使用,因此将服务的注册涵盖在连接建立过程中,会使得连接建立过程中存在冗余的步骤,并且也会进一步使得连接建立过程变慢。针对此,本发明提供了如下实施例以改善现有技术的缺陷。Currently, the process of establishing a connection between a mobile phone and a smart TV includes: establishing an HTTP connection and registering a service. And HTTP is based on TCP (TCP is an existing safe and reliable connection establishment method, which ensures the accuracy of the transmitted information through multiple handshake (confirmation) operations between the two sides of the connection establishment), so the establishment of HTTP connection needs There are multiple handshake operations between the mobile phone and the smart TV, so the creation of HTTP will slow down the existing connection establishment process. In addition, all services are generally registered during the connection establishment process, but most of these registered services may not be actually used, so including service registration in the connection establishment process will make the connection establishment process redundant steps, and will further slow down the connection establishment process. In view of this, the present invention provides the following embodiments to improve the defects of the prior art.

本发明的第一实施例涉及一种连接建立方法,其具体流程如图1所示。该连接建立方法可以用于手机等用户终端。其中,该连接建立方法包括如下步骤:The first embodiment of the present invention relates to a method for establishing a connection, and its specific process is shown in FIG. 1 . The method for establishing a connection can be used in user terminals such as mobile phones. Wherein, the connection establishment method includes the following steps:

步骤102:发送组播消息,其中组播消息中包括:第一用户终端的第一IP地址和第一端口号。Step 102: Send a multicast message, where the multicast message includes: a first IP address and a first port number of the first user terminal.

其中,此步骤中的第一用户终端为本发明实施例的连接建立方法的执行主体。Wherein, the first user terminal in this step is the execution subject of the method for establishing a connection in the embodiment of the present invention.

另外,此步骤中的组播消息可以为UDP(User Datagram Protocol,用户数据报协议)组播消息。In addition, the multicast message in this step may be a UDP (User Datagram Protocol, User Datagram Protocol) multicast message.

步骤104:接收响应消息,其中响应消息中包括:第二用户终端的第二IP地址和第二端口号。Step 104: Receive a response message, where the response message includes: a second IP address and a second port number of the second user terminal.

其中,此步骤中的第二用户终端例如可以是智能手视。Wherein, the second user terminal in this step may be, for example, a smart hand vision.

步骤106:当步骤104接收到响应消息时,确定第一用户终端与第二用户终端建立起了连接。Step 106: When a response message is received in step 104, it is determined that a connection has been established between the first user terminal and the second user terminal.

本实施例中,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接。也就是说,在本实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。In this embodiment, when two user terminals (such as a mobile phone and a smart TV) exchange each other's IP addresses and port numbers through multicast messages and response messages, it is confirmed that the two user terminals have established a connection. That is to say, the connection establishment process in this embodiment does not include the existing HTTP creation process and service registration process, thereby simplifying the connection establishment process in the embodiment of the present invention, thereby speeding up the process in the embodiment of the present invention The connection establishment speed between user terminals.

本发明的第二实施例也涉及一种连接建立方法,其具体流程如图2所示。The second embodiment of the present invention also relates to a method for establishing a connection, and its specific process is shown in FIG. 2 .

步骤202中,发送组播消息,其中组播消息中包括:第一用户终端的第一IP地址和第一端口号。In step 202, a multicast message is sent, wherein the multicast message includes: a first IP address and a first port number of the first user terminal.

在步骤204中,接收响应消息,其中响应消息中包括:第二用户终端的第二IP地址和第二端口号,以及第二用户终端的服务标识。In step 204, a response message is received, wherein the response message includes: a second IP address and a second port number of the second user terminal, and a service identifier of the second user terminal.

具体地说,接收的响应消息中不仅包括:第二用户终端的第二IP地址和第二端口号,而且还包括:第二用户终端的服务标识,用于标识第二用户终端的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识,分别用于标识连接管理服务、传输管理服务和控制管理服务。除此之外,该响应消息中还可以包括:设备名、版本号,等等。Specifically, the received response message not only includes: the second IP address and the second port number of the second user terminal, but also includes: the service identifier of the second user terminal, which is used to identify the service of the second user terminal. Wherein, these service identifiers may include but not limited to: connection management service identifiers, transmission management service identifiers, and control management service identifiers, which are respectively used to identify connection management services, transmission management services, and control management services. In addition, the response message may also include: device name, version number, and so on.

在步骤206中,当步骤204接收到响应消息时,确定第一用户终端与第二用户终端建立起了连接。In step 206, when a response message is received in step 204, it is determined that a connection has been established between the first user terminal and the second user terminal.

在现有的方式中,服务注册嵌入在连接建立过程中(即作为连接建立过程不可分割的一部分,若不能成功注册服务,则连接建立失败),并且一次注册完所有的服务。但是,此种方式一方面这会使得连接建立速度变慢,另一方面在实际中并不是注册的所有服务都会在后续被使用,因此存在冗余。而在本实施例中,在连接建立过程中,并不进行实际的服务注册,而仅在用户终端之间传递服务ID(即指示可提供哪些服务),从而可以简化连接建立过程,以加快连接建立速度。另外,在本发明实施例中,在用户终端之间建立起了连接之后,可以根据用户的需求来注册服务,即按需注册服务。例如,用户需要在手机和智能电视之间传输文件时,则可注册传输管理服务。In the existing method, service registration is embedded in the connection establishment process (that is, as an integral part of the connection establishment process, if the service cannot be successfully registered, the connection establishment fails), and all services are registered once. However, on the one hand, this method will slow down the establishment of the connection. On the other hand, not all registered services will be used later in practice, so there is redundancy. In this embodiment, in the connection establishment process, no actual service registration is performed, but only the service ID (that is, indicating which services can be provided) is passed between the user terminals, thereby simplifying the connection establishment process and speeding up the connection process. Build speed. In addition, in the embodiment of the present invention, after the connection is established between the user terminals, the service can be registered according to the user's requirement, that is, the service can be registered on demand. For example, when users need to transfer files between mobile phones and smart TVs, they can register for transfer management services.

以上两个实施例,主要从手机作为用户终端的视角说明了连接建立方法的过程。下面从智能电视作为用户终端的视角继续对本发明实施例的连接建立方法进行说明。The above two embodiments mainly illustrate the process of the connection establishment method from the perspective of the mobile phone as the user terminal. The method for establishing a connection in the embodiment of the present invention will be described below from the perspective of a smart TV as a user terminal.

本发明的第三实施例涉及一种连接建立方法,其具体流程如图3所示。该连接建立方法可以应用于可作为智能电视的用户终端。其具体包括如下步骤:The third embodiment of the present invention relates to a method for establishing a connection, and its specific process is shown in FIG. 3 . The method for establishing a connection can be applied to a user terminal that can be used as a smart TV. It specifically includes the following steps:

步骤302:接收组播消息,其中组播消息中包括:第一用户终端的第一IP地址和第一端口号。Step 302: Receive a multicast message, where the multicast message includes: a first IP address and a first port number of the first user terminal.

其中,在此步骤中,第一用户终端可以为手机。Wherein, in this step, the first user terminal may be a mobile phone.

另外,在步骤中,接收的组播消息例如可以是UDP组播消息。In addition, in the step, the received multicast message may be, for example, a UDP multicast message.

步骤304:根据组播消息,向第一用户终端返回响应消息,其中响应消息中包括:第二用户终端的第二IP地址和第二端口号。Step 304: According to the multicast message, return a response message to the first user terminal, wherein the response message includes: a second IP address and a second port number of the second user terminal.

步骤306:当步骤304向第一用户终端返回了响应消息时,确定与第一用户终端建立起了连接。Step 306: When a response message is returned to the first user terminal in step 304, it is determined that a connection is established with the first user terminal.

其中,此步骤中的第二用户终端例如可以是用于执行本实施例的连接建立方法的智能电视。Wherein, the second user terminal in this step may be, for example, a smart TV for performing the method for establishing a connection in this embodiment.

在本实施例中,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接。也就是说,在本实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。In this embodiment, when two user terminals (such as a mobile phone and a smart TV) exchange each other's IP addresses and port numbers through multicast messages and response messages, it is confirmed that the two user terminals have established a connection. That is to say, the connection establishment process in this embodiment does not include the existing HTTP creation process and service registration process, thereby simplifying the connection establishment process in the embodiment of the present invention, thereby speeding up the process in the embodiment of the present invention The connection establishment speed between user terminals.

本发明的第四实施例也涉及一种连接建立方法,其具体流程如图4所示。The fourth embodiment of the present invention also relates to a method for establishing a connection, and its specific process is shown in FIG. 4 .

在步骤402中,接收组播消息,其中组播消息中包括:第一用户终端的第一IP地址和第一端口号。In step 402, a multicast message is received, wherein the multicast message includes: a first IP address and a first port number of a first user terminal.

在步骤404中,根据组播消息,向第一用户终端返回响应消息,其中响应消息中包括:第二用户终端的第二IP地址和第二端口号,以及第二用户终端的服务标识。也就是说,在步骤404中,向第一用户终端返回的响应消息中不仅包括:第二用户终端的第二IP地址和第二端口号,而且还包括:第二用户终端的服务标识,用于标识第二用户终端的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识,分别用于标识连接管理服务、传输管理服务和控制管理服务。除此之外,该响应消息中还可以包括:设备名、版本号,等等。In step 404, a response message is returned to the first user terminal according to the multicast message, wherein the response message includes: a second IP address and a second port number of the second user terminal, and a service identifier of the second user terminal. That is to say, in step 404, the response message returned to the first user terminal not only includes: the second IP address and the second port number of the second user terminal, but also includes: the service identifier of the second user terminal, used for identifying the service of the second user terminal. Wherein, these service identifiers may include but not limited to: connection management service identifiers, transmission management service identifiers, and control management service identifiers, which are respectively used to identify connection management services, transmission management services, and control management services. In addition, the response message may also include: device name, version number, and so on.

在步骤406中,当步骤404向第一用户终端返回了响应消息时,确定与第一用户终端建立起了连接。In step 406, when a response message is returned to the first user terminal in step 404, it is determined that a connection is established with the first user terminal.

在本实施例中,在连接建立过程中,并不进行实际的服务注册,而仅在用户终端之间传递服务ID(即指示可提供哪些服务),从而可以简化连接建立过程,以加快连接建立速度。另外,在本发明实施例中,在用户终端之间建立起了连接之后,可以根据用户的需求来注册服务,即按需注册服务。In this embodiment, during the connection establishment process, the actual service registration is not performed, but only the service ID (that is, indicating which services can be provided) is passed between the user terminals, so that the connection establishment process can be simplified and the connection establishment can be accelerated speed. In addition, in the embodiment of the present invention, after the connection is established between the user terminals, the service can be registered according to the user's requirement, that is, the service can be registered on demand.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包含相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The division of steps in the above methods is only for the sake of clarity of description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they contain the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明第五实施例涉及一种用户终端,其具体结构如图5所示。该用户终端可以是手机、平板电脑、可穿戴式设备等。其中,该用户终端500包括:The fifth embodiment of the present invention relates to a user terminal, the specific structure of which is shown in FIG. 5 . The user terminal may be a mobile phone, a tablet computer, a wearable device, and the like. Wherein, the user terminal 500 includes:

发送模块502,用于发送组播消息,其中组播消息中包括:该用户终端500的第一IP地址和第一端口号。The sending module 502 is configured to send a multicast message, wherein the multicast message includes: the first IP address and the first port number of the user terminal 500 .

另外,发送模块502所发送的组播消息例如可以为UDP组播消息。In addition, the multicast message sent by the sending module 502 may be, for example, a UDP multicast message.

接收模块504,用于接收响应消息,其中响应消息中包括:另一用户终端的第二IP地址和第二端口号。The receiving module 504 is configured to receive a response message, where the response message includes: a second IP address and a second port number of another user terminal.

处理模块506,用于当接收模块504接收到响应消息时,确定与另一用户终端建立起了连接。The processing module 506 is configured to determine that a connection has been established with another user terminal when the receiving module 504 receives the response message.

其中,该另一用户终端例如可以是智能电视,并且该另一用户终端为接收到上述组播消息并对该组播消息进行响应的用户终端。Wherein, the other user terminal may be, for example, a smart TV, and the other user terminal is a user terminal that receives the above-mentioned multicast message and responds to the multicast message.

本实施例中,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接。也就是说,在本实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。In this embodiment, when two user terminals (such as a mobile phone and a smart TV) exchange each other's IP addresses and port numbers through multicast messages and response messages, it is confirmed that the two user terminals have established a connection. That is to say, the connection establishment process in this embodiment does not include the existing HTTP creation process and service registration process, thereby simplifying the connection establishment process in the embodiment of the present invention, thereby speeding up the process in the embodiment of the present invention The connection establishment speed between user terminals.

不难发现,本实施例为与第一实施例相对应的系统实施例,本实施例可与第一实施例互相配合实施。第一实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and will not be repeated here to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.

在该用户终端500的另一实施例中,接收模块504接收的响应消息中不仅包括:另一用户终端的第二IP地址和第二端口号,而且还包括:另一用户终端的服务标识,用于标识另一用户终端的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识,分别用于标识连接管理服务、传输管理服务和控制管理服务。除此之外,该响应消息中还可以包括:设备名、版本号,等等。In another embodiment of the user terminal 500, the response message received by the receiving module 504 not only includes: the second IP address and the second port number of another user terminal, but also includes: the service identifier of another user terminal, A service used to identify another user terminal. Wherein, these service identifiers may include but not limited to: connection management service identifiers, transmission management service identifiers, and control management service identifiers, which are respectively used to identify connection management services, transmission management services, and control management services. In addition, the response message may also include: device name, version number, and so on.

此实施例中,在连接建立过程中,并不进行实际的服务注册,而仅在用户终端之间传递服务ID(即指示可提供哪些服务),从而可以简化连接建立过程,以加快连接建立速度。另外,在本发明实施例中,在用户终端之间建立起了连接之后,可以根据用户的需求来注册服务,即按需注册服务。In this embodiment, in the connection establishment process, the actual service registration is not performed, but only the service ID (that is, indicating which services can be provided) is passed between the user terminals, so that the connection establishment process can be simplified to speed up the connection establishment speed . In addition, in the embodiment of the present invention, after the connection is established between the user terminals, the service can be registered according to the user's requirement, that is, the service can be registered on demand.

本发明第六实施例也涉及一种用户终端500,其具体结构如图6所示。图6的实施例与图5的实施例大致相同,主要区别在于:接收模块502所接收到的响应消息中还包括:至少一个服务标识,用于标识另一用户终端所提供的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识,分别用于标识连接管理服务、传输管理服务和控制管理服务。除此之外,在图6的实施例中还包括:注册模块508,用于根据至少一个服务标识中被选择的服务标识(例如用户选择的服务标识),来向另一用户终端注册服务。其中,注册服务的过程可以包括:首先,接收用户选择的服务标识,应注意用户可能并非直接选择服务标识,用户一般是直接选择需要的服务,由该选择的用户可以确定对应的服务标识。接着,向另一用户终端发送服务注册请求,其中服务注册请求中包括:被选择的服务标识(即服务ID)、该另一用户终端的IP地址和端口号。最后,接收该另一用户终端返回的服务注册成功消息,该服务注册成功消息中包括:注册ID、本用户终端的IP地址和端口号。其中,注册ID与服务ID一一对应。The sixth embodiment of the present invention also relates to a user terminal 500, the specific structure of which is shown in FIG. 6 . The embodiment in FIG. 6 is substantially the same as the embodiment in FIG. 5 , the main difference is that: the response message received by the receiving module 502 also includes: at least one service identifier, used to identify a service provided by another user terminal. Wherein, these service identifiers may include but not limited to: connection management service identifiers, transmission management service identifiers, and control management service identifiers, which are respectively used to identify connection management services, transmission management services, and control management services. In addition, the embodiment in FIG. 6 also includes: a registration module 508, configured to register a service with another user terminal according to the selected service identifier (for example, the service identifier selected by the user) in at least one service identifier. Wherein, the process of registering the service may include: firstly, receiving the service ID selected by the user. It should be noted that the user may not directly select the service ID, but generally the user directly selects the required service, and the selected user can determine the corresponding service ID. Next, a service registration request is sent to another user terminal, wherein the service registration request includes: the selected service identifier (ie, service ID), the IP address and port number of the other user terminal. Finally, the service registration success message returned by the other user terminal is received, and the service registration success message includes: registration ID, IP address and port number of the user terminal. Wherein, there is a one-to-one correspondence between the registration ID and the service ID.

本实施例,将服务注册放置在建立起了连接之后,一方面可以简化连接建立过程,以加快连接建立速度。另一方面,可以按需注册服务,从而避免注册了一些不必要的服务。In this embodiment, the service registration is placed after the connection is established. On the one hand, the connection establishment process can be simplified, so as to speed up the connection establishment speed. On the other hand, services can be registered on demand, thereby avoiding registration of some unnecessary services.

以上两实施例,主要从用户终端500作为手机的视角说明了其结构。下面从用户终端作为智能电视的视角继续对本发明实施例所涉及的用户终端进行说明。The above two embodiments mainly illustrate the structure from the perspective of the user terminal 500 as a mobile phone. The user terminal involved in the embodiment of the present invention will be described below from the perspective of the user terminal as a smart TV.

本发明的第七实施例涉及一种用户终端,其具体结构如图7所示。该用户终端700可以为智能电视,其具体包括:The seventh embodiment of the present invention relates to a user terminal, the specific structure of which is shown in FIG. 7 . The user terminal 700 may be a smart TV, which specifically includes:

接收模块702,用于接收组播消息,其中组播消息中包括:另一用户终端的第一IP地址和第一端口号。The receiving module 702 is configured to receive a multicast message, where the multicast message includes: a first IP address and a first port number of another user terminal.

其中,该另一用户终端可以为手机,并且该组播消息为该另一用户终端所发。Wherein, the other user terminal may be a mobile phone, and the multicast message is sent by the other user terminal.

另外,接收模块702所接收的组播消息例如可以是UDP组播消息。In addition, the multicast message received by the receiving module 702 may be, for example, a UDP multicast message.

发送模块704,用于根据组播消息,向另一用户终端返回响应消息,其中响应消息中包括:用户终端700的第二IP地址和第二端口号。The sending module 704 is configured to return a response message to another user terminal according to the multicast message, wherein the response message includes: the second IP address and the second port number of the user terminal 700 .

处理模块706,用于当发送模块704向另一用户终端返回了响应消息时,确定与另一用户终端建立起了连接。The processing module 706 is configured to determine that a connection is established with another user terminal when the sending module 704 returns a response message to the other user terminal.

在本实施例中,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接。也就是说,在本实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。In this embodiment, when two user terminals (such as a mobile phone and a smart TV) exchange each other's IP addresses and port numbers through multicast messages and response messages, it is confirmed that the two user terminals have established a connection. That is to say, the connection establishment process in this embodiment does not include the existing HTTP creation process and service registration process, thereby simplifying the connection establishment process in the embodiment of the present invention, thereby speeding up the process in the embodiment of the present invention The connection establishment speed between user terminals.

不难发现,本实施例为与第三实施例相对应的系统实施例,本实施例可与第三实施例互相配合实施。第三实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第三实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the third embodiment, and this embodiment can be implemented in cooperation with the third embodiment. The relevant technical details mentioned in the third embodiment are still valid in this embodiment, and will not be repeated here in order to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the third embodiment.

在用户终端700的另一实施例中,其向另一用户终端返回的响应消息中不仅包括:用户终端700的第二IP地址和第二端口号,而且还包括:用户终端700的服务标识,用于标识用户终端700的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识,分别用于标识连接管理服务、传输管理服务和控制管理服务。除此之外,该响应消息中还可以包括:设备名、版本号,等等。In another embodiment of the user terminal 700, the response message returned to another user terminal not only includes: the second IP address and the second port number of the user terminal 700, but also includes: the service identifier of the user terminal 700, A service for identifying the user terminal 700 . Wherein, these service identifiers may include but not limited to: connection management service identifiers, transmission management service identifiers, and control management service identifiers, which are respectively used to identify connection management services, transmission management services, and control management services. In addition, the response message may also include: device name, version number, and so on.

此实施例中,在连接建立过程中,并不进行实际的服务注册,而仅在用户终端之间传递服务ID(即指示可提供哪些服务),从而可以简化连接建立过程,以加快连接建立速度。In this embodiment, in the connection establishment process, the actual service registration is not performed, but only the service ID (that is, indicating which services can be provided) is passed between the user terminals, so that the connection establishment process can be simplified to speed up the connection establishment speed .

本发明第八实施例也涉及一种用户终端700,其具体结构如图8所示。图8的实施例与图7的实施例大致相同,主要区别在于:发送模块704向另一用户终端返回的响应消息中不仅包括:用户终端700的第二IP地址和第二端口号,而且还包括:用户终端700的服务标识,用于标识用户终端700的服务。其中,这些服务标识可以包括但不限于:连接管理服务标识、传输管理服务标识和控制管理服务标识。除此之外,处理模块706,还可以用于在确定用户终端700与另一用户终端之间建立起了连接之后,接受另一用户终端的服务注册请求,其中该服务请求中包括:服务标识(即服务ID)。其中,接受服务注册请求的过程大致可以包括:接收服务注册请求,其中包括:服务标识。接着,注册该服务标识对应的服务;最后,返回注册成功的消息给另一用户终端,其中,该注册成功的消息中包括:注册ID,其与服务ID一一对应。需要说明的是,上述的服务注册过程主要是将服务标识对应的服务管理文件加载至缓存,因此该用户终端700还可以包括:缓存模块708,用于在上述的连接建立起之前,就预先预先缓存所有的服务管理文件,例如在开机时就缓存所的服务管理文件,这样用户终端700在接收到服务注册请求之后,可以直接返回注册ID,以表示注册成功,从而加快服务注册速度。The eighth embodiment of the present invention also relates to a user terminal 700, the specific structure of which is shown in FIG. 8 . The embodiment in FIG. 8 is substantially the same as the embodiment in FIG. 7 , the main difference is that: the response message returned by the sending module 704 to another user terminal not only includes: the second IP address and the second port number of the user terminal 700, but also Including: the service identifier of the user terminal 700, used to identify the service of the user terminal 700. Wherein, these service identifiers may include but not limited to: connection management service identifier, transmission management service identifier and control management service identifier. In addition, the processing module 706 may also be configured to accept a service registration request from another user terminal after determining that a connection has been established between the user terminal 700 and another user terminal, wherein the service request includes: a service identifier (i.e. Service ID). Wherein, the process of accepting the service registration request may generally include: receiving the service registration request, which includes: a service identifier. Next, register the service corresponding to the service identifier; finally, return a message of successful registration to another user terminal, wherein the message of successful registration includes: a registration ID, which corresponds to a service ID one by one. It should be noted that the above-mentioned service registration process is mainly to load the service management file corresponding to the service identifier into the cache, so the user terminal 700 may also include: a cache module 708, which is used to pre-register All service management files are cached, for example, all service management files are cached when booting, so that after receiving the service registration request, the user terminal 700 can directly return the registration ID to indicate that the registration is successful, thereby speeding up the service registration speed.

其中,缓存模块708预先缓存的服务管理文件包括但不限于:连接管理服务文件、传输管理服务文件以及控制管理服务文件。其中,连接管理服务文件包括获取协议信息(getprotocolinfo)、获取当前ID(getcurrenID)之类的命令;传输管理服务文件包括设置统一资源定位符(setURL)、播放、信止之类的命令;控制管理服务文件包括音量增大命令、音量减少命令、亮度增加命令、亮度减小命令等之类的命令。Wherein, the service management files pre-cached by the caching module 708 include but are not limited to: connection management service files, transmission management service files, and control management service files. Among them, the connection management service file includes commands such as obtaining protocol information (getprotocolinfo) and obtaining current ID (getcurrenID); the transmission management service file includes commands such as setting uniform resource locator (setURL), playing, and stopping messages; The service file includes commands such as volume up command, volume down command, brightness up command, brightness down command, and the like.

本实施例中,预先将服务管理文件读入缓存,因此在用户终端接收到注册请求后,可以直接返回注册ID,从而可以提高用户终端700在服务注册过程中的响应速度。In this embodiment, the service management file is read into the cache in advance, so after the user terminal receives the registration request, it can directly return the registration ID, thereby improving the response speed of the user terminal 700 during the service registration process.

不难发现,本实施例为与第四实施例相对应的系统实施例,本实施例可与第四实施例互相配合实施。第四实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第四实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the fourth embodiment, and this embodiment can be implemented in cooperation with the fourth embodiment. The relevant technical details mentioned in the fourth embodiment are still valid in this embodiment, and will not be repeated here in order to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the fourth embodiment.

值得一提的是,第五至第八实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,第五至第八实施例中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明第五至第八实施例不存在其它的单元。It is worth mentioning that all the modules involved in the fifth to eighth embodiments are logical modules. In practical applications, a logical unit can be a physical unit, or a part of a physical unit, or Realized as a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, the fifth to eighth embodiments did not introduce units that are not closely related to solving the technical problems raised by the present invention, but this does not mean that the fifth to eighth embodiments No other units exist.

本发明的第九实施例涉及一种连接建立系统900,其结构如图9所示。该连接建立系统包括:用户终端902和用户终端904。其中,用户终端902可以为智能手机、平板电脑、个人数字助理、可穿戴式设备等等,而用户终端904可以是智能手视。如图9所示,该用户终端902包括:显示屏9022、处理器9024、通信组件9026和存储器9028。其中显示屏9022例如可以为触控屏,其不仅具有显示功能还有接收用户的输入控制的功能。其中处理器9024为终端的核心,其可以由CPU等实现。其中通信组件9026用于实现用户终端902的无线或有线通信功能,从而使得终端能够与服务器或者其他用户终端交互。其中,存储器9028用于存储处理器9024可执行的程序代码或者其他信息。如图9所示,该用户终端904可以包括:显示屏9042、处理器9044、收发器9046和存储器9048,其中显示屏9042主要用于显示用户终端904中播放的内容,而处理器9044用于播放视频和音频等,而收器9046用于与其他设备的信息交互,而存储器9048用于存储相关信息,其可以包括缓存。The ninth embodiment of the present invention relates to a connection establishment system 900, the structure of which is shown in FIG. 9 . The connection establishment system includes: a user terminal 902 and a user terminal 904 . Wherein, the user terminal 902 may be a smart phone, a tablet computer, a personal digital assistant, a wearable device, etc., and the user terminal 904 may be a smart phone. As shown in FIG. 9 , the user terminal 902 includes: a display screen 9022 , a processor 9024 , a communication component 9026 and a memory 9028 . The display screen 9022 may be, for example, a touch screen, which not only has a display function but also a function of receiving user input and control. The processor 9024 is the core of the terminal, which may be implemented by a CPU or the like. The communication component 9026 is used to realize the wireless or wired communication function of the user terminal 902, so that the terminal can interact with the server or other user terminals. Wherein, the memory 9028 is used for storing program codes executable by the processor 9024 or other information. As shown in FIG. 9, the user terminal 904 may include: a display screen 9042, a processor 9044, a transceiver 9046, and a memory 9048, wherein the display screen 9042 is mainly used for displaying content played in the user terminal 904, and the processor 9044 is used for Play video and audio, etc., while the receiver 9046 is used for information interaction with other devices, and the memory 9048 is used to store related information, which may include a cache.

在本实施例中,当用户终端902需要接入用户终端904以对其进行操作(如控制)时,该用户终端902中的处理器9024可以通过通信组件9026广播UDP组播消息,该UDP组播消息中可以携带用户终端902的IP地址和端口号。而用户终端904的收发器9046接收到该UDP组播消息后,由处理器9044解析该组播消息,得到该用户终端902的IP地址和端口号。接着,处理器9044通过收发器9046向用户终端902返回响应消息,该响应消息中携带该用户终端904的IP地址和端口号。然后,用户终端902的通信组件9026接收该响应消息,并由处理器9024解析该响应消息从而得到用户终端904的IP地址和端口号,从而实现了在用户终端902和用户终端904之间的连接建立。In this embodiment, when the user terminal 902 needs to access the user terminal 904 to operate (such as control), the processor 9024 in the user terminal 902 can broadcast a UDP multicast message through the communication component 9026, the UDP group The IP address and port number of the user terminal 902 may be carried in the broadcast message. After the transceiver 9046 of the user terminal 904 receives the UDP multicast message, the processor 9044 parses the multicast message to obtain the IP address and port number of the user terminal 902 . Next, the processor 9044 returns a response message to the user terminal 902 through the transceiver 9046, and the response message carries the IP address and port number of the user terminal 904. Then, the communication component 9026 of the user terminal 902 receives the response message, and the processor 9024 parses the response message to obtain the IP address and port number of the user terminal 904, thereby realizing the connection between the user terminal 902 and the user terminal 904 Establish.

在本实施例中,当两个用户终端(如手机和智能电视)之间通过组播消息和响应消息来交互彼此的IP地址和端口号后,即确认该两个用户终端建立起了连接。也就是说,在本实施例的连接建立过程中,并不包含诸如现有的HTTP创建过程和服务注册过程,从而简化了本发明实施例的连接建立过程,进而加快了本发明实施例中的用户终端之间的连接建立速度。In this embodiment, when two user terminals (such as a mobile phone and a smart TV) exchange each other's IP addresses and port numbers through multicast messages and response messages, it is confirmed that the two user terminals have established a connection. That is to say, the connection establishment process in this embodiment does not include the existing HTTP creation process and service registration process, thereby simplifying the connection establishment process in the embodiment of the present invention, thereby speeding up the process in the embodiment of the present invention The connection establishment speed between user terminals.

本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through computer programs, and the programs can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (10)

1. a kind of user terminal is it is characterised in that include:
Sending module, for sending multicast message, described multicast message includes: an ip address of this user terminal and first Port numbers;
Receiver module, for receiving response message, described response message includes: the 2nd ip address of another user terminal and Two-port netwerk number;
Processing module, for when described receiver module receives described response message, determining and building with described another user terminal Erect connection.
2. user terminal according to claim 1 is it is characterised in that also include in described response message: described another use The service identifiers of family terminal, described service identifiers include following at least one: connection management service identifiers, transfer management service mark Know and control management service identifiers.
3. user terminal according to claim 1 is it is characterised in that also include: Registering modules;
Also include in described response message: at least one service identifiers, for identifying the clothes that described another user terminal is provided Business;
Described Registering modules, after establishing with described another user terminal and be connected in the determination of described processing module, root According to service identifiers selected in service identifiers at least one described, to described another user terminal registration service.
4. a kind of user terminal is it is characterised in that comprise:
Receiver module, for receiving multicast message, described multicast message includes: an ip address of another user terminal and One end slogan;
Sending module, for according to described multicast message, returning response message, described response message to described another user terminal Include: the 2nd ip address of this user terminal and second port number;
Processing module, for when described sending module returns described response message to described another user terminal, determine with Described another user terminal establishes connection.
5. user terminal according to claim 4 is it is characterised in that also include in described response message: this user terminal Service identifiers, and described service identifiers include following at least one: connection management service identifiers, transfer management service identifiers and Control management service identifiers.
6. user terminal according to claim 4 is it is characterised in that also include: cache module;
Also include in described response message: the service identifiers of this user terminal;
Described processing module, after establishing with described another user terminal and be connected in confirmation, accepts described another use The service registration request of family terminal, described service registration request includes: described service identifiers;
Described cache module, before establishing with described another user terminal and be connected in the determination of described processing module, in advance First cache described service identifiers corresponding Service Management file.
7. a kind of connection establishment method, for first user terminal it is characterised in that comprising:
Send multicast message, described multicast message includes: an ip address of described first user terminal and first end slogan;
Receive response message, described response message includes: the 2nd ip address of second user terminal and second port number;And
When receiving described response message, determination is established with described second user terminal and is connected.
8. connection establishment method according to claim 7 is it is characterised in that also include in described response message: described The service identifiers of two user terminals, described service identifiers include following at least one: connection management service identifiers, transfer management clothes Business mark and control management service identifiers.
9. a kind of connection establishment method, for second user terminal it is characterised in that comprising:
Receiving multicast message, described multicast message includes: an ip address of first user terminal and first end slogan;
According to described multicast message, return response message to described first user terminal, described response message includes: described the 2nd ip address of two user terminals and second port number;And
When returning described response message to described first user terminal, determine and establish even with described first user terminal Connect.
10. connection establishment method according to claim 9 is it is characterised in that also include in described response message: described The service identifiers of two user terminals, described service identifiers include following at least one: connection management service identifiers, transfer management clothes Business mark and control management service identifiers.
CN201610798957.4A 2016-08-31 2016-08-31 Connection establishment method and user terminal Pending CN106375839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610798957.4A CN106375839A (en) 2016-08-31 2016-08-31 Connection establishment method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610798957.4A CN106375839A (en) 2016-08-31 2016-08-31 Connection establishment method and user terminal

Publications (1)

Publication Number Publication Date
CN106375839A true CN106375839A (en) 2017-02-01

Family

ID=57900292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610798957.4A Pending CN106375839A (en) 2016-08-31 2016-08-31 Connection establishment method and user terminal

Country Status (1)

Country Link
CN (1) CN106375839A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801711A (en) * 2006-01-18 2006-07-12 杭州华为三康技术有限公司 Multicast group member identification method and apparatus
CN101242306A (en) * 2008-02-28 2008-08-13 华为技术有限公司 Method, system, device and server for realizing automatic discovery of network devices
US20120102535A1 (en) * 2006-12-06 2012-04-26 Verizon Services Corp. Content storage and delivery system and associated method and device
CN103442451A (en) * 2013-08-21 2013-12-11 乐视致新电子科技(天津)有限公司 Data wireless transmission method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801711A (en) * 2006-01-18 2006-07-12 杭州华为三康技术有限公司 Multicast group member identification method and apparatus
US20120102535A1 (en) * 2006-12-06 2012-04-26 Verizon Services Corp. Content storage and delivery system and associated method and device
CN101242306A (en) * 2008-02-28 2008-08-13 华为技术有限公司 Method, system, device and server for realizing automatic discovery of network devices
CN103442451A (en) * 2013-08-21 2013-12-11 乐视致新电子科技(天津)有限公司 Data wireless transmission method, device and system

Similar Documents

Publication Publication Date Title
US9749143B2 (en) Web real-time communication call transferring method and apparatus
US9917889B2 (en) Enterprise service bus routing system
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
CN103702238B (en) A kind of multi-screen video sharing method and terminal, server
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
JP6093482B2 (en) Method and apparatus for displaying search results on portable terminal
US20130346591A1 (en) Clientless Cloud Computing
EP3179693B1 (en) Method, apparatus, storage medium and computer program product for establishing a data connection
US9065788B2 (en) Method, device and system for voice communication
WO2017107542A1 (en) Video program obtaining method, device and system
CN102904903B (en) Communication system and communication means
CN111414208A (en) Application program starting method, device and equipment
CN105337961A (en) Method for communication with client side and server
CN113366815B (en) Network resource request method, apparatus, electronic device, and storage medium
CN111212156B (en) A kind of network connection method and device
WO2014172893A1 (en) Method and apparatus for controlling sending of heartbeat signal
CN111615694B (en) Method for selecting server node and terminal equipment
KR20130036838A (en) System and method for providng personal cloud service
CN103618967A (en) Method and device for interaction of mobile terminal and television end
KR20130084462A (en) Apparatas and method for managing service of providing server in a terminal
CN106411978A (en) Resource caching method and apparatus
CN113157365A (en) Program running method and device, electronic equipment and computer readable medium
CN113347234A (en) Network information acquisition method, device, system, computer equipment and storage medium
WO2018132557A1 (en) Dynamic protocol switching
US20240396795A1 (en) Bundling services provided by edge application servers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170201

WD01 Invention patent application deemed withdrawn after publication