                         COMMON IP SECURITY OPTION

                                Version 2.3

                          IETF CIPSO Working Group

                               9 March, 1993


1.  Status

     This document is an Internet Draft.  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.  Internet Drafts may be updated, replaced, or obsoleted by
other documents at any time.  It is not appropriate to use Internet
Drafts as reference material or to cite them other than as a "working
draft" or "work in progress".
     Please check the Internet Draft abstract contained in each Internet
Draft directory to learn the current status of this or any other Internet
draft.     


2.  Introduction

      This document describes an IP Option which may be used to carry
      security information that is required at the IP level.

2.1  Outline

     Section            Title
       1.           Status
       2.           Introduction
       2.1            Outline
       2.2            Background
       2.3            Purpose
       3.            Architecture
       3.1            General
       3.2            Header
       3.3            Tags
       4.           Processing procedures
       4.1            Source System
       4.2            Intermediate System
       4.3            Destination System
       4.4            Unlabeled Packets
       4.5            Unrecognized Tag Types
       4.6            ICMP Processing
       5.           MAC Sensitivity Security Class
       5.1            Policy
       5.2            Processing Procedures
       5.3            Tags
       6.           Release Markings Security Class
       6.1            Policy
       6.2            Processing Procedures
       6.3            Tags
       7.           Minimum Requirements
       8.           References



Internet Draft, Expires 9 Sept 1993                                 [PAGE 1]



CIPSO INTERNET DRAFT                                         9 March, 1993



       Appendix A   Definitions
   
2.2  Background

      Currently the Internet Protocol supports two security options.  These
options are defined in RFC 1108.  The first option is referred to as the 
DOD Basic Security Option (BSO) (Type 130) which allows IP datagrams to 
be labeled with one of four predefined DOD security classifications and 
an associated DOD Authority.  The second option, the DOD Extended 
Security Option was added to handle additional DOD security information 
such as security categories and release markings.  The values for the 
fixed fields within these two options are administered by the Defense 
Information Systems Agency (DISA).

      IP users outside the U.S. DOD are using multi-level security (MLS) 
systems and require security labels to be passed at the IP level.  Their 
label requirements cannot be satisfied by BSO or ESO due to the fixed  
set of security classifications and Authorities, as well as the small 
set of ESO format codes.  These options supported the DOD well for a 
number of years, however a more flexible IP security option is required
to support the new, larger, more diverse user community.

     CIPSO was originally called the Commercial IP Security Option, however 
the name has been changed to the Common IP Security Option to better 
represent its purpose.  CIPSO was developed by a joint IETF/TSIG working 
group.

2.3  Purpose

     The purpose of the Common IP Security Option is to allow the attachment 
of specific security attributes associated with the data in an IP datagram.
This data is used to perform security decisions at the IP layer.  CIPSO
can support a large set of security domains and policies with differing 
interpretations of security attributes.  An extendable format allows for 
multiple sets of security attributes as well as addition of new attributes 
in the future.  This document defines the basic format and processing 
procedures for the CIPSO.  In addition, it defines the specific attribute 
formats and procedures to support the standard DOD Mandatory Access Control
Security Policy as well as a Release Markings Security policy.  Support 
for additional security attributes, formats, or policies may be added using 
the procedures defined in Section 3.3.6.


3.  Architecture

3.1  General

     The basic format of CIPSO is shown below.  A fixed format header is 
followed by a variable length tag section.

                  +--------------------------------+
                  |  CIPSO Header  |  Tag Section  |
                  +----------------+---------------+

                    Figure 1:  General CIPSO Format



Internet Draft, Expires 9 Sept 1993                                 [PAGE 2]



CIPSO INTERNET DRAFT                                         9 March, 1993




     Implementations MUST not assume that any field within the CIPSO header or 
tag section is aligned on a particular octet boundary.

3.2  Header

     The CIPSO header identifies the option and contains the Domain of
Interpretation (DOI) Identifier which is used to interpret the tag 
section.

3.2.1  Format

     The format for the CIPSO header is provided below.

    +------------+------------+------------------------------------+
    |  10000110  |  LLLLLLLL  |  DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD  |
    +------------+------------+------------------------------------+
    Option Number    Length     Domain Of Interpretation Identifier

                  Figure 2:  CIPSO Header Format

     In accordance with IP option requirements, the first field is a one 
octet option number field followed by a one octet option length field.
The IP option number assigned to CIPSO by the IANA is 134 which indicates
it is class 0, number 6, and that it will be copied on IP datagram  
fragmentation.  The length field represents the length in octets of the
entire option including the option number and length fields.  With the 
current IP limitation of 40 octets for all options the maximum value of this
field will be 40.

3.2.2  Domain of Interpretation (DOI) Identifier

     The DOI Identifier is 4 octets in length and stored in network byte 
order.  It is used as the security domain identifier.  A collection of systems 
sharing the same set of security policies and a common interpretation of 
security attributes will be identified by a unique value in this field.  
The security attributes contained in the tag section will only have meaning 
to systems within the same security domain specified by the DOI.  A system 
may be a member of multiple security domains.

     For example, suppose we have an attribute field in the tag section that 
is used to contain the MAC sensitivity classification.  One domain, such as 
the U.S. Army, may choose to represent the classification "unclassified" by 
the value "1" in this attribute field.  Another domain, such as IBM, may 
choose to have the value "1" represent the classification "public".  CIPSO 
can support both security domains without modification to the CIPSO 
standard or system software.

     Every CIPSO implementation MUST support at least one DOI.  DOI Identifier 
numbers supported MUST be configurable by the system administrator.  A local 
DOI Identifier is one whose security attribute values match the internal 
values of the local host, thus no mapping is required.  

     Any organization may request a unique CIPSO DOI number by contacting the 
Internet Assigned Numbers Authority.  See Section 3.3.6 for more information.



Internet Draft, Expires 9 Sept 1993                                 [PAGE 3]



CIPSO INTERNET DRAFT                                         9 March, 1993



The value 0 is an invalid DOI number and MUST not appear as the DOI 
identifier in any CIPSO. 

3.3  Tags
     
     Tags are independent data elements within a CIPSO that provide security
attribute information.  A CIPSO will include 0 or more tags in any order.
The purpose of tags is to provide an extensible method to pass security
attributes using predefined formats and relating to a general security 
policy, such as DOD MAC security policy.

3.3.1  Format

     The standard format for a CIPSO tag is shown below.

      +------------+------------+----------------+
      |  tttttttt  |  llllllll  | iiiiiii . . .  |
      +------------+------------+----------------+
         Tag Type      Length     Tag Information

             Figure 3:  General Tag Format

     The tag type is one octet in length and is used to identify the specific 
format, security policy, and processing procedures associated with the tag 
information field.  The section below includes more on tag types.  The tag 
length is one octet in length and represents the total octets in the tag 
including the tag type and length fields.

3.3.2  Type

     The tag type is a number between 0 and 255.  Tag types 0 through 127 are
used for standard tag definitions.  Descriptions of these tag types will be 
published in this and future RFCs.  For these standard tags the tag type 
number alone will identify the format, security policy, and processing 
procedures for the information in the tag information field.  This document 
defines standard tag types 1, 2, 5, and 6.  Tag types 0, 3, and 4 are 
currently reserved for future use.

     Tag types 128 through 255 are defined by the DOI authority.  The DOI
identifier as well as the tag number is required to process the tag
information field format, security policy, and processing procedures.  See
Section 3.3.6 for registering and using DOI defined tag types.  

     Use of DOI defined tag types can lead to interoperability problems and 
MUST only be used in cases where a standard tag type will not satisfy the 
requirement.  DOI authorities and implementors are urged to use the RFC 
process to define a standard tag type for the required function.  This will 
provide wider availability of the tag definition and ensure greater 
interoperability. 

3.3.3  Class

     Tag classes consist of tag types that have common processing procedures
and support the same security policy.  This allows a new format to be 
specified without restating the policy or operating procedures.  For



Internet Draft, Expires 9 Sept 1993                                 [PAGE 4]



CIPSO INTERNET DRAFT                                         9 March, 1993



example, tags 1,2, and 5 defined in this document belong to the Mandatory 
Access Control (MAC) Sensitivity class and support the MAC Sensitivity 
Security policy.  They each represent a different method for representing 
a MAC sensitivity label consisting of a level and a set of categories.

3.3.4  Security Policy

     The security policy associated with a tag class defines how the 
attributes are to be used to make security decisions.  It must be 
described in sufficient detail for someone to implement the process in 
software.  You may reference a well known and publicly available document 
for further description.  The MAC Sensitivity Security policy described in 
Section 5.1 is a good example.

     The security policy is associated with tags rather than the DOI to allow 
for multiple security policies to be included in the CIPSO.  A CIPSO has only 
one DOI but may include multiple tags.  In addition, it is expected that 
implementations will support a small number of policies and tags since each
require additional software to implement.  Whereas an implementation can 
support many DOIs without software modification. 

3.3.5  Processing Procedures

     The processing procedures provide a detailed description of the steps to 
take for transmitting packets from a "source" system, processing packets 
through an "intermediate" system, and receiving packets at a "destination" 
system.  Section 4 describes the general processing procedures.  Each tag 
class will describe additional procedures specific to their policy and 
requirements.

     Source and destination systems are also known as "end" systems.  An 
intermediate system differs from an end system in that it does not process the
datagram above the IP layer.  End systems may also act as intermediate systems
when forwarding packets between networks.  Routers are examples of
intermediate systems and need only implement the procedures defined for
these systems.

3.3.6  Registration

     Contact the Internet Assigned Numbers Authority (IANA) to request a unique 
DOI Identifier number.  DOI defined tag types MUST be registered with the 
IANA before use outside of a closed experimental network.  To register a DOI
tag type the DOI authority must submit the following information to the IANA:

     a.  DOI Identifier number
     b.  Tag type number (> 127)
     c.  Bit level format description of the tag
     d.  Tag class name
     e.  Description of the Security policy associated with the tag
     f.  Detailed steps for processing the tag

     The IANA may require additional information.  Contact the IANA for the 
complete list of the information required.  Items c through f may be
satisfied by a reference to a publicly available document that defines the tag 
format, tag class, security policy, and processing procedures.  Implementors 



Internet Draft, Expires 9 Sept 1993                                 [PAGE 5]



CIPSO INTERNET DRAFT                                         9 March, 1993



of new tag types can assist DOI authorities by submitting an Informational 
RFC that includes these descriptions.  See Sections 5 and 6 for examples
of the information that is required for a new tag or class of tags.


4.  Processing Procedures

     The processing procedures defined below are the basic procedures all CIPSO
implementations will provide.  Additional procedures are added by tag class
definitions.  See Section 5.2 for the MAC Sensitivity class processing
procedures and Section 6.2 for those of the Release Security Class.

4.1  Source System 

     The CIPSO source system must perform the following steps prior to 
transmitting a datagram. 

     a.  Get the required security attributes associated with the data
     included in the datagram.  These attributes must be obtained from a
     trusted entity such as the secure operating system or a trusted
     application.

     b.  Select a DOI to use based on the security attributes, destination 
     address, output network port, or gateway.  The algorithm to use is 
     beyond the scope of this document.

     c.  If the DOI selected is not the local DOI, the attribute values are
     converted to the values associated with the DOI chosen.

     d.  The appropriate tags are constructed to hold the security
     attributes and placed in the CIPSO.  

     e.  The CIPSO is placed in IP header options section for the IP packet.
     Only one CIPSO MAY be included in the options section.

     f.  A routing algorithm will select the proper interface to use.  This
     algorithm may use the security attributes and the associated security 
     policies to find a possible route.  If a route cannot be found then a
     standard error message is sent to an upper layer protocol.

     g.  Using the security attributes and the associated security policies
     a check is made to determine if the packet is allowed to exit the
     system through the selected interface.  Procedures for making this 
     check are included in the definition of each tag class.

     h.  The datagram will be rejected if its transmission violates local
     security policy.  The configuration parameter OUT-VIOLATION-MSG is used
     to determine if an error message is sent to the upper layer protocol.
     If OUT-VIOLATION-MSG is set to 1 then a error message is passed to the 
     upper layer protocol.  If OUT-VIOLATION-MSG is set to 0 then no message 
     is sent.  The default value for OUT-VIOLATION-MSG is 0.  A log of all 
     violations should be kept in an audit trail.

4.2  Intermediate System




Internet Draft, Expires 9 Sept 1993                                 [PAGE 6]



CIPSO INTERNET DRAFT                                         9 March, 1993



     Each intermediate system will perform the following steps in processing
each datagram: 

     a.  Since an End system may also be an Intermediate system, first 
     determine whether the local system is the destination for the
     datagram.  If it is, then the procedures described for Destination 
     system, Section 4.3, must be followed.

     b.  Locate the CIPSO in the IP header.  If no CIPSO is found then follow
     the instructions described in Section 4.4.  If more than one CIPSO is
     included in the packet then the datagram is dropped and the instructions 
     in Section 4.6 for "option missing" are followed.

     c.  Ensure the DOI is supported by this system.  If not then the
     datagram is dropped and the instructions in Section 4.6 for 
     "unrecognized label" are followed.
     
     d.  Process each tag within the CIPSO.  If an unrecognized tag is found
     then follow the instructions in Section 4.5.

     e.  Using the security attributes and the associated security policies
     a check is made to determine if the packet is allowed to enter the
     system through this interface.  Procedures for making this check are 
     included in the definition of each tag class.  If the datagram is 
     refused then it is dropped and the instructions in Section 4.6 for 
     "incoming violation" are followed.

     f.  If all checks pass then a routing algorithm will select the proper
     interface to forward the packet through.  This algorithm may use the 
     security attributes and the associated security policies to find a 
     possible route.

     g.  Using the security attributes and the associated security policies
     a check is made to determine if the packet is allowed to exit the
     system through the selected interface.  Procedures for making this 
     check are included in the definition of each tag class.  If a security 
     violation is detected then the datagram is dropped and the 
     instructions in Section 4.6 for "forwarding violation" are followed.

4.3  Destination System

     The following procedures will be followed when a system is the 
destination system for a datagram.

     a.  Locate the CIPSO in the IP header.  If no CIPSO is found then follow
     the instructions described in Section 4.4.  If more than one CIPSO is
     included in the packet then the datagram is dropped and the instructions 
     in Section 4.6 for "option missing" are followed.

     b.  Ensure the DOI is supported by this system.  If not the the datagram
     is dropped and the instructions in Section 4.6 for "unrecognized label"
     are followed.

     c.  Process each tag within the CIPSO.  If an unrecognized tag is found 
     then follow the procedures described in Section 4.5.



Internet Draft, Expires 9 Sept 1993                                 [PAGE 7]



CIPSO INTERNET DRAFT                                         9 March, 1993




     d.  Using the security attributes and the associated security policies
     a check is made to determine if the packet is allowed to enter the
     system through this interface.  Procedures for making this check is 
     included in the definition of each tag class.  If the datagram is 
     refused then the datagram is dropped and the instructions in Section 
     4.6 for "incoming violation" are followed.

     e.  If required the security attributes are converted to their local
     DOI representation.

     f.  The data in the packet is passed to a trusted subject such as the
     secure Operating system or a trusted application and the security
     attributes are passed or made available to these subjects.  The data may
     be passed to an untrusted subject if allowed by the local security
     policy.
     
4.4  Unlabeled packets

     A network port MAY be configured to not require a CIPSO label for all
incoming datagrams.  For this configuration a default CIPSO must be
configured for that network interface and associated with all incoming 
unlabeled IP datagrams.  If this capability exists the default condition must
be that a CIPSO is required for all incoming datagrams.  If a CIPSO is
required and one is not found in the datagram then the datagram is dropped and 
the instructions in Section 4.6 for "option missing" are followed.

     This capability might be used for single level networks or networks 
that have CIPSO and non-CIPSO hosts and the non-CIPSO hosts all operate at 
the same label.  

     An IP datagram may contain a CIPSO with no tags or lacking a required
tag.  This condition MAY be treated like an unlabeled packet, however the 
DOI included in the provided CIPSO should be used for the default CIPSO.

     The configured default CIPSO may be inserted in the incoming datagram.  
If a CIPSO cannot be inserted in the IP packet because it is too large to 
fit in the IP options area then the datagram is dropped and the instructions 
in Section 4.6 for "incoming violation" are followed.

4.5  Unrecognized Tag Types

     The default condition for any CIPSO implementation is that an
unrecognized tag type MUST be treated as a error and the datagram is dropped  
and the instructions for an "unrecognized label" in Section 4.6 are followed.  
A CIPSO implementation MAY allow the system administrator to identify tag 
types that may safely be ignored.  This capability is an allowable 
enhancement, not a requirement.

4.6  ICMP Processing

     In some situations, returning an ICMP message may violate security
policy.  The configuration parameter IN-VIOLATION-MSG will be used to
determine if an ICMP message may be returned.  If IN-VIOLATION-MSG is set
to 1 then ICMP messages may be returned.  If IN-VIOLATION-MSG is set to 0



Internet Draft, Expires 9 Sept 1993                                 [PAGE 8]



CIPSO INTERNET DRAFT                                         9 March, 1993



then no ICMP message my be sent in response to an CIPSO problem.  Under no
conditions will a ICMP message be returned when the problem occurs due to
reception of an ICMP message.  The default value for IN-VIOLATION-MSG MUST 
be 0.

     The following table shows the specific message to return, if allowed by 
IN-VIOLATION-MSG, and any special handling restrictions.

        Condition                             Action

     option missing           An ICMP "parameter problem" (type 12) is
                              generated and must be returned to the 
                              originator through the same interface from 
                              which it was received.  The code field of 
                              the ICMP is set to "option missing" (code 1) 
                              and the ICMP pointer is set to 134 (the value 
                              of the option type for the missing CIPSO 
                              option).

     unrecognized label       An ICMP "parameter problem" (type 12) is 
                              generated and MUST be returned to the
                              originator through the same interface from
                              which it was received.  The ICMP code field 
                              is set to "bad parameter" (code 0) and the 
                              pointer is set to the start of the CIPSO 
                              field that is unrecognized.

     
     incoming violation       An ICMP "destination unreachable" (type 3) is
                              generated and MUST be returned to the 
                              originator through the same interface from 
                              which it was received.  The code field of the 
                              ICMP is set to "communication with destination 
                              host administratively prohibited" (code 10).

     forwarding violation     An ICMP "destination unreachable" (type 3) is
                              generated and returned to the originator.  
                              The code field of the ICMP is set to 
                              "communication with destination network 
                              administratively prohibited" (code 9).


5.  MAC Sensitivity Security Class

5.1  Policy

     The MAC Sensitivity Security Policy (MSSP) is based on the standard 
model within the DOD for protecting sensitive paper documents.  The reader 
is directed to DOD Regulation 5200.1R.  For information systems this model 
is described by the Bell Lapadula model.  

     The MSSP is based on objects and subjects.  The object is the contents 
of the datagram.  A subject is anything that may send or receive the 
datagram such as a network interface, host, or application.  Each object is 
assigned a sensitivity label.  The label is made up of an "sensitivity 



Internet Draft, Expires 9 Sept 1993                                 [PAGE 9]



CIPSO INTERNET DRAFT                                         9 March, 1993



hierarchical level" (SHL) and a set of "sensitivity categories" (SC).  A 
subject is assigned a range of labels for which it is authorized to receive 
(RECEIVE-SL-RANGE) and another range for which it is authorized to send 
(TRANSMIT-SL-RANGE).  The range is composed of a "High Sensitivity 
Hierarchical Level" (HSHL), a "Low Sensitivity Hierarchical Level" (LSHL), 
and a set of "Authorized Sensitivity Categories" (ASC).  The SHL, SC, HSHL, 
LSHL, and SAC are numbers which have a one-to-one mapping to a human 
readable sensitivity level or set of sensitivity categories.

     A particular action is allowed if the object's label falls within the 
subject's authorized range for that action.  For this to be true the 
following conditions must be true:

    1.  Object's SHL must be greater than or equal to the subject's LSHL.
    2.  Object's SHL must be less than or equal to the subject's HSHL.
    3.  All of the categories in the Object's SC must be included in the
        subject's ASC.

     If all of these conditions are met then the subject's label is said to 
be "within range" for the action related to the subject.  If any condition 
is not met then the action is denied.

5.2  Processing Procedures

     The following processing procedures are added to the procedures defined 
in Section 4.  All label comparisons may be made with the local or the 
selected DOI representation of the Sensitivity label or range.

5.2.1  Source System

     a.  Determine best tag type to use to carry the object's HL and C.  The 
     algorithm used is beyond the scope of this document.  Only one MAC 
     Sensitivity Class tag type may be used within a CIPSO.  If the category 
     list cannot fit into one of the tags then the message is discarded.  
     A message will be sent to the upper protocol if the OUT-VIOLATION-MSG is 
     set to 1.

     b.  After the proper interface is selected the datagram's Sensitivity 
     Label will be checked against the interface's SL-RANGE-PORT-OUT 
     Label range.  If the label is "within range" then the datagram may be 
     released through the interface.  If the datagram's label is out of range 
     then follow the instructions in Section 4.1, procedure h.

5.2.2  Intermediate System

     a.  Find the MAC Sensitivity Security Class tag in the CIPSO.  If no tag
     of this class is found or more than 1 tag exists of this class then drop 
     the datagram and follow the instructions specified in Section 4.6 for 
     "unrecognized label".

     b.  Check to see if the datagram's Sensitivity Label is "within range"
     of the interface's SL-RANGE-PORT-IN label range.  If so then the
     datagram may be accepted.  If it is out of range then the datagram is
     dropped and the instructions specified in Section 4.6 for "incoming
     violation" are followed.



Internet Draft, Expires 9 Sept 1993                                 [PAGE 10]



CIPSO INTERNET DRAFT                                         9 March, 1993




     c.  After the proper interface is selected the datagram's Sensitivity
     Label will be checked against the interface's TRANSMIT-SL-RANGE Label
     range.  If the label is "within range" then the datagram may be 
     released through the interface.  If the datagram's label is out of 
     range then the datagram is dropped and the instructions specified in 
     Section 4.6 for "forwarding violation" are followed.
    
5.2.3  Destination System

     Follow procedures a and b described in Section 5.2.2 above.

5.3  Tags

     The three tags defined below represent three different methods to format
a sensitivity label.  Each of them store the SHL in a one octet field.  The
challenge is representing the SC.  Some secure operating systems can associate
any combination of over 65000 sensitivity categories to an object.  IP's
limitation of 40 octets will not allow all combinations to be represented.
The three formats below should handle most, if not all, of the practical
combinations of categories.

5.3.1  Tag Type 1

     This is referred to as the "bit-mapped" tag type.  The format of this 
tag type is as follows:

       +----------+----------+----------+----------+--------//---------+
       | 00000001 | LLLLLLLL | 00000000 | LLLLLLLL | CCCCCCCCCCCCCCCCC |
       +----------+----------+----------+----------+--------//---------+
       
           TAG       TAG      ALIGNMENT  SENSITIVITY     BIT MAP OF
           TYPE      LENGTH   OCTET      LEVEL           CATEGORIES

                        Figure 4. Tag Type 1 Format

5.3.1.1       Tag Type

     This field is 1 octet in length and has a value of 1.

5.3.1.2       Tag Length

     This field is 1 octet in length.  It is the total length of the tag 
type including the type and length fields.  With the current IP header 
length restriction of 40 bytes the value within this field is between 4 
and 34.

5.3.1.3       Alignment Octet

     This field is 1 octet in length and always has the value of 0.  Its 
purpose is to align the category bitmap field on an even octet boundary.  
This will allow faster option processing for many implementations including 
router implementations.

5.3.1.4       Sensitivity Hierarchical Level



Internet Draft, Expires 9 Sept 1993                                 [PAGE 11]



CIPSO INTERNET DRAFT                                         9 March, 1993




     This field is 1 octet in length.  Its value is from 0 to 255.  The 
values are ordered with 0 being the minimum value and 255 representing the 
maximum value.

5.3.1.5       Bit Map of Categories

     The length of this field is variable and ranges from 0 to 30 octets.  
This provides representation of sensitivity categories 0 to 239.  The 
ordering of the bits is left to right or MSB to LSB.  For example category 
0 is represented by the most significant bit of the first byte and category 
15 is represented by the least significant bit of the second byte.  Figure 5 
graphically shows this ordering.  Bit N is binary 1 if category N is part of 
the label for the datagram, and bit N is binary 0 if category N is not part 
of the label.  Except for the optimized tag 1 format described in the next 
section, minimal encoding SHOULD be used resulting in no trailing zero 
octets in the category bitmap.

         octet 0  octet 1  octet 2  octet 3  octet 4  octet 5
         XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX . . .
   bit   01234567 89111111 11112222 22222233 33333333 44444444
   number           012345 67890123 45678901 23456789 01234567

            Figure 5. Ordering of Bits in Tag 1 Bit Map


5.3.1.6       Optimized Tag 1 Format

     Routers work most efficiently when processing fixed length fields.  To
support these routers there is an optimized form of tag type 1.  The format
does not change.  The only change is to the category bitmap which is set to
a constant length of 10 octets.  Trailing octets required to fill out the 10
octets are zero filled.  Ten octets, allowing for 80 categories, was chosen
because it makes the total length of the CIPSO option 20 octets.  If CIPSO
is the only option then the option will be full word aligned and additional
filler octets will not be required.

5.3.2  Tag Type 2 Tag

     This is referred to as the "enumerated" tag type.  It is used to 
describe large but sparsely populated sets of sensitivity categories.  The 
format of this tag type is as follows:

+----------+----------+----------+----------+-------------//-------------+
| 00000010 | LLLLLLLL | 00000000 | LLLLLLLL | CCCCCCCCCCCCCCCCCCCCCCCCCC |
+----------+----------+----------+----------+-------------//-------------+
    TAG       TAG      ALIGNMENT  SENSITIVITY         ENUMERATED
    TYPE      LENGTH   OCTET      LEVEL               CATEGORIES

                      Figure 6. Tag Type 2 Format


5.3.2.1        Tag Type

     This field is one octet in length and has a value of 2.



Internet Draft, Expires 9 Sept 1993                                 [PAGE 12]



CIPSO INTERNET DRAFT                                         9 March, 1993




5.3.2.2       Tag Length

     This field is 1 octet in length. It is the total length of the tag type
including the type and length fields.  With the current IP header length
restriction of 40 bytes the value within this field is between 4 and 34.

5.3.2.3       Alignment Octet

     This field is 1 octet in length and always has the value of 0.    Its 
purpose is to align the category field on an even octet boundary.  This will
allow faster option processing many implementations including router 
implementations.

5.3.2.4       Sensitivity Level

     This field is 1 octet in length. Its value is from 0 to 255.  The 
values are ordered with 0 being the minimum value and 255 representing the     
maximum value.

5.3.2.5       Enumerated Categories

     In this tag, categories are represented by their actual value rather 
than by their position within a bit field.  The length of each category is 2
octets.  Up to 15 categories may be represented by this tag.  Valid values
for categories are 0 to 65534.  Category 65535 is not a valid category
value.  The categories MUST be listed in ascending order within the tag.

5.3.3  Tag Type 5

     This is referred to as the "range" tag type.  It is used to represent
labels where all categories in a range, or set of ranges, are included
in the sensitivity label.  The format of this tag type is as follows:

+----------+----------+----------+----------+------------//-------------+
| 00000101 | LLLLLLLL | 00000000 | LLLLLLLL |  Top/Bottom | Top/Bottom    |
+----------+----------+----------+----------+------------//-------------+

    TAG       TAG      ALIGNMENT  SENSITIVITY      CATEGORY RANGES
    TYPE      LENGTH   OCTET      LEVEL

                     Figure 7. Tag Type 5 Format


5.3.3.1        Tag Type

     This field is one octet in length and has a value of 5.

5.3.3.2       Tag Length

     This field is 1 octet in length. It is the total length of the tag type
including the type and length fields.  With the current IP header length
restriction of 40 bytes the value within this field is between 4 and 34.

5.3.3.3       Alignment Octet



Internet Draft, Expires 9 Sept 1993                                 [PAGE 13]



CIPSO INTERNET DRAFT                                         9 March, 1993




     This field is 1 octet in length and always has the value of 0.  Its 
purpose is to align the category range field on an even octet boundary.  
This will speed many implementations including router implementations.

5.3.3.4       Sensitivity Level

     This field is 1 octet in length. Its value is from 0 to 255.  The 
values are ordered with 0 being the minimum value and 255 representing the 
maximum value.

5.3.3.5       Category Ranges

     A category range is a 4 octet field comprised of the 2 octet index of 
the highest numbered category followed by the 2 octet index of the lowest
numbered category.  These range endpoints are inclusive within the range of
categories.  All categories within a range are included in the sensitivity
label.  This tag may contain a maximum of 7 category pairs.  The bottom
category endpoint for the last pair in the tag MAY be omitted and SHOULD be
assumed to be 0.  The ranges MUST be non-overlapping and be listed in
descending order.  Valid values for categories are 0 to 65534.  Category
65535 is not a valid category value.


6.  Release Markings Security Class

6.1  Policy

     The Release Markings Security Policy (RMSP) is equivalent to the MAC
Sensitivity Security Policy except that its labels are made up of release
categories and does not include a hierarchical level.  In addition, the
processing of the release categories is different than the sensitivity
categories.  The RMSP will usually be used in conjunction with the MSSP,
however it is not required.

     The object (i.e. the datagram) will have a set of "Object Release 
Categories" (ORC) associated with it.  This is essentially a list of who 
may receive the datagram.  A subject will have a set of "Subject Release 
Categories" (SRC) associated with receiving and sending datagrams.  The 
receiving list identifies on whose behalf the subject is acting for 
receiving datagrams.  The sending list identifies on whose behalf the 
subject is acting for sending datagrams.  If any release category in the 
ORC matches a release category in the SRC then the action is allowed.

     For example, suppose we have a datagram with a release category list 
that includes just DIA and NASA.  This datagram is sent to host A and host 
B.  Host A has a SRC list of DOD, World, and DISA.  The datagram would be 
rejected since the two lists do not share at lease one category.  Host B, 
however has a SRC list of DOD, World, and DIA.  It could receive the 
datagram because both lists share the release category "DIA".  Notice that 
Host B's SRC list did not have to contain the release category "NASA" to 
receive the datagram.

     An SRC list for incoming datagrams RELEASE-CATEGORIES-PORT-IN will be 
configurable for each interface.  An SRC list for outgoing datagrams



Internet Draft, Expires 9 Sept 1993                                 [PAGE 14]



CIPSO INTERNET DRAFT                                         9 March, 1993



RELEASE-CATEGORIES-PORT-OUT will also be configurable for each interface.  

6.2  Processing Procedures

     The following processing procedures are added to the procedures defined
in Section 4.  

6.2.1  Source System

     a.  After the proper interface is selected the datagram's ORC list
     will be checked against the interface's RELEASE-CATEGORIES-PORT-OUT
     list.  If the two lists share at lease one category then the datagram
     is released through the interface.  If they share no categories then 
     follow the instructions in Section 4.1, procedure h.

6.2.2  Intermediate System

     a.  Find the Release Sensitivity Security Class tag in the CIPSO.  If 
     more than 1 tag exists of this class then drop the datagram and follow 
     the instructions specified in Section 4.6 for "unrecognized label".
     If a tag of this class is not included in the CIPSO then check the value
     of the configuration parameter RELEASE-MARKING-REQ.  If 
     RELEASE-MARKING-REQ is set to 0 then accept the datagram.  If 
     RELEASE-MARKING-REQ is set to 1 then drop the datagram and follow the 
     instructions specified in Section 4.6 for "unrecognized label".

     b.  If the tag is present then compare its ORC list against the 
     RELEASE-CATEGORIES-PORT-IN list.  If the two lists share at lease one
     category then the datagram is released through the interface.  If they 
     share no categories then the datagram is dropped and the instructions 
     specified in Section 4.6 for "incoming violation" are followed.

     c.  After the proper forwarding interface is selected the datagram's 
     ORC list will be checked against the interface's RELEASE-CATEGORIES-
     PORT-OUT list.  If the two lists share at lease one category then the 
     datagram is released through the interface.  If they share no 
     categories then the datagram is dropped and the instructions specified 
     in Section 4.6 for "forwarding violation" are followed.
   
6.2.3  Destination System

     Follow procedures a and b described in Section 6.2.2 above.

6.3  Tags

     This tag class currently has only one tag format.  This tag is 
described below.

6.3.1  Tag Type 6

     This is referred to as the "release markings" tag type.  The format of 
this tag type is as follows:

       +----------+----------+----------//---------+
       | 00000110 | LLLLLLLL |  CCCCCCCCCCCCCCCCC  |



Internet Draft, Expires 9 Sept 1993                                 [PAGE 15]



CIPSO INTERNET DRAFT                                         9 March, 1993



       +----------+----------+----------//---------+

           TAG       TAG        BIT MAP OF
           TYPE      LENGTH     RELEASE CATEGORIES

                Figure 8. Tag Type 6 Format

6.3.1.1  Tag Type

     This field is 1 octet in length and has a value of 6.

6.3.1.2  Tag Length

     This field is 1 octet in length.  It is the total length of the tag 
type including the type and length fields.  With the current IP header 
length restriction of 40 bytes the value within this field is between 3 
and 34.

6.3.1.3  Bit Map of Release Categories

     The length of this field is variable and ranges from 0 to 30 octets.  
This provides representation of release categories 0 to 239.  The ordering 
of the bits is left to right or MSB to LSB.  For example category 0 is
represented by the most significant bit of the first byte and category 15 is
represented by the least significant bit of the second byte.  Figure 5
graphically shows this ordering.  Bit N is binary 0 if release category N 
is part of the label for the datagram, and bit N is binary 1 if release 
category N is not part of the label.  Minimal encoding SHOULD be used 
resulting in no trailing all 1s octets in the release category bitmap.  

Note:  The bit encoding used for release categories is the reverse of MAC 
category encoding where a binary 1 means that the category is included in 
the label.  This inversion allows MAC category bitmaps and release category 
bitmaps to be treated the same when combining two objects together.  


7.  Minimum Requirements

     A CIPSO implementation MUST be capable of generating at least tag type 
1 in the non-optimized form.  In addition, a CIPSO implementation MUST be 
able to receive any valid tag type 1 even those using the optimized tag type 
1 format.


8.  References

RFC 1038, "Draft Revised IP Security Option", M. St. Johns, IETF, January
1988.

RFC 1108, "U.S. Department of Defense Security Options
for the Internet Protocol", Stephen Kent, IAB, 1 March, 1991.


Appendix A.  Definitions




Internet Draft, Expires 9 Sept 1993                                 [PAGE 16]



CIPSO INTERNET DRAFT                                         9 March, 1993




destination system:  This is the information system that is identified by the
destination address in the IP header.  This system will be the one to receive 
the datagram and pass it to an upper layer protocol.

DOI:  The Domain of Interpretation is a collection of systems that share a
common mapping between network security attributes and their human readable
equivalent.  A single system can be a member of more than one DOI.

DOI authority:  The DOI authority is the organization that has reserved a DOI 
identifier for use between hosts which the authority presumably has some 
control or relationship.  The authority is responsible for defining and 
distributing the DOI mapping between network security attributes and their 
human readable equivalent. 

DOI Identifier:  The DOI Identifier is the number used in the CIPSO header 
to uniquely represent a DOI.

end system:  This refers to either the source or destination system of an IP
datagram.

interface:  This refers to the network driver or connection from the physical
network to the IP software.

label range:  This is a pair of security labels which represent the highest 
and lowest security label a subject may access.  It is assumed that all 
objects whose label fall within this range, inclusive, are authorized access 
to that object.

local DOI:  The local DOI is the DOI identifier that has the same attribute
mapping to human readable equivalent as the local host.  For these DOIs no
mapping is required when they are stored in the local host.

MLS:  Multi-Level Security is the concept of dividing host or network
resources into segments represented by a sensitivity label and restricting
access to these segments based on a users clearance label range.

MAC:  Mandatory Access Control is used in MLS systems to control access to
resources based on the sensitivity label.

network byte order:  This is a standard ordering of bits as they are
transmitted over the Internet or other TCP/IP networks.  The order is from
most significant bit (MSB) to least significant bit (LSB).

object:  An object is a host of network resource to which access by a subject
must be controlled in accordance with the local security policy.  Examples of
objects for networks are:  datagrams, hosts, applications, configuration
parameters, connections, and networks.  

release marking:  A release marking provides a list of authorized subjects
who may access the associated object.  The release marking is made up of
release categories.

release category:  The release category represents a subject or group of
subjects that may access an object.  



Internet Draft, Expires 9 Sept 1993                                 [PAGE 17]



CIPSO INTERNET DRAFT                                         9 March, 1993




security attributes:  This is any piece of information associated with a
subject or object which provides required security data that will be used for
access control or auditing.

sensitivity category:  A sensitivity category is a non-hierarchical identifier
of the sensitivity of all or part of a resource.  For example, if a message has
information concerning NATO and encryption it may have the categories nato
and crypto associated with it.

sensitivity label:  This is a combination of the sensitivity level with one
or more sensitivity categories.  It represents the overall sensitivity of an
object.

sensitivity level:  This is a number that represents the degree of
sensitivity of an object.  The number is hierarchical in ascending order,
meaning that level N represents greater sensitivity than level N-1.  

source system:  This is the information system that originated the IP
datagram with the CIPSO label.

subject:  The subject is entity that is requesting access to a particular
object.  Examples of subjects are hosts, network, computer processes, and 
users.  A subject can also be an object.


































Internet Draft, Expires 9 Sept 1993                                 [PAGE 18]
