UDP& Bangs!

Im having problems sending data to several different udp nodes from a single “transmitter”

I have one UDP node which is sending packets of data to several other nodes. It sends the data on port 1 to node addressed port 1, then the transmitter node’s port is automatically stepped to send the next batch of data to the UDP with the address for port two and so on.

The problem is that the receiving nodes are not constant, eg they only get the data now and again. If anyone has any ideas i can send the patch.

Cheers

Digpic

two suggestions:
try to use tcp if you have a problem with packets going amiss.
try to use ports that are out of any other range, for example only ports > 17.000

in a typical working office lan i never had any problems with udp packets not arriving. in a wifi lan things might be different, but
basically i would consider “udp is unreliable” as more of a myth.

on the other hand you will in fact not get an error message when your ethernet cable is missing.

but see http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers - with low port numbers you will have a very high chance of getting collisions with other services on your machine.

The port numbers are divided into three ranges.

  • The Well Known Ports are those in the range 0–1023.
  • The Registered Ports are those in the range 1024–49151.
  • The Dynamic and/or Private Ports are those in the range 49152–65535.

note also that the UDP node is spreadable in later vvvv releases and you can send all data at once.

Ah, thanks for that, thats good to know I never realized about the different ranges.
Is there ant way to send out bangs at a desired rate? Possibly as high as 50,000 per second? And count them too?

Heres the patch i was talking about, in hindsight i may be triggering the do send wrong.
http://www.andy-coates.com/vidnet/LatestPatch_DigipicMK2.rar

Cheers
Digipic