Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-09-01
重庆趣玩科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the current mainstream IoT device time acquisition method is the NTP (Network Time Protocol, Network Time Protocol) protocol used by default at the bottom of the system, but most NTP Servers (Network Time Synchronization Servers) are set in foreign countries, not local self-built servers, so Some operators' lines may block NTP Server or udp (User Datagram Protocol, User Datagram Protocol) port 123 (the port used by the transport layer UDP protocol, the port number is 123), which will cause the IoT device to fail to obtain the time from the NTP Server The time is obtained, which further affects applications with timestamp verification. For example, when a smart speaker plays music, some music resource providers will verify the timestamp. Once the speaker system time is incorrect, the music cannot be played

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for obtaining network time in parallel with multiple schemes
  • A method and system for obtaining network time in parallel with multiple schemes
  • A method and system for obtaining network time in parallel with multiple schemes

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of network communication and relates to a method and system for obtaining network time in parallel through multiple schemes. The method comprises the following steps: S1) sending a time obtaining request to a time synchronization server and a hypertext transfer protocol server in parallel and sending a time topic subscription request to a message queuetelemetry transmission server; S2) waiting for server response, and obtaining first network time replied by the time synchronization server and / or second network time replied by the hypertext transferprotocol server and / or third network time replied by the message queue telemetry transmission server; and S3) carrying out calculation and analysis on the first network time and / or the second network time and / or the third network time through an error comparison algorithm to obtain optimum network time as the system network time. The method and system can successfully obtain the network time from different operator lines.

Description

technical field [0001] The invention belongs to the technical field of network communication, and in particular relates to a method and system for obtaining network time in parallel with multiple schemes. Background technique [0002] The Internet of Things is an important part of the new generation of information technology, and it is also an important stage of development in the "informationization" era. At present, IoT (Internet Of Things, Internet of Things) devices are becoming more and more abundant, but most IoT devices do not have power supply chips and cannot directly check the time by themselves. They need to access the corresponding transport layer server through the transport layer protocol to obtain the time. [0003] The domestic invention patent with the application number CN201710167687.1 discloses a network time acquisition method, device and system, readable medium and storage controller. The disclosed method includes: pre-setting at least two NTP server ad...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04J3/06
CPCH04J3/0638H04J3/0661
Inventor 彭贵
Owner 重庆趣玩科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products