%description:
Testing SCTP_NAT: Two peers send their requests to connect to a peer to a server. The
server collects the information and sends it to the peers. Afterwards the peers connect to
each other.
%#--------------------------------------------------------------------------------------------------------------


%#--------------------------------------------------------------------------------------------------------------
%inifile: omnetpp.ini

[General]
network=multiRendezvous
cmdenv-event-banners=false
cmdenv-express-mode = false
tkenv-plugin-path = ../../../etc/plugins
ned-path = .;../../../../src;../../lib

#omnetpp 5.0 - 5.1 compatibility:
eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"

**.testing = false
**.testTimeout = 0

# udp app (off)
**.numUdpApps = 0
**.udpType = ""

**.numTcpApps = 0
**.tcpType = "TCP"

# sctp apps
**.Peer_1.numSctpApps=1
**.Peer_2.numSctpApps=1
**.Peer_*.sctpApp[*].typename="SCTPNatPeer"
**.Peer_1.sctpApp[*].localAddress="10.1.1.1"
**.Peer_2.sctpApp[0].localAddress="10.1.2.1"
**.Peer_1.sctpApp[0].localPort=6000
**.Peer_2.sctpApp[0].localPort=7000
**.Peer_*.sctpApp[0].connectAddress="100.1.3.1"
**.Peer_1.sctpApp[0].connectPort=6666
**.Peer_2.sctpApp[0].connectPort=7777
**.Peer_1.sctpApp[0].startTime=1s
**.Peer_2.sctpApp[0].startTime=1s #truncnormal(30, 5)
**.Peer_1.sctpApp[0].numRequestsPerSession = 10
**.Peer_2.sctpApp[0].numRequestsPerSession = 0
**.Peer_1.sctpApp[0].numPacketsToReceive = 0
**.Peer_2.sctpApp[0].numPacketsToReceive =10
**.Peer_*.sctpApp[0].outboundStreams = 4
**.Peer_*.sctpApp[0].inboundStreams = 4
**.Peer_1.sctpApp[0].ownName=1
**.Peer_1.sctpApp[0].peerName=2
**.Peer_2.sctpApp[0].ownName=2
**.Peer_2.sctpApp[0].peerName=1
**.Peer_*.sctpApp[0].rendezvous=true
**.Peer_*.sctpApp[0].multi=true

**.Server.numSctpApps=2
**.Server.sctpApp[*].typename="SCTPNatServer"
**.Server.sctpApp[*].queueSize = 0
**.Server.sctpApp[*].lifetime=0s
**.Server.sctpApp[*].address=""
**.Server.sctpApp[0].localPort=6666
**.Server.sctpApp[1].localPort=7777
**.Server.sctpApp[*].replyDelay=0
**.Server.sctpApp[*].echoFactor=0
**.Server.sctpApp[*].echoDelay=0
**.Server.sctpApp[*].outboundStreams=4
**.Server.sctpApp[*].inboundStreams=4
**.Server.sctpApp[*].numPacketsToSendPerClient = 0
**.Server.sctpApp[*].numPacketsToReceivePerClient =0
**.Server.sctpApp[*].requestLength = 1024

# sctp settings
**.sctp.sctpAlgorithmClass="SCTPAlg"
**.sctp.auth = true
**.Peer_*.sctp.addIP = true
**.Server.sctp.addTime = 0
**.Peer_1.sctp.addTime = 0
**.Peer_1.sctp.addAddress = "10.2.1.1"
**.Peer_1.sctp.addIpType = "49153"  #separate the type by ',' SET_PRIMARY_ADDRESS= 49156,ADD_IP_ADDRESS=49153,DELETE_IP_ADDRESS=49154
**.Peer_2.sctp.addTime = 0s
**.Peer_2.sctp.addAddress = "10.2.2.1"
**.Peer_2.sctp.addIpType = "49153"
**.sctp.chunks=""
**.Peer_*.sctp.natFriendly = true
**.sctp.enableHeartbeats=true

**.Peer_1.routingTable.routingFile="../../lib/nat_peer1.mrt"
**.Peer_2.routingTable.routingFile="../../lib/nat_peer2.mrt"
**.Server.routingTable.routingFile="../../lib/nat_server.mrt"
**.Nat_1_1.routingTable.routingFile="../../lib/nat1_1.mrt"
**.Nat_1_2.routingTable.routingFile="../../lib/nat1_2.mrt"
**.Nat_2_1.routingTable.routingFile="../../lib/nat2_1.mrt"
**.Nat_2_2.routingTable.routingFile="../../lib/nat2_2.mrt"
**.Router_1.routingTable.routingFile="../../lib/nat_router_1.mrt"
**.Router_2.routingTable.routingFile="../../lib/nat_router_2.mrt"

%#--------------------------------------------------------------------------------------------------------------
%contains-regex: stdout
Association 1: sent bytes=14520, acked bytes=14520
%contains-regex: stdout
Association 9: sent bytes=16, acked bytes=16
%contains-regex: stdout
Association 10: sent bytes=16, acked bytes=16
%#--------------------------------------------------------------------------------------------------------------
