Skip to content
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

Does this work across different regions on the cloud? #50

Open
0xbentang opened this issue Dec 2, 2024 · 5 comments
Open

Does this work across different regions on the cloud? #50

0xbentang opened this issue Dec 2, 2024 · 5 comments

Comments

@0xbentang
Copy link

I'm using AWS and trying to test machnet for different AWS regions

When I try to run the hello world example, on the sender side I always got

ERROR: Failed to dequeue response from control queue.
machnet_connect() failed

Then I tried to create another VM in the same region, and the hello world works. This suggested something is wrong when it's cross regions?

I then also tried to build DPDK and run dpdk-testpmd on both end, and it shows it's receiving. The caveat is that for --eth-peer I need to specify the gateway MAC instead of the NIC MAC. I don't see similar setting in machnet, can you advise if this is indeed the issue and any potential fixes? Thanks in advance!

@marinosi
Copy link
Collaborator

marinosi commented Dec 2, 2024

Hi @0xbentang,

Thanks for opening this issue. I can confirm that machnet doesn't currently support connecting to a remote peer when traffic needs to be routed to a different subnet via a gateway; machnet currently does ARP resolution for hosts in the same subnet. The changes should be straight forward but the current implementation just doesn't support this.

Best,
Ilias

@0xbentang
Copy link
Author

Hi @marinosi,

Thanks for the quick reply! Good to know that it's currently not supported. Do you have an idea on when this will be implemented?

If possible I can also try to help on implementing it if it's straightforward. I'm more on Rust though and less experienced in C++, it will be very helpful if you can provide more context/guidance roughly on how you'd expect it to be done, thanks in advance!

@sarsanaee
Copy link
Collaborator

Hi @0xbentang @marinosi

@0xbentang, I am happy to sit with you sometime later this week to give some context so you can start.

@0xbentang
Copy link
Author

Hi @0xbentang @marinosi

@0xbentang, I am happy to sit with you sometime later this week to give some context so you can start.

Sure @sarsanaee what's the best way to communicate this?

@sarsanaee
Copy link
Collaborator

Thanks @0xbentang

Please join the following Discord server that I created recently. Please use the link and join; we can coordinate there. https://discord.gg/eYCJsc2n

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

3 participants