yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
165 stars 17 forks source link

[DataPlane] Allow to configure keepstate timeouts #61

Closed GeorgyKirichenko closed 4 months ago

GeorgyKirichenko commented 9 months ago

DataPlane emits a state record for each network packet matched against a firewall rule marked with a keepstate keyword. Such state records are cleared up by GC after some period of inactivity configured stateful_firewall_tcp_timeout in case of a tcp session. So there is no way to manage session lifetime depending either on its state (half-open, closed, etc) or source or destination.

There are following major directions to resolve the issue:

However, all the directions do not contradict each other and may be implemented simultaneously.