Data and communication

rplpatel22
Project_1.ned

simple Error { parameters: @display("i=block/routing"); gates: inout gate[]; // declare two way connections } // using two way connections to further simplify the network definition network Ripal { types: channel Channel extends ned.DelayChannel { delay = 100ms; } channel Channe2 extends ned.DelayChannel { delay = 150ms; } submodules: Rip[3]: Error; connections: Rip[0].gate++ <--> Channel <--> Rip[1].gate++; Rip[1].gate++ <--> Channe2 <--> Rip[2].gate++; }