SNS Configuration
You can use a Readable Unit anywhere where you have the option of:
-
number
orstring
-
integer
orstring
📃 Corresponding configuration file: sns/sns_config.json
SNS
Schema describing the JSON file structure for the sns configuration.
Properties
Type | Description | Required | Boundaries | Default | |
---|---|---|---|---|---|
maximumTtl | integer |
The threshold for the amount of hops for a transmission. This is an additional, hard threshold, which can’t be exceeded. | No | [0, +$\infty$] | 10 |
singlehopRadius | number |
Default radius in m to be used if an AdhocConfiguration doesn’t specify a radius. | No | None | 509.4 |
adhocTransmissionModel |
adhocTransmissionModel |
Object to define an adhoc transmission model. | No | None | None |
singlehopDelay |
delay |
Object to define a delay model. | No | None | constantDelay |
singlehopTransmission |
transmission |
Object to define the properties of a transmission. | ✓ Yes | None | None |
adhocTransmissionModel
Object to define an adhoc transmission model.
Properties
Type | Description | Required | Boundaries | Default | |
---|---|---|---|---|---|
type | string |
Type of the transmission model. The simple model assumes, that all receivers can be reached even though this might not be the case in reality. | No | Enum | None |
simpleMultihopDelay |
delay |
Object to define a delay model. | No | None | constantDelay |
simpleMultihopTransmission |
transmission |
Object to define the properties of a transmission. | ✓ Yes | None | None |
Further property restrictions:
adhocTransmissionModel.type
- Allowed values:
SimpleAdhocTransmissionModel
SophisticatedAdhocTransmissionModel
delay
Object to define a delay model.
Additionally ONE of the following property definitions apply:
gammaDelay
Object to define a model for GammaRandomDelay or GammaSpeedDelay. GammaRandomDelay bases directly on the Gamma distribution (b=2,p=2) with minimum and expected value. Due to the nature of the Gamma distribution, the resulting delays can be far higher than the expected value. GammaSpeedDelay bases on the GammaRandomDelay and includes an additional speed penalty according to the current speed of the vehicle.
Properties
Further property restrictions:
gammaDelay.type
- Allowed values:
GammaRandomDelay
GammaSpeedDelay
constantDelay
Object to define a model for constant delay, which delivers always the same delay.
Properties
Further property restrictions:
constantDelay.type
- Allowed values:
ConstantDelay
simpleRandomDelay
Object to define a model for a radnomised delay. Delivers number-of-steps different uniformly distributed delays in the interval defined by min and max (e.g. minDelay=30ms, maxDelay=60ms, steps=4 -> possible delays={30,40,50,60}ms.).
Properties
Further property restrictions:
simpleRandomDelay.type
- Allowed values:
SimpleRandomDelay
tranmission
Object to define the properties of a transmission.
Properties
Type | Description | Required | Boundaries | Default | |
---|---|---|---|---|---|
lossProbability | number |
Probability of packet retransmission (in case of configured retries > 0) or packet loss (retries = 0) for the packet retransmission/loss model. A value of 0 equals a lossfree transmission. | ✓ Yes | [0, 1] | 0 |
maxRetries | integer |
Maximum Number of retransmissions. | No | [0, +$\infty$] | None |