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

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                          A. Robert
  8. Request for Comments: 2351                                          SITA
  9. Category: Informational                                         May 1998
  10.  
  11.  
  12.               Mapping of Airline Reservation, Ticketing,
  13.                      and Messaging Traffic over IP
  14.  
  15. Status of this Memo
  16.  
  17.    This memo provides information for the Internet community.  It does
  18.    not specify an Internet standard of any kind.  Distribution of this
  19.    memo is unlimited.
  20.  
  21. Copyright Notice
  22.  
  23.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  24.  
  25. Security Disclaimer:
  26.  
  27.    This document fails to adequately address security concerns.  The
  28.    protocol itself does not include any security mechanisms.  The
  29.    document notes that traffic can be authenticated based on external
  30.    mechanisms that use static identifiers or what are apparently clear-
  31.    text passwords, neither of which provide sound security.  The
  32.    document notes in general terms that traffic can be secured using
  33.    IPSEC, but leaves this form of sound security strictly optional.
  34.  
  35. Abstract
  36.  
  37.    This memo specifies a protocol for the encapsulation of the airline
  38.    specific protocol over IP.
  39.  
  40. Table of Conents
  41.  
  42.    1. INTRODUCTION                                                    2
  43.    2. TERMINOLOGY & ACRONYMS                                          4
  44.    3. LAYERING                                                        7
  45.    4. TRAFFIC IDENTIFICATION                                          7
  46.    5. TCP PORT ALLOCATION                                             8
  47.    6. MATIP SESSION ESTABLISHMENT                                     8
  48.    7. OVERALL PACKET FORMAT FOR TYPE A & TYPE B                       9
  49.    8. MATIP FORMAT FOR TYPE A CONVERSATIONAL TRAFFIC                 10
  50.     8.1 Control Packet Format                                        10
  51.      8.1.1 Session Open format (SO)                                  10
  52.      8.1.2 Open Confirm format (OC)                                  12
  53.      8.1.3 Session Close (SC)                                        14
  54.     8.2 Data Packet Format                                           14
  55.  
  56.  
  57.  
  58. Robert                       Informational                      [Page 1]
  59.  
  60. RFC 2351                         MATIP                          May 1998
  61.  
  62.  
  63.    9. MATIP FORMAT FOR TYPE A HOST-TO-HOST TRAFFIC                   15
  64.     9. 1 Control Packet Format                                       15
  65.      9.1.1 Session Open format (SO)                                  15
  66.      9.1.2 Open Confirm format (OC)                                  17
  67.      9.1.3 Session Close (SC)                                        17
  68.     9.2 Data Packet Format                                           18
  69.    10. MATIP FORMAT FOR TYPE B TRAFFIC                               19
  70.     10.1 Control packet format                                       19
  71.      10.1.1 Session Open format (SO)                                 19
  72.      10.1.2 Open confirm format (OC)                                 20
  73.      10.1.3 Session Close (SC)                                       21
  74.     10.2 Data packet format                                          21
  75.    11. SECURITY CONSIDERATIONS                                       22
  76.    12. AUTHOR'S ADDRESS                                              22
  77.    13. FULL COPYRIGHT STATEMENT                                      23
  78.  
  79. 1. Introduction
  80.  
  81.    The airline community has been using a worldwide data network for
  82.    over 40 years, with two main types of traffic:
  83.  
  84.     Transactional traffic
  85.  
  86.       This is used typically for communication between an airline office
  87.       or travel agency and a central computer system for seat
  88.       reservations and ticket issuing. A dumb terminal or a PC accesses
  89.       the central system (IBM or UNISYS) through a data network.
  90.  
  91.       This traffic is also called TYPE A and is based on real-time
  92.       query/response with limited protection, high priority and can be
  93.       discarded. The user can access only one predetermined central
  94.       computer system. In case of no response (data loss), the user can
  95.       duplicate the request.
  96.  
  97.     Messaging
  98.  
  99.       This is an e-mail application where real-time is not needed.
  100.       However a high level of protection is required. The addressing
  101.       scheme uses an international format defined by IATA and contains
  102.       the city and airline codes.
  103.  
  104.       This traffic is also called TYPE B and is transmitted with a high
  105.       level of protection, multi-addressing and 4 levels of priority.
  106.  
  107.    The detailed formats for TYPE A and TYPE B messages are defined in
  108.    the IATA standards.
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Robert                       Informational                      [Page 2]
  115.  
  116. RFC 2351                         MATIP                          May 1998
  117.  
  118.  
  119.    At the bottom level, synchronous protocols have been built since
  120.    1960's and well before the OSI and SNA standards.
  121.  
  122.    At present, there is a big number of legacy equipment installed in
  123.    thousands of airline offices around the world. Many airlines do not
  124.    have immediate plans to replace their terminals with more modern
  125.    equipment using open standards. They are in search of more economical
  126.    ways for connecting these terminals to the present reservation
  127.    system.
  128.  
  129.    Most airlines are willing to migrate from airline specific protocols
  130.    to standardized protocols in order to benefit from the lower cost of
  131.    new technologies, but the migration has been slow done to the
  132.    following factors:
  133.  
  134.    - Applications have not been migrated.
  135.    - Dumb terminals using airline protocols P1024B (IBM ALC) or P1024C
  136.      (UNISYS UTS) are still numerous.
  137.  
  138.    There are currently many different proprietary solutions based on
  139.    gateways available to take advantage of low cast networking, but they
  140.    are not scalable and cannot interact.
  141.  
  142.    In the future, TCP/IP will be more commonly used as a common
  143.    transport means for traffic types because:
  144.  
  145.    - TCP/IP is the standard protocol of UNIX based applications
  146.    - TCP/IP stacks are inexpensive
  147.    - TCP/IP is used on intranets.
  148.  
  149.    The purpose of this RFC is to define the mapping of the airline
  150.    traffic types over TCP/IP. The airlines implementing it in their
  151.    systems should have a TCP/IP stack to enable the traffic exchange
  152.    below:
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Robert                       Informational                      [Page 3]
  171.  
  172. RFC 2351                         MATIP                          May 1998
  173.  
  174.  
  175.      !----!          (            )
  176.      !    !----------(            )
  177.      !----!          (            )
  178.      Type B HOST     (   NETWORK  )
  179.                      (            )
  180.                      (            )            !---o
  181.      !----!          (            )--------! D !---o Type A stations
  182.      !----!----------(            )            !---o
  183.      !----!          (            )
  184.      TYPE A HOST           !
  185.                            !
  186.                            !
  187.                            !
  188.                         --------
  189.                        !       !
  190.                         --------
  191.                       Network Messaging System
  192.  
  193.  
  194.       (D) : Gateway TYPE A router
  195.  
  196.    The different airline traffic flows concerned by this RFC are:
  197.  
  198.      - TYPE A Host / Terminal
  199.      - TYPE A Host / TYPE A host
  200.      - TYPE B Host / Network messaging System
  201.  
  202.    In the case of dumb terminals, a conversion is required on the
  203.    terminal side in order to have an IP connection between the host and
  204.    the router. However, the IP connection is directly between the
  205.    central airline host and the intelligent workstation if the latter
  206.    has a direct connection to the network, a TCP/IP stack and a terminal
  207.    emulation
  208.  
  209. 2. Terminology & Acronyms
  210.  
  211.    ALC
  212.    Airline Line Control: IBM airline specific protocol (see P1024B)
  213.  
  214.    ASCII
  215.    American Standard Code for Information Interchange
  216.  
  217.    ASCU
  218.    Agent Set Control Unit: Cluster at the user side.
  219.  
  220.    AX.25
  221.    Airline X.25: Airline application of the X.25 OSI model (published by
  222.    IATA)
  223.  
  224.  
  225.  
  226. Robert                       Informational                      [Page 4]
  227.  
  228. RFC 2351                         MATIP                          May 1998
  229.  
  230.  
  231.    BAUDOT
  232.    Alphabet defined in ITU-T Number 5. BAUDOT uses 5 bits. Padded BAUDOT
  233.    uses 7 bits with the Most significant bit (bit 7) for the parity and
  234.    the bit 6 equal to 1.
  235.  
  236.    BATAP
  237.    Type B Application to Application Protocol. Protocol to secure the
  238.    TYPE B traffic. It was specified by SITA and is now published by IATA
  239.    (SCR Vol. 3)
  240.  
  241.    EBCDIC
  242.    Extended Binary Coded Decimal Interchange Code
  243.  
  244.    Flow ID Traffic
  245.    Flow identifier used in host to host traffic  to differentiate
  246.    traffic flow types.
  247.  
  248.    HLD
  249.    High Level Designator: Indicates the entry or exit point of a block
  250.    in the network.
  251.  
  252.    IA
  253.    Interchange Address: ASCU identifier in P1024B protocol.
  254.  
  255.    IATA
  256.    International Air Transport Association
  257.  
  258.    IP
  259.    Internet Protocol
  260.  
  261.    IPARS
  262.    International Program Airline Reservation System: IPARS code is used
  263.    in ALC
  264.  
  265.    HTH
  266.    Host to Host (traffic).
  267.  
  268.    LSB
  269.    Least Significant Bit
  270.  
  271.    MATIP
  272.    Mapping of Airline Traffic over Internet Protocol
  273.  
  274.    MSB
  275.    Most Significant Bit
  276.  
  277.    OC
  278.    Open Confirm (MATIP command)
  279.  
  280.  
  281.  
  282. Robert                       Informational                      [Page 5]
  283.  
  284. RFC 2351                         MATIP                          May 1998
  285.  
  286.  
  287.    OSI
  288.    Open Standard Interface
  289.  
  290.    P1024B
  291.    SITA implementation of the ALC, the IBM airlines specific protocol.
  292.    It uses 6-bit padded characters (IPARS) and IA/ TA for physical
  293.    addressing.
  294.  
  295.    P1024C
  296.    SITA implementation of the UTS, the UNISYS terminal protocol. It uses
  297.    7-bit (ASCII) characters and RID/ SID for physical addressing.
  298.  
  299.    RFU
  300.    Reserved for Future Use
  301.  
  302.    RID
  303.    Remote Identifier: ASCU identifier in P1024C protocol.
  304.  
  305.    SC
  306.    Session Close (MATIP command)
  307.  
  308.    SCR
  309.    System and Communication Reference. (IATA document)
  310.  
  311.    SID
  312.    Station Identifier: Terminal identifier in P1024C protocol.
  313.  
  314.    SITA
  315.    Societe International de Telecommunications Aeronautiques
  316.  
  317.    SO
  318.    Session Open (MATIP command)
  319.  
  320.    TA
  321.    Terminal Address: Terminal identifier in P1024B protocol.
  322.  
  323.    TCP
  324.    Transport Control Protocol
  325.  
  326.    TYPE A Traffic
  327.    Interactive traffic or host to host
  328.  
  329.    TYPE B Traffic
  330.    Messaging traffic in IATA compliant format with high level of
  331.    reliability
  332.  
  333.    UTS
  334.    Universal Terminal System by Unisys: (see P1024C)
  335.  
  336.  
  337.  
  338. Robert                       Informational                      [Page 6]
  339.  
  340. RFC 2351                         MATIP                          May 1998
  341.  
  342.  
  343. 3. LAYERING
  344.  
  345.    MATIP is an end to end protocol. Its purpose is to have a mapping
  346.    standard between the TCP layer and the airline application without
  347.    any routing element.
  348.  
  349.      +-------------------------------+
  350.      |Airline TYPE A | Airline TYPE B|
  351.      |               |   Application |
  352.      |               |---------------|
  353.      | Application   |   BATAP       |
  354.      +-------------------------------+
  355.      |   MATIP A     |   MATIP B     |
  356.      +-------------------------------+
  357.      |            T.C.P              |
  358.      +-------------------------------+
  359.      |             I.P               |
  360.      +-------------------------------+
  361.      |            MEDIA              |
  362.      +-------------------------------+
  363.  
  364. 4. TRAFFIC IDENTIFICATION
  365.  
  366.    In TYPE A conversational traffic, the airline host application
  367.    recognizes the ASCU due to 4 bytes (H1, H2, A1, A2). These bytes are
  368.    assigned by the host and are unique per ASCU. Thus, a host can
  369.    dynamically recognize the ASCU independent of IP address.
  370.  
  371.    H1 H2 A1 A2 bytes follow one of the three cases below:
  372.  
  373.      - A1,A2 only are used and H1H2 is set to 0000.
  374.      - H1,H2 identify the session and A1A2 the ASCU inside the session.
  375.      - H1,H2,A1,A2 identify the ASCU.
  376.  
  377.    The first two cases are fully compatible with the AX.25 mapping where
  378.    H1H2 may be equivalent to the HLD of the concentrator, i.e., 2 bytes
  379.    hexadecimal. The third rule allows more flexibility but is not
  380.    compatible with AX.25.
  381.  
  382.    In TYPE A host to host traffic the identification field is also
  383.    present and is equal to 3 bytes H1 H2 Flow ID (optional). H1H2 are
  384.    reserved for remote host identification (independently of the IP
  385.    address) and must be allocated bilaterally.
  386.  
  387.    In Type B traffic, identification of End Systems may be carried out
  388.    by the use of HLDs, or directly by the pair of IP addresses.
  389.  
  390.  
  391.  
  392.  
  393.  
  394. Robert                       Informational                      [Page 7]
  395.  
  396. RFC 2351                         MATIP                          May 1998
  397.  
  398.  
  399. 5. TCP PORT ALLOCATION
  400.  
  401.    IANA (Internet Assigned Numbers Authority) has allocated the
  402.    following ports for MATIP TYPE A and TYPE B traffic:
  403.      MATIP Type A TCP port = 350
  404.      MATIP Type B TCP port = 351
  405.  
  406.    Therefore the traffic type A or B is selected according to the TCP
  407.    port.
  408.  
  409. 6. MATIP SESSION ESTABLISHMENT
  410.  
  411.    Prior to any exchange between two applications, a single MATIP
  412.    session is established above the TCP connection in order to identify
  413.    the traffic characteristic such as:
  414.  
  415.      - Subtype of traffic for TYPE A (Type A host to host or Type A
  416.        conversational )
  417.      - Multiplexing used (for Type A)
  418.      - Data header
  419.      - Character set
  420.  
  421.    A separate session and TCP connection must be established for each
  422.    set of parameters (e.g., P1024B, P1024C traffic between two points
  423.    needs two separate sessions).
  424.  
  425.    The establishment of a MATIP session can be initiated by either side.
  426.    No keep-alive mechanism is defined at MATIP level. Session time out
  427.    relies on the TCP time-out parameters.
  428.  
  429.    There are three commands defined to manage the MATIP session:
  430.  
  431.    - Session Open (SO) to open a session.
  432.    - Open Confirm (OC) to confirm the SO command.
  433.    - Session close (SC) to close the current session.
  434.  
  435.    A MATIP session can be up only if the associated TCP connection is
  436.    up.  However it is not mandatory to close the TCP connection when
  437.    closing the associated MATIP session.
  438.  
  439.    Typical exchange is:
  440.  
  441.                       TCP session establishment
  442.  
  443.              Session Open --------->
  444.                             <-----------   Open confirm
  445.                           data exchange
  446.              ---------------------->
  447.  
  448.  
  449.  
  450. Robert                       Informational                      [Page 8]
  451.  
  452. RFC 2351                         MATIP                          May 1998
  453.  
  454.  
  455.                              <-------------------------
  456.                              .
  457.                              .
  458.                              .
  459.     Session Close ----------------->
  460.                              .
  461.                              .
  462.                              .
  463.                               <-------------------------   Session Open
  464.    Open confirm ------------------->
  465.                         data exchange
  466.                                <-------------------------
  467.              ---------------------->
  468.  
  469.    The Session Open command may contain configuration elements. An
  470.    Session Open command received on a session already opened (i.e., same
  471.    IP address and port number) will automatically clear the associated
  472.    configuration and a new configuration will be set up according to the
  473.    information contained in the new open session command.
  474.  
  475.    As illustrated above, the open and close commands are symmetrical.
  476.  
  477.    For type A conversational traffic, the SO and OC commands contain
  478.    information for the identification of the ASCUs and the session.
  479.    ASCUs are identified within a session by two or 4 bytes. A flag is
  480.    set to indicate if the ASCU is identified by 4 bytes (H1H2A1A2) or by
  481.    2 bytes (A1A2). In the latter case, H1H2 is reserved for session
  482.    identification.
  483.  
  484.    The SO command is sent to open the MATIP session. In Type A
  485.    conversational it may contains the list of ASCUs configured in this
  486.    session.
  487.  
  488.    The OC command confirms the SO command. It can refuse or accept it,
  489.    totally or conditionally. In Type A, it contains the list of the
  490.    ASCUs either rejected or configured in the session.
  491.  
  492. 7. OVERALL PACKET FORMAT FOR TYPE A & TYPE B
  493.  
  494.    The first 4 bytes of the MATIP header follow the following rules.
  495.  
  496.      0                   1                   2                   3
  497.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  498.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  499.      |0|0|0|0|0| Ver |C|     Cmd     |            length             |
  500.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  501.  
  502.  
  503.  
  504.  
  505.  
  506. Robert                       Informational                      [Page 9]
  507.  
  508. RFC 2351                         MATIP                          May 1998
  509.  
  510.  
  511.    Ver
  512.    The `Ver' (Version) field represents the version of the MATIP. It
  513.    must contain the value 001 otherwise the packet is considered as
  514.    invalid.
  515.  
  516.    C
  517.    Identifies a CONTROL packet.
  518.      When set to 1, the packet is a Control packet
  519.      When set to 0, the packet is a Data packet
  520.  
  521.    Cmd
  522.    This field identifies the control command if the flag C is set to 1.
  523.  
  524.    Length
  525.    This field indicates the number of bytes of the whole packet, header
  526.    included.
  527.  
  528.    Notes : Fields identified as optional (Opt) are not transmitted if
  529.    not used.
  530.  
  531. 8. MATIP FORMAT FOR TYPE A CONVERSATIONAL TRAFFIC
  532.  
  533. 8. 1 Control Packet Format
  534.  
  535.    There are 3 control packets to open or close the session at the MATIP
  536.    level.
  537.  
  538. 8.1.1 Session Open format (SO)
  539.  
  540.    To be able to identify the session and before sending any data
  541.    packets, a Session Open command is sent. It can be initiated by
  542.    either side. In case of collision, the open session from the side
  543.    having the lower IP address is ignored.
  544.  
  545.        0                   1                   2                   3
  546.        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  547.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  548.       |0|0|0|0|0| Ver |1|1 1 1 1 1 1 0|           length              |
  549.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  550.       |0 0|0 1|0| CD  | STYP  |0 0 0 0|       RFU     |MPX|HDR| PRES. |
  551.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  552.       |      H1       |      H2       |           RFU                 |
  553.       |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  554.       |   Reserved    |              RFU              | Nbr of ASCUs  |
  555.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  556.       |  Nbr of ASCUs |        ASCU list (opt)                        |
  557.       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  558.  
  559.  
  560.  
  561.  
  562. Robert                       Informational                     [Page 10]
  563.  
  564. RFC 2351                         MATIP                          May 1998
  565.  
  566.  
  567.    RFU
  568.    Reserved for future use. Must be set to zero.
  569.  
  570.    CD
  571.    This field specifies the Coding
  572.       000 : 5 bits (padded baudot)
  573.       010 : 6 bits (IPARS)
  574.       100 : 7 bits (ASCII)
  575.       110 : 8 bits (EBCDIC)
  576.       xx1 : R.F.U
  577.  
  578.    STYP
  579.    This is the traffic subtype (type being TYPE A).
  580.       0001 : TYPE A Conversational
  581.  
  582.    MPX
  583.    This flag specifies the multiplexing used within the TCP session.
  584.    Possible values are:
  585.       00 : Group of ASCU with 4 bytes identification per ASCU (H1H2A1A2)
  586.       01 : Group of ASCUs with 2 bytes identification per ASCU (A1A2)
  587.       10 : single ASCU inside the TCP session.
  588.  
  589.  
  590.    HDR
  591.    This field specifies which part of the airline's specific address is
  592.    placed ahead of the message texts transmitted over the session.
  593.    Possible values are:
  594.       00 : ASCU header = H1+H2+A1+A2
  595.       01 : ASCU Header = A1+A2
  596.       10 : No Header
  597.       11 : Not used
  598.  
  599.    The MPX and HDR must be coherent. When ASCUs are multiplexed, the data
  600.    must contain the ASCU identification. The table below summarizes the
  601.    allowed combinations:
  602.  
  603.        +--------------------------+
  604.        |       MPX | 00 | 01 | 10 |
  605.        +--------------------------+
  606.        | HDR       |              |
  607.        | 00        | Y  | Y  | Y  |
  608.        | 01        | N  | Y  | Y  |
  609.        | 10        | N  | N  | Y  |
  610.        +--------------------------+
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Robert                       Informational                     [Page 11]
  619.  
  620. RFC 2351                         MATIP                          May 1998
  621.  
  622.  
  623.    PRES
  624.    This field indicates the presentation format
  625.       0001 : P1024B presentation
  626.       0010 : P1024C presentation
  627.       0011 : 3270 presentation
  628.  
  629.  
  630.    H1 H2
  631.    These fields can logically identify the session if MPX is not equal to
  632.    00. When this field is not used, it must be set to 0. If used in
  633.    session (MPX <> 0) with HDR=00, H1H2 in data packet must have the same
  634.    value as set in SO command.
  635.  
  636.    Nbr of ASCUs
  637.    Nbr_of_ASCUs field is mandatory and gives the number of ASCUs per
  638.    session. A 0 (zero) value means unknown. In this case the ASCU list is
  639.    not present in the `Open Session' command and must be sent by the
  640.    other end in the `Open Confirm' command.
  641.  
  642.    ASCU LIST
  643.    Contains the list of identifier for each ASCU. If MPX=00 it has a
  644.    length of four bytes (H1H2A1A2) for each ASCU, otherwise it is two
  645.    bytes (A1A2).
  646.  
  647. 8.1.2 Open Confirm format (OC)
  648.  
  649.    The OC (Open Confirm) command is a response to an SO (Session Open)
  650.    command and is used to either refuse the session or accept it
  651.    conditionally upon checking hte configuration of each ASCU.
  652.  
  653.    In case of acceptance, the OC indicates the number and the address of
  654.    the rejected ASCUs, if any. Alternatively, it indicates the list of
  655.    ASCUs configured for that MATIP session if the list provided by the
  656.    SO command was correct or the number of ASCUs configured in the
  657.    session was unknown (n. of ASCU equals 0).
  658.  
  659. 8.1.2.1 Refuse the connection
  660.  
  661.      0                   1                   2                   3
  662.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  663.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  664.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  665.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  666.      |     cause     |
  667.      +-+-+-+-+-+-+-+-+
  668.  
  669.    Cause
  670.    This field indicates the reason for the MATIP session refusal:
  671.  
  672.  
  673.  
  674. Robert                       Informational                     [Page 12]
  675.  
  676. RFC 2351                         MATIP                          May 1998
  677.  
  678.  
  679.        0 0 0 0 0 0 0 1 : No Traffic Type matching between Sender &
  680.            Recipient
  681.        0 0 0 0 0 0 1 0 : Information in SO header incoherent
  682.  
  683.        1 0 0 0 0 1 0 0
  684.            up to       : Application dependent
  685.        1 1 1 1 1 1 1 1
  686.  
  687.        Other values reserved.
  688.  
  689. 8.1.2.2 Accept the connection
  690.  
  691.      0                   1                   2                   3
  692.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  693.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  694.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|            length             |
  695.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  696.      |0 0 R 0 0 0 0 0| Nbr of ASCUs  |Nbr of ASCU(opt|  ASCU LIST    |
  697.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  698.      |                                                               |
  699.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  700.      |                                                               |
  701.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  702.  
  703.    R
  704.    Flag indicating an error in the ASCU configuration provided in the SO
  705.    command.
  706.  
  707.    NBR of ASCUs
  708.    If the MPX value is equal to 00 in the SO command, this field is two
  709.    bytes long. Otherwise, it is one byte.
  710.    If the R flag is set, the Nbr_of_ASCUs field represents the number of
  711.    ASCUs in error. Otherwise, it indicates the number of ASCUs configured
  712.    for that MATIP session.
  713.  
  714.    Notes: The length of this field is either one or two bytes. In the SO
  715.    command, the length is always two bytes. This discrepancy comes from
  716.    backward compatibility with AX25 (see chapter 4). In the SO command,
  717.    it is possible to use a free byte defined in the AX25 call user data.
  718.    Unfortunately, there is no such free byte in the AX25 clear user
  719.    data.
  720.  
  721.    ASCU LIST
  722.    Depending on the R flag, this field indicates the list of ASCUs  (A1A2
  723.    or H1H2A1A2) either in error or within the session.
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Robert                       Informational                     [Page 13]
  731.  
  732. RFC 2351                         MATIP                          May 1998
  733.  
  734.  
  735. 8.1.3 Session Close (SC)
  736.  
  737.    The SC (Session Close) command is used to close an existing MATIP
  738.    session.
  739.  
  740.      0                   1                   2                   3
  741.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  742.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  743.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 0|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  744.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  745.      | Close  Cause  |
  746.      +-+-+-+-+-+-+-+-+
  747.  
  748.    Close Cause
  749.    Indicates the reason for the session closure:
  750.  
  751.        0 0 0 0 0 0 0 0 : Normal Close
  752.  
  753.        1 0 0 0 0 1 0 0
  754.             up to      : Application dependent
  755.        1 1 1 1 1 1 1 1
  756.  
  757.        Other values reserved.
  758.  
  759. 8.2 Data Packet Format
  760.  
  761.  
  762.      0                   1                   2                   3
  763.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  764.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  765.      |0|0|0|0|0| Ver |0|0 0 0 0 0 0 0|          length               |
  766.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  767.      |                         ID (optional)                         |
  768.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  769.      |                                                               |
  770.      |                         Payload                               |
  771.      |                                                               |
  772.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  773.  
  774.    ID
  775.    This field is optional and has a different length and format
  776.    according to the value of HDR, PRES indicated during the session
  777.    establishment.
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Robert                       Informational                     [Page 14]
  787.  
  788. RFC 2351                         MATIP                          May 1998
  789.  
  790.  
  791.      +------------------------------+-------------------------------+
  792.      |HDR |  PRES = P1024B and 3270 |     PRES = P1024C             |
  793.      +------------------------------+-------------------------------+
  794.      |00  |ID = 4 bytes H1-H2-A1-A2 | ID = 5 bytes H1-H2-A1-0x01-A2 |
  795.      +------------------------------+-------------------------------+
  796.      |01  |ID = 2 bytes A1-A2       | ID = 3 bytes A1-0x01-A2       |
  797.      +------------------------------+-------------------------------+
  798.      |10  |ID = 0 bytes             | ID = 0 bytes                  |
  799.      +------------------------------+-------------------------------+
  800.  
  801.    H1, H2 value must match the value given in the SO command if MPX is
  802.    different from 0.
  803.  
  804.    Payload
  805.    payload begins with the terminal identification:
  806.       - One byte Terminal identifier (TA) in P1024B
  807.       - Two bytes SID/DID Terminal identifier in P1024C.
  808.  
  809. 9. MATIP FORMAT FOR TYPE A HOST-TO-HOST TRAFFIC
  810.  
  811. 9. 1 Control Packet Format
  812.  
  813.    There are 3 control packets to open or close the session at the MATIP
  814.    level.
  815.  
  816. 9.1.1 Session Open format (SO)
  817.  
  818.    To be able to identify the session and before sending any data
  819.    packet, a Session Open command is sent. It can be initiated by either
  820.    side. In case of collision, the open session from the side having the
  821.    lower IP address is ignored.
  822.  
  823.       0                   1                   2                   3
  824.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  825.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  826.      |0|0|0|0|0| Ver |1|1 1 1 1 1 1 0|     length                    |
  827.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  828.      |0 0|0 1|0| CD  | STYP  |0 0 0 0|       RFU     |MPX|HDR|0 0 0 0|
  829.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  830.      |      H1       |      H2       |           RFU                 |
  831.      |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  832.      |   Flow ID(opt)|
  833.      +-+-+-+-+-+-+-+-+
  834.  
  835.    RFU
  836.    Reserved for future use. Must be set to zero.
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Robert                       Informational                     [Page 15]
  843.  
  844. RFC 2351                         MATIP                          May 1998
  845.  
  846.  
  847.    CD
  848.    This field specifies the Coding, as defined in section 8.1.1.1.
  849.  
  850.    STYP
  851.    This is the traffic subtype (type being Type A).
  852.    0010 : TYPE A IATA Host to Host
  853.    1000 : SITA Host to Host
  854.  
  855.    MPX
  856.    This flag specifies the multiplexing used within the MATIP session in
  857.    TYPE A SITA host to host. Possible values are:
  858.  
  859.    00 : irrelevant
  860.    01 : multiple flow inside the TCP connection
  861.    10 : single flow inside the TCP connection
  862.  
  863.    HDR
  864.    This field specifies which part of the airline's specific address is
  865.    placed ahead of the message text transmitted over the session.
  866.    Possible values are:
  867.  
  868.    00 : used in TYPE A SITA Host to Host Header = H1+H2+Flow ID
  869.    01 : used in TYPE A SITA Host to Host Header = Flow ID
  870.    10 : No Header (default for IATA host to Host)
  871.    11 : Not used
  872.  
  873.    The MPX and HDR must be coherent. When flow are multiplexed, the data
  874.    must contain the flow identification. The table below summarizes the
  875.    possible combinations:
  876.  
  877.          +---------------------+
  878.          |       MPX | 01 | 10 |
  879.          +---------------------+
  880.          | HDR       |    |    |
  881.          | 00        | Y  | Y  |
  882.          | 01        | Y  | Y  |
  883.          | 10        | N  | Y  |
  884.          +---------------------+
  885.  
  886.    H1 H2
  887.    These fields can be used to identify the session. When this field is
  888.    not used, it must be set to 0. If HDR=00, H1H2 in data packet must
  889.    have the same value as set in SO command.
  890.  
  891.    Flow ID
  892.    This field is optional and indicates the Flow ID (range 3F - 4F Hex).
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Robert                       Informational                     [Page 16]
  899.  
  900. RFC 2351                         MATIP                          May 1998
  901.  
  902.  
  903. 9.1.2 Open Confirm format (OC)
  904.  
  905.    The OC (Open Confirm) command is a response to an SO (Session Open)
  906.    command and is used to either refuse the session or accept it.
  907.  
  908. 9.1.2.1 Refuse the connection
  909.  
  910.       0                   1                   2                   3
  911.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  912.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  913.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  914.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  915.      |     cause     |
  916.      +-+-+-+-+-+-+-+-+
  917.  
  918.    Cause
  919.    This field indicates the reason for the MATIP session refusal
  920.  
  921.        0 0 0 0 0 0 0 1 : No Traffic Type matching between Sender &
  922.             Recipient
  923.        0 0 0 0 0 0 1 0 : Information in SO header incoherent
  924.  
  925.        1 0 0 0 0 1 0 0
  926.             up to      : Application dependent
  927.        1 1 1 1 1 1 1 1
  928.  
  929.        Other values reserved.
  930.  
  931. 9.1.2.2 Accept the connection
  932.  
  933.       0                   1                   2                   3
  934.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  935.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  936.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  937.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  938.      |0 0 0 0 0 0 0 0|
  939.      +-+-+-+-+-+-+-+-+
  940.  
  941. 9.1.3 Session Close (SC)
  942.  
  943.    The SC (Session Close) command is used to close an existing MATIP
  944.    session.
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954. Robert                       Informational                     [Page 17]
  955.  
  956. RFC 2351                         MATIP                          May 1998
  957.  
  958.  
  959.       0                   1                   2                   3
  960.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  961.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  962.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 0|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  963.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  964.      | Close  Cause  |
  965.      +-+-+-+-+-+-+-+-+
  966.  
  967.    Close Cause
  968.    Indicates the reason for the session closure:
  969.  
  970.  
  971.        0 0 0 0 0 0 0 0 : Normal Close
  972.  
  973.        1 0 0 0 0 1 0 0
  974.             up to      : Application dependent
  975.        1 1 1 1 1 1 1 1
  976.  
  977.        Other values reserved
  978.  
  979. 9.2 Data Packet Format
  980.  
  981.       0                   1                   2                   3
  982.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  983.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  984.      |0|0|0|0|0| Ver |0|0 0 0 0 0 0 0|          length               |
  985.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  986.      |                         ID (optional)                         |
  987.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  988.      |                                                               |
  989.      |                         Payload                               |
  990.      |                                                               |
  991.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  992.  
  993.    ID
  994.    This field is optional and has a different length and format
  995.    according to the value of   HDR indicated during the session
  996.    establishment.
  997.  
  998.      +-------------------------------+
  999.      |HDR |        I.D.              |
  1000.      +-------------------------------+
  1001.      |00  |ID = 3 bytes H1-H2 FLOW ID|
  1002.      +-------------------------------+
  1003.      |01  |ID = FLOW ID              |
  1004.      +-------------------------------+
  1005.      |10  |ID nor present            |
  1006.      +-------------------------------+
  1007.  
  1008.  
  1009.  
  1010. Robert                       Informational                     [Page 18]
  1011.  
  1012. RFC 2351                         MATIP                          May 1998
  1013.  
  1014.  
  1015.    Payload packet
  1016.    The payload format is relevant to the MATIP layer. It is formatted
  1017.    according to the IATA host to host specifications and agreed
  1018.    bilaterally by the sender and the receiver.
  1019.  
  1020. 10. MATIP FORMAT FOR TYPE B TRAFFIC
  1021.  
  1022. 10.1 Control packet format
  1023.  
  1024.    There are 3 control packets used to open or close the session at the
  1025.    MATIP level for exchanging Type B data
  1026.  
  1027. 10.1.1 Session Open format (SO)
  1028.  
  1029.    Before sending any data packets, it is recommended to let the systems
  1030.    establishing a session check that they are indeed able to communicate
  1031.    (i.e., Both systems agree on the characteristics of the traffic that
  1032.    will cross the connection). For this purpose, a two way handshake,
  1033.    using the Session commands defined hereafter, is performed
  1034.    immediately after the establishment of the TCP level connection.
  1035.    Either side can initiate this procedure. In case of collision, the
  1036.    open session from the side having the lower IP address is ignored.
  1037.  
  1038.       0                   1                   2                   3
  1039.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1040.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1041.      |0|0|0|0|0| Ver |1|1 1 1 1 1 1 0|            length             |
  1042.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1043.      |0 0 0 0 0| C D | PROTEC| BFLAG |          Sender HLD           |
  1044.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1045.      |       Recipient HLD           |
  1046.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1047.  
  1048.    Length
  1049.    This field indicates the number of bytes of the whole command, header
  1050.    included. The only possible values are equal to 6 bytes or 10 bytes.
  1051.  
  1052.    CD
  1053.    This field specifies the Coding, as defined in section 8.1.1.1.
  1054.  
  1055.    PROTEC
  1056.    Identifies the end to end Messaging Responsibility Transfer protocol
  1057.    used.
  1058.    0010: BATAP
  1059.    All other values available.
  1060.  
  1061.    BFLAG (X means `do not care'
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Robert                       Informational                     [Page 19]
  1067.  
  1068. RFC 2351                         MATIP                          May 1998
  1069.  
  1070.  
  1071.    X X 0 0 means that the fields `Sender HLD, Recipient HLD' do not exist
  1072.         in this packet. In this case, the exact length of the packet is 6
  1073.         Bytes.
  1074.  
  1075.    X X 1 0 means that the `Sender HLD, Recipient HLD' are carried
  1076.         respectively in bytes 9,10 and 11,12 of this packet. In this
  1077.         case, the exact length of the packet is 10 Bytes.
  1078.  
  1079.    0 0 X X means that the connection request has been transmitted from a
  1080.    host (Mainframe system)
  1081.  
  1082.    0 1 X X means that the connection request has been transmitted from a
  1083.    gateway)
  1084.  
  1085.  
  1086.    Sender HLD
  1087.    HLD of the Type B System sending the Session Open.
  1088.  
  1089.    Recipient HLD
  1090.    HLD of the Type B system to which session opening is destined.
  1091.  
  1092. 10.1.2 Open confirm format (OC)
  1093.  
  1094.    The OC (Open Confirm) command is a response to an SO (Session Open)
  1095.    command and is used to either refuse the session or accept it.
  1096.  
  1097. 10.1.2.1 Refuse the connection
  1098.  
  1099.       0                   1                   2                   3
  1100.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1101.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1102.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  1103.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1104.      |0|1|   Cause   |
  1105.      +-+-+-+-+-+-+-+-+
  1106.  
  1107.    Length of this packet is 5 Bytes.
  1108.  
  1109.    Cause
  1110.    Indicates the cause of the rejection
  1111.  
  1112.        0 0 0 0 0 1 : No Traffic Type matching between Sender & Recipient
  1113.        0 0 0 0 1 0 : Information in SO header incoherent
  1114.        0 0 0 0 1 1 : Type of Protection mechanism are different
  1115.        0 0 0 1 0 0 up to 1 1 1 1 1 1 : R.F.U
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Robert                       Informational                     [Page 20]
  1123.  
  1124. RFC 2351                         MATIP                          May 1998
  1125.  
  1126.  
  1127. 10.1.2.2 Accept the connection
  1128.  
  1129.       0                   1                   2                   3
  1130.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1131.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1132.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 1|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  1133.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1134.      |0 0 0 0 0 0 0 0|
  1135.      +-+-+-+-+-+-+-+-+
  1136.  
  1137.    Length of this packet is 5 Bytes.
  1138.  
  1139. 10.1.3 Session Close (SC)
  1140.  
  1141.    The SC (Session Close) command is used to close an existing MATIP
  1142.    session.
  1143.  
  1144.       0                   1                   2                   3
  1145.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1146.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1147.      |0|0|0|0|0| Ver |1|1 1 1 1 1 0 0|0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1|
  1148.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1149.      | Close  Cause  |
  1150.      +-+-+-+-+-+-+-+-+
  1151.  
  1152.    Close Cause
  1153.    Indicates the reason for the session closure:
  1154.    0 0 0 0 0 0 0 0 : Normal Close
  1155.    1 0 0 0 0 1 0 0 up to 1 1 1 1 1 1 1 1 : Application dependent
  1156.  
  1157.    Other values reserved
  1158.  
  1159. 10.2 Data packet format
  1160.  
  1161.       0                   1                   2                   3
  1162.       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1163.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1164.      |0|0|0|0|0| Ver |0|0 0 0 0 0 0 0|            length             |
  1165.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1166.      |                                                               |
  1167.      |                         Payload                               |
  1168.      |                                                               |
  1169.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1170.  
  1171.    Length
  1172.    This field indicates the number of bytes of the whole packet, header
  1173.    included.
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Robert                       Informational                     [Page 21]
  1179.  
  1180. RFC 2351                         MATIP                          May 1998
  1181.  
  1182.  
  1183.    Payload
  1184.    Type B message formatted according to the IATA standard and
  1185.    conforming to the rules of the accessed TYPE B service
  1186.  
  1187. 11. Security Considerations
  1188.  
  1189.    The security is a very sensitive point for airline industry. Security
  1190.    for the MATIP users can take place at different levels:
  1191.  
  1192.    The ASCU must be defined to enable the session with the host
  1193.    application. The control can be achieved in two ways: either the ASCU
  1194.    address (H1 H2 A1 A2) is defined at the application level by the
  1195.    means of a static configuration, or the ASCU is identified by a User
  1196.    ID / password. In most cases, the User ID and Password are verified
  1197.    by a dedicated software running in the central host. But they can
  1198.    also be checked by the application itself.
  1199.  
  1200.    The MATIP sessions being transported over TCP/IP, It can go through a
  1201.    firewall. Depending on the firewall level, the control can be
  1202.    performed at network (IP addresses) or TCP application layer.
  1203.  
  1204.    For higher level of security all compliant implementations MAY
  1205.    implement IPSEC ESP for securing control packets.  Replay protection,
  1206.    the compulsory cipher suite for IPSEC ESP, and NULL encryption MAY be
  1207.    implemented. Optionally, IPSEC AH MAY also be supported.  All
  1208.    compliant implementations MAY also implement IPSEC ESP for protection
  1209.    of data packets. Replay prevention and integrity protection using
  1210.    IPSEC ESP mandated cipher suit MAY be implemented.  NULL encryption
  1211.    also MAY be supported. Other IPSEC ESP required ciphers MAY also be
  1212.    supported.
  1213.  
  1214. 12. Author's Address
  1215.  
  1216.    Alain Robert
  1217.    S.I.T.A.
  1218.    18, rue Paul Lafargue
  1219.    92904 PARIS LA DEFENSE 10
  1220.    FRANCE
  1221.  
  1222.    Phone: 33 1 46411491
  1223.    Fax: 33 1 46411277
  1224.    EMail: arobert@par1.par.sita.int
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Robert                       Informational                     [Page 22]
  1235.  
  1236. RFC 2351                         MATIP                          May 1998
  1237.  
  1238.  
  1239. 13.  Full Copyright Statement
  1240.  
  1241.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  1242.  
  1243.    This document and translations of it may be copied and furnished to
  1244.    others, and derivative works that comment on or otherwise explain it
  1245.    or assist in its implementation may be prepared, copied, published
  1246.    and distributed, in whole or in part, without restriction of any
  1247.    kind, provided that the above copyright notice and this paragraph are
  1248.    included on all such copies and derivative works.  However, this
  1249.    document itself may not be modified in any way, such as by removing
  1250.    the copyright notice or references to the Internet Society or other
  1251.    Internet organizations, except as needed for the purpose of
  1252.    developing Internet standards in which case the procedures for
  1253.    copyrights defined in the Internet Standards process must be
  1254.    followed, or as required to translate it into languages other than
  1255.    English.
  1256.  
  1257.    The limited permissions granted above are perpetual and will not be
  1258.    revoked by the Internet Society or its successors or assigns.
  1259.  
  1260.    This document and the information contained herein is provided on an
  1261.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  1262.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  1263.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  1264.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  1265.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  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. Robert                       Informational                     [Page 23]
  1291.  
  1292.