The RFC name for derived rate is forwarding rate,
but proper English name for corresponding count is forwarded count.
Not receive count, not forwarding count.
Change-Id: I300507b81e45b21d81bd844ce6c1e8fce72177f2
Signed-off-by: Vratko Polak <[email protected]>
... intended_duration=intended_duration,
... intended_load=intended_load,
... offered_count=sent,
- ... forwarding_count=received,
+ ... forwarded_count=received,
... )
...
>>> def print_dot(_):
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
intended_load=result.intended_load,
offered_count=result.offered_count,
loss_count=result.loss_count,
- forwarding_count=result.forwarding_count,
+ forwarded_count=result.forwarded_count,
offered_duration=result.offered_duration,
duration_with_overheads=result.duration_with_overheads,
intended_count=result.intended_count,
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
so that asymmetric trafic profiles are supported."""
loss_count: int = None
"""Number of packets transmitted but not received (transactions failed)."""
- forwarding_count: int = None
+ forwarded_count: int = None
"""Number of packets successfully forwarded (transactions succeeded)."""
# Optional primary quantities.
offered_duration: float = None
else:
self.duration_with_overheads = float(self.duration_with_overheads)
self.intended_load = float(self.intended_load)
- if self.forwarding_count is None:
- self.forwarding_count = int(self.offered_count) - int(
+ if self.forwarded_count is None:
+ self.forwarded_count = int(self.offered_count) - int(
self.loss_count
)
else:
- self.forwarding_count = int(self.forwarding_count)
+ self.forwarded_count = int(self.forwarded_count)
if self.offered_count is None:
- self.offered_count = self.forwarding_count + int(self.loss_count)
+ self.offered_count = self.forwarded_count + int(self.loss_count)
else:
self.offered_count = int(self.offered_count)
if self.loss_count is None:
- self.loss_count = self.offered_count - self.forwarding_count
+ self.loss_count = self.offered_count - self.forwarded_count
else:
self.loss_count = int(self.loss_count)
if self.intended_count is None:
rate=intended_load,
async_call=False,
)
- if result.receive_count >= 0:
+ if result.forwarded_count >= 0:
break
- logger.debug(f"Retry on negative count: {result.receive_count}")
+ logger.debug(f"Retry on negative count: {result.forwarded_count}")
else:
raise RuntimeError(f"Too many negative counts in a row!")
logger.debug(f"Trial measurement result: {result!r}")
| | | ... | ramp_up_rate=${ramp_up_rate}
| | | # Out of several quantities for aborted traffic (duration stretching),
| | | # the approximated receive rate is the best estimate we have.
-| | | ${value} = | Set Variable | ${result.forwarding_count}
+| | | ${value} = | Set Variable | ${result.forwarded_count}
| | | Run Keyword If | ${value} < 0 | Log | Negative count ignored! | WARN
| | | Continue For Loop If | ${value} < 0
| | | ${value} = | Evaluate | ${value} / ${result.offered_duration}