Question: need to use ompetpp. please upload code Please upload a doc or pdf file containing the code (ned, cc omnetpp.ini screenshot) and the screenshot of
Please upload a doc or pdf file containing the code (ned, cc omnetpp.ini screenshot) and the screenshot of the running program for the following assignment. Based on the example code in the lecture notes and the studied tictoc tutorials, implement an omnetpp simulation that has three modules: node 1, node2, node3. Each of them has two input gates and two output gates and each node is connected to each other. Node 1 starts the simulation and creates a message and sends it with probability 0.1 to node 2 and with probability 0.9 to node 3. Node2 gets the message and resends it with probability 0.9 to node 1 and with probability 0.1 to node 3. If node 3 receives the message it writes a message that the game is over - he captured the packet, then he deletes the message. Node 1 and Node 2 also write messages as they receive the packet and are resending it. The simulation ends once the packet is captured by node 3. Please upload a doc or pdf file containing the code (ned, cc omnetpp.ini screenshot) and the screenshot of the running program for the following assignment. Based on the example code in the lecture notes and the studied tictoc tutorials, implement an omnetpp simulation that has three modules: node 1, node2, node3. Each of them has two input gates and two output gates and each node is connected to each other. Node 1 starts the simulation and creates a message and sends it with probability 0.1 to node 2 and with probability 0.9 to node 3. Node2 gets the message and resends it with probability 0.9 to node 1 and with probability 0.1 to node 3. If node 3 receives the message it writes a message that the game is over - he captured the packet, then he deletes the message. Node 1 and Node 2 also write messages as they receive the packet and are resending it. The simulation ends once the packet is captured by node 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
