A method and system for obtaining network time in parallel with multiple schemes
A network time and multi-scheme technology, applied in the field of network communication, can solve problems such as affecting time stamps, failure to obtain time successfully, failure to play music, etc., and achieve the effect of increasing the probability of receiving replies
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] Most IoT (Internet Of Things, Internet of Things) devices use the NTP protocol used by default at the bottom of the system to synchronize time, but some operator lines shield NTP Server (network time synchronization server) or udp (UserDatagram Protocol, User Datagram Protocol) 123 Port (the port used by the UDP protocol at the transport layer, the port number is 123), so in some carrier network environments, IoT devices cannot obtain the network time normally.
[0059] In order to solve the above problems, a method for obtaining network time in parallel with multiple schemes is designed.
[0060] Such as figure 1 As shown, it is a flow chart of a method for obtaining network time in parallel with multiple schemes in the present invention.
[0061] A method for obtaining network time in parallel with multiple schemes, comprising the following steps:
[0062] S1, sending a request for obtaining time to the time synchronization server and the HTTP server in parallel, an...
Embodiment 2
[0073] Based on embodiment 1, the difference from embodiment 1 is:
[0074] Such as Figure 1-Figure 4 As shown, it is a general flow chart and a specific flow chart of a method for obtaining network time in parallel with multiple schemes in the present invention.
[0075] S1, sending a request for obtaining time to the time synchronization server and the HTTP server in parallel, and sending a request for subscribing to the time topic to the message queue telemetry transmission server.
[0076] Also record the time when the request was issued.
[0077] S2. Wait for the server to respond, and obtain the first network time replied by the time synchronization server and / or the second network time replied by the HTTP server and / or the third network time replied by the message queue telemetry transmission service .
[0078] Described step S2 comprises:
[0079] Counts the number of servers responding to requests.
[0080] S3. Calculate and analyze the best network time from th...
Embodiment 3
[0099] Such as Figure 6 The above is a system based on the method of Example 1.
[0100] A system for obtaining network time in parallel with multiple schemes, including:
[0101] The parallel request module 1 is used to send a request for obtaining time to the time synchronization server and the HTTP server in parallel, and send a request for subscribing to the time topic to the message queue telemetry transmission server;
[0102] The acquiring module 2 is configured to wait for a server response, and acquire the first network time replied by the time synchronization server and / or the second network time replied by the hypertext transfer protocol server and / or the time returned by the message queue telemetry transmission service Third network time;
[0103] The calculation and analysis module 3 is used to calculate and analyze the best network time from the first network time and / or the second network time and / or the third network time by using an error comparison algorit...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com