home *** CD-ROM | disk | FTP | other *** search
/ Internet Core Protocols / Oreilly-InternetCoreProtocols.iso / RFCs / rfc2372.txt < prev    next >
Encoding:
Text File  |  1999-10-14  |  53.8 KB  |  1,348 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                         K. Evans
  8. Request for Comments: 2372                                    J. Klein
  9. Category: Informational                               Tandem Computers
  10.                                                                J. Lyon
  11.                                                              Microsoft
  12.                                                              July 1998
  13.  
  14.  
  15.             Transaction Internet Protocol - Requirements and
  16.                         Supplemental Information
  17.  
  18. Status of this Memo
  19.  
  20.    This memo provides information for the Internet community.  It does
  21.    not specify an Internet standard of any kind.  Distribution of this
  22.    memo is unlimited.
  23.  
  24. Copyright Notice
  25.  
  26.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  27.  
  28. Abstract
  29.  
  30.    This document describes the purpose (usage scenarios), and
  31.    requirements for the Transaction Internet Protocol [1]. It is
  32.    intended to help qualify the necessary features and functions of the
  33.    protocol. It also provides supplemental information to aid
  34.    understanding and facilitate implementation of the TIP protocol.
  35.  
  36. Table of Contents
  37.  
  38.    1.  Introduction                                               2
  39.    2.  The Transaction Internet Protocol                          3
  40.    3.  Scope                                                      4
  41.    4.  Anticipated Usage of TIP                                   4
  42.    5.  TIP Compliant Systems                                      4
  43.    6.  Relationship to the X/Open DTP Model                       5
  44.    7.  Example TIP Usage Scenario                                 5
  45.    8.  TIP Transaction Recovery                                   9
  46.    9.  TIP Transaction and Application Message Serialisation     10
  47.    10. TIP Protocol and Local Actions                            10
  48.    11. Security Considerations                                   11
  49.    12. TIP Requirements                                          11
  50.        References                                                14
  51.        Authors' Addresses                                        15
  52.        Comments                                                  15
  53.    A.  An Example TIP Transaction Manager API                    16
  54.        Full Copyright Statement                                  24
  55.  
  56.  
  57.  
  58. Evans, et. al.               Informational                      [Page 1]
  59.  
  60. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  61.  
  62.  
  63. 1. Introduction
  64.  
  65.    Transactions are a very useful programming paradigm, greatly
  66.    simplifying the writing of distributed applications. When
  67.    transactions are employed, no matter how many distributed application
  68.    components participate in a particular unit-of-work, the number of
  69.    possible outcomes is reduced to only two; that is, either all of the
  70.    work completed successfully, or none of it did (this characteristic
  71.    is known as atomicity). Applications programming is therefore much
  72.    less complex since the programmer does not have to deal with a
  73.    multitude of possible failure scenarios. Typically, transaction
  74.    semantics are provided by some underlying system infrastructure
  75.    (usually in the form of products such as Transaction Processing
  76.    Monitors, and/or Databases). This infrastructure deals with failures,
  77.    and performs the necessary recovery actions to guarantee the property
  78.    of atomicity. The use of transactions enables the development of
  79.    reliable distributed applications which would otherwise be difficult,
  80.    if not impossible.
  81.  
  82.    A key technology required to support distributed transactions is the
  83.    two-phase commit protocol (2-pc). 2-pc protocols have been used in
  84.    commercial Transaction Processing (TP) systems for many years, and
  85.    are well understood (e.g. the LU6.2 2-pc (syncpoint) protocol was
  86.    first implemented more than 12 years ago). Today a number of
  87.    different 2-pc protocols are supported by a variety of TP monitor and
  88.    database products. 2-pc is used between the components participating
  89.    in a distributed unit-of-work (transaction) to ensure agreement by
  90.    all parties regarding the outcome of that work (regardless of any
  91.    failure).
  92.  
  93.    Today both standard and proprietary 2-pc protocols exist. These
  94.    protocols typically employ a "one-pipe" model. That is, the
  95.    transaction and application protocols are tightly-integrated,
  96.    executing over the same communications channel. An application may
  97.    use only the particular communications mechanism associated with the
  98.    transaction protocol. The standard protocols (OSI TP, LU6.2) are
  99.    complex, with a large footprint and extensive configuration and
  100.    administration requirements. For these reasons they are not very
  101.    widely deployed. The net of all this is restricted application
  102.    flexibility and interoperability if transactions are to be used.
  103.    Applications may wish to use a number of communications protocols for
  104.    which there are no transactional variants (e.g. HTTP), and be
  105.    deployed in very heterogeneous application environments.
  106.  
  107.    In summary, transactions greatly simplify the programming of
  108.    distributed applications, and the 2-pc protocol is a key
  109.    transactional technology. Current 2-pc protocols only offer
  110.    transaction semantics to a limited set of applications, operating
  111.  
  112.  
  113.  
  114. Evans, et. al.               Informational                      [Page 2]
  115.  
  116. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  117.  
  118.  
  119.    within a special-purpose (complex, homogeneous) infrastructure, using
  120.    a particular set of intercommunication protocols. The restrictions
  121.    thus imposed by current 2-pc protocols limits the widespread use of
  122.    the transaction paradigm, thereby inhibiting the development of new
  123.    distributed business applications.
  124.  
  125.    (See [2] for more information re transactions, atomicity, and two-
  126.    phase commit protocols in general.)
  127.  
  128. 2. The Transaction Internet Protocol (TIP)
  129.  
  130.    TIP is a 2-pc protocol which is intended to provide ubiquitous
  131.    distributed transaction support, in a heterogeneous (networked)
  132.    environment. TIP removes the restrictions of current 2-pc protocols
  133.    and enables the development of new distributed business applications.
  134.  
  135.    This goal is achieved primarily by satisfying two key requirements:
  136.  
  137.    1) Keep the protocol simple (yet functionally sufficient). If the
  138.       protocol is complex it will not be widely deployed or quickly
  139.       adopted. Simplicity also means suitability to a wide range of
  140.       application environments.
  141.  
  142.    2) Enable the protocol to be used with any applications
  143.       communications protocol (e.g. HTTP). This ensures heterogeneous
  144.       environments can participate in distributed work.
  145.  
  146.    TIP does not reinvent the 2-pc protocol itself, the well-known
  147.    presumed-abort 2-pc protocol is used as a basis. Rather the novelty
  148.    and utility of TIP is in its separation from the application
  149.    communications protocol (the two-pipe model).
  150.  
  151.       +-------------+ Application Communication +-------------+
  152.       | Application |---------------------------| Application |
  153.       |   Program   |         "Pipe 1"          |   Program   |
  154.       +-------------+                           +-------------+
  155.              |                                         |
  156.              | TIP TM API                   TIP TM API |
  157.              |                                         |
  158.     +-----------------+   TIP 2-pc Protocol   +-----------------+
  159.     | TIP Transaction |-----------------------| TIP Transaction |
  160.     |     Manager     |       "Pipe 2"        |     Manager     |
  161.     +-----------------+                       +-----------------+
  162.  
  163.                  Fig 1: The two-pipe nature of TIP
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Evans, et. al.               Informational                      [Page 3]
  171.  
  172. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  173.  
  174.  
  175. 3. Scope
  176.  
  177.    TIP does not describe how business transactions or electronic
  178.    commerce are to be conducted on the internet, it specifies only the
  179.    2-pc transaction protocol (which is an aid in the development of such
  180.    applications). e.g. TIP does not provide a mechanism for non-
  181.    repudiation. Such protocols might be a subject for subsequent IETF
  182.    activity, once the requirements for general electronic commerce are
  183.    better understood. TIP does not preclude the later definition of
  184.    these protocols.
  185.  
  186.    TIP does not specify Application Programming Interfaces (note that an
  187.    example TIP TM API is included in this document (Appendix A), as an
  188.    aid to understanding).
  189.  
  190. 4. Anticipated Usage of TIP
  191.  
  192.    As described above, transactions are a very useful tool in
  193.    simplifying the programming of distributed applications. TIP is
  194.    therefore targeted at any application that involves distributed work.
  195.    Such applications may comprise components executing within a single
  196.    system, across a corporate intranet, across the internet, or any
  197.    other distributed system configuration. The application may be of
  198.    "enterprise" class (requiring high-levels of performance and
  199.    availability), or be less demanding. TIP is intended to be generally
  200.    applicable, meeting the requirements of any application type which
  201.    would benefit from the provision of transaction semantics.
  202.  
  203. 5. TIP Compliant Systems
  204.  
  205.    There are two classes of TIP compliant Transaction Manager system:
  206.  
  207.    1) Client-only systems. Those which provide an application
  208.       interface to demarcate TIP transactions, but which do not offer
  209.       access to local recoverable resources. Such a lightweight
  210.       implementation is useful for systems which host client
  211.       applications only (e.g. desktop machines). Such client systems may
  212.       be unreliable, and are not appropriate as transaction coordinators
  213.       (their unavailability might cause resources on other transaction
  214.       participant systems to remain locked and unavailable). These so-
  215.       called "volatile client" systems therefore delegate the
  216.       responsibility to coordinate the transaction (and recover from
  217.       failures), to other "full" (server) TIP system implementations.
  218.       For these lightweight systems, only the TIP IDENTIFY, BEGIN,
  219.       COMMIT, and ABORT commands are needed; no transaction log is
  220.       required.
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Evans, et. al.               Informational                      [Page 4]
  227.  
  228. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  229.  
  230.  
  231.    2) Server systems. Those which offer the above support, plus TIP
  232.       transaction coordination and recovery services. These systems may
  233.       also provide access to recoverable resources (e.g. relational
  234.       databases). Server systems support all TIP commands, and provide a
  235.       recoverable transaction log.
  236.  
  237.    A TIP compliant Transaction Manager (TM), will also supply
  238.    application programming interfaces to demarcate transactions (e.g.
  239.    the X/Open TX interface [3]), plus commands to generate TIP URLs, to
  240.    PUSH/PULL TIP transactions, and to set the current TIP transaction
  241.    context. TIP support can be added to TMs with existing APIs and 2-pc
  242.    protocols, and transactions may comprise both proprietary and TIP
  243.    transaction branches (it is assumed existing TM implementations will
  244.    provide "TIP gateway" facilities which will coordinate between TIP
  245.    and other transaction protocols).
  246.  
  247. 6. Relationship to the X/Open DTP Model
  248.  
  249.    The X/Open Distributed Transaction Processing (DTP) Model [4] defines
  250.    four components: 1) Application Program (AP), 2) Transaction Manager
  251.    (TM), 3) Resource Manager (RM), and 4) Communications Resource
  252.    Manager (CRM). In this model, TIP defines a TM to TM interoperability
  253.    protocol, which is independent of application communications (there
  254.    is no such equivalent protocol specified by X/Open, where all
  255.    transaction and application communication occurs between CRMs (the
  256.    one-pipe model)).  Programmatic interfaces between the AP and TM/RM
  257.    are unaffected by, and may be used with TIP. The TM to RM interaction
  258.    is defined via the X/Open XA interface specification [5].  TIP is
  259.    compatible with XA, and a TIP transaction may comprise applications
  260.    accessing multiple RMs where the XA interface is being used to
  261.    coordinate the RM transaction branches.
  262.  
  263. 7. Example TIP Usage Scenario
  264.  
  265.    It is expected that a typical internet usage of TIP will involve
  266.    applications using the agency model. In this model, the client node
  267.    itself is not directly involved in the TIP protocol at all, and does
  268.    not need the services of a local TIP TM. Instead, an agency (server)
  269.    application handles the dialogue with the client, and is responsible
  270.    for the coordination of the TIP transaction. The agency works with
  271.    other service providers to deliver the service to the client. e.g. as
  272.    a Travel Agency acts as an intermediate between airlines/hotels/etc
  273.    and the customer. A big benefit of this model is that the agency is
  274.    trusted by the service providers, and there are fewer such agencies
  275.    (compared to user clients), so issues of security and performance are
  276.    reduced.
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Evans, et. al.               Informational                      [Page 5]
  283.  
  284. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  285.  
  286.  
  287.    Consider a Travel Agency example. A client running a web browser on a
  288.    network PC accesses the Travel Agency web page. Via pages served up
  289.    by the agency (which may in turn be constructed from pages provided
  290.    by the airline and hotel servers), the client creates an itinerary
  291.    involving flights and hotel choices. Finally, the client clicks the
  292.    "make reservation" button. At this point the following sequence of
  293.    events occurs (user-written application code is invoked by the
  294.    various web servers, via any of the standard or proprietary
  295.    techniques available (e.g. CGI)):
  296.  
  297.    1) The travel agency begins a local transaction, and gets a TIP URL
  298.       for this transaction (both of these functions are performed using
  299.       the API of the local TM. e.g. "tip_xid_to_url()" would return the
  300.       TIP URL for the local transaction). The TIP URL contains the
  301.       listening endpoint IP address of the local TM and the transaction
  302.       identifier of the local transaction.
  303.  
  304.    2) The travel agency application sends a request to the airline
  305.       server (via some protocol (e.g. HTTP)), requesting the
  306.       "book_flight" service, passing the flights selected by the client,
  307.       and the TIP URL (obtained in 1. above).
  308.  
  309.    3) The request is received by the airline server which invokes the
  310.       book_flight application. This application retrieves the TIP URL
  311.       from the input data, and passes this on a "tip_pull()" API request
  312.       to its local TM. The tip_pull() function causes the following to
  313.       occur:
  314.  
  315.       a. the local TM creates a local transaction (under which the
  316.          work will be performed),
  317.  
  318.       b. if a TIP connection does not already exist to the superior
  319.          (travel agency) TM (as identified via the IP address passed in
  320.          the TIP URL), one is created and an IDENTIFY exchange occurs
  321.          (if multiplexing is to be used on the connection, this is
  322.          followed by a MULTIPLEX exchange),
  323.  
  324.       c. a PULL command is sent to the superior TM,
  325.  
  326.       d. in response to the PULL, the superior TM associates the
  327.          subordinate (airline) TM with the transaction (by associating
  328.          the connection with the transaction), and sends a PULLED
  329.          response to the subordinate TM,
  330.  
  331.       e. the subordinate TM returns control to the book_flight
  332.          application, which is now executing in the context of the newly
  333.          created local transaction.
  334.  
  335.  
  336.  
  337.  
  338. Evans, et. al.               Informational                      [Page 6]
  339.  
  340. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  341.  
  342.  
  343.    4) The book_flight application does its work (which may involve
  344.       access to a recoverable resource manager (e.g. an RDBMS), in which
  345.       case the local TM will associate the RM with the local transaction
  346.       (via the XA interface or whatever)).
  347.  
  348.    5) The book_flight application returns to the travel agency
  349.       application indicating success.
  350.  
  351.    6) Steps 2-5 are then repeated with the hotel server "book_room"
  352.       application. At the conclusion of this, the superior TM has
  353.       registered two subordinate TMs as participants in the transaction,
  354.       there are TIP connections between the agency TM and the airline
  355.       and hotel TMs, and there are inflight transactions at the airline
  356.       and hotel servers. [Note that steps 2-5 and 6 could be performed
  357.       in parallel.]
  358.  
  359.    7) The travel agency application issues a "commit transaction"
  360.       request (using the API of the local TM). The local TM sends a
  361.       PREPARE command on the TIP connections to the airline and hotel
  362.       TMs (as these are registered as subordinate transaction
  363.       participants).
  364.  
  365.    8) The TMs at the airline and hotel servers perform the
  366.       necessary steps to prepare their local recoverable resources (e.g.
  367.       by issuing xa_prepare() requests). If successful, the subordinate
  368.       TMs change their TIP transaction state to Prepared, and log
  369.       recovery information (e.g. local and superior transaction branch
  370.       identifiers, and the IP address of the superior TM). The
  371.       subordinate TMs then send PREPARED commands to the superior TM.
  372.  
  373.    9) If both subordinates respond PREPARED, the superior TM logs that
  374.       the transaction is Committed, with recovery information (e.g.
  375.       local and subordinate transaction identifiers, and subordinate TM
  376.       IP addresses). The superior TM then sends COMMIT commands on the
  377.       two subordinate TIP connections.
  378.  
  379.    10) The TMs at the airline and hotel servers perform the
  380.        necessary steps to commit their local recoverable resources (e.g.
  381.        by issuing xa_commit() requests). The subordinate TMs forget the
  382.        transaction. The subordinate TMs then send COMITTED commands to
  383.        the superior TM.
  384.  
  385.    11) The superior TM forgets the transaction. The TIP connections
  386.        between the superior and subordinate TMs return to Idle state
  387.        (not associated with any transaction). The superior TM returns
  388.        success to the travel agency application "commit transaction"
  389.        request.
  390.  
  391.  
  392.  
  393.  
  394. Evans, et. al.               Informational                      [Page 7]
  395.  
  396. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  397.  
  398.  
  399.    12) The travel agency application returns "reservation made" to the
  400.        client.
  401.  
  402.    This example illustrates the use of PULL. If PUSH were to be used
  403.    instead, events 2) and 3) above would change as follows:
  404.  
  405.    2) The travel agency application:
  406.  
  407.       a.  passes the TIP URL obtained in 1. above, together with the
  408.           listening endpoint address of the TM at the airline server, to
  409.           its local TM via a "tip_push()" API request. The tip_push()
  410.           function causes the following to occur:
  411.  
  412.           i. if a TIP connection does not already exist to the
  413.              subordinate (airline server) TM (as identified via the IP
  414.              address passed on the tip_push), one is created and an
  415.              IDENTIFY exchange occurs (if multiplexing is to be used on
  416.              the connection, this is followed by a MULTIPLEX exchange),
  417.  
  418.           ii. a PUSH command is sent to the subordinate TM,
  419.  
  420.           iii. in response to the PUSH, the subordinate TM creates a
  421.                local transaction, associates this transaction with the
  422.                connection, and sends a PUSHED response to the superior
  423.                TM,
  424.  
  425.           iv. in response to the PUSHED response, the superior TM
  426.               associates the subordinate TM with the transaction,
  427.  
  428.           v. the superior TM returns control to the travel agency
  429.              application.
  430.  
  431.       b.  the travel agency application sends a request to the airline
  432.          server (via some protocol (e.g. HTTP)), requesting the
  433.          "book_flight" service, passing the flights selected by the
  434.          client, and the TIP URL (obtained in 1 above).
  435.  
  436.    3) The request is received by the airline server which invokes the
  437.       book_flight application. This application retrieves the TIP URL
  438.       from the input data, and passes this on a "tip_pull()" API request
  439.       to its local TM. Since the local TM has already "seen" this URL
  440.       (it was already pushed), it simply returns to the book_flight
  441.       application, which is now executing in the context of the
  442.       previously created local transaction.
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Evans, et. al.               Informational                      [Page 8]
  451.  
  452. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  453.  
  454.  
  455.    [Note that although in this example the transaction coordinator role
  456.    is performed by a node which is also a participant in the transaction
  457.    (the Travel Agency), other configurations are possible (e.g. where
  458.    the transaction coordinator role is performed by a non-participant
  459.    3rd-party node).]
  460.  
  461. 8. TIP Transaction Recovery
  462.  
  463.    Until the transaction reaches the Prepared state, any failure results
  464.    in the transaction being aborted. If an error occurs once the
  465.    transaction has reached the Prepared state, then transaction recovery
  466.    must be performed. Recovery behaviour is different for superior and
  467.    subordinate; the details depend upon the outcome of the transaction
  468.    (committed or aborted), and the precise point at which failure
  469.    occurs.
  470.  
  471.    In the travel agency application for example, if the connection to
  472.    the hotel server fails before the COMMIT command has been received by
  473.    the hotel TM, then (once the connection is restored):
  474.  
  475.    1)  The superior (travel agency) TM sends a RECONNECT command
  476.       (passing the subordinate transaction identifier (recovered from
  477.       the transaction log if necessary)).
  478.  
  479.    2) The subordinate (hotel) TM responds RECONNECTED (since it never
  480.       received the COMMIT command, and still has the transaction in
  481.       Prepared state (if the failure had occurred after the subordinate
  482.       had responded COMMITTED, then the subordinate would have forgotten
  483.       the transaction, and responded NOTRECONNECTED to the RECONNECT
  484.       command)).
  485.  
  486.    3) The superior TM sends a COMMIT command. The subordinate TM
  487.       commits the transaction and responds COMMITTED. The transaction is
  488.       now resolved.
  489.  
  490.    4) If the subordinate TM restores the connection to the superior TM
  491.       before receiving a RECONNECT command, then it may send a QUERY
  492.       command. In this case, the superior TM will respond QUERIEDEXISTS,
  493.       and the subordinate TM should wait for the superior to send a
  494.       RECONNECT command. If the transaction had been aborted, then the
  495.       superior may respond QUERIEDNOTFOUND, in which case the
  496.       subordinate should abort the transaction (note that the superior
  497.       is not obliged to send a RECONNECT command for an aborted
  498.       transaction (i.e. it could just forget the transaction after
  499.       sending ABORT and before receiving an ABORTED response)).
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506. Evans, et. al.               Informational                      [Page 9]
  507.  
  508. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  509.  
  510.  
  511.    There are failure circumstances in which the client application (the
  512.    one calling "commit") may not receive a response indicating the final
  513.    outcome of the transaction (even though the transaction itself is
  514.    successfully completed). This is a common problem, and one not unique
  515.    to TIP. In such circumstances, it is up to the application to
  516.    ascertain the final outcome of the transaction (a TIP TM may
  517.    facilitate this by providing some implementation specific mechanism.
  518.    e.g. writing the outcome to a user-log).
  519.  
  520. 9. TIP Transaction and Application Message Serialisation
  521.  
  522.    A relationship exists between TIP commands and application messages:
  523.    a TIP transaction must not be committed until it is certain that all
  524.    participants have properly registered, and have finished work on the
  525.    transaction. Because of the two-pipe nature of TIP, this behaviour
  526.    cannot necessarily be enforced by the TIP system itself (although it
  527.    may be possible in some implementations). It is therefore incumbent
  528.    upon the application to behave properly.  Generally, an application
  529.    must not:
  530.  
  531.    1)  call it's local TMs "commit" function when it has any requests
  532.        associated with the transaction still outstanding.
  533.  
  534.    2)  positively respond to a transactional request from a partner
  535.        application prior to having registered it's local TM with the
  536.        transaction.
  537.  
  538. 10. TIP Protocol and Local Actions
  539.  
  540.    In order to ensure that transaction atomicity is properly guaranteed,
  541.    a system implementing TIP must perform other local actions at certain
  542.    points in the protocol exchange. These actions pertain to the
  543.    creation and deletion of transaction "log-records" (the necessary
  544.    information which survives failures and ensures that transaction
  545.    recovery is correctly executed). The following information regarding
  546.    the relationship between the TIP protocol and logging events is
  547.    advisory, and is not intended to be definitive (see [2] for more
  548.    discussion on this subject):
  549.  
  550.    1) before sending a PREPARED response, the system should create
  551.       a prepared-recovery-record for the transaction.
  552.  
  553.    2) having created a prepared-recovery-record, this record should not
  554.       be deleted until after:
  555.       a.  an ABORT message is received; or
  556.       b.  a COMMIT message is received; or
  557.       c.  a QUERIEDNOTFOUND response is received.
  558.  
  559.  
  560.  
  561.  
  562. Evans, et. al.               Informational                     [Page 10]
  563.  
  564. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  565.  
  566.  
  567.    3) the system should not send a COMMITTED or NOTRECONNECTED message
  568.       if a prepared-recovery-record exists.
  569.  
  570.    4) before creating a commit-recovery-record for the transaction, the
  571.       system should have received a PREPARED response.
  572.  
  573.    5) before sending a COMMIT message in Prepared state, the system
  574.       should have created a commit-recovery-record for the transaction.
  575.  
  576.    6) having created a commit-recovery-record, this record should not be
  577.       deleted until after:
  578.       a.  a COMMITTED message is received; or
  579.       b.  a NOTRECONNECTED message is received.
  580.  
  581. 11. Security Considerations
  582.  
  583.    The means by which applications communicate and perform distributed
  584.    work are outside the scope of the TIP protocol. The mechanisms used
  585.    for authentication and authorisation of clients to access programs
  586.    and information on a particular system are part of the application
  587.    communications protocol and the application execution infrastructure.
  588.    Use of the TIP protocol does not affect these considerations.
  589.  
  590.    Security relates to the TIP protocol itself inasmuch that systems
  591.    require to protect themselves from the receipt of unauthorised TIP
  592.    commands, or the impersonation of a trusted partner TIP TM.  Probably
  593.    the worst consequence of this is the possibility of undetected data
  594.    inconsistency resulting from violations of the TIP commitment
  595.    protocol (e.g. a COMMIT command is injected on a TIP connection in
  596.    place of an ABORT command). TIP uses the Transport Layer Security
  597.    protocol [6] to restrict access to only trusted partners (i.e. to
  598.    control from which remote endpoints TIP transactions will be
  599.    accepted, and to verify that an end-point is genuine), and to encrypt
  600.    TIP commands. Usage of TLS (or not) is negotiated between partner TIP
  601.    TMs. See [1] for details of how TLS is used with TIP.
  602.  
  603.    TIP TM implementations will also likely provide local means to time-
  604.    out and abort transactions which have not completed within some time
  605.    period (thereby preventing unavailability of resources due to
  606.    malicious intent). Transaction time-out also serves as a means of
  607.    deadlock resolution.
  608.  
  609. 12. TIP Requirements
  610.  
  611.    Most of these requirements stem from the primary objective of making
  612.    transactions a ubiquitous system service, available to all
  613.    application classes (much as TCP may be assumed to be available
  614.    everywhere). In general this requires imposing as few restrictions
  615.  
  616.  
  617.  
  618. Evans, et. al.               Informational                     [Page 11]
  619.  
  620. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  621.  
  622.  
  623.    regarding the use of TIP as possible (applications should not be
  624.    required to execute in some "special" environment in order to use
  625.    transactions), and keeping the protocol simple and efficient. This
  626.    enables the widespread implementation of TIP (it's cheap to do), on a
  627.    wide range of systems (it's cheap to run).
  628.  
  629.    1) Application Communications Protocol Independence
  630.  
  631.       The TIP protocol must be defined independently of the
  632.       communications protocol used for transferring application data, to
  633.       allow TIP usage in conjunction with any application protocol.  It
  634.       must be possible for applications using arbitrary communications
  635.       protocols to begin, end, and propagate TIP transactions.
  636.  
  637.       This implies that the TIP protocol employ a 2-pipe model of
  638.       operation. This model requires the separation of application
  639.       communications and transaction coordination, into two discrete
  640.       communication channels (pipes). This separation enables the use of
  641.       the transaction coordination protocol (TIP), with any application
  642.       communications protocol (e.g. HTTP, ODBC, plain TCP/UDP, etc).
  643.  
  644.    2) Support for Transaction Semantics
  645.  
  646.       The TIP protocol must provide the functionality of the de-facto
  647.       standard presumed-abort 2-pc protocol, to guarantee transactional
  648.       atomicity even in the event of failure. It should provide a means
  649.       to construct the transaction tree, as well as provide commitment
  650.       and recovery functions.
  651.  
  652.    3) Application Transaction Propagation and Interoperability
  653.  
  654.       In order to facilitate protocol independence, application
  655.       interoperability, and provide a means for TIP transaction context
  656.       propagation, a standard representation of the TIP transaction
  657.       context information is required (in the form of a URL). This
  658.       information must include the listening endpoint address of the
  659.       partner TIP TM, and transaction identifier information.
  660.  
  661.    4) Ease of Implementation
  662.  
  663.       The TIP protocol must be simple to implement. It should support
  664.       only those features necessary to provide a useful, performant 2-pc
  665.       protocol service. The protocol should not add complexity in the
  666.       form of extraneous optimisations.
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674. Evans, et. al.               Informational                     [Page 12]
  675.  
  676. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  677.  
  678.  
  679.    5) Suitability for All Application Classes
  680.  
  681.       The TIP protocol should be complete and robust enough not only for
  682.       electronic commerce on the web, but also for intranet applications
  683.       and for traditional TP applications spanning heterogenous
  684.       transaction manager environments. The protocol should be
  685.       performant and scaleable enough to meet the needs of low to very
  686.       high throughput applications.
  687.  
  688.       a. the TIP protocol should support the concept of client-only
  689.          transaction participants (useful for ultra-lightweight
  690.          implementations on low-end platforms).
  691.  
  692.       b. since some clients may be unreliable, TIP must provide support
  693.          for delegation of transaction coordination (to a more reliable
  694.          (trusted) node).
  695.  
  696.       c. the TIP protocol must scale between 1 and n (> 1) concurrent
  697.          transactions per TCP connection.
  698.  
  699.       d. TIP commands should be able to be concatenated (pipelined).
  700.  
  701.       e. TIP should be compatible with the X/Open XA interface.
  702.  
  703.    6) Security
  704.  
  705.       The TIP protocol must be compatible with existing security
  706.       mechanisms, potentially including encryption, firewalls, and
  707.       authorization mechanisms (e.g. TLS may be used to authenticate the
  708.       sender of a TIP command, and for encryption of TIP commands).
  709.       Nothing in the protocol definition should prevent TIP working
  710.       within any security environment.
  711.  
  712.    7) TIP Protocol Transport Independence
  713.  
  714.       It would be beneficial to some applications to allow the TIP
  715.       protocol to flow over different transport protocols. The benefit
  716.       is when using different transport protocols for the application
  717.       data, the same transport can be used for the TIP 2PC protocol. TIP
  718.       must therefore not preclude use with other transport protocols.
  719.  
  720.    8) Recovery
  721.  
  722.       Recovery semantics need to be defined sufficiently to avoid
  723.       ambiguous results in the event of any type of communications
  724.       transport failure.
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Evans, et. al.               Informational                     [Page 13]
  731.  
  732. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  733.  
  734.  
  735.    9) Extensibility
  736.  
  737.       The TIP protocol should be able to be extended, whilst maintaining
  738.       compatibility with previous versions.
  739.  
  740. References
  741.  
  742.    [1]  Lyon, J., Evans, K., and J. Klein, "The Transaction Internet
  743.         Protocol Version 3.0", RFC 2371, July 1998.
  744.  
  745.    [2]  Transaction Processing: Concepts and Techniques.  Morgan
  746.         Kaufmann Publishers. (ISBN 1-55860-190-2).  J. Gray, A. Reuter.
  747.  
  748.    [3]  X/Open CAE Specification, April 1995, Distributed Transaction
  749.         Processing: The TX Specification. (ISBN 1-85912-094-6).
  750.  
  751.    [4]  X/Open Guide, November 1993, Distributed Transaction Processing:
  752.         Reference Model Version 2. (ISBN 1-85912-019-9).
  753.  
  754.    [5]  X/Open CAE Specification, December 1991, Distributed Transaction
  755.         Processing: The XA Specification.  (ISBN 1-872630-24-3).
  756.  
  757.    [6]  Dierks, T., et. al., "The TLS Protocol Version 1.0", Work in
  758.         Progress.
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Evans, et. al.               Informational                     [Page 14]
  787.  
  788. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  789.  
  790.  
  791. Authors' Addresses
  792.  
  793.    Keith Evans
  794.    Tandem Computers Inc, LOC 252-30
  795.    5425 Stevens Creek Blvd
  796.    Santa Clara, CA 95051-7200, USA
  797.  
  798.    Phone: +1 (408) 285 5314
  799.    Fax:   +1 (408) 285 5245
  800.    EMail: Keith.Evans@Tandem.Com
  801.  
  802.  
  803.    Johannes Klein
  804.    Tandem Computers Inc.
  805.    10555 Ridgeview Court
  806.    Cupertino, CA 95014-0789, USA
  807.  
  808.    Phone: +1 (408) 285 0453
  809.    Fax:   +1 (408) 285 9818
  810.    EMail: Johannes.Klein@Tandem.Com
  811.  
  812.  
  813.    Jim Lyon
  814.    Microsoft Corporation
  815.    One Microsoft Way
  816.    Redmond, WA  98052-6399, USA
  817.  
  818.    Phone: +1 (206) 936 0867
  819.    Fax:   +1 (206) 936 7329
  820.    EMail: JimLyon@Microsoft.Com
  821.  
  822. Comments
  823.  
  824.    Please send comments on this document to the authors at
  825.    <JimLyon@Microsoft.Com>, <Keith.Evans@Tandem.Com>,
  826.    <Johannes.Klein@Tandem.Com>, or to the TIP mailing list at
  827.    <Tip@Tandem.Com>. You can subscribe to the TIP mailing list by
  828.    sending  mail to <Listserv@Lists.Tandem.Com> with the line
  829.    "subscribe tip <full name>" somewhere in the body of the message.
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Evans, et. al.               Informational                     [Page 15]
  843.  
  844. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  845.  
  846.  
  847. Appendix A. An Example TIP Transaction Manager Application Programming
  848.             Interface.
  849.  
  850.    Note that this API is included solely for informational purposes, and
  851.    is not part of the formal TIP specification (TIP conformant
  852.    implementations are free to define alternative APIs).
  853.  
  854.    1) tip_open() - establish a connection to a TIP TM.
  855.       Synopsis
  856.          int tip_open ([out] tip_handle_t *ptiptm)
  857.       Parameters
  858.          ptiptm [out]
  859.                  Pointer to the TIP TM handle.
  860.       Description
  861.          tip_open() establishes a connection to a TIP TM. The call
  862.          returns a handle which identifies the TIP TM. This function
  863.          must be called before any work can be performed on a TIP
  864.          transaction.
  865.  
  866.       Return Values
  867.          [TIPOK]
  868.                Connection has been successfully established.
  869.          [TIPNOTCONNECTED]
  870.                User has been disconnected from the TIP TM.
  871.          [TIPNOTCONFIGURED]
  872.                TIP TM has not been configured.
  873.          [TIPTRANSIENT]
  874.                Too many openers; re-try the open.
  875.          [TIPERROR]
  876.                An unexpected error occurred.
  877.  
  878.    2) tip_close() - close a connection to a TIP TM.
  879.       Synopsis
  880.          int tip_close([in] tip_handle_t handle)
  881.       Parameters
  882.          handle [in]
  883.                  The TIP TM handle.
  884.       Description
  885.          tip_close() closes a connection to a TIP TM. All outstanding
  886.          requests associated with that connection will be cancelled.
  887.       Return Values
  888.          [TIPOK]
  889.                Connection has been successfully closed.
  890.          [TIPINVALIDPARM]
  891.                Invalid connection handle specified.
  892.          [TIPERROR]
  893.                An unexpected error occurred.
  894.  
  895.  
  896.  
  897.  
  898. Evans, et. al.               Informational                     [Page 16]
  899.  
  900. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  901.  
  902.  
  903.    3) tip_push() - export a local transaction to a remote node and
  904.                    return a TIP transaction identifier for the
  905.                    associated remote transaction.
  906.       Synopsis
  907.          int tip_push ([in] tip_handle_t TM,
  908.                        [in] char *tm_url,
  909.                        [in] void *plocal_xid,
  910.                        [out] char *pxid_url,
  911.                        [in] unsigned int url_length)
  912.       Parameters
  913.          TM [in]
  914.                  The TIP TM handle.
  915.          tm_url [in]
  916.                  Pointer to the TIP URL of the remote transaction manager.
  917.                  A TIP URL for a transaction manager takes the form:
  918.                  TIP://<host>[:<port>]
  919.          plocal_xid [in]
  920.                  Pointer to the local transaction identifier. The
  921.                  structure of the transaction identifier is defined by the
  922.                  local transaction manager.
  923.          pxid_url [out]
  924.                  Pointer to the TIP URL of the associated remote
  925.                  transaction. A TIP URL for a transaction takes the form:
  926.                  TIP://<host>[:<port>]/<transaction identifier>
  927.          url_length [in]
  928.                  The size in bytes of the buffer for the remote
  929.                  transaction URL.
  930.       Description
  931.          tip_push() exports (pushes) a local transaction to a remote
  932.          node. If a local transaction identifier is not supplied, the
  933.          caller's current transaction context is used. The call returns
  934.          a TIP URL for the associated remote transaction. The TIP
  935.          transaction identifier may be passed on application requests to
  936.          the remote node (as part of a TIP URL). The receiving process
  937.          uses this information in order to do work on behalf of the
  938.          transaction.
  939.       Return Values
  940.          [TIPOK]
  941.                Transaction has been successfully pushed to the remote
  942.                node.
  943.          [TIPINVALIDXID]
  944.                An invalid transaction identifier has been provided.
  945.          [TIPNOCURRENTTX]
  946.                Process is currently not associated with a transaction
  947.                (and none was supplied).
  948.          [TIPINVALIDHANDLE]
  949.                Invalid connection handle specified.
  950.          [TIPNOTPUSHED]
  951.  
  952.  
  953.  
  954. Evans, et. al.               Informational                     [Page 17]
  955.  
  956. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  957.  
  958.  
  959.                Transaction could not be pushed to the remote node.
  960.          [TIPNOTCONNECTED]
  961.                Caller has been disconnected from the TIP TM.
  962.          [TIPINVALIDURL]
  963.                Invalid endpoint URL is provided.
  964.          [TIPTRANSIENT]
  965.                Transient error occurred; re-try the operation.
  966.          [TIPTRUNCATED]
  967.                Insufficient buffer size is specified for the TIP
  968.                transaction identifier.
  969.          [TIPERROR]
  970.                An unexpected error occurred.
  971.  
  972.    4) tip_pull() - create a local transaction and join it with the TIP
  973.                    transaction.
  974.       Synopsis
  975.          int tip_pull([in] tip_handle_t TM,
  976.                       [in] char *pxid_url,
  977.                       [out] void *plocal_xid,
  978.                       [in] unsigned int xid_length)
  979.       Parameters
  980.          TM [in]
  981.                The TIP TM handle.
  982.          pxid_url [in]
  983.                Pointer to the TIP URL of the associated remote
  984.                transaction. A TIP URL for a transaction takes the form:
  985.                TIP://<host>[:<port>]/<transaction identifier>
  986.          plocal_xid [out]
  987.                Pointer to the local transaction identifier. The
  988.                structure of the transaction identifier is defined by the
  989.                local transaction manager.
  990.          xid_length [in]
  991.                The size in bytes of the buffer for the local transaction
  992.                identifier.
  993.       Description
  994.          tip_pull() creates a local transaction and joins the local
  995.          transaction with the TIP transaction (the caller becomes a
  996.          subordinate participant in the TIP transaction). The remote TIP
  997.          TM is identified via the URL (*pxid_url). The local transaction
  998.          identifier is returned. If a local transaction has already been
  999.          created for the TIP transaction identifier supplied, then
  1000.          [TIPOK] is returned (with the local transaction identifier),
  1001.          and no other action is taken.
  1002.       Return Values
  1003.          [TIPOK]
  1004.                The local transaction has been successfully created
  1005.                and joined with the TIP transaction.
  1006.          [TIPINVALIDHANDLE]
  1007.  
  1008.  
  1009.  
  1010. Evans, et. al.               Informational                     [Page 18]
  1011.  
  1012. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1013.  
  1014.  
  1015.                Invalid connection handle specified.
  1016.          [TIPTRUNCATED]
  1017.                Insufficient buffer size is specified for the local
  1018.                transaction identifier.
  1019.          [TIPNOTPULLED]
  1020.                Joining of the local transaction with the TIP
  1021.                transaction has failed.
  1022.          [TIPNOTCONNECTED]
  1023.                Caller has been disconnected from the TIP TM.
  1024.          [TIPINVALIDURL]
  1025.                Invalid URL has been supplied.
  1026.          [TIPTRANSIENT]
  1027.                Transient error occurred; retry the operation.
  1028.          [TIPERROR]
  1029.                An unexpected error occurred.
  1030.  
  1031.    5) tip_pull_async() - create a local transaction and join it with the
  1032.                          TIP transaction. Control is returned to the
  1033.                          caller as soon as a local transaction is
  1034.                          created.
  1035.       Synopsis
  1036.          int tip_pull_async ([in] tip_handle_t TM
  1037.                              [in] char *pxid_url,
  1038.                              [out] void *plocal_xid,
  1039.                              [in] unsigned int xid_length)
  1040.       Parameters
  1041.          TM [in]
  1042.                The TIP gateway handle.
  1043.          pxid_url [in]
  1044.                Pointer to the TIP URL of the associated remote
  1045.                transaction. A TIP URL for a transaction takes the form:
  1046.                TIP://<host>[:<port>]/<transaction identifier>
  1047.          plocal_xid [out]
  1048.                Pointer to the local transaction identifier. The
  1049.                structure of the transaction identifier is defined by the
  1050.                local transaction manager.
  1051.          xid_length [in]
  1052.                The size in bytes of the buffer for the local transaction
  1053.                identifier.
  1054.       Description
  1055.          tip_pull_async() creates a local transaction and joins the
  1056.          local transaction with the TIP transaction (the caller
  1057.          becomes a subordinate participant in the TIP transaction). The
  1058.          remote TIP TM is identified via the URL (*pxid_url). The local
  1059.          transaction identifier is returned. A call to tip_pull_async()
  1060.          returns immediately after the local transaction has been
  1061.          created (before the TIP PULL protocol command is sent). A
  1062.          subsequent call to tip_pull_complete() must be issued to check
  1063.  
  1064.  
  1065.  
  1066. Evans, et. al.               Informational                     [Page 19]
  1067.  
  1068. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1069.  
  1070.  
  1071.          for successful completion of the pull request.
  1072.       Return Values
  1073.          [TIPOK]
  1074.                The local transaction has been successfully created.
  1075.          [TIPINVALIDHANDLE]
  1076.                Invalid connection handle specified.
  1077.          [TIPNOTCONNECTED]
  1078.                User has been disconnected from the TIP TM.
  1079.          [TIPINVALIDURL]
  1080.                Invalid URL has been supplied.
  1081.          [TIPTRANSIENT]
  1082.                Transient error has occurred; retry the operation.
  1083.          [TIPTRUNCATED]
  1084.                Insufficient buffer size is specified for the local
  1085.                transaction identifier.
  1086.          [TIPERROR]
  1087.                An unexpected error occurred.
  1088.  
  1089.    6) tip_pull_complete() - check whether a previous tip_pull_async()
  1090.                             request has been successfully completed.
  1091.       Synopsis
  1092.          int tip_pull_complete ([in] tip_handle_t TM,
  1093.                                 [in] void *plocal_xid)
  1094.       Parameters
  1095.          TM [in]
  1096.                The TIP TM handle.
  1097.          plocal_xid [in]
  1098.                Pointer to the local transaction identifier. The
  1099.                structure of the transaction identifier is defined by the
  1100.                local transaction manager.
  1101.       Description
  1102.          tip_pull_complete() checks whether a previous call to
  1103.          tip_pull_async() has been successfully completed. i.e. whether
  1104.          the local transaction has been successfully joined with the TIP
  1105.          transaction. The caller supplies the local transaction
  1106.          identifier returned by the previous call to tip_pull_async().
  1107.          Repeated calls to tip_pull_complete() for the same local
  1108.          transaction identifier are idempotent.
  1109.       Return Values
  1110.          [TIPOK]
  1111.                The local transaction has been successfully joined with
  1112.                the TIP transaction.
  1113.          [TIPINVALIDHANDLE]
  1114.                Invalid connection handle specified.
  1115.          [TIPINVALIDXID]
  1116.                An invalid transaction identifier has been provided.
  1117.          [TIPNOTPULLED]
  1118.                Joining of the local transaction with the TIP transaction
  1119.  
  1120.  
  1121.  
  1122. Evans, et. al.               Informational                     [Page 20]
  1123.  
  1124. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1125.  
  1126.  
  1127.                has failed. The local transaction has been aborted.
  1128.          [TIPNOTCONNECTED]
  1129.                Caller has been disconnected from the TIP TM.
  1130.          [TIPERROR]
  1131.                An unexpected error occurred.
  1132.  
  1133.    7) tip_xid_to_url() - return a TIP transaction identifier for a local
  1134.                          transaction identifier.
  1135.       Synopsis
  1136.          int tip_xid_to_url ([in] tip_handle_t TM,
  1137.                              [in] void *plocal_xid,
  1138.                              [out] char *pxid_url,
  1139.                              [in] unsigned int url_length)
  1140.       Parameters
  1141.          TM [in]
  1142.                The TIP TM handle.
  1143.          plocal_xid [in]
  1144.                Pointer to the local transaction identifier. The
  1145.                structure of the transaction identifier is defined by the
  1146.                local transaction manager.
  1147.          pxid_url [out]
  1148.                Pointer to the TIP URL of the local transaction.
  1149.                A TIP URL for a transaction takes the form:
  1150.                TIP://<host>[:<port>]/<transaction identifier>
  1151.          url_length [in]
  1152.                The size in bytes of the buffer for the TIP URL.
  1153.       Description
  1154.          tip_xid_to_url() returns a TIP transaction identifier for a
  1155.          local transaction identifier. The TIP transaction identifier
  1156.          can be passed to remote applications to enable them to do work
  1157.          on the transaction. e.g. to pull the local transaction to the
  1158.          remote node. If a local transaction identifier is not supplied,
  1159.          the caller's current transaction context is used. The constant
  1160.          TIPURLSIZE defines the size of a TIP transaction identifier in
  1161.          bytes. This value is implementation specific.
  1162.       Return Values
  1163.          [TIPOK]
  1164.                TIP transaction identifier has been returned.
  1165.          [TIPNOTCONNECTED]
  1166.                Caller has been disconnected from the TIP TM.
  1167.          [TIPNOCURRENTTX]
  1168.                Process is currently not associated with a transaction
  1169.                (and none was supplied).
  1170.          [TIPINVALIDXID]
  1171.                An invalid local transaction identifier has been
  1172.                supplied.
  1173.          [TIPTRUNCATED]
  1174.                Insufficient buffer size is specified for the TIP
  1175.  
  1176.  
  1177.  
  1178. Evans, et. al.               Informational                     [Page 21]
  1179.  
  1180. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1181.  
  1182.  
  1183.                transaction identifier.
  1184.          [TIPERROR]
  1185.                An unexpected error occurred.
  1186.  
  1187.    8) tip_url_to_xid() - return a local transaction identifier for a TIP
  1188.                          transaction identifier.
  1189.       Synopsis
  1190.            int tip_url_to_xid ([in] tip_handle_t TM,
  1191.                              [in] char *pxid_url,
  1192.                              [out] void *plocal_xid,
  1193.                              [in] unsigned int xid_length)
  1194.       Parameters
  1195.          TM [in]
  1196.                The TIP TM handle.
  1197.          pxid_url [in]
  1198.                Pointer to the TIP URL of the local transaction. A TIP
  1199.                URL for a transaction takes the form:
  1200.                TIP://<host>[:<port>]/<transaction identifier>
  1201.          plocal_xid [out]
  1202.                Pointer to the local transaction identifier. The
  1203.                structure of the transaction identifier is defined by the
  1204.                local transaction manager.
  1205.          xid_length [in]
  1206.                The size in bytes of the buffer for the local transaction
  1207.                identifier.
  1208.       Description
  1209.          tip_url_to_xid() returns a local transaction identifier for a
  1210.          TIP transaction identifier (note that the local transaction
  1211.          must have previously been created via a tip_push(), or tip_pull
  1212.          (or tip_pull_async()). The constant TIPXIDSIZE defines the size
  1213.          of a local transaction identifier in bytes. This value is
  1214.          implementation specific.
  1215.       Return Values
  1216.          [TIPOK]
  1217.                Local transaction identifier is returned.
  1218.          [TIPINVALIDURL]
  1219.                An invalid TIP transaction identifier has been provided.
  1220.          [TIPTRUNCATED]
  1221.                Insufficient buffer size is specified for the local
  1222.                transaction identifier.
  1223.          [TIPERROR]
  1224.                An unexpected error occurred.
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Evans, et. al.               Informational                     [Page 22]
  1235.  
  1236. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1237.  
  1238.  
  1239. 9)  tip_get_tm_url() - get the name of the local TIP transaction
  1240.                        manager in TIP URL form.
  1241.     Synopsis
  1242.        int tip_get_tm_url ([in] tip_handle_t TM,
  1243.                            [out] char *tm_url,
  1244.                            [in] int tm_len);
  1245.     Parameters
  1246.        TM[in]
  1247.             The TIP TM handle.
  1248.        tm_url [in]
  1249.             Pointer to the TIP URL of the local transaction manager. A
  1250.             TIP URL for a transaction manager takes the form:
  1251.             TIP://<host>[:<port>]
  1252.        tm_len [out]
  1253.             The size in bytes of the buffer for the TIP URL of the local
  1254.             transaction manager.
  1255.     Description
  1256.        tip_get_tm_url() gets the name of the  local transaction
  1257.        manager in TIP URL form (i.e. TIP://<host>[:<port>])
  1258.     Return Values
  1259.        [TIPOK]
  1260.              The name of the local transaction manager has been
  1261.              successfully returned.
  1262.        [TIPTRUNCATED]
  1263.              The name of the local transaction manager has been
  1264.              truncated due to insufficient buffer size. Retry the
  1265.              operation with larger buffer size.
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Evans, et. al.               Informational                     [Page 23]
  1291.  
  1292. RFC 2372     TIP Requirements and Supplemental Information     July 1998
  1293.  
  1294.  
  1295. Full Copyright Statement
  1296.  
  1297.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  1298.  
  1299.    This document and translations of it may be copied and furnished to
  1300.    others, and derivative works that comment on or otherwise explain it
  1301.    or assist in its implementation may be prepared, copied, published
  1302.    and distributed, in whole or in part, without restriction of any
  1303.    kind, provided that the above copyright notice and this paragraph are
  1304.    included on all such copies and derivative works.  However, this
  1305.    document itself may not be modified in any way, such as by removing
  1306.    the copyright notice or references to the Internet Society or other
  1307.    Internet organizations, except as needed for the purpose of
  1308.    developing Internet standards in which case the procedures for
  1309.    copyrights defined in the Internet Standards process must be
  1310.    followed, or as required to translate it into languages other than
  1311.    English.
  1312.  
  1313.    The limited permissions granted above are perpetual and will not be
  1314.    revoked by the Internet Society or its successors or assigns.
  1315.  
  1316.    This document and the information contained herein is provided on an
  1317.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  1318.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  1319.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  1320.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  1321.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Evans, et. al.               Informational                     [Page 24]
  1347.  
  1348.