signetlabdei / DESERT_Underwater

DESERT Underwater: an NS-Miracle extension to DEsign, Simulate, Emulate and Realize Test-beds for Underwater network protocols
http://desert-underwater.dei.unipd.it/
BSD 3-Clause "New" or "Revised" License
25 stars 20 forks source link

no class variable warnings and windspeed doing nothing #16

Open juvebogdan opened 4 months ago

juvebogdan commented 4 months ago

Hello,

I am trying to run test_uwtdma.tcl and this is the output i get:

`warning: no class variable Module/UnderwaterChannel::propSpeed_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 0 created warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 1 created warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 2 created

Starting Simulation

./TDMA_node5.out ./TDMA_node6.out ./TDMA_node7.out

Simulation summary

Total simulation time : 1000 s Number of nodes : 3 Packet size : 1250 byte(s) CBR period : 10 s

Mean Throughput : 992.4934251666665 MAC sent Packets : 587 MAC received Packets : 587 MAC upper_pcks_rx : 587 CBR sent Packets : 587.0 CBR received Packets : 587.0 Packets in buffer : 0 PER CBR (0,1) : 0.000000 PER CBR (1,0) : 0.000000 PER CBR (0,2) : 0.000000 PER CBR (2,0) : 0.000000 PER CBR (1,2) : 0.000000 PER CBR (2,1) : 0.000000 `

Should i be worried with all those warnings?

I have set it like this in the script:

Channel

MPropagation/Underwater set practicalSpreading 2 MPropagation/Underwater set debug 0 MPropagation/Underwater set windspeed 10 MPropagation/Underwater set shipping 1

The if i change for example to:

Channel

MPropagation/Underwater set practicalSpreading 2 MPropagation/Underwater set debug 0 MPropagation/Underwater set windspeed 1 MPropagation/Underwater set shipping 1

I get:

warning: no class variable Module/UnderwaterChannel::propSpeed_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 0 created warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 1 created warning: no class variable Module/UW/PHYSICAL::TxPower_

    see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Module/UW/PHYSICAL::NoiseSPD_

warning: no class variable Module/UW/PHYSICAL::ConsumedEnergy_

Node 2 created

Starting Simulation

./TDMA_node5.out ./TDMA_node6.out ./TDMA_node7.out

Simulation summary

Total simulation time : 1000 s Number of nodes : 3 Packet size : 1250 byte(s) CBR period : 10 s

Mean Throughput : 992.4934251666665 MAC sent Packets : 587 MAC received Packets : 587 MAC upper_pcks_rx : 587 CBR sent Packets : 587.0 CBR received Packets : 587.0 Packets in buffer : 0 PER CBR (0,1) : 0.000000 PER CBR (1,0) : 0.000000 PER CBR (0,2) : 0.000000 PER CBR (2,0) : 0.000000 PER CBR (1,2) : 0.000000 PER CBR (2,1) : 0.000000

I also changed cbr period to 10.

These results does not seem to be fine for so different wind speeds. Also for different shipping_ values prints exaclt the same results I would also add that changing set opt(propagation_speed) 1500;# m/s also does nothing. if i set this to something weird like 2m/s simulation results are the same

fedefava86 commented 1 month ago

Thx @juvebogdan , we'll watch into this.