esnet / esnet/iperf

"iperf3: error - unable to read from stream socket: Resource temporarily unavailable" after running PTP4l

Open
#1,359 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.8k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

# Context

* Version of iperf3: Iperf 3.1.1

* Hardware: macB cadence, Power PC E550

* Operating system (and distribution, if any): Linux 4.1.38

# Bug Report

* Expected Behavior
I am trying to make iperf3 work with PTP4l at the same time, I expect to have clock synchronization while testing the network bandwidth.

* Actual Behavior
When running iperf3 without running ptp4l I get a successful network test:
![image](https://user-images.githubusercontent.com/108777603/177460567-1974cd1e-e2a4-4c82-a1de-5d893cf95a0c.png)

Then, If I run PTP4l, I can have the clocks synchronization working:
![image](https://user-images.githubusercontent.com/108777603/177460847-e4b4a519-13c5-453b-9ea5-cf56c691efca.png)

If I try to run iperf3 again, I got "iperf3: error - unable to read from stream socket: Resource temporarily unavailable":
![image](https://user-images.githubusercontent.com/108777603/177461008-2e394eb5-10ac-4ad8-9676-fbf1a6bc2a7f.png)

Running tcpdump I see one pattern:

This is the server side, on the left the capture before running PTP4l, on the rigth after running PTP4l
![image](https://user-images.githubusercontent.com/108777603/177462971-f0bc765f-4cc8-4b21-ace4-9821c1603599.png)

This is the client side, on the left the capture before running PTP4l, on the rigth after running PTP4l. In this capture I see:
-In the left side a message is sent from the client to the server, then appear the "Connecting to host..." msg, and finally a second message is sent from the client to the server.
-In the rigth side a message is sent from the client to the server, then a second message is sent from the client to the server, and finally appear the "Connecting to host..." msg.

I always see this pattern when running ptp4l.

![image](https://user-images.githubusercontent.com/108777603/177463176-a9aa8c5b-eafb-4b69-adf1-00b5218dba42.png)

* Steps to Reproduce
-Run Iperf3
-Run PTP4l
-Run again Iperf3

Can someone help me to find the reason for this? or maybe give me some guidance to try to figure out why I am getting this issue?

Best regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.