From: <aca...@us...> - 2008-05-29 16:41:31
|
Revision: 176 http://gridsim.svn.sourceforge.net/gridsim/?rev=176&view=rev Author: acaminero Date: 2008-05-29 09:40:25 -0700 (Thu, 29 May 2008) Log Message: ----------- added new tags for the gridsim.net.fnb package?\195?\167 Modified Paths: -------------- branches/gridsim4.0-branch2/source/gridsim/GridSimTags.java Modified: branches/gridsim4.0-branch2/source/gridsim/GridSimTags.java =================================================================== --- branches/gridsim4.0-branch2/source/gridsim/GridSimTags.java 2008-05-27 07:55:44 UTC (rev 175) +++ branches/gridsim4.0-branch2/source/gridsim/GridSimTags.java 2008-05-29 16:40:25 UTC (rev 176) @@ -32,30 +32,30 @@ private static final int ARBASE = 200; public static final int NET_PACKET_LEVEL = NETBASE + 11; - + public static final int NET_FLOW_LEVEL = NETBASE + 12; - + // Denotes flow en-route to destination (used manually by entities) - public static final int FLOW_SUBMIT = NETBASE + 13; - + public static final int FLOW_SUBMIT = NETBASE + 13; + // Internal message to check forecast of flow duration public static final int FLOW_HOLD = NETBASE + 14; - + // Message to update forecast of flow duration public static final int FLOW_UPDATE = NETBASE + 15; - + // Denotes flow ack en-route to destination (used manually by entities) public static final int FLOW_ACK = NETBASE + 16; - + // identify a flow as a junk flow used for background traffic - // public static final int JUNK_FLOW = NETBASE + 17; - + // public static final int JUNK_FLOW = NETBASE + 17; + public static final int NET_BUFFER_PACKET_LEVEL = NETBASE + 18; - + // TODO: different flow sharing models - not sure if I will need these // INV-LAT flows are weighted proportionally to the bottleneck latency // public static final int NET_FLOW_LEVEL_INV_LAT = NETBASE + x; - // INV-LAT-BOUND flows are weighted proportionally to the bottleneck latency + // INV-LAT-BOUND flows are weighted proportionally to the bottleneck latency // with bounded bandwidth availability // INV-RTT flows are weighted proportionally to the bottleneck RTT // public static final int NET_FLOW_LEVEL_INV_RTT = NETBASE + x; @@ -64,7 +64,7 @@ // public static final int NET_FLOW_LEVEL_INV_RTT_BOUND = NETBASE + x; // MAX-MIN flows are equally weighted so all flows get equal share // public static final int NET_FLOW_LEVEL_MAX_MIN = NETBASE + x; - + ////////////////////////////////////////////////////////////////////// /** Denotes boolean <tt>true</tt> in <tt>int</tt> value */ @@ -206,8 +206,8 @@ * {@link gridsim.net.Output} entities. */ public static final int EMPTY_PKT = NETBASE + 8; - + /** Denotes that this packet will be sent to a packet scheduler by a router * for enqueing. * This tag is used by a router to an active packet scheduler, such as @@ -273,9 +273,73 @@ */ public static final int GRIDLET_MOVE_ACK = BASE + 30; + /////////////////////////////////////////////////////////////// + // For the gridsim.net.fnb package + /**This is to simulate the finite buffers. This constant is to tell an entity + * that a packet has been dropped*/ + public static final int FNB_PACKET_DROPPED = BASE + 31; + + + /**This is to simulate the finite buffers. This constant is used when an Output + * port tells a user that a gridlet has failed because at least of his packets + * has been dropped*/ + public static final int FNB_GRIDLET_FAILED_BECAUSE_PACKET_DROPPED = BASE + 32; + + /**This is to simulate the finite buffers. A FIFO dropping algorithm*/ + public static final int FNB_FIFO = BASE + 33; + + /**This is to simulate the finite buffers. A RED (Random Early Detection) dropping algorithm*/ + public static final int FNB_RED = BASE + 34; + + /**This is to simulate the finite buffers. The event used to capture the number + * of dropped pkts. This event is sent form a SCFScheduler to itself every T time*/ + public static final int FNB_COUNT_DROPPED_PKTS = BASE + 35; + + /**This is to simulate the finite buffers. Adaptative RED (Random Early Detection) dropping algorithm*/ + public static final int FNB_ARED = BASE + 36; + + /**This is to update the parameters of ARED*/ + public static final int FNB_UPDATE_ARED_PARAMETERS = BASE + 37; + + /**This is to update the parameters of ARED. The time period between updates (0.5 seconds)*/ + public static final double FNB_UPDATE_ARED_PARAMETERS_PERIOD = 0.5; + + /** + * When a router drops a packet, it has to tell to user, so that he does not get jammed. + * But it does not do it immediately (when the dropping ocurs) but with a given delay (this delay).*/ + public static final double FNB_DROPPING_DELAY = 0.01; // 10 milliseconds + /////////////////////////////////////////////////////////////// + /** + * This is to simulate resource failure. The RegioalGIS will send this event + * to itself, so that it can decide which time the event is sent. Also, The RegionalGIS + * will send this event to the GridResource to make it "fail" for a period of time. + * This tag is also used when a failed resource receives a ping request. + * In this case, the resource will use this tag in the ping response */ + public static final int GRIDRESOURCE_FAILURE = 10000 + 31; + + /** + * This is used when a resource which has failed comes back to life. */ + public static final int GRIDRESOURCE_RECOVERY = 10000 + 32; + + /** + * This is used when the user polls the resource to find out if they are out of order. */ + public static final int GRIDRESOURCE_FAILURE_INFO = 10000 + 33; + + /** + * This is used when the user polls the resources . */ + public static final int GRIDRESOURCE_POLLING = 10000 + 34; + + /** The polling interval for users*/ + public static final int POLLING_TIME_USER = 100; // 5; + + /** The polling interval for the GISs entities*/ + public static final int POLLING_TIME_GIS = 2000; //10; + + /////////////////////////////////////////////////////////////// + // The below tags are sent by AdvanceReservation to ARGridResource class /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |