home *** CD-ROM | disk | FTP | other *** search
/ Internet Standards / CD2.mdf / ccitt / 1992 / q / q773.asc < prev    next >
Text File  |  1991-12-31  |  10KB  |  217 lines

  1.                 The drawings contained in  this  Recommendation  have  been  done  in
  2.                 Autocad.
  3.                 Recommendation Q.773
  4.                                 TRANSACTION CAPABILITIES FORMATS AND ENCODING
  5.                 1      Introduction
  6.                       This  Recommendation  provides  the  format  and  encoding   of
  7.                 Transaction Capabilities Application Part  (TCAP)  messages.  Formats
  8.                 and Encoding for the Intermediate Service Part (ISP) are for  further
  9.                 study. This Recommendation is based on the encoding rules provided in
  10.                 CCITT   Recommendation   X.209   and   is   consistent   with    that
  11.                 Recommendation.
  12.                 2      Description conventions
  13.                       This Recommendation does not use  Recommendation  X.209  formal
  14.                 description language. This Recommendation uses the description method
  15.                 of other Q.700  series  Recommendations.  Annex  A  uses  the  formal
  16.                 decription language to supplement this Recommendation.
  17.                 3      Standard representation
  18.                 3.1    General message structure
  19.                       Each information element  within  TCAP  message  has  the  same
  20.                 structure. An information element consists  of  three  fields,  which
  21.                 always appear in the following order. The Tag distinguishes one  type
  22.                 from another and governs the  interpretation  of  the  Contents.  The
  23.                 Length specifies the length of the  Contents.  The  Contents  is  the
  24.                 substance of the element,  containing  the  primary  information  the
  25.                 element is intended to convey. Figure 1/Q.733 shows an overview of  a
  26.                 TCAP message and an information element.
  27.                                      Fig. 1/Q.773 /T1120490-88 = 4.5 cm
  28.  
  29.                       Each field is coded  using  one  or  more  octets.  Octets  are
  30.                 labelled as shown in               Figure 2/Q.773. The first octet is
  31.                 the first transmitted. Bits in an octet  are  labelled  as  shown  in
  32.                 Figure 3/Q.773, with bit  A  the  least  significant  and  the  first
  33.                 transmitted.
  34.                                      Fig. 2/Q.773 /T1120500-88 = 4.5 cm
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                 PAGE38  Fascicle VI.9 - Q.733
  71.  
  72.  
  73.                                    Fig. 3/Q.773 /T1120510-88 = 4.5 cm
  74.  
  75.                     The contents of each eleent is either one value (Primitive)  or
  76.               one or more information elements (Constructor), as  shown  in  Figure
  77.               4/Q.773.
  78.                                     Fig. 4/Q.773 /T1120520-88 = 5 cm
  79.  
  80.               3.2    Tag
  81.                     An information element is first interpreted  according  to  its
  82.               position within the syntax of the message. The Tag distinguishes  one
  83.               information element from another and governs  the  interpretation  of
  84.               the Contents. It is one or more octets in length. The Tag is composed
  85.               of "Class", "Form" and "Tag code", as shown in Figure 5/Q.773.
  86.                                     Fig. 5/Q.773 /T1120530-88 = 3 cm
  87.  
  88.               3.2.1  Tag class
  89.                     All Tags use the  two  most  significant  bits  (H  and  G)  to
  90.               indicate the Tag Class. These  bits  are  coded  as  shown  in  Table
  91.               1/Q.773.
  92.                                               TABLE 1/Q.773
  93.                                            Coding of tag class
  94.                      Class             Coding (HG)
  95.               Universal                     00
  96.               Application-wide              01
  97.               Context-specific              10
  98.               Private use                   11
  99.               a 
  100.               all CCITT Recommendations, i.e. across CCITT No. 7 ASEs,  X.400  MHS,
  101.               etc.
  102.                     The Application-wide class is  used  for  information  elements
  103.               that are standardized across all applications (ASEs) using CCITT  No.
  104.               7 TC, i.e. TC-Users.
  105.                     The Context-specific class is  used  for  information  elements
  106.               that are specified within the context of the next higher construction
  107.               and take into account the sequence of other data elements within  the
  108.               same construction. This class may be used for tags in a construction,
  109.               and the tags may be re-used in any other construction.
  110.                     The Private Use class  is  reserved  for  information  elements
  111.               specific to a nation, a network or a private user.  Such  information
  112.               elements are beyond the scope of the TC Recommendations.
  113.                     The Tag codes of the Application-wide  class  not  assigned  in
  114.               this Recommendation are reserved for future use.
  115.               3.2.2  Form of the element
  116.                     Bit F is used to indicate whether the  element  is  "Primitive"
  117.               or "Constructor", as is shown in Table 2/Q.773. A  primitive  element
  118.               is one whose structure is atomic (i.e. one value only). A constructor
  119.               element is one whose content is  one  or  more  information  elements
  120.               which may themselves be constructor elements.
  121.                     Both forms of elements are shown in Figure 4/Q.773.
  122.                                               TABLE 2/Q.773
  123.                                            Coding element form
  124.                   Element form           Coding (F)
  125.               Primitive                        0
  126.               Constructor                      1
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.               Fascicle VI.9 - Q.773               PAGE39
  143.  
  144.  
  145.                      3.2.3  Tag code
  146.                     Bits A to E of the first octet of the Tag  plus  any  extension
  147.               octets represent a Tag code that distinguishes one element type  from
  148.               another of the same class. Tag codes in the range 00000 to  11110  (0
  149.               to 30 decimal) are provided in one octet.
  150.                     The extension mechanism is to code bits A to  E  of  the  first
  151.               octet as 11111. Bit H of the following octet serves as  an  extension
  152.               indication. If bit H of the extension octet is  set  to  0,  then  no
  153.               further octets for this tag are used. If bit  H  is  set  to  1,  the
  154.               following octet is also used for  extension  of  the  Tag  code.  The
  155.               resultant Tag consists of bits A to G of each extension  octet,  with
  156.               bit G of the first extension octet being most significant and  bit  A
  157.               of the last extension octet being least significant. Tag code  31  is
  158.               encoded as 0011111 in bits G to A of a single extension octet. Higher
  159.               tag codes continue from this point using the minimum possible  number
  160.               of extension octets.
  161.                     Figure 6/Q.773 shows the detailed format of the Tag code.
  162.                                   Figure 6/Q.773 /T1106430-87 = 6.5 cm
  163.  
  164.               3.3    Length of the Contents
  165.                     The Length of the Contents is coded to indicate the  number  of
  166.               octets in the Contents. The length does not include the Tag  nor  the
  167.               Length of the Contents octets.
  168.                     The Length of the Contents uses the short, long  or  indefinite
  169.               form. If the length is less than 128 octets, the short form is  used.
  170.               In the short form, bit H is coded 0, and the length is encoded  as  a
  171.               binary number using bits A to G.
  172.                     If the Length of the contents is greater than 127 octets,  then
  173.               the long form of the Length of the Contents is used.  The  long  form
  174.               Length is from 2 to 127 octets long. Bit H  of  the  first  octet  is
  175.               coded 1, and bits A to G of the first octet encode a number one  less
  176.               than the size of the Length in octets as an  unsigned  binary  number
  177.               whose MSB and LSB are bits G and A, respectively. The  length  itself
  178.               is encoded as an unsigned binary number whose MSB and LSB are  bit  H
  179.               of the second octet and bit A of the last octet,  respectively.  This
  180.               binary number should be encoded in the fewest possible  octets,  with
  181.               no leading octets having the value 0.
  182.                     The indefinite form is one octet long and may  (but  need  not)
  183.               be used in place of the short or long form, whenever the element is a
  184.               constructor. It has the value 10000000. When this form is employed, a
  185.               special end-of-contents (EOC) indicator terminates the Contents.
  186.                     There  is  no  notation  for  the  end-of-contents   indicator.
  187.               Although  considered  part  of  the   Contents   syntactically,   the
  188.               end-of-contents indicator has no semantic significance.
  189.                     The representation for  the  end-of-contents  indicator  is  an
  190.               element whose class is universal, whose form is primitive,  whose  ID
  191.               Code has the value 0, and whose Contents is unused and absent:
  192.                      EOC Length Contents
  193.                      00(hex)   00(hex) Absent
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.               PAGE38  Fascicle VI.9 - Q.733
  215.  
  216.  
  217.