LLusvarghi / MoReV2X

MoReV2X - A New Radio Vehicular Communication Module for ns-3
GNU General Public License v2.0
14 stars 6 forks source link

Could you provide the example code? #1

Closed cindy0628 closed 1 year ago

cindy0628 commented 1 year ago

Hi, Thank you for your contribution, your project inspired me and helped me a lot. I want to simulate the nr-v2x and the lte-v2x network in ns-3. I have followed the README.md to build with waf successfully.

I tried to run your code through command "python2 ./waf --run "HIGHWAY --Periodic=True"" But it shows the error as follows: rm: cannot remove 'results/Periodic_867_1/': No such file or directory mkdir: cannot create directory ‘results/Periodic_867_1/’: No such file or directory msg="Could not set default value for ns3::NrV2XUeMac::AggressiveMode4", file=../src/core/model/config.cc, line=682 terminate called without an active exception Could you provide the example code or the command to run the code? Thank you for your help, I look forward to your reply. Chihya

LLusvarghi commented 1 year ago

Hi,

the first line "rm: cannot remove 'results/Periodic_867_1/': No such file or directory mkdir: cannot create directory ‘results/Periodic_867_1/’: No such file or director" is not actually an error, so don't worry about it. Regarding the second message (msg="Could not set default value for ns3::NrV2XUeMac::AggressiveMode4", file=../src/core/model/config.cc, line=682 terminate called without an active exception), that is an error related with the operation of LTE-V2X Mode 4 that is due to the current version of the simulator available on GitHub. Lately, we have been working on the implementation of some NR-V2X Mode 2 features that were not compatible with LTE-V2X Mode 4. For this reason, we were forced to temporarily disable the support of LTE-V2X Mode 4 in our simulator. We will push the latest version of the simulator (LTE-V2X Mode 4 included) as soon as possible. In the meantime, you can simulate NR-V2X Mode 2.

Best regards, Luca

Il giorno mar 11 apr 2023 alle ore 08:57 cindy0628 @.***> ha scritto:

Hi, Thank you for your contribution, your project inspired me and helped me a lot. I want to simulate the nr-v2x and the lte-v2x network in ns-3. I have followed the README.md to build with waf successfully.

I tried to run your code through command "python2 ./waf --run "HIGHWAY --Periodic=True"" But it shows the error as follows: rm: cannot remove 'results/Periodic_867_1/': No such file or directory mkdir: cannot create directory ‘results/Periodic_867_1/’: No such file or directory msg="Could not set default value for ns3::NrV2XUeMac::AggressiveMode4", file=../src/core/model/config.cc, line=682 terminate called without an active exception Could you provide the example code or the command to run the code? Thank you for your help, I look forward to your reply. Chihya

— Reply to this email directly, view it on GitHub https://github.com/LLusvarghi/MoReV2X/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZAEVEZ4XT36RXKT4JLVKDXAT6ELANCNFSM6AAAAAAWZ3ERA4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Ing. Luca Lusvarghi, PhD Dipartimento di Ingegneria "Enzo Ferrari" Università degli Studi di Modena e Reggio Emilia Via P. Vivarelli 10, Modena, Italy Ph. +39 059 205 6323

cindy0628 commented 1 year ago

Hi Luca, Thank you for your reply. I appreciate it. I am wondering which network could be simulated for the latest version now. Could I run one of them now? (LTE-V2X Mode 4 or NR-V2X Mode 2) and how could I run it?

Thank you Chihya

LLusvarghi commented 1 year ago

Hi Chihya,

right now you can run NR-V2X Mode 2 simulation. For example, using this command: ./waf --run 'scratch/HIGHWAY --Vehicles=125 --noIBE --ChannelBW=20 --Aperiodic --simTime=18 --runNo=1 --seed=1 --SubChannel=12 --Numerology=1'

Best regards, Luca

Il giorno mar 11 apr 2023 alle ore 13:35 cindy0628 @.***> ha scritto:

Hi Luca, Thank you for your reply. I appreciate it. I am wondering which network could be simulated for the latest version now. Could I run one of them now? (LTE-V2X Mode 4 or NR-V2X Mode 2) and how could I run it?

Thank you Chihya

— Reply to this email directly, view it on GitHub https://github.com/LLusvarghi/MoReV2X/issues/1#issuecomment-1503165564, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZAEVBMPTPLS2ZHFCJWARTXAU6YTANCNFSM6AAAAAAWZ3ERA4 . You are receiving this because you commented.Message ID: @.***>

-- Ing. Luca Lusvarghi, PhD Dipartimento di Ingegneria "Enzo Ferrari" Università degli Studi di Modena e Reggio Emilia Via P. Vivarelli 10, Modena, Italy Ph. +39 059 205 6323

cindy0628 commented 1 year ago

Hi Luca,

It seems something went wrong. It shows msg="Could not set default value for ns3::NrV2XUeMac::AggressiveMode4", file=../src/core/model/config.cc, line=682 terminate called without an active exception And I think maybe these 2 lines have to be marked, so I mark them. Is it right? // Config::SetDefault ("ns3::NrV2XUeMac::AggressiveMode4", BooleanValue (Aggressive)); // Config::SetDefault ("ns3::NrV2XUeMac::SubmissiveMode4", BooleanValue (Submissive));

Here is the new log I get: Adopted OFDM numerology is 1, SCS = 30 kHz Channel BW = 20 MHz. Channel BW = 51 RBs. Subchannel size = 12 RBs BW = 10 MHz SCS = 15 kHz. Sensitivity = -92.5 SCS = 30 kHz. Sensitivity = -92.1 SCS = 60 kHz. Sensitivity = -92.9 BW = 20 MHz SCS = 15 kHz. Sensitivity = -89.2 SCS = 30 kHz. Sensitivity = -89.4 SCS = 60 kHz. Sensitivity = -89.1 BW = 30 MHz SCS = 15 kHz. Sensitivity = -87.4 SCS = 30 kHz. Sensitivity = -87.7 SCS = 60 kHz. Sensitivity = -87.9 BW = 40 MHz SCS = 15 kHz. Sensitivity = -86.1 SCS = 30 kHz. Sensitivity = -86.2 SCS = 60 kHz. Sensitivity = -86.4 BW = 50 MHz SCS = 15 kHz. Sensitivity = -86.1 SCS = 30 kHz. Sensitivity = -86.2 SCS = 60 kHz. Sensitivity = -86.4 UE reference sensitivity = -89.4 Group address 225.0.0.1 bitmap=ff00000000 IMSI 1 considered out of network IMSI 2 considered out of network IMSI 3 considered out of network IMSI 4 considered out of network IMSI 5 considered out of network IMSI 6 considered out of network IMSI 7 considered out of network IMSI 8 considered out of network IMSI 9 considered out of network IMSI a considered out of network IMSI b considered out of network IMSI c considered out of network IMSI d considered out of network IMSI e considered out of network IMSI f considered out of network IMSI 10 considered out of network IMSI 11 considered out of network IMSI 12 considered out of network IMSI 13 considered out of network IMSI 14 considered out of network IMSI 15 considered out of network IMSI 16 considered out of network IMSI 17 considered out of network IMSI 18 considered out of network IMSI 19 considered out of network IMSI 1a considered out of network IMSI 1b considered out of network IMSI 1c considered out of network IMSI 1d considered out of network IMSI 1e considered out of network IMSI 1f considered out of network IMSI 20 considered out of network IMSI 21 considered out of network IMSI 22 considered out of network IMSI 23 considered out of network IMSI 24 considered out of network IMSI 25 considered out of network IMSI 26 considered out of network IMSI 27 considered out of network IMSI 28 considered out of network IMSI 29 considered out of network IMSI 2a considered out of network IMSI 2b considered out of network IMSI 2c considered out of network IMSI 2d considered out of network IMSI 2e considered out of network IMSI 2f considered out of network IMSI 30 considered out of network IMSI 31 considered out of network IMSI 32 considered out of network IMSI 33 considered out of network IMSI 34 considered out of network IMSI 35 considered out of network IMSI 36 considered out of network IMSI 37 considered out of network IMSI 38 considered out of network IMSI 39 considered out of network IMSI 3a considered out of network IMSI 3b considered out of network IMSI 3c considered out of network IMSI 3d considered out of network IMSI 3e considered out of network IMSI 3f considered out of network IMSI 40 considered out of network IMSI 41 considered out of network IMSI 42 considered out of network IMSI 43 considered out of network IMSI 44 considered out of network IMSI 45 considered out of network IMSI 46 considered out of network IMSI 47 considered out of network IMSI 48 considered out of network IMSI 49 considered out of network IMSI 4a considered out of network IMSI 4b considered out of network IMSI 4c considered out of network IMSI 4d considered out of network IMSI 4e considered out of network IMSI 4f considered out of network IMSI 50 considered out of network IMSI 51 considered out of network IMSI 52 considered out of network IMSI 53 considered out of network IMSI 54 considered out of network IMSI 55 considered out of network IMSI 56 considered out of network IMSI 57 considered out of network IMSI 58 considered out of network IMSI 59 considered out of network IMSI 5a considered out of network IMSI 5b considered out of network IMSI 5c considered out of network IMSI 5d considered out of network IMSI 5e considered out of network IMSI 5f considered out of network IMSI 60 considered out of network IMSI 61 considered out of network IMSI 62 considered out of network IMSI 63 considered out of network IMSI 64 considered out of network IMSI 65 considered out of network IMSI 66 considered out of network IMSI 67 considered out of network IMSI 68 considered out of network IMSI 69 considered out of network IMSI 6a considered out of network IMSI 6b considered out of network IMSI 6c considered out of network IMSI 6d considered out of network IMSI 6e considered out of network IMSI 6f considered out of network IMSI 70 considered out of network IMSI 71 considered out of network IMSI 72 considered out of network IMSI 73 considered out of network IMSI 74 considered out of network IMSI 75 considered out of network IMSI 76 considered out of network IMSI 77 considered out of network IMSI 78 considered out of network IMSI 79 considered out of network IMSI 7a considered out of network IMSI 7b considered out of network IMSI 7c considered out of network IMSI 7d considered out of network Udp: transmitting packet with size: 400 and reserving resources using 400. Next packet in 52.0709 ms Send ReportBufferNistStatus = 398, 0 assert failed. cond="RRIit != m_RRIvalues.end()", msg="RRI not included in the list of allowed RRI values", file=../src/MoReV2X/model/nr-v2x-ue-mac.cc, line=1259 terminate called without an active exception

Is there anything should be done here?

Many thanks Chihya

LLusvarghi commented 1 year ago

Hi Chihya,

I have updated the HIGHWAY script in the scratch folder. Try to re-download the MoReV2X code from GitHub and to run again the following command: ./waf --run 'scratch/HIGHWAY --Vehicles=125 --noIBE --ChannelBW=20 --Aperiodic --simTime=18 --runNo=1 --seed=1 --SubChannel=12 --Numerology=1' I have just tried on my laptop and everything works fine, so you should be able to run NR-V2X Mode 2 simulations now.

Best regards, Luca

Il giorno mar 11 apr 2023 alle ore 15:22 cindy0628 @.***> ha scritto:

Hi Luca,

It seems something went wrong. It shows msg="Could not set default value for ns3::NrV2XUeMac::AggressiveMode4", file=../src/core/model/config.cc, line=682 terminate called without an active exception And I think maybe these 2 lines have to be marked, so I mark them. Is it right? // Config::SetDefault ("ns3::NrV2XUeMac::AggressiveMode4", BooleanValue (Aggressive)); // Config::SetDefault ("ns3::NrV2XUeMac::SubmissiveMode4", BooleanValue (Submissive));

Here is the new log I get: Adopted OFDM numerology is 1, SCS = 30 kHz Channel BW = 20 MHz. Channel BW = 51 RBs. Subchannel size = 12 RBs BW = 10 MHz SCS = 15 kHz. Sensitivity = -92.5 SCS = 30 kHz. Sensitivity = -92.1 SCS = 60 kHz. Sensitivity = -92.9 BW = 20 MHz SCS = 15 kHz. Sensitivity = -89.2 SCS = 30 kHz. Sensitivity = -89.4 SCS = 60 kHz. Sensitivity = -89.1 BW = 30 MHz SCS = 15 kHz. Sensitivity = -87.4 SCS = 30 kHz. Sensitivity = -87.7 SCS = 60 kHz. Sensitivity = -87.9 BW = 40 MHz SCS = 15 kHz. Sensitivity = -86.1 SCS = 30 kHz. Sensitivity = -86.2 SCS = 60 kHz. Sensitivity = -86.4 BW = 50 MHz SCS = 15 kHz. Sensitivity = -86.1 SCS = 30 kHz. Sensitivity = -86.2 SCS = 60 kHz. Sensitivity = -86.4 UE reference sensitivity = -89.4 Group address 225.0.0.1 bitmap=ff00000000 IMSI 1 considered out of network IMSI 2 considered out of network IMSI 3 considered out of network IMSI 4 considered out of network IMSI 5 considered out of network IMSI 6 considered out of network IMSI 7 considered out of network IMSI 8 considered out of network IMSI 9 considered out of network IMSI a considered out of network IMSI b considered out of network IMSI c considered out of network IMSI d considered out of network IMSI e considered out of network IMSI f considered out of network IMSI 10 considered out of network IMSI 11 considered out of network IMSI 12 considered out of network IMSI 13 considered out of network IMSI 14 considered out of network IMSI 15 considered out of network IMSI 16 considered out of network IMSI 17 considered out of network IMSI 18 considered out of network IMSI 19 considered out of network IMSI 1a considered out of network IMSI 1b considered out of network IMSI 1c considered out of network IMSI 1d considered out of network IMSI 1e considered out of network IMSI 1f considered out of network IMSI 20 considered out of network IMSI 21 considered out of network IMSI 22 considered out of network IMSI 23 considered out of network IMSI 24 considered out of network IMSI 25 considered out of network IMSI 26 considered out of network IMSI 27 considered out of network IMSI 28 considered out of network IMSI 29 considered out of network IMSI 2a considered out of network IMSI 2b considered out of network IMSI 2c considered out of network IMSI 2d considered out of network IMSI 2e considered out of network IMSI 2f considered out of network IMSI 30 considered out of network IMSI 31 considered out of network IMSI 32 considered out of network IMSI 33 considered out of network IMSI 34 considered out of network IMSI 35 considered out of network IMSI 36 considered out of network IMSI 37 considered out of network IMSI 38 considered out of network IMSI 39 considered out of network IMSI 3a considered out of network IMSI 3b considered out of network IMSI 3c considered out of network IMSI 3d considered out of network IMSI 3e considered out of network IMSI 3f considered out of network IMSI 40 considered out of network IMSI 41 considered out of network IMSI 42 considered out of network IMSI 43 considered out of network IMSI 44 considered out of network IMSI 45 considered out of network IMSI 46 considered out of network IMSI 47 considered out of network IMSI 48 considered out of network IMSI 49 considered out of network IMSI 4a considered out of network IMSI 4b considered out of network IMSI 4c considered out of network IMSI 4d considered out of network IMSI 4e considered out of network IMSI 4f considered out of network IMSI 50 considered out of network IMSI 51 considered out of network IMSI 52 considered out of network IMSI 53 considered out of network IMSI 54 considered out of network IMSI 55 considered out of network IMSI 56 considered out of network IMSI 57 considered out of network IMSI 58 considered out of network IMSI 59 considered out of network IMSI 5a considered out of network IMSI 5b considered out of network IMSI 5c considered out of network IMSI 5d considered out of network IMSI 5e considered out of network IMSI 5f considered out of network IMSI 60 considered out of network IMSI 61 considered out of network IMSI 62 considered out of network IMSI 63 considered out of network IMSI 64 considered out of network IMSI 65 considered out of network IMSI 66 considered out of network IMSI 67 considered out of network IMSI 68 considered out of network IMSI 69 considered out of network IMSI 6a considered out of network IMSI 6b considered out of network IMSI 6c considered out of network IMSI 6d considered out of network IMSI 6e considered out of network IMSI 6f considered out of network IMSI 70 considered out of network IMSI 71 considered out of network IMSI 72 considered out of network IMSI 73 considered out of network IMSI 74 considered out of network IMSI 75 considered out of network IMSI 76 considered out of network IMSI 77 considered out of network IMSI 78 considered out of network IMSI 79 considered out of network IMSI 7a considered out of network IMSI 7b considered out of network IMSI 7c considered out of network IMSI 7d considered out of network Udp: transmitting packet with size: 400 and reserving resources using 400. Next packet in 52.0709 ms Send ReportBufferNistStatus = 398, 0 assert failed. cond="RRIit != m_RRIvalues.end()", msg="RRI not included in the list of allowed RRI values", file=../src/MoReV2X/model/nr-v2x-ue-mac.cc, line=1259 terminate called without an active exception

Is there anything should be done here?

Many thanks Chihya

— Reply to this email directly, view it on GitHub https://github.com/LLusvarghi/MoReV2X/issues/1#issuecomment-1503343371, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZAEVE2TGK3LKSOOHCN7GTXAVLJBANCNFSM6AAAAAAWZ3ERA4 . You are receiving this because you commented.Message ID: @.***>

-- Ing. Luca Lusvarghi, PhD Dipartimento di Ingegneria "Enzo Ferrari" Università degli Studi di Modena e Reggio Emilia Via P. Vivarelli 10, Modena, Italy Ph. +39 059 205 6323

cindy0628 commented 1 year ago

Hi Luca, It works. Thank you SO much. :)

Chihya

LLusvarghi commented 1 year ago

You're welcome!

Luca

Il giorno mar 11 apr 2023 alle ore 17:09 cindy0628 @.***> ha scritto:

Hi Luca, It works. Thank you SO much. :)

Chihya

— Reply to this email directly, view it on GitHub https://github.com/LLusvarghi/MoReV2X/issues/1#issuecomment-1503568332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZAEVECFJPFYADMTBX6UFLXAVX2LANCNFSM6AAAAAAWZ3ERA4 . You are receiving this because you commented.Message ID: @.***>

-- Ing. Luca Lusvarghi, PhD Dipartimento di Ingegneria "Enzo Ferrari" Università degli Studi di Modena e Reggio Emilia Via P. Vivarelli 10, Modena, Italy Ph. +39 059 205 6323