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

how to connect several PCs and test throughput? #473

Open
Memtwo opened this issue Jan 4, 2021 · 5 comments
Open

how to connect several PCs and test throughput? #473

Memtwo opened this issue Jan 4, 2021 · 5 comments

Comments

@Memtwo
Copy link

Memtwo commented Jan 4, 2021

I want to test throughput on multi-hop router path.
My plan is using several PCs, the first one as the source, last one as the destination,those between them as the routers, connect them all and then test the throughput.
Is that realizable? If it is, how to realize it? Or any other ways to realize througput testing on multi-hop path.
Is there any docs I can refer to?

@p4pe
Copy link

p4pe commented Jan 4, 2021

Hello, you can start wuth a simple setup with three different PCs, a Source a Bridge and a Sink.

On the source, you can have a click configuration that acts as a traffic generator, in the middle you can have a simple click configuration that just forwarding the traffic, and on the sink you can count the traffic using the Counter element,

@Memtwo
Copy link
Author

Memtwo commented Jan 4, 2021

Hello, you can start wuth a simple setup with three different PCs, a Source a Bridge and a Sink.

On the source, you can have a click configuration that acts as a traffic generator, in the middle you can have a simple click configuration that just forwarding the traffic, and on the sink you can count the traffic using the Counter element,

Thanks! and may I ask which element or setting I need to modify?

@p4pe
Copy link

p4pe commented Jan 4, 2021

On the source you can use FastUDPSource element or InfinitySource to generate traffic.
On the middle node you can have a simple script

FromDevice() -> Queue -> ToDevice

On the sink you can have something like this:

FromDevice(eth1, PROMISC true)-> c:: Counter -> Discard;
Script(wait 10, print c.rate, loop);

You have to enable the promiscious mode in every intefrace.

@Memtwo
Copy link
Author

Memtwo commented Jan 5, 2021

On the source you can use FastUDPSource element or InfinitySource to generate traffic.
On the middle node you can have a simple script

FromDevice() -> Queue -> ToDevice

On the sink you can have something like this:

FromDevice(eth1, PROMISC true)-> c:: Counter -> Discard;
Script(wait 10, print c.rate, loop);

You have to enable the promiscious mode in every intefrace.

Thanks!
sorry to bother you again. I am newbie to Click.
I install Cilck on VM, ubuntu20.04 and I can't find the FastUDPSource element or InfinitySource.
And any doc can tell me how to set the script on every node?

@tbarbette
Copy link
Collaborator

Did you compile Click with --enable-userlevel? You're probably in Kernel mode, making FastUDPSource not available.
Then it's InfiniteSource, check here : https://github.com/kohler/click/wiki/Elements

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