When is IPPROTO_UDP required?

Some operating systems (eg. Linux kernel after 2.6.20) support a second protocol for SOCK_DGRAM, called UDP-Lite. If supported by your system, it would be enabled by providing IPPROTO_UDPLITE as the third argument to the socket() call. It is differentiated from normal UDP by allowing checksumming to be applied to only a portion of the datagram. … Read more

Why is SNMP usually run over UDP and not TCP/IP?

UDP is actually expected to work better than TCP in lossy networks (or congested networks). TCP is far better at transferring large quantities of data, but when the network fails it’s more likely that UDP will get through. (in fact, I recently did a study testing this and it found that SNMP over UDP succeeded … Read more

How to send only one UDP packet with netcat?

If you are using bash, you might as well write echo -n “hello” >/dev/udp/localhost/8000 and avoid all the idiosyncrasies and incompatibilities of netcat. This also works sending to other hosts, ex: echo -n “hello” >/dev/udp/remotehost/8000 These are not “real” devices on the file system, but bash “special” aliases. There is additional information in the Bash … Read more

techhipbettruvabetnorabahisbahis forumueduseduseduedueduseduedueduseduedus