Skip to main content
Associate II
April 26, 2024
Solved

Test device network speed

  • April 26, 2024
  • 3 replies
  • 3448 views

Hi guys,

I want to know whether the device meets the 100Mbps full duplex need how to test?


My own test is as follows:

The device ip is 192.168.1.10, pc ip is 192.168.1.135.(The ip of pc is different in wireshark(135) and test software(25), because it is not the same pc and same test, just for your information)

First of all, when connecting the device to PC via RJ45, the Ethernet link shows 100Mbps. I used the speed test software on PC, when sending arp, icmp, tcp, udp packets to the device at the same time, the device won't reply to some of the packets, especially not to ICMP packets.


In this case, is the device considered to meet the 100 megabit full duplex? Or do all requests have to be replied by the device.

 

3 replies

AScha.3
AScha.3Best answer
Super User
April 26, 2024
"If you feel a post has answered your question, please click ""Accept as Solution""."
PeterMuAuthor
Associate II
April 27, 2024

OK, thanks a lot, i will try it.

ST Employee
April 26, 2024

Hello @PeterMu,

As @AScha.3 mentioned depending on the device and software you could in practice get close the 100 Mbps of theoretical bandwidth. you measured speed can be affected by many variables hindering your theoretical value: interference, cable quality, software processing time can impact your measured perf, but you should stay close to your theoretical 100M maybe if you could give us more info about your product and software we could clarify more. 

BR

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Pavel A.
April 26, 2024

@PeterMu Your question can be interpreted in two ways: (1) how to see if the PHY indeed is in 100/FDX mode, and (2) how to measure performance.

The former can be seen if you plug the board to a professional managed switch (using a good cable!). Then just look at its LEDs, or use the software of the switch to report the port status and any anomalies it can detect. On the STM32 side, read the status reported by the PHY chip: negotiation result and progress. It must match the peer state.

Note that for full-duplex, auto negotiation must be used, because the full/half mode is reported via auto-negotiation protocol. If you set the link speed manually, you must assume half duplex mode (this is what our ethernet experts told me).

For the latter - use iperf or a professional tool (Chariot).

 

PeterMuAuthor
Associate II
April 27, 2024

Thanks a lot, I will try iperf for speed test.