osmo-hnbgw/src/osmo-hnbgw
Neels Hofmeyr 92bf0e31b0 per-HNB GTP-U traffic counters via nft
Add external dependency libnftables.

When an hNodeB registers, set up nftables rules to count GTP-U packets
(UDP port 2152) to and from that hNodeB's address -- we are assuming
that it is the same address that Iuh is connecting from.

This is a "workaround" to get performance indicators per hNodeB, without
needing a UPF that supports URR.

This patch reads counters from the nftables response using "manual"
string parsing. See also Id4e7fa017c31945388a010d8581715d71482116b which
modifies this to full JSON parsing.

Tweaked-by: osmith
Related: SYS#6773
Depends: libosmocore I0df84b4bb8cb5d8434b735fa3a38e7f95be43e91
Change-Id: I35b7e97fd039e36633dfde1317170527c82f9f68
2024-04-07 21:12:48 +02:00
..
Makefile.am per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
cnlink.c stats: Introduce basic counters for RANAP unit-data from CN links 2024-03-12 20:47:50 +00:00
context_map.c detect in/active CN links by RANAP RESET 2023-06-21 04:16:13 +02:00
context_map_rua.c context_map_{rua,sccp}: Re-order to always process KPIs 2024-03-27 18:22:10 +01:00
context_map_sccp.c context_map_{rua,sccp}: Re-order to always process KPIs 2024-03-27 18:22:10 +01:00
hnbgw.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
hnbgw_cn.c cosmetic: align downlink RANAP unitdata function names with uplink 2024-03-13 12:11:01 +01:00
hnbgw_hnbap.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
hnbgw_l3.c rename hnbgw_peek_l3 to hnbgw_peek_l3_ul as it's uplink only 2024-03-12 23:28:50 +00:00
hnbgw_pfcp.c simplify: one g_hnbgw as global state and root ctx 2023-05-07 00:18:34 +02:00
hnbgw_ranap.c cosmetic: Rename hnbgw_rx_ranap and friends to *_rx_ranap_udt_ul 2024-03-12 23:28:50 +00:00
hnbgw_rua.c rename hnbgw_peek_l3 to hnbgw_peek_l3_ul as it's uplink only 2024-03-12 23:28:50 +00:00
hnbgw_vty.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
kpi_ranap.c RAB activation/modification/release statistics 2024-03-18 13:50:36 +01:00
mgw_fsm.c mgw_fsm: Add some OSMO_ASSERT() to ensure only CS maps passed 2024-03-13 12:11:01 +01:00
nft_kpi.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
osmo_hnbgw_main.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00
ps_rab_ass_fsm.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
ps_rab_fsm.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
ranap_rab_ass.c Fix license headers: Should have been AGPLv3+, not GPLv2+ 2024-02-17 10:28:41 +01:00
tdefs.c per-HNB GTP-U traffic counters via nft 2024-04-07 21:12:48 +02:00