Making Connections

Before messages can flow across a connection, the connection must be established, or opened. This is necessary because a partner (P1) does not initially know the LPI address of the partner with which it wishes to communicate; indeed, there may not even be a suitable partner for it to communicate with.

A component of the Base, known as the Resource Locator, and a message with type of Open, known as an Open message, are used to establish a connection between partners.

The following procedure outlines how a connection is established. More specific information is available in The Function Management Interface.

    To establish a connection between partners
  1. The Open message has two forms: an Open request and an Open response. The Open request contains information on the type of partner P1 is looking for.

    P1 fills in an Open request and calls the Base with it. Since it does not know the LPI address of its partner, it sets the destination LPI values to zero.

  2. The Base cannot forward the Open to a particular partner, since it has no destination LPI address. Therefore it passes the Open to the Resource Locator, which attempts to find a locality that will accept the Open. The DMOD has a record of all the localities that could accept this type of Open. The Resource Locator tries each of these localities until the Open is accepted. If no locality is found, the Resource Locator returns a negative response to the Open to inform the sender that no partner could be found.
  3. When a remote locality receives an Open, the Base passes the Open to the partner (P2). If P2 can accept the Open, it responds by sending back a positive Open response message to P1.
  4. The Open response message returned to P1 contains both the source and destination LPI values for the particular connection. At the end of this exchange, both P1 and P2 know each other's addresses and can communicate over the connection.

Note that the terms "source" and "destination" in the context of LPIs refer to the source and destination of the particular message. Hence, when the 3270 emulator builds a message to send to the local 2.1 node, it needs to swap the source and destination LPIs received on the Open response from the local 2.1 node.

For a detailed example of how LPI addresses are assigned during initialization of the SSCP and PLU sessions, see Opening the PLU Connection.