Skip to content

Commit

Permalink
Merge pull request #6754 from TheThingsNetwork/feature/band-relay-bac…
Browse files Browse the repository at this point in the history
…koff

Add band served relay backoff
  • Loading branch information
adriansmares authored Dec 11, 2023
2 parents 7133999 + 7a378d7 commit e8cc745
Show file tree
Hide file tree
Showing 156 changed files with 314 additions and 155 deletions.
4 changes: 4 additions & 0 deletions pkg/band/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ type SharedParameters struct {
RelayForwardDelay time.Duration
// RelayReceiveDelay is the default RxR window timing in seconds.
RelayReceiveDelay time.Duration
// ServedRelayBackoff is the default number of wake on radio attempts before sending the uplink message directly
// by a served relay device.
ServedRelayBackoff uint32
}

var (
Expand All @@ -68,6 +71,7 @@ var (
parameters := universalSharedParameters
parameters.RelayForwardDelay = 50 * time.Millisecond
parameters.RelayReceiveDelay = 18 * time.Second
parameters.ServedRelayBackoff = 8
return parameters
}()
)
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_2_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_2_RP002_V1_0_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_2_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_2_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_3_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_3_RP002_V1_0_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_3_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_3_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_4_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_4_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_PHY_V1_0_2_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_PHY_V1_0_2_REV_B.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_PHY_V1_0_3_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_PHY_V1_1_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_PHY_V1_1_REV_B.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_RP002_V1_0_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_RP002_V1_0_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AS_923_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_0_2_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_0_2_REV_B.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_0_3_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_1_REV_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_PHY_V1_1_REV_B.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_RP002_V1_0_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_RP002_V1_0_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/AU_915_928_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_A_RP002_V1_0_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_A_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_A_RP002_V1_0_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_A_RP002_V1_0_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_A_RP002_V1_0_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 50000000,
"RelayReceiveDelay": 18000000000
"RelayReceiveDelay": 18000000000,
"ServedRelayBackoff": 8
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_B_RP002_V1_0_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
3 changes: 2 additions & 1 deletion pkg/band/testdata/CN_470_510_20_B_RP002_V1_0_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,7 @@
"MinRetransmitTimeout": 1000000000,
"MaxRetransmitTimeout": 3000000000,
"RelayForwardDelay": 0,
"RelayReceiveDelay": 0
"RelayReceiveDelay": 0,
"ServedRelayBackoff": 0
}
}
Loading

0 comments on commit e8cc745

Please sign in to comment.