You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/05/30 22:15:15 UTC

svn commit: r1487993 - /tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java

Author: markt
Date: Thu May 30 20:15:15 2013
New Revision: 1487993

URL: http://svn.apache.org/r1487993
Log:
Finally figured out how t get multicast working locally on my mac. Document it.

Modified:
    tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java

Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java (original)
+++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu May 30 20:15:15 2013
@@ -24,6 +24,23 @@ import java.net.UnknownHostException;
 /**
  * A simple multicast test that replicates the core elements of Tomcat's
  * multicast membership. If this works then multicast membership should work.
+ * Useful notes for various operating systems follow.<p>
+ * OSX
+ * <ul>
+ * <li>Multicast is not routed by default.</li>
+ * <li>Check if multicast is routed by looking at the routing table via
+ *     <code>netstat -nr</code>. If there is no line the output for 228.0.0.4
+ *     then multicast will not work.</li>
+ * <li>Add a route for multicast using
+ *     <code>sudo route -nv add -net 228.0.0.4 -interface en0</code></li>
+ * <li>The firewall blocks multicast bewteen processes on the local machine so
+ *     you will need to disable the OSX forewall before the test below will
+ *     work.</li>
+ * </ul>
+ * Windows Server 2008
+ * <ul>
+ * <li>This works out of the box</li>
+ * </ul>
  */
 public class TesterMulticast {
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: svn commit: r1487993 - /tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java

Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/5/31 Mark Thomas <ma...@apache.org>:
> On 31/05/2013 06:36, Rainer Jung wrote:
>> On 30.05.2013 22:15, markt@apache.org wrote:
>>> Author: markt
>>> Date: Thu May 30 20:15:15 2013
>>> New Revision: 1487993
>>>
>>> URL: http://svn.apache.org/r1487993
>>> Log:
>>> Finally figured out how t get multicast working locally on my mac. Document it.
>>>
>>> Modified:
>>>     tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
>>>
>>> Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
>>> URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff
>>> ==============================================================================
>>> --- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java (original)
>>> +++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu May 30 20:15:15 2013
>>> @@ -24,6 +24,23 @@ import java.net.UnknownHostException;
>>>  /**
>>>   * A simple multicast test that replicates the core elements of Tomcat's
>>>   * multicast membership. If this works then multicast membership should work.
>>> + * Useful notes for various operating systems follow.<p>
>>> + * OSX
>>> + * <ul>
>>> + * <li>Multicast is not routed by default.</li>
>>> + * <li>Check if multicast is routed by looking at the routing table via
>>> + *     <code>netstat -nr</code>. If there is no line the output for 228.0.0.4
>>> + *     then multicast will not work.</li>
>>> + * <li>Add a route for multicast using
>>> + *     <code>sudo route -nv add -net 228.0.0.4 -interface en0</code></li>
>>> + * <li>The firewall blocks multicast bewteen processes on the local machine so
>>> + *     you will need to disable the OSX forewall before the test below will
>>> + *     work.</li>
>>> + * </ul>
>>
>> Shouldn't the multicast route be for network 224.0.0.0 with netmask
>> 240.0.0.0?
>
> For the general case.
>
>> I think the above is just an example multicast address and typical
>> system will not have a route for that one, but could and should have a
>> route for multicast in general (224.0.0.0/240.0.0.0).
>
> OSX doesn't have any multicast routes present by default. The notes
> could certainly be amended to reflect the more general case.
>

Maybe add this to the "(7) Tests" section of BUILDING.txt?

At least a brief "see TesterMulticast.java".
This class is not part of active testsuite though.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: svn commit: r1487993 - /tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java

Posted by Mark Thomas <ma...@apache.org>.
On 31/05/2013 06:36, Rainer Jung wrote:
> On 30.05.2013 22:15, markt@apache.org wrote:
>> Author: markt
>> Date: Thu May 30 20:15:15 2013
>> New Revision: 1487993
>>
>> URL: http://svn.apache.org/r1487993
>> Log:
>> Finally figured out how t get multicast working locally on my mac. Document it.
>>
>> Modified:
>>     tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
>>
>> Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
>> URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff
>> ==============================================================================
>> --- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java (original)
>> +++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu May 30 20:15:15 2013
>> @@ -24,6 +24,23 @@ import java.net.UnknownHostException;
>>  /**
>>   * A simple multicast test that replicates the core elements of Tomcat's
>>   * multicast membership. If this works then multicast membership should work.
>> + * Useful notes for various operating systems follow.<p>
>> + * OSX
>> + * <ul>
>> + * <li>Multicast is not routed by default.</li>
>> + * <li>Check if multicast is routed by looking at the routing table via
>> + *     <code>netstat -nr</code>. If there is no line the output for 228.0.0.4
>> + *     then multicast will not work.</li>
>> + * <li>Add a route for multicast using
>> + *     <code>sudo route -nv add -net 228.0.0.4 -interface en0</code></li>
>> + * <li>The firewall blocks multicast bewteen processes on the local machine so
>> + *     you will need to disable the OSX forewall before the test below will
>> + *     work.</li>
>> + * </ul>
> 
> Shouldn't the multicast route be for network 224.0.0.0 with netmask
> 240.0.0.0?

For the general case.

> I think the above is just an example multicast address and typical
> system will not have a route for that one, but could and should have a
> route for multicast in general (224.0.0.0/240.0.0.0).

OSX doesn't have any multicast routes present by default. The notes
could certainly be amended to reflect the more general case.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: svn commit: r1487993 - /tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java

Posted by Rainer Jung <ra...@kippdata.de>.
On 30.05.2013 22:15, markt@apache.org wrote:
> Author: markt
> Date: Thu May 30 20:15:15 2013
> New Revision: 1487993
> 
> URL: http://svn.apache.org/r1487993
> Log:
> Finally figured out how t get multicast working locally on my mac. Document it.
> 
> Modified:
>     tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
> 
> Modified: tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java
> URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java?rev=1487993&r1=1487992&r2=1487993&view=diff
> ==============================================================================
> --- tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java (original)
> +++ tomcat/trunk/test/org/apache/catalina/tribes/TesterMulticast.java Thu May 30 20:15:15 2013
> @@ -24,6 +24,23 @@ import java.net.UnknownHostException;
>  /**
>   * A simple multicast test that replicates the core elements of Tomcat's
>   * multicast membership. If this works then multicast membership should work.
> + * Useful notes for various operating systems follow.<p>
> + * OSX
> + * <ul>
> + * <li>Multicast is not routed by default.</li>
> + * <li>Check if multicast is routed by looking at the routing table via
> + *     <code>netstat -nr</code>. If there is no line the output for 228.0.0.4
> + *     then multicast will not work.</li>
> + * <li>Add a route for multicast using
> + *     <code>sudo route -nv add -net 228.0.0.4 -interface en0</code></li>
> + * <li>The firewall blocks multicast bewteen processes on the local machine so
> + *     you will need to disable the OSX forewall before the test below will
> + *     work.</li>
> + * </ul>

Shouldn't the multicast route be for network 224.0.0.0 with netmask
240.0.0.0?

I think the above is just an example multicast address and typical
system will not have a route for that one, but could and should have a
route for multicast in general (224.0.0.0/240.0.0.0).

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org