Previous Page Contents Page Next Page

4.25 SESSION_INDICATION

This indication is generated when a session is activated or deactivated. When a session is deactivated, the verb returns statistics on the usage of the session.

4.25.1 VCB Structure

typedef struct session_indication
{
   AP_UINT16         opcode;              /* verb operation code             */
   unsigned char     reserv2;             /* reserved                        */
   unsigned char     format;              /* reserved                        */
   AP_UINT16         primary_rc;          /* primary return code             */
   AP_UINT32         secondary_rc;        /* secondary return code           */
   unsigned char     data_lost;           /* previous indication lost        */
   unsigned char     deactivated;         /* has session been deactivated?   */
   unsigned char     lu_name[8];          /* LU name                         */
   unsigned char     lu_alias[8];         /* LU alias                        */
   unsigned char     plu_alias[8];        /* partner LU alias                */
   unsigned char     fqplu_name[17];      /* fully qualified partner LU name */
   unsigned char     mode_name[8];        /* mode name                       */
   unsigned char     session_id[8];       /* session ID                      */
   FQPCID            fqpcid;              /* fully qualified procedure       */
                                          /*  correlator ID                  */
   AP_UINT32         sense_data;          /* sense data                      */
   unsigned char     reserv1;             /* reserved                        */
   SESSION_STATS     sess_stats;          /* session statistics              */
   unsigned char     sscp_id[6];          /* SSCP ID                         */
   unsigned char     plu_slu_comp_lvl;    /* reserved                        */
   unsigned char     slu_plu_comp_lvl;    /* reserved                        */
   unsigned char     comp_in_series;      /* reserved                        */
   unsigned char     reserva[11];         /* reserved                        */
} SESSION_INDICATION;
typedef struct fqpcid
{
   unsigned char     pcid[8];             /* procedure correlator identifier */
   unsigned char     fqcp_name[17];       /* originator's network qualified  */
                                          /*  CP name                        */
   unsigned char     reserve3[3];         /* reserved                        */
} FQPCID;
typedef struct session_stats
{
  AP_UINT16        rcv_ru_size;           /* session receive RU size         */
  AP_UINT16        send_ru_size;          /* session send RU size            */
  AP_UINT16        max_send_btu_size;     /* maximum send BTU size           */
  AP_UINT16        max_rcv_btu_size;      /* maximum rcv BTU size            */
  AP_UINT16        max_send_pac_win;      /* maximum send pacing window size */
  AP_UINT16        cur_send_pac_win;      /* current send pacing window size */
  AP_UINT16        max_rcv_pac_win;       /* maximum receive pacing window   */
                                          /*  size                           */
  AP_UINT16        cur_rcv_pac_win;       /* current receive pacing window   */
                                          /*  size                           */
  AP_UINT32        send_data_frames;      /* number of data frames sent      */
  AP_UINT32        send_fmd_data_frames;  /* num fmd data frames sent        */
  AP_UINT32        send_data_bytes;       /* number of data bytes sent       */
  AP_UINT32        rcv_data_frames;       /* number of data frames received  */
  AP_UINT32        rcv_fmd_data_frames;   /* num fmd data frames received    */
  AP_UINT32        rcv_data_bytes;        /* number of data bytes received   */
  unsigned char    sidh;                  /* session ID high byte            */
                                          /*  (from LFSID)                   */
  unsigned char    sidl;                  /* session ID low byte (from LFSID)*/
  unsigned char    odai;                  /* ODAI bit set                    */
  unsigned char    ls_name[8];            /* Link station name               */
  unsigned char    pacing_type;           /* Pacing type                     */
} SESSION_STATS;

4.25.2 Parameters

opcode

AP_SESSION_INDICATION

primary_rc

AP_OK

data_lost

Specifies whether any previous session indications have been lost. If SNAP-IX detects a condition that prevents it from sending an indication (for example an internal resource shortage), it indicates this by setting the data_lost parameter on the next indication after the condition has cleared. Possible values are:

AP_YES

One or more previous session indications were lost. Later fields in this VCB may be set to zeros.

AP_NO

No previous session indications were lost.

deactivated

Specifies whether the session has been deactivated or activated. Possible values are:

AP_YES

The session has been deactivated.

AP_NO

The session has been activated.

lu_name

LU name of the local LU, as defined to SNAP-IX. This is an 8-byte type-A EBCDIC string, padded on the right with spaces if the name is shorter than 8 bytes.

lu_alias

LU alias of the local LU, as defined to SNAP-IX. This is an 8-byte ASCII string, using any locally displayable characters, padded on the right with spaces if the name is shorter than 8 bytes.

plu_alias

LU alias of the partner LU. This is an 8-byte ASCII string, using any locally displayable characters, padded on the right with spaces if the name is shorter than 8 bytes.

fqplu_name

Fully qualified LU name for the partner LU, as defined to SNAP-IX. This name is a 17-byte EBCDIC string, padded on the right with EBCDIC spaces. It consists of a network ID of 1-8 A-string characters, an EBCDIC dot (period) character, and an LU name of 1-8 A-string characters.

mode_name

Name of the mode used by the LUs. This is an 8-byte alphanumeric type-A EBCDIC string (starting with a letter), padded on the right with EBCDIC spaces if the name is shorter than 8 bytes.

session_id

8-byte identifier of the session.

fqpcid.pcid

Procedure Correlator ID. This is an 8-byte hexadecimal string.

fqpcid.fqcp_name

Fully qualified CP name. The name is a 17-byte EBCDIC string, padded on the right with EBCDIC spaces. It consists of a network ID of up to 8 A-string characters, an EBCDIC dot (period) character, and a network name of up to 8 A-string characters.

The following parameters are used only if deactivated is set to AP_YES:

sense_data

The sense data sent or received on the UNBIND message that ended the session.

duplex_support

The conversation duplex support as negotiated on the BIND. Possible values are:

AP_HALF_DUPLEX

Only half-duplex conversations are supported.

AP_FULL_DUPLEX

Both half-duplex and full-duplex conversations are supported. Expedited data is also supported.

AP_UNKNOWN

Duplex support is not known because the session has deactivated.

sess_stats.rcv_ru_size

Maximum receive RU size.

sess_stats.send_ru_size

Maximum send RU size.

sess_stats.max_send_btu_size

Maximum BTU size that can be sent.

sess_stats.max_rcv_btu_size

Maximum BTU size that can be received.

sess_stats.max_send_pac_win

Maximum size of the send pacing window on this session.

sess_stats.cur_send_pac_win

Current size of the send pacing window on this session.

sess_stats.max_rcv_pac_win

Maximum size of the receive pacing window on this session.

sess_stats.cur_rcv_pac_win

Current size of the receive pacing window on this session.

sess_stats.send_data_frames

Number of normal flow data frames sent.

sess_stats.send_fmd_data_frames

Number of normal flow FMD data frames sent.

sess_stats.send_data_bytes

Number of normal flow data bytes sent.

sess_stats.rcv_data_frames

Number of normal flow data frames received.

sess_stats.rcv_fmd_data_frames

Number of normal flow FMD data frames received.

sess_stats.rcv_data_bytes

Number of normal flow data bytes received.

sess_stats.sidh

Session ID high byte.

sess_stats.sidl

Session ID low byte.

sess_stats.odai

Origin Destination Assignor Indicator. When bringing up a session, the sender of the BIND sets this field to zero if the local node contains the primary link station, and sets it to one if the BIND sender is the node containing the secondary link station.

sess_stats.ls_name

Link station name associated with statistics. This is an 8-byte string in a locally displayable character set. All 8 bytes are significant. This field can be used to correlate the session statistics with the link over which session traffic flows.

sess_stats.pacing_type

The type of receive pacing in use on this session.

sscp_id

For dependent LU sessions, the identifier of the SSCP as received in the ACTPU for the PU used by this LU. This parameter is 6 bytes and is used only by dependent LUs. This parameter is set to all zeros for independent LUs.

Previous Page Contents Page Top of Page Next page