Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking /
Chapter 6 - AppleTalk Transaction Protocol (ATP)


About ATP

The AppleTalk Transaction Protocol offers a simple, efficient means of transferring
small amounts of data across a network; it lets one network entity request information
of another entity that possesses only the ability to respond to the request. ATP ensures that data is delivered without error or packet loss.

ATP communication is based on the concept of a transaction: one party, the requester, makes a request of another party, the responder, to perform a service and return a response. This discussion uses the term requester to refer to an application that uses ATP to make a request and responder to refer to an application that uses ATP to respond to
a request.

When it receives a request, the responder application performs the necessary processing to service it and sends a response message back to the requester, completing the transaction. The response message can be data that reports the result of the trans-
action or information produced as a result of the processing. Here is how a basic transaction occurs:

Figure 6-1 shows this interaction.

Figure 6-1 An ATP transaction

The amount of data that a requester application can send is limited to 578 bytes; the amount of data that a responder application can return is limited to 4624 bytes. The ATP programming interface includes a function that lets you add one or more single packets to follow the initial response, up to a total of eight packets including the initial number of packets sent, if you do not send eight packets in the initial response.

Note
Although you can use the ATP add-response function to extend the amount of response data, if you intend for your application to transfer large amounts of data, you should choose a transport protocol other than ATP. For example, you can use ADSP, which allows you to send and receive continuous streams of data.
You can implement applications that use ATP to perform network-based transactions in the following two ways:

ATP is a direct client of DDP, and it adds reliable delivery of data to the transport delivery services that DDP provides. Figure 6-2 shows ATP and the underlying
protocol stack.

Figure 6-2 ATP and its underlying protocols


Subtopics
The ATP Packet Format
At-Least-Once and Exactly-Once Transactions
The Buffer Data Structure
ATP Flags

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996