| Title ||
Buffering Packets for a Link
| DateSubmitted ||
26 Jul 2009
| CaseStudyType ||
| OperationsResearchTopics ||
| ApplicationAreas ||
| ProblemDescription ||
When data is transmitted on a computer network, it must leave the component, e.g., server, switch, PC, via a connection, e.g., network interface card (NIC), port, host-bus adapter (HBA), and be transmitted across a link to another component. The ouput connection must buffer data (i.e., store the data in some memory) if the link is already being used by another piece of data. This is know as output buffering.
One common question asked by network engineers is: "How big does my output buffer need to be so I don't lose data very often?".
In this case study we are going to consider data being sent from a server, via a NIC and ethernet link, to some data storage. The data gets split into packets and transmitted across the link. The size of the data determines the number of packets and, thus, the time the link needs to send the data.
The data being generated on the server is video being compressed before being sent. The time between transmissions is exponentially distributed with mean 1 minute. The size of the data follows a triangular distribution with minimum 3.75GB, mode 7.5GB and maximum 11.25GB. Given that the ethernet link has 1 Gbps of bandwidth and there are 8 bits in a byte, the transmission times also follow a triangular distribution with minimum 0.5 mins, mode 1 min and maximum 1.5 mins.
The goal of this simulation study is to find the average buffer size required in bytes.
| ProblemFormulation ||
This problem may be modelled as a single-server queue. The data forms the customers waiting for service and once data is being transmitted, it is being "served" by the link.
The interarrival and processing times are given by exponential and triangular distributions respectively. Although the interarrivals are Markovian, the service times are not. Thus we cannot use the M/M/1 queueing model analytical solution and must solve this problem numerically via simulation.
| ComputationalModel ||
This model requires one instance of each of three flowchart modules: Create, Process and Dispose. Data is created at the Create module, moves to the Process module to be transmitted across the link and then leaves via the Dispose module. See the Arena Guide for a demonstration of adding and connecting modules.
The time between arrivals of data is exponentially distributed with mean 1 minute. We can edit the Create module to implement this. Note that nothing interesting happens in the system until the first arrival, so we create the first arrival at the start of the simulation. Figure 1 shows the completed Create module.
Figure 1 Create Module
| Name | =Data Arrives=|
| Entity Type | |
| Type |
| Time Between Arrivals Area |
Random (Expo) |
| Value |
| * Units* |
If you are following along, you may want to save your model at this point.
Now that you've have defined the
Data entity type, you may want to change its initial animation picture.
UP TO HERE!!!
| Results ||
Once your Arena model is complete, you can run the model for multiple replications and get estimates for various different quantities:
Running the Output Buffering Model in Arena
| Conclusions ||
Need to show what the size of the buffer needs to be in GB. Get count of data in queue and multiply by size of data - what is average of triangular distribution? to get GBs
| ExtraForExperts ||
Rather than run trial replications in order to estimate how many replications are necessary to ensure the accuracy of a particular output, we can use dynamic simulation. Dynamic simulation measures the accuracy, i.e., half-width, of an output at the end of each replication and stops replicating once the desired accuracy has been achieved.
In Arena, this is implemented by setting the maximum number of replications "on the fly". However, this means that one extra replication is always performed. See the attached flash movie for a tutorial on implementing dynamic simulation:
Dynamic Simulation for the Output Buffering Model in Arena
| StudentTasks ||