Skip to content

Reduce TTIGW protocol disconnects based on missed pongs#7733

Merged
johanstokking merged 2 commits into
v3.34from
fix/ttigw-ping
Oct 10, 2025
Merged

Reduce TTIGW protocol disconnects based on missed pongs#7733
johanstokking merged 2 commits into
v3.34from
fix/ttigw-ping

Conversation

@johanstokking
Copy link
Copy Markdown
Member

Summary

This reduces the number of TTIGW protocol disconnections because of not receiving pong answers to pings in time.

The ping timeout and interval are now aligned with the Gateway Controller. The Gateway Controller marks far less gateway connections as disconnected for the same gateway during the same time frame, suggesting that The Things Stack unnecessarily marks gateway connections gone.

Changes

  • Increase ping interval from 30 seconds to 1 minute
  • Increase ping timeout from 10 seconds to 30 seconds

Testing

We'll observe this in operational metrics.

Checklist

  • Scope: The referenced issue is addressed, there are no unrelated changes.
  • Compatibility: The changes are backwards compatible with existing API, storage, configuration and CLI, according to the compatibility commitments in README.md for the chosen target branch.
  • Documentation: Relevant documentation is added or updated.
  • Testing: The steps/process to test this feature are clearly explained including testing for regressions.
  • Infrastructure: If infrastructural changes (e.g., new RPC, configuration) are needed, a separate issue is created in the infrastructural repositories.
  • Changelog: Significant features, behavior changes, deprecations and fixes are added to CHANGELOG.md.
  • Commits: Commit messages follow guidelines in CONTRIBUTING.md, there are no fixup commits left.

This is now aligned with the settings of the Gateway Controller. The Gateway Controller reports far less disconnects during the same time period than The Things Stack, indicating that The Things Stack marks the gateway connection disconnected unnecessarily, possibly during short Cellular or WiFi outages.
@johanstokking johanstokking added this to the v3.35.0 milestone Oct 8, 2025
@johanstokking johanstokking self-assigned this Oct 8, 2025
@johanstokking johanstokking requested a review from a team as a code owner October 8, 2025 07:48
@github-actions github-actions Bot added c/gateway server This is related to the Gateway Server compat/config This could affect Configuration compatibility labels Oct 8, 2025
Copy link
Copy Markdown
Member

@happyRip happyRip left a comment

Choose a reason for hiding this comment

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

LGTM

@johanstokking johanstokking merged commit 6d83451 into v3.34 Oct 10, 2025
13 checks passed
@johanstokking johanstokking deleted the fix/ttigw-ping branch October 10, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/gateway server This is related to the Gateway Server compat/config This could affect Configuration compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants