Skip to content

when I tried to ping n2 from n1's terminal, it failed to connect #921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PRCZHY opened this issue Apr 2, 2025 · 3 comments
Open

when I tried to ping n2 from n1's terminal, it failed to connect #921

PRCZHY opened this issue Apr 2, 2025 · 3 comments
Assignees

Comments

@PRCZHY
Copy link

PRCZHY commented Apr 2, 2025

My operating system is Ubuntu 22.04, and my CORE version is 9.2.0.

I followed the website tutorial, opened the file from Tutorial 1, and ran it. However, when I tried to ping n2 from n1's terminal, it failed to connect. Here is a screenshot of the issue:

Additionally, I encountered an error when starting the daemon:

*"TypeError: Descriptors cannot be created directly.

If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.

If you cannot immediately regenerate your protos, some other possible workarounds are:

Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower)."*
I temporarily resolved this by running:

export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
Image

@bharnden bharnden self-assigned this Apr 3, 2025
@bharnden
Copy link
Contributor

bharnden commented Apr 3, 2025

I am assuming the protobuf error is related to EMANE, without seeing the complete error its hard to say. I also am not sure how you installed everything to get here.

Not being able to ping across nodes is usually a symptom of having Docker installed, which is blocking traffic.

https://coreemu.github.io/core/install.html#resolving-docker-issues

@PRCZHY
Copy link
Author

PRCZHY commented Apr 10, 2025

Thanks for your help.
Following up on the previous issue (which has been resolved, and hosts can now ping each other successfully), I encountered a new error when using the WLAN interface.
Problem description:
I did not modify any WLAN configurations.
Even when directly running the example from the official tutorial (https://coreemu.github.io/core/tutorials/tutorial2.html#files), the same error occurs.
Error:
Exception calling application: command(vcmd -c /tmp/pycore.2/n2 -- tc qdisc replace dev eth0 root handle 10: netem rate 54000.0kbit limit 45 delay 5000us 0us 25%), status(2):
stdout:
stderr: Error: Specified qdisc kind is unknown.

Image

Image

@bharnden
Copy link
Contributor

Seems like you are missing the netem kernel module. Assuming you use Ubuntu desktop, I have not seen that before.

Otherwise it claims you would need to install the iproute2 package.

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

No branches or pull requests

2 participants