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

Feature/add lacp rate #937

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

globaltrouble
Copy link

@globaltrouble globaltrouble commented Jan 28, 2022

PR title state context
[swss/cfgmgr] teammgr configure lacp rate sonic-swss#2121 teammgr configure lacp rate teammgr configure lacp rate
add lacp_rate to portchanne add lacp_rate to portchanne add lacp_rate to portchanne

What I did

Make lacp_rate configurable for portchannel.

	Option specifying the rate in which we'll ask our link partner
	to transmit LACPDU packets in 802.3ad mode.  Possible values
	are:

	slow
		Request partner to transmit LACPDUs every 30 seconds

	fast
		Request partner to transmit LACPDUs every 1 second

	The default is slow.

Why I did it

In case of slow lacp_rate configuration link down will be detected in 60-90 seconds, it may be to long (for example for MCLAG high availability), in case of using --fast-rate=true link down will be detected in 2-3 seconds.

How I did it

How to verify it

Confgiure bond on other side, then configure portchannel and sniff the traffic from it.

config portchannel add PortChannel0001  --fast-rate=true
config portchannel member add PortChannel0001 Ethernet0
config interface ip add PortChannel0001  192.168.1.2/24
tcpdump -ne

@globaltrouble
Copy link
Author

@stcheng could you please review it?

@nazariig
Copy link
Collaborator

nazariig commented Apr 5, 2022

Related PR's

@msosyak please have all the PRs in description section.
Example:

https://github.com/Azure/SONiC/pull/909

@yxieca yxieca force-pushed the master branch 2 times, most recently from 8498931 to 8837dc2 Compare April 15, 2022 16:51
@msosyak
Copy link

msosyak commented Jul 13, 2022

Related PR's

@msosyak please have all the PRs in description section. Example:

https://github.com/Azure/SONiC/pull/909

Unfortunately, I am not the author of PR, so I cant changes the descriotion

@globaltrouble
Copy link
Author

Related PR's

@msosyak please have all the PRs in description section. Example:

https://github.com/Azure/SONiC/pull/909

Unfortunately, I am not the author of PR, so I cant changes the descriotion

Updated the description

@msosyak
Copy link

msosyak commented Aug 9, 2022

/easycla

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 9, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: msosyak / name: Myron Sosyak (8f87358)

alter Incremental IP LAG Update.md

add lacp rate to mclag enhancements_HLD

Update Incremental IP LAG Update.md

Update Incremental IP LAG Update.md
@msosyak msosyak force-pushed the feature/add-lacp-rate branch from 7d70bda to 8f87358 Compare August 9, 2022 10:13
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Aug 13, 2022
#### What I did

Make lacp_rate configurable for portchannel.


```
	Option specifying the rate in which we'll ask our link partner
	to transmit LACPDU packets in 802.3ad mode.  Possible values
	are:

	slow
		Request partner to transmit LACPDUs every 30 seconds

	fast
		Request partner to transmit LACPDUs every 1 second

	The default is slow.
```

#### Why I did it

In case of slow lacp_rate configuration link down will be detected in 60-90 seconds, it may be to long (for example for MCLAG high availability), in case of using ` --fast-rate=true` link down will be detected in 2-3 seconds.

#### How I did it
   
* add optional argument to `config portchannel` command, default=slow for backward compatibility. (this PR)
* parse argument in `teammgr` and forward it to `teamd` (other PR: sonic-net/sonic-swss#2121)
* update docs sonic-net/SONiC#937

#### How to verify it

Confgiure bond on other side, then configure portchannel and sniff the traffic from it.

```
config portchannel add PortChannel0001 --fast-rate=true
config portchannel member add PortChannel0001 Ethernet0
config interface ip add PortChannel0001  192.168.1.2/24
tcpdump -ne
```
@msosyak
Copy link

msosyak commented Aug 15, 2022

@qiluo-msft All related PR;'s are merged. Please help to merge this documentation update as well.

@msosyak
Copy link

msosyak commented Aug 29, 2022

@qiluo-msft @xumia @judyjoseph Please merge this PR

@msosyak
Copy link

msosyak commented Sep 13, 2022

Implementation is already merged. This PR is just an update for documentation.
@nazariig Please review/approve
@qiluo-msft Please merge

@twtseng-tim
Copy link

Does this feature need to be added to the show interface portchannel?

preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
#### What I did

Make lacp_rate configurable for portchannel.


```
	Option specifying the rate in which we'll ask our link partner
	to transmit LACPDU packets in 802.3ad mode.  Possible values
	are:

	slow
		Request partner to transmit LACPDUs every 30 seconds

	fast
		Request partner to transmit LACPDUs every 1 second

	The default is slow.
```

#### Why I did it

In case of slow lacp_rate configuration link down will be detected in 60-90 seconds, it may be to long (for example for MCLAG high availability), in case of using ` --fast-rate=true` link down will be detected in 2-3 seconds.

#### How I did it
   
* add optional argument to `config portchannel` command, default=slow for backward compatibility. (this PR)
* parse argument in `teammgr` and forward it to `teamd` (other PR: sonic-net/sonic-swss#2121)
* update docs sonic-net/SONiC#937

#### How to verify it

Confgiure bond on other side, then configure portchannel and sniff the traffic from it.

```
config portchannel add PortChannel0001 --fast-rate=true
config portchannel member add PortChannel0001 Ethernet0
config interface ip add PortChannel0001  192.168.1.2/24
tcpdump -ne
```
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
#### What I did

Make lacp_rate configurable for portchannel.


```
	Option specifying the rate in which we'll ask our link partner
	to transmit LACPDU packets in 802.3ad mode.  Possible values
	are:

	slow
		Request partner to transmit LACPDUs every 30 seconds

	fast
		Request partner to transmit LACPDUs every 1 second

	The default is slow.
```

#### Why I did it

In case of slow lacp_rate configuration link down will be detected in 60-90 seconds, it may be to long (for example for MCLAG high availability), in case of using ` --fast-rate=true` link down will be detected in 2-3 seconds.

#### How I did it
   
* add optional argument to `config portchannel` command, default=slow for backward compatibility. (this PR)
* parse argument in `teammgr` and forward it to `teamd` (other PR: sonic-net/sonic-swss#2121)
* update docs sonic-net/SONiC#937

#### How to verify it

Confgiure bond on other side, then configure portchannel and sniff the traffic from it.

```
config portchannel add PortChannel0001 --fast-rate=true
config portchannel member add PortChannel0001 Ethernet0
config interface ip add PortChannel0001  192.168.1.2/24
tcpdump -ne
```
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 this pull request may close these issues.

4 participants