Hello everyone,
I'm very new to Omnet++ / INET and I have some very basic questions.
First of all I want to say that I read a lot of example simulation but wasn't able to give me a clear answer:
My scenario: 2 clients, 1 server. The server assigns the IP addresses to the clients (DHCP). When every client has a IP, client1 should start a data transfer with a specific filesize to client2.
I started to make a small network. 2 DHCP clients and a DHCP server.
IP assignment via DHCP is fine. Every client gets an IP. I implemented the DHCP Appl. with the commands:
**.numUdpApps = 1
**.client1.udpApp[0].typename = "DHCPClient"
**.client1.udpApp[0].startTime = uniform(0s, 1s)
**.client2.udpApp[0].typename = "DHCPClient"
**.client2.udpApp[0].startTime = uniform(0s, 1s
**.server.udpApp[0].typename = "DHCPServer"
**.server.udpApp[0].subnetMask = "255.255.255.0" # netmask to assign
[...]
1. Question: How does numUdpApps work? It says "no of UDP Apps". I want DHCP + datatransfer = 2 apps. Right? But valid values are only 0 or 1.
2. Question: What does udpApp[0] stands for? Is it the declaration for the used application + settings?
Because when I write f.e.
**.client1.udpApp[1].typename = "UDPBasicBurst"
**.client1.udpApp[1].localPort = 100
[...]
for the second application of client1, it always refering to the DHCP config (udpApp[0]) and says that the parameter is not used.
3. What kind of application is the best one for classic data transfer? f.e. starting Connection - sending data - closing connection, like TCP or just sending data like UDP.
How do I configure this app, that it only starts when every client has an IP? Is there a queue command or something?
I hope someone can help me.
Thanks in advance and sorry for bothering you with that basic stuff. I spend a lot of time but cannot go further.