head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.4 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.2 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.4.0.14 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.12 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.10 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.8 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.6 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.4 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.2 pkgsrc-2011Q1-base:1.4 pkgsrc-2009Q4:1.3.0.18 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.8 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.6 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.4 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.2 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.2.0.10 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.0.4 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.2 pkgsrc-2005Q3-base:1.1; locks; strict; comment @# @; 1.5 date 2012.12.15.22.07.32; author markd; state dead; branches; next 1.4; 1.4 date 2011.01.29.22.16.51; author markd; state Exp; branches; next 1.3; 1.3 date 2007.04.26.16.11.51; author minskim; state dead; branches; next 1.2; 1.2 date 2006.01.27.02.31.43; author minskim; state Exp; branches; next 1.1; 1.1 date 2005.09.08.17.19.14; author minskim; state Exp; branches; next ; desc @@ 1.5 log @Update to version 2.35 ns-2.35 Released on Nov 4, 2011 * Provide fixes to the Tmix traffic generator, mainly to the one-way TCP implementation, but some changes to the Full-TCP version as well. Tmix with one-way TCP now performs comparably to Tmix with Full-TCP (albeit with longer running times and higher memory consumption). Includes contributions from David Hayes and DongXia Xu at Swinburne and relevant updates to the documentation and tests. * Add Marcello Caleffi's Multi-path Dynamic Address RouTing (M-DART) protocol. * Add Sidney Doria's Datagram Congestion Control Protocol (DCCP) implementation. * Added the SYN_immediate_ack flag so that a DelAckSink agent will immediately ACK the first (SYN) packet sent by a TcpAgent. The patch contains changes to tcp-sink.{cc,h}, ns-default.tcl, and affected validation tests. All validation tests that use the syn_ in TcpAgent were set to SYN_immediate_ack=false except for the delayed test in test-suite-simple.tcl. * During long simulations (30-60 minutes), ns would sometimes abort with the message "TcpAgent: negative RTO!". The problem was that TcpAgent::t_backoff_ was overflowing and becoming negative, since it was doubled each time a backoff was triggered but maxrto_ prevented the time between doublings from growing beyond 60 seconds. * This patch adds support for using one-way TcpAgents with the Tmix traffic generator, which previously only worked with FullTcp agents. * Protocol for Unified Multicasting Through Announcements (PUMA) has been added. PUMA is a distributed, receiver initiated, mesh based multicast routing protocol. * A new SCTP patch from Nasif Ekiz and the University of Delaware team. * added support for Non-Renegable Selective Acknowledgements (NR-SACK). To enable NR-SACKs, set useNonRenegSacks_ tcl bindable variable to 1 at both the data sender and the data receiver. * Concurrent Multipath Transfer with Potentially Failed(CMT-PF) extension is default now. To use CMT, set useCmtPF tcl bindable variable to 0 at the data sender. * added new feature to support a limited size send buffer at the data receiver. Send buffer size can be specified by setting initialSwnd_ tcl bindable variable to desired value. By default, the variable is set to 0 which means there is no constraint on the send buffer. * congestion window (cwnd) updates are now done as specified at Section 7.2.1, 7.2.2 and 7.2.3 of RFC4960. Also the number of missing reports to trigger fast retransmits is reduced to three as specified in RFC4960. * bug fix. A bug discovered by Eduardo Ribeiro and Igor Gavriloff regarding to memory deallocation is fixed. * new validation tests for NR-SACKs and limited send buffer size are added to the test suite. ns-2.34 Released on June 17, 2009 * bugfix for 802.11Ext model (from Felix-Schmidt-Eisenlohr and team) * mac/wirelessPhyExt: * the power monitor class is responsible to continously track the sum of all reception power values of all frames arriving in parallel and of the noise floor. In the earlier implementation this cumulated power was only decreased in situations where no packet arrived. Otherwise, powers were always further summed up, leading to a wrong setting of this variable, and in consequence, a wrong behavior of physical packet reception calculations. Furthermore, the busy/idle signalling was not correct. * Add AOMDV (On-demand Multipath Distance Vector Routing in Ad Hoc Networks) implementation from Marcello Caleffi * Collection of bug fixes for 802.11Ext model (from Felix-Schmidt-Eisenlohr and team) * mac/mac-802.11Ext: * feedback to higher layers on transmission failure: xmit_failure_data_ is delivered when a unicast packet was finally not sent successfully- corrected NAV update: in case a NAV is active and a new NAV is advertised an updated only occurs in case the new NAV takes longer than the one already running - bugfix: corrected backoff handling when 0 backoff slots are selected:- bugfix: resolved memory leak on broadcast packet transmission- duplicate suppression support: reactivate the feature of duplicate detection on MAC layer as it was done in earlier versions * code cleanup: removed TxTimer_t class * bugfix: ACK frames: explicitly set basic modulation scheme * mac/wirelessPhyExt: * update of modulation table: new threshold values are taken for the different modulation schemes due to newer measurements * bugfix: resched() instead of sched() in PowerMonitor::expire() * code cleanup: removed friend class PowerTimer * code cleanup: updated comment in recordPowerLevel() * new implementation of PowerMonitor (PowerTimer class now obsolete) * clarification of CSThresh variable (see below) * mac/channel.cc: for wirelessPhyExt only: correct calculation of distCST, using PowerMonitorThresh_ as the critical borderline power and including antenna gains. * tools/ranvar.cc: - bugfix: resolved memory leak in Erlang distribution * Bug fixes for 802.11 infrastructure code, posted by Ilango Purushothaman. * Patches for better memory management - use standard C++ lists to maintain AP and client tables, memory leaks fixed in AP scheduling queue * Triggering of handoff in Ad-hoc mode - Bug reported by Mayur - Resolved by adding an if condition for checking the 802.11 mode. * Note: The following traces changed as a result of this, but were verified by Ilango: ./test-all-wireless-infra ./test-all-wireless-infra-mobility ./test-all-wireless-shadowing ./test-all-wireless-lan-aodv ./test-all-wireless-gridkeeper ./test-all-wireless-lan-newnode * Import Tmix synthetic Internet traffic generation tool * Disable string literal warning for gcc version > 4.2 @ text @$NetBSD: patch-ar,v 1.4 2011/01/29 22:16:51 markd Exp $ Fix build with gcc4.5 --- tools/ranvar.cc.orig 2008-04-01 02:00:25.000000000 +0000 +++ tools/ranvar.cc @@@@ -216,7 +216,7 @@@@ double GammaRandomVariable::value() // ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000 if (alpha_ < 1) { double u = rng_->uniform(1.0); - return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_); + return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_); } double x, v, u; @ 1.4 log @Fix build with gcc4.5 @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update ns to 2.31. Major Changes: - Several changes to WPAN module. - Several changes to allow ns to compile on Solaris with the Sun C compiler. - Significant change to PackMime-HTTP HTTP/1.1 behavior. - Updated SCTP implementation. - corrected sendpacket() signature. - Major XCP cleanup. - Minor changes to TCP. - TFRC changes. - Adding DelayBox and PackMimeHTTP modules. @ text @d1 1 a1 1 $NetBSD: patch-ar,v 1.2 2006/01/27 02:31:43 minskim Exp $ d3 13 a15 21 --- xcp/xcpq.cc.orig 2005-10-19 21:45:25.000000000 -0700 +++ xcp/xcpq.cc @@@@ -57,12 +57,12 @@@@ public: } class_droptail_xcpq; -const double XCPQueue::BWIDTH; -const double XCPQueue::ALPHA_; -const double XCPQueue::BETA_; -const double XCPQueue::GAMMA_; -const double XCPQueue::XCP_MAX_INTERVAL; -const double XCPQueue::XCP_MIN_INTERVAL; +const double XCPQueue::BWIDTH = 0.01; +const double XCPQueue::ALPHA_ = 0.4; +const double XCPQueue::BETA_ = 0.226; +const double XCPQueue::GAMMA_ = 0.1; +const double XCPQueue::XCP_MAX_INTERVAL = 1.0; +const double XCPQueue::XCP_MIN_INTERVAL = .001; const int XCPQueue::BSIZE; @ 1.2 log @Update ns to 2.29. Changes: - updated SCTP implementation. - added new retransmission policy for sending fast retransmissions to the same destination and timeout retransmissions to an alternate destination - added experimental feature: changePrimaryThresh_ sets a threshold for when the primary destination is changed automatically - added the ability to specify one of three dormant state actions - added the ability to track the number of times fast retransmit, multiple fast retransmit, and timeouts are invoked - new TCL bindable variables: initial RTO, min RTO, max RTO, fast rtx trigger, and sack delay - bug fixes. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Make this package compile with gcc-4 by initializing const static data members outside their class. @ text @d3 1 a3 1 --- xcp/xcpq.cc.orig 2005-02-03 10:29:20.000000000 -0800 d5 2 a6 3 @@@@ -24,6 +24,13 @@@@ #include "xcp.h" #include "random.h" d8 8 d21 3 a23 5 +const double XCPQueue::BWIDTH = 0.01; + static class XCPQClass : public TclClass { public: XCPQClass() : TclClass("Queue/DropTail/XCPQ") {} @