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

📄 c-tcpip6.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    TCP/IP Under VxWorks     </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-tcpip.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-tcpip.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-tcpip5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-tcpip7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="86821">4.6  &nbsp;&nbsp;Configuring the Network Stack</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="86823"> </a>Changing the default network stack configuration involves setting values for various <b class="symbol_lc">#define</b> statements. To configure the amount of memory that the network stack uses for the network memory pool,  modify the <b class="symbol_lc">clDescTbl</b> table defined in <b class="file">target/src/config/usrNetwork.c</b>. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86826">4.6.1  &nbsp;&nbsp;Network Protocol Scalability</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="93130"> </a>By default, the build creates a VxWorks image that includes the code implementing the TCP, UDP, ICMP, and IGMP protocols. If you want to exclude one of these protocols, reconfigure VxWorks.  The relevant configuration macro is found in the table below:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93138"> </a><b class="symbol_UC">INCLUDE_TCP</b> </p></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93140"> </a>Includes the TCP protocol. </p></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93142"> </a><b class="symbol_UC">INCLUDE_UDP</b> </p></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93144"> </a>Includes the UDP protocol. </p></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93146"> </a><b class="symbol_UC">INCLUDE_ICMP</b>  </p></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93148"> </a>Includes the ICMP protocol. </p></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93150"> </a><b class="symbol_UC">INCLUDE_IGMP</b> </p></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="93152"> </a>Includes the Internet Group Management Protocol (IGMP). </p></td><td width="10">&nbsp;</td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="86841">4.6.2  &nbsp;&nbsp;Setting <b class="symbol_lc">#define</b>s for the IP, TCP, UDP, and ICMP Protocols </a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="94480"> </a><b class="symbol_lc"></b>This <b class="symbol_lc"></b>section describes the configuration for the network layer protocols. <a href="c-tcpip6.html#94484">Table&nbsp;4-3</a> describes all configuration options. For some options, the default value is specified using symbolic constants. These symbolic constants are defined in <b class="file">netLib.h</b>. To override any default values assigned to these constants, reconfigure VxWorks with the appropriate values set.<p class="table"><h4 class="EntityTitle"><a name="94484"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 4-3:&nbsp;&nbsp;Network Configuration Options</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="94488"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Configuration Constant</font></b></div></th><td width="10">&nbsp;</td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="94490"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Default Value and Description</font></b></div></th><td width="10">&nbsp;</td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94493"> </a>TCP Default Flags<b class="symbol_UC"></b></div><div class="CellBody"><a name="94494"> </a>(<b class="symbol_UC">TCP_FLAGS_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94496"> </a>Default Value: <b class="symbol_UC">TCP_DO_RFC1323</b></div><div class="CellBody"><a name="94497"> </a>Includes RFC1323 support. RFC 1323 is a specification to support networks that have high bandwidth and longer round trip times. This option is enabled by default. If this option cannot be negotiated by the peer, it should drop the option. If the host does not understand this option, it terminates the connection. For such hosts, you must turn off this option.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94500"> </a>TCP Send Buffer Size</div><div class="CellBody"><a name="94501"> </a>(<b class="symbol_UC">TCP_SND_SIZE_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94503"> </a>Default Value: 8192</div><div class="CellBody"><a name="94504"> </a>Sets the default send buffer size of a TCP connection. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94507"> </a>TCP Receive Buffer Size</div><div class="CellBody"><a name="94508"> </a>(<b class="symbol_UC">TCP_RCV_SIZE_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94510"> </a>Default Value: 8192</div><div class="CellBody"><a name="94511"> </a>Sets the default receive buffer size of a TCP connection. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94514"> </a><b class="symbol_UC"></b>TCP Connection Timeout</div><div class="CellBody"><a name="94601"> </a>(<b class="symbol_UC">TCP_CON_TIMEO_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94516"> </a>Default Value: 150 (75 seconds)</div><div class="CellBody"><a name="94517"> </a>Sets the timeout on establishing a TCP connection. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94520"> </a>TCP Retransmission Threshold</div><div class="CellBody"><a name="94602"> </a>(<b class="symbol_UC">TCP_REXMT_THLD_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94522"> </a>Default Value: 3</div><div class="CellBody"><a name="94523"> </a>Sets the number of duplicate ACKs needed to trigger the fast retransmit algorithm. Typically, TCP receives a duplicate ACK only if a segment is lost. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94526"> </a><b class="symbol_UC"></b>Default TCP Maximum Segment Size<b class="symbol_UC"></b></div><div class="CellBody"><a name="94603"> </a>(<b class="symbol_UC">TCP_MSS_DFLT</b>)<b class="symbol_UC"></b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94528"> </a>Default Value: 512</div><div class="CellBody"><a name="94529"> </a>Sets the default maximum segment size to use if TCP cannot establish the maximum segment size of a connection. To establish a maximum segment size, TCP typically uses the maximum transmission unit of the network interface on which the connection is established. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94532"> </a>Default Round Trip Interval</div><div class="CellBody"><a name="94606"> </a>(<b class="symbol_UC">TCP_RND_TRIP_DFLT</b>)<b class="symbol_UC"></b></div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94534"> </a>Default Value: 3 (seconds)</div><div class="CellBody"><a name="94535"> </a>Sets the round-trip time to use if TCP cannot get an estimate within 3 seconds. The round trip time of a connection is calculated dynamically. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94538"> </a><b class="symbol_UC"></b>TCP Idle Timeout Value</div><div class="CellBody"><a name="94609"> </a>(<b class="symbol_lc">TCP_IDLE_TIMEO_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94540"> </a>Default Value: 14400 (4 hours, in seconds)</div><div class="CellBody"><a name="94541"> </a>Sets the idle time for a connection. Idle times in excess of this value trigger a keep alive probe. After the first keep alive probe, a probe is sent every 75 seconds for a number of times restricted by the TCP Probe Limit.</div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94544"> </a>TCP Probe Limit</div><div class="CellBody"><a name="94610"> </a>(<b class="symbol_UC">TCP_MAX_PROBE_DFLT</b>)</div></td><td width="10">&nbsp;</td><td colspan=1 rowspan=1><div class="CellBody"><a name="94546"> </a>Default Value: 8</div><div class="CellBody"><a name="94547"> </a>Sets the maximum number of keep alive probes sent out on an idle TCP connection. TCP drops the connection after sending out the maximum number of keep alive probes. </div></td><td width="10">&nbsp;</td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="94550"> </a><b class="symbol_UC"></b>UDP Configuration Flags</div><div class="CellBody"><a name="94611"> </a>(<b class="symbol_UC">UDP_FLAGS_DFLT</b>)</div>

⌨️ 快捷键说明

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