intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
443 stars 241 forks source link

Problem in vanet-sumo.py #213

Closed pegahnikbakht closed 5 years ago

pegahnikbakht commented 5 years ago

When I run vanet-sumo.py, the added cars doesn't show in sumo-gui or actually I can not see any moving. How do you define route in sumo-vanet.py?

ramonfontes commented 5 years ago

You need to add cars as well as routes in xml files at https://github.com/intrig-unicamp/mininet-wifi/tree/master/mn_wifi/sumo/data.

pegahnikbakht commented 5 years ago

Thanks, do you know how is it possible to take car parameters like speed, waitingtime, and so on in vanet-sumo.py?

ramonfontes commented 5 years ago

You don't need to configure those parameters in vanet-sumo.py. They need to be configured in SUMO.

pegahnikbakht commented 5 years ago

I know that there is no need to configure them for running vanet-sumo.py , but I'm working on another project where I need to send these parameters to my remote controller. Do you know how I can access these parameters and send them to the remote controller?

ramonfontes commented 5 years ago

In this case you may need to take a look at the sumo's api and take those paremeters as we do with the position. See L100.

lamiael16 commented 4 years ago

When I run vanet-sumo.py, the added cars doesn't show in sumo-gui or actually I can not see any moving. How do you define route in sumo-vanet.py? Hi, Please, I used this script and I had problem with number of cars, did you try it with more than 30 cars, did you have problem like sumo stop and no cars move? please can you help me I must finish my work this week and no idea about how I will manage this problem. I try to use different versions of SUMO but it didn't work, I also try different openstreetmap configuration but no things change. Also, I want to know, did you send cars information to controller ? Thank you.

ramonfontes commented 4 years ago

net, poly and route files are defined in https://github.com/intrig-unicamp/mininet-wifi/tree/master/mn_wifi/sumo/data. You can replace them with your files and recompile the code in order to apply the changes.

lamiael16 commented 4 years ago

Hi Ramon, I did all what you say but it didn't work when the number of cars is more than 20 cars, I generate a net.xml, rou.xml files for 10 cars and 20 cars all work fine but when I put 40 cars and more, SUMO stop after 20 sec and all ifconfig of cars return no access point attached, also all ping command give me unreachable response. please can help me because I must present my work to evaluate different controller in different vehicles density using mining-wifi next week and I stuck on. thank you.

On Thu, Sep 26, 2019 at 12:09 PM Ramon Fontes notifications@github.com wrote:

net, poly and route files are defined in https://github.com/intrig-unicamp/mininet-wifi/tree/master/mn_wifi/sumo/data. You can replace them with your files and recompile the code in order to apply the changes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGMJ5LZEXJD7AEJXCUTQLTNC7A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WDYFY#issuecomment-535575575, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGP3EOD3VPVHYGFCV6LQLTNC7ANCNFSM4GYYKJJQ .

ramonfontes commented 4 years ago

It seems to be a problem with your SUMO files. So, I suggest you to contact its mailing list.

lamiael16 commented 4 years ago

Thank you for your response, I tried different version of sumo from 0.25.0 to 1.2.0 all have problems, sometimes it is storage problem reading of 4 bytes caused by Traci version with mininet-wifi version and when I upgrade to new version 1.1.0 (what I used now) I had the problem of time execution is less then what I want ( I juste need 150 s just to do ping and Iperf commande and have the result). I will contact them, but did you try your valet-sumo.py with more than 10 vehicles and work? please can you try juste 70 vehicles? thank's

On Thu, Sep 26, 2019 at 4:35 PM Ramon Fontes notifications@github.com wrote:

It seems to be a problem with your SUMO files. So, I suggest you to contact its mailing list.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGIEJBU7WGOIL2ESLSTQLUMI5A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7W4GIQ#issuecomment-535675682, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGPVEZ5NQ5S3T6EPB23QLUMI5ANCNFSM4GYYKJJQ .

ramonfontes commented 4 years ago

Dear,

Mininet-WiFi only captures the position of the vehicles from sumo's API. If you cannot see them in sumo-gui, this means that this problem isn't related to mn-wifi.

lamiael16 commented 4 years ago

Thank you.

On Thu, Sep 26, 2019 at 4:50 PM Ramon Fontes notifications@github.com wrote:

Dear,

Mininet-WiFi only captures the position of the vehicles from sumo's API. If you cannot see them in sumo-gui, this means that this problem isn't related to mn-wifi.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGNU3PMI7XMCZLRKKFDQLUOC7A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7W5PQY#issuecomment-535680963, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGKW3QOR7Q6LRBLMEHDQLUOC7ANCNFSM4GYYKJJQ .

lamiael16 commented 4 years ago

Hi Ramon, Please, can you try vanet-sumo.py with 50 cars if it works for you ( I read in old issue that there is a problem with vanet.py if more than 20 cars are used in the script, perhaps it is the same thing with vanet-sumo.py, I don't know, I just try to find explaining my problem)? I it work for you that mean there are a problem with my ubuntu or my VM. I send my issue to sumo mail list but I didn't get a clear response. Sorry, but please juste to check this possibility, Before I change my Vm. Thank you so much for your help and answers.

On Thu, Sep 26, 2019 at 6:08 PM Lamia E.L. lamia.el16@gmail.com wrote:

Thank you.

On Thu, Sep 26, 2019 at 4:50 PM Ramon Fontes notifications@github.com wrote:

Dear,

Mininet-WiFi only captures the position of the vehicles from sumo's API. If you cannot see them in sumo-gui, this means that this problem isn't related to mn-wifi.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGNU3PMI7XMCZLRKKFDQLUOC7A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7W5PQY#issuecomment-535680963, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGKW3QOR7Q6LRBLMEHDQLUOC7ANCNFSM4GYYKJJQ .

ramonfontes commented 4 years ago

Could you share your sumo file which has 50 cars? I need all the sumo files: net, poly and route files.

lamiael16 commented 4 years ago

Hi ramon, Thank you so much for your help, I share with you my file with 40 vehicles. I will check vanet-sumo.py with the newest version of Sumo (1.3.1) as sumo mailist suggest and see if it will resolve the issue. but by time, please can you try my files on your system? did the capacity of my virtual machine have an effect on script running? Have a nice day. Lamia

On Fri, Sep 27, 2019 at 2:15 PM Ramon Fontes notifications@github.com wrote:

Could you share your sumo file which has 50 cars? I need all the sumo files: net, poly and route files.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGNFVE45SKCVHZUHZILQLZEU5A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZWNDQ#issuecomment-536045198, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGOHMFH6ON2ARN42CB3QLZEU5ANCNFSM4GYYKJJQ .

ramonfontes commented 4 years ago

Where are the files???

lamiael16 commented 4 years ago

Hi ramon, I put the files in attachment .

On Sat, Sep 28, 2019 at 7:01 AM Ramon Fontes notifications@github.com wrote:

Where are the files???

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGNV4JQVICQUGOR6PILQL42PTA5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72WRFY#issuecomment-536176791, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGJXOK7UYIOZIG2F7UDQL42PTANCNFSM4GYYKJJQ .

ramonfontes commented 4 years ago

Could you please tell me how did you attach files in this platform? I'm so sorry, but I can't be answering so many messages. Be more clear and objective! If you have files, please use plataforms such as gist and share their links here.

lamiael16 commented 4 years ago

Hi Ramon, Sorry to be late, I had some personnel problem. I was in bad situation. I used my gmail to send my response for this reason the files are not attached. I have just opened my git and I put the file attached here in zip file. Thank you so much and sorry for my late but It was due to force majeure.

sumo_files.zip

ramonfontes commented 4 years ago

There is a problem with the vehicle number 38 and the code worked after removing it. It seems that the edges aren't correctly defined for that vehicle. What is wrong with the edges? I don't know. You need to check it out.

lamiael16 commented 4 years ago

Please, can you show me how can I identify the vehicle that causes a problem. I will use your method to remove all vehicles and generate a good scenarios. Thank you so much.

ramonfontes commented 4 years ago

Look at the time the error occurs and then remove the vehicle where the depart time coincides with the error time.

lamiael16 commented 4 years ago

I will do it , thank you so much, you are very helpful and kind.

lamiael16 commented 4 years ago

Hi Ramon, Please can you guide me how to debug your script vanet-sumo.py because when I try to use print instruction inside the script to check the value of the edge that struck the code, no thing is shown on screen. ài know the environment of mining-wifi is not the same as simple execution of python script, but I am sur there is a manner to visualize the value of some variables just to see if it contains what I expect. Thank you once again, Lamia

On Sat, Sep 28, 2019 at 9:58 PM Ramon Fontes notifications@github.com wrote:

Look at the time the error occurs and then remove the vehicle where the depart time coincides with the error time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGMO7KMM4EMJNYZZT63QMADU5A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73F7NQ#issuecomment-536240054, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGK4UDP5SLXP3HYSJC3QMADU5ANCNFSM4GYYKJJQ .

lamiael16 commented 4 years ago

HI ramón, I found the method to print the value of variables. thank you for all your help.

On Wed, Oct 2, 2019 at 8:36 AM Lamia E.L. lamia.el16@gmail.com wrote:

Hi Ramon, Please can you guide me how to debug your script vanet-sumo.py because when I try to use print instruction inside the script to check the value of the edge that struck the code, no thing is shown on screen. ài know the environment of mining-wifi is not the same as simple execution of python script, but I am sur there is a manner to visualize the value of some variables just to see if it contains what I expect. Thank you once again, Lamia

On Sat, Sep 28, 2019 at 9:58 PM Ramon Fontes notifications@github.com wrote:

Look at the time the error occurs and then remove the vehicle where the depart time coincides with the error time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/213?email_source=notifications&email_token=AEKWRGMO7KMM4EMJNYZZT63QMADU5A5CNFSM4GYYKJJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73F7NQ#issuecomment-536240054, or mute the thread https://github.com/notifications/unsubscribe-auth/AEKWRGK4UDP5SLXP3HYSJC3QMADU5ANCNFSM4GYYKJJQ .