Re: [jgroups-dev] Creating a STUNT protocol for JGroups?

"Mike Jensen" <[email protected]> Tue, 19 Oct 2010 08:26:34 -0600
Newsgroups gmane.comp.java.javagroups.devel
Message-ID <[email protected]>
Ah...discard sounds like the ticket, thanks!



-- Sent from my Palm Pre
On Oct 19, 2010 8:11 AM, Bela Ban &lt;[email protected]&gt; wrote: 





Mike Jensen wrote:

&gt; Thanks for your reply. You make excellent points and I agree, I don't

&gt; think STUNT is very doable.



I looked a bit at STUN for UDP, and it's a bit more involved than I 

thought...



&gt; I thought about using UDP, but I am not confident how my system will 

&gt; work with it.



I think it'll work great. But make sure to add FRAG2 and UNICAST(2) to 

your config. It might even be faster as no connection management is 

required.



&gt; I will spend some time playing with that today. but it

&gt; might be a long startup time to learn the tools.



Which tools ?



&gt; Any advice on what/how  to force packet loss in a udp system?



Yes, either generate a lot of traffic, so the switches start dropping 

packets, or use one of the JGroups protocols (such as DISCARD), or 

create your own protocol to discard random messages.



&gt; Would NS2 be my best tool to simulate something like that?



AFAIR, ns2 was quite involved to get it running...



&gt; With that said, I think it needs to be tested. But I can't point to any

&gt; specific reason jgroups existing reliability mechanisms wont work. 



I think this will work brilliantly, especially given that this is all 

point-to-point unicasting, which doesn't require recipients to store 

messages, stability messages, distributed message garbage collection and 

so on !



&gt; I expect that it will probably work fine. Knowing this first though will

&gt; help me decide if I want to work on a STUN protocol.

&gt;

&gt; As always, thanks for your help!



np



-- 

Bela Ban

Lead JGroups / Clustering Team

JBoss

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

_______________________________________________
Javagroups-development mailing list