Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't reset TCLink to zero loss and delay #881

Open
snizovtsev opened this issue May 30, 2019 · 4 comments · May be fixed by #1110
Open

Can't reset TCLink to zero loss and delay #881

snizovtsev opened this issue May 30, 2019 · 4 comments · May be fixed by #1110

Comments

@snizovtsev
Copy link

This optimization prevents zeroing loss or delay link parameters after non-zero period because "not 0 = True" in Python:

mininet/mininet/link.py

Lines 352 to 354 in e203808

if ( bw is None and not delay and not loss
and max_queue_size is None ):
return

It should be compared to None or running value instead.

cheriimoya added a commit to cheriimoya/mininet that referenced this issue Feb 2, 2022
@cheriimoya
Copy link
Contributor

you are right

@cheriimoya cheriimoya linked a pull request Feb 2, 2022 that will close this issue
@lantz
Copy link
Member

lantz commented Apr 1, 2022

I believe the intent was to not add an unnecessary queuing discipline.

Is there a workaround if you set the loss to 0%?

cheriimoya added a commit to cheriimoya/mininet that referenced this issue Apr 3, 2022
@janev94
Copy link

janev94 commented Nov 18, 2022

addLink currently by default makes loss to 0%. This is not an issue in the current build at least @lantz .

@lantz
Copy link
Member

lantz commented Nov 19, 2022

@cheriimoya
Is setting the loss to 0% a reasonable workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants