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 answers
Related Questions in NETWORKING
- How to avoid duplicates with the pull-based subscribe model?
- How to simulate CSMA/CD protocol in ns3?
- Network System - Cisco Packet Tracer
- Adhoc / mesh network not working (with and without batman-adv)
- Algorithm for finding a subset of nodes in a weighted connected graph such that the distance between any pair nodes are under a postive number?
- Python Client-Server Communication with Protocol
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Share files from the server without data or internet usage
- Player names not synchronizing in unity Mirror Networking
- My phone can not visit the server on macos in the same local network
- Unable to ping remote websites from an ipV6 only ubuntu ec2 Instance
- Linux Networking - Routing packets from one network interface to another
- wrong output from Supernetting algorithm
- Mapping localhost port on host to docker container
- Microsoft Message Analyzer disable resolving IP address to their domain names a.k.a turn off AutoIP feature
Related Questions in NTP
- Does executing "ntpd -q" while running an active NTPD alter the kernel discipline? How would I check if it was changed? Suse linux
- timedatectl: Connection timed out
- Sense of using NTP client on Kubernetes pods
- How it is possible to run two separate chrony instances (on a same pc): one client and one server
- Is there an api to set ntp time server for android?
- Using PTP where the devices are on an arbitrary public network
- Datadog NTP Integration - Failed to Get Clock Offset from Any NTP Host
- Replication conflict: a modify of 'entry name' was rejected because it had an older timestamp
- Get current time from raspberry pi
- ntpdig/sntp sometimes output "weird" correct time
- Configure NTP server and port for systemd-timesyncd
- How to see the absolute time distributed by ptp4l?
- How can I make ntpd work with FIPS openssl3?
- Automatic Time Zone detection
- FSMO and third party time sync
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?
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)
"\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.