吴忠躺衫网络科技有限公司

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

MIMXRT1176AVM8A 1G以太網網絡性能測試

li1756686189 ? 來源:嵌入式 MCU ? 作者:嵌入式 MCU ? 2022-11-09 10:48 ? 次閱讀

之前使用I.MX6Q/I.MX6Q(imx_3.0.35_4.1.0), 1GB RGMII 以太網測試性能大概 495Mbits/sec, 如下是iperf測試過程。

iperf -c 192.168.0.112-u -b 800M -t 10 -l 1000

Client connecting to 192.168.112.125, UDP port 5002

Sending 1000 byte datagrams

UDP buffer size: 208 KByte (default)

[ 3] local 192.168.112.6 port 45230 connected with 192.168.112.125 port 5002

[ ID] Interval Transfer Bandwidth

[ 3] 0.0-10.0 sec 590 MBytes 495 Mbits/sec

[ 3] Sent 618437 datagrams

[ 3] WARNING: did not receive ack of last datagram after 10 tries.

讀勘誤手冊 "Chip Errata for the i.MX 6",里面有如下描述ERR004512:

IMX6DQCE (nxp.com.cn) 確實和測試比較吻合。

085d7ac8-5f4a-11ed-8abf-dac502259ad0.png

08726b5e-5f4a-11ed-8abf-dac502259ad0.png

目前使用 MIMXRT1176AVM8A MCU 芯片內置的1G 以太網。

096c4a7a-5f4a-11ed-8abf-dac502259ad0.png

為了驗證網絡性能,使用Iperf 吞吐性能測試如下:硬件電路板——MIMXRT1170-EVK C2,軟件包—— SDK_2.12.0-MIMXRT1170-EVK,下載鏈接如下。添加 iperf 代碼到 lwip_ping_freertos_cm7中,使用flexspi nor sdram 調試。

0a27532e-5f4a-11ed-8abf-dac502259ad0.png

lwipopts.h文件需要做如下配置才能達到比較高的網絡速率,如下是測試結果。

0a52aab0-5f4a-11ed-8abf-dac502259ad0.png

這些結果不完全相同,與主機操作系統也存在性能差異,不同的主機性能也存在顯著差異。總體來講 MIMXRT1176 MCU的 1G網絡性能是沒有I.MX6上面的速率限制的問題。

lwipopts.h 配置文件如下:

/** @file lwipopts.h

* This file is based on srcincludelwipopt.h*/

#ifndef __LWIPOPTS_H__

#define __LWIPOPTS_H__

#include "fsl_device_registers.h"

#if USE_RTOS

/*SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memoryallocation and deallocation. */

#define SYS_LIGHTWEIGHT_PROT 1

/*NO_SYS==0: Use RTOS */

#define NO_SYS 0

/*LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)*/

#define LWIP_NETCONN 1

/** LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)*/

#define LWIP_SOCKET 1

/**LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns andSO_RCVTIMEO processing.*/

#define LWIP_SO_RCVTIMEO 1

#else

/** NO_SYS==1: Bare metal lwIP*/

#define NO_SYS 1

/*LWIP_NETCONN==0: Disable Netconn API (require to use api_lib.c)*/

#define LWIP_NETCONN 0

/** LWIP_SOCKET==0: Disable Socket API (require to use sockets.c)*/

#define LWIP_SOCKET 0

/** LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT=1: we need to free PBUF_RAM pbufsfrom ISR context on LPC.*/

#if defined(FSL_FEATURE_SOC_LPC_ENET_COUNT) && (FSL_FEATURE_SOC_LPC_ENET_COUNT > 0)

#ifndef LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT

#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 1

#endif

#endif

#endif

/* ---------- Core locking ---------- */

void sys_check_core_locking(void);

#define LWIP_ASSERT_CORE_LOCKED() sys_check_core_locking()

/* ---------- Memory options ---------- */

/**

* MEM_ALIGNMENT: should be set to the alignment of the CPU

* 4 byte alignment -> #define MEM_ALIGNMENT 4

* 2 byte alignment -> #define MEM_ALIGNMENT 2

*/

#ifndef MEM_ALIGNMENT

#define MEM_ALIGNMENT 4

#endif

/**

* MEM_SIZE: the size of the heap memory. If the application will send

* a lot of data that needs to be copied, this should be set high.

*/

#ifndef MEM_SIZE

#define MEM_SIZE (22 * 1024)

#endif

/* MEMP_NUM_PBUF: the number of memp struct pbufs. If the applicationsends a lot of data out of ROM (or other static memory), this should be set high. */

#ifndef MEMP_NUM_PBUF

#define MEMP_NUM_PBUF ((TCP_WND + TCP_SND_BUF) / TCP_MSS)//15

#endif

/* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. Oneper active UDP "connection". */

#ifndef MEMP_NUM_UDP_PCB

#define MEMP_NUM_UDP_PCB 6

#endif

/* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP

connections. */

#ifndef MEMP_NUM_TCP_PCB

#define MEMP_NUM_TCP_PCB 10

#endif

/* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP

connections. */

#ifndef MEMP_NUM_TCP_PCB_LISTEN

#define MEMP_NUM_TCP_PCB_LISTEN 6

#endif

/* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP

segments. */

#ifndef MEMP_NUM_TCP_SEG

#define MEMP_NUM_TCP_SEG ((3 * TCP_SND_BUF) / TCP_MSS + 1)//22

#endif

/* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active

timeouts. */

#ifndef MEMP_NUM_SYS_TIMEOUT

#define MEMP_NUM_SYS_TIMEOUT 10

#endif

/* ---------- Pbuf options ---------- */

/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */

#ifndef PBUF_POOL_SIZE

#define PBUF_POOL_SIZE 20//9

#endif

/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */

/* Default value is defined in lwipsrcincludelwipopt.h as

LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_ENCAPSULATION_HLEN+PBUF_LINK_HLEN)*/

/* ---------- TCP options ---------- */

#ifndef LWIP_TCP

#define LWIP_TCP 1

#endif

#ifndef TCP_TTL

#define TCP_TTL 255

#endif

/* Controls if TCP should queue segments that arrive out of

order. Define to 0 if your device is low on memory. */

#ifndef TCP_QUEUE_OOSEQ

#define TCP_QUEUE_OOSEQ 0

#endif

/* TCP Maximum segment size. */

#ifndef TCP_MSS

#define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */

#endif

/* TCP sender buffer space (bytes). */

#ifndef TCP_SND_BUF

#define TCP_SND_BUF (40 * TCP_MSS)//(6 * TCP_MSS) // 2

#endif

/* TCP sender buffer space (pbufs). This must be at least = 2 *

TCP_SND_BUF/TCP_MSS for things to work. */

#ifndef TCP_SND_QUEUELEN

#define TCP_SND_QUEUELEN (3 * TCP_SND_BUF) / TCP_MSS // 6

#endif

/* TCP receive window. */

#ifndef TCP_WND

#define TCP_WND (20 * TCP_MSS)//(2 * TCP_MSS)

#endif

/* Enable backlog*/

#ifndef TCP_LISTEN_BACKLOG

#define TCP_LISTEN_BACKLOG 1

#endif

/* ---------- ICMP options ---------- */

#ifndef LWIP_ICMP

#define LWIP_ICMP 1

#endif

/* ---------- DHCP options ---------- */

/* Enable DHCP module. */

#ifndef LWIP_DHCP

#define LWIP_DHCP 1

#endif

/* ---------- UDP options ---------- */

#ifndef LWIP_UDP

#define LWIP_UDP 1

#endif

#ifndef UDP_TTL

#define UDP_TTL 255

#endif

/* ---------- Statistics options ---------- */

#ifndef LWIP_STATS

#define LWIP_STATS 0

#endif

#ifndef LWIP_PROVIDE_ERRNO

#define LWIP_PROVIDE_ERRNO 1

#endif

/*---------- Checksum options ----------

*/

/*Some MCU allow computing and verifying the IP, UDP, TCP and ICMP checksums by hardware:

- To use this feature let the following define uncommented.

- To disable it and process by CPU comment the the checksum.

*/

//#define CHECKSUM_BY_HARDWARE

#ifdef CHECKSUM_BY_HARDWARE

/* CHECKSUM_GEN_IP==0: Generate checksums by hardware for outgoing IP packets.*/

#define CHECKSUM_GEN_IP 0

/* CHECKSUM_GEN_UDP==0: Generate checksums by hardware for outgoing UDP packets.*/

#define CHECKSUM_GEN_UDP 0

/* CHECKSUM_GEN_TCP==0: Generate checksums by hardware for outgoing TCP packets.*/

#define CHECKSUM_GEN_TCP 0

/* CHECKSUM_CHECK_IP==0: Check checksums by hardware for incoming IP packets.*/

#define CHECKSUM_CHECK_IP 0

/* CHECKSUM_CHECK_UDP==0: Check checksums by hardware for incoming UDP packets.*/

#define CHECKSUM_CHECK_UDP 0

/* CHECKSUM_CHECK_TCP==0: Check checksums by hardware for incoming TCP packets.*/

#define CHECKSUM_CHECK_TCP 0

#else

/* CHECKSUM_GEN_IP==1: Generate checksums in software for outgoing IP packets.*/

#define CHECKSUM_GEN_IP 1

/* CHECKSUM_GEN_UDP==1: Generate checksums in software for outgoing UDP packets.*/

#define CHECKSUM_GEN_UDP 1

/* CHECKSUM_GEN_TCP==1: Generate checksums in software for outgoing TCP packets.*/

#define CHECKSUM_GEN_TCP 1

/* CHECKSUM_CHECK_IP==1: Check checksums in software for incoming IP packets.*/

#define CHECKSUM_CHECK_IP 1

/* CHECKSUM_CHECK_UDP==1: Check checksums in software for incoming UDP packets.*/

#define CHECKSUM_CHECK_UDP 1

/* CHECKSUM_CHECK_TCP==1: Check checksums in software for incoming TCP packets.*/

#define CHECKSUM_CHECK_TCP 1

#endif

/*DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread.The stack size value itself is platform-dependent, but is passed tosys_thread_new() when the thread is created.*/

#ifndef DEFAULT_THREAD_STACKSIZE

#define DEFAULT_THREAD_STACKSIZE 3000

#endif

/*DEFAULT_THREAD_PRIO: The priority assigned to any other lwIP thread.The priority value itself is platform-dependent, but is passed tosys_thread_new() when the thread is created.*/

#ifndef DEFAULT_THREAD_PRIO

#define DEFAULT_THREAD_PRIO 3

#endif

#define LWIP_DEBUG

#ifdef LWIP_DEBUG

#define U8_F "c"

#define S8_F "c"

#define X8_F "02x"

#define U16_F "u"

#define S16_F "d"

#define X16_F "x"

#define U32_F "u"

#define S32_F "d"

#define X32_F "x"

#define SZT_F "u"

#endif

#define TCPIP_MBOX_SIZE 32

#define TCPIP_THREAD_STACKSIZE 1024

#define TCPIP_THREAD_PRIO 8

/*DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on aNETCONN_RAW. The queue size value itself is platform-dependent, but is passedto sys_mbox_new() when the recvmbox is created.*/

#define DEFAULT_RAW_RECVMBOX_SIZE 12

/*DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on aNETCONN_UDP. The queue size value itself is platform-dependent, but is passedto sys_mbox_new() when the recvmbox is created.*/

#define DEFAULT_UDP_RECVMBOX_SIZE 12

/*DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on aNETCONN_TCP. The queue size value itself is platform-dependent, but is passedto sys_mbox_new() when the recvmbox is created. */

#define DEFAULT_TCP_RECVMBOX_SIZE 12

/**DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections.The queue size value itself is platform-dependent, but is passed tosys_mbox_new() when the acceptmbox is created.*/

#define DEFAULT_ACCEPTMBOX_SIZE 12

#if (LWIP_DNS || LWIP_IGMP || LWIP_IPV6) && !defined(LWIP_RAND)

/* When using IGMP or IPv6, LWIP_RAND() needs to be defined to a random-function returning an u32_t random value*/

#include "lwip/arch.h"

u32_t lwip_rand(void);

#define LWIP_RAND() lwip_rand()

#endif

#endif /* __LWIPOPTS_H__ */

/*****END OF FILE****/

審核編輯:湯梓紅

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • mcu
    mcu
    +關注

    關注

    146

    文章

    17317

    瀏覽量

    352640
  • 以太網
    +關注

    關注

    40

    文章

    5460

    瀏覽量

    172726
  • 性能測試
    +關注

    關注

    0

    文章

    214

    瀏覽量

    21389

原文標題:MIMXRT1176AVM8A 1G 以太網網絡性能測試

文章出處:【微信號:嵌入式 MCU,微信公眾號:嵌入式 MCU】歡迎添加關注!文章轉載請注明出處。

收藏 人收藏

    評論

    相關推薦

    400G 網絡如何測試

    。FTBx-88480提供G級的以太網測試功能,包括前向糾錯監測和驗證。RFC 2544隨著400G從實驗室走向現場(首批400G部署即將到
    發表于 12-12 10:56

    為什么ML402以太網1G傳輸時只有led100是綠色?

    大家好,我使用ML402板,想在這塊板上測試1Gbps以太網。我使用TEMAC v4.5 IP Core及其附帶的示例。首先,我通過這個IPCore測試100Mbps
    發表于 09-09 10:36

    是否可以用MIMXRT117H替換MIMXRT1176

    你好!有一個與視覺或語音處理無關的定制 PCB 和定制應用程序。PCB/應用專為 MIMXRT1176 而設計。但是這部分很難買到,而MIMXRT117H部分是可以買到
    發表于 04-18 07:03

    MIMXRT1176DVMAA更改為MIMXRT1176AVM8A時出現的問題怎么解決?

    以前是1G,改的(MIMXRT1176AVM8A)是800M。 似乎沒有太大的問題。 圖形處理會不會有什么大問題?
    發表于 04-26 06:55

    BLADE和Voltaire推出高密度10Gb以太網網絡方案

    高密度10Gb以太網網絡方案(BLADE和Voltaire) BLADE和Voltaire攜手推出了行業最高密度的10Gb 以太網數據中心交換網絡。 基于Voltaire的Vant
    發表于 04-23 09:54 ?1387次閱讀

    基于SOPC技術的嵌入式以太網網絡終端設備解決方案設計詳解

    近年來隨著網絡的快速發展,以太網因其寬帶、擴展性強、組網靈活而成為應用最廣泛的數據接入網絡以太網網絡終端設備是
    發表于 03-01 15:07 ?1353次閱讀
    基于SOPC技術的嵌入式<b class='flag-5'>以太網網絡</b>終端設備解決方案設計詳解

    TE Connectivity推出工業以太網交換機 意圖實現更快的千兆以太網網絡

    全球連接與傳感領域領軍企業TE Connectivity (TE) 的功能強大且符合EN50155標準的以太網交換機采用 M12 連接,旨在實現更快、更可靠的千兆以太網網絡。堅固耐用的設計與內置
    發表于 11-14 17:24 ?1307次閱讀

    EE-214:ADSP-BF535 Blackfin?處理器的以太網網絡接口

    EE-214:ADSP-BF535 Blackfin?處理器的以太網網絡接口
    發表于 04-16 17:09 ?0次下載
    EE-214:ADSP-BF535 Blackfin?處理器的<b class='flag-5'>以太網網絡</b>接口

    MIMXRT1176支持8位列地址的SDRAM器件W9864G6

    MIMXRT1176的開發板配套的 SDRAM是W9825G6KH,對應的列地址是9位的。
    的頭像 發表于 12-01 15:04 ?2137次閱讀

    軟件代碼配置進入MIMXRT1176 ISP模式

    介紹通過軟件代碼IAP(In-Application Programming)進入MIMXRT1176的ISP模式,IMXRT1176 參考手冊提到了IAP相關信息如下。
    的頭像 發表于 01-30 09:24 ?1362次閱讀

    如何使用1G/10G/25GSwitching以太網IP切換速率

    本文介紹1G/10G/25G Switching以太網IP的手動和自動兩種切換速率的原理和方法
    的頭像 發表于 07-10 16:29 ?1554次閱讀
    如何使用<b class='flag-5'>1G</b>/10<b class='flag-5'>G</b>/25GSwitching<b class='flag-5'>以太網</b>IP切換速率

    基于PS和PL的1G/10G以太網解決方案應用筆記

    電子發燒友網站提供《基于PS和PL的1G/10G以太網解決方案應用筆記.pdf》資料免費下載
    發表于 09-15 10:29 ?3次下載
    基于PS和PL的<b class='flag-5'>1G</b>/10<b class='flag-5'>G</b><b class='flag-5'>以太網</b>解決方案應用筆記

    基于PS和PL的1G/10G以太網解決方案

    電子發燒友網站提供《基于PS和PL的1G/10G以太網解決方案.pdf》資料免費下載
    發表于 09-15 10:05 ?2次下載
    基于PS和PL的<b class='flag-5'>1G</b>/10<b class='flag-5'>G</b><b class='flag-5'>以太網</b>解決方案

    CANopen以太網網關怎么用?

    關的使用方法,包括其功能、配置和應用。 一、CANopen以太網網關的功能 CANopen以太網網關具有以下主要功能: 1. 數據傳輸:CANopen以太網網關可以實現CANopen
    的頭像 發表于 02-02 16:59 ?3447次閱讀

    以太網速率對網絡性能的影響

    速率的歷史發展 10Mbps以太網 :最早的以太網標準,適用于小型網絡。 100Mbps快速以太網 :提高了數據傳輸速率,適用于更大的網絡
    的頭像 發表于 11-08 09:11 ?516次閱讀
    威尼斯人娱乐城| 百家乐最好投| 百家乐正反投注| 玩网上百家乐的技巧| 百家乐和的几率| 百家乐斗地主下载| 百家乐五湖四海娱乐场开户注册| 威尼斯人娱乐网代理| 大发888 zhidu| 六合彩生肖表| 博彩娱乐城| 圣淘沙百家乐官网娱乐城| 嬴澳门百家乐官网的公式| 尊龙百家乐官网娱乐| 百家乐官网刷钱| 百家乐稳赚秘籍| 豪华百家乐人桌| 大发888游戏官网| 金都国际| 百家乐官网开户送百元| 百家乐官网暗红色桌布| 七匹狼百家乐官网的玩法技巧和规则 | 做生意门口朝向| 百家乐平的概率| 全讯网体育| 台东市| 网上百家乐官网骗局| 2024属虎人全年运势| 百家乐路珠多少钱| 大发888打法888| 百家乐官网分析软件下| 海港城百家乐官网的玩法技巧和规则 | 豪杰百家乐现金网| 海尔百家乐的玩法技巧和规则| 大发888亚洲城| 澳门百家乐官网自杀| 百家乐官网永利娱乐场| 百家乐是如何出千的| 威尼斯人娱乐城介| 吉林省| 新濠百家乐官网娱乐场|