home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / protocol / iso / 1022 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  3.3 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!dziuxsolim.rutgers.edu!caip.rutgers.edu!ossi
  2. From: ossi@caip.rutgers.edu (Althea Ossi)
  3. Newsgroups: comp.protocols.iso
  4. Subject: Re: Alternative Encoding Rules
  5. Message-ID: <Aug.20.00.05.32.1992.13927@caip.rutgers.edu>
  6. Date: 20 Aug 92 04:05:33 GMT
  7. References: <1992Aug18.193915.22005@linus.mitre.org>
  8. Organization: Rutgers Univ., New Brunswick, N.J.
  9. Lines: 54
  10.  
  11. jccw@poobah.mitre.org (John C. C. White) writes:
  12.  
  13. >I seem to recall that there was some work going on regarding
  14. >alternatives to the Basic Encoding Rules (BER), to provide a
  15. >more compact (or at least different) transfer syntax. Can anyone 
  16. >point me to some documents or people that can bring me up to
  17. >speed on this?  Or tell me that I'm dreaming, and BER is all
  18. >anyone will ever need?
  19.  
  20. This question is another good candidate for a FAQ.  ISO/IEC/CCITT is
  21. in the process of progressing several alternatives to BER.
  22.  
  23. What is currently called known as ISO 8825 | X.209 (i.e., BER) is being 
  24. renamed ISO 8825-1 | X.209-1.  Several new encoding rules are being
  25. standardized, and will result in documents whose ISO and CCITT names end 
  26. with -2, -3, etc., suffixes (e.g., ISO 8825-2).
  27.  
  28. The new encoding rules of ASN.1 ...
  29.  
  30. ISO 8825-2 | X.209-2 describe the Packed Encoding Rules of ASN.1 (PER).
  31. PER is characterized by the fact that it results in much more compressed
  32. encodings than either BER.  Unlike BER, PER is implicitly typed, and
  33. it relies on the ASN.1 subtype information to minimize the size of encodings
  34. (e.g., a type described as "INTEGER (12345675..12345678)" can be encoded in
  35. PER using 2 bits, whereas with BER it requires 6 bytes.
  36.  
  37. ISO 8825-3 | X.209-3 describe the Canonical and Distinguished Encoding
  38. Rules of ASN.1 (CER & DER).  These are derived from BER and are used in
  39. encoding a message so that there is only one encoded value for a given
  40. message.  For example, in BER a BOOLEAN is encoded as 0 if the value is
  41. FALSE, and non-zero if it is TRUE.  CER & DER on the other hand, state
  42. that if the value is TRUE, it must be encoded as a 1 (hence the name canonical
  43. and distinguished).  So, with CER & DER there is a 1-1 mapping between
  44. the ASN.1-described types and the encoded values, whereas BER gives
  45. more flexibility.  So why two encoding rules to do 1-1 mappings?  DER caters
  46. to applications that have a need for a single way to encode data using
  47. definite length encoding, while CER caters to applications that have a need
  48. for a single way to encode data using indefinite length encoding.
  49.  
  50. DER and CER are both Draft International Standards.  PER is a Committee Draft
  51. that may progress to DIS status in the October/November timeframe.
  52.  
  53. There is another set of encoding rules, the Light Weight Encoding Rules
  54. of ASN.1 (LWER) that is being considered for standardization.  Its is
  55. intended to be must faster to encode PDUs in LWER than BER, at the expense
  56. of potentially generating larger PDUs.  LWER is not getting as much attention
  57. in ISO/IEC/CCITT as the other encoding rules.  Among the reasons for this is
  58. that many question the need for such a set of encoding rules, and that there
  59. is more urgent need for the other encoding rules.
  60.  
  61. =====================================|========================================
  62. Bancroft Scott                 |        Open Systems Solutions, Inc.
  63. 609-987-9073                 |        Princeton, N.J.
  64. =====================================|========================================
  65.