0% found this document useful (0 votes)
67 views2 pages

Rate Adaptation

The document summarizes the results of three scenarios in a simulation of a system with a source, queue, and sink. The first scenario uses the default parameters without rate adaptation. The second scenario halves the service time when the queue length reaches a quarter of the capacity. The third scenario doubles the service time when the interarrival time is greater than or equal to half the service time. Graphs are presented showing the queue length behavior for each scenario.

Uploaded by

fykk
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views2 pages

Rate Adaptation

The document summarizes the results of three scenarios in a simulation of a system with a source, queue, and sink. The first scenario uses the default parameters without rate adaptation. The second scenario halves the service time when the queue length reaches a quarter of the capacity. The third scenario doubles the service time when the interarrival time is greater than or equal to half the service time. Graphs are presented showing the queue length behavior for each scenario.

Uploaded by

fykk
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Rate Adaptation

Simulation Results

Faheem
January 5, 2012

Model
Source

Queue

Sink

Parameters
Source.interArrivalTime = 1ms
Source.numJobs = 10
Queue.serviceTime= 2ms
Queue.capacity = 10

Scenario-1
(Plain - No Rate Adaptation)

Results
Queue Length Behavior
0.000

0.0010

0.0020

0.0030

0.0040

0.0050

0.0060

0.0070

0.0080

0.0090

0.0100

0.0110

0.0120

0.0130

0.0140

0.0150

0.0160

0.0170

0.0180

0.0190

0
0.000

0
0.0010

0.0020

0.0030

0.0040

0.0050

0.0060

0.0070

0.0080

0.0090

0.0100

Time (sec)

Scenario-2
if (queue.length() queue.capacity/4)
{
ServiceTime/2
}
else
{
ServiceTime
}

0.0110

0.0120

0.0130

0.0140

0.0150

0.0160

0.0170

0.0180

0.0190

Results
Queue Length Behavior
0.000

0.0010

0.0020

0.0030

0.0040

0.0050

0.0060

0.0070

0.0080

0.0090

0.0100

0.0110

0.0120

0.0130

0.0140

3.0

3.0

2.0

2.0

1.0

1.0

0
0.000

0
0.0010

0.0020

0.0030

0.0040

0.0050

0.0060

0.0070

0.0080

0.0090

0.0100

0.0110

0.0120

0.0130

0.0140

Time (sec)

Scenario-3
if (interArrivalTime serviceTime/2)
{
ServiceTime2
}
else
{
ServiceTime
}

Results
Queue Length Behavior
0.00

0.002

0.004

0.006

0.008

0.010

0.012

0.014

0.016

0.018

0.020

0.022

0.024

0.026

0.028

0.030

0.032

0.034

0
0.00

0
0.002

0.004

0.006

0.008

0.010

0.012

0.014

0.016

0.018

Time (sec)

0.020

0.022

0.024

0.026

0.028

0.030

0.032

0.034

You might also like