feat: new in-band network telemetry collector plugin

Closes issue #116 (closed)

Edited by Georgios P. Katsikas

Merge request reports

Loading
+11 −0
Changes for deploy/tfs.sh: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -97,6 +97,11 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"}
export KFK_NAMESPACE=${KFK_NAMESPACE:-"kafka"}


# ----- Telemetry Config ------------------------------------------------------

# Replace LOAD_BALANCER_IP
export LOAD_BALANCER_IP=${LOAD_BALANCER_IP:-""}

########################################################################################################################
# Automated steps start here
########################################################################################################################
@@ -215,6 +220,9 @@ else
fi
printf "\n"

# Before deployment change the telemetry LOAD_BALANCER_IP
sed -i "s|_LOAD_BALANCER_IP_|$LOAD_BALANCER_IP|g" manifests/telemetryservice.yaml

for COMPONENT in $TFS_COMPONENTS; do
    echo "Processing '$COMPONENT' component..."

@@ -597,6 +605,9 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui"
    printf "\n\n"
fi

# Revert _LOAD_BALANCER_IP_ for the next deployment
sed -i "s|$LOAD_BALANCER_IP|_LOAD_BALANCER_IP_|g" manifests/telemetryservice.yaml

echo "Pruning Docker Images..."
docker image prune --force
printf "\n\n"

manifests/metallb.yaml

0 → 100644
+30 −0
Changes for manifests/metallb.yaml: 30 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Use this YAML to change configuration of MetalLB in real time.

apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: my-ip-pool
  namespace: metallb-system
spec:
  addresses:
    - 192.168.5.250-192.168.5.251  # <-- Change this to match your network
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
  name: l2-adv
  namespace: metallb-system
+7 −1
Changes for manifests/telemetryservice.yaml: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -94,10 +94,16 @@ metadata:
  labels:
    app: telemetryservice
spec:
  type: ClusterIP
  type: LoadBalancer
  loadBalancerIP: _LOAD_BALANCER_IP_
  externalTrafficPolicy: Local
  selector:
    app: telemetryservice
  ports:
    - name: dnsudp
      protocol: UDP
      port: 12345
      targetPort: 12345
    - name: grpc
      protocol: TCP
      port: 30050
+25 −0
Changes for proto/kpi_sample_types.proto: 25 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -49,4 +49,29 @@ enum KpiSampleType {
    KPISAMPLETYPE_BYTES_DROPPED_AGG_OUTPUT       = 1203;

    KPISAMPLETYPE_SERVICE_LATENCY_MS_AGG_OUTPUT  = 1701;

    // INT KPIs
    KPISAMPLETYPE_INT_SEQ_NUM        = 2001;
    KPISAMPLETYPE_INT_TS_ING         = 2002;
    KPISAMPLETYPE_INT_TS_EGR         = 2003;
    KPISAMPLETYPE_INT_HOP_LAT        = 2004;
    KPISAMPLETYPE_INT_PORT_ID_ING    = 2005;
    KPISAMPLETYPE_INT_PORT_ID_EGR    = 2006;
    KPISAMPLETYPE_INT_QUEUE_OCCUP    = 2007;
    KPISAMPLETYPE_INT_QUEUE_ID       = 2008;

    KPISAMPLETYPE_INT_HOP_LAT_SW01   = 2101;
    KPISAMPLETYPE_INT_HOP_LAT_SW02   = 2102;
    KPISAMPLETYPE_INT_HOP_LAT_SW03   = 2103;
    KPISAMPLETYPE_INT_HOP_LAT_SW04   = 2104;
    KPISAMPLETYPE_INT_HOP_LAT_SW05   = 2105;
    KPISAMPLETYPE_INT_HOP_LAT_SW06   = 2106;
    KPISAMPLETYPE_INT_HOP_LAT_SW07   = 2107;
    KPISAMPLETYPE_INT_HOP_LAT_SW08   = 2108;
    KPISAMPLETYPE_INT_HOP_LAT_SW09   = 2109;
    KPISAMPLETYPE_INT_HOP_LAT_SW10   = 2110;
    KPISAMPLETYPE_INT_LAT_ON_TOTAL   = 2120;

    KPISAMPLETYPE_INT_IS_DROP        = 2201;
    KPISAMPLETYPE_INT_DROP_REASON    = 2202;
}
+8 −0
Changes for proto/telemetry_frontend.proto: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -35,6 +35,14 @@ message Collector {
   float              interval_s    = 4; // Interval between collected samples
   context.Timestamp  start_time    = 5; // Timestamp when Collector start execution
   context.Timestamp  end_time      = 6; // Timestamp when Collector stop execution
   INTCollector       int_collector = 7; // Extra optional information about INT collectors
 }

message INTCollector {
    int32  transport_port = 1; // The port where the collector listens to packets
    string interface      = 2; // Network interface to collect data from
    string service_id     = 3; // Service identifier related to this collector
    string context_id     = 4; // Context identifier related to this collector
}

message CollectorFilter {
Loading
Loading