This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TDA4VM CPSW9G UDP packet loss

Part Number: TDA4VM

Tool/software:

Hi,

Testing the packet loss rate of the Ethernet network.

Tools:iperf3 3.7

All ports have a bandwidth of 1000M.

We conducted the following tests:

   (Refer to the data in the table.)

1.Port0(soc2)  send package to Port0(soc1) by 1000M bitrate, actual the receiving speed of port 1 is 500M, no packet loss。

   Meanshile Port0(soc2)  send package to Port3(soc1) by 1000M bitrate, actual the receiving speed of port 1 is 500M, no packet loss。

2.Port0(soc2)  send package to Port3(soc1) by 500M bitrate, actual the receiving speed of port 1 is 500M, packet loss。

   Meanshile Port0(soc1)  send package to Port3(soc1) by 100M bitrate, actual the receiving speed of port 1 is 100M, packet loss

3.Port0(soc1)  send package to Port3(soc1) by 500M bitrate, actual the receiving speed of port 1 is 500M, no 。

   Meanshile Port0(soc2)  send package to Port3(soc1) by 100M bitrate, actual the receiving speed of port 1 is 100M, packet loss

4.Port3(soc1)  send package to Port0(soc1) by 400M bitrate, actual the receiving speed of port 1 is 170M, packet loss。

   Meanshile Port0(soc2)  send package to Port0(soc1) by 400M bitrate, actual the receiving speed of port 1 is 400M, no packet loss

Summary:

    When the data from both Port converges to one port, the total speed is less than 500m.When a port sends data to two ports separately, the total speed is 1000M.And it seems that the host port of A72 has a higher priority.

QA:

1."When the data from both Port converges to one port, the total speed is less than 500m"-->I think the total bandwidth should be 1000M, but the actual measurement is only 500M. Is there a solution to the current situation?

2.How to set the sending priority of a certain port?

3.Does the port have a sending buffer, and how is this set? Can we increase it a bit?

enet test.xlsx

Regards,

Yang

  • Hi,

    2.How to set the sending priority of a certain port?

    Ports wise there is no priority configuration.

    1."When the data from both Port converges to one port, the total speed is less than 500m"-->I think the total bandwidth should be 1000M, but the actual measurement is only 500M. Is there a solution to the current situation?

    Host Port operation will be much faster than External Ports.
    As Host Port will operate with CPSW frequency, External Ports will be based on Link Speed.
    Dependency will come when Host Port want to send the traffic to any ports Port should have empty buffer/FIFO then only it can copy the data.

    3.Does the port have a sending buffer, and how is this set? Can we increase it a bit?

    Yes, Tx buffer is 2K for each priority (0 to 7) total 16K. Rx side is 2K.

    No we can't increase the H/W buffers.

    Best Regards,
    Sudheer

  • Hi,

    -->>"When the data from both Port converges to one port, the total speed is less than 500m"-->I think the total bandwidth should be 1000M, but the actual measurement is only 500M. Each external port configuration is 1000M, and the link up is also 1000M
    We are currently blocked by this issue.Could you tell me how to fix it?
    Regards,
    Yang
  • We config the rate_limiting by GUI configurator tool for port4 -> port3, but it seems useless.

    ,{"cmd":"rate_limiting",
    "src_mac_addr":"AA:BB:CC:DD:EE:0D",
    "ing_portNum":4,
    "dst_mac_addr":"AA:BB:CC:DD:EE:01",
    "egr_portNum":3,
    "vlan_id":3,
    "PIR":200000000,
    "CIR":100000000
    }

  • Hi,

    When you are sending data from one port to other, the lowest port link speed will be the Maximum throughput can be achieved.

    Also, when Host Port + External Port(P0) try to send the packets to another External Port (P3).

    Packet from P0 to P3 may lost of internal FIFO of P3 is not empty. where as it will not in case of Host Port it has back pressure mechanism when P3 FIFO is not empty it will not flush the data in Host Port FIFO instead it will not free the UDMA descriptors until packets copied to P3.

    We config the rate_limiting by GUI configurator tool for port4 -> port3, but it seems useless.

    Rate limiting will limit the throughput not exceeding the Limited value but it can lower as well.

    Best Regards,
    Sudheer