Questions tagged [udp]

User Datagram Protocol is one of the messaging protocols of the IP protocol stack. With UDP, computer applications can send messages to other hosts on an Internet Protocol (IP) network without requiring prior communications to set up special transmission channels or data paths.

UDP uses a simple transmission model without implicit handshaking dialogues for providing reliability, ordering, or data integrity. Thus, UDP provides an unreliable service and datagrams may arrive out of order, appear duplicated, or go missing without notice.

UDP assumes that error checking and correction is either not necessary or performed in the application or at the hardware level (layer 1 and 2), avoiding the overhead of such processing at the network interface level.

Time-sensitive applications often use UDP because dropping packets is preferable to waiting for delayed packets, which may not be an option in a real-time system.

There is more information at the Wikipedia article on UDP.

10654 questions
3
votes
0 answers

Error in opening a SDP file using libavcodec

I tried to open a SDP file using the following coed using libavcodec commands: char *url = "foo.sdp"; AVFormatContext *oc = NULL; avformat_open_input(&oc, url, NULL , NULL); where the content of "foo.sdp" is as follows: v=0 o=- 0 0 IN IP4…
Blue Sky
  • 293
  • 1
  • 5
  • 14
3
votes
2 answers

CPU load high when receiving large(r) volumes of UDP traffic (Windows)

I'm looking into a problem with an application that uses large volumes of incoming data for further processing (multicast transport streams, to be specific). The situation is as follows: a number of multicast streams are added. Each has it's own…
nielsj
  • 1,499
  • 12
  • 24
3
votes
1 answer

How to get flow record details of a netflow packet

I've used jflow to capture the netflow packets. By running the print example I could observe this kind of output. 13.243.146.68.41472 -> 10.100.0.126.13570 285212682 0 0.43.0.0.18 -> 0.199.0.0.4352 8321715 100 53.2.7.225.3571 -> 0.0.1.67.37446 323…
Asiri Liyana Arachchi
  • 2,663
  • 5
  • 24
  • 43
3
votes
2 answers

Dead Reckoning - Client/Server game - How to handle keystrokes

I've read a few articles about dead reckoning, but it's still a bit confusing to me. I'm pretty sure I understand the concept of point-and-click movement, but how would I update keystroke movement between the client and server, when the end-point of…
Vince
  • 14,470
  • 7
  • 39
  • 84
3
votes
1 answer

C# Multicast UDP connection, BeginReceiveFrom async call stops to be called

this is my first post, sorry in advance if I do something I shouldn't. I always search here for answer but this time I saw nothing about my problem. I have a project in C# where I keep alive a connection UDP listening a multicast IP from a data…
user3119275
  • 31
  • 1
  • 2
3
votes
1 answer

sendto() "invalid argument" error with IPv6 raw udp socket on linux

I'm trying to send udp packets with raw sockets. For IPv4 everything works fine, but I can't break through problem with IPv6 sockets, where sendto() always says invalid argument. Initially I was thinking about mandatory checksum for IPv6, but…
Alex
  • 63
  • 1
  • 8
3
votes
0 answers

creating a pipeline to transmit voice

i have the following pipelines that one of them sends voice signals on udp port and the other receives them on the same port number on the receiver side gst-launch-1.0 -v alsasrc ! audioconvert !…
fer y
  • 505
  • 4
  • 19
3
votes
2 answers

Variable-size buffer for receiving UDP packets

I have an UDP socket that will receive some packets, of potentially different sizes, and I handle this asynchronously: socket.async_receive_from(boost::asio::buffer(buffer, 65536), senderEndpoint, handler); The problem here is that to handle the…
Synxis
  • 9,236
  • 2
  • 42
  • 64
3
votes
2 answers

Combining sento() write writev()?

I've set a udp socket and call sendto() with a different recipient at each call. I would like to use writev() in order to benefit scater/gather io but writev() does not allows me to specify the recipient addr/port as in sendto(). Any suggestions?
yves Baumes
  • 8,836
  • 7
  • 45
  • 74
3
votes
2 answers

Understanding how to send larger data chunks over UDP reliably

I've used TCP for many things over the years and understand it pretty well. I now have a requirement to use UDP. Short version: A server allows a small number of clients (5-10) to connect. The server is running a simulation. Clients should be able…
Basic
  • 26,321
  • 24
  • 115
  • 201
3
votes
1 answer

How to block TCP and UDP packets (flood attack)

I have a program that tells you if your computer is online or not. The way I do it is with the help of a Server that basically sends UDP packets to clients. Clients then respond back letting the server know that they are online. If a client does not…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
3
votes
1 answer

how to track a UDP packet drop using proc command

I need to track UDP receive queue drop in my LINUX machine. for i am using the following command `cat /proc/net/udp and the output is sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 20: 00000000:8614…
user2641906
  • 93
  • 1
  • 10
3
votes
0 answers

Create Android phone web server behind NAT using UDP Hole punch

I"m new in Android development. I"m trying to create app that will run in the background as server and will serve JSON data or simple string, and any client could send command and get back that data regarding the command, similar to web server. I…
Ilya Vinokurov
  • 145
  • 2
  • 12
3
votes
3 answers

When redirecting to /dev/udp, how do you force a packet with newlines to be a single packet?

The simplest example is the following: echo -e "\n\n\n" > /dev/udp/192.168.45.45/9875 Looking at this with tcpdump, it's actually sending 4 packets. If I needed to send a single packet consisting of hex (payload) 0a0a0a, is that possible using the…
John O
  • 4,863
  • 8
  • 45
  • 78
3
votes
1 answer

Packet Encapsulation in Java

I have been given an assignment for my data communications class where I am required to encapsulate a IP packet over UDP. I then need to encapsulate this manually made packet into an actual UDP packet and send it over IP. This will yield the…
Adam Jakiela
  • 2,188
  • 7
  • 30
  • 48