WO2012129868A1 - Method and apparatus for controlling terminal communication, and management server - Google Patents

Method and apparatus for controlling terminal communication, and management server Download PDF

Info

Publication number
WO2012129868A1
WO2012129868A1 PCT/CN2011/077504 CN2011077504W WO2012129868A1 WO 2012129868 A1 WO2012129868 A1 WO 2012129868A1 CN 2011077504 W CN2011077504 W CN 2011077504W WO 2012129868 A1 WO2012129868 A1 WO 2012129868A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
terminal
application
server
address
Prior art date
Application number
PCT/CN2011/077504
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 海尔集团公司
Publication of WO2012129868A1 publication Critical patent/WO2012129868A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4541Directories for service discovery

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for controlling communication of a terminal, and a management server. Background technique
  • H does not have one TV installed with application A, application B, application C, and application D
  • application A corresponds to service ⁇
  • application B corresponds to service ⁇
  • application C corresponds to service C
  • application D corresponds
  • the application A sends a request message to the network
  • the server authenticates the television, determines whether the television terminal can use the application A, and if the television terminal passes the authentication, allows The application A of the television terminal acquires the service information of the service A.
  • the application A will also send the request to the server, and the server determines that the television terminal is allowed to use the service, and the service information of the service A is sent to the application A.
  • the application B When the user wants to use the service, the application B sends a request message to the network, and the server authenticates the television. If the television terminal passes the authentication, the application B of the television terminal is allowed to obtain the service information of the service B. Similarly, if the user wants to use Service C, Service D, the server needs to authenticate the TV terminal according to the request sent by the corresponding application.
  • the present invention provides a terminal communication control method and apparatus, and a management server, which can avoid the problem that the application of the network terminal in the related art and the network communication are performed in a large number of times, and the complexity of the application is managed on the server side. Multiple executions of the authentication process reduce the complexity of managing the application by the server.
  • a control method of terminal communication is provided.
  • the method includes: the server engine of the terminal receives the service request message initiated by the application of the terminal, and sends the service request message to the management server; the server engine receives the feedback information returned by the management server, where the feedback information includes all services that the terminal can use. And the address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service; the server engine saves the feedback information, and sends the address information of the service corresponding to the service request message To the application, and after the application of the terminal initiates another service request message, the address information of the service corresponding to the other service request is returned to the application according to the saved feedback information.
  • the service request message includes the identifier of the terminal and the service identifier
  • the method further includes: the management server performs authentication according to the terminal identifier terminal, and determines all the terminals can use.
  • the management server obtains the identifier and address information of all services that the terminal can use, and sends the obtained identifier and address information to the server engine through the feedback information.
  • the management server obtains address information of all services that the terminal can use: for each service that the terminal can use, the management server acquires an address of the at least one application server corresponding to the service according to the load of the application server corresponding to the service. Address information for the business.
  • the method further includes: the server engine sends an address update request message to the management server, and the management server sends the address information of all services that the terminal can use to the server engine by using an address update message; the server engine saves the address update message as feedback information, And replace the feedback information that has been saved before.
  • the method further includes: the application accessing the corresponding service server according to the address information returned by the server engine, and acquiring the service information of the service.
  • control device for terminal communication the device being provided on the terminal side.
  • the apparatus may include: a receiving module, configured to receive an application initiated service request message of the terminal, and configured to receive feedback information returned by the management server in response to the service request message, where the feedback information includes all the terminals that can be used by the terminal.
  • the identifier of the service and the address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service; and the sending module is configured to send the received service request message to the management server; a storage module, configured to store feedback information received by the receiving module, and a processing module, configured to send address information of a service corresponding to the service request message included in the feedback information returned by the management server to the application, and then launch the other service by the application of the terminal In the case of the request message, the address information of the service corresponding to the other service request is returned to the application according to the feedback information saved by the storage module.
  • the sending module in the device may be further configured to send an address update request message to the management server if the validity period of the feedback information saved by the storage module ends; and the receiving module is further configured to receive, by the receiving management server, the message in response to the address update request message.
  • the address update message wherein the address update message includes address information of all services that the terminal can use; the storage module is further configured to save the address update message as feedback information, and replace the previously saved feedback information.
  • a management server is also provided.
  • the management server includes: a receiving module, configured to receive a service request message initiated by an application of the terminal, where the service request message includes an identifier of the terminal; an authentication module, configured to perform authentication according to the terminal identifier terminal; and a determining module, configured to be in the terminal In the case of authentication, all services that the terminal can use are determined; an acquisition module is used to acquire the standard of all services that the terminal can use. And the address information; the sending module is configured to send the obtained identifier and address information to the server engine through the feedback information.
  • the receiving module is further configured to receive an address update request message from the terminal.
  • the obtaining module is further configured to: obtain, according to the address update request message, the address information of all services that the terminal can use, and send the information to the terminal by using the address update message by the sending module.
  • the acquiring module is specifically configured to obtain, according to a load of the application server corresponding to the service, an address of the at least one application server corresponding to the service, as the address information of the service, for each service that can be used by the terminal.
  • the server engine on the terminal side can know all the services that the terminal can use. After the application of the terminal requests to use a certain service, the server does not need to be authenticated by the management server.
  • the content saved by the server engine (including all the services that the terminal can use and the corresponding address information) can determine whether the terminal is allowed to use the service, and notify the application of the address information of the service if it is determined to be permitted to use, thereby It effectively avoids the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server and reduce the complexity of managing multiple applications.
  • FIG. 1 is a flowchart of a method of controlling terminal communication according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing an example of processing of a method of controlling communication of a terminal according to an embodiment of the present invention
  • FIG. 3 is a block diagram of a control device for terminal communication according to an embodiment of the present invention.
  • FIG. 4 is a block diagram of a management server in accordance with an embodiment of the present invention. detailed description
  • a control method of terminal communication is provided.
  • a control method for communication of a terminal for example, a television
  • a terminal for example, a television
  • a control method for communication of a terminal includes:
  • Step S101 The server engine of the terminal receives a service request message initiated by the application of the terminal, And sending a service request message to the management server;
  • Step S103 The server engine receives the feedback information returned by the management server, where the feedback information includes an identifier of all services that the terminal can use and address information corresponding to each service, and the address information of each service is used to store the service corresponding to the service.
  • the address of the application server of the business information includes an identifier of all services that the terminal can use and address information corresponding to each service, and the address information of each service is used to store the service corresponding to the service.
  • Step S105 the server engine saves the feedback information, sends the address information of the service corresponding to the service request message to the application, and if the application of the terminal initiates another service request message (regardless of what application is initiated), if the application For the application corresponding to the service that can be used by the terminal, the terminal can return the address information of the service corresponding to the service request to the application according to the saved feedback information.
  • the server engine on the terminal side can know all the services that the terminal can use. After the application of the terminal requests to use a certain service, it is not necessary to perform authentication through the management server.
  • the content saved by the server engine (including all the services that the terminal can use and the corresponding address information) can determine whether the terminal is allowed to use the service, and notify the application of the address information of the service if it is determined to be permitted to use, thereby It effectively avoids the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server and reduce the complexity of managing multiple applications.
  • H does not have application A, application B, application C, and application D installed.
  • Application A corresponds to service ⁇
  • application B corresponds to service ⁇
  • application C corresponds to service C
  • application D corresponds to service D.
  • the server engine sends a cover request message to the management server; if the management server knows that the service available to the terminal is service A, service B, service C, and service D, the service A will be , the service B, the service C, and the service D, the corresponding address information is returned to the server engine through the feedback message, the server engine saves the feedback message, and returns the address information of the service A and the corresponding application server to the application A, so that The application A obtains the service information of the service A according to the address information.
  • the server engine saves the feedback information
  • the saved feedback message includes the address information of the service corresponding to the application A, the application B, the application C, and the application D
  • the application A, the application B, the application C, and the application D Which service sent the service request message
  • the server engine can be based on the saved
  • the address information is provided to the application that sent the request without communicating with the management server, and the management server is not required for authentication and address acquisition. If the application E is installed on the terminal and the corresponding service is not enabled, the server engine cannot provide corresponding service information for the application E.
  • the service request message may include the identifier of the terminal and the service identifier, and after the server engine sends the service request message to the management server, the management server performs authentication according to the terminal identifier terminal, and determines all the terminals can use. Specifically, the terminal may determine whether the terminal is legal, and determine all the services that the terminal can use when it is determined to be legal; after that, the management server obtains the identifier and address information of all services that the terminal can use, and passes the feedback information. Send the obtained identification and address information to the server engine.
  • the management server When the management server obtains the address information of all the services that the terminal can use, for each service that the terminal can use, the management server can acquire the at least one application server corresponding to the service according to the load of the application server corresponding to the service.
  • the address is the address information of the service.
  • the management server determines that the terminal can use the service port, the service A, the corresponding application server (also referred to as a service server) includes a first server and a second server, and the management server can determine the first server and The load of the second server, if the load of the first server is lower than the second server, the address information of the first server is used as the address information of the service A, and is sent to the server engine through the feedback information.
  • the address information of the two servers may be fed back to the server engine.
  • the server engine needs to provide address information to the corresponding application A of the service A, the address may be randomly selected. Select an address information as the address information of the service A.
  • the server engine saves the feedback information
  • the server engine sends an address update request message to the management server, and the management server sends the address information of all services that the terminal can use to the address update message to the address update message.
  • Server engine the server engine saves the address update message as feedback information and replaces it before Feedback information saved.
  • dynamic address acquisition and distribution can avoid the problem of unbalanced application server load, improve the efficiency of service processing, and optimize network load sharing.
  • the validity period of the above feedback information can be flexibly set according to requirements, for example, one hour, two hours, 30 minutes, and the like can be selected.
  • the server engine may send an address update request message to update address information of all available services saved by the server engine. .
  • each server engine After each server engine sends the address information of the service corresponding to the service request message to an application, the application can access the corresponding service server according to the address information returned by the server engine and obtain the service information of the service. For example, if the service is a weather service, the weather application initiates a request and communicates with the weather service server based on the address information returned by the server engine to obtain weather information.
  • the processing procedure is as follows:
  • the management server manages the request. Specifically, the management server can authenticate the TV first (whether it is a TV produced by its own manufacturer), and then authorize the function. If the authorization succeeds, the application server address list (all network applications available for the TV)
  • the service address for example, weather application, news application, stock application, etc.
  • the specific information of the weather is obtained through the service address, and the service address points to the application service platform, for example, temperature, wind direction, etc., and the data is stored in the application service platform.
  • the terminal is allowed to use the service according to the content saved by the server engine (including all the services that the terminal can use and the corresponding address information), and notify the address information of the service to the user if it is determined that the use is permitted.
  • the application effectively avoids the need to use the network for each business initiated, and requires the management server to authenticate and The problem of judgment can effectively reduce the network burden, and can also reduce the load of the management server and reduce the complexity of managing multiple applications.
  • the address information can be realized by periodically or under certain conditions to update the content saved by the server engine. Dynamic distribution helps to rationally utilize network resources and balance network load.
  • the terminal software will communicate directly with the server, and a lot of code needs to be added to the terminal software. For example, when the terminal is authenticated, applied, and managed, different platforms need to rewrite this code. Ensuring the uniformity of the code will increase the amount of work required to develop and write the code.
  • the server engine is introduced in the present invention, most communication with the server is performed by the server engine. Therefore, it is not necessary to set different codes for different applications, and the server engine of the related function can be embedded for different platforms, thereby further improving the terminal. The efficiency of using different applications; in addition, the client's server engine can be upgraded separately to extend its functionality.
  • a control device for terminal communication which is provided on a terminal side, and the control device for communication of the terminal can be considered equivalent to the server engine.
  • the control device for terminal communication includes: a receiving module 31, configured to receive a service request message initiated by an application of the terminal, and configured to receive feedback information returned by the management server in response to the service request message.
  • the feedback information includes an identifier of all the services that the terminal can use and address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service;
  • the storage module 33 is connected to the receiving module 31 and the sending module 32, and is configured to store feedback information of the receiving module receiving 31;
  • the processing module 34 is connected to the receiving module 31 and the sending module 32, and is configured to send the address information of the service corresponding to the service request message included in the feedback information returned by the management server to the application, and then the application of the terminal initiates another service request message. In the case, the address information of the service corresponding to the other service request is returned to the application according to the feedback information saved by the storage module 33.
  • the sending module 32 of the device may be further configured to send an address update request message to the management server if the validity period of the feedback information saved by the storage module ends;
  • the receiving module 31 is further configured to receive an address update message returned by the management server in response to the address update request message, where the address update message includes address information of all services that the terminal can use;
  • the storage module 32 is further configured to save the address update message as feedback information and replace the feedback information that has been previously saved.
  • the feedback information returned by the management server includes the address information of the service requested this time, and also includes the address information of other services that the terminal can use, and the processing module 34
  • the address information of the service of the current request included in the feedback information received by the receiving module 31 may be directly sent to the application; the feedback information may be saved first by the storage module 33, and the service requested this time may be saved in the saved feedback information.
  • the address information is sent to the corresponding application, at which point the processing module 34 can be further connected to the storage module.
  • a management server is also provided.
  • the management server includes:
  • the receiving module 41 is configured to receive a service request message initiated by the application of the terminal, where the service request message includes an identifier of the terminal;
  • the authentication module 42 is connected to the receiving module 41 for performing authentication according to the terminal identification terminal, and the determining module 43 is connected to the authentication module 42 for determining all services that the terminal can use when the terminal passes the authentication;
  • the obtaining module 44 is connected to the determining module 43 for acquiring identifier and address information of all services that the terminal can use;
  • the sending module 45 is connected to the obtaining module 44, and is configured to send the acquired identifier and address information to the server engine through the feedback information.
  • the receiving module 41 is further configured to receive an address update request message from the terminal, and the obtaining module 44 is further configured to: obtain, according to the address update request message, address information of all services that the terminal can use, and send, by the sending module 45, an address update message. Send to the terminal.
  • the obtaining module 44 is specifically configured to use, for each service that can be used by the terminal, according to the corresponding For the load of the application server of the service, the address of the at least one application server corresponding to the service is obtained as the address information of the service (preferably, the obtaining module may acquire only the address of one application server as the address information of the service).
  • the management server By cooperating with the device by the foregoing management server, it is also possible to determine whether to allow the terminal to use the service according to the saved content (including all services that the terminal can use and the corresponding address information), and to determine the permission to use the service.
  • the address information is notified to the application, thereby effectively avoiding the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server, and reduce the load on the management server.
  • the complexity of the application management In addition, by periodically or under certain conditions to update the content saved by the server engine, dynamic distribution of address information can be realized, which helps to rationally utilize network resources and balance network load.
  • the present invention it is possible to determine whether to allow the terminal to use the service according to the content saved by the server engine (including all the services that the terminal can use and the corresponding address information), and determine the permitted use.
  • the address information of the service is notified to the application, thereby effectively avoiding the problem that the network needs to be authenticated and judged by the management server for each service initiated, which can effectively reduce the network load and also reduce the management server.
  • the load reduces the complexity of managing multiple applications.
  • dynamic distribution of address information can be realized, which helps to rationally utilize network resources and balance network load.

Abstract

Disclosed are a method and an apparatus for controlling terminal communication, and a management server; the method comprises: the server engine of a terminal receives a service request message initiated by an application of the terminal and sends the service request message to a management server; the server engine receives feedback information returned by the management server, the feedback information contains the identifiers of all the services that can be used by the terminal and the address information corresponding to each service, moreover, the address information of each service is the application server address of each service storing the corresponding service information; the server engine saves the feedback information, sending the address information of the service corresponding to the service request message to the application, and, when the application of the terminal subsequently initiates other service request messages, returning the address information of the service corresponding to the other service request to the application according to the saved feedback information.

Description

终端通信的控制方法和装置、 以及管理服务器 技术领域  Control method and device for terminal communication, and management server
本发明涉及通信领域, 并且特别地, 涉及一种终端通信的控制方法和 装置、 以及管理服务器。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for controlling communication of a terminal, and a management server. Background technique
随着互联网的发展, 很多设备在完成其基本功能的基础上, 都能够进 一步和网络进行通信, 从而进一步提高设备的性能, 加强对设备的管理, 并使得设备的功能更加丰富和完善。  With the development of the Internet, many devices can further communicate with the network on the basis of completing their basic functions, thereby further improving the performance of the device, strengthening the management of the device, and making the device more rich and complete.
例如, 目前的很多电视都能够在播放电视节目的基础之上和网络进行 通信。 随着业务类型的不断丰富, 为了使网络电视能够正常使用这些业务, 网络电视机内置的应用类型也越来越多, 功能也越来越复杂, 每个网络功 能单独连接后台服务器, 使得后台服务器对网络应用的管理非常复杂, 需 要针对每个应用单独管理。 具体地, H没一台电视机安装了应用 A、 应用 B、 应用 C和应用 D, 应用 A对应于业务 Α, , 应用 B对应于业务 Β, , 应用 C对应于业务 C, , 应用 D对应于业务 D, , 如果用户希望使用业务 Α, , 应用 A会向网络发送请求消息, 服务器会对电视机进行认证, 判断 该电视机终端是否能够使用应用 A, 如果电视机终端通过认证, 则允许该 电视机终端的应用 A获取业务 A, 的业务信息。 之后, 如果用户还希望使 用业务 Α, , 则应用 A还会将请求发送至服务器, 服务器确定允许该电视 机终端使用业务 Α, , 会将业务 A, 的业务信息发送给应用 A。  For example, many current televisions are able to communicate with the network on the basis of playing television programs. With the continuous enrichment of business types, in order to enable network TVs to use these services normally, there are more and more types of applications built into network TVs, and functions are becoming more and more complex. Each network function is separately connected to the background server, making the background server The management of web applications is very complex and needs to be managed separately for each application. Specifically, H does not have one TV installed with application A, application B, application C, and application D, application A corresponds to service Α, application B corresponds to service Β, application C corresponds to service C, and application D corresponds In service D, if the user wants to use the service, the application A sends a request message to the network, the server authenticates the television, determines whether the television terminal can use the application A, and if the television terminal passes the authentication, allows The application A of the television terminal acquires the service information of the service A. After that, if the user also wants to use the service, the application A will also send the request to the server, and the server determines that the television terminal is allowed to use the service, and the service information of the service A is sent to the application A.
而当如果用户希望使用业务 Β, , 应用 B会向网络发送请求消息, 服 务器会对电视机进行认证, 如果电视机终端通过认证, 则允许该电视机终 端的应用 B获取业务 B, 的业务信息, 类似地, 如果用户希望使用业务 C, 业务 D, , 服务器都需要根据相应应用发出的请求对电视机终端进行认证。  When the user wants to use the service, the application B sends a request message to the network, and the server authenticates the television. If the television terminal passes the authentication, the application B of the television terminal is allowed to obtain the service information of the service B. Similarly, if the user wants to use Service C, Service D, the server needs to authenticate the TV terminal according to the request sent by the corresponding application.
当电视机终端的内置应用数量很多时, 认证的次数也会非常多, 占用 较多网络资源, 并且会导致服务器处理负担增加, 会增加服务器对应用进 行管理的复杂度。 When the number of built-in applications of the TV terminal is large, the number of authentications will be very large, occupying more network resources, and causing an increase in the processing load of the server, which will increase the server application. The complexity of line management.
针对相关技术中网络终端的应用与网络通信时认证处理执行次数多、 服务器侧对应用进行管理的复杂度高的问题, 目前尚未提出有效的解决方 案。 发明内容  In view of the high complexity of the application process of the network terminal in the related art and the network communication, and the complexity of the application management on the server side, an effective solution has not been proposed yet. Summary of the invention
针对相关技术中网络终端的应用与网络通信时认证处理执行次数多、 服务器侧对应用进行管理的复杂度高的问题, 本发明提出一种终端通信的 控制方法和装置、 以及管理服务器, 能够避免认证过程的多次执行, 降低 服务器对应用进行管理的复杂度。  The present invention provides a terminal communication control method and apparatus, and a management server, which can avoid the problem that the application of the network terminal in the related art and the network communication are performed in a large number of times, and the complexity of the application is managed on the server side. Multiple executions of the authentication process reduce the complexity of managing the application by the server.
本发明的技术方案是这样实现的:  The technical solution of the present invention is implemented as follows:
根据本发明的一个方面, 提供了一种终端通信的控制方法。  According to an aspect of the present invention, a control method of terminal communication is provided.
该方法包括: 终端的服务器引擎接收终端的应用发起的业务请求消息, 并将业务请求消息发送至管理服务器; 服务器引擎接收管理服务器返回的 反馈信息, 其中, 反馈信息中包含终端能够使用的所有业务的标识以及每 个业务对应的地址信息, 并且, 每个业务的地址信息为存储该业务对应的 业务信息的应用服务器的地址; 服务器引擎保存反馈信息, 将业务请求消 息所对应业务的地址信息发送给应用, 并且在之后终端的应用发起其他业 务请求消息的情况下, 根据保存的反馈信息将与该其他业务请求对应的业 务的地址信息返回给该应用。  The method includes: the server engine of the terminal receives the service request message initiated by the application of the terminal, and sends the service request message to the management server; the server engine receives the feedback information returned by the management server, where the feedback information includes all services that the terminal can use. And the address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service; the server engine saves the feedback information, and sends the address information of the service corresponding to the service request message To the application, and after the application of the terminal initiates another service request message, the address information of the service corresponding to the other service request is returned to the application according to the saved feedback information.
其中, 业务请求消息中包含终端的标识以及业务标识, 并且, 在服务 器引擎将业务请求消息发送至管理服务器之后, 该方法进一步包括: 管理 服务器根据终端标识终端进行认证, 并确定终端能够使用的所有业务; 管 理服务器获取终端能够使用的所有业务的标识和地址信息, 并通过反馈信 息将获取的标识和地址信息发送给服务器引擎。  The service request message includes the identifier of the terminal and the service identifier, and after the server engine sends the service request message to the management server, the method further includes: the management server performs authentication according to the terminal identifier terminal, and determines all the terminals can use. The management server obtains the identifier and address information of all services that the terminal can use, and sends the obtained identifier and address information to the server engine through the feedback information.
管理服务器获取终端能够使用的所有业务的地址信息包括: 对于终端 能够使用的每个业务,管理服务器根据对应于该业务的应用服务器的负载, 获取对应于该业务的至少一个应用服务器的地址作为该业务的地址信息。  The management server obtains address information of all services that the terminal can use: for each service that the terminal can use, the management server acquires an address of the at least one application server corresponding to the service according to the load of the application server corresponding to the service. Address information for the business.
在服务器引擎保存反馈信息之后,如果保存的反馈信息的有效期结束, 则该方法进一步包括:服务器引擎将地址更新请求消息发送至管理服务器, 管理服务器将终端能够使用的所有业务的地址信息通过地址更新消息发送 给服务器引擎; 服务器引擎将地址更新消息作为反馈信息保存, 并替代之 前已经保存的反馈信息。 After the server engine saves the feedback information, if the validity period of the saved feedback information ends, The method further includes: the server engine sends an address update request message to the management server, and the management server sends the address information of all services that the terminal can use to the server engine by using an address update message; the server engine saves the address update message as feedback information, And replace the feedback information that has been saved before.
其中, 将业务请求消息所对应业务的地址信息发送给应用之后, 该方 法进一步包括: 应用根据服务器引擎返回的地址信息访问对应的业务服务 器并获取该业务的业务信息。  After the address information of the service corresponding to the service request message is sent to the application, the method further includes: the application accessing the corresponding service server according to the address information returned by the server engine, and acquiring the service information of the service.
根据本发明的另一方面, 还提供了一种终端通信的控制装置, 该装置 设置于终端侧。  According to another aspect of the present invention, there is also provided a control device for terminal communication, the device being provided on the terminal side.
具体地, 该装置可以包括: 接收模块, 用于接收终端的应用发起的业 务请求消息, 并且用于接收管理服务器响应于业务请求消息返回的反馈信 息, 其中, 反馈信息中包含终端能够使用的所有业务的标识以及每个业务 对应的地址信息, 并且, 每个业务的地址信息为存储该业务对应的业务信 息的应用服务器的地址; 发送模块, 用于将接收的业务请求消息发送至管 理服务器; 存储模块, 用于存储接收模块接收的反馈信息; 处理模块, 用 于将管理服务器返回的反馈信息中包含的业务请求消息所对应业务的地址 信息发送给应用,并且在之后终端的应用发起其他业务请求消息的情况下, 根据存储模块保存的反馈信息将与该其他业务请求对应的业务的地址信息 返回给该应用。  Specifically, the apparatus may include: a receiving module, configured to receive an application initiated service request message of the terminal, and configured to receive feedback information returned by the management server in response to the service request message, where the feedback information includes all the terminals that can be used by the terminal. The identifier of the service and the address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service; and the sending module is configured to send the received service request message to the management server; a storage module, configured to store feedback information received by the receiving module, and a processing module, configured to send address information of a service corresponding to the service request message included in the feedback information returned by the management server to the application, and then launch the other service by the application of the terminal In the case of the request message, the address information of the service corresponding to the other service request is returned to the application according to the feedback information saved by the storage module.
该装置中的发送模块还可用于在存储模块保存的反馈信息的有效期结 束的情况下, 将地址更新请求消息发送至管理服务器; 并且, 接收模块还 用于接收管理服务器响应于地址更新请求消息返回的地址更新消息,其中, 地址更新消息包含终端能够使用的所有业务的地址信息; 存储模块还用于 将地址更新消息作为反馈信息保存, 并替代之前已经保存的反馈信息。  The sending module in the device may be further configured to send an address update request message to the management server if the validity period of the feedback information saved by the storage module ends; and the receiving module is further configured to receive, by the receiving management server, the message in response to the address update request message. The address update message, wherein the address update message includes address information of all services that the terminal can use; the storage module is further configured to save the address update message as feedback information, and replace the previously saved feedback information.
根据本发明的在于方面, 还提供了一种管理服务器。  According to an aspect of the invention, a management server is also provided.
该管理服务器包括: 接收模块, 用于接收终端的应用发起的业务请求 消息, 其中, 业务请求消息中包含终端的标识; 认证模块, 用于根据终端 标识终端进行认证; 确定模块, 用于在终端通过认证的情况下, 确定终端 能够使用的所有业务; 获取模块, 用于获取终端能够使用的所有业务的标 识和地址信息; 发送模块, 用于通过反馈信息将获取的标识和地址信息发 送给服务器引擎。 The management server includes: a receiving module, configured to receive a service request message initiated by an application of the terminal, where the service request message includes an identifier of the terminal; an authentication module, configured to perform authentication according to the terminal identifier terminal; and a determining module, configured to be in the terminal In the case of authentication, all services that the terminal can use are determined; an acquisition module is used to acquire the standard of all services that the terminal can use. And the address information; the sending module is configured to send the obtained identifier and address information to the server engine through the feedback information.
其中, 接收模块还用于接收来自终端的地址更新请求消息; 获取模块 还用于响应于地址更新请求消息, 获取终端能够使用的所有业务的地址信 息, 由发送模块通过地址更新消息发送给终端。  The receiving module is further configured to receive an address update request message from the terminal. The obtaining module is further configured to: obtain, according to the address update request message, the address information of all services that the terminal can use, and send the information to the terminal by using the address update message by the sending module.
并且, 获取模块具体用于对终端能够使用的每个业务, 根据对应于该 业务的应用服务器的负载, 获取对应于该业务的至少一个应用服务器的地 址作为该业务的地址信息。  And the acquiring module is specifically configured to obtain, according to a load of the application server corresponding to the service, an address of the at least one application server corresponding to the service, as the address information of the service, for each service that can be used by the terminal.
通过本发明, 使得在终端进行一次认证后, 终端侧的服务器引擎就能 够获知该终端能够使用的所有业务, 在之后终端的应用请求使用某个业务 时, 就无需通过管理服务器进行认证, 仅根据服务器引擎保存的内容(包 括终端所有能够使用的业务以及对应的地址信息) 就能够确定是否允许该 终端使用该业务, 并且在确定允许使用的情况下将该业务的地址信息通知 给该应用, 从而有效避免了针对每次发起业务均需要借助网络、 并且需要 管理服务器进行认证和判断的问题, 能够有效降低网络负担, 同时也能够 降低管理服务器的负载, 降低对多个应用进行管理的复杂度。 附图说明  With the present invention, after the terminal performs one authentication, the server engine on the terminal side can know all the services that the terminal can use. After the application of the terminal requests to use a certain service, the server does not need to be authenticated by the management server. The content saved by the server engine (including all the services that the terminal can use and the corresponding address information) can determine whether the terminal is allowed to use the service, and notify the application of the address information of the service if it is determined to be permitted to use, thereby It effectively avoids the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server and reduce the complexity of managing multiple applications. DRAWINGS
图 1是根据本发明实施例的终端通信的控制方法的流程图;  1 is a flowchart of a method of controlling terminal communication according to an embodiment of the present invention;
图 2 是根据本发明实施例的终端通信的控制方法的处理实例的流程 图;  2 is a flow chart showing an example of processing of a method of controlling communication of a terminal according to an embodiment of the present invention;
图 3是根据本发明实施例的终端通信的控制装置的框图;  3 is a block diagram of a control device for terminal communication according to an embodiment of the present invention;
图 4是根据本发明实施例的管理服务器的框图。 具体实施方式  4 is a block diagram of a management server in accordance with an embodiment of the present invention. detailed description
根据本发明的实施例, 提供了一种终端通信的控制方法。  According to an embodiment of the present invention, a control method of terminal communication is provided.
如图 1 所示, 根据本发明实施例的终端 (例如, 可以是电视机) 通信 的控制方法包括:  As shown in FIG. 1, a control method for communication of a terminal (for example, a television) according to an embodiment of the present invention includes:
步骤 S101 , 终端的服务器引擎接收终端的应用发起的业务请求消息, 并将业务请求消息发送至管理服务器; Step S101: The server engine of the terminal receives a service request message initiated by the application of the terminal, And sending a service request message to the management server;
步骤 S103 , 服务器引擎接收管理服务器返回的反馈信息, 其中, 反馈 信息中包含终端能够使用的所有业务的标识以及每个业务对应的地址信 息, 并且, 每个业务的地址信息为存储该业务对应的业务信息的应用服务 器的地址;  Step S103: The server engine receives the feedback information returned by the management server, where the feedback information includes an identifier of all services that the terminal can use and address information corresponding to each service, and the address information of each service is used to store the service corresponding to the service. The address of the application server of the business information;
步骤 S105 , 服务器引擎保存反馈信息, 将业务请求消息所对应业务的 地址信息发送给应用,并且在之后该终端的应用发起其他业务请求消息(不 论是什么应用发起的) 的情况下, 如果该应用为该终端能够使用的业务所 对应的应用, 则该终端就能够根据保存的反馈信息将与该业务请求对应的 业务的地址信息返回给该应用。  Step S105, the server engine saves the feedback information, sends the address information of the service corresponding to the service request message to the application, and if the application of the terminal initiates another service request message (regardless of what application is initiated), if the application For the application corresponding to the service that can be used by the terminal, the terminal can return the address information of the service corresponding to the service request to the application according to the saved feedback information.
借助于上述处理, 当终端进行一次认证后, 终端侧的服务器引擎就能 够获知该终端能够使用的所有业务, 在之后终端的应用请求使用某个业务 时, 就无需通过管理服务器进行认证, 仅根据服务器引擎保存的内容(包 括终端所有能够使用的业务以及对应的地址信息) 就能够确定是否允许该 终端使用该业务, 并且在确定允许使用的情况下将该业务的地址信息通知 给该应用, 从而有效避免了针对每次发起业务均需要借助网络、 并且需要 管理服务器进行认证和判断的问题, 能够有效降低网络负担, 同时也能够 降低管理服务器的负载, 降低对多个应用进行管理的复杂度。  With the above processing, after the terminal performs one authentication, the server engine on the terminal side can know all the services that the terminal can use. After the application of the terminal requests to use a certain service, it is not necessary to perform authentication through the management server. The content saved by the server engine (including all the services that the terminal can use and the corresponding address information) can determine whether the terminal is allowed to use the service, and notify the application of the address information of the service if it is determined to be permitted to use, thereby It effectively avoids the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server and reduce the complexity of managing multiple applications.
例如, H没终端安装了应用 A、 应用 B、 应用 C和应用 D, 应用 A对 应于业务 Α, , 应用 B对应于业务 Β, , 应用 C对应于业务 C, , 应用 D 对应于业务 D, , 如果应用 A发出业务请求消息, 服务器引擎会将盖请求 消息发送至管理服务器; 如果管理服务器获知终端可用的业务为业务 A, 、 业务 B, 、 业务 C, 和业务 D, , 会将业务 A, 、 业务 B, 、 业务 C, 和业 务 D, 对应的地址信息通过反馈消息返回给服务器引擎, 服务器引擎会保 存反馈消息, 并将业务 A, 对应的应用服务器的地址信息返回给应用 A, 以便应用 A根据该地址信息获取业务 A, 的业务信息。 并且, 一旦服务器 引擎保存了反馈信息, 由于保存的反馈消息中包含应用 A、应用 B、应用 C 和应用 D所对应业务的地址信息, 所以不论应用 A、 应用 B、 应用 C和应 用 D中的哪个业务发送了业务请求消息, 服务器引擎均能够根据保存的内 容将地址信息提供给发送请求的应用, 而无需与管理服务器进行通信, 也 无需管理服务器进行认证和地址获取。 如果终端上安装了应用 E而没有开 通对应的业务 Ε, , 则服务器引擎将无法为该应用 E提供对应的业务信息。 For example, H does not have application A, application B, application C, and application D installed. Application A corresponds to service Α, application B corresponds to service Β, application C corresponds to service C, and application D corresponds to service D. If the application A sends a service request message, the server engine sends a cover request message to the management server; if the management server knows that the service available to the terminal is service A, service B, service C, and service D, the service A will be , the service B, the service C, and the service D, the corresponding address information is returned to the server engine through the feedback message, the server engine saves the feedback message, and returns the address information of the service A and the corresponding application server to the application A, so that The application A obtains the service information of the service A according to the address information. Moreover, once the server engine saves the feedback information, since the saved feedback message includes the address information of the service corresponding to the application A, the application B, the application C, and the application D, the application A, the application B, the application C, and the application D Which service sent the service request message, the server engine can be based on the saved The address information is provided to the application that sent the request without communicating with the management server, and the management server is not required for authentication and address acquisition. If the application E is installed on the terminal and the corresponding service is not enabled, the server engine cannot provide corresponding service information for the application E.
其中, 在上述业务请求消息中, 可以包含该终端的标识以及业务标识, 并且, 在服务器引擎将业务请求消息发送至管理服务器之后, 管理服务器 根据终端标识终端进行认证, 并确定终端能够使用的所有业务; 具体地, 可以首先确定终端是否合法, 在确定为合法的情况下确定该终端所能够使 用的所有业务; 之后, 管理服务器获取终端能够使用的所有业务的标识和 地址信息, 并通过反馈信息将获取的标识和地址信息发送给服务器引擎。  The service request message may include the identifier of the terminal and the service identifier, and after the server engine sends the service request message to the management server, the management server performs authentication according to the terminal identifier terminal, and determines all the terminals can use. Specifically, the terminal may determine whether the terminal is legal, and determine all the services that the terminal can use when it is determined to be legal; after that, the management server obtains the identifier and address information of all services that the terminal can use, and passes the feedback information. Send the obtained identification and address information to the server engine.
在管理服务器获取终端能够使用的所有业务的地址信息时, 对于终端 能够使用的每个业务, 管理服务器均可以根据对应于该业务的应用服务器 的负载, 获取对应于该业务的至少一个应用服务器的地址作为该业务的地 址信息。  When the management server obtains the address information of all the services that the terminal can use, for each service that the terminal can use, the management server can acquire the at least one application server corresponding to the service according to the load of the application server corresponding to the service. The address is the address information of the service.
也就是说, 假如, 管理服务器确定该终端能够使用业务 Α, , 该业务 A, 对应的应用服务器(也可称为业务服务器)包括第一服务器和第二服务 器, 管理服务器可以判断第一服务器和第二服务器的负载, 如果第一服务 器的负载低于第二服务器, 则将第一服务器的地址信息作为业务 A, 的地 址信息并通过反馈信息发送给服务器引擎。  That is, if the management server determines that the terminal can use the service port, the service A, the corresponding application server (also referred to as a service server) includes a first server and a second server, and the management server can determine the first server and The load of the second server, if the load of the first server is lower than the second server, the address information of the first server is used as the address information of the service A, and is sent to the server engine through the feedback information.
如果第一服务器和第二服务器的负载均非常低, 则可以将这两个服务 器的地址信息均反馈给服务器引擎, 在服务器引擎需要向业务 A, 对应的 应用 A提供地址信息时, 可以从中随机选择一个地址信息作为业务 A, 的 地址信息。  If the load of the first server and the second server are both very low, the address information of the two servers may be fed back to the server engine. When the server engine needs to provide address information to the corresponding application A of the service A, the address may be randomly selected. Select an address information as the address information of the service A.
优选地, 即使目前对应于一个应用的全部应用服务器的负载均比较低, 针对该应用, 管理服务器仅获取对应于该应用 (业务) 的唯——个最优的 应用服务器地址。  Preferably, even if the load of all application servers currently corresponding to one application is relatively low, for which the management server only obtains the only optimal application server address corresponding to the application (service).
并且, 在服务器引擎保存反馈信息之后, 如果保存的反馈信息的有效 期结束, 则服务器引擎将地址更新请求消息发送至管理服务器, 管理服务 器将终端能够使用的所有业务的地址信息通过地址更新消息发送给服务器 引擎; 服务器引擎将地址更新消息作为反馈信息保存, 并替代之前已经保 存的反馈信息。 Moreover, after the server engine saves the feedback information, if the validity period of the saved feedback information ends, the server engine sends an address update request message to the management server, and the management server sends the address information of all services that the terminal can use to the address update message to the address update message. Server engine; the server engine saves the address update message as feedback information and replaces it before Feedback information saved.
这样, 通过动态的地址获取和分发, 能够避免应用服务器负载不均衡 的问题, 提高业务处理的效率, 优化网络负荷分担。  In this way, dynamic address acquisition and distribution can avoid the problem of unbalanced application server load, improve the efficiency of service processing, and optimize network load sharing.
此外, 上述反馈信息的有效期可以根据需求灵活设置, 例如, 可以选 择 1小时、 2小时、 30分钟等。 此外, 当终端安装新业务、 或者卸载某个 旧业务、 或者终端已经安装的某个业务的使用期限结束时, 服务器引擎均 可以发送地址更新请求消息, 以更新服务器引擎保存的所有可用业务的地 址信息。  In addition, the validity period of the above feedback information can be flexibly set according to requirements, for example, one hour, two hours, 30 minutes, and the like can be selected. In addition, when the terminal installs a new service, or uninstalls an old service, or the service life of a service already installed by the terminal ends, the server engine may send an address update request message to update address information of all available services saved by the server engine. .
每一次服务器引擎将一个业务请求消息所对应业务的地址信息发送给 一个应用之后, 该应用就可以根据服务器引擎返回的地址信息访问对应的 业务服务器并获取该业务的业务信息。 例如, 假设业务为天气业务, 则天 气应用会发起请求, 并且根据服务器引擎返回的地址信息与天气业务服务 器通信, 获取天气信息。  After each server engine sends the address information of the service corresponding to the service request message to an application, the application can access the corresponding service server according to the address information returned by the server engine and obtain the service information of the service. For example, if the service is a weather service, the weather application initiates a request and communicates with the weather service server based on the address information returned by the server engine to obtain weather information.
如图 2所示, 假设, 上述终端为电视机, 以天气应用为例, 在用户使 用电视时的处理过程如下:  As shown in FIG. 2, it is assumed that the above terminal is a television set, and the weather application is taken as an example. When the user uses the television, the processing procedure is as follows:
启动电视; 用户可以点击天气图标 (点击启动的网络应用) , 该被启 动的网络应用会向服务器引擎请求; 服务器引擎会将该网络应用的请求发 给管理服务器 (也可称为后台服务器) ; 管理服务器对该请求进行管理, 具体地 ,管理服务器可以先对电视进行认证(是否是自己厂商生产的电视), 再对功能进行授权, 授权成功则将应用服务器地址列表(电视可用的所有 网络应用的服务地址, 例如, 天气应用、 新闻应用、 股票应用等) 等相关 信息发给服务器引擎, 这样, 就能够由服务器引擎将请求的服务地址信息 传给电视应用, 完成网络应用的启动电视端的应用通过服务地址获取天气 的具体信息, 服务地址指向应用服务平台, 例如, 温度、 风向等, 这些数 据都存储在应用服务平台。  Start the TV; the user can click on the weather icon (click on the launched web application), the launched web application will request the server engine; the server engine will send the request of the web application to the management server (also known as the background server); The management server manages the request. Specifically, the management server can authenticate the TV first (whether it is a TV produced by its own manufacturer), and then authorize the function. If the authorization succeeds, the application server address list (all network applications available for the TV) The service address, for example, weather application, news application, stock application, etc., is sent to the server engine, so that the server engine can transmit the requested service address information to the television application, and complete the application of the network application to start the television end. The specific information of the weather is obtained through the service address, and the service address points to the application service platform, for example, temperature, wind direction, etc., and the data is stored in the application service platform.
通过上述处理, 能够根据服务器引擎保存的内容(包括终端所有能够 使用的业务以及对应的地址信息) 确定是否允许该终端使用该业务, 并且 在确定允许使用的情况下将该业务的地址信息通知给该应用, 从而有效避 免了针对每次发起业务均需要借助网络、 并且需要管理服务器进行认证和 判断的问题, 能够有效降低网络负担, 同时也能够降低管理服务器的负载, 降低对多个应用进行管理的复杂度; 此外, 通过定期或在一定条件下更新 服务器引擎保存的内容, 可以实现地址信息的动态分发, 有助于合理利用 网络资源, 均衡网络负载。 Through the above processing, it is possible to determine whether the terminal is allowed to use the service according to the content saved by the server engine (including all the services that the terminal can use and the corresponding address information), and notify the address information of the service to the user if it is determined that the use is permitted. The application effectively avoids the need to use the network for each business initiated, and requires the management server to authenticate and The problem of judgment can effectively reduce the network burden, and can also reduce the load of the management server and reduce the complexity of managing multiple applications. In addition, the address information can be realized by periodically or under certain conditions to update the content saved by the server engine. Dynamic distribution helps to rationally utilize network resources and balance network load.
如果没有客户端应用引擎, 终端软件将直接与服务器通信, 需要对终 端软件增加很多代码, 例如, 在对终端进行认证、 应用管理、 广告管理等 过程时, 不同平台对此代码要重新编写, 不能保证代码的统一性, 会增加 很多代码开发和编写的工作量。 但是在本发明引入服务器引擎后, 与服务 器的多数通信都由服务器引擎完成, 因此, 不需要针对不同的应用设置不 同的代码, 而且针对不同的平台可以嵌入相关功能的服务器引擎, 从而进 一步提高终端使用不同应用的效率; 此外, 可以单独对客户端的服务器引 擎进行升级, 扩展其功能。  If there is no client application engine, the terminal software will communicate directly with the server, and a lot of code needs to be added to the terminal software. For example, when the terminal is authenticated, applied, and managed, different platforms need to rewrite this code. Ensuring the uniformity of the code will increase the amount of work required to develop and write the code. However, after the server engine is introduced in the present invention, most communication with the server is performed by the server engine. Therefore, it is not necessary to set different codes for different applications, and the server engine of the related function can be embedded for different platforms, thereby further improving the terminal. The efficiency of using different applications; in addition, the client's server engine can be upgraded separately to extend its functionality.
根据本发明的实施例, 提供了一种终端通信的控制装置, 设置于终端 侧, 该终端通信的控制装置可以认为等同于上述服务器引擎。  According to an embodiment of the present invention, there is provided a control device for terminal communication, which is provided on a terminal side, and the control device for communication of the terminal can be considered equivalent to the server engine.
如图 3所示, 根据本发明实施例的终端通信的控制装置包括: 接收模块 31 , 用于接收终端的应用发起的业务请求消息, 并且用于接 收管理服务器响应于业务请求消息返回的反馈信息, 其中, 反馈信息中包 含终端能够使用的所有业务的标识以及每个业务对应的地址信息, 并且, 每个业务的地址信息为存储该业务对应的业务信息的应用服务器的地址; 发送模块 32 , 连接至接收模块 31 , 用于将接收的业务请求消息发送至 管理服务器;  As shown in FIG. 3, the control device for terminal communication according to the embodiment of the present invention includes: a receiving module 31, configured to receive a service request message initiated by an application of the terminal, and configured to receive feedback information returned by the management server in response to the service request message. The feedback information includes an identifier of all the services that the terminal can use and address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service; Connected to the receiving module 31, configured to send the received service request message to the management server;
存储模块 33 , 连接至接收模块 31和发送模块 32 , 用于存储接收模块 接收 31的反馈信息;  The storage module 33 is connected to the receiving module 31 and the sending module 32, and is configured to store feedback information of the receiving module receiving 31;
处理模块 34 , 连接至接收模块 31和发送模块 32 , 用于将管理服务器 返回的反馈信息中包含的业务请求消息所对应业务的地址信息发送给应 用, 并且在之后终端的应用发起其他业务请求消息的情况下, 根据存储模 块 33 保存的反馈信息将与该其他业务请求对应的业务的地址信息返回给 该应用。  The processing module 34 is connected to the receiving module 31 and the sending module 32, and is configured to send the address information of the service corresponding to the service request message included in the feedback information returned by the management server to the application, and then the application of the terminal initiates another service request message. In the case, the address information of the service corresponding to the other service request is returned to the application according to the feedback information saved by the storage module 33.
存储模块 32 , 连接至接收模块 31 , 用于存储反馈信息; 该装置的发送模块 32 还可用于在存储模块保存的反馈信息的有效期 结束的情况下, 将地址更新请求消息发送至管理服务器; a storage module 32, connected to the receiving module 31, for storing feedback information; The sending module 32 of the device may be further configured to send an address update request message to the management server if the validity period of the feedback information saved by the storage module ends;
并且,接收模块 31还用于接收管理服务器响应于地址更新请求消息返 回的地址更新消息, 其中, 地址更新消息包含终端能够使用的所有业务的 地址信息;  The receiving module 31 is further configured to receive an address update message returned by the management server in response to the address update request message, where the address update message includes address information of all services that the terminal can use;
相应地, 存储模块 32还用于将地址更新消息作为反馈信息保存, 并替 代之前已经保存的反馈信息。  Correspondingly, the storage module 32 is further configured to save the address update message as feedback information and replace the feedback information that has been previously saved.
其中,在终端首次向管理服务器发送业务请求消息进行认证的情况下, 管理服务器返回的反馈信息包含本次请求的业务的地址信息, 也包含该终 端可以使用的其他业务的地址信息, 处理模块 34可以直接将接收模块 31 接收的反馈信息中包含的本次请求的业务的地址信息发送给该应用; 也可 以在由存储模块 33先保存反馈信息,之后将保存的反馈信息中本次请求的 业务的地址信息发送给相应的应用, 此时, 处理模块 34可以进一步连接至 存储模块。  In the case that the terminal sends the service request message to the management server for authentication for the first time, the feedback information returned by the management server includes the address information of the service requested this time, and also includes the address information of other services that the terminal can use, and the processing module 34 The address information of the service of the current request included in the feedback information received by the receiving module 31 may be directly sent to the application; the feedback information may be saved first by the storage module 33, and the service requested this time may be saved in the saved feedback information. The address information is sent to the corresponding application, at which point the processing module 34 can be further connected to the storage module.
根据本发明的实施例, 还提供了一种管理服务器。  According to an embodiment of the present invention, a management server is also provided.
如图 4所示, 根据本发明实施例的管理服务器包括:  As shown in FIG. 4, the management server according to an embodiment of the present invention includes:
接收模块 41 , 用于接收终端的应用发起的业务请求消息, 其中, 业务 请求消息中包含终端的标识;  The receiving module 41 is configured to receive a service request message initiated by the application of the terminal, where the service request message includes an identifier of the terminal;
认证模块 42 , 连接至接收模块 41 , 用于根据终端标识终端进行认证; 确定模块 43 , 连接至认证模块 42 , 用于在终端通过认证的情况下, 确 定终端能够使用的所有业务;  The authentication module 42 is connected to the receiving module 41 for performing authentication according to the terminal identification terminal, and the determining module 43 is connected to the authentication module 42 for determining all services that the terminal can use when the terminal passes the authentication;
获取模块 44 , 连接至确定模块 43 , 用于获取终端能够使用的所有业务 的标识和地址信息;  The obtaining module 44 is connected to the determining module 43 for acquiring identifier and address information of all services that the terminal can use;
发送模块 45 , 连接至获取模块 44 , 用于通过反馈信息将获取的标识和 地址信息发送给服务器引擎。  The sending module 45 is connected to the obtaining module 44, and is configured to send the acquired identifier and address information to the server engine through the feedback information.
其中, 接收模块 41还用于接收来自终端的地址更新请求消息; 而获取模块 44还用于响应于地址更新请求消息,获取终端能够使用的 所有业务的地址信息, 由发送模块 45通过地址更新消息发送给终端。  The receiving module 41 is further configured to receive an address update request message from the terminal, and the obtaining module 44 is further configured to: obtain, according to the address update request message, address information of all services that the terminal can use, and send, by the sending module 45, an address update message. Send to the terminal.
优选地, 获取模块 44具体用于对终端能够使用的每个业务, 根据对应 于该业务的应用服务器的负载, 获取对应于该业务的至少一个应用服务器 的地址作为该业务的地址信息 (优选地, 获取模块可以仅获取一个应用服 务器的地址作为该业务的地址信息) 。 Preferably, the obtaining module 44 is specifically configured to use, for each service that can be used by the terminal, according to the corresponding For the load of the application server of the service, the address of the at least one application server corresponding to the service is obtained as the address information of the service (preferably, the obtaining module may acquire only the address of one application server as the address information of the service).
通过上述管理服务器与装置进行配合, 同样能够根据保存的内容(包 括终端所有能够使用的业务以及对应的地址信息) 确定是否允许该终端使 用该业务, 并且在确定允许使用的情况下将该业务的地址信息通知给该应 用, 从而有效避免了针对每次发起业务均需要借助网络、 并且需要管理服 务器进行认证和判断的问题, 能够有效降低网络负担, 同时也能够降低管 理服务器的负载, 降低对多个应用进行管理的复杂度; 此外, 通过定期或 在一定条件下更新服务器引擎保存的内容,可以实现地址信息的动态分发, 有助于合理利用网络资源, 均衡网络负载。  By cooperating with the device by the foregoing management server, it is also possible to determine whether to allow the terminal to use the service according to the saved content (including all services that the terminal can use and the corresponding address information), and to determine the permission to use the service. The address information is notified to the application, thereby effectively avoiding the problem that each time the service is initiated, the network needs to be used, and the management server needs to be authenticated and judged, which can effectively reduce the network load, and can also reduce the load of the management server, and reduce the load on the management server. The complexity of the application management; In addition, by periodically or under certain conditions to update the content saved by the server engine, dynamic distribution of address information can be realized, which helps to rationally utilize network resources and balance network load.
综上所述, 借助于本发明的上述技术方案, 能够根据服务器引擎保存 的内容(包括终端所有能够使用的业务以及对应的地址信息) 确定是否允 许该终端使用该业务, 并且在确定允许使用的情况下将该业务的地址信息 通知给该应用, 从而有效避免了针对每次发起业务均需要借助网络、 并且 需要管理服务器进行认证和判断的问题, 能够有效降低网络负担, 同时也 能够降低管理服务器的负载, 降低对多个应用进行管理的复杂度; 此外, 通过定期或在一定条件下更新服务器引擎保存的内容, 可以实现地址信息 的动态分发, 有助于合理利用网络资源, 均衡网络负载。  In summary, with the above technical solution of the present invention, it is possible to determine whether to allow the terminal to use the service according to the content saved by the server engine (including all the services that the terminal can use and the corresponding address information), and determine the permitted use. In this case, the address information of the service is notified to the application, thereby effectively avoiding the problem that the network needs to be authenticated and judged by the management server for each service initiated, which can effectively reduce the network load and also reduce the management server. The load reduces the complexity of managing multiple applications. In addition, by periodically updating the content saved by the server engine under certain conditions, dynamic distribution of address information can be realized, which helps to rationally utilize network resources and balance network load.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在 本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包 含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.

Claims

权利要求书 Claim
1. 一种终端通信的控制方法, 其特征在于, 包括: A control method for terminal communication, comprising:
终端的服务器引擎接收所述终端的应用发起的业务请求消息, 并将所 述业务请求消息发送至管理服务器;  The server engine of the terminal receives the service request message initiated by the application of the terminal, and sends the service request message to the management server;
所述服务器引擎接收所述管理服务器返回的反馈信息, 其中, 所述反 馈信息中包含所述终端能够使用的所有业务的标识以及每个业务对应的地 址信息, 并且, 每个业务的地址信息为存储该业务对应的业务信息的应用 服务器的地址;  The server engine receives the feedback information returned by the management server, where the feedback information includes an identifier of all services that the terminal can use and address information corresponding to each service, and the address information of each service is An address of an application server that stores service information corresponding to the service;
所述服务器引擎保存所述反馈信息, 将所述业务请求消息所对应业务 的地址信息发送给所述应用, 并且在之后所述终端的应用发起其他业务请 求消息的情况下, 根据保存的所述反馈信息将与该其他业务请求对应的业 务的地址信息返回给该应用。  The server engine saves the feedback information, and sends the address information of the service corresponding to the service request message to the application, and after the application of the terminal initiates another service request message, according to the saved The feedback information returns the address information of the service corresponding to the other service request to the application.
2. 根据权利要求 1所述的控制方法, 其特征在于, 所述业务请求消息 中包含所述终端的标识以及业务标识, 并且, 在所述服务器引擎将所述业 务请求消息发送至管理服务器之后, 所述方法进一步包括:  The control method according to claim 1, wherein the service request message includes an identifier of the terminal and a service identifier, and after the server engine sends the service request message to the management server The method further includes:
所述管理服务器根据所述终端标识所述终端进行认证, 并确定所述终 端能够使用的所有业务;  The management server performs authentication according to the terminal identifier, and determines all services that the terminal can use;
所述管理服务器获取所述终端能够使用的所有业务的标识和地址信 息, 并通过所述反馈信息将获取的所述标识和所述地址信息发送给所述服 务器引擎。  And the management server obtains the identifier and the address information of all the services that the terminal can use, and sends the obtained identifier and the address information to the server engine by using the feedback information.
3. 根据权利要求 2所述的控制方法, 其特征在于, 所述管理服务器获 取所述终端能够使用的所有业务的地址信息包括:  The control method according to claim 2, wherein the management server obtains address information of all services that the terminal can use, including:
对于所述终端能够使用的每个业务, 所述管理服务器根据对应于该业 务的应用服务器的负载, 获取对应于该业务的至少一个应用服务器的地址 作为该业务的地址信息。  For each service that the terminal can use, the management server acquires an address of at least one application server corresponding to the service as the address information of the service according to the load of the application server corresponding to the service.
4. 根据权利要求 1所述的控制方法, 其特征在于, 在所述服务器引擎 保存所述反馈信息之后, 如果保存的所述反馈信息的有效期结束, 则所述 方法进一步包括: The control method according to claim 1, wherein after the server engine saves the feedback information, if the saved validity period of the feedback information ends, The method further includes:
所述服务器引擎将地址更新请求消息发送至所述管理服务器, 所述管 理服务器将所述终端能够使用的所有业务的地址信息通过地址更新消息发 送给所述服务器引擎;  The server engine sends an address update request message to the management server, and the management server sends address information of all services that the terminal can use to the server engine through an address update message;
所述服务器引擎将所述地址更新消息作为反馈信息保存, 并替代之前 已经保存的反馈信息。  The server engine saves the address update message as feedback information and replaces the feedback information that has been previously saved.
5. 根据权利要求 1所述的控制方法, 其特征在于, 将所述业务请求消 息所对应业务的地址信息发送给所述应用之后, 所述方法进一步包括: 所述应用根据所述服务器引擎返回的地址信息访问对应的业务服务器 并获取该业务的业务信息。  The control method according to claim 1, wherein after the address information of the service corresponding to the service request message is sent to the application, the method further comprises: the application returning according to the server engine The address information accesses the corresponding service server and obtains the service information of the service.
6. 一种终端通信的控制装置, 设置于终端侧, 其特征在于, 所述控制 装置包括:  A control device for terminal communication, which is disposed on the terminal side, wherein the control device comprises:
接收模块, 用于接收所述终端的应用发起的业务请求消息, 并且用于 接收管理服务器响应于所述业务请求消息返回的反馈信息, 其中, 所述反 馈信息中包含所述终端能够使用的所有业务的标识以及每个业务对应的地 址信息, 并且, 每个业务的地址信息为存储该业务对应的业务信息的应用 服务器的地址;  a receiving module, configured to receive an application initiated service request message of the terminal, and configured to receive feedback information returned by the management server in response to the service request message, where the feedback information includes all the terminals that the terminal can use The identifier of the service and the address information corresponding to each service, and the address information of each service is an address of an application server that stores the service information corresponding to the service;
发送模块, 用于将接收的所述业务请求消息发送至管理服务器; 存储模块, 用于存储所述接收模块接收的所述反馈信息;  a sending module, configured to send the received service request message to a management server, where the storage module is configured to store the feedback information received by the receiving module;
处理模块, 用于将所述管理服务器返回的所述反馈信息中包含的所述 业务请求消息所对应业务的地址信息发送给所述应用, 并且在之后所述终 端的应用发起其他业务请求消息的情况下, 根据所述存储模块保存的所述 反馈信息将与该其他业务请求对应的业务的地址信息返回给该应用。  a processing module, configured to send address information of a service corresponding to the service request message included in the feedback information returned by the management server to the application, and after the application of the terminal initiates another service request message In the case, the address information of the service corresponding to the other service request is returned to the application according to the feedback information saved by the storage module.
7. 根据权利要求 6所述的控制装置, 其特征在于, 所述发送模块还用 于在所述存储模块保存的所述反馈信息的有效期结束的情况下, 将地址更 新请求消息发送至所述管理服务器;  The control device according to claim 6, wherein the sending module is further configured to: when the validity period of the feedback information saved by the storage module ends, send an address update request message to the Management server;
并且, 所述接收模块还用于接收所述管理服务器响应于所述地址更新 请求消息返回的地址更新消息, 其中, 所述地址更新消息包含所述终端能 够使用的所有业务的地址信息; 所述存储模块还用于将所述地址更新消息作为反馈信息保存, 并替代 之前已经保存的反馈信息。 And the receiving module is further configured to receive an address update message that is returned by the management server in response to the address update request message, where the address update message includes address information of all services that the terminal can use; The storage module is further configured to save the address update message as feedback information and replace the feedback information that has been saved before.
8. 一种管理服务器, 其特征在于, 包括:  8. A management server, comprising:
接收模块, 用于接收终端的应用发起的业务请求消息, 其中, 所述业 务请求消息中包含所述终端的标识;  a receiving module, configured to receive a service request message initiated by an application of the terminal, where the service request message includes an identifier of the terminal;
认证模块, 用于根据所述终端标识所述终端进行认证;  An authentication module, configured to perform authentication according to the terminal identifier of the terminal;
确定模块, 用于在所述终端通过认证的情况下, 确定所述终端能够使 用的所有业务;  a determining module, configured to determine, when the terminal passes the authentication, all services that the terminal can use;
获取模块,用于获取所述终端能够使用的所有业务的标识和地址信息; 发送模块, 用于通过所述反馈信息将获取的所述标识和所述地址信息 发送给所述服务器引擎。  And an obtaining module, configured to obtain the identifier and address information of all the services that the terminal can use, and the sending module, configured to send the acquired identifier and the address information to the server engine by using the feedback information.
9. 根据权利要求 8所述的管理服务器, 其特征在于,  9. The management server according to claim 8, wherein:
所述接收模块还用于接收来自所述终端的地址更新请求消息; 所述获取模块还用于响应于所述地址更新请求消息, 获取所述终端能 够使用的所有业务的地址信息, 由所述发送模块通过地址更新消息发送给 所述终端。  The receiving module is further configured to receive an address update request message from the terminal, where the acquiring module is further configured to: obtain, according to the address update request message, address information of all services that the terminal can use, The sending module sends the address update message to the terminal.
10. 根据权利要求 8或 9所述的管理服务器, 其特征在于, 所述获取 模块具体用于对所述终端能够使用的每个业务, 根据对应于该业务的应用 服务器的负载, 获取对应于该业务的至少一个应用服务器的地址作为该业 务的地址信息。  The management server according to claim 8 or 9, wherein the acquiring module is specifically configured to: for each service that can be used by the terminal, obtain, according to a load of an application server corresponding to the service, The address of at least one application server of the service is used as the address information of the service.
PCT/CN2011/077504 2011-03-29 2011-07-22 Method and apparatus for controlling terminal communication, and management server WO2012129868A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100765565A CN102724165A (en) 2011-03-29 2011-03-29 Control method and device for terminal communication, and management server
CN201110076556.5 2011-03-29

Publications (1)

Publication Number Publication Date
WO2012129868A1 true WO2012129868A1 (en) 2012-10-04

Family

ID=46929375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077504 WO2012129868A1 (en) 2011-03-29 2011-07-22 Method and apparatus for controlling terminal communication, and management server

Country Status (2)

Country Link
CN (1) CN102724165A (en)
WO (1) WO2012129868A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966381A (en) * 2020-08-24 2020-11-20 宝牧科技(天津)有限公司 Light business terminal health detection system and method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6357770B2 (en) * 2013-12-26 2018-07-18 オムロン株式会社 Control device and communication control method
CN106020998A (en) * 2016-05-24 2016-10-12 深圳市智物联网络有限公司 Service invoke method and device
CN108132905A (en) * 2016-12-23 2018-06-08 云帧(上海)信息技术有限公司 It provides or passes server using method, system and the USB net of external equipment
CN112039710B (en) * 2020-09-02 2023-08-01 曙光信息产业(北京)有限公司 Service fault processing method, terminal equipment and readable storage medium
CN114915437B (en) * 2021-02-09 2023-08-04 华为技术有限公司 Development kit authentication method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1272279A (en) * 1997-08-06 2000-11-01 塔奇勇公司 Distributed system and method for prefetching objects
EP1802032A1 (en) * 2005-12-22 2007-06-27 Axis AB Monitoring system and method for connecting a monitoring device to a service server
CN101072326A (en) * 2007-06-20 2007-11-14 华为技术有限公司 Method, system and device for accessing service of non-attribution contracted IPIV service provider
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN101616126A (en) * 2008-06-23 2009-12-30 华为技术有限公司 Realize method, the Apparatus and system of data access authority control

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075981A (en) * 2006-08-18 2007-11-21 腾讯科技(深圳)有限公司 Method and apparatus for filteirng information
CN101179408B (en) * 2006-12-20 2010-05-19 腾讯科技(深圳)有限公司 Method and system of obtaining network TV program in instant communication cluster
EP2081350B1 (en) * 2008-01-17 2018-07-18 Nokia Solutions and Networks Oy Method and device for processing content and multicast access information and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1272279A (en) * 1997-08-06 2000-11-01 塔奇勇公司 Distributed system and method for prefetching objects
EP1802032A1 (en) * 2005-12-22 2007-06-27 Axis AB Monitoring system and method for connecting a monitoring device to a service server
CN101072326A (en) * 2007-06-20 2007-11-14 华为技术有限公司 Method, system and device for accessing service of non-attribution contracted IPIV service provider
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 Method and system for implementing application server load balancing
CN101616126A (en) * 2008-06-23 2009-12-30 华为技术有限公司 Realize method, the Apparatus and system of data access authority control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966381A (en) * 2020-08-24 2020-11-20 宝牧科技(天津)有限公司 Light business terminal health detection system and method

Also Published As

Publication number Publication date
CN102724165A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
US7493487B2 (en) Portable computing environment
KR101496329B1 (en) Method and appratus for handiling security of a device on network
JP4685876B2 (en) System and method for providing multiple credential authentication protocols
JP6061633B2 (en) Device apparatus, control method, and program thereof.
US20150248287A1 (en) System and methods for remote maintenance in an electronic network with multiple clients
CN108540433B (en) User identity verification method and device
JP5601638B2 (en) Method and system used to provide network service exchange
WO2012129868A1 (en) Method and apparatus for controlling terminal communication, and management server
US20100077467A1 (en) Authentication service for seamless application operation
MX2014009822A (en) Mobile apparatus supporting a plurality of access control clients, and corresponding methods.
EP2310977B1 (en) An apparatus for managing user authentication
JP2013505497A (en) Method and apparatus for verification of identification information
AU2005222507B2 (en) Portable computing environment
US11245577B2 (en) Template-based onboarding of internet-connectible devices
CN111431920A (en) Security control method and system based on dynamic token
JP2013140480A (en) Server system, service providing server, and control method
CN105453126A (en) Application sharing service method and apparatus applied thereto
JP4989935B2 (en) Session management method, server used therefor, session management program, and recording medium recording the program
JP2002132728A (en) One-time password authentication system
JP2000236326A (en) Light terminal control system and method therefor
JP2012027520A (en) Information processing system, information processor, information processing method, information processing program and recording medium recorded with information processing program
KR101637155B1 (en) A system providing trusted identity management service using trust service device and its methods of operation
JP5366448B2 (en) Communication system, server, terminal, and communication method
KR20150109233A (en) method and server for performing log-in for application
CN111049785B (en) Portal authentication method and device

Legal Events

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

Ref document number: 11862655

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: 11862655

Country of ref document: EP

Kind code of ref document: A1