|
From: <sul...@us...> - 2008-08-31 09:30:43
|
Revision: 240
http://gridsim.svn.sourceforge.net/gridsim/?rev=240&view=rev
Author: sulistio
Date: 2008-08-31 09:30:53 +0000 (Sun, 31 Aug 2008)
Log Message:
-----------
update this file to incorporate the new gridsim.net.fnb package.
Modified Paths:
--------------
trunk/source/gridsim/GridSim.java
trunk/source/gridsim/GridSimTags.java
Modified: trunk/source/gridsim/GridSim.java
===================================================================
--- trunk/source/gridsim/GridSim.java 2008-08-31 09:30:07 UTC (rev 239)
+++ trunk/source/gridsim/GridSim.java 2008-08-31 09:30:53 UTC (rev 240)
@@ -9,7 +9,7 @@
package gridsim;
-//import gridsim.net.fnb.FnbWhiteList;
+import gridsim.net.fnb.FnbWhiteList;
import gridsim.net.Link;
import gridsim.filter.*;
import java.io.*;
@@ -104,7 +104,7 @@
* if they are going to/coming from the entity stored in the list.
* @see gridsim.net.fnb.FnbWhiteList
*/
- //public static FnbWhiteList fnbWhiteList_ = null; // TODO
+ public static FnbWhiteList fnbWhiteList_ = null;
private static int gisID_ = -1; // id of GIS entity
private static int shutdownID_ = -1; // id of GridSimShutdown entity
@@ -2538,7 +2538,7 @@
case GridSimTags.NET_BUFFER_PACKET_LEVEL:
GridSimCore.NETWORK_TYPE = GridSimTags.NET_BUFFER_PACKET_LEVEL;
- //fnbWhiteList_ = new FnbWhiteList(); // TODO
+ fnbWhiteList_ = new FnbWhiteList();
break;
default:
Modified: trunk/source/gridsim/GridSimTags.java
===================================================================
--- trunk/source/gridsim/GridSimTags.java 2008-08-31 09:30:07 UTC (rev 239)
+++ trunk/source/gridsim/GridSimTags.java 2008-08-31 09:30:53 UTC (rev 240)
@@ -207,6 +207,64 @@
public static final int FLOW_ACK = NETBASE + 17;
+ ///////////////////////////////////////////////////////////////
+ // 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 = NETBASE + 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 its (Gridlet) packets
+ * has been dropped. */
+ public static final int FNB_GRIDLET_FAILED_BECAUSE_PACKET_DROPPED = NETBASE + 32;
+
+ /** This is to simulate the finite buffers. A FIFO dropping algorithm. */
+ public static final int FNB_FIFO = NETBASE + 33;
+
+ /** This is to simulate the finite buffers. A RED (Random Early Detection)
+ dropping algorithm. */
+ public static final int FNB_RED = NETBASE + 34;
+
+ /** This is to simulate the finite buffers.
+ * The event used to capture the number of dropped packets.
+ * This event is sent form a SCFScheduler to itself every T time. */
+ public static final int FNB_COUNT_DROPPED_PKTS = NETBASE + 35;
+
+ /** This is to simulate the finite buffers.
+ * Adaptative RED (Random Early Detection) dropping algorithm. */
+ public static final int FNB_ARED = NETBASE + 36;
+
+ /** This is to update the parameters of ARED. */
+ public static final int FNB_UPDATE_ARED_PARAMETERS = NETBASE + 37;
+
+ /** This is to simulate the finite buffers.
+ * This constant is used when an Output port tells a user that a file
+ * has failed because its (File) packets has been dropped. */
+ public static final int FNB_FILE_FAILED_BECAUSE_PACKET_DROPPED = NETBASE + 38;
+
+ /** This is to simulate the finite buffers.
+ * This constant is used when an Output port tells a user that a file
+ * and a gridlet have failed because their (File and Gridlet) packets
+ * has been dropped. */
+ public static final int FNB_FILE_GRIDLET_FAILED_BECAUSE_PACKET_DROPPED = NETBASE + 39;
+
+ /** This is to identify when a packet contains a file. */
+ public static final int FNB_PKT_CONTAINS_FILE = NETBASE + 40;
+
+ /** 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 a user.
+ * But the router does not notify immediately (when the dropping ocurs),
+ * but with a given delay (this delay). */
+ public static final double FNB_DROPPING_DELAY = 0.01; // 10 milliseconds
+
+
/////////////////////////////////////////////////////////////
// I intentionally put a gap to incorporate future tags
// so I don't have to change the numbers!
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|