Welcome, Guest. Please login or register.

Author Topic: switch and UDP  (Read 2252 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
switch and UDP
« on: November 03, 2009, 10:22:13 AM »
(somewhat offtopic, sorry..)

can a network switch work with UDP traffic?

lets say I got 3 UDP streams (3 video streams coming from encoders, each 8Mbit/s), can I use a switch->media converter->media converter->switch->3xreceivers to decode them?
Better sorry than worry.
 

Offline ognix

  • Sr. Member
  • ****
  • Join Date: Oct 2004
  • Posts: 256
    • Show only replies by ognix
Re: switch and UDP
« Reply #1 on: November 03, 2009, 11:31:48 AM »
As far as I studied and remember (but not tested) UDP should work correctly with switches: it won't work through routers, which block broadcast traffic to their area.
Correct me if I'm wrong.
Ciao!
  Luca "OgniX"   \8^)
 

Offline meega

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 952
    • Show only replies by meega
Re: switch and UDP
« Reply #2 on: November 03, 2009, 11:43:27 AM »
Do you know/understand how it works and how it is different to normal IP connections?

Possibly useful page -> http://www.erg.abdn.ac.uk/users/gorry/eg3567/inet-pages/udp.html

And, from Wikipedia  
Quote
Common network applications that use UDP include: the Domain Name System (DNS), streaming media applications such as IPTV, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP) and many online games.
So if your hardware works with DNS (and how else do you browse the net?) it seems reasonable to suppose that it should be able to function with UDP. It places the emphasis for control on the applications rather than the protocol.

N.b. I am not an expert in this, I might be entirely off-base.
« Last Edit: November 03, 2009, 11:49:44 AM by meega »
:)
 

Offline ferix

  • Full Member
  • ***
  • Join Date: Aug 2009
  • Posts: 136
    • Show only replies by ferix
Re: switch and UDP
« Reply #3 on: November 03, 2009, 12:44:48 PM »
Hmm...
I guess you're confusing UDP with multicasting/broadcasting.
UDP works well with swithes in unicasting (just one target machine or IP address) and even multicasting/broadcasting.
Multicasting and broadcasting "should" work on switches, if they are enabled to do so. Some switches discard multitarget packets by default, if they are not ARP or RARP packets, of course.
Note that this behaviour only occurs on "smart" switches that can be managed.
Routers will discard broadcast packets.
« Last Edit: November 03, 2009, 12:52:21 PM by ferix »
[Master of puppets I\'m pulling your strings  
Twisting your mind and smashing your dreams  
Blinded by me, you can\'t see a thing  
Just call my name, \'cause I\'ll hear you scream]
...
We are The Borg.
Lower your shields and surrender your ships.
We will add your biological and technological distinctiveness to our own.
Your culture will adapt to service us.
Resistance is Futile.

 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: switch and UDP
« Reply #4 on: November 03, 2009, 06:28:54 PM »
We've got some applications running that use UDP for (directed) broadcasting and it works fine with all our switches, from 12 years old to brand new, managed or not (the managed ones are able to filter on demand though). Even got it to work over routed VPN, but that's a long story...
Multicast I haven't worked with, but it should also work with any decent switch.
Unicast TCP or UDP will always work through any switch or router (unless filtered).
« Last Edit: November 03, 2009, 06:32:48 PM by Zac67 »
 

Offline Tension

Re: switch and UDP
« Reply #5 on: November 03, 2009, 07:08:05 PM »
Yes

Offline ferix

  • Full Member
  • ***
  • Join Date: Aug 2009
  • Posts: 136
    • Show only replies by ferix
Re: switch and UDP
« Reply #6 on: November 03, 2009, 07:42:24 PM »
Quote from: Zac67;528278
We've got some applications running that use UDP for (directed) broadcasting and it works fine with all our switches, from 12 years old to brand new, managed or not (the managed ones are able to filter on demand though). Even got it to work over routed VPN, but that's a long story...
Multicast I haven't worked with, but it should also work with any decent switch.
Unicast TCP or UDP will always work through any switch or router (unless filtered).

Note that some managed switches, as Cabletron or Enterasys, discard non ARP broadcasting packets by default... At least, the models we've got at my job.
« Last Edit: November 03, 2009, 07:45:08 PM by ferix »
[Master of puppets I\'m pulling your strings  
Twisting your mind and smashing your dreams  
Blinded by me, you can\'t see a thing  
Just call my name, \'cause I\'ll hear you scream]
...
We are The Borg.
Lower your shields and surrender your ships.
We will add your biological and technological distinctiveness to our own.
Your culture will adapt to service us.
Resistance is Futile.

 

Offline Jose

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: switch and UDP
« Reply #7 on: November 03, 2009, 10:51:16 PM »
I think even some of the more powerful and configurable home routers might allow you to choose how they handle a whole bunch of things, including multicasting..
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline illy5603

  • Newbie
  • *
  • Join Date: Oct 2009
  • Posts: 13
    • Show only replies by illy5603
Re: switch and UDP
« Reply #8 on: November 07, 2009, 10:08:18 PM »
Quote from: Jose;528307
I think even some of the more powerful and configurable home routers might allow you to choose how they handle a whole bunch of things, including multicasting..

Yep. Most consumer grade home broadband routers allow TCP and UPD traffic to route through NAT.

In English, the answer is yes, it should work fine with most newer consumer grade routers and switches.