home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_j_p / draft-ietf-mixer-fax-01.txt < prev    next >
Text File  |  1997-09-18  |  11KB  |  379 lines

  1. draft              A MIME body part for Group 3 FAX             Nov 95
  2.  
  3.  
  4.                          A MIME body part for FAX
  5.  
  6.                      Mon Aug 19 14:32:21 MET DST 1996
  7.  
  8.  
  9.                          Harald Tveit Alvestrand
  10.                                  UNINETT
  11.                       Harald.T.Alvestrand@uninett.no
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.     Status of this Memo
  19.  
  20.     This draft document is being circulated for comment.
  21.  
  22.  
  23.  
  24.     Please send comments to the author, or to the MIXER list <ietf-
  25.     mixer@innosoft.com>.
  26.  
  27.     The following text is required by the Internet-draft rules:
  28.  
  29.     This document is an Internet Draft.  Internet Drafts are working
  30.     documents of the Internet Engineering Task Force (IETF), its
  31.     Areas, and its Working Groups. Note that other groups may also
  32.     distribute working documents as Internet Drafts.
  33.  
  34.     Internet Drafts are draft documents valid for a maximum of six
  35.     months. Internet Drafts may be updated, replaced, or obsoleted by
  36.     other documents at any time.  It is not appropriate to use
  37.     Internet Drafts as reference material or to cite them other than
  38.     as a "working draft" or "work in progress."
  39.  
  40.     Please check the I-D abstract listing contained in each Internet
  41.     Draft directory to learn the current status of this or any other
  42.     Internet Draft.
  43.  
  44.     The file name of this version is draft-ietf-mixer-fax-01.txt
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. Alvestrand                  Expires May 96                    [Page 1]
  54.  
  55. draft              A MIME body part for Group 3 FAX             Nov 95
  56.  
  57.  
  58.     1.  Introduction
  59.  
  60.     This document contains the definitions, originally contained in
  61.     RFC 1494, on how to carry CCITT G3Fax in MIME, and how to
  62.     translate it to its X.400 representation.
  63.  
  64.     This document is an Experimental standard; if it turns out to be
  65.     useful and widely deployed, it can be moved onto the standards
  66.     track.
  67.  
  68.     NOTE: At the moment, this format does not seem appropriate for a
  69.     "general purpose image format for the Internet", if such a beast
  70.     can exist. It exists only to carry information that is already in
  71.     G3 Fax format, and may be usefully converted to other formats when
  72.     used in specific contexts.
  73.  
  74.  
  75.     2.  The image/g3fax content-type
  76.  
  77.     This content-type is defined to carry G3 Facsimile byte streams.
  78.  
  79.     In general, a G3Fax image contains 3 pieces of information:
  80.  
  81.      (1)   A set of flags indicating the particular coding scheme.
  82.            CCITT Recommendation T.30 defines how the flags are
  83.            transmitted over telephones.  In this medium, the flags are
  84.            carried as parameters in the MIME content-type header
  85.            field.
  86.  
  87.      (2)   A structure that divides the bits into pages.  CCITT
  88.            recommendation T.4 describes a "return to command mode"
  89.            string; this is used here to indicate page breaks.
  90.  
  91.      (3)   For each page, a sequence of bits that form the encoding of
  92.            the image.  CCITT recommendation T.4 defines the bit image
  93.            format.  This is used without change.  The highest bit of
  94.            the first byte is the first bit of the T.4 bitstream.
  95.  
  96.     2.1.  G3Fax Parameters
  97.  
  98.     The following parameters are defined:
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. Alvestrand                  Expires May 96                    [Page 2]
  108.  
  109. draft              A MIME body part for Group 3 FAX             Nov 95
  110.  
  111.  
  112.      (1)   page-length - possible values: A4, B4 and Unlimited
  113.  
  114.      (2)   page-width - possible values: A3, A4, B4
  115.  
  116.      (3)   encoding - possible values: 1-dimensional, 2-dimensional,
  117.            Uncompressed
  118.  
  119.      (4)   resolution - possible values: Fine, Coarse
  120.  
  121.      (5)   DCS - a bit string, represented in Base64.
  122.  
  123.      (6)   pages - an integer, giving the number of pages in the
  124.            document
  125.  
  126.     If nothing is specified, the default parameter settings are:
  127.  
  128.       page-length=A4
  129.       page-width=A4
  130.       encoding=1-dimensional
  131.       resolution=Coarse
  132.  
  133.     It is possible (but misleading) to view the representation of
  134.     these values as single-bit flags. They correspond to the following
  135.     bits of the T.30 control string and X.400 G3FacsimileParameters:
  136.  
  137.     Parameter               T.30 bit        X.400 bit
  138.  
  139.     page-length=A4             no bit set
  140.     page-length=B4          19              21
  141.     page-length=Unlimited   20              20
  142.  
  143.     page-width=A4              no bit set
  144.     page-width=A3           18              22
  145.     page-width=B4           17              23
  146.  
  147.     encoding=1-dimensional     no bit set
  148.     encoding=2-dimensional  16              8
  149.     encoding=Uncompressed   26              30
  150.  
  151.     resolution=Coarse          no bit set
  152.     resolution=Fine         15              9
  153.  
  154.     The reason for the different bit numbers is that X.400 counts bits
  155.     in an octet from the MSB down to the LSB, while T.30 uses the
  156.  
  157.  
  158.  
  159.  
  160.  
  161. Alvestrand                  Expires May 96                    [Page 3]
  162.  
  163. draft              A MIME body part for Group 3 FAX             Nov 95
  164.  
  165.  
  166.     opposite numbering scheme.
  167.  
  168.     If any bit but these are set in the Device Control String, the DCS
  169.     parameter should be supplied.
  170.  
  171.  
  172.     2.2.  Content Encoding
  173.  
  174.     X.400 defines the g3-facsimile data stream as a SEQUENCE of BIT
  175.     STRINGs. Each BIT STRING is a page of facsimile image data,
  176.     encoded as defined by Recommendation T.4.  The following content
  177.     encoding is reversible between MIME and X.400 and ensures that
  178.     page breaks are honored in the MIME representation.
  179.  
  180.     An EOL is defined as a bit sequence of
  181.  
  182.        000000000001 (eleven zeroes and a one).
  183.  
  184.  
  185.     Each page of the message is delimited by a sequence of six (6)
  186.     EOLs that MUST start on a byte boundary.  The image bit stream is
  187.     padded with zeroes as needed to achieve this alignment.
  188.  
  189.     Searching for the boundary is a matter of searching for the byte
  190.     sequence (HEX) 00 10 01 00 10 01 00 10 01, which cannot occur
  191.     inside the image.
  192.  
  193.     See Section 7.5 for the algorithm on conversion between this
  194.     encoding and the X.400 encoding.
  195.  
  196.     The Base64 content-transfer-encoding is appropriate for carrying
  197.     this content-type.
  198.  
  199.  
  200.     3.  g3-facsimile - image/g3fax
  201.  
  202.     X.400 Body part: g3-facsimile
  203.     MIME Content-Type: image/g3fax
  204.     Conversion Type: nearly Byte copy
  205.     Comments:
  206.  
  207.     The Parameters of the X.400 G3Fax body part are mapped to the
  208.     corresponding Parameters on the MIME Image/G3Fax body part and
  209.     vice versa.  Note that:
  210.  
  211.  
  212.  
  213.  
  214.  
  215. Alvestrand                  Expires May 96                    [Page 4]
  216.  
  217. draft              A MIME body part for Group 3 FAX             Nov 95
  218.  
  219.  
  220.      (1)   If fineResolution is not specified, pixels will be twice as
  221.            tall as they are wide
  222.  
  223.      (2)   If any bit not corresponding to a specially named option is
  224.            set in the G3Fax NonBasicParameters, the "DCS" parameter
  225.            must be used.
  226.  
  227.      (3)   Interworking is not guaranteed if any bit apart from those
  228.            specially named are used in the NonBasicParameters
  229.  
  230.     From X.400 to G3Fax, the body is created in the following way:
  231.  
  232.      (1)   Any trailing EOL markers on each bitstring is removed. The
  233.            bit order is changed to conform to the most common Internet
  234.            encoding (highest bit of first byte = first bit of the
  235.            G3Fax). The bitstring is padded to a byte boundary.
  236.  
  237.      (2)   6 consecutive EOL markers are appended to each bitstring.
  238.  
  239.      (3)   The padded bitstrings are concatenated together
  240.  
  241.     An EOL marker is the bit sequence 000000000001 (11 zeroes and a
  242.     one).
  243.  
  244.     From G3Fax to X.400, the body is created in the following way:
  245.  
  246.      (1)   The body is split into bitstrings at each occurrence of 6
  247.            consecutive EOL markers. Trailing EOLs must NOT be removed,
  248.            since the X.400 Implementor Guide recommends that each page
  249.            should end with 6 consecutive EOLs.  (This is a change from
  250.            RFC 1494).
  251.  
  252.      (2)   Each bitstring is made into an ASN.1 BITSTRING, reversing
  253.            the order of bits within each byte to conforom to the X.400
  254.            Implementors Guide recommendation for bit order in the
  255.            G3Fax body part.
  256.  
  257.      (3)   The bitstrings are made into an ASN.1 SEQUENCE, which forms
  258.            the body of the G3Fax body part.
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. Alvestrand                  Expires May 96                    [Page 5]
  270.  
  271. draft              A MIME body part for Group 3 FAX             Nov 95
  272.  
  273.  
  274.     4.  Usability of G3Fax body parts
  275.  
  276.     This section is not part of the standard (if this becomes a
  277.     standard), but is intended as guidance for people implementing
  278.     G3Fax handling, so that they know a little about what to expect.
  279.  
  280.     The DCS bitstring is a LONG thing; the T.30 Recommendation (1993)
  281.     gives 67 bits with specific functions, SG8 Report R33 extends this
  282.     to 75 bits, and Report R41 (approved in 1995) extends it to 79
  283.     bits. (For curiosity - bit 68 says that the coding is JPEG; bit 27
  284.     is "error correcting mode). No sane implementor will send such
  285.     things without being able to negotiate them down if the recipient
  286.     doesn't support it, but there is no guarantee that messages with
  287.     such bits set in the DCS won't arrive through X.400.
  288.  
  289.     The ISO P2 profile from 1995 [PROFILE] says that the profile makes
  290.     support for reception of two-dimensional and fine-resolution
  291.     mandatory if g3-facsimile is supported at all. Research by Andrew
  292.     Gordon of Net-Tel indicates that it is easy for an access unit to
  293.     support fine resolution, unlimited length and B4 length, while
  294.     support for B4 width is nearly impossible, and A3 width is hard.
  295.  
  296.     Another interesting point is that some fax machines have trouble
  297.     if the scan lines do not contain exactly the declared number of
  298.     pixels on each scan line, so "omitting right-hand white space" is
  299.     likely to give trouble.
  300.  
  301.  
  302.  
  303.     5.  Security considerations
  304.  
  305.     There are no known security issues specific to the FAX body part.
  306.  
  307.  
  308.     6.  REFERENCES
  309.  
  310.  
  311.     [MIME]
  312.          RFC 1521: N. Borenstein, N. Freed, "MIME  (Multipurpose
  313.          Internet Mail Extensions) Part One:  Mechanisms for
  314.          Specifying and Describing the Format of Internet Message
  315.          Bodies", 09/23/1993
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323. Alvestrand                  Expires May 96                    [Page 6]
  324.  
  325. draft              A MIME body part for Group 3 FAX             Nov 95
  326.  
  327.  
  328.     [GUIDE]
  329.          X.400 Implementor's Guide, version 8
  330.  
  331.  
  332.     [PROFILE]
  333.          ISO/IEC ISP 12062-2: 1995:
  334.  
  335.  
  336.     [T.30]
  337.          ITU-T Recommendation T.30 (1993): Procedures for document
  338.          facsimile transmission in the general switched telephone
  339.          network
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377. Alvestrand                  Expires May 96                    [Page 7]
  378.  
  379.