Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
d9e7a94f
Commit
d9e7a94f
authored
Aug 29, 2006
by
Robert Ricci
Browse files
Bugfix: Only try to get the max delay for established connections.
parent
a46202e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/magent/MaxDelaySensor.cc
View file @
d9e7a94f
...
...
@@ -23,7 +23,14 @@ void MaxDelaySensor::localSend(PacketInfo *)
void
MaxDelaySensor
::
localAck
(
PacketInfo
*
packet
)
{
int
current
=
delay
->
getLastDelay
();
/*
* Only try to make this calculation on established connections
*/
if
(
state
->
getState
()
!=
StateSensor
::
ESTABLISHED
)
{
return
;
}
/*
* We assume that the minimum delay is transmission delay plus the
* propagation delay. Thus, any additional time is from queueing.
...
...
@@ -32,6 +39,7 @@ void MaxDelaySensor::localAck(PacketInfo * packet)
* dummynet queue, so we have to include the 'forward' part of the min delay
* in our calculation.
*/
int
current
=
delay
->
getLastDelay
();
int
minimumDelay
=
mindelay
->
getMinDelay
();
int
queueingDelay
=
current
-
(
minimumDelay
/
2
);
logWrite
(
SENSOR
,
"current=%d,min=%d,queueing=%d,saturated=%d"
,
current
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment