Skip to content

Decrease link probing interval after switchover to better determine the overhead of a toggle #43#48

Merged
zjswhhh merged 4 commits intosonic-net:202012from
zjswhhh:202012
Mar 23, 2022
Merged

Decrease link probing interval after switchover to better determine the overhead of a toggle #43#48
zjswhhh merged 4 commits intosonic-net:202012from
zjswhhh:202012

Conversation

@zjswhhh
Copy link
Copy Markdown
Collaborator

@zjswhhh zjswhhh commented Mar 23, 2022

Description of PR

Original commit & PR in master branch:

c43cf7a Jing Zhang Tue Mar 22 16:22:00 2022 -0700 Decrease link probing interval after switchover to better determine the overhead of a toggle (#43)

Summary:
Fixes # (issue)

This PR is to get more accurate timestamp of when toggle completes on mux.

The method is to decrease link probing interval to 10ms after a switchover is triggered, and write the timestamp of link prober state change to state db LINK_PROBE_STATS table.

When switchover is over, revert the probing interval change. If switchover does not complete within 400ms, revert the change as well.

sign-off: Jing Zhang zhangjing@microsoft.com

Type of change

  • Bug fix
  • New feature
  • Doc/Design
  • Unit test

Approach

What is the motivation for this PR?

To better determine the overhead of a toggle.

How did you do it?

Decrease link probing interval after switchover is triggered.

How did you verify/test it?

Tested cases below on dual testbed:

  1. switchover succeeds, icmp_respnder is on.
  2. switchover completes but icmp_responder is off.

In both cases, link prober events are posted to state db as expected. Link probing interval is decreased and reverted as expected.

Any platform specific information?

Documentation

zjswhhh added 3 commits March 23, 2022 01:41
…he overhead of a toggle (sonic-net#43)

### Description of PR
Summary:
Fixes # (issue)

This PR is to get more accurate timestamp of when toggle completes on mux.  

The method is to decrease link probing interval to 10ms after a switchover is triggered, and write the timestamp of link prober state change to state db ```LINK_PROBE_STATS table```.

When switchover is over, revert the probing interval change. If switchover does not complete within 400ms, revert the change as well. 

### Type of change
- [x] New feature

### Approach
#### What is the motivation for this PR?
To better determine the overhead of a toggle. 

#### How did you do it?
Decrease link probing interval after switchover is triggered. 

#### How did you verify/test it?
Tested cases below on dual testbed: 
1. switchover succeeds, icmp_respnder is on. 
2. switchover completes but icmp_responder is off. 

In both cases, link prober events are posted to state db as expected. Link probing interval is decreased and reverted as expected.
@zjswhhh zjswhhh requested review from lolyu and yxieca March 23, 2022 01:52
Copy link
Copy Markdown
Contributor

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zjswhhh please update the PR message to state the reason for the change, you can copy it from the original PR.

@zjswhhh zjswhhh merged commit dfd48d0 into sonic-net:202012 Mar 23, 2022
@zjswhhh zjswhhh deleted the 202012 branch March 23, 2022 23:28
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.

2 participants