00001 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ 00002 /* 00003 * Copyright (c) 2000 International Computer Science Institute 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * 3. All advertising materials mentioning features or use of this software 00015 * must display the following acknowledgement: 00016 * This product includes software developed by ACIRI, the AT&T 00017 * Center for Internet Research at ICSI (the International Computer 00018 * Science Institute). 00019 * 4. Neither the name of ACIRI nor of ICSI may be used 00020 * to endorse or promote products derived from this software without 00021 * specific prior written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY ICSI AND CONTRIBUTORS ``AS IS'' AND 00024 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00026 * ARE DISCLAIMED. IN NO EVENT SHALL ICSI OR CONTRIBUTORS BE LIABLE 00027 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00028 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00029 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00030 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00031 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00032 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00033 * SUCH DAMAGE. 00034 * 00035 */ 00036 00037 #ifndef ns_pushback_constants_h 00038 #define ns_pushback_constants_h 00039 00040 /* #define DEBUG_LGDS */ 00041 /* #define DEBUG_LGDSN */ 00042 /* #define DEBUG_AS */ 00043 /* #define DEBUG_RLSL */ 00044 00045 #define NO_BITS 4 00046 #define MAX_CLUSTER 20 00047 #define CLUSTER_LEVEL 4 00048 #define MIN_BITS_FOR_MERGER 2 00049 00050 //make it 0 to classify on the basis of dst addresses 00051 //make it 1 to classify on the basis of flowid 00052 #define AGGREGATE_CLASSIFICATION_MODE_FID 1 00053 00054 //0 for the old version 00055 //1 for the dynamic version 00056 #define LOWER_BOUND_MODE 1 00057 00058 //maximum number of rate-limiting sessions that a congested router can start. 00059 #define MAX_SESSIONS 3 00060 00061 //0 for No Mergers of aggregate prefixes 00062 //1 for Mergers 00063 #define MERGER_MODE 0 00064 00065 // maximum no of queues on the node 00066 #define MAX_QUEUES 10 00067 00068 //min time to release an aggregate after starting to rate-limit it. 00069 #define EARLIEST_TIME_TO_FREE 10 00070 00071 //min time to release an aggregate after it goes below limit imposed on it. 00072 #define MIN_TIME_TO_FREE 20 00073 #define PRIMARY_WAITING_ZONE 10 00074 #define RATE_LIMIT_TIME_DEFAULT 30 //in seconds 00075 #define DEFAULT_BUCKET_DEPTH 5000 //in bytes 00076 00077 00078 #define PUSHBACK_CHECK_EVENT 1 00079 #define PUSHBACK_REFRESH_EVENT 2 00080 #define PUSHBACK_STATUS_EVENT 3 00081 #define INITIAL_UPDATE_EVENT 4 00082 00083 #define PUSHBACK_CHECK_TIME 5 //in seconds 00084 #define PUSHBACK_CYCLE_TIME 5 00085 #define INITIAL_UPDATE_TIME 0.5 00086 00087 #define DROP_RATE_FOR_PUSHBACK 0.10 00088 00089 #define SUSTAINED_CONGESTION_PERIOD 2 //in seconds 00090 #define SUSTAINED_CONGESTION_DROPRATE 0.10 //fraction 00091 #define TARGET_DROPRATE 0.05 00092 00093 #define MAX_PACKET_TYPES 4 00094 #define PACKET_TYPE_TIMER 2 00095 00096 #define INFINITE_LIMIT 100e+6 //100Mbps 00097 00098 #endif