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

Can StarryNet support routing researches based on reinforcement learning? #12

Open
ZoeJiang2222 opened this issue Jun 20, 2024 · 2 comments

Comments

@ZoeJiang2222
Copy link

Thanks for all you have done!
I wonder if there's any API provided for routing researches based on reinforcement learning? Or can you provide more related examples?
Sincerely hope to get your help.

@xiex386
Copy link
Contributor

xiex386 commented Jul 3, 2024

If you need APIs to modificate route tables, you can use Linux system APIs to apply static routes.

Iproute2 commands conveniently wrap these syscalls to interact with kernels. In containers, you can use the following command to operate route tables.

ip route <op> 10.0.4.0/24 dev B1-eth1 via 10.0.2.10, <op> can be add/change/del.

With command to enter container, it will be:

docker exec ovs_container_1 ip route <op> 10.0.4.0/24 dev B1-eth1 via 10.0.1.10 in the main branch version or ip netns exec SH1O1S1 ip route <op> 10.0.4.0/24 dev B1-eth1 via 10.0.1.10 in the dev branch version.

@ZoeJiang2222
Copy link
Author

Thanks for your advice, I'll learn more about Linux kernels.

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