Questions tagged [udp]

UDP stands for User Datagram Protocol. With UDP applications can send messages (datagrams) to other hosts on a network without requiring prior communications to set up special transmission channels or data paths.

Because UDP doesn't rely on handshaking to guarantee that packets arrive and in order it can be seen as an unreliable protocol, but for real time systems where acting on the data immediately is the most important consideration not having to wait for delayed packets is a distinct advantage.

UDP is just one communications protocol on the web. Others include:

  • Transmission Control Protocol (TCP)
  • Internet Control Message Protocol (ICMP)
  • Hypertext Transfer Protocol (HTTP)
  • Post Office Protocol (POP3)
  • File Transfer Protocol (FTP)
  • Internet Message Access Protocol (IMAP)

UDP on Wikipedia

542 questions
89
votes
10 answers

Testing UDP port connectivity

I am trying to test whether I can get to a particular port on a remote server (both of which I have access to) through UDP. Both servers are internet facing. I am using netcat to have a certain port listening. I then use nmap to check for that port…
Lock
  • 1,637
  • 7
  • 26
  • 33
76
votes
3 answers

Listen to UDP data on local port with netcat

netcat -ul -p2115 fails with a usage statement. What am I doing wrong?
Tyler
  • 863
  • 1
  • 6
  • 5
48
votes
11 answers

What is the difference between UDP and TCP?

My router has two protocols (and a "both" option) that I can select when setting up port forwarding: UDP and TCP. What is the difference between these two protocols and when would you select one over the other in port forwarding?
Guy
  • 1,839
  • 5
  • 22
  • 28
48
votes
7 answers

How can I identify which processes are generating UDP traffic on Linux?

My machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic. The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid. Is UDP the connection…
boos
  • 641
  • 1
  • 6
  • 8
47
votes
6 answers

Does HTTPS use TCP or UDP?

Does HTTPS use TCP or UDP?
Steven
  • 617
  • 2
  • 6
  • 7
46
votes
3 answers

telnet counterpart for UDP

Is there anything that enables a "telnet-like" functionality for UDP? I know the difference between TCP and UDP, and why telnet itself won't work - but I'm wondering if there is something similar to the telnet client, from the end-user perspective.…
Dexter
  • 597
  • 1
  • 4
  • 5
42
votes
5 answers

Can TCP and UDP packets be split into pieces?

Can TCP packets arrive to receiver by pieces? For example, if I send 20 bytes using TCP protocol, can I be 100% sure that I will receive exactly 20 bytes at once, not 10 bytes then another 10 bytes or so? And the same question for UDP protocol. I…
iamnp
  • 521
  • 1
  • 4
  • 4
40
votes
6 answers

Linux Kernel not passing through multicast UDP packets

Recently I've set up a new Ubuntu Server 10.04 and noticed my UDP server is no longer able to see any multicast data sent to the interface, even after joining the multicast group. I've got the exact same set up on two other Ubuntu 8.04.4 LTS…
buecking
  • 703
  • 1
  • 6
  • 10
35
votes
4 answers

Do DNS queries always travel over UDP?

I've spent a bit of time researching this topic and can't seem to find an exact answer, so I'm fairly confident it's not a duplicate, and while my question is based on a security need, I think it's still safe to ask here but let me know if I need to…
Caderade
  • 353
  • 1
  • 3
  • 5
32
votes
2 answers

nginx: [emerg] "stream" directive is not allowed here

I have the latest NGINX from ppa installed on Ubuntu 16.04. nginx version: nginx/1.12.1 From my understanding, it should support stream and UDP load balancing. But I get this error message: nginx: [emerg] "stream" directive is not allowed here in…
Houman
  • 1,545
  • 4
  • 22
  • 36
29
votes
2 answers

Does traceroute use UDP or ICMP or both?

When I do a trace on the www.google.com domain from my laptop, am I using icmp or udp ? I thought it was icmp type 11 but while searching for something else I came across rules where icmp type 30 was used and I saw rules where udp was used. Can…
Kris
  • 1,367
  • 3
  • 15
  • 17
27
votes
7 answers

How can I test Multicast UDP connectivity between two servers?

I have two servers on the same subnet. I have an application installed which uses multicast UDP to propagate events between the two servers and keep them in sync. This does not seem to be happening, so I want to make sure that the multicast UDP…
Greg B
  • 1,598
  • 5
  • 17
  • 32
24
votes
4 answers

What is the "in-the-wire" size of a ethernet frame? 1518 or 1542?

According to the table here, it says that MTU = 1500 bytes and that the payload part is 1500 - 42 bytes or 1458 bytes (<- this is actually wrong!). Now on top of that you have to add IPv4 and UDP headers, which are 28 bytes (20 IP + 8 UDP). That…
chrisapotek
  • 585
  • 2
  • 6
  • 17
23
votes
4 answers

Iptables: "-p udp --state ESTABLISHED"

let's look at these two iptables rules which are often used to allow outgoing DNS: iptables -A OUTPUT -p udp --sport 1024:65535 --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A INPUT -p udp --sport 53 --dport 1024:65535 -m…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
22
votes
3 answers

Sockets found by lsof but not by netstat

I have an application which is running out of file descriptors, apparently by opening sockets, but I can't find out exactly what these sockets do. These appear in the lsof output as java 9689 appuser 1010u sock 0,5 263746675 can't…
Robert Munteanu
  • 1,644
  • 5
  • 23
  • 41
1
2 3
36 37