Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

olsrlinkview.py not showing the two nodes #36

Open
sanjayjaiman opened this issue Aug 4, 2023 · 12 comments
Open

olsrlinkview.py not showing the two nodes #36

sanjayjaiman opened this issue Aug 4, 2023 · 12 comments

Comments

@sanjayjaiman
Copy link

I am trying to get the Emane tutorial "0" to run. After some effort, I have OLSRd running on node-1 and node-2 and they seem to have each other as neighbors but in olsrlinkview.py window I see nothing. Can anyone help? Thanks.

@vivianchiong
Copy link

Can you show a screenshot?

@sanjayjaiman
Copy link
Author

Screenshot 2023-08-08 at 6 05 24 PM

@sanjayjaiman
Copy link
Author

Thats the olsrlinkview window. I expected two OLSRd nodes showing up

@sanjayjaiman
Copy link
Author

Screenshot 2023-08-08 at 6 05 54 PM

@sanjayjaiman sanjayjaiman reopened this Aug 8, 2023
@sanjayjaiman
Copy link
Author

This is OLSRd running on node-1

@sanjayjaiman
Copy link
Author

Screenshot 2023-08-08 at 6 06 25 PM

@sanjayjaiman sanjayjaiman reopened this Aug 8, 2023
@sanjayjaiman
Copy link
Author

This is on node-2

@vivianchiong
Copy link

There seems to be the 2 nodes the corner which you can drag out into the open canvas. Although, assuming you successfully built the emane-tutorial repo with make and started all processes in Demo 0 like so,

rm NO-* -f
sudo ./demo-start

your links still saying 0 is a problem, alongside the gps data not showing up. Are you sure you have successfully installed the olsrd txt info plugin and gps packages, and they are being configured and used?

In general I would try checking wherever your lxcroot/<node-nem>/logs are for any errors, as well as your emame.log, eventdaemon.log, emaneeventservice.log files for "ERROR" messages.

Also try checking the gpsd devices are being shared and have the necessary permissions. Personally on my Ubuntu machine, I found this configuration in this file location: /etc/apparmor.d/usr.sbin.gpsd since my machine had apparmor that was messing with the permissions.

@sanjayjaiman
Copy link
Author

Thanks Vivian. I'll check it out

@sanjayjaiman
Copy link
Author

Screenshot 2023-08-18 at 5 18 03 PM

@sanjayjaiman
Copy link
Author

Vivian, Dragging the nodes out to the center one by one still does not show nodes 1 and 2 forming a connection. I was looking in the "persist" directory of the tutorial. (persist/1/var/log/) filename = lxc-execute.log.1. That file has 0 bytes.

-rw-r-----. 1 root root 0 Aug 18 17:15 lxc-execute.log.1

Not sure where else to look.

@sanjayjaiman sanjayjaiman reopened this Aug 18, 2023
@vivianchiong
Copy link

Your latest screenshot tells me that the GPS related stuff in your running EMANE emulation is good, and the only thing lacking in the picture is your links are connected. So you need to investigate deeper down the stack. Is your PHY layer dropping packets? Is your MAC layer dropping packets?

Use emanesh like so:

ssh helper emanesh node-1 get stat nems all
ssh helper emanesh node-1 get table nems mac
ssh helper emanesh node-1 get table nems phy

Major tables I like to look at to make sure things are happening as I expect them to are: NeighborMetricTable, ReceivePowerTable, EventReceptionTable, and the accept/drop tables.

Links will show on olsrlinkview.py if your MAC layer is successfully sending packets up the chain and through the application/emulation transport boundary to the user side.

Though since this tutorial should work out of the box, I'm not sure why this is happening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants