Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 86290 invoked from network); 7 Apr 2010 23:45:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Apr 2010 23:45:33 -0000 Received: (qmail 43136 invoked by uid 500); 7 Apr 2010 23:45:33 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 43112 invoked by uid 500); 7 Apr 2010 23:45:33 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 43104 invoked by uid 99); 7 Apr 2010 23:45:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 23:45:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 23:45:30 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AA1D2234C4AE for ; Wed, 7 Apr 2010 23:45:08 +0000 (UTC) Message-ID: <261757097.14291270683908695.JavaMail.jira@brutus.apache.org> Date: Wed, 7 Apr 2010 23:45:08 +0000 (UTC) From: "Jessie Berlin (JIRA)" To: dev@activemq.apache.org Subject: [jira] Reopened: (AMQ-2636) Add support for setting the Differentiated Services or Type Of Service on outgoing TCP/IP packets to support Quality Of Service In-Reply-To: <533104464.6351267729304715.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jessie Berlin reopened AMQ-2636: -------------------------------- See above comments. > Add support for setting the Differentiated Services or Type Of Service on outgoing TCP/IP packets to support Quality Of Service > ------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2636 > URL: https://issues.apache.org/activemq/browse/AMQ-2636 > Project: ActiveMQ > Issue Type: New Feature > Components: Transport > Affects Versions: 5.3.0 > Environment: Affects all OSes, proposed fix has only been tested on Ubuntu 9.10 > Reporter: Jessie Berlin > Assignee: Rob Davies > Priority: Minor > Fix For: 5.4.0 > > Attachments: addDiffServToTcpTransport.patch, addToSSupportAndRefactoring.patch, fixECNBits.patch > > > It should be possible to specify the desired Differentiated Services class, as outlined in RFC 2475 (http://tools.ietf.org/html/rfc2475), or Type of Service value, on outgoing TCP/IP packets by specifying a diffServ or typeOfService Tcp Transport Option (http://activemq.apache.org/tcp-transport-reference.html). > e.g. tcp://somehost:61616?trace=false&soTimeout=60000&diffServ=AF21 > e.g. tcp://somehost:61616?trace=false&soTimeout=60000&typeOfService=3 > I am part of a student group (http://maljub01.svnrepository.com/comp190/trac.cgi/wiki) at Tufts University that is implementing this functionality in ActiveMQ for potential use by MIT Lincoln Labs as part of the NextGen Network Enabled Weather Program (https://wiki.ucar.edu/display/NNEWD/The+NNEW+Wiki).. > We would like to contribute our changes back to the ActiveMQ trunk, if possible. Attached is a initial patch against the 5.3.0 release version, which implements setting the Differentiated Services class via a Tcp Transport Option on the connection URI. > Some notes about this approach: > The basic underlying mechanism for actually setting the bits in the packet headers is the java.net.Socket.setTrafficClass method. This was > the most elegant implementation out of all the possible implementations that we came up with. > In order for setTrafficClass to work in JDK 6, it is necessary to set the System property java.net.preferIPv4Stack to be true. We found that this has precedent in ActiveMQ (http://activemq.apache.org/multicast-watch-out-for-ipv6-vs-ipv4-support-on-your-operating-system-or-distribution-or-network.html), but we are hoping that this issue will be resolved in JDK 7, so that we can use the IPv6 stack when possible. > In addition, the current implementation only sets the specified Differentiated Services bits on the outgoing packets, and has no control over the Acknowledgments sent back for those packets. We have yet to find an elegant and cross-platform way to have the ActiveMQ Broker find out what the Differentiated Services bits on the incoming packets are directly in Java, although we are considering approaches that would involve calling a shell script from TcpTransportServer that would utilize IPtables. > We would like to know if might be interested in accepting this work into the ActiveMQ trunk. The sooner you let us know one way or another, the better, as this is a single-semester project. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.