LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2008, 03:59 AM   #1
riddler2008
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Duplicate a UDP Stream


Hey,
I am quite a newbie in the area of networking and therefore my question may seems a little bit strange to you. Nevertheless I hope you can help me:
I want to send a UDP stream from PC A to PC B - so far so good. However I want to duplicate it and send it over physical seperated networks to PC B. My first thought was that I introduce a multicast - nevertheless I do not know if this will work. Before I try it I wanted to ask you if you know of any possibilities to duplicate UDP streams.

Thanks for your help!
 
Old 08-12-2008, 04:47 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
You could just capture the udp stream with tcpdump to a file and then use any number of replay programs to send the udp contents once you've moved the file to the other network.
 
Old 08-13-2008, 02:35 AM   #3
riddler2008
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your answer!
However I think I made a mistake in my explanation - i have a UDP stream and I want to send it parallel at the same time over two physical seperated networks to one and the same PC - in other words I want to get a redundant UDP stream. So my question is how can I duplicate the UDP stream at the sender and how can I tell my nic configuration to send the one stream through NIC1 and the other through NIC 2
 
Old 08-13-2008, 03:44 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Easiest way without multicast would be to have your app bind two udp sending sockets, one to each interface, and then just send the packet out both sockets.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ? frenchn00b Linux - General 4 08-04-2008 05:40 AM
Howto transcode & relay a MPEG stream to a WMV stream?? crazyivan Linux - Software 0 06-15-2007 03:18 AM
uknown url type udp when using a udp tracker fakie_flip Linux - Software 1 08-03-2006 05:03 AM
UDP: Short Packets: and UDP bad checksum: entries in dmesg minutes2memories Linux - Networking 2 02-26-2006 07:28 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration