WO2010020120A1 - Method, device and system for synchronizing time - Google Patents

Method, device and system for synchronizing time Download PDF

Info

Publication number
WO2010020120A1
WO2010020120A1 PCT/CN2009/070921 CN2009070921W WO2010020120A1 WO 2010020120 A1 WO2010020120 A1 WO 2010020120A1 CN 2009070921 W CN2009070921 W CN 2009070921W WO 2010020120 A1 WO2010020120 A1 WO 2010020120A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
clock information
server
request
clock
Prior art date
Application number
PCT/CN2009/070921
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 WO2010020120A1 publication Critical patent/WO2010020120A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • the present invention relates to the field of communications, and in particular, to a time synchronization method, apparatus, and system.
  • the Mobile Broadcast Service is a concept of a mobile broadband digital broadcasting service proposed by the Open Mobile Alliance. In broadcasting, it includes a traditional one-to-many broadcasting method and multi-point transmission method, which is dedicated to business. Inventions such as discovery, electronic programming, business guidance, billing, content protection, etc., develop specific business engines and ensure that they are independent of the carrier layer.
  • the entire BCAST system consists of a functional part, a protocol part, and a bearer network part.
  • the service guide provides the user with information about the broadcast content, including the channel name, program name, start time, end time, payment standard, etc.
  • the user can perform program preview, service ordering and unsubscribing, and play the program according to relevant information provided in the service guide. Wait for the operation.
  • the service guide information may be sent by the network side to all users registered at the broadcast service provider in a broadcast manner, or may be requested by the user to send the service guide information to the network side.
  • the process of the user viewing the program through the service guide is: the content server sends the program information to the service guide server, where the program information includes a channel name, a program name, a start time, an end time, and the like; the service guide server is provided according to the content server.
  • the program information generation service guide sends the generated service guide to the client; the client displays the service guide to the user, and the user selects the program to be watched according to the service guide; the client receives the program selected by the user according to the service guide.
  • the embodiment of the invention provides a time synchronization method, device and system.
  • the technical solution provided by the embodiment of the invention can realize time synchronization between the client and the server, thereby realizing synchronization between the terminal and the server.
  • a time synchronization method including:
  • the client obtains clock information
  • the client synchronizes with the server according to the above clock information.
  • a client that includes:
  • a clock information acquiring unit configured to acquire clock information
  • the clock management unit is configured to synchronize with the server according to the clock information acquired by the clock information acquiring unit.
  • a server comprising:
  • a clock providing unit configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module;
  • the clock information sending unit is configured to send the clock information provided by the clock providing unit to the client.
  • a time synchronization system including:
  • a server configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module, and send clock information to the client;
  • the client is configured to obtain clock information, and synchronize with the foregoing server time according to the clock information.
  • the client since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, thereby enabling the user and the server. Time synchronization, which in turn enhances the user experience.
  • FIG. 1 is a flow chart of a time synchronization method according to Embodiment 1 of the present invention.
  • FIG. 2 is a signaling diagram of a time synchronization method according to Embodiment 2 of the present invention.
  • FIG. 3 is a signaling diagram of a time synchronization method according to Embodiment 3 of the present invention.
  • FIG. 4 is a signaling diagram of a time synchronization method according to Embodiment 4 of the present invention.
  • FIG. 5 is a signaling diagram of a time synchronization method according to Embodiment 5 of the present invention.
  • FIG. 6 is a flowchart of a time synchronization method according to Embodiment 6 of the present invention.
  • FIG. 7 is a flowchart of a time synchronization method according to Embodiment 7 of the present invention.
  • Embodiment 8 is a signaling diagram of a time synchronization method according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic diagram of a composition of a client according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing the composition of a server according to an embodiment of the present invention.
  • FIG. 11 is a block diagram showing the composition of a time synchronization system according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a NTP data format according to an embodiment of the present invention.
  • the embodiment of the invention provides a time synchronization method, device and system.
  • the technical solution provided by the embodiment of the invention can realize time synchronization between the client and the server, thereby realizing synchronization between the terminal and the server.
  • the above terminals include a client and a user.
  • the client can be a device capable of implementing a mobile broadcast service, such as a mobile phone.
  • the client obtains clock information and implements synchronization with the server time according to the clock information, so that the time of the client can be synchronized with the time of the server.
  • Step 101 The client obtains clock information.
  • the client can obtain the clock information through the local underlying clock, or obtain the clock through the server. Information.
  • Obtaining clock information through the local underlying clock may be a signaling message that the client acquires clock information in the mobile communication network.
  • the clock information is obtained by the server, and the client sends a request to the server, and the client obtains the clock information sent by the server according to the request; or the clock information sent by the server periodically.
  • the request sent by the client to the server may be a service guide acquisition request or a service guide update request, and the client obtains clock information by receiving a service guide containing the clock information.
  • the request sent by the client to the server may also be a time synchronization request, and the client obtains the clock information sent by the server according to the time synchronization request.
  • the time synchronization request may further include a keep update field, where the field indicates whether the client requests to keep the update, and the client obtains the updated clock information sent by the server after the client requests to keep updating according to the keep update field.
  • the clock information sent by the client to the server periodically can obtain the clock information by acquiring any of the cell broadcast system message, the push message, and the unstructured supplementary data service message including the clock information.
  • the client obtains the cell broadcast system message including the clock information, and the client may receive the media stream of the cell broadcast system, and extract the clock information from the media stream.
  • Step 102 The client synchronizes with the server according to the clock information.
  • the client synchronizes with the server according to the clock information.
  • the client can replace the local clock information with the clock information based on the clock information, and provide the replaced clock information to the user, so that the time of the user and the server are synchronized.
  • the client can synchronize the time with the server according to the clock information, and can also map the clock information and the local clock information to the client, and provide the mapped clock information to the user, so that the time of the user and the server are kept synchronized.
  • the client since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
  • Embodiment 1 is a general description of a method for implementing time synchronization with a server, and a corresponding embodiment is given below for different ways of acquiring clock information.
  • This embodiment provides a client initiated service guide acquisition request or service guide update request.
  • the server sends the clock information along with the service guide to the client, the client and server time synchronization scheme is implemented.
  • the basic idea is that in the interactive service guide, after the client initiates a service guide acquisition request or a service guide update request to the server, the server sends the clock information along with the service guide to the client.
  • Step 201 The client sends a service guide acquisition request or a service guide update request to the server; the client may initiate the request by using the request message, and the following is an example of a request message format:
  • User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.10[en] User Information
  • the above request message is composed of a message header and a message body.
  • the header field includes the service guide server domain name and port, the message body type, the message body length, the client information, the request request date and time, and the like.
  • the message body is an Extensible Markup Language (XML) document containing the content of the request, where " ⁇ type> sgdu + clock- NTP ⁇ /tpye> " indicates that the request server responds to the Service Guide Delivery Unit (Service Guide Delivery). Unit, SGDU) and Network Time Protocol (NTP) time information, where " ⁇ fragment_ID>www.example.com/service/101 ⁇ /fragment_ID>" indicates the requested service fragment, this fragment is encapsulated In the business guide transfer unit.
  • XML Extensible Markup Language
  • Step 202 The server sends a service guide acquisition response or a service guide update response to the client. After receiving the request, the server returns the service guide data and clock information of the response in the payload. The server responds with a request message with a status of "200 OK", and returns a response content according to the request message.
  • the following message format is an example of a server response message.
  • the server returns the requested service guide fragment and NTP time information according to the request message sent by the client, and the information is carried in the message body.
  • the NTP time information consists of an NTP header and four timestamps, which are 48 bytes in total. See Figure 12 for the NTP data format.
  • Figure 12 shows the data items in the NT data format as follows:
  • NTP header which is 16 bytes, is: LI: leap year indicator (2bit); VN: version number (3bit); Stratum: layer (8bit); Mode: mode (3bit); Poll Interval: query interval
  • Reference Timestamp Reference Timestamp (64bit); Originate Timestamp: Original timestamp (64bit); Receive Timestamp: Receive timestamp (64bit); Transmit Timestamp: Transmit Timestamp (64bit).
  • NTP data is usually encapsulated in XML or binary format. Taking the XML form as an example, the NTP data items can be placed in the HTTP response message body as a child element of the element 3 ⁇ 41001 ⁇ -NTP>. After receiving the response message, the client parses these elements, reconstructs the NTP data, and performs time synchronization processing.
  • the clock information can also be used as a shard in the service guide. That is, a new clock information fragment is added to the service guide. Like other service guide shards, the shard also has a unique identifier. The user can obtain the synchronization time by requesting to acquire or update the clock information fragment.
  • the above message format and the way to carry the data are only examples, and can also be implemented by other messages and carrying methods, and the ideas involved are consistent.
  • the "Date" field indicates the date and time when the server sent the message. For the case where the time precision is not high, the client can also synchronize the time with the server as the synchronization time.
  • Step 203 After obtaining the clock information, the client synchronizes with the server time according to the clock information.
  • Manner 1 After the client extracts the clock information, the local clock information is replaced by the new clock information constructed according to the clock information.
  • the client local clock can be referred to.
  • Manner 2 The client maps the clock information to the local clock information, does not modify the local time of the client, and maps the client local time to the time required by the BCAST user for use by the BCAST user.
  • the client sends a service guide acquisition request or a service guide update request to the server, receives a service guide that is sent by the server and includes the clock information, and synchronizes with the server according to the clock information, thereby enabling the terminal to synchronize with the server time and enhancing the time. user experience.
  • the second embodiment is a method for the client to send a request to the server to implement time synchronization.
  • the following describes an embodiment in which the server sends clock information to the client through the cell broadcast system.
  • This embodiment provides an implementation scheme for sending clock information to a client through a cell broadcast system.
  • the basic idea is that the server periodically sends clock information to the client periodically or periodically, and the client synchronizes after receiving the clock information.
  • This feature is characterized by the fact that there is no need to distinguish between clients, and all clients in the cell range can receive clock information. Referring to Figure 3, the specific process is as follows:
  • Step 301 The server periodically forwards the clock information to the cell broadcast system.
  • the server typically periodically forwards time information to the cell broadcast system.
  • Step 302 The cell broadcast system encapsulates the clock information in a cell broadcast message for broadcasting. If the clock information is too large, the clock information may be compressed before being encapsulated, or the clock message may be split into several cell broadcast message numbers. Issued.
  • Step 303 The cell that the client listens to the broadcast clock information speaks, and parses the clock information after receiving the cell broadcast information.
  • the client can only listen to the cell broadcast channel of the broadcast clock information if the relevant channel parameters are configured.
  • the client obtains the address of the clock information through the cured cell broadcast address, or through device management, configuration mode, client preset, or manual configuration.
  • the clock information is sent by the cell broadcast, and other methods may be adopted.
  • the clock information is carried in the form of XML in the push message body.
  • carrying clock information in the payload of the cell broadcast system message can also be delivered in an unstructured supplementary data service.
  • Step 304 is the same as step 203, and details are not described herein again.
  • the client obtains the clock information by acquiring the cell broadcast system message including the clock information, and synchronizes with the server according to the clock information. Further, the client obtains the clock information by acquiring the unstructured supplementary data service message including the clock information. Synchronizing with the server according to the clock information enables the time of the client and the server to be synchronized, thereby synchronizing the time between the terminal and the server, and enhancing the user experience.
  • the third embodiment describes a method for implementing time synchronization of sending clock information to a client through a cell broadcast system.
  • An embodiment of sending clock information to a client by means of a push mode is described below.
  • This embodiment provides a method for implementing time synchronization of issuing clock information to a client by means of a push.
  • the basic idea is to encapsulate the clock information in the form of XML or binary in the push message body, and deliver the message to the client through the push message.
  • Step 401 The server hands the clock information to the push proxy gateway.
  • Step 402 The push proxy gateway encapsulates the clock information in the relevant push message and sends the clock information to the client.
  • the clock information is carried in the above message body in XML form or in binary form.
  • Step 403 After receiving the push message, the client parses the clock information for processing.
  • Step 404 after the clock information is parsed is the same as step 203, and is not mentioned here.
  • the unstructured supplementary data service system can also be used to provide clock information, which can be implemented by means of unstructured supplementary data service notification initiated by the network side, and the clock information is carried in the notification message.
  • the client obtains the push message sent by the push proxy gateway to obtain the clock information, and synchronizes with the server according to the clock information, which can synchronize the time between the client and the server, thereby synchronizing the time between the terminal and the server, and enhancing the time. user experience.
  • the fourth embodiment describes a method for implementing time synchronization of sending clock information to a client by means of a push.
  • the following describes an embodiment in which a client requests clock information through an interactive network to implement time synchronization.
  • This embodiment provides a method for a client to request clock information through an interactive network to implement time synchronization.
  • the main idea is that the client actively initiates the request information, requesting the clock information, and the server returns the clock information according to the request.
  • Step 501 The client initiates a time synchronization request to the server.
  • the time synchronization request is used to request the clock information.
  • the format of the request message is as follows:
  • a keep-update field may be extended in the above request message to indicate whether the server is required to periodically send the updated clock to the client after the request. If the value of this field is "true", the server periodically sends the updated clock information to the client after receiving the client request message.
  • Step 502 The server returns clock information according to the client request.
  • the server After receiving the request initiated by the client, the server carries clock information, such as NTP data, in
  • Clock information such as NTP data
  • NTP data is carried in the body of the message in binary form or as an XML document.
  • Step 504 The client synchronizes with the server according to the clock information.
  • This step is the same as step 203 and will not be mentioned here.
  • the client obtains clock information through a separate request command, synchronizes with the server according to the clock information, and is independent of the service guide architecture, so that the terminal and the server can be time synchronized without relying on the service guide architecture, thereby enhancing the user experience.
  • Embodiment 5 provides a method for a client to request clock information through an interactive network to implement time synchronization.
  • An embodiment in which a client extracts clock information from a broadcast program stream to implement time synchronization is described below.
  • This embodiment provides a method for a client to extract time information from a broadcast program stream to implement time synchronization.
  • the basic idea is that the media stream or the program stream contains a time stamp, and the client extracts the time information in the media stream in the process of receiving the media stream for use by the BCAST user.
  • Step 601 The client starts to receive the media stream of the multimedia broadcast system.
  • Media streams can be transmitted through different media transmission channels, such as digital video broadcasting systems.
  • Streams, mobile interactive networks are usually transmitted using real-time transport protocols or real-time transport control protocols.
  • the media stream contains time information for media control, system synchronization, etc.
  • the timestamp in the real-time transport protocol is usually used for synchronization of audio and video streams and fast forward and backward control, so the client can extract the time information.
  • Step 603 The client processes the extracted time and converts it into a format required by the BCAST user.
  • the client processes the extracted time as needed.
  • Step 604 Provide the converted time to the BCAST user for use.
  • BCAST can use this time for different applications, such as display to the user, or when the user performs some time-related operations as the reference time.
  • the client receives the media stream, extracts the clock information from the media stream, and converts it into a format required by the user, and uses the converted time for the BCAST user to synchronize the time of the BCAST user with the server, thereby enhancing the user body.
  • Embodiment 6 describes a method in which a client extracts time information from a broadcast program stream to implement time synchronization.
  • An embodiment of synchronizing a client using a network synchronization time in a synchronous mobile communication network is described below.
  • This embodiment provides a method for synchronizing a client by using a network synchronization time to synchronize time in a synchronous mobile communication network.
  • the base stations are synchronized by the global positioning system time.
  • the basic idea of this embodiment is to extract the time information of the signaling layer of the transport network for use by the BCAST user.
  • Step 701 The client obtains clock information through the local underlying clock.
  • time information of the base station may be carried in the signaling, and the client obtains the foregoing signaling information.
  • Step 702 The client corrects the local time according to the time to achieve synchronization with the base station.
  • the client obtains clock information by acquiring a signaling message including clock information in the mobile communication network, and corrects the local time according to the clock information to achieve time synchronization with the mobile communication network.
  • the client and server time synchronization is achieved, which enhances the user experience.
  • the seventh embodiment describes a method for synchronizing a client by using a network synchronization time to realize time synchronization.
  • the following describes an embodiment in which a client obtains clock information through an unstructured supplementary data service request to implement time synchronization.
  • This embodiment describes a method for a client to obtain clock information through an unstructured supplementary data service request to implement time synchronization.
  • the main idea is that the client actively initiates an unstructured supplementary data service request, and obtains clock information, and the server requests the server according to the request. The message returns clock information.
  • Step 801 The client initiates an unstructured supplementary data service request to the server, where the request message includes a clock request.
  • the request message can have multiple initiation methods, which can be set according to actual needs. For example, the user automatically initiates a request each time the client opens the client, or the user can manually initiate a request.
  • Step 802 The server carries the clock information of the server in the response message according to the request message, and sends the message to the client.
  • the server If the server does not have clock information, the server requests the NTP server to obtain the NTP time information, and the NTP server returns the NTP time according to the request.
  • Step 803 is the same as step 203, and details are not described herein again.
  • the client sends the unstructured supplementary data service request including the clock request to the server, obtains the clock information sent by the server according to the request, and synchronizes with the server according to the clock information, so that the time between the client and the server can be synchronized.
  • the time of the terminal and the server are synchronized, and the user experience is enhanced.
  • a client including:
  • the clock information acquiring unit 901 is configured to acquire clock information.
  • the clock management unit 902 is configured to perform time synchronization with the server according to the clock information acquired by the clock information acquiring unit 901.
  • the above client may further include:
  • the clock information obtaining unit 901 is configured to acquire clock information sent by the server according to the foregoing request.
  • the request sending unit may be further configured to send a service guide obtaining request or a service guide update request to the server.
  • the clock information acquiring unit 901 may further include:
  • a service guide processing unit configured to receive a service guide sent by the server, where the service guide includes clock information
  • an extracting unit configured to extract a clock message from the foregoing service guide received by the service guide processing unit.
  • the client may be used to implement the foregoing time synchronization method, but is not limited to implementing the method.
  • a clock providing unit 1001 configured to obtain clock information from any one of a network time protocol server, a mobile broadcast service server, a content server, and a separate global positioning system module;
  • the clock information transmitting unit 1002 is configured to send the foregoing clock information provided by the clock providing unit 1001 to the client.
  • the above server may be used to implement the above time synchronization method, but is not limited to implementing the method.
  • a time synchronization system includes:
  • the server 1101 is configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module, and send clock information to the client 1102;
  • the client 1102 is configured to obtain clock information, and implement time synchronization with the server 1101 according to the foregoing clock information.
  • the client since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
  • the client obtains clock information through the local underlying clock or the server, and synchronizes with the server according to the clock information, so that the time of the client and the time of the server are synchronized, thereby synchronizing the time of the user and the server, thereby enhancing The user experience.
  • the client acquisition server obtains clock information by using any one of a cell broadcast system message, a push message, and an unstructured supplementary data service message including clock information, and according to the clock
  • the information is synchronized with the server time, which can synchronize the time of the client with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
  • the client obtains clock information by sending a request to the server, and synchronizes with the server according to the clock information, so that the time of the client and the time of the server are synchronized, thereby synchronizing the time of the user and the server, thereby enhancing the time. user experience.
  • the client obtains clock information
  • the client synchronizes with the server according to the above clock information.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

A method for synchronizing time comprises the steps of: by a client, acquiring clock information; by the client, realizing the time synchronization with a server according to the clock information. A client comprises a clock information acquiring unit, for acquiring clock information; a clock management unit, for realizing the time synchronization with the server according to the clock information acquired by the clock information acquiring unit. A server comprises a clock providing unit, for acquiring clock information from any one of a network time protocol server, a mobile broadcast service server, a content server or a separate Global Position System module; a clock information sending unit, for sending the clock information provided by the clock providing unit to a client. A system for synchronizing time includes the server and the client.

Description

一种时间同步方法、 装置及系统  Time synchronization method, device and system
本申请要求于 2008 年 8 月 20 日提交中国专利局、 申请号为 200810210836.9、 发明名称为 "一种时间同步方法、 装置及系统" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200810210836.9, entitled "A Time Synchronization Method, Apparatus and System", filed on August 20, 2008, the entire contents of which are incorporated herein by reference. In the application.
技术领域 Technical field
本发明涉及通信领域, 尤其涉及一种时间同步方法、 装置及系统。  The present invention relates to the field of communications, and in particular, to a time synchronization method, apparatus, and system.
背景技术 Background technique
移动广播业务(Mobile Broadcast Service, BCAST )是开放移动联盟提出 来的一个移动宽带数字广播业务的概念,在广播上, 它包括传统的一对多的广 播方式和多点传送方式, 其致力于业务发现、 电子编程、 业务引导、 计费、 内 容保护等发明, 制定具体的业务引擎, 并确保其独立于承载层。 整个 BCAST 系统由功能部分、 协议部分和承载网络部分组成。  The Mobile Broadcast Service (BCAST) is a concept of a mobile broadband digital broadcasting service proposed by the Open Mobile Alliance. In broadcasting, it includes a traditional one-to-many broadcasting method and multi-point transmission method, which is dedicated to business. Inventions such as discovery, electronic programming, business guidance, billing, content protection, etc., develop specific business engines and ensure that they are independent of the carrier layer. The entire BCAST system consists of a functional part, a protocol part, and a bearer network part.
开放移动联盟标准规定, 移动视频广播业务必须为用户提供业务指南 ( Service Guide, SG )信息。 业务指南为用户提供了广播内容的信息, 包括频 道名称、 节目名称、 开始时间、 结束时间、 付费标准等, 用户 据业务指南中 提供的相关信息可以进行节目预览、 业务订购和退订、播放节目等操作。 可以 采用由网络侧以广播的方式将业务指南信息发送给在广播业务提供商处进行 了注册的所有用户, 也可以采用由用户主动向网络侧请求其下发业务指南信 息。  The Open Mobile Alliance standard stipulates that mobile video broadcast services must provide users with Service Guide (SG) information. The service guide provides the user with information about the broadcast content, including the channel name, program name, start time, end time, payment standard, etc. The user can perform program preview, service ordering and unsubscribing, and play the program according to relevant information provided in the service guide. Wait for the operation. The service guide information may be sent by the network side to all users registered at the broadcast service provider in a broadcast manner, or may be requested by the user to send the service guide information to the network side.
现有技术中, 用户通过业务指南收看节目的流程为: 内容服务器将节目信 息发送给业务指南服务器, 节目信息包括频道名称、 节目名称、 开始时间、 结 束时间等; 业务指南服务器根据内容服务器提供的节目信息生成业务指南, 并 将生成的业务指南发送给客户端;客户端将业务指南显示给用户, 用户根据业 务指南选择要收看的节目; 客户端根据业务指南指示接收用户选择的节目。  In the prior art, the process of the user viewing the program through the service guide is: the content server sends the program information to the service guide server, where the program information includes a channel name, a program name, a start time, an end time, and the like; the service guide server is provided according to the content server. The program information generation service guide sends the generated service guide to the client; the client displays the service guide to the user, and the user selects the program to be watched according to the service guide; the client receives the program selected by the user according to the service guide.
在实现本发明的过程中, 发明人发现上述技术方案至少存在如下缺陷: 对于没有实现时间同步的系统,例如异步的宽带码分多址接入( Wideband Code Division Multiple Access, WCDMA ) 系统, 客户端和 BCAST服务器时 间差异比较大, 客户端通过 BCAST业务指南接入节目, 将使用户无法在正确 的时间收看节目, 进而影响用户体验。 发明内容 In the process of implementing the present invention, the inventors have found that the above technical solutions have at least the following drawbacks: For systems that do not implement time synchronization, such as asynchronous Wideband Code Division Multiple Access (WCDMA) systems, clients Compared with the BCAST server time, the client accesses the program through the BCAST service guide, which will make it impossible for the user to watch the program at the correct time, thereby affecting the user experience. Summary of the invention
本发明实施例提供了一种时间同步方法、装置及系统,使用本发明实施例 提供的技术方案, 能够实现客户端和服务器之间的时间同步,从而实现终端与 服务器之间的同步。  The embodiment of the invention provides a time synchronization method, device and system. The technical solution provided by the embodiment of the invention can realize time synchronization between the client and the server, thereby realizing synchronization between the terminal and the server.
本发明实施例的目的是通过以下技术方案实现的:  The purpose of the embodiment of the present invention is achieved by the following technical solutions:
一种时间同步方法, 包括:  A time synchronization method, including:
客户端获取时钟信息;  The client obtains clock information;
客户端根据上述时钟信息实现与服务器时间同步。  The client synchronizes with the server according to the above clock information.
一种客户端, 包括:  A client that includes:
时钟信息获取单元, 用于获取时钟信息;  a clock information acquiring unit, configured to acquire clock information;
时钟管理单元,用于根据时钟信息获取单元获取的时钟信息实现与服务器 时间同步。  The clock management unit is configured to synchronize with the server according to the clock information acquired by the clock information acquiring unit.
一种服务器, 包括:  A server, comprising:
时钟提供单元,用于从网络时间协议服务器或移动广播业务服务器或内容 服务器或独立的全球定位系统模块中的任一获得时钟信息;  a clock providing unit, configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module;
时钟信息发送单元, 用于向客户端发送时钟提供单元提供的时钟信息。 一种时间同步系统, 包括:  The clock information sending unit is configured to send the clock information provided by the clock providing unit to the client. A time synchronization system, including:
服务器,用于从网络时间协议服务器或移动广播业务服务器或内容服务器 或独立的全球定位系统模块中的任一获得时钟信息, 并向客户端发送时钟信 息;  a server, configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module, and send clock information to the client;
客户端, 用于获取时钟信息,根据所述时钟信息实现与上述服务器时间同 步。  The client is configured to obtain clock information, and synchronize with the foregoing server time according to the clock information.
从本发明实施例提供的以上技术方案可以看出 ,由于客户端获取时钟信息 并根据上述时钟信息实现与服务器时间同步,能够使客户端的时间与服务器的 时间保持同步, 从而可以使用户和服务器的时间同步, 进而增强了用户体验。  It can be seen from the above technical solution provided by the embodiment of the present invention that since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, thereby enabling the user and the server. Time synchronization, which in turn enhances the user experience.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1是本发明实施例一的时间同步方法流程图; In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Some embodiments of the present invention, for those of ordinary skill in the art, do not pay Other drawings can also be obtained from these drawings on the premise of inventive labor. 1 is a flow chart of a time synchronization method according to Embodiment 1 of the present invention;
图 2是本发明实施例二的时间同步方法信令图;  2 is a signaling diagram of a time synchronization method according to Embodiment 2 of the present invention;
图 3是本发明实施例三的时间同步方法信令图;  3 is a signaling diagram of a time synchronization method according to Embodiment 3 of the present invention;
图 4是本发明实施例四的时间同步方法信令图;  4 is a signaling diagram of a time synchronization method according to Embodiment 4 of the present invention;
图 5是本发明实施例五的时间同步方法信令图;  5 is a signaling diagram of a time synchronization method according to Embodiment 5 of the present invention;
图 6是本发明实施例六的时间同步方法流程图;  6 is a flowchart of a time synchronization method according to Embodiment 6 of the present invention;
图 7是本发明实施例七的时间同步方法流程图;  7 is a flowchart of a time synchronization method according to Embodiment 7 of the present invention;
图 8是本发明实施例八的时间同步方法信令图;  8 is a signaling diagram of a time synchronization method according to Embodiment 8 of the present invention;
图 9是本发明实施例的客户端的组成示意图;  9 is a schematic diagram of a composition of a client according to an embodiment of the present invention;
图 10是本发明实施例的服务器的组成示意图;  FIG. 10 is a schematic diagram showing the composition of a server according to an embodiment of the present invention; FIG.
图 11是本发明实施例的时间同步系统的组成框图;  11 is a block diagram showing the composition of a time synchronization system according to an embodiment of the present invention;
图 12是本发明实施例提供的 NTP数据格式示意图。  FIG. 12 is a schematic diagram of a NTP data format according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例提供了一种时间同步方法、装置及系统,使用本发明实施例 提供的技术方案, 能够实现客户端和服务器之间的时间同步,从而实现终端与 服务器之间的同步。  The embodiment of the invention provides a time synchronization method, device and system. The technical solution provided by the embodiment of the invention can realize time synchronization between the client and the server, thereby realizing synchronization between the terminal and the server.
上述终端包括客户端和用户。 客户端可以是能够实现移动广播业务的设 备, 例如手机。  The above terminals include a client and a user. The client can be a device capable of implementing a mobile broadcast service, such as a mobile phone.
实施例一  Embodiment 1
本实施例客户端获取时钟信息并根据上述时钟信息实现与服务器时间同 步, 能够使客户端的时间与服务器的时间保持同步。  In this embodiment, the client obtains clock information and implements synchronization with the server time according to the clock information, so that the time of the client can be synchronized with the time of the server.
下面结合附图进行伴细说明。  A detailed description will be given below with reference to the accompanying drawings.
步骤 101 : 客户端获取时钟信息;  Step 101: The client obtains clock information.
客户端可以通过本地底层时钟获取时钟信息,也可以通过服务器获取时钟 信息。 The client can obtain the clock information through the local underlying clock, or obtain the clock through the server. Information.
通过本地底层时钟获取时钟信息可以是客户端获取移动通信网络中的包 含时钟信息的信令消息。  Obtaining clock information through the local underlying clock may be a signaling message that the client acquires clock information in the mobile communication network.
通过服务器获取时钟信息可以是客户端向服务器发送请求,客户端获取服 务器根据请求发送的时钟信息; 也可以是获取服务器定时发送的时钟信息。  The clock information is obtained by the server, and the client sends a request to the server, and the client obtains the clock information sent by the server according to the request; or the clock information sent by the server periodically.
客户端向服务器发送的请求可以是业务指南获取请求或业务指南更新请 求,客户端通过接收包含时钟信息的业务指南获取时钟信息。客户端向服务器 发送的请求也可以是时间同步请求,客户端获取服务器根据时间同步请求发送 的时钟信息。上述时间同步请求中还可以包括保持更新字段,此字段指示客户 端是否要求保持更新,客户端获取时钟信息后还包括获取服务器根据保持更新 字段判断客户端要求保持更新后发送的更新的时钟信息。  The request sent by the client to the server may be a service guide acquisition request or a service guide update request, and the client obtains clock information by receiving a service guide containing the clock information. The request sent by the client to the server may also be a time synchronization request, and the client obtains the clock information sent by the server according to the time synchronization request. The time synchronization request may further include a keep update field, where the field indicates whether the client requests to keep the update, and the client obtains the updated clock information sent by the server after the client requests to keep updating according to the keep update field.
客户端获取服务器定时发送的时钟信息可以通过获取包含时钟信息的小 区广播系统消息、推送消息、非结构化补充数据业务消息中的任一获取时钟信 息。而客户端获取包含时钟信息的小区广播系统消息可以是客户端接收小区广 播系统的媒体流, 从媒体流中提取时钟信息。  The clock information sent by the client to the server periodically can obtain the clock information by acquiring any of the cell broadcast system message, the push message, and the unstructured supplementary data service message including the clock information. The client obtains the cell broadcast system message including the clock information, and the client may receive the media stream of the cell broadcast system, and extract the clock information from the media stream.
步骤 102: 客户端根据所述时钟信息实现与服务器时间同步。  Step 102: The client synchronizes with the server according to the clock information.
客户端根据时钟信息实现与服务器时间同步可以为客户端根据时钟信息 构建新的时钟信息替换本地时钟信息, 并将替换后的时钟信息提供给用户,使 得用户和服务器的时间保持同步。  The client synchronizes with the server according to the clock information. The client can replace the local clock information with the clock information based on the clock information, and provide the replaced clock information to the user, so that the time of the user and the server are synchronized.
客户端根据时钟信息实现与服务器时间同步也可以为客户端将时钟信息 与本地时钟信息建立映射,将映射后的时钟信息提供给用户,使得用户和服务 器的时间保持同步。  The client can synchronize the time with the server according to the clock information, and can also map the clock information and the local clock information to the client, and provide the mapped clock information to the user, so that the time of the user and the server are kept synchronized.
本实施例由于客户端获取时钟信息并根据上述时钟信息实现与服务器时 间同步, 能够使客户端的时间与服务器的时间保持同步,从而可以使用户和服 务器的时间同步, 进而增强了用户体验。  In this embodiment, since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
实施例一是对实现与服务器时间同步方法的总述,下面针对获取时钟信息 的不同方式给出相应的实施例。  Embodiment 1 is a general description of a method for implementing time synchronization with a server, and a corresponding embodiment is given below for different ways of acquiring clock information.
实施例二  Embodiment 2
本实施例提供了一种客户端发起业务指南获取请求或业务指南更新请求 时,服务器将时钟信息随业务指南一起下发给客户端的实现客户端与服务器时 间同步的方案。基本思想是在交互式业务指南中, 当客户端向服务器发起业务 指南获取请求或业务指南更新请求后 ,服务器将时钟信息连同业务指南一起下 发给客户端。 This embodiment provides a client initiated service guide acquisition request or service guide update request. When the server sends the clock information along with the service guide to the client, the client and server time synchronization scheme is implemented. The basic idea is that in the interactive service guide, after the client initiates a service guide acquisition request or a service guide update request to the server, the server sends the clock information along with the service guide to the client.
参见图 2, 具体步骤如下:  See Figure 2, the specific steps are as follows:
步骤 201: 客户端向服务器发送业务指南获取请求或业务指南更新请求; 客户端可以使用请求消息发起请求, 下面是一个请求消息格式举例:  Step 201: The client sends a service guide acquisition request or a service guide update request to the server; the client may initiate the request by using the request message, and the following is an example of a request message format:
POST/HTTP/1.1  POST/HTTP/1.1
Host: www.serviceGuide.com: 8080 业务指南服务器域名及端口 Host: www.serviceGuide.com: 8080 Business Guide Server Domain Name and Port
Content-Type: application/xml 消息体类型 Content-Type: application/xml message body type
Content-Length: 182 消息体长度  Content-Length: 182 message body length
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.10[en] 用户信息  User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 7.10[en] User Information
Date: Sun,20Jul200820:55:22GMT 发起请求的日期和时间  Date: Sun,20Jul200820:55:22GMT Date and time the request was initiated
<?xml version="1.0" encoding="UTF-8"?>  <?xml version="1.0" encoding="UTF-8"?>
<SG Request>  <SG Request>
<type> sgdu + clock— NTP </tpye> 指定所需要的响应格式 <fragment_ID>www.example.com/ service/ 101 </fragment— ID > 所请求 的分片的标识  <type> sgdu + clock— NTP </tpye> Specifies the required response format <fragment_ID>www.example.com/ service/ 101 </fragment— ID > ID of the requested fragment
</SGRequest >  </SGRequest >
上述请求消息由消息头和消息体两部分组成,头域中包含了业务指南服务 器域名及端口、 消息体类型、 消息体长度、 客户端信息、 发起请求日期和时间 等内容。 消息体是一个可扩展标记语言 (Extensible Markup Language, XML ) 文档, 包含了请求的内容, 其中 "<type> sgdu + clock— NTP </tpye> "表示请求 服务器响应业务指南传送单元(Service Guide Delivery Unit, SGDU )和网络 时 间 协议 ( Network Time Protocol , NTP ) 时 间 信 息 , 其 中 "<fragment_ID>www.example.com/service/ 101 </fragment_ID > "表示所请求的 业务分片, 这个分片是封装在业务指南传送单元中的。  The above request message is composed of a message header and a message body. The header field includes the service guide server domain name and port, the message body type, the message body length, the client information, the request request date and time, and the like. The message body is an Extensible Markup Language (XML) document containing the content of the request, where "<type> sgdu + clock- NTP </tpye> " indicates that the request server responds to the Service Guide Delivery Unit (Service Guide Delivery). Unit, SGDU) and Network Time Protocol (NTP) time information, where "<fragment_ID>www.example.com/service/101 </fragment_ID>" indicates the requested service fragment, this fragment is encapsulated In the business guide transfer unit.
步骤 202: 服务器向客户端发送业务指南获取响应或业务指南更新响应; 服务器收到请求后通过在载荷中返回响应的业务指南数据和时钟信息。服 务器响应状态为 "200OK"的请求消息, 根据请求消息返回响应内容。 下面的 消息格式是服务器响应消息的举例。 Step 202: The server sends a service guide acquisition response or a service guide update response to the client. After receiving the request, the server returns the service guide data and clock information of the response in the payload. The server responds with a request message with a status of "200 OK", and returns a response content according to the request message. The following message format is an example of a server response message.
HTTP/1.1 200 0K  HTTP/1.1 200 0K
Server: Apache/2.0.54(Unix) 业务指南服务器信息  Server: Apache/2.0.54 (Unix) Business Guide Server Information
Content— Type: text/xml 消息体类型  Content— Type: text/xml message body type
Content— Length: 168 消息体长度  Content— Length: 168 Message body length
Date: Sun,20Jul200820:58:00GMT 发出消息的日期和时间  Date: Sun,20Jul200820:58:00GMT Date and time the message was sent
<?xml version="1.0" encoding="UTF-8"?>  <?xml version="1.0" encoding="UTF-8"?>
<SG Response>  <SG Response>
<sgdu>  <sgdu>
所请求的业务指南分片 (封装在业务指南传送单元中) Requested Service Guide Fragment (encapsulated in the Service Guide Transfer Unit)
</sgdu> </sgdu>
<clock_NTP>  <clock_NTP>
NTP时间信息  NTP time information
</clock_NTP>  </clock_NTP>
</SG Response> 服务器根据客户端的发来的请求消息返回所请求的业务指南分片以及 NTP时间信息, 这些信息在消息体中携带。 其中 NTP时间信息由 NTP头部和 四个时间戳组成, 共 48个字节。 NTP数据格式参见图 12。  </SG Response> The server returns the requested service guide fragment and NTP time information according to the request message sent by the client, and the information is carried in the message body. The NTP time information consists of an NTP header and four timestamps, which are 48 bytes in total. See Figure 12 for the NTP data format.
图 12NTP数据格式中各数据项具体说明如下:  Figure 12 shows the data items in the NT data format as follows:
1 ) NTP头部, 占 16字节, 分别是: LI: 闰年指示符(2bit ); VN: 版本 号 (3bit ); Stratum: 层 ( 8bit ); Mode: 模式(3bit ); Poll Interval: 查询间隔 1) The NTP header, which is 16 bytes, is: LI: leap year indicator (2bit); VN: version number (3bit); Stratum: layer (8bit); Mode: mode (3bit); Poll Interval: query interval
( 8bit ); Precision: 精度(8bit ); Root delay: 根延迟(32bit ); Root Dispersion: 根差量(32bit ); Reference Identifier: 参考标识符(32bit )。 (8bit); Precision: precision (8bit); Root delay: root delay (32bit); Root Dispersion: root difference (32bit); Reference Identifier: reference identifier (32bit).
2 )四个时间戳, 占 32个字节, 分别是: Reference Timestamp: 参考时间 戳(64bit ); Originate Timestamp: 原始时间戳( 64bit ); Receive Timestamp: 接收时间戳( 64bit ); Transmit Timestamp:传送时间戳( 64bit )。  2) Four timestamps, accounting for 32 bytes, are: Reference Timestamp: Reference timestamp (64bit); Originate Timestamp: Original timestamp (64bit); Receive Timestamp: Receive timestamp (64bit); Transmit Timestamp: Transmit Timestamp (64bit).
3 ) Authenticator: 认证符, 可选项, (96bit )。 NTP数据通常以 XML的形式或二进制格式进行封装。以 XML形式为例, NTP各数据项可以作为元素¾1001^— NTP>的子元素的形式放置在 HTTP响应消 息体中。 客户端收到响应消息后, 解析这些元素, 重新构建 NTP数据, 进而 进行时间同步处理。 3) Authenticator: Authenticator, optional, (96bit). NTP data is usually encapsulated in XML or binary format. Taking the XML form as an example, the NTP data items can be placed in the HTTP response message body as a child element of the element 3⁄41001^-NTP>. After receiving the response message, the client parses these elements, reconstructs the NTP data, and performs time synchronization processing.
时钟信息也可以作为业务指南中的一个分片,即在业务指南中新增一个时 钟信息分片, 与其他业务指南分片一样, 该分片也有唯一的标识。 用户可以通 过请求获取或更新时钟信息分片获得同步时间。  The clock information can also be used as a shard in the service guide. That is, a new clock information fragment is added to the service guide. Like other service guide shards, the shard also has a unique identifier. The user can obtain the synchronization time by requesting to acquire or update the clock information fragment.
以上消息格式以及携带数据的方式仅是举例 ,也可以通过其他消息和携带 方式实现, 涉及的思想是一致的。 另外在服务器响应的 200OK 消息头域中 "Date"字段表示服务器发出消息的日期和时间 , 对于时间精度要求不高的情 况, 客户端也可以将该时间作为同步时间与服务器同步。  The above message format and the way to carry the data are only examples, and can also be implemented by other messages and carrying methods, and the ideas involved are consistent. In addition, in the 200OK header field of the server response, the "Date" field indicates the date and time when the server sent the message. For the case where the time precision is not high, the client can also synchronize the time with the server as the synchronization time.
步骤 203: 客户端在获取时钟信息后, 根据时钟信息实现与服务器时间同 步。  Step 203: After obtaining the clock information, the client synchronizes with the server time according to the clock information.
根据时钟信息实现与服务器的同步, 可以有两种方式:  According to the clock information to achieve synchronization with the server, there are two ways:
方式一:客户端将时钟信息提取后,将根据该时钟信息构建的新的时钟信 息替换本地时钟信息, BCAST用户需要时间信息时参考客户端本地时钟即可。  Manner 1: After the client extracts the clock information, the local clock information is replaced by the new clock information constructed according to the clock information. When the BCAST user needs time information, the client local clock can be referred to.
方式二:客户端将时钟信息与本地时钟信息建立映射, 并不修改客户端本 地时间, 将客户端本地时间映射到 BCAST用户所需要的时间, 供 BCAST用 户使用。  Manner 2: The client maps the clock information to the local clock information, does not modify the local time of the client, and maps the client local time to the time required by the BCAST user for use by the BCAST user.
本实施例客户端通过向服务器发送业务指南获取请求或业务指南更新请 求,接收服务器发送的包含时钟信息的业务指南,根据时钟信息实现与服务器 时间同步, 进而可以使得终端与服务器时间同步, 增强了用户体验。  In this embodiment, the client sends a service guide acquisition request or a service guide update request to the server, receives a service guide that is sent by the server and includes the clock information, and synchronizes with the server according to the clock information, thereby enabling the terminal to synchronize with the server time and enhancing the time. user experience.
实施例二是客户端向服务器发送请求实现时间同步的方法,下面阐述一种 服务器通过小区广播系统向客户端发送时钟信息的实施例。  The second embodiment is a method for the client to send a request to the server to implement time synchronization. The following describes an embodiment in which the server sends clock information to the client through the cell broadcast system.
实施例三  Embodiment 3
本实施例提供了一种通过小区广播系统向客户端发送时钟信息的实现方 案。基本思想是服务器周期性的或定时向客户端下发时钟信息,客户端接收到 时钟信息后进行同步。这种方式的特点是不需要区分客户端, 小区范围内的所 有客户端都能收到时钟信息。 参见图 3 , 具体流程如下: This embodiment provides an implementation scheme for sending clock information to a client through a cell broadcast system. The basic idea is that the server periodically sends clock information to the client periodically or periodically, and the client synchronizes after receiving the clock information. This feature is characterized by the fact that there is no need to distinguish between clients, and all clients in the cell range can receive clock information. Referring to Figure 3, the specific process is as follows:
步骤 301 : 服务器定时将时钟信息转发给小区广播系统;  Step 301: The server periodically forwards the clock information to the cell broadcast system.
服务器通常周期性的向小区广播系统转发时间信息。  The server typically periodically forwards time information to the cell broadcast system.
步骤 302: 小区广播系统将时钟信息封装在小区广播消息中进行广播; 如果时钟信息过大,可以在封装之前将时钟信息进行压缩,也可以将时钟 消息拆分成几条小区广播消息编号后进行下发。  Step 302: The cell broadcast system encapsulates the clock information in a cell broadcast message for broadcasting. If the clock information is too large, the clock information may be compressed before being encapsulated, or the clock message may be split into several cell broadcast message numbers. Issued.
步骤 303: 客户端监听广播时钟信息的小区广 言道, 当收到小区广播信 息后解析出时钟信息。  Step 303: The cell that the client listens to the broadcast clock information speaks, and parses the clock information after receiving the cell broadcast information.
客户端只有配置了相关的信道参数才能够监听到广播时钟信息的小区广 播信道。 客户端通过固化的小区广播地址, 或者通过设备管理、 配置方式、 客 户端预置或者手动配置的方式获得时钟信息的地址。  The client can only listen to the cell broadcast channel of the broadcast clock information if the relevant channel parameters are configured. The client obtains the address of the clock information through the cured cell broadcast address, or through device management, configuration mode, client preset, or manual configuration.
上述是采用小区广播下发时钟信息的方式,还可以采取其他方式,如推送 消息方式中将时钟信息以 XML的形式携带在推送消息体中。 或者在小区广播 系统消息的净荷中携带时钟信息。还可以将时钟信息以非结构化补充数据业务 方式下发。  The foregoing is a method in which the clock information is sent by the cell broadcast, and other methods may be adopted. For example, in the push message mode, the clock information is carried in the form of XML in the push message body. Or carrying clock information in the payload of the cell broadcast system message. The clock information can also be delivered in an unstructured supplementary data service.
步骤 304与步骤 203相同 , 此处不再赘述。  Step 304 is the same as step 203, and details are not described herein again.
本实施例客户端通过获取包含时钟信息的小区广播系统消息获得时钟信 息, 根据时钟信息实现与服务器时间同步, 进一步地, 客户端通过获取包含时 钟信息的非结构化补充数据业务消息获得时钟信息,根据时钟信息实现与服务 器时间同步, 能够使得客户端与服务器的时间同步,进而使得终端与服务器的 时间同步, 增强了用户体验。  In this embodiment, the client obtains the clock information by acquiring the cell broadcast system message including the clock information, and synchronizes with the server according to the clock information. Further, the client obtains the clock information by acquiring the unstructured supplementary data service message including the clock information. Synchronizing with the server according to the clock information enables the time of the client and the server to be synchronized, thereby synchronizing the time between the terminal and the server, and enhancing the user experience.
实施例三阐述了一种通过小区广播系统向客户端发送时钟信息的实现时 间同步的方法, 下面阐述一种通过推送方式向客户端下发时钟信息的实施例。  The third embodiment describes a method for implementing time synchronization of sending clock information to a client through a cell broadcast system. An embodiment of sending clock information to a client by means of a push mode is described below.
实施例四  Embodiment 4
本实施例提供了一种通过推送方式向客户端下发时钟信息的实现时间同 步的方法。 基本思想是将时钟信息以 XML或二进制等形式封装在推送消息体 中, 通过推送消息下发到客户端。  This embodiment provides a method for implementing time synchronization of issuing clock information to a client by means of a push. The basic idea is to encapsulate the clock information in the form of XML or binary in the push message body, and deliver the message to the client through the push message.
参见图 4, 具体流程如下:  Referring to Figure 4, the specific process is as follows:
步骤 401 : 服务器将时钟信息交给推送代理网关; 步骤 402: 推送代理网关将时钟信息封装在相关的推送消息中下发到客户 端; Step 401: The server hands the clock information to the push proxy gateway. Step 402: The push proxy gateway encapsulates the clock information in the relevant push message and sends the clock information to the client.
下面给出一种推送消息携带时钟信息的例子:  An example of a push message carrying clock information is given below:
MESSAGE sip:user2@domain.com SIP/2.0  MESSAGE sip:user2@domain.com SIP/2.0
Via: SIP/2.0/TCP userlpc.domain.com; branch=z9hG4bK776sgdkse Max-Forwards: 70  Via: SIP/2.0/TCP userlpc.domain.com; branch=z9hG4bK776sgdkse Max-Forwards: 70
P-Asserted-Identity: "John Doe" <sip:john.doe@homel .net>  P-Asserted-Identity: "John Doe" <sip:john.doe@homel .net>
From: sip:user@PushSenderAgent.domain.com; tag=49583  From: sip:user@PushSenderAgent.domain.com; tag=49583
To: sip:user@PushReceiverAgent.domain.com  To: sip:user@PushReceiverAgent.domain.com
Accept-Contact: *; +g.oma.pusheventapp=" mms.ua"  Accept-Contact: *; +g.oma.pusheventapp=" mms.ua"
Call-ID: asd88asd77a@1.2.3.4  Call-ID: asd88asd77a@1.2.3.4
CSeq: 1 MESSAGE  CSeq: 1 MESSAGE
Content-Type: text/plain  Content-Type: text/plain
Content-Length: 18  Content-Length: 18
2 Push Receiver Agent returns a 200 OK to Push Sender Agent  2 Push Receiver Agent returns a 200 OK to Push Sender Agent
SIP/2.0 200 OK  SIP/2.0 200 OK
Via: SIP/2.0/TCP proxy.domain.com; branch=z9hG4bK 123 dsghds; received=192.0.2.1  Via: SIP/2.0/TCP proxy.domain.com; branch=z9hG4bK 123 dsghds; received=192.0.2.1
Via: SIP/2.0/TCP userlpc.domain.com; branch=z9hG4bK776sgdkse;  Via: SIP/2.0/TCP userlpc.domain.com; branch=z9hG4bK776sgdkse;
received=1.2.3.4  Received=1.2.3.4
From: sip:user@PushReceiverAgent.domain.com; tag=49394  From: sip:user@PushReceiverAgent.domain.com; tag=49394
To: sip:user@ PushsenderAgent.domain.com; tag=ab8asdasd9  To: sip:user@ PushsenderAgent.domain.com; tag=ab8asdasd9
Call-ID: asd88asd77a@1.2.3.4  Call-ID: asd88asd77a@1.2.3.4
CSeq: 1 MESSAGE  CSeq: 1 MESSAGE
Content-Length: 152  Content-Length: 152
时钟信息  Clock information
时钟信息以 XML形式或二进制形式携带在上述消息体中。 该消息的头域 中 "To: sip: user@PushsenderAgent.domain.com;tag=ab8asdasd9" 指示了推送 消息的目的地址,该地址可以是一个客户端的地址,也可以是一个群组的地址。 步骤 403: 客户端收到推送消息后解析出时钟信息进行处理。 解析出时钟信息后的步骤 404同步骤 203, 此处不再赞述。 The clock information is carried in the above message body in XML form or in binary form. The header field of the message "To: sip: user@PushsenderAgent.domain.com;tag=ab8asdasd9" indicates the destination address of the push message, which can be either a client address or a group address. Step 403: After receiving the push message, the client parses the clock information for processing. Step 404 after the clock information is parsed is the same as step 203, and is not mentioned here.
在全球移动通信系统中 ,还可以利用非结构化补充数据业务系统提供时钟 信息,可以通过网络侧发起的非结构化补充数据业务通知的方式来实现, 时钟 信息在通知消息中携带。  In the global mobile communication system, the unstructured supplementary data service system can also be used to provide clock information, which can be implemented by means of unstructured supplementary data service notification initiated by the network side, and the clock information is carried in the notification message.
本实施例客户端获取推送代理网关发送包含时钟信息的推送消息得到时 钟信息,根据时钟信息实现与服务器时间同步, 能够使得客户端与服务器的时 间同步, 进而使得终端与服务器的时间同步, 增强了用户体验。  In this embodiment, the client obtains the push message sent by the push proxy gateway to obtain the clock information, and synchronizes with the server according to the clock information, which can synchronize the time between the client and the server, thereby synchronizing the time between the terminal and the server, and enhancing the time. user experience.
实施例四阐述了一种通过推送方式向客户端下发时钟信息的实现时间同 步的方法,下面阐述一种客户端通过交互网络请求时钟信息以实现时间同步的 实施例。  The fourth embodiment describes a method for implementing time synchronization of sending clock information to a client by means of a push. The following describes an embodiment in which a client requests clock information through an interactive network to implement time synchronization.
实施例五  Embodiment 5
本实施例提供了一种客户端通过交互网络请求时钟信息以实现时间同步 的方法。 主要思想是客户端主动发起请求信息, 要求获得时钟信息, 服务器根 据请求返回时钟信息。  This embodiment provides a method for a client to request clock information through an interactive network to implement time synchronization. The main idea is that the client actively initiates the request information, requesting the clock information, and the server returns the clock information according to the request.
参见图 5, 本实施例流程如下:  Referring to FIG. 5, the flow of this embodiment is as follows:
步骤 501 : 客户端向服务器发起时间同步请求;  Step 501: The client initiates a time synchronization request to the server.
时间同步请求用于请求获得时钟信息, 请求消息的格式举例如下:  The time synchronization request is used to request the clock information. The format of the request message is as follows:
GET/example.com/time.html HTTP/ 1.1  GET/example.com/time.html HTTP/ 1.1
Host: www.clock_Server.com:8080  Host: www.clock_Server.com:8080
Connection: close  Connection: close
User-agent:Mozilla/4.0  User-agent: Mozilla/4.0
keep-update: true  Keep-update: true
可以在上述请求消息中扩展了保持更新 ( keep-update )字段, 表示是否要 求服务器在请求之后定期将更新的时钟发送给客户端。 如果该字段取值为 "true" ,则服务器在收到客户端请求消息后,定时将更新的时钟信息发送给客 户端。  A keep-update field may be extended in the above request message to indicate whether the server is required to periodically send the updated clock to the client after the request. If the value of this field is "true", the server periodically sends the updated clock information to the client after receiving the client request message.
请求消息有多种发起方式,可以根据实际需要而设置。如用户每次打开客 户端的时候就自动发起一个请求, 也可以由用户手动发起请求等。 步骤 502: 服务器根据客户端请求返回时钟信息; There are multiple ways to initiate a request message, which can be set according to actual needs. For example, the user automatically initiates a request each time the client is opened, or the user can manually initiate a request. Step 502: The server returns clock information according to the client request.
服务器收到客户端发起的请求后, 将时钟信息, 例如 NTP数据, 携带在 After receiving the request initiated by the client, the server carries clock information, such as NTP data, in
200OK消息中作为响应, 消息格式举例如下: In response to the 200 OK message, an example of the message format is as follows:
HTTP/1.1 200 0K  HTTP/1.1 200 0K
Date: Thu,13 Oct 2007 03:17:33 GMT  Date: Thu, 13 Oct 2007 03:17:33 GMT
S erver: Apache/2.0.54(Unix)  S erver: Apache/2.0.54 (Unix)
Last— Modified:Mon,22 Jun 2007 09;23;24 GMT  Last— Modified: Mon, 22 Jun 2007 09; 23; 24 GMT
Content— Length:6821  Content— Length: 6821
Content ~~ Type: text/xml  Content ~~ Type: text/xml
(NTP数据…… )  (NTP data...)
时钟信息,例如 NTP数据,是以二进制形式或 XML文档的形式携带在消息 体中的。  Clock information, such as NTP data, is carried in the body of the message in binary form or as an XML document.
步骤 503:如果客户端请求中要求服务器保持更新,即 "keep-update=true" , 则服务器会定期向客户端下发更新的时钟信息。  Step 503: If the server requests the server to keep updating, that is, "keep-update=true", the server periodically sends updated clock information to the client.
步骤 504: 客户端根据时钟信息实现与服务器时间同步。  Step 504: The client synchronizes with the server according to the clock information.
此步骤与步骤 203相同 , 此处不再赞述。  This step is the same as step 203 and will not be mentioned here.
本实施例客户端通过单独的请求命令获取时钟信息,根据时钟信息实现与 服务器时间同步,独立于业务指南架构,使得不用依赖业务指南架构就能实现 终端与服务器时间同步, 增强了用户体验。  In this embodiment, the client obtains clock information through a separate request command, synchronizes with the server according to the clock information, and is independent of the service guide architecture, so that the terminal and the server can be time synchronized without relying on the service guide architecture, thereby enhancing the user experience.
实施例五提供了一种客户端通过交互网络请求时钟信息以实现时间同步 的方法,下面阐述一种客户端从广播节目流中提取时钟信息以实现时间同步的 实施例。  Embodiment 5 provides a method for a client to request clock information through an interactive network to implement time synchronization. An embodiment in which a client extracts clock information from a broadcast program stream to implement time synchronization is described below.
实施例六  Embodiment 6
本实施例提供了一种客户端从广播节目流中提取时间信息以实现时间同 步的方法。基本思想是媒体流或节目流中包含时间戳,客户端在接收媒体流的 过程中将媒体流中的时间信息提取出来, 供 BCAST用户使用。  This embodiment provides a method for a client to extract time information from a broadcast program stream to implement time synchronization. The basic idea is that the media stream or the program stream contains a time stamp, and the client extracts the time information in the media stream in the process of receiving the media stream for use by the BCAST user.
参见图 6, 具体流程如下:  See Figure 6, the specific process is as follows:
步骤 601 : 客户端开始接收多媒体广播系统的媒体流;  Step 601: The client starts to receive the media stream of the multimedia broadcast system.
媒体流可以通过不同的媒体传输通道传送,如数字视频广播系统采用传输 流, 移动交互网络通常采用实时传输协议或实时传输控制协议传送。 步骤 602: 客户端从媒体流中提取广播时间。 Media streams can be transmitted through different media transmission channels, such as digital video broadcasting systems. Streams, mobile interactive networks are usually transmitted using real-time transport protocols or real-time transport control protocols. Step 602: The client extracts the broadcast time from the media stream.
媒体流中包含时间信息, 用于媒体控制、 系统同步等, 如实时传输协议中 的时间戳通常用于音视频流的同步和快进倒退等控制 ,因此客户端可以将这些 时间信息提取出来。  The media stream contains time information for media control, system synchronization, etc. For example, the timestamp in the real-time transport protocol is usually used for synchronization of audio and video streams and fast forward and backward control, so the client can extract the time information.
步骤 603: 客户端将提取出的时间进行处理 , 转换为 BCAST用户需要的 格式。  Step 603: The client processes the extracted time and converts it into a format required by the BCAST user.
客户端根据需要将提取出的时间进行处理。  The client processes the extracted time as needed.
步骤 604: 将转换后的时间提供给 BCAST用户使用。  Step 604: Provide the converted time to the BCAST user for use.
BCAST可以将该时间进行不同应用, 如显示给用户, 或者当用户进行某 些时间相关的操作时将该时间作为参考时间等。  BCAST can use this time for different applications, such as display to the user, or when the user performs some time-related operations as the reference time.
本实施例客户端通过接收媒体流,从媒体流中提取时钟信息并转换为用户 需要的格式, 将转换后的时间供 BCAST用户使用, 使得 BCAST用户与服务 器时间同步, 增强了用户体 ^。  In this embodiment, the client receives the media stream, extracts the clock information from the media stream, and converts it into a format required by the user, and uses the converted time for the BCAST user to synchronize the time of the BCAST user with the server, thereby enhancing the user body.
实施例六阐述了一种客户端从广播节目流中提取时间信息以实现时间同 步的方法,下面阐述一种同步移动通信网络中利用网络同步时间同步客户端的 实施例。  Embodiment 6 describes a method in which a client extracts time information from a broadcast program stream to implement time synchronization. An embodiment of synchronizing a client using a network synchronization time in a synchronous mobile communication network is described below.
实施例七  Example 7
本实施例提供了一种同步移动通信网络中,利用网络同步时间同步客户端 以实现时间同步的方法。 在时分同步码分多址、 码分多址 2000等系统中, 各 基站之间靠全球定位系统时间达到同步。本实施例的基本思想是提取传输网络 信令层面的时间信息供 BCAST用户使用。  This embodiment provides a method for synchronizing a client by using a network synchronization time to synchronize time in a synchronous mobile communication network. In systems such as time division synchronous code division multiple access and code division multiple access 2000, the base stations are synchronized by the global positioning system time. The basic idea of this embodiment is to extract the time information of the signaling layer of the transport network for use by the BCAST user.
参见图 7, 具体流程为:  See Figure 7, the specific process is:
步骤 701 : 客户端通过本地底层时钟获取时钟信息;  Step 701: The client obtains clock information through the local underlying clock.
例如在同步移动通信网络中,可以在信令中携带基站的时间信息,客户端 获取上述信令信息。  For example, in the synchronous mobile communication network, time information of the base station may be carried in the signaling, and the client obtains the foregoing signaling information.
步骤 702: 客户端根据该时间校正本地时间达到与基站的同步。  Step 702: The client corrects the local time according to the time to achieve synchronization with the base station.
本实施例客户端通过获取移动通信网络中的包含时钟信息的信令消息获 得时钟信息,根据时钟信息校正本地时间达到与移动通信网络的时间同步, 能 够实现客户端与服务器时间同步, 进而增强了用户体验。 In this embodiment, the client obtains clock information by acquiring a signaling message including clock information in the mobile communication network, and corrects the local time according to the clock information to achieve time synchronization with the mobile communication network. The client and server time synchronization is achieved, which enhances the user experience.
实施例七阐述了一种利用网络同步时间同步客户端以实现时间同步的方 法,下面阐述一种客户端通过非结构化补充数据业务请求获取时钟信息以实现 时间同步的实施例。  The seventh embodiment describes a method for synchronizing a client by using a network synchronization time to realize time synchronization. The following describes an embodiment in which a client obtains clock information through an unstructured supplementary data service request to implement time synchronization.
实施例八  Example eight
本实施例阐述了一种客户端通过非结构化补充数据业务请求获取时钟信 息以实现时间同步的方法,主要思想是客户端主动发起非结构化补充数据业务 请求, 要求获得时钟信息, 服务器根据请求消息返回时钟信息。  This embodiment describes a method for a client to obtain clock information through an unstructured supplementary data service request to implement time synchronization. The main idea is that the client actively initiates an unstructured supplementary data service request, and obtains clock information, and the server requests the server according to the request. The message returns clock information.
参见图 8, 本实施例的流程为:  Referring to Figure 8, the flow of this embodiment is:
步骤 801 : 客户端向服务器发起非结构化补充数据业务请求, 上述请求消 息中包含时钟请求;  Step 801: The client initiates an unstructured supplementary data service request to the server, where the request message includes a clock request.
请求消息可以有多种发起方式,可以根据实际需要而设置。如用户每次打 开客户端的时候就自动发起一个请求, 也可以由用户手动发起请求等。  The request message can have multiple initiation methods, which can be set according to actual needs. For example, the user automatically initiates a request each time the client opens the client, or the user can manually initiate a request.
步骤 802:服务器根据请求消息,将服务器的时钟信息在响应消息中携带, 发送给客户端;  Step 802: The server carries the clock information of the server in the response message according to the request message, and sends the message to the client.
如果服务器没有时钟信息, 则服务器向 NTP服务器请求获取 NTP时间信 息, NTP服务器根据请求返回 NTP时间。  If the server does not have clock information, the server requests the NTP server to obtain the NTP time information, and the NTP server returns the NTP time according to the request.
步骤 803与步骤 203相同 , 此处不再赘述。  Step 803 is the same as step 203, and details are not described herein again.
本实施例客户端通过向服务器发送包含时钟请求的非结构化补充数据业 务请求,获取服务器根据上述请求发送的时钟信息,根据时钟信息实现与服务 器时间同步, 能够使得客户端与服务器的时间同步,进而使得终端与服务器的 时间同步, 增强了用户体验。  In this embodiment, the client sends the unstructured supplementary data service request including the clock request to the server, obtains the clock information sent by the server according to the request, and synchronizes with the server according to the clock information, so that the time between the client and the server can be synchronized. In turn, the time of the terminal and the server are synchronized, and the user experience is enhanced.
上面的实施例阐述了时间同步方法, 下面阐述相关装置。  The above embodiment illustrates the time synchronization method, and the related apparatus is explained below.
参见图 9, 一种客户端, 包括:  See Figure 9, a client, including:
时钟信息获取单元 901, 用于获取时钟信息;  The clock information acquiring unit 901 is configured to acquire clock information.
时钟管理单元 902,用于根据时钟信息获取单元 901获取的时钟信息实现与 服务器时间同步。  The clock management unit 902 is configured to perform time synchronization with the server according to the clock information acquired by the clock information acquiring unit 901.
其中, 上述客户端还可以包括:  The above client may further include:
请求发送单元, 用于向服务器发送请求; 时钟信息获取单元 901用于获取服务器根据上述请求发送的时钟信息。 其中,上述请求发送单元还可以用于向服务器发送业务指南获取请求或业 务指南更新请求; 时钟信息获取单元 901还可以包括: a request sending unit, configured to send a request to the server; The clock information obtaining unit 901 is configured to acquire clock information sent by the server according to the foregoing request. The request sending unit may be further configured to send a service guide obtaining request or a service guide update request to the server. The clock information acquiring unit 901 may further include:
业务指南处理单元, 用于接收服务器发送的业务指南,上述业务指南包含 时钟信息;  a service guide processing unit, configured to receive a service guide sent by the server, where the service guide includes clock information;
提取单元, 用于从业务指南处理单元接收的上述业务指南中提取时钟信 上述客户端可以用于实现上述时间同步方法, 但不限于实现该方法。  And an extracting unit, configured to extract a clock message from the foregoing service guide received by the service guide processing unit. The client may be used to implement the foregoing time synchronization method, but is not limited to implementing the method.
参见图 10, —种服务器, 包括:  See Figure 10, a server that includes:
时钟提供单元 1001 , 用于从网络时间协议服务器、 移动广播业务服务器、 内容服务器、 独立的全球定位系统模块中的任一获得时钟信息;  a clock providing unit 1001, configured to obtain clock information from any one of a network time protocol server, a mobile broadcast service server, a content server, and a separate global positioning system module;
时钟信息发送单元 1002,用于向客户端发送时钟提供单元 1001提供的上述 时钟信息。  The clock information transmitting unit 1002 is configured to send the foregoing clock information provided by the clock providing unit 1001 to the client.
上述服务器可以用于实现上述时间同步方法, 但不限于实现该方法。  The above server may be used to implement the above time synchronization method, but is not limited to implementing the method.
上面阐述了实现时间同步方法的相关装置, 下面阐述一种时间同步系统。 参见图 11 , 一种时间同步系统, 包括:  The related apparatus for realizing the time synchronization method is explained above, and a time synchronization system is explained below. Referring to FIG. 11, a time synchronization system includes:
服务器 1101 ,用于从网络时间协议服务器或移动广播业务服务器或内容服 务器或独立的全球定位系统模块中的任一获得时钟信息,并向客户端 1102发送 时钟信息;  The server 1101 is configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module, and send clock information to the client 1102;
客户端 1102, 用于获取时钟信息, 根据上述时钟信息实现与服务器 1101 时间同步。  The client 1102 is configured to obtain clock information, and implement time synchronization with the server 1101 according to the foregoing clock information.
本发明实施例由于客户端获取时钟信息并根据上述时钟信息实现与服务 器时间同步, 能够使客户端的时间与服务器的时间保持同步,从而可以使用户 和服务器的时间同步, 进而增强了用户体验。  In the embodiment of the present invention, since the client obtains the clock information and synchronizes with the server according to the clock information, the time of the client can be synchronized with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
进一步地,客户端通过本地底层时钟或服务器获取时钟信息, 并根据上述 时钟信息实现与服务器时间同步,能够使客户端的时间与服务器的时间保持同 步, 从而可以使用户和服务器的时间同步, 进而增强了用户体验。  Further, the client obtains clock information through the local underlying clock or the server, and synchronizes with the server according to the clock information, so that the time of the client and the time of the server are synchronized, thereby synchronizing the time of the user and the server, thereby enhancing The user experience.
进一步地,客户端获取服务器通过包含时钟信息的小区广播系统消息、推 送消息、非结构化补充数据业务消息中的任一获得时钟信息, 并根据上述时钟 信息实现与服务器时间同步, 能够使客户端的时间与服务器的时间保持同步, 从而可以使用户和服务器的时间同步, 进而增强了用户体验。 Further, the client acquisition server obtains clock information by using any one of a cell broadcast system message, a push message, and an unstructured supplementary data service message including clock information, and according to the clock The information is synchronized with the server time, which can synchronize the time of the client with the time of the server, so that the time of the user and the server can be synchronized, thereby enhancing the user experience.
进一步地,客户端通过向服务器发送请求获得时钟信息, 并根据上述时钟 信息实现与服务器时间同步, 能够使客户端的时间与服务器的时间保持同步, 从而可以使用户和服务器的时间同步, 进而增强了用户体验。  Further, the client obtains clock information by sending a request to the server, and synchronizes with the server according to the clock information, so that the time of the client and the time of the server are synchronized, thereby synchronizing the time of the user and the server, thereby enhancing the time. user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 该程序在执行时, 包括如下步骤:  It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing embodiments may be performed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium. , including the following steps:
客户端获取时钟信息;  The client obtains clock information;
客户端根据上述时钟信息实现与服务器时间同步。  The client synchronizes with the server according to the above clock information.
上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  The above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上对本发明实施例所提供的一种时间同步方法、装置及系统进行了详细 介绍, 以上实施例的说明只是用于帮助理解本发明的方法及其思想; 同时, 对 于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上 均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The time synchronization method, device and system provided by the embodiments of the present invention are described in detail. The description of the above embodiments is only for helping to understand the method and the idea of the present invention. Meanwhile, for those skilled in the art, The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种时间同步方法, 其特征在于, 包括:  A time synchronization method, comprising:
客户端获取时钟信息;  The client obtains clock information;
客户端根据所述时钟信息实现与服务器时间同步。  The client synchronizes with the server according to the clock information.
2、根据权利要求 1所述的时间同步方法, 其特征在于, 所述客户端获取时 钟信息具体为:  The time synchronization method according to claim 1, wherein the information obtained by the client is specifically:
所述客户端通过本地底层时钟获取时钟信息。  The client obtains clock information through a local underlying clock.
3、根据权利要求 2所述的时间同步方法, 其特征在于, 所述客户端通过本 地底层时钟获取时钟信息具体为:  The time synchronization method according to claim 2, wherein the client obtains clock information through the local bottom clock:
所述客户端获取移动通信网络中的信令消息,所述信令消息中包含时钟信  The client acquires a signaling message in a mobile communication network, where the signaling message includes a clock message
4、根据权利要求 1所述的时间同步方法, 其特征在于, 所述客户端获取时 钟信息具体为: The time synchronization method according to claim 1, wherein the information obtained by the client is specifically:
所述客户端通过服务器获取时钟信息。  The client obtains clock information through a server.
5、根据权利要求 4所述的时间同步方法, 其特征在于, 所述客户端通过服 务器获取时钟信息具体为:  The time synchronization method according to claim 4, wherein the client obtains clock information through the server:
所述客户端获取服务器定时发送的时钟信息。  The client obtains clock information that is sent by the server at a time.
6、根据权利要求 5所述的时间同步方法, 其特征在于, 所述客户端获取服 务器定时发送的时钟信息具体为:  The time synchronization method according to claim 5, wherein the clock information periodically sent by the client acquisition server is specifically:
所述客户端获取包含时钟信息的小区广播系统消息或推送消息或非结构 化补充数据业务消息。  The client obtains a cell broadcast system message or a push message or an unstructured supplementary data service message containing clock information.
7、根据权利要求 4所述的时间同步方法, 其特征在于, 客户端通过服务器 获取时钟信息前还包括:  The time synchronization method according to claim 4, wherein before the client obtains the clock information through the server, the method further includes:
所述客户端向服务器发送请求;  The client sends a request to the server;
所 i½户端通过服务器获取时钟信息具体为:  The i1⁄2 client obtains the clock information through the server as follows:
所 i½户端获取所述服务器根据所述请求发送的时钟信息。  The i1⁄2 client obtains clock information sent by the server according to the request.
8、 根据权利要求 7所述的时间同步方法, 其特征在于,  8. The time synchronization method according to claim 7, wherein:
所述客户端向服务器发送请求具体为:所述客户端向服务器发送业务指南 获取请求或业务指南更新请求; 所述客户端获取所述服务器根据所述请求发送的时钟信息具体为:客户端 接收所述服务器发送的业务指南, 所述业务指南包含时钟信息。 The sending, by the client, the request to the server is: the client sends a service guide acquisition request or a service guide update request to the server; The acquiring, by the client, the clock information sent by the server according to the request is: the client receives the service guide sent by the server, and the service guide includes clock information.
9、 根据权利要求 7所述的时间同步方法, 其特征在于,  9. The time synchronization method according to claim 7, wherein:
所述客户端向服务器发送请求具体为:所述客户端向服务器发送时间同步 请求;  The sending, by the client, the request to the server is: the client sends a time synchronization request to the server;
所述客户端获取所述服务器根据所述请求发送的时钟信息具体为:客户端 获取所述服务器根据所述时间同步请求发送的时钟信息。  The acquiring, by the client, the clock information sent by the server according to the request is: the client acquiring clock information sent by the server according to the time synchronization request.
10、 根据权利要求 9所述的时间同步方法, 其特征在于, 所述时间同步请 求还包括保持更新字段;  10. The time synchronization method according to claim 9, wherein the time synchronization request further comprises a keep update field;
所述客户端获取所述服务器根据所述时间同步请求发送的时钟信息后还 包括:  After the client obtains the clock information sent by the server according to the time synchronization request, the method further includes:
客户端获取所述服务器根据所述保持更新字段发送的更新的时钟信息,所 述更新的时钟信息为所述服务器根据所述保持更新字段判断客户端要求保持 更新后发送的。  The client obtains updated clock information sent by the server according to the keep update field, and the updated clock information is sent by the server after determining that the client requests to keep updating according to the keep update field.
11、 根据权利要求 7所述的时间同步方法, 其特征在于,  11. The time synchronization method according to claim 7, wherein:
所述客户端向服务器发送请求具体为:所述客户端向服务器发送非结构化 补充数据业务请求;  The sending, by the client, the request to the server is: the client sending an unstructured supplementary data service request to the server;
所述客户端获取所述服务器根据所述请求发送的时钟信息具体为:客户端 获取所述服务器根据所述非结构化补充数据业务请求发送的时钟信息。  The acquiring, by the client, the clock information sent by the server according to the request is: the client acquiring clock information sent by the server according to the unstructured supplementary data service request.
12、 根据权利要求 1所述的时间同步方法, 其特征在于, 所述客户端获取 时钟信息具体为:  The time synchronization method according to claim 1, wherein the acquiring the clock information by the client is specifically:
所述客户端通过多媒体广播节目流获取时钟信息。  The client obtains clock information through a multimedia broadcast program stream.
13、 根据权利要求 1至 12任一项所述的时间同步方法, 其特征在于, 所述 客户端根据所述时钟信息实现与服务器时间同步具体为:  The time synchronization method according to any one of claims 1 to 12, wherein the client time synchronization with the server according to the clock information is specifically:
所述客户端根据所述时钟信息构建新的时钟信息替换本地时钟信息,将替 换后的时钟信息提供给用户。  The client constructs new clock information according to the clock information to replace the local clock information, and provides the replaced clock information to the user.
14、 根据权利要求 1至 12任一项所述的时间同步方法, 其特征在于, 所述 客户端根据所述时钟信息实现与服务器时间同步具体为:  The time synchronization method according to any one of claims 1 to 12, wherein the client time synchronization with the server according to the clock information is specifically:
所述客户端将所述时钟信息与本地时钟信息建立映射,将映射后的时钟信 息提供给用户。 The client maps the clock information with local clock information, and maps the clock signal Information is provided to the user.
15、 一种客户端, 其特征在于, 包括:  15. A client, characterized in that:
时钟信息获取单元, 用于获取时钟信息;  a clock information acquiring unit, configured to acquire clock information;
时钟管理单元,用于根据所述时钟信息获取单元获取的时钟信息实现与服 务器时间同步。  The clock management unit is configured to implement time synchronization with the server according to the clock information acquired by the clock information acquiring unit.
16、 根据权利要求 15所述的客户端, 其特征在于, 还包括:  The client according to claim 15, further comprising:
请求发送单元, 用于向服务器发送请求;  a request sending unit, configured to send a request to the server;
所述时钟信息获取单元用于获取所述服务器根据所述请求发送的时钟信 息。  The clock information obtaining unit is configured to acquire clock information sent by the server according to the request.
17、根据权利要求 16所述的客户端, 其特征在于, 所述请求发送单元用于 向服务器发送业务指南获取请求或业务指南更新请求;  The client according to claim 16, wherein the request sending unit is configured to send a service guide acquisition request or a service guide update request to the server;
所述时钟信息获取单元包括:  The clock information acquiring unit includes:
业务指南处理单元, 用于接收所述服务器发送的业务指南, 所述业务指南 包含时钟信息;  a service guide processing unit, configured to receive a service guide sent by the server, where the service guide includes clock information;
提取单元, 用于从所述业务指南处理单元接收的业务指南中提取时钟信  An extracting unit, configured to extract a clock letter from a service guide received by the service guide processing unit
18、 一种服务器, 其特征在于, 包括: 18. A server, comprising:
时钟提供单元,用于从网络时间协议服务器或移动广播业务服务器或内容 服务器或独立的全球定位系统模块中的任一获得时钟信息;  a clock providing unit, configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module;
时钟信息发送单元, 用于向客户端发送所述时钟提供单元提供的时钟信  a clock information sending unit, configured to send, to the client, a clock signal provided by the clock providing unit
19、 一种时间同步系统, 其特征在于, 包括: 19. A time synchronization system, comprising:
服务器,用于从网络时间协议服务器或移动广播业务服务器或内容服务器 或独立的全球定位系统模块中的任一获得时钟信息, 并向客户端发送时钟信 息;  a server, configured to obtain clock information from any one of a network time protocol server or a mobile broadcast service server or a content server or a separate global positioning system module, and send clock information to the client;
客户端, 用于获取时钟信息,根据所述时钟信息实现与所述服务器时间同 步。  The client is configured to obtain clock information, and synchronize with the server time according to the clock information.
PCT/CN2009/070921 2008-08-20 2009-03-20 Method, device and system for synchronizing time WO2010020120A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810210836.9 2008-08-20
CN200810210836A CN101656606A (en) 2008-08-20 2008-08-20 Time synchronization method, time synchronization device and time synchronization system

Publications (1)

Publication Number Publication Date
WO2010020120A1 true WO2010020120A1 (en) 2010-02-25

Family

ID=41706837

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070921 WO2010020120A1 (en) 2008-08-20 2009-03-20 Method, device and system for synchronizing time

Country Status (2)

Country Link
CN (1) CN101656606A (en)
WO (1) WO2010020120A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110034913A (en) * 2018-01-12 2019-07-19 南京计然信息技术有限公司 A kind of automatic time synchronization method of passenger flow counting terminal
CN112291843A (en) * 2019-07-23 2021-01-29 中国移动通信有限公司研究院 Clock information acquisition method, clock information transmission method, terminal and network side equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694569A (en) * 2009-10-21 2010-04-14 中兴通讯股份有限公司 Method and device for realizing time synchronization
CN102546726B (en) * 2010-12-31 2015-10-07 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted time synchronization serving method and system
CN102215224A (en) * 2011-05-20 2011-10-12 深圳市金槌拍卖行有限公司 Network countdown accurate-synchronization technology
CN102739446B (en) * 2012-06-27 2017-08-01 南京中兴新软件有限责任公司 The method and apparatus for selecting Network Time Protocol server
CN103916231A (en) * 2014-03-25 2014-07-09 汉柏科技有限公司 Cloud computing platform and server time synchronization method thereof
CN103945237A (en) * 2014-04-23 2014-07-23 海信集团有限公司 Clock synchronization method and system, digital television equipment and EPG server
CN106656389B (en) * 2016-10-24 2018-07-13 浙江蓝鸽科技有限公司 Synchronous cloud network data transfer control method and its control system
CN109428662A (en) * 2017-08-25 2019-03-05 北京国双科技有限公司 Time deviation statistical method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459940A (en) * 2002-05-21 2003-12-03 深圳市中兴通讯股份有限公司上海第二研究所 Method of time synchronization in broad band CDMA
CN1501713A (en) * 2002-11-12 2004-06-02 北京中视联数字系统有限公司 Digital television front end server clock synchronizing method
CN1712983A (en) * 2004-06-24 2005-12-28 华为技术有限公司 Time synchronization in positioning system
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
CN101043315A (en) * 2006-06-12 2007-09-26 华为技术有限公司 Network clock synchronous device, system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459940A (en) * 2002-05-21 2003-12-03 深圳市中兴通讯股份有限公司上海第二研究所 Method of time synchronization in broad band CDMA
CN1501713A (en) * 2002-11-12 2004-06-02 北京中视联数字系统有限公司 Digital television front end server clock synchronizing method
CN1712983A (en) * 2004-06-24 2005-12-28 华为技术有限公司 Time synchronization in positioning system
CN1794855A (en) * 2005-06-27 2006-06-28 华为技术有限公司 Method and device synchronous operating time in equipment management
CN101043315A (en) * 2006-06-12 2007-09-26 华为技术有限公司 Network clock synchronous device, system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110034913A (en) * 2018-01-12 2019-07-19 南京计然信息技术有限公司 A kind of automatic time synchronization method of passenger flow counting terminal
CN112291843A (en) * 2019-07-23 2021-01-29 中国移动通信有限公司研究院 Clock information acquisition method, clock information transmission method, terminal and network side equipment

Also Published As

Publication number Publication date
CN101656606A (en) 2010-02-24

Similar Documents

Publication Publication Date Title
WO2010020120A1 (en) Method, device and system for synchronizing time
CN1890969B (en) System and associated terminal, method and computer program product for providing broadcasting content
US9615119B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN101669309A (en) Method and apparatus for synchronizing notification messages
CN101049014B (en) Auxiliary content handling over digital communication systems
EP1806006A2 (en) System and method for initiating push-to-talk sessions between outside services and user equipment
WO2008055420A1 (en) A synchronizing method between different medium streams and a system
BRPI0617723A2 (en) provision of guided declaration terminal for service
US20090110132A1 (en) System and method for re-synchronization of a pss session to an mbms session
WO2009155845A1 (en) Method for realizing multimedia information interaction, system, device, user terminal
AU2011233856B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
WO2009006811A1 (en) A digital tv voting method, server and system
EP1901481B1 (en) Method, system and entity for realizing an application service
EP1881667A1 (en) Apparatus and method for presenting an event during a broadcast
CN100473171C (en) Clock synchronizing method in broadcast network
CN100581197C (en) Method and system for acquiring medium property information and terminal equipment
JP2009512320A (en) Reliability guarantee transfer service providing method and apparatus in digital broadcasting system
RU2378795C2 (en) Method and device to output warning message in broadcasting transmission system
WO2008080284A1 (en) Method and system for accessing mobile multimedia-broadcasting channel in a fusion network
JP2004252884A (en) Content delivery conversion device and content delivery conversion method
TW200926700A (en) Method and apparatus for the aggregation and indexing of message parts in multipart mime objects
WO2011140738A1 (en) Application terminal and method for playing stream media resource using multimedia message
KR100649399B1 (en) Method and system for providing digital broadcasting service over ip
KR100692198B1 (en) Customized Data Broadcasting Service System and Method
KR101300427B1 (en) Method and system for transmitting encryption key message through interaction channel in broadcasting system

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

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

Country of ref document: EP

Kind code of ref document: A1