[General]
network = NClients
#debug-on-errors = true
tkenv-plugin-path = ../../../etc/plugins

sim-time-limit = 100s

# number of client computers
*.n = 2

**.hasStatus = true

[Config Ping]
# clients ping te host
**.cli[*].numPingApps = 1
**.cli[*].pingApp[*].destAddr = "srv"
**.cli[*].pingApp[*].printPing = true


[Config UDP_Basic_Echo]
#clients send to server via UDP and server echoing it
**.cli[*].numUdpApps = 1
**.cli[*].udpApp[*].typename = "UDPBasicApp"
**.cli[*].udpApp[*].destAddresses = "srv"
**.cli[*].udpApp[*].destPort = 1000
**.cli[*].udpApp[*].messageLength = 1000B
**.cli[*].udpApp[*].sendInterval = 1s

**.srv.numUdpApps = 1
**.srv.udpApp[*].typename = "UDPEchoApp"
**.srv.udpApp[*].localPort = 1000

[Config UDP_Burst_Sink]
#clients send to server via UDP and server echoing it
**.cli[*].numUdpApps = 1
**.cli[*].udpApp[*].typename = "UDPBasicBurst"
**.cli[*].udpApp[*].destAddresses = "srv"
**.cli[*].udpApp[*].destPort = 1000
**.cli[*].udpApp[*].messageLength = 1000B
**.cli[*].udpApp[*].sendInterval = 100ms
**.cli[*].udpApp[*].burstDuration = 700ms
**.cli[*].udpApp[*].sleepDuration = 300ms
**.cli[*].udpApp[*].chooseDestAddrMode = ${"once","perBurst","perSend"}

**.srv.numUdpApps = 1
**.srv.udpApp[*].typename = "UDPSink"
**.srv.udpApp[*].localPort = 1000

[Config UDP_VideoStream]
#clients send to server via UDP and server echoing it
**.cli[*].numUdpApps = 1
**.cli[*].udpApp[*].typename = "UDPVideoStreamCli"
**.cli[*].udpApp[*].serverAddress = "srv"
**.cli[*].udpApp[*].serverPort = 1000

**.srv.numUdpApps = 1
**.srv.udpApp[*].typename = "UDPVideoStreamSvr"
**.srv.udpApp[*].localPort = 1000
**.srv.udpApp[*].sendInterval = 100ms
**.srv.udpApp[*].packetLen = 2000B
**.srv.udpApp[*].videoSize = 100000B

[Config TCP_common]
# tcp apps
**.cli[*].numTcpApps = 1
**.cli[*].tcpApp[*].typename = "TelnetApp"
**.cli[*].tcpApp[0].localAddress = ""
**.cli[*].tcpApp[0].localPort = -1
**.cli[*].tcpApp[0].connectAddress = "srv"
**.cli[*].tcpApp[0].connectPort = 1000

**.cli[*].tcpApp[0].startTime = exponential(3s)
**.cli[*].tcpApp[0].numCommands = exponential(10)
**.cli[*].tcpApp[0].commandLength = exponential(10B)
**.cli[*].tcpApp[0].keyPressDelay = exponential(0.1s)
**.cli[*].tcpApp[0].commandOutputLength = exponential(5B)
**.cli[*].tcpApp[0].thinkTime = truncnormal(1s,2s)
**.cli[*].tcpApp[0].idleInterval = truncnormal(36s,12s)
**.cli[*].tcpApp[0].reconnectInterval = 3s
**.cli[*].tcpApp[0].dataTransferMode = "object"

**.srv.numTcpApps = 1
**.srv.tcpApp[*].typename = "TCPGenericSrvApp"
**.srv.tcpApp[0].localAddress = ""
**.srv.tcpApp[0].localPort = 1000
**.srv.tcpApp[0].replyDelay = 0

[Config TCP]
extends = TCP_common

[Config TCP_NSC]
extends = TCP_common
**.srv*.tcpType = "TCP_NSC"
**.cli*.tcpType = "TCP_NSC"

[Config TCP_lwIP]
extends = TCP_common
**.srv*.tcpType = "TCP_lwIP"
**.cli*.tcpType = "TCP_lwIP"
