1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/doc/openapi/components/schemas/config/netem.yaml
Steffen Vogel db170e1590 openapi: Remove trailing whitespaces
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-28 00:14:23 +01:00

63 lines
1.6 KiB
YAML

# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
description: |
The netem configuration allows the user to apply network impairments to packets send out by the nodes.
Please note, that the network emulation feature is currently supported by the following node-types:
- [`socket`](/docs/node/nodes/socket)
- [`nanomsg`](/docs/node/nodes/nanomsg)
- [`zeromq`](/docs/node/nodes/zeromq)
- [`rtp`](/docs/node/nodes/rtp)
type: object
properties:
enabled:
type: boolean
default: true
delay:
type: number
default: 0
description: |
Delay packets in microseconds.
jitter:
type: number
default: 0
title: Jitter
description: |
Apply a jitter to the packet delay (in microseconds).
distribution:
type: string
title: Delay distribution
description: |
One of the delay distributions supported by the `tc` command (see [tc-netem(8)](https://man7.org/linux/man-pages/man8/tc-netem.8.html)).
enum:
- uniform
- normal
- pareto
- paretonormal
loss:
type: number
default: 0
title: Packet Loss Percentage
description: |
Percentage of packets which will be dropped.
duplicate:
type: number
default: 0
title: Packet Duplication Percentage
description: |
Percentage of packets which will be duplicated.
corrupt:
type: number
default: 0
title: Packet Corruption Percentage
description: |
Percentage of packets which will be corrupted.