TCPRXPerformanceTask Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPRXPerformanceTask Function
C
void TCPRXPerformanceTask();
Description

This function tests the receive performance of the TCP module. To use, open a telnet connection to the device on RX_PERFORMANCE_PORT (9763 by default). Then use your telnet utility to upload a large file to the device. Each second the board will report back how many bytes were received in the previous second. 

TCP performance is affected by many factors, including round-trip time and the TCP buffer size. For faster results, increase the size of the RX buffer size for the TCP_PURPOSE_TCP_PERFORMANCE_RX socket in TCPIPConfig.h. Round-trip time is affected by the distance to the device, so across the desk will be orders of magnitude faster than across the Internet. 

This function is particularly useful after development to determine the impact of your application code on the stack's performance. A before and after comparison will indicate if your application is unacceptably blocking the processor or taking too long to execute.

Preconditions

TCP is initialized.

Returns

None

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.