[Docs] [txt|pdf] [Tracker] [Email] [Nits]

Versions: 00

INTERNET-DRAFT                             J. Ott/C. Perkins/D. Kutscher
Expires: December 1999       Universitaet Bremen/UCL/Universitaet Bremen
                                                               June 1999


                 A Message Bus for Conferencing Systems
                 draft-ott-mmusic-mbus-transport-00.txt


Status of this memo

   This document is an Internet-Draft and is in full conformance with
   all provisions of Section 10 of RFC2026.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF), its areas, and its working groups.  Note that
   other groups may also distribute working documents as Internet-
   Drafts.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet- Drafts as reference
   material or to cite them other than as "work in progress."

   The list of current Internet-Drafts can be accessed at
   http://www.ietf.org/ietf/1id-abstracts.txt

   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html.

Abstract


   In a variety of conferencing scenarios, a local communication channel
   is desirable for conference-related information exchange between co-
   located but otherwise independent application entities, for example
   those taking part in application sessions that belong to the same
   conference.  In loosely coupled conferences such a mechanism allows
   for coordination of applications entities to e.g. implement
   synchronization between media streams or to configure entities
   without user interaction. It can also be used to implement tightly
   coupled conferences enabling a conference controller to enforce
   conference wide control within a end system.

   The local conference Message Bus (Mbus) provides a means to achieve
   the necessary amount of coordination between co-located conferencing
   applications for virtually any type of conference as postulated in a
   companion requirement draft [to be specified]. The Message Bus
   comprises two logically distinct parts: a message transport and
   addressing infrastructure and a set of common as well as media tool
   specific messages.  This document deals with message addressing,
   transport, and security issues and defines the message syntax for the
   Mbus.  It does not define application oriented semantics and

Ott/Perkins/Kutscher                                            [Page 1]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   procedures for using the message bus.  The common procedures for Mbus
   operation as well as the common set of application/media specific
   messages are introduced in a companion Internet draft[9].

   This document is intended for discussion in the Multiparty Multimedia
   Session Control (MMUSIC) working group of the Internet Engineering
   Task Force.  Comments are solicited and should be addressed to the
   working group's mailing list at confctrl@isi.edu and/or the authors.


1.  Introduction


1.1.  Background


   The requirement specification as defined in [10] provides a set of
   scenario descriptions for the usage of a local coordination
   infrastructure. The Message Bus defined in this and a companion
   document provides a suitable means for local communication that
   serves all of the purposes mentioned in the requirement draft.

1.2.  Purpose


   Two components constitute the Message Bus: the (lower level) message
   passing mechanisms and the (higher level) messages and their
   semantics.

   The purpose of this document is to define the characteristics of the
   basic Mbus message passing mechanism which is common to all Mbus
   implementations.  This includes the specification of

   o    the generic Mbus message format;

   o    the addressing concept for application entities;

   o    the transport mechanisms to be employed for conveying messages
        between (co-located) application entities;

   o    the security concept to prevent misuse of the Message Bus (as
        taking control of another user's conferencing environment); and

   o    the details of the Mbus message syntax.

1.3.  Terminology for requirement specifications


   In this document, the key words "MUST", "MUST NOT", "REQUIRED",
   "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
   and "OPTIONAL" are to be interpreted as described in RFC 2119 [1] and
   indicate requirement levels for compliant Mbus implementations.


Ott/Perkins/Kutscher                                            [Page 2]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

1.4.  Definition of terms



2.  General Outline


   The Mbus is supposed to operate in a variety of scenarios as outlined
   in the companion requirement document [10].  From these scenarios,
   the following (minimum) requirements are derived that have to be met
   by the Mbus design to provide a suitable local communication
   infrastructure.

   Local coordination involves a widely varying number of entities: some
   messages may need to be destined for all local application entities,
   such as membership information, floor control notifications,
   dissemination conference state changes, etc.  Messages may also be
   targeted at a certain application class (e.g. all whiteboards or all
   audio tools) or agent type (e.g. all user interfaces rather than all
   media engines).  Or there may be any (application- or message-
   specific) subgrouping defining the intended recipients, e.g. messages
   related to media synchronization.  Finally, there will be messages
   that are directed to a single entity, for example, specific
   configuration settings that a conference controller sends to a
   application entity or query-response exchanges between any local
   server and its clients.

   The Mbus concept as presented here satisfies these different
   communication models by defining different message transport
   mechanisms (defined in section 3.4) and by providing a flexible
   addressing scheme (defined in section 3.2).

   Furthermore, Mbus messages exchanged between application entities may
   have different reliability requirements (which are typically derived
   from their semantics).  Some messages will have a rather
   informational character conveying ephemeral state information (which
   is refreshed/updated periodically), such as the volume meter level of
   an audio receiver entity to be displayed by its user interface agent.
   Certain Mbus messages (such as queries for parameters or queries to
   local servers) may require a response from the peer(s) thereby
   providing an explicit acknowledgment at the semantic level on top of
   the Mbus.  Other messages will modify the application or conference
   state and hence it is crucial that they do not get lost.  The latter
   type of message has to be delivered reliably to the recipient,
   whereas message of the first type do not require reliability
   mechanisms at the Mbus transport layer. For messages confirmed at the
   application layer it is up to the discretion of the application
   whether or not to use a reliable transport underneath.

   In some cases, application entities will want to tailor the degree of
   reliability to their needs, others will want to rely on the
   underlying transport to ensure delivery of the messages -- and this
   may be different for each Mbus message.  The Mbus message passing

Ott/Perkins/Kutscher                                            [Page 3]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   mechanism described in this paper provides a maximum of flexibility
   by providing reliable transmission achieved through transport-layer
   acknowledgments (in case of point-to-point communications only) as
   well as unreliable message passing (for unicast, local multicast, and
   local broadcast).  We address this topic in section 3.2.

   Finally, accidental or malicious disturbance of Mbus communications
   through messages originated by applications from other users needs to
   be prevented.  Accidental reception of Mbus messages from other users
   may occur if either two users share the same workstation for
   conferencing or are using end systems spread across the same physical
   network: in either case, the Mbus multicast address and the port
   number may match leading to reception of the other party's Mbus
   messages in addition to a user's own ones.  Malicious disturbance may
   happen because of applications multicasting (e.g. at a global scope)
   or unicasting Mbus messages (which could contain a "TERMINATE
   CONFERENCE" command).  To eliminate the possibility of receiving
   bogus Mbus messages, the Mbus protocol therefore contains message
   digests for authentication.  Furthermore, the Mbus allows for
   encryption to ensure privacy and thus enable using the Mbus for local
   key distribution and other functions potentially sensitive to
   eavesdropping.  This document defines the framework for configuring
   Mbus applications with regard to security parameters in appendix B
   (Mbus configuration).


3.  Message Bus Specification


3.1.  Message Format


   A conference coordination message comprises a header and a body. The
   header is used to indicate how and where a message should be
   delivered, the body provides information and commands to the
   destination entity. The following information is included in the
   header:

   o    The MsgDigest is a Base64-encoded [3] calculated hash value of
        the entire message (starting from the ProtocolID field) as
        described in appendices A (Algorithms) and C (Mbus
        configuration).

   o    A fixed ProtocolID field identifies the version of the message
        bus protocol used. The protocol defined in this document is
        ``mbus/1.0''.


   o    A sequence number SeqNum is contained in each message. The first
        message sent by a source SHOULD have SeqNum equal to zero, and
        it MUST increment by one for each message sent by that source. A
        single sequence number is used for all messages from a source,
        irrespective of the intended recipients and the reliability mode

Ott/Perkins/Kutscher                                            [Page 4]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

        selected. SeqNums are decimal numbers in ASCII representation.


   o    The TimeStamp field is also contained in each message and SHOULD
        contain a decimal number representing the time at message
        construction in seconds since 00:00:00, UTC, January 1, 1970.


   o    A MessageType field indicates the kind of message being sent.
        The value ``R'' indicates that the message is to be transmitted
        reliably and MUST be acknowledged by the recipient, ``U''
        indicates an unreliable message which MUST NOT be acknowledged.


   o    The SrcAddr field identifies the sender of a message. This MUST
        be a complete address, with all address elements specified. The
        addressing scheme is described in section 3.2.



   o    The DestAddr field identifies the intended recipient(s) of the
        message. This field MAY contain wildcards by omitting address
        element and hence address any number (including zero) of
        application entities. The addressing scheme is described in
        section 3.2.


   o    The AckList field comprises a list of SeqNums for which this
        message is an acknowledgment. See section 3.3 for details.

   The header is followed by the message body which contains one or more
   messages to be delivered to the destination entity. The syntax for a
   complete message is given in section 3.5 (Message syntax).


3.2.  Addressing


   Each entity on the message bus SHOULD respond to messages sent to one
   (or more) addresses. Addresses are sequences of address elements that
   are tag/value pairs. They are written as:
                         (tag:value tag:value ...)

   Tags and values MUST consist of alphanumeric characters (of UTF-8's
   US ASCII subset) only. Each entity has a fixed sequence of address
   elements constituting its address and MUST only process messages sent
   to addresses that consist of a subset of its own address elements.
   Each element value in this subset must match the correspoding value
   of the receiver's address element value. The order of address
   elements in an address sequence is not relevant. For example, an
   entity with an address of: (conf:test media:audio module:engine
   app:rat instance:4711) will process messages sent to (media:audio
   module:engine) or (module:engine) but must neglect messages sent to

Ott/Perkins/Kutscher                                            [Page 5]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   (conf: test media:audio module:engine app:rat instance:4711 foo:bar)
   or (foo:bar)

   A message that should be processed by all entities would require an
   empty sequence of address elements.

   For conferencing application 5 address element keys are predefined:

          conf       conference identifier
          media      media type processed by application
          module     module type of Mbus entity in a application
          app        application name
          instance   application instance


   The conf element is used to designate the name of a conference in
   order to distinguish between entities that are present in more than
   one conference. See section 3.4 for further notes concerning multiple
   presences using the Mbus.

   The media element identifies the type of media processed by an
   application. Currently defined values are:

            audio        An RTP audio stream
            video        An RTP video stream
            workspace    A shared workspace
            whiteboard   A shared whiteboard
            editor       A shared text editor
            sap          A session announcement tool, using SAP
            sip          A session invitation tool, using SIP
            h323         An ITU-T H.323 conference controller
            rtsp         An RTSP session controller
            control      A local coordination entity


   Other values are likely to be defined at a later date.

   The module element defines a logical part of an application.  The
   value `ui' denotes the user-interface of an application, and the
   value `engine' defines a media/protocol engine, and `transcoder'
   defines a media transcoder. Other values may be defined in future.

   The app element identifies the application being used (e.g.: rat,
   vic, etc.).

   The instance element is used to distinguish several instances of the
   same application. This is a per-instance-unique identifier, which is
   not necessarily an integer. Many Unix applications will use the
   process-id (PID) number, although this is not a requirement.  Note
   that if an end system is spread across several hosts, the instance
   MUST NOT be the process-id, unless e.g.. the host name or its IP
   address are included as well. The companion draft "The Message Bus:
   Messages and Procedures" [9] defines a bootstrap procedure ensuring

Ott/Perkins/Kutscher                                            [Page 6]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   that entities can track the abandoning and restarting of application
   instances as long as unique instance values are being used.

   The following examples illustrate how to make use of the addresses:

   +----------------------------+--------------------------------------+
   |(conf:test media:audio      | The user interface of                |
   |module:ui app:rat           | the rat application with             |
   |instance124)                |  instance-id 124 taking              |
   |                            | part in conference test              |
   +----------------------------+--------------------------------------+
   |(media:workspace module:ui) | The user interfaces of               |
   |                            | all workspace applications           |
   +----------------------------+--------------------------------------+
   |(media:audio)               |   All audio applications             |
   +----------------------------+--------------------------------------+
   |(app:rat)                   | All instances of the rat application |
   +----------------------------+--------------------------------------+
   |()                          | All entities                         |
   +----------------------------+--------------------------------------+

3.3.  Reliability


   While most messages are expected to be sent using unreliable
   transport, it may be necessary to deliver some messages reliably.
   Reliability can be selected on a per message basis by means of the
   MessageType field.  Reliable delivery is supported for messages with
   a single recipient only; i.e., all components of the DestAddr field
   have to be specified. An entity can thus only send reliable messages
   to known addresses, i.e. it can only send reliable messages to
   entities that have announced their existence on the Mbus. (See the
   semantics and procedures specification in [9].) A receiving entity
   MUST only process and acknowledge reliable message if the destination
   address does exactly match its own source address (the destination
   address MUST not be a subset of the source address).

   Each message is tagged with a message sequence number.  If the
   MessageType is ``R'', the sender expects an acknowledgment from the
   recipient within a short period of time.  If the acknowledgment is
   not received within this interval, the sender SHOULD retransmit the
   message (with the same message sequence number), increase the
   timeout, and restart the timer.  Messages SHOULD be retransmitted a
   small number of times before the recipient is considered to have
   failed.  If the message is not delivered successfully, the sending
_________________________
Disallowing reliable message delivery for messages sent to  multi-
ple  destinations is motivated by simplicity of the implementation
as well as the protocol.  Although ACK implosions are  not  really
an  issue and losses are rare, achieving reliability for such mes-
sages would require full knowledge of the membership for each sub-
group which is deemed too much effort.


Ott/Perkins/Kutscher                                            [Page 7]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   application is notified.  In this case, it is up to this application
   to determine the specific action(s) (if any) to be taken.

   Reliable messages are acknowledged by adding their SeqNum to the
   AckList field of a message sent to the originator of the reliable
   message.  Multiple acknowledgments MAY be sent in a single message.
   It is possible to either piggy-back the AckList onto another message
   sent to the same destination, or to send a dedicated acknowledgment
   message, with no other commands.

   The precise procedures are as follows:

   Sender:
        A sender A of a reliable message M to receiver B SHOULD transmit
        the message via multicast or via unicast, keep a copy of M,
        initialize a retransmission counter N to '1', and start a
        retransmission timer T (initialized to T_r).  If an
        acknowledgment is received from B, timer T MUST BE cancelled and
        the copy of M is discarded.  If T expires, the message M SHOULD
        BE retransmitted, the counter N SHOULD BE incremented by one,
        and the timer SHOULD BE restarted (set to N*T_r).  If N exceeds
        the retransmission threshold N_r, the transmission is assumed to
        have failed, further retransmission attempts MUST NOT be
        undertaken, the copy of M SHOULD BE discarded, and the sending
        application SHOULD BE notified.

   Receiver:
        A receiver B of a reliable message from a sender A SHOULD
        acknowledge receipt of the message within a time period T_c<T_r.
        This MAY be done by means of a dedicated acknowledgment message
        or by piggy-backing the acknowledgment on another message
        addressed only to A.

   Receiver optimization: gathering and piggy-backing ACKs
        In a simple implementation, B may choose to immediately send a
        dedicated acknowledgment message.  However, for efficiency, it
        could add the SeqNum of the received message to a sender-
        specific list of acknowledgments; if the added SeqNum is the
        first acknowledgment in the list, B SHOULD start an
        acknowledgment timer TA (initialized to T_c).  When the timer
        expires, B SHOULD create a dedicated acknowledgment message and
        send it to A.  If B is to transmit another Mbus message
        addressed only to A, it should piggy-back the acknowledgments
        onto this message and cancel TA.  In either case, B should store
        a copy of the acknowledgment list as a single entry in the per-
        sender copy list, keep this entry for a period T_k, and empty
        the acknowledgment list.  In case any of the messages kept in an
        entry of the copy list is received again from A, the entire
        acknowledgment list stored in this entry is scheduled for
        (re-)transmission following the above rules.

   Constants:
        Suggested values are T_r=100ms, N_r=3, T_c=70ms,

Ott/Perkins/Kutscher                                            [Page 8]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

        T_k=((N_r)*(N_r+1)/2)*T_r.

3.4.  Transport


   All messages are transmitted as UDP messages with two ways of sending
   messages being possible:

   1)   local multicast (host-local or link-local, see Appendix ``Mbus
        configuration'') to a fixed, yet to be assigned link-local
        address of the administratively scoped multicast space as
        described in RFC 2365 [8]. There will also be fixed, registered
        port number that all Mbus entities MUST use.

   2)   Directed unicast via UDP to the port of a specific application.
        This still requires the DestAddr field to be filled in properly.
        Directed unicast is intended for use in situations where node
        local multicast is not available.  It MAY also be used by Mbus
        implementations for delivering messages addressed at a single
        application entity only -- the address of which the Mbus
        implementation has learned from other message exchanges before.

   If a single multimedia conferencing endpoint is distributed across
   several co-located hosts, link local scope SHOULD be used for
   multicasting Mbus messages that potentially have recipients on the
   other hosts.  The Mbus protocol is not intended (and hence
   deliberately not defined) for communication between hosts not on the
   same link.

   Since messages are transmitted in UDP datagrams, a maximum size of 64
   KBytes MUST NOT be exceeded. It is RECOMMENDED that applications
   using a non host-local scope do not exceed a message size of the
   network's MTU.

3.5.  Message Syntax


3.5.1.  Message Encoding


   All messages MUST use the UTF-8 character encoding. Note that US
   ASCII is a subset of UTF-8 and requires no additional encoding, and
   that a message encoded with UTF-8 will not contain zero bytes.

   Each Message MAY be encrypted using a secret key algorithm as defined
   in appendix A (Algorithms).

3.5.2.  Message Header


   A message starts with the header. The first field in the header is
   the message digest calculated using a keyed hash algorithm as
   described in appendix A followed by a newline character. The other

Ott/Perkins/Kutscher                                            [Page 9]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   fields in the header are separated by white space characters, and
   followed by a newline. The format of the header is as follows:


           <MsgDigest>
           mbus/1.0 <SeqNum> <TimeStamp> <MessageType> <SrcAddr> <DestAddr> \
                    <AckList>


   The header fields are defined in section 3.1.

3.5.3.  Command Syntax


   The header is followed by zero, or more, commands to be delivered to
   the application(s) indicated by the DestAddr field. Each message
   comprises a command followed by a list of zero, or more, parameters,
   and is followed by a newline.

           command ( parameter parameter ... )

   The command name MUST be a `symbol' as defined in the following
   table. The parameters MAY be any data type drawn from the following
   table:

   +---------+--------------------+---------------------------------+
   |DataType | Syntax             | Description                     |
   +---------+--------------------+---------------------------------+
   |Integer  | "-"[0-9]+          |                                 |
   |Float    | "-"[0-9]+"."[0-9]+ |                                 |
   |String   | """..."""          | See below for escape characters |
   |         |                    |                                 |
   |List     | (DataType DataType |                                 |
   |         | ...)               |                                 |
   |Symbol   | [A-Za-z_][A-Za-    | A predefined protocol value     |
   |         | z0-9_-.]+          |                                 |
   |Data     | "<"data">"         | Opaque Data                     |
   +---------+--------------------+---------------------------------+

   Boolean values are encoded as an integer, with the value of zero
   representing false, and non-zero representing true (as in the `C'
   programming language).

   String parameters in the payload MUST be enclosed in the double quote
   ('') character. Within strings, the escape character is the backslash
   (\), and the following escape sequences are defined:








Ott/Perkins/Kutscher                                           [Page 10]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   +----------------+-----------+
   |Escape Sequence |  Meaning  |
   +----------------+-----------+
   |      \\        |    \      |
   |      \"        |     "     |
   |      \n        | <newline> |
   +----------------+-----------+

   List parameters do have to be homogeneous lists.

   Opaque data is represented as Base64-encoded [3] character strings
   surrounded by "<" and ">"

3.6.  Messages


   The specific messages applications will send using the Mbus are not
   defined in this document. Currently a companion document [9] is
   produced defining classes of messages which are of use in certain
   application areas. Additional documents are expected to follow.

4.  Authors' Addresses



   Joerg Ott <jo@tzi.org>
   Universitaet Bremen, TZI, MZH 5180
   Bibliothekstr. 1
   D-28359 Bremen
   Germany
   voice +49 421 201-7028
   fax +49 421 218-7000


   Colin Perkins <c.perkins@cs.ucl.ac.uk>
   Department of Computer Science
   University College London
   Gower Street
   London WC1E 6BT
   United Kingdom


   Dirk Kutscher <dku@tzi.org>
   Universitaet Bremen, TZI, MZH 5160
   Bibliothekstr. 1
   D-28359 Bremen
   Germany
   voice +49 421 218-7595
   fax +49 421 218-7000





Ott/Perkins/Kutscher                                           [Page 11]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

5.  References


   [1]  S. Bradner, ``Key words for use in RFCs to Indicate Requirement
        Levels'' RFC 2119, March 1997

   [2]  H. Krawczyk, M. Bellare, R. Canetti, ``HMAC: Keyed-Hashing for
        Message Authentication'', RFC 2104, February 1997

   [3]  N. Borenstein, N. Freed ``MIME (Multipurpose Internet Mail
        Extensions) Part One: Mechanisms for Specifying and Describing
        the Format of Internet Message Bodies'', RFC 1521, September
        1993

   [4]  Mark Handley, Jon Crowcroft, Carsten Bormann, Joerg Ott.  ``The
        Internet Multimedia Conferencing Architecture,'' Internet Draft
        draft-ietf-mmusic-confarch-01.txt, Work in Progress, June 1999.

   [5]  H. Schulzrinne, S. Casner, R. Frederick, V. Jacobson, ``RTP: A
        Transport Protocol for Real-Time Applications,'' RFC 1889,
        January 1996.

   [6]  Mark Handley, Henning Schulzrinne, Eve Schooler, Jonathan
        Rosenberg, ``SIP: Session Initiation Protocol'', Internet Draft
        draft-ietf-mmusic-sip-07.txt, Work in Progress, July 16, 1998

   [7]  M. Handley, V. Jacobson, ``SDP: Session Description Protocol'',
        RFC 2327, April 1998

   [8]  D. Meyer ``Administratively Scoped IP Multicast'', RFC 2365,
        July 1998

   [9]  J. Ott, C. Perkins, and D. Kutscher, ``The Message Bus: Messages
        and Procedures'', Internet Draft draft-ietf-mmusic-mbus-
        semantics-00.txt, Work in Progress, August 1998.

   [10] J. Ott, C. Perkins, and D. Kutscher, ``Requirements for Local
        Conference Control'', Internet Draft draft-ott-mmusic-mbus-
        semantics-00.txt, Work in Progress, August 1998.

Appendix A: Algorithms


   Message Authentication
        Either MD5 or SHA-1 SHOULD be used for message authentication
        codes (MACs).  An implementation MAY provide SHA-1, whereas MD5
        MUST be implemented. To generate keyed hash values the algorithm
        described in [2] MUST be applied with hash values truncated to
        96 bits (12 bytes). The resulting hash values MUST be Base64
        encoded (16 characters). The HMAC algorithm works with both, MD5
        and SHA-1.

        HMAC values, regardless of the algorithm, MUST therefore always

Ott/Perkins/Kutscher                                           [Page 12]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

        consist of 16 Base64-encoded characters.

        Hash keys MUST have a length of 96 bit (12 bytes), that are 16
        Base64-encoded characters.

   Encryption
        Either DES, 3DES (triple DES) or IDEA SHOULD be used for
        encryption. Encryption MAY be neglected for applications, e.g.
        in situations where license regulations, export or encryption
        laws would be offended otherwise. However, the implementation of
        DES is RECOMMENDED as a baseline. DES implementations MUST use
        the DES Cipher Block Chaining (CBC) mode. For algorithms
        requiring en/decryption data to be padded to certain boundaries
        octets with a value of 0 SHOULD be used for padding characters.
        The padding characters MUST be appended after calculating the
        message digest when encoding and MUST be erased before
        recalculating the message digest when decoding.  IDEA uses
        128-bit keys (24 Base64-encoded characters). DES SHOULD be used
        with 56-bit keys (12 Base64-encoded characters).


   The mandatory subset of algorithms that MUST be provided by
   implementation is DES and MD5.

   See appendix B for a specification of notations for Base64-strings.

Appendix B: Mbus configuration


   An implementation MUST be configurable by the following parameters:

   Encryption key   The secret key used for message encryption.
   Hash key         The hash key used for message authentication.
   Scope            The Internet scope to be used for sent messages.

   The logical structure (no file format specification) of the specified
   parameters is as follows:[1]

   hashkey               =    algo-id  key
   secretkey             =    algo-id key
   algo-id               =    "NOENCR" / "DES" / "3DES" / "IDEA" /
                              "HMAC-MD5-96" / "HMAC-SHA1-96"
   scope                 =    "HOSTLOCAL" / "LINKLOCAL"
   key                   =    base64string
   uci                   =    1*CHAR
   base64string          =    *(ALPHA / DIGIT / "+" / "/" / "=")

   A Base64 string consists of the characters defined in the Base64
   char-set [3] including all eventual padding characters, i.e. the
   length of Base64-string is always a multiple of 4.
_________________________
  [1] syntactical definitions follow below


Ott/Perkins/Kutscher                                           [Page 13]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

Appendix C: Parameter storage


   Two distinct facilities for parameter storage are considered: For
   Unix-like systems a configuration file SHOULD be used and for
   Windows-95/98/NT systems a set of registry entries is defined that
   SHOULD be used.

   File based parameter storage:

   The file name for a Mbus configuration file is ``.mbus'' in the
   user's home-directory which MAY be overridden by an environment
   variable called MBUS.  Implementations MUST ensure that this file has
   appropriate file permissions that prevent other users to read or
   write it.  The file MUST exist before a conference is initiated. Its
   contents MUST be UTF-8 encoded and MUST be structured as follows:


           [MBUS]
           HASHKEY=<hashkey>
           ENCRYPTIONKEY=<secretkey>
           SCOPE=<scope-id>


   The order of entries is not significant.  A key entry MUST be in this
   notation:


           ``(''algo-id``,''base64string``)''


   algo-id is one of the character strings specified above[2]

   An example Mbus-configuration file:


           [MBUS]
           HASHKEY=(HMAC-MD5-80,946080000,MTIzMTU2MTg5MTEy)
           ENCRYPTIONKEY=(DES,946080000,MTIzMTU2MQ==)
           SCOPE=HOSTLOCAL



   Registry based parameter storage:

   For systems lacking the concept of a user's home-directory as a place
   for configuration files the suggested database for configuration
   settings (e.g. the Windows9x-, Windows NT-registry) SHOULD be used.
   The hierarchy for Mbus related registry entries is as follows:
_________________________
  [2] for algo-id=``NOENCR'' the other fields are ignored. The de-
limiting commas MUST always be present though.


Ott/Perkins/Kutscher                                           [Page 14]


INTERNET-DRAFT   A Message Bus for Conferencing Systems        June 1999

   HKEY_CURRENT_USER\Software\Mbone Applications\Mbus

   The entries in this hierarchy section are

   +--------------+--------+
   |Name          | Type   |
   +--------------+--------+
   |HASHKEY       | String |
   |ENCRYPTIONKEY | String |
   |SCOPE         | String |
   +--------------+--------+
   The same syntax for key values as for the file based configuration
   facility MUST be used.









































Ott/Perkins/Kutscher                                           [Page 15]


Html markup produced by rfcmarkup 1.129d, available from https://tools.ietf.org/tools/rfcmarkup/