Skip to content

Commit 00aed73

Browse files
author
Mika Tervonen
committed
Modified the Wi-SUN stack Latency estimates a bit slower
This will slow the Retry timers for DTLS and CoAP layers The idea of the estimate is changed a bit to include the estimation of slowness in backbone. This means that we can use these values more directly in Retry timer estimations Thread estimation also slowed Ethernet estimation also slowed to take into use normal internet slowness 6LoWPAN also estimated to slower
1 parent 6b83d82 commit 00aed73

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,15 @@ bool protocol_6lowpan_latency_estimate_get(int8_t interface_id, uint32_t *latenc
799799

800800
if (cur_interface->eth_mac_api) {
801801
// either PPP or Ethernet interface.
802-
latency_estimate = 100;
802+
latency_estimate = 1000;
803803
} else if (thread_info(cur_interface)) {
804804
// thread network
805-
latency_estimate = 2000;
805+
latency_estimate = 5000;
806806
} else if (ws_info(cur_interface)) {
807807
latency_estimate = ws_common_latency_estimate_get(cur_interface);
808808
} else {
809809
// 6LoWPAN ND
810-
latency_estimate = 8000;
810+
latency_estimate = 20000;
811811
}
812812

813813
if (latency_estimate != 0) {

source/6LoWPAN/ws/ws_common.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,13 @@ uint32_t ws_common_latency_estimate_get(protocol_interface_info_entry_t *cur)
486486

487487
if (network_size <= NETWORK_SIZE_SMALL) {
488488
// handles also NETWORK_SIZE_CERTIFICATE
489-
latency = 4000;
489+
latency = 5000;
490490
} else if (network_size <= NETWORK_SIZE_MEDIUM) {
491-
latency = 8000;
491+
latency = 10000;
492492
} else if (network_size <= NETWORK_SIZE_LARGE) {
493-
latency = 16000;
493+
latency = 20000;
494494
} else {
495-
latency = 24000;
495+
latency = 30000;
496496
}
497497

498498
return latency;

0 commit comments

Comments
 (0)