ramonfontes / reproducible-research

61 stars 35 forks source link

Invalid literal for int() #2

Closed htahir6200 closed 6 years ago

htahir6200 commented 6 years ago

Hello, i am facing the following error while running the vanet.py example. error

ramonfontes commented 6 years ago

Please check if you can get TX/RX packets with the command available at https://github.com/ramonfontes/reproducible-research/blob /master/mininet-wifi/IEEE-Access-2017/vanet.py#L123. I suppose it is not working with your kernel version and some adjusts are needed.

2018-05-08 13:37 GMT-03:00 htahir6200 notifications@github.com:

Hello, i am facing the following error while running the vanet.py example. [image: error] https://user-images.githubusercontent.com/22287362/39770263-7650d66a-5329-11e8-8fd5-41cdf8caca01.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ramonfontes/reproducible-research/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmelUIt35Aic2cLimvSM3LcWI14AKzks5twcnRgaJpZM4T2988 .

htahir6200 commented 6 years ago

Which kernel version will work for the vanet example. Secondly, the above link shows 404.

ramonfontes commented 6 years ago

Sorry. This is the link https://github.com/ramonfontes/reproducible-research/blob/master/mininet-wifi/IEEE-Access-2017/vanet.py#L123. It will work in any kernel version, however, few adjusts are needed in order to get tx/rx packets as well as the amount of data (in bytes).

2018-05-08 13:50 GMT-03:00 htahir6200 notifications@github.com:

Which kernel version will work for the vanet example. Secondly, the above link shows 404.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ramonfontes/reproducible-research/issues/2#issuecomment-387468518, or mute the thread https://github.com/notifications/unsubscribe-auth/AEnmehQPmBX-z78SLtC_GpGxb8mrKBwDks5twczqgaJpZM4T2988 .

htahir6200 commented 6 years ago

Do i need to make changes insode my OS kernal or inside the vanet.py file? Can you please suggest what kind of changes i have to made?

ramonfontes commented 6 years ago

Is ifconfig INTERFACE_NAME | grep "TX packets" | awk -F' ' '{print $3}' working as expected? Can you see the amount of tx packets? If you cannot see tx packets you have to change it in order to get tx packets.

Expected result: ifconfig wlp1s0 | grep "TX packets" | awk -F' ' '{print $3}' 38669

htahir6200 commented 6 years ago

I am not to able to see the tx packets. I have also checked the packet-switch.vanetdata file which also shows a column of "errors:0" in it.

ramonfontes commented 6 years ago

So, you have to modify the command in order to get tx packets, etc.

htahir6200 commented 6 years ago

It says Bond0 interface not found.

ramonfontes commented 6 years ago

Cannot you replace bond0 with any other interface you have?? :( is the command and concept behind the command too difficult to comprehend?

htahir6200 commented 6 years ago

It was just a print issue.i have resolved it. Tahnk you.

On Wed, May 9, 2018, 7:31 PM Ramon Fontes notifications@github.com wrote:

Cannot you replace bond0 with any other interface you have?? :( is the command and concept behind the command too difficult to comprehend?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ramonfontes/reproducible-research/issues/2#issuecomment-387696209, or mute the thread https://github.com/notifications/unsubscribe-auth/AVQUAiJzzeGTnojq8BA87SLl4koWVN46ks5twsWLgaJpZM4T2988 .

Sarah-hui commented 6 years ago

Can turn the Car0 into any car? and how to change the code? Thanks!