From ace499fbbdd44cbb9c0d68d6aad40e0b280d54de Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Thu, 2 Jul 2020 10:02:40 +0200 Subject: Added support for reporting packet (mis)order. The "Latency" screen has been updated with 3 columns: - mis-ordered Count the number of mis-ordered packets. - extent: Gives an indication of how mis-ordered the packets are. Receiving packet "x - 5" after receiving packet "x" will cause an extent of 5. - duplicate: Count number of duplicate packets. Following commands have been added for the impair mode: - proba no drop: replaces the former "probability" command. Percentage of forwarded packets. So 99.5 means 0.5% of packet drop. - proba delay Percentage of delayed packets for the impair mode. - proba duplicate Percentage of duplicate packets. Similar parameters are supported within the config files: - proba no drop - proba delay - proba duplicate Note: it is recommanded to use the signature when measuring packet misorder, as otherwise unexpected packet would cause miscounts. Change-Id: I037f606f264d6e2bd7f123df5ed57ab7df8386d7 Signed-off-by: Xavier Simonart --- VNFs/DPPD-PROX/handle_impair.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'VNFs/DPPD-PROX/handle_impair.h') diff --git a/VNFs/DPPD-PROX/handle_impair.h b/VNFs/DPPD-PROX/handle_impair.h index 162213ed..c2d10ab3 100644 --- a/VNFs/DPPD-PROX/handle_impair.h +++ b/VNFs/DPPD-PROX/handle_impair.h @@ -18,6 +18,8 @@ #define _HANDLE_IMPAIR_H_ void task_impair_set_delay_us(struct task_base *tbase, uint32_t delay_us, uint32_t random_delay_us); -void task_impair_set_proba(struct task_base *tbase, float proba); +void task_impair_set_proba_no_drop(struct task_base *tbase, float proba); +void task_impair_set_proba_delay(struct task_base *tbase, float proba); +void task_impair_set_proba_duplicate(struct task_base *tbase, float proba); #endif /* _HANDLE_IMPAIR_H_ */ -- cgit 1.2.3-korg