tohojo / flent

The FLExible Network Tester.
https://flent.org
Other
437 stars 78 forks source link

Using network namespaces #117

Closed dtaht closed 6 years ago

dtaht commented 6 years ago

For simulation it would be helpful to be able to monitor qdiscs and other stats within a container.

ip netns exec delay tc_iterate -i delay.l 
ip netns exec delay tc_iterate -i delay.r 
ip netns exec mbox tc_iterate -i middlebox.l
ip netns exec mbox tc_iterate -i middlebox.r 
tohojo commented 6 years ago

Dave Täht notifications@github.com writes:

For simulation it would be helpful to be able to monitor qdiscs and other stats within a container.

Hmm, the straight forward way to do this would be to make the 'qdisc_stats_hosts' test parameter understand namespaces, I guess? However, switch netns requires CAP_NET_ADMIN (or root), doesn't it?

flent-users commented 6 years ago

On Mon, Nov 20, 2017 at 1:31 PM, Toke Høiland-Jørgensen < notifications@github.com> wrote:

Dave Täht notifications@github.com writes:

For simulation it would be helpful to be able to monitor qdiscs and other stats within a container.

Hmm, the straight forward way to do this would be to make the 'qdisc_stats_hosts' test parameter understand namespaces, I guess?

that variable gaining a namespace%interface?

At the moment I'm also doing a ip netns exec server flent -H client into the server namespace. It's completely isolated from the rest of the network,

If I wanted to do a whole bunch of simulations at the same time, namespaces are global but ip addresses are not.

However, switch netns requires CAP_NET_ADMIN (or root), doesn't it?

To get higher than 20ms from ping you need root also.

Live a little.

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tohojo/flent/issues/117#issuecomment-345838371, or mute the thread https://github.com/notifications/unsubscribe-auth/AerUv8EQ7iNUS8C83t99Ca0vPuHUBbw1ks5s4e-kgaJpZM4Qk6k1 .


Flent-users mailing list Flent-users@flent.org http://flent.org/mailman/listinfo/flent-users_flent.org

--

Dave Täht CEO, TekLibre, LLC http://www.teklibre.com Tel: 1-669-226-2619

tohojo commented 6 years ago

However, switch netns requires CAP_NET_ADMIN (or root), doesn't it?

To get higher than 20ms from ping you need root also.

Live a little.

Yeah, which is why that is not supported either... :P

I really am not very keen on adding features that require root. Can't you just run an SSH server in each namespace or something? :P

dtaht commented 6 years ago

ssh will work.