⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net-common-performance-test.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>Performance Test</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="Tests and Demonstrations"HREF="net-common-tests-and-demonstrations.html"><LINKREL="PREVIOUS"TITLE="Standalone Tests"HREF="net-common-standalone-tests.html"><LINKREL="NEXT"TITLE="Interactive Tests"HREF="net-common-interactive-tests.html"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="net-common-standalone-tests.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 36. Tests and Demonstrations</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="net-common-interactive-tests.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="NET-COMMON-PERFORMANCE-TEST">Performance Test</H1><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">tcp_echo</I></SPAN>      - data forwarding program for performance test</PRE></TD></TR></TABLE><P><BCLASS="COMMAND">tcp_echo</B> is onepart of the standard performance test we use.  The other parts arehost programs <TTCLASS="LITERAL">tcp_source</TT> and <TTCLASS="LITERAL">tcp_sink</TT>. To make these (under LINUX) cd to the tests source directory inthe eCos repository and type &#8220;<TTCLASS="LITERAL">make -f make.linux</TT>&#8221; -this should build <TTCLASS="LITERAL">tcp_source</TT> and <TTCLASS="LITERAL">tcp_sink</TT>.</P><P>The LINUX program &#8220;<TTCLASS="LITERAL">tcp_source</TT>&#8221; sendsdata to the target.  On the target, &#8220;<TTCLASS="LITERAL">tcp_echo</TT>&#8221; sendsit onwards to &#8220;<TTCLASS="LITERAL">tcp_sink</TT>&#8221; runningon LINUX.  So the target must receive and send on all the data that <TTCLASS="LITERAL">tcp_source</TT> sendsit; the time taken for this is measured and the data rate is calculated.</P><P>To invoke the test, first start <TTCLASS="LITERAL">tcp_echo</TT> onthe target board and wait for it to become quiescent - it will reportwork to calibrate a CPU load which can be used to simulate realoperating conditions for the stack.</P><P>Then on your LINUX machine, in one terminal window, invoke <TTCLASS="LITERAL">tcp_sink</TT> givingit the IP address (or hostname) of one interface of the target board. For example &#8220;<TTCLASS="LITERAL">tcp_sink 10.130.39.66</TT>&#8221;. <TTCLASS="LITERAL">tcp_echo</TT> on the targetwill print something like &#8220;<TTCLASS="LITERAL">SINK connectionfrom 10.130.39.13:1143</TT>&#8221; when <TTCLASS="LITERAL">tcp_sink</TT> iscorrectly invoked.</P><P>Next, in another LINUX terminal window, invoke <TTCLASS="LITERAL">tcp_source</TT>,giving it the IP address (or hostname) of an interface of the targetboard, and optionally a background load to apply to the target whilethe test runs.  For example, &#8220;<TTCLASS="LITERAL">tcp_source194.130.39.66</TT>&#8221; to run the test with noadditional target CPU load, or &#8220;<TTCLASS="LITERAL">tcp_source194.130.39.66 85</TT>&#8221; to load it up to 85% used. The target load must be a multiple of 5.  <TTCLASS="LITERAL">tcp_echo</TT> onthe target will print something like &#8220;<TTCLASS="LITERAL">SOURCEconnection from 194.130.39.13:1144</TT>&#8221; whentcp_source is correctly invoked.</P><P>You can connect tcp_sink to one target interfaceand tcp_source to another, or both to the same interface. Similarly, you can run <TTCLASS="LITERAL">tcp_sink</TT> and <TTCLASS="LITERAL">tcp_source</TT> onthe same LINUX machine or different ones.  TCP/IP and ARPlook after them finding one another, as intended.</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">nc_test_master</I></SPAN> - network characterization master<SPANCLASS="emphasis"><ICLASS="EMPHASIS">nc_test_slave</I></SPAN> - network characterization slave</PRE></TD></TR></TABLE><P>These tests talk to each other to measure network performance.They can each run on either a test target or a LINUX host computergiven some customization to your local environment. As provided, <TTCLASS="LITERAL">nc_test_slave</TT> mustrun on the test target, and <TTCLASS="LITERAL">nc_test_master</TT> mustbe run on a LINUX host, and be given the test target'sIP address or hostname.</P><P>The tests print network performance for various packet sizesover UDP and TCP, versus various additional CPU loads on the target.</P><P>The programs <TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">nc6_test_slave</I></SPAN><SPANCLASS="emphasis"><ICLASS="EMPHASIS">nc6_test_master</I></SPAN></PRE></TD></TR></TABLE>are additional forms which support both IPv4 and IPv6 addressing.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="net-common-standalone-tests.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="net-common-interactive-tests.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Standalone Tests</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="net-common-tests-and-demonstrations.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Interactive Tests</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -