# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0

nodes = {
    udp_node = {
        type = "socket",

        format = "gtnet",

        in = {
            address = "127.0.0.1:12001"
        },
        out = {
            address = "127.0.0.1:12000",

            # Network emulation settings
            # Those settings can be specified for each node individually!
            netem = {
                enabled = true,

                # Additional latency in microseconds
                delay = 100000,

                # Jitter in uS
                jitter = 30000,

                # Distribution of delay: uniform, normal, pareto, paretonormal
                distribution = "normal",

                # Packet loss in percent
                loss = 10

                # Duplication in percent
                duplicate = 10,

                # Corruption in percent
                corrupt = 10
            }
        }
    }
}