How do I interface an application layer to TCP Layer ?

Categories:
Solution Number:
S20663
Last Modified:
2013-08-20
Issue

How do I interface an application layer to TCP Layer ?

Solution

You can use one of two methods to create the application to TCP interface: 1) either directly, by using remote interrupts 2) or by using the TCP API packageUnless you are already accustomed to method #1, you will find the TCP API method much simpler. The TCP API provides a clean and simple way to interface directly to the TCP model. The OPNETWORK 2002 presentation Session 1508 -- TCP Model Internals and Interfaces contains an overview of how to use the TCP API, and the associated lab contains a simple example application model that is directly interfaced to the TCP model using the TCP API. The example is ready to use.To read this presentation, please: * Go to www.opnet.com/support * Click on OPNETWork Proceedings * After entering your password and clicking I agree, click on Sessions, then download and read the presentation for Session 1508 -- TCP Model Internals and Interfaces. You can also download the lab material.Also, you should: 1) read the entirety of the TCP Model Description paper, which includes an overview of the TCP API. (This paper is located at Product Documentation->Model Descriptions->TCP Model Description). 2) read more details about the TCP API by reading the header file tcp_api_v3.h (located in the <models>/std/include directory) as well as the function comments in the tcp_api.ex.c external file.Additional examples are the BGP and TPAL standard models, which extensively use this API to transmit and receive data through the TCP Layer. You can refer to the code in BGP process for exact usage details. Finally, an alternative is to interface to the TPAL layer, which can be useful if you wish your application run over many transports (e.g., UDP). For more information, search the FAQs at www.opnet.com/support for TPAL. Note, however, that if you intend to just use TCP, the TCP API is easier to use than TPAL or the TPAL API.

Environment

Protocols->TCP

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case