Unable to run iperf for bandwidth testing

48 views
Skip to first unread message

Amar Sinha

unread,
Mar 18, 2025, 5:05:44 AMMar 18
to mininet-wifi-discuss
Hi,

I cannot run iperf for bandwidth testing on the handover code; however, I can ping successfully.

Screenshot from 2025-03-18 12-22-42.png

Ramon Fontes

unread,
Mar 18, 2025, 5:18:05 AMMar 18
to Amar Sinha, mininet-wifi-discuss
How can we reproduce the issue?

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mininet-wifi-discuss/00e1145e-a070-4d94-9ea4-4fe1c0cb85a6n%40googlegroups.com.

Ramon Fontes

unread,
Mar 18, 2025, 6:52:23 AMMar 18
to Amar Sinha, mininet-wifi-discuss
Please also provide a detailed explanation of the expected result, including the anticipated outcomes and their underlying reasoning.

Amar Sinha

unread,
Mar 18, 2025, 7:21:47 AMMar 18
to mininet-wifi-discuss
Respected Sir,

I wanted to check bandwidth and throughput between h1 and sta1. To do this I opened xterm terminals of h1 and sta1.

After this, I used the command "iperf -s" for a server listening on h1. Then, I executed "iperf -c 10.0.0.2" on sta1 to send traffic to h1.

Screenshot from 2025-03-18 15-49-00.png

Ramon Fontes

unread,
Mar 18, 2025, 8:17:55 AMMar 18
to Amar Sinha, mininet-wifi-discuss
Dear Amar,

It seems that the P4 code isn't currently processing TCP/UDP packets,
correct? If that's the case, wouldn't the behavior you mentioned be
expected?

Amar Sinha

unread,
Mar 19, 2025, 11:12:31 AMMar 19
to mininet-wifi-discuss
Respected Sir,

I have edited the file as attached but it shows same error.
app.p4

Ramon Fontes

unread,
Mar 19, 2025, 11:14:20 AMMar 19
to Amar Sinha, mininet-wifi-discuss
Could you describe what exactly you did, step by step?

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

Amar Sinha

unread,
Mar 19, 2025, 11:20:57 AMMar 19
to mininet-wifi-discuss
Respected Sir,

These are the steps-
  • TCP/UDP header definitions were added to enable TCP/UDP packet processing.
  • Implemented Bloom filter logic to check if a flow rule exists.
  • Separate tables for TCP/UDP forwarding were added. Allow flexible handling based on the transport protocol.

Ramon Fontes

unread,
Mar 19, 2025, 11:24:24 AMMar 19
to Amar Sinha, mininet-wifi-discuss
Did you compile the p4 code and run it?

On Wed, Mar 19, 2025, 12:20 'Amar Sinha' via mininet-wifi-discuss <mininet-wi...@googlegroups.com> wrote:
Respected Sir,

These are the steps-
  • TCP/UDP header definitions were added to enable TCP/UDP packet processing.
  • Implemented Bloom filter logic to check if a flow rule exists.
  • Separate tables for TCP/UDP forwarding were added. Allow flexible handling based on the transport protocol.

On Wednesday, March 19, 2025 at 8:44:20 PM UTC+5:30 ramonre...@gmail.com wrote:
Could you describe what exactly you did, step by step?

On Wed, Mar 19, 2025, 12:12 'Amar Sinha' via mininet-wifi-discuss <mininet-wi...@googlegroups.com> wrote:
Respected Sir,

I have edited the file as attached but it shows same error.

On Tuesday, March 18, 2025 at 5:47:55 PM UTC+5:30 ramonre...@gmail.com wrote:
Dear Amar,

It seems that the P4 code isn't currently processing TCP/UDP packets,
correct? If that's the case, wouldn't the behavior you mentioned be
expected?

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

Amar Sinha

unread,
Mar 19, 2025, 12:05:17 PMMar 19
to mininet-wifi-discuss
No Sir. Can you please guide me through the steps? It would be invaluable.

Ramon Fontes

unread,
Mar 19, 2025, 12:12:38 PMMar 19
to Amar Sinha, mininet-wifi-discuss
Dear Amar,

There's a lot to learn before working with P4. Unfortunately, I can't guide you through every step.

Amar Sinha

unread,
Mar 20, 2025, 5:17:48 AMMar 20
to mininet-wifi-discuss
Respected Sir,

Earlier, I have worked on mininet when I was persuing SDN course. I am confused about using the p4 compilation commands in containernet. I tried to use the p4c commands and also the bm2 commands available in the documentation but was unable to execute them. I would really appreciate it if you could guide me, sir.

Ramon Fontes

unread,
Mar 20, 2025, 5:23:41 AMMar 20
to Amar Sinha, mininet-wifi-discuss
p4c is an independent compiler and has no connection to Mininet or Containernet. If you're having trouble running p4c, the issue is unrelated to Containernet.

Reply all
Reply to author
Forward
0 new messages