I am working on an NTP Client. A few other threads indicate that the a message containing "\x1b' + 47 * '\0" is sent to the NTP server, but none of these threads give an explanation about what this message actually means or why it is sent. I've tried looking at the NTP RFC but I was unable to find any information about it in there either.
What does the '\x1b' + 47 * '\0' message sent to an NTP server mean?
2.4k Views Asked by utterfool At
1
There are 1 best solutions below
Related Questions in NETWORKING
- kernel module does not print packet info
- Packet drops in multicast when multiple instance of listner are running
- Timing packets on a traffic server
- How to use Espresso Idling Resource for network calls
- Dummynet does not match on flows
- Sending a notification from OS X to iOS
- Swift ios viewDidLoad or viewDidAppear
- Update player list on all clients on new connection
- Issues regarding multiplayer networking: input
- nmap does not show all open ports
- Getting and Sending Data between a Server and Client
- Read file from local PC from network deployed app to InputStream
- Does iOS block a URL if we couldn't connect to the URL for 'n' times?
- Is Socket.Available guaranteed to throw a SocketException on disconnect?
- android out of cell service
Related Questions in NTP
- NTPClient not working even after Redpitaya OS Rebuild
- Value of Date Cell returns a ntp time Google Apps Script
- Successful settimeofday() randomly function locks up application
- NTP Audit - failed adjtimex syscall?
- iOS-ntp framework not compiling xcode 6
- upstart script to start a task after hardware clock has been started
- What does the '\x1b' + 47 * '\0' message sent to an NTP server mean?
- Issue with server changing time almost every night
- Using NTP without a server, just for the Control System
- get an accurate time with NTP, GPS and PPS as soon as possible
- Is it required to call net time repeatedly for synchronization on network failure
- Our SNTP Server is not responding for my requests
- Set the date in Beaglebone Black using ntp Debian 8.9
- Go: Process multi-line command output and parse
- NTP Server and Client millisecond precision sync
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
"\x1b' + 47 * '\0"represents a data field of 48 bytes.0x1Bfollowed by 47 times0. 48 bytes is the size of an NTP UDP packet. The first byte (0x1B) specifiesLI,VN, andMode.RFC 5905 NTP Specification (7.3. Packet Header Variables) specifies the message header as follows:
Setting the first byte of the data to
0x1Bor00 011 011meansYou may also use the more recent version (
VN = 4). This would require the first header byte to be set to0x23 (00 100 011).The modes are defined as
Specifying
Mode = 3indicates the message as a client request message.Sending such a packet to port 123 of an NTP server will force the server to send a reply package.