home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 1100s / rfc1190.txt < prev    next >
Text File  |  1990-10-29  |  378KB  |  8,733 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                  CIP Working Group
  8. Request for Comments: 1190                           C. Topolcic, Editor
  9. Obsoletes: IEN-119                                          October 1990
  10.  
  11.  
  12.         Experimental Internet Stream Protocol, Version 2 (ST-II)
  13.  
  14.  
  15. Status of this Memo
  16.  
  17.    This memo defines a revised version of the Internet Stream Protocol,
  18.    originally defined in IEN-119 [8], based on results from experiments
  19.    with the original version, and subsequent requests, discussion, and
  20.    suggestions for improvements.  This is a Limited-Use Experimental
  21.    Protocol.  Please refer to the current edition of the "IAB Official
  22.    Protocol Standards" for the standardization state and status of this
  23.    protocol.  Distribution of this memo is unlimited.
  24.  
  25. 1.         Abstract
  26.  
  27.    This memo defines the Internet Stream Protocol, Version 2 (ST-II), an
  28.    IP-layer protocol that provides end-to-end guaranteed service across
  29.    an internet.  This specification obsoletes IEN 119 "ST - A Proposed
  30.    Internet Stream Protocol" written by Jim Forgie in 1979, the previous
  31.    specification of ST.  ST-II is not compatible with Version 1 of the
  32.    protocol, but maintains much of the architecture and philosophy of
  33.    that version.  It is intended to fill in some of the areas left
  34.    unaddressed, to make it easier to implement, and to support a wider
  35.    range of applications.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. CIP Working Group                                               [Page 1]
  60.  
  61. RFC 1190                Internet Stream Protocol            October 1990
  62.  
  63.  
  64.    1.1.       Table of Contents
  65.  
  66.                  Status of this Memo .  .  .  .  .  .  .  .  .  .  .  .   1
  67.          1.      Abstract   .  .  .  .  .  .  .  .  .  .  .  .  .  .  .   1
  68.          1.1.       Table of Contents   .  .  .  .  .  .  .  .  .  .  .   2
  69.          1.2.       List of Figures  .  .  .  .  .  .  .  .  .  .  .  .   4
  70.  
  71.          2.      Introduction  .  .  .  .  .  .  .  .  .  .  .  .  .  .   7
  72.          2.1.       Major Differences Between ST and ST-II   .  .  .  .   8
  73.          2.2.       Concepts and Terminology  .  .  .  .  .  .  .  .  .   9
  74.          2.3.       Relationship Between Applications and ST .  .  .  .  11
  75.          2.4.       ST Control Message Protocol  .  .  .  .  .  .  .  .  12
  76.          2.5.       Flow Specifications .  .  .  .  .  .  .  .  .  .  .  14
  77.  
  78.          3.      ST Control Message Protocol Functional Description   .  17
  79.          3.1.       Stream Setup  .  .  .  .  .  .  .  .  .  .  .  .  .  18
  80.          3.1.1.        Initial Setup at the Origin  .  .  .  .  .  .  .  18
  81.          3.1.2.        Invoking the Routing Function   .  .  .  .  .  .  19
  82.          3.1.3.        Reserving Resources .  .  .  .  .  .  .  .  .  .  19
  83.          3.1.4.        Sending CONNECT Messages  .  .  .  .  .  .  .  .  20
  84.          3.1.5.        CONNECT Processing by an Intermediate Agent .  .  22
  85.          3.1.6.        Setup at the Targets   .  .  .  .  .  .  .  .  .  23
  86.          3.1.7.        ACCEPT Processing by an Intermediate Agent  .  .  24
  87.          3.1.8.        ACCEPT Processing by the Origin .  .  .  .  .  .  26
  88.          3.1.9.        Processing a REFUSE Message  .  .  .  .  .  .  .  27
  89.          3.2.       Data Transfer .  .  .  .  .  .  .  .  .  .  .  .  .  30
  90.          3.3.       Modifying an Existing Stream .  .  .  .  .  .  .  .  31
  91.          3.3.1.        Adding a Target  .  .  .  .  .  .  .  .  .  .  .  31
  92.          3.3.2.        The Origin Removing a Target .  .  .  .  .  .  .  33
  93.          3.3.3.        A Target Deleting Itself  .  .  .  .  .  .  .  .  35
  94.          3.3.4.        Changing the FlowSpec  .  .  .  .  .  .  .  .  .  36
  95.          3.4.       Stream Tear Down .  .  .  .  .  .  .  .  .  .  .  .  36
  96.          3.5.       Exceptional Cases   .  .  .  .  .  .  .  .  .  .  .  37
  97.          3.5.1.        Setup Failure due to CONNECT Timeout  .  .  .  .  37
  98.          3.5.2.        Problems due to Routing Inconsistency .  .  .  .  38
  99.          3.5.3.        Setup Failure due to a Routing Failure   .  .  .  39
  100.          3.5.4.        Problems in Reserving Resources .  .  .  .  .  .  41
  101.          3.5.5.        Setup Failure due to ACCEPT Timeout   .  .  .  .  41
  102.          3.5.6.        Problems Caused by CHANGE Messages .  .  .  .  .  42
  103.          3.5.7.        Notification of Changes Forced by Failures  .  .  42
  104.          3.6.       Options .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  44
  105.          3.6.1.        HID Field Option .  .  .  .  .  .  .  .  .  .  .  44
  106.          3.6.2.        PTP Option .  .  .  .  .  .  .  .  .  .  .  .  .  44
  107.          3.6.3.        FDx Option .  .  .  .  .  .  .  .  .  .  .  .  .  45
  108.          3.6.4.        NoRecovery Option   .  .  .  .  .  .  .  .  .  .  46
  109.          3.6.5.        RevChrg Option   .  .  .  .  .  .  .  .  .  .  .  46
  110.          3.6.6.        Source Route Option .  .  .  .  .  .  .  .  .  .  46
  111.          3.7.       Ancillary Functions .  .  .  .  .  .  .  .  .  .  .  48
  112.          3.7.1.        Failure Detection   .  .  .  .  .  .  .  .  .  .  48
  113.          3.7.1.1.         Network Failures .  .  .  .  .  .  .  .  .  .  48
  114.          3.7.1.2.         Detecting ST Stream Failures .  .  .  .  .  .  49
  115.          3.7.1.3.         Subset  .  .  .  .  .  .  .  .  .  .  .  .  .  51
  116.  
  117.  
  118. CIP Working Group                                               [Page 2]
  119.  
  120. RFC 1190                Internet Stream Protocol            October 1990
  121.  
  122.  
  123.          3.7.2.        Failure Recovery .  .  .  .  .  .  .  .  .  .  .  51
  124.          3.7.2.1.         Subset  .  .  .  .  .  .  .  .  .  .  .  .  .  55
  125.          3.7.3.        A Group of Streams  .  .  .  .  .  .  .  .  .  .  56
  126.          3.7.3.1.         Group Name Generator   .  .  .  .  .  .  .  .  57
  127.          3.7.3.2.         Subset  .  .  .  .  .  .  .  .  .  .  .  .  .  57
  128.          3.7.4.        HID Negotiation  .  .  .  .  .  .  .  .  .  .  .  58
  129.          3.7.4.1.         Subset  .  .  .  .  .  .  .  .  .  .  .  .  .  64
  130.          3.7.5.        IP Encapsulation of ST .  .  .  .  .  .  .  .  .  64
  131.          3.7.5.1.         IP Multicasting  .  .  .  .  .  .  .  .  .  .  65
  132.          3.7.6.        Retransmission   .  .  .  .  .  .  .  .  .  .  .  66
  133.          3.7.7.        Routing .  .  .  .  .  .  .  .  .  .  .  .  .  .  67
  134.          3.7.8.        Security   .  .  .  .  .  .  .  .  .  .  .  .  .  67
  135.          3.8.       ST Service Interfaces  .  .  .  .  .  .  .  .  .  .  68
  136.          3.8.1.        Access to Routing Information   .  .  .  .  .  .  69
  137.          3.8.2.        Access to Network Layer Resource Reservation   .  70
  138.          3.8.3.        Network Layer Services Utilized .  .  .  .  .  .  71
  139.          3.8.4.        IP Services Utilized   .  .  .  .  .  .  .  .  .  71
  140.          3.8.5.        ST Layer Services Provided   .  .  .  .  .  .  .  72
  141.  
  142.          4.      ST Protocol Data Unit Descriptions .  .  .  .  .  .  .  75
  143.          4.1.       Data Packets  .  .  .  .  .  .  .  .  .  .  .  .  .  76
  144.          4.2.       ST Control Message Protocol Descriptions .  .  .  .  77
  145.          4.2.1.        ST Control Messages .  .  .  .  .  .  .  .  .  .  79
  146.          4.2.2.        Common SCMP Elements   .  .  .  .  .  .  .  .  .  80
  147.          4.2.2.1.         DetectorIPAddress   .  .  .  .  .  .  .  .  .  80
  148.          4.2.2.2.         ErroredPDU .  .  .  .  .  .  .  .  .  .  .  .  80
  149.          4.2.2.3.         FlowSpec & RFlowSpec   .  .  .  .  .  .  .  .  81
  150.          4.2.2.4.         FreeHIDs   .  .  .  .  .  .  .  .  .  .  .  .  84
  151.          4.2.2.5.         Group & RGroup   .  .  .  .  .  .  .  .  .  .  85
  152.          4.2.2.6.         HID & RHID .  .  .  .  .  .  .  .  .  .  .  .  86
  153.          4.2.2.7.         MulticastAddress .  .  .  .  .  .  .  .  .  .  86
  154.          4.2.2.8.         Name & RName  .  .  .  .  .  .  .  .  .  .  .  87
  155.          4.2.2.9.         NextHopIPAddress .  .  .  .  .  .  .  .  .  .  88
  156.          4.2.2.10.        Origin  .  .  .  .  .  .  .  .  .  .  .  .  .  88
  157.          4.2.2.11.        OriginTimestamp  .  .  .  .  .  .  .  .  .  .  89
  158.          4.2.2.12.        ReasonCode .  .  .  .  .  .  .  .  .  .  .  .  89
  159.          4.2.2.13.        RecordRoute   .  .  .  .  .  .  .  .  .  .  .  94
  160.          4.2.2.14.        SrcRoute   .  .  .  .  .  .  .  .  .  .  .  .  95
  161.          4.2.2.15.        Target and TargetList  .  .  .  .  .  .  .  .  96
  162.          4.2.2.16.        UserData   .  .  .  .  .  .  .  .  .  .  .  .  98
  163.          4.2.3.        ST Control Message PDUs   .  .  .  .  .  .  .  .  99
  164.          4.2.3.1.         ACCEPT  .  .  .  .  .  .  .  .  .  .  .  .  . 100
  165.          4.2.3.2.         ACK  .  .  .  .  .  .  .  .  .  .  .  .  .  . 102
  166.          4.2.3.3.         CHANGE-REQUEST   .  .  .  .  .  .  .  .  .  . 103
  167.          4.2.3.4.         CHANGE  .  .  .  .  .  .  .  .  .  .  .  .  . 104
  168.          4.2.3.5.         CONNECT .  .  .  .  .  .  .  .  .  .  .  .  . 105
  169.          4.2.3.6.         DISCONNECT .  .  .  .  .  .  .  .  .  .  .  . 110
  170.          4.2.3.7.         ERROR-IN-REQUEST .  .  .  .  .  .  .  .  .  . 111
  171.          4.2.3.8.         ERROR-IN-RESPONSE   .  .  .  .  .  .  .  .  . 112
  172.          4.2.3.9.         HELLO   .  .  .  .  .  .  .  .  .  .  .  .  . 113
  173.          4.2.3.10.        HID-APPROVE   .  .  .  .  .  .  .  .  .  .  . 114
  174.          4.2.3.11.        HID-CHANGE-REQUEST  .  .  .  .  .  .  .  .  . 115
  175.  
  176.  
  177. CIP Working Group                                               [Page 3]
  178.  
  179. RFC 1190                Internet Stream Protocol            October 1990
  180.  
  181.  
  182.          4.2.3.12.        HID-CHANGE .  .  .  .  .  .  .  .  .  .  .  . 116
  183.          4.2.3.13.        HID-REJECT .  .  .  .  .  .  .  .  .  .  .  . 118
  184.          4.2.3.14.        NOTIFY  .  .  .  .  .  .  .  .  .  .  .  .  . 120
  185.          4.2.3.15.        REFUSE  .  .  .  .  .  .  .  .  .  .  .  .  . 122
  186.          4.2.3.16.        STATUS  .  .  .  .  .  .  .  .  .  .  .  .  . 124
  187.          4.2.3.17.        STATUS-RESPONSE  .  .  .  .  .  .  .  .  .  . 126
  188.          4.3.       Suggested Protocol Constants .  .  .  .  .  .  .  . 127
  189.  
  190.          5.      Areas Not Addressed .  .  .  .  .  .  .  .  .  .  .  . 131
  191.  
  192.          6.      Glossary   .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 135
  193.  
  194.          7.      References .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 143
  195.  
  196.          8.      Security Considerations.  .  .  .  .  .  .  .  .  .  . 144
  197.  
  198.          9.      Authors' Addresses  .  .  .  .  .  .  .  .  .  .  .  . 145
  199.  
  200.          Appendix 1.      Data Notations   .  .  .  .  .  .  .  .  .  . 147
  201.  
  202.    1.2.       List of Figures
  203.  
  204.          Figure 1.    Protocol Relationships  .  .  .  .  .  .  .  .  .   6
  205.          Figure 2.    Topology Used in Protocol Exchange Diagrams  .  .  16
  206.          Figure 3.    Virtual Link Identifiers for SCMP Messages   .  .  16
  207.          Figure 4.    HIDs Assigned for ST User Packets   .  .  .  .  .  18
  208.          Figure 5.    Origin Sending CONNECT Message   .  .  .  .  .  .  21
  209.          Figure 6.    CONNECT Processing by an Intermediate Agent  .  .  22
  210.          Figure 7.    CONNECT Processing by the Target .  .  .  .  .  .  24
  211.          Figure 8.    ACCEPT Processing by an Intermediate Agent   .  .  25
  212.          Figure 9.    ACCEPT Processing by the Origin  .  .  .  .  .  .  26
  213.          Figure 10.   Sending REFUSE Message  .  .  .  .  .  .  .  .  .  28
  214.          Figure 11.   Routing Around a Failure   .  .  .  .  .  .  .  .  29
  215.          Figure 12.   Addition of Another Target .  .  .  .  .  .  .  .  32
  216.          Figure 13.   Origin Removing a Target   .  .  .  .  .  .  .  .  34
  217.          Figure 14.   Target Deleting Itself  .  .  .  .  .  .  .  .  .  35
  218.          Figure 15.   CONNECT Retransmission after a Timeout .  .  .  .  38
  219.          Figure 16.   Processing NOTIFY Messages .  .  .  .  .  .  .  .  43
  220.          Figure 17.   Source Routing Option   .  .  .  .  .  .  .  .  .  47
  221.          Figure 18.   Typical HID Negotiation (No Multicasting) .  .  .  60
  222.          Figure 19.   Multicast HID Negotiation  .  .  .  .  .  .  .  .  61
  223.          Figure 20.   Multicast HID Re-Negotiation           .  .  .  .  62
  224.          Figure 21.   ST Header   .  .  .  .  .  .  .  .  .  .  .  .  .  75
  225.          Figure 22.   ST Control Message Format  .  .  .  .  .  .  .  .  77
  226.          Figure 23.   ErroredPDU  .  .  .  .  .  .  .  .  .  .  .  .  .  80
  227.          Figure 24.   FlowSpec & RFlowSpec .  .  .  .  .  .  .  .  .  .  81
  228.          Figure 25.   FreeHIDs .  .  .  .  .  .  .  .  .  .  .  .  .  .  85
  229.          Figure 26.   Group & RGroup .  .  .  .  .  .  .  .  .  .  .  .  85
  230.          Figure 27.   HID & RHID  .  .  .  .  .  .  .  .  .  .  .  .  .  86
  231.          Figure 28.   MulticastAddress  .  .  .  .  .  .  .  .  .  .  .  86
  232.          Figure 29.   Name & RName   .  .  .  .  .  .  .  .  .  .  .  .  87
  233.          Figure 30.   NextHopIPAddress  .  .  .  .  .  .  .  .  .  .  .  88
  234.  
  235.  
  236. CIP Working Group                                               [Page 4]
  237.  
  238. RFC 1190                Internet Stream Protocol            October 1990
  239.  
  240.  
  241.          Figure 31.   Origin   .  .  .  .  .  .  .  .  .  .  .  .  .  .  88
  242.          Figure 32.   OriginTimestamp   .  .  .  .  .  .  .  .  .  .  .  89
  243.          Figure 33.   ReasonCode  .  .  .  .  .  .  .  .  .  .  .  .  .  89
  244.          Figure 34.   RecordRoute .  .  .  .  .  .  .  .  .  .  .  .  .  94
  245.          Figure 35.   SrcRoute .  .  .  .  .  .  .  .  .  .  .  .  .  .  95
  246.          Figure 36.   Target   .  .  .  .  .  .  .  .  .  .  .  .  .  .  97
  247.          Figure 37.   TargetList  .  .  .  .  .  .  .  .  .  .  .  .  .  97
  248.          Figure 38.   UserData .  .  .  .  .  .  .  .  .  .  .  .  .  .  98
  249.          Figure 39.   ACCEPT Control Message  .  .  .  .  .  .  .  .  . 101
  250.          Figure 40.   ACK Control Message  .  .  .  .  .  .  .  .  .  . 102
  251.          Figure 41.   CHANGE-REQUEST Control Message   .  .  .  .  .  . 103
  252.          Figure 42.   CHANGE Control Message  .  .  .  .  .  .  .  .  . 105
  253.          Figure 43.   CONNECT Control Message .  .  .  .  .  .  .  .  . 109
  254.          Figure 44.   DISCONNECT Control Message .  .  .  .  .  .  .  . 110
  255.          Figure 45.   ERROR-IN-REQUEST Control Message .  .  .  .  .  . 111
  256.          Figure 46.   ERROR-IN-RESPONSE Control Message   .  .  .  .  . 112
  257.          Figure 47.   HELLO Control Message   .  .  .  .  .  .  .  .  . 113
  258.          Figure 48.   HID-APPROVE Control Message   .  .  .  .  .  .  . 114
  259.          Figure 49.   HID-CHANGE-REQUEST Control Message  .  .  .  .  . 115
  260.          Figure 50.   HID-CHANGE Control Message .  .  .  .  .  .  .  . 117
  261.          Figure 51.   HID-REJECT Control Message .  .  .  .  .  .  .  . 119
  262.          Figure 52.   NOTIFY Control Message  .  .  .  .  .  .  .  .  . 121
  263.          Figure 53.   REFUSE Control Message  .  .  .  .  .  .  .  .  . 123
  264.          Figure 54.   STATUS Control Message  .  .  .  .  .  .  .  .  . 125
  265.          Figure 55.   STATUS-RESPONSE Control Message  .  .  .  .  .  . 126
  266.          Figure 56.   Transmission Order of Bytes   .  .  .  .  .  .  . 147
  267.          Figure 57.   Significance of Bits .  .  .  .  .  .  .  .  .  . 147
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295. CIP Working Group                                               [Page 5]
  296.  
  297. RFC 1190                Internet Stream Protocol            October 1990
  298.  
  299.  
  300.  +--------------------+
  301.  | Conference Control |
  302.  +--------------------+
  303.                     |
  304. +-------+ +-------+ |
  305. | Video | | Voice | | +-----+ +------+ +-----+     +-----+ Application
  306. | Appl  | | Appl  | | | SNMP| |Telnet| | FTP | ... |     |    Layer
  307. +-------+ +-------+ | +-----+ +------+ +-----+     +-----+
  308.     |        |      |     |        |     |            |
  309.     V        V      |     |        |     |            |   ------------
  310.  +-----+  +-----+   |     |        |     |            |
  311.  | PVP |  | NVP |   |     |        |     |            |
  312.  +-----+  +-----+   +     |        |     |            |
  313.   |   \      | \     \    |        |     |            |
  314.   |    +-----|--+-----+   |        |     |            |
  315.   |     Appl.|control  V  V        V     V            V
  316.   | ST  data |         +-----+    +-------+        +-----+
  317.   | & control|         | UDP |    |  TCP  |    ... |     | Transport
  318.   |          |         +-----+    +-------+        +-----+   Layer
  319.   |         /|          / | \       / / |          / /|
  320.   |\       / |  +------+--|--\-----+-/--|--- ... -+ / |
  321.   | \     /  |  |         |   \     /   |          /  |
  322.   |  \   /   |  |         |    \   +----|--- ... -+   |   -----------
  323.   |   \ /    |  |         |     \ /     |             |
  324.   |    V     |  |         |      V      |             |
  325.   | +------+ |  |         |   +------+  |   +------+  |
  326.   | | SCMP | |  |         |   | ICMP |  |   | IGMP |  |    Internet
  327.   | +------+ |  |         |   +------+  |   +------+  |     Layer
  328.   |    |     |  |         |      |      |      |      |
  329.   V    V     V  V         V      V      V      V      V
  330. +-----------------+  +-----------------------------------+
  331. | STream protocol |->|      Internet     Protocol        |
  332. +-----------------+  +-----------------------------------+
  333.                | \   / |
  334.                |  \ /  |
  335.                |   X   |                                  ------------
  336.                |  / \  |
  337.                | /   \ |
  338.                VV     VV
  339. +----------------+   +----------------+
  340. | (Sub-) Network |...| (Sub-) Network |                  (Sub-)Network
  341. |    Protocol    |   |    Protocol    |                     Layer
  342. +----------------+   +----------------+
  343.  
  344.                     Figure 1.  Protocol Relationships
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354. CIP Working Group                                               [Page 6]
  355.  
  356. RFC 1190                Internet Stream Protocol            October 1990
  357.  
  358.  
  359. 2.      Introduction
  360.  
  361.    ST has been developed to support efficient delivery of streams of
  362.    packets to either single or multiple destinations in applications
  363.    requiring guaranteed data rates and controlled delay characteristics.
  364.    The motivation for the original protocol was that IP [2] [15] did not
  365.    provide the delay and data rate characteristics necessary to support
  366.    voice applications.
  367.  
  368.    ST is an internet protocol at the same layer as IP, see Figure 1.  ST
  369.    differs from IP in that IP, as originally envisioned, did not require
  370.    routers (or intermediate systems) to maintain state information
  371.    describing the streams of packets flowing through them.  ST
  372.    incorporates the concept of streams across an internet.  Every
  373.    intervening ST entity maintains state information for each stream
  374.    that passes through it.  The stream state includes forwarding
  375.    information, including multicast support for efficiency, and resource
  376.    information, which allows network or link bandwidth and queues to be
  377.    assigned to a specific stream.  This pre-allocation of resources
  378.    allows data packets to be forwarded with low delay, low overhead, and
  379.    a low probability of loss due to congestion.  The characteristics of
  380.    a stream, such as the number and location of the endpoints, and the
  381.    bandwidth required, may be modified during the lifetime of the
  382.    stream.  This allows ST to give a real time application the
  383.    guaranteed and predictable communication characteristics it requires,
  384.    and is a good vehicle to support an application whose communications
  385.    requirements are relatively predictable.
  386.  
  387.    ST proved quite useful in several early experiments that involved
  388.    voice conferences in the Internet.  Since that time, ST has also been
  389.    used to support point-to-point streams that include both video and
  390.    voice.  Recently, multimedia conferencing applications have been
  391.    developed that need to exchange real-time voice, video, and pointer
  392.    data in a multi-site conferencing environment.  Multimedia
  393.    conferencing across an internet is an application for which ST
  394.    provides ideal support.  Simulation and wargaming applications [14]
  395.    also place similar requirements on the communication system.  Other
  396.    applications may include scientific visualization between a number of
  397.    workstations and one or more remote supercomputers, and the
  398.    collection and distribution of real-time sensor data from remote
  399.    sensor platforms.  ST may also be useful to support activities that
  400.    are currently supported by IP, such as bulk file transfer using TCP.
  401.  
  402.    Transport protocols above ST include the Packet Video Protocol (PVP)
  403.    [5] and the Network Voice Protocol (NVP) [4], which are end-to-end
  404.    protocols used directly by applications.  Other transport layer
  405.    protocols that may be used over ST include TCP [16], VMTP [3], etc.
  406.    They provide the user interface, flow control, and packet ordering.
  407.    This specification does not describe these higher layer protocols.
  408.  
  409.  
  410.  
  411.  
  412.  
  413. CIP Working Group                                               [Page 7]
  414.  
  415. RFC 1190                Internet Stream Protocol            October 1990
  416.  
  417.  
  418.    2.1.       Major Differences Between ST and ST-II
  419.  
  420.       ST-II supports a wider variety of applications than did the
  421.       original ST.  The differences between ST and ST-II are fairly
  422.       straight forward yet provide great improvements.  Four of the more
  423.       notable differences are:
  424.  
  425.          1  ST-II is decoupled from the Access Controller (AC).  The
  426.             AC, as well as providing a rudimentary access control
  427.             function, also served as a centralized repository and
  428.             distributor of the conference information.  If an AC is
  429.             necessary, it should be an entity in a higher layer
  430.             protocol.  A large variety of applications such as
  431.             conferencing, distributed simulations, and wargaming can
  432.             be run without an explicit AC.
  433.  
  434.          2  The basic stream construct of ST-II is a directed tree
  435.             carrying traffic away from a source to all the
  436.             destinations, rather than the original ST's omniplex
  437.             structure.  For example, a conference is composed of a
  438.             number of such trees, one for traffic from each
  439.             participant.  Although there are more (simplex) streams in
  440.             ST-II, each is much simpler to manage, so the aggregate is
  441.             much simpler.  This change has a minimal impact on the
  442.             application.
  443.  
  444.          3  ST-II defines a number of the robustness and recovery
  445.             mechanisms that were left undefined in the original ST
  446.             specification.  In case of a network or ST Agent failure,
  447.             a stream may optionally be repaired automatically (i.e.,
  448.             without intervention from the user or the application)
  449.             using a pruned depth first search starting at the ST Agent
  450.             immediately preceding the failure.
  451.  
  452.          4  ST-II does not make an inherent distinction between
  453.             streams connecting only two communicants and streams among
  454.             an arbitrary number of communicants.
  455.  
  456.       This memo is the specification for the ST-II Protocol.  Since
  457.       there should be no ambiguity between the original ST specification
  458.       and the specification herein, the protocol is simply called ST
  459.       hereafter.
  460.  
  461.       ST is the protocol used by ST entities to exchange information.
  462.       The same protocol is used for communication among all ST entities,
  463.       whether they communicate with a higher layer protocol or forward
  464.       ST packets between attached networks.
  465.  
  466.       The remainder of this section gives a brief overview of the ST
  467.       Protocol.  Section 3 (page 17) provides a detailed description of
  468.       the operations required by the protocol.  Section 4 (page 75)
  469.       provides descriptions of the ST Protocol Data Units exchanged
  470.  
  471.  
  472. CIP Working Group                                               [Page 8]
  473.  
  474. RFC 1190                Internet Stream Protocol            October 1990
  475.  
  476.  
  477.       between ST entities.  Issues that have not yet been fully
  478.       addressed are presented in Section 5 (page 131).  A glossary and
  479.       list of references are in Sections 6 (page 135) and 7 (page 143),
  480.       respectively.
  481.  
  482.       This memo also defines "subsets" of ST that can be implemented.  A
  483.       subsetted implementation does not have full ST functionality, but
  484.       it can interoperate with other similarly subsetted
  485.       implementations, or with a full implementation, in a predictable
  486.       and consistent manner.  This approach allows an implementation to
  487.       be built and provide service with minimum effort, and gives it an
  488.       immediate and well defined growth path.
  489.  
  490.  
  491.    2.2.       Concepts and Terminology
  492.  
  493.       The ST packet header is not constrained to be compatible with the
  494.       IP packet header, except for the IP Version Number (the first four
  495.       bits) that is used to distinguish ST packets (IP Version 5) from
  496.       IP packets (IP Version 4).  The ST packets, or protocol data units
  497.       (PDUs), can be encapsulated in IP either to provide connectivity
  498.       (possibly with degraded service) across portions of an internet
  499.       that do not provide support for ST, or to allow access to services
  500.       such as security that are not provided directly by ST.
  501.  
  502.       An internet entity that implements the ST Protocol is called an
  503.       "ST Agent".  We refer to two kinds of ST agents:  "host ST
  504.       agents", also called "host agents" and "intermediate ST agents",
  505.       also called "intermediate agents".  The ST agents functioning as
  506.       hosts are sourcing or sinking data to a higher layer protocol or
  507.       application, while ST agents functioning as intermediate agents
  508.       are forwarding data between directly attached networks.  This
  509.       distinction is not part of the protocol, but is used for
  510.       conceptual purposes only.  Indeed, a given ST agent may be
  511.       simultaneously performing both host and intermediate roles.  Every
  512.       ST agent should be capable of delivering packets to a higher layer
  513.       protocol.  Every ST agent can replicate ST data packets as
  514.       necessary for multi-destination delivery, and is able to send
  515.       packets whether received from a network interface or a higher
  516.       layer protocol.  There are no other kinds of ST agents.
  517.  
  518.       ST provides applications with an end-to-end flow oriented service
  519.       across an internet.  This service is implemented using objects
  520.       called "streams".  ST data packets are not considered to be
  521.       totally independent as are IP data packets.  They are transmitted
  522.       only as part of a point-to-point or point-to-multi- point stream.
  523.       ST creates a stream during a setup phase before data is
  524.       transmitted.  During the setup phase, routes are selected and
  525.       internetwork resources are reserved.  Except for explicit changes
  526.       to the stream, the routes remain in effect until the stream is
  527.       explicitly torn down.
  528.  
  529.  
  530.  
  531. CIP Working Group                                               [Page 9]
  532.  
  533. RFC 1190                Internet Stream Protocol            October 1990
  534.  
  535.  
  536.       An ST stream is:
  537.  
  538.          o  the set of paths that data generated by an application
  539.             entity traverses on its way to its peer application
  540.             entity(s) that receive it,
  541.  
  542.          o  the resources allocated to support that transmission of
  543.             data, and
  544.  
  545.          o  the state information that is maintained describing that
  546.             transmission of data.
  547.  
  548.       Each stream is identified by a globally unique "Name";  see
  549.       Section 4.2.2.8 (page 87).  The Name is specified in ST control
  550.       operations, but is not used in ST data packets.  A set of streams
  551.       may be related as members of a larger aggregate called a "group".
  552.       A group is identified by a "Group Name";  see Section 3.7.3 (page
  553.       56).
  554.  
  555.       The end-users of a stream are called the "participants" in the
  556.       stream.  Data travels in a single direction through any given
  557.       stream.  The host agent that transmits the data into the stream is
  558.       called the "origin", and the host agents that receive the data are
  559.       called the "targets".  Thus, for any stream one participant is the
  560.       origin and the others are the targets.
  561.  
  562.       A stream is "multi-destination simplex" since data travels across
  563.       it in only one direction:  from the origin to the targets.  A
  564.       stream can be viewed as a directed tree in which the origin is the
  565.       root, all the branches are directed away from the root toward the
  566.       targets, which are the leaves.  A "hop" is an edge of that tree.
  567.       The ST agent that is on the end of an edge in the direction toward
  568.       the origin is called the "previous-hop ST agent", or the
  569.       "previous-hop".  The ST agents that are one hop away from a
  570.       previous-hop ST agent in the direction toward the targets are
  571.       called the "next-hop ST agents", or the "next-hops".  It is
  572.       possible that multiple edges between a previous-hop and several
  573.       next-hops are actually implemented by a network level multicast
  574.       group.
  575.  
  576.       Packets travel across a hop for one of two purposes:  data or
  577.       control.  For ST data packet handling, hops are marked by "Hop
  578.       IDentifiers" (HIDs) used for efficient forwarding instead of the
  579.       stream's Name.  A HID is negotiated among several agents so that
  580.       data forwarding can be done efficiently on both a point-to-point
  581.       and multicast basis.  All control message exchange is done on a
  582.       point-to-point basis between a pair of agents.  For control
  583.       message handling, Virtual Link Identifiers are used to quickly
  584.       dispatch the control messages to the proper stream's state
  585.       machine.
  586.  
  587.  
  588.  
  589.  
  590. CIP Working Group                                              [Page 10]
  591.  
  592. RFC 1190                Internet Stream Protocol            October 1990
  593.  
  594.  
  595.       ST requires routing decisions to be made at several points in the
  596.       stream setup and management process.  ST assumes that an
  597.       appropriate routing algorithm exists to which ST has access; see
  598.       Section 3.8.1 (page 69).  However, routing is considered to be a
  599.       separate issue.  Thus neither the routing algorithm nor its
  600.       implementation is specified here.  A routing algorithm may attempt
  601.       to minimize the number of hops to the target(s), or it may be more
  602.       intelligent and attempt to minimize the total internet resources
  603.       consumed.  ST operates equally well with any reasonable routing
  604.       algorithm.  The availability of a source routing option does not
  605.       eliminate the need for an appropriate routing algorithm in ST
  606.       agents.
  607.  
  608.  
  609.    2.3.       Relationship Between Applications and ST
  610.  
  611.       It is the responsibility of an ST application entity to exchange
  612.       information among its peers, usually via IP, as necessary to
  613.       determine the structure of the communication before establishing
  614.       the ST stream.  This includes:
  615.  
  616.          o  identifying the participants,
  617.  
  618.          o  determining which are targets for which origins,
  619.  
  620.          o  selecting the characteristics of the data flow between any
  621.             origin and its target(s),
  622.  
  623.          o  specifying the protocol that resides above ST,
  624.  
  625.          o  identifying the Service Access Point (SAP), port, or
  626.             socket relevant to that protocol at every participant, and
  627.  
  628.          o  ensuring security, if necessary.
  629.  
  630.       The protocol layer above ST must pass such information down to the
  631.       ST protocol layer when creating a stream.
  632.  
  633.       ST uses a flow specification, abbreviated herein as "FlowSpec", to
  634.       describe the required characteristics of a stream.  Included are
  635.       bandwidth, delay, and reliability parameters.  Additional
  636.       parameters may be included in the future in an extensible manner.
  637.       The FlowSpec describes both the desired values and their minimal
  638.       allowable values.  The ST agents thus have some freedom in
  639.       allocating their resources.  The ST agents accumulate information
  640.       that describes the characteristics of the chosen path and pass
  641.       that information to the origin and the targets of the stream.
  642.  
  643.       ST stream setup control messages carry some information that is
  644.       not specifically relevant to ST, but is passed through the
  645.       interface to the protocol that resides above ST.  The "next
  646.  
  647.  
  648.  
  649. CIP Working Group                                              [Page 11]
  650.  
  651. RFC 1190                Internet Stream Protocol            October 1990
  652.  
  653.  
  654.       protocol identifier" ("NextPcol") allows ST to demultiplex streams
  655.       to a number of possible higher layer protocols.  The SAP
  656.       associated with each participant allows the higher layer protocol
  657.       to further demultiplex to a specific application entity.  A
  658.       UserData parameter is provided;  see Section 4.2.2.16 (page 98).
  659.  
  660.  
  661.    2.4.       ST Control Message Protocol
  662.  
  663.       ST agents create and manage a stream using the ST Control Message
  664.       Protocol (SCMP).  Conceptually, SCMP resides immediately above ST
  665.       (as does ICMP above IP) but is an integral part of ST.  Control
  666.       messages are used to:
  667.  
  668.          o  create streams,
  669.  
  670.          o  refuse creation of a stream,
  671.  
  672.          o  delete a stream in whole or in part,
  673.  
  674.          o  negotiate or change a stream's parameters,
  675.  
  676.          o  tear down parts of streams as a result of router or
  677.             network failures, or transient routing inconsistencies,
  678.             and
  679.  
  680.          o  reroute around network or component failures.
  681.  
  682.       SCMP follows a request-response model.  SCMP reliability is
  683.       ensured through use of retransmission after timeout;  see Section
  684.       3.7.6 (page 66).
  685.  
  686.       An ST application that will transmit data requests its local ST
  687.       agent, the origin, to create a stream.  While only the origin
  688.       requests creation of a stream, all the ST agents from the origin
  689.       to the targets participate in its creation and management.  Since
  690.       a stream is simplex, each participant that wishes to transmit data
  691.       must request that a stream be created.
  692.  
  693.       An ST agent that receives an indication that a stream is being
  694.       created must:
  695.  
  696.          1  negotiate a HID with the previous-hop identifying the
  697.             stream,
  698.  
  699.          2  map the list of targets onto a set of next-hop ST agents
  700.             through the routing function,
  701.  
  702.          3  reserve the local and network resources required to
  703.             support the stream,
  704.  
  705.  
  706.  
  707.  
  708. CIP Working Group                                              [Page 12]
  709.  
  710. RFC 1190                Internet Stream Protocol            October 1990
  711.  
  712.  
  713.          4  update the FlowSpec, and
  714.  
  715.          5  propagate the setup information and partitioned target
  716.             list to the next-hop ST agents.
  717.  
  718.       When a target receives the setup message, it must inquire from the
  719.       specified application process whether or not it is willing to
  720.       accept the stream, and inform the origin accordingly.
  721.  
  722.       Once a stream is established, the origin can safely send data.  ST
  723.       and its implementations are optimized to allow fast and efficient
  724.       forwarding of data packets by the ST agents using the HIDs, even
  725.       at the cost of adding overhead to stream creation and management.
  726.       Specifically, the forwarding decisions, that is, determining the
  727.       set of next-hop ST agents to which a data packet belonging to a
  728.       particular stream will be sent, are made during the stream setup
  729.       phase.  The shorthand HIDs are negotiated at that time, not only
  730.       to reduce the data packet header size, but to access efficiently
  731.       the stream's forwarding information.  When possible, network-layer
  732.       multicast is used to forward a data packet to multiple next-hop ST
  733.       agents across a network.  Note that when network-layer multicast
  734.       is used, all members of the multicast group must participate in
  735.       the negotiation of a common HID.
  736.  
  737.       An established stream can be modified by adding or deleting
  738.       targets, or by changing the network resources allocated to it.  A
  739.       stream may be torn down by either the origin or the targets.  A
  740.       target can remove itself from a stream leaving the others
  741.       unaffected.  The origin can similarly remove any subset of the
  742.       targets from its stream leaving the remainder unaffected.  An
  743.       origin can also remove all the targets from the stream and
  744.       eliminate the stream in its entirety.
  745.  
  746.       A stream is monitored by the involved ST agents.  If they detect a
  747.       failure, they can attempt recovery.  In general, this involves
  748.       tearing down part of the stream and rebuilding it to bypass the
  749.       failed component(s).  The rebuilding always occurs from the origin
  750.       side of the failure.  The origin can optionally specify whether
  751.       recovery is to be attempted automatically by intermediate ST
  752.       agents or whether a failure should immediately be reported to the
  753.       origin.  If automatic recovery is selected but an intermediate
  754.       agent determines it cannot effect the repair, it propagates the
  755.       failure information backward until it reaches an agent that can
  756.       effect repair.  If the failure information propagates back to the
  757.       origin, then the application can decide if it should abort or
  758.       reattempt the recovery operation.
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767. CIP Working Group                                              [Page 13]
  768.  
  769. RFC 1190                Internet Stream Protocol            October 1990
  770.  
  771.  
  772.       Although ST supports an arbitrary connection structure, we
  773.       recognize that certain stream topologies will be common and
  774.       justify special features, or options, which allow for optimized
  775.       support.  These include:
  776.  
  777.          o  streams with only a single target (see Section 3.6.2 (page
  778.             44)), and
  779.  
  780.          o  pairs of streams to support full duplex communication
  781.             between two points (see Section 3.6.3 (page 45)).
  782.  
  783.       These features allow the most frequently occurring topologies to
  784.       be supported with less setup delay, with fewer control messages,
  785.       and with less overhead than the more general situations.
  786.  
  787.  
  788.    2.5.       Flow Specifications
  789.  
  790.       Real time data, such as voice and video, have predictable
  791.       characteristics and make specific demands of the networks that
  792.       must transfer it.  Specifically, the data may be transmitted in
  793.       packets of a constant size that are produced at a constant rate.
  794.       Alternatively, the bandwidth may vary, due either to variable
  795.       packet size or rate, with a predefined maximum, and perhaps a
  796.       non-zero minimum.  The variation may also be predictable based on
  797.       some model of how the data is generated.  Depending on the
  798.       equipment used to generate the data, the packet size and rate may
  799.       be negotiable.  Certain applications, such as voice, produce
  800.       packets at the given rate only some of the time.  The networks
  801.       that support real time data must add minimal delay and delay
  802.       variance, but it is expected that they will be non-zero.
  803.  
  804.       The FlowSpec is used for three purposes.  First, it is used in the
  805.       setup message to specify the desired and minimal packet size and
  806.       rate required by the origin.  This information is used by ST
  807.       agents when they attempt to reserve the resources in the
  808.       intervening networks.  Second, when the setup message reaches the
  809.       target, the FlowSpec contains the packet size and rate that was
  810.       actually obtained along the path from the origin, and the accrued
  811.       mean delay and delay variance expected for data packets along that
  812.       path.  This information is used by the target to determine if it
  813.       wishes to accept the connection.  The target may reduce reserved
  814.       resources if it wishes to do so and if the possibility is still
  815.       available.  Third, if the target accepts the connection, it
  816.       returns the updated FlowSpec to the origin, so that the origin can
  817.       decide if it still wishes to participate in the stream with the
  818.       characteristics that were actually obtained.
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826. CIP Working Group                                              [Page 14]
  827.  
  828. RFC 1190                Internet Stream Protocol            October 1990
  829.  
  830.  
  831.       When the data transmitted by stream users is generated at varying
  832.       rates, including bursts of varying rate and duration, there is an
  833.       opportunity to provide service to more subscribers by providing
  834.       guaranteed service for the average data rate of each stream, and
  835.       reserving additional network capacity, shared among all streams,
  836.       to service the bursts.  This concept has been recognized by analog
  837.       voice network providers leading to the principle of time assigned
  838.       speech interpolation (TASI) in which only the talkspurts of a
  839.       speech conversation are transmitted, and, during silence periods,
  840.       the circuit can be used to send the talkspurts of other
  841.       conversations.  The FlowSpec is intended to assist algorithms that
  842.       perform similar kinds of functions.  We do not propose such
  843.       algorithms here, but rather expect that this will be an area for
  844.       experimentation.  To allow for experiments, and a range of ways
  845.       that application traffic might be characterized, a "DutyFactor" is
  846.       included in the FlowSpec and we expect that a "burst descriptor"
  847.       will also be needed.
  848.  
  849.       The FlowSpec will need to be revised as experience is gained with
  850.       connections involving numerous participants using multiple media
  851.       across heterogeneous internetworks.  We feel a change of the
  852.       FlowSpec does not necessarily require a new version of ST, it only
  853.       requires the FlowSpec version number be updated and software to
  854.       manage the new FlowSpec to be distributed.  We further suggest
  855.       that if the change to the FlowSpec involves additional information
  856.       for improved operation, such as a burst descriptor, that it be
  857.       added to the end of the FlowSpec and that the current parameters
  858.       be maintained so that obsolete software can be used to process the
  859.       current parameters with minimum modifications.
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885. CIP Working Group                                              [Page 15]
  886.  
  887. RFC 1190                Internet Stream Protocol            October 1990
  888.  
  889.  
  890.                       ****                      ****
  891.                      *    *     ST Agent 1     *    *       +---+
  892.                     *      *------- o ---------*    *-------+ B |
  893.                     *      *                   *    *       +---+
  894.                     *      *                    ****
  895.       +---+         *      *                     |
  896.       |   |         *      *                     |
  897.       | A +---------*      *                     o ST Agent 3
  898.       |   |         *      *                     |
  899.       +---+         *      *                     |
  900.                     *      *                    ***
  901.                     *      *                   *   *        +---+
  902.                     *      *    ST Agent 2    *     *-------+ C |
  903.                     *      *------- o --------*     *       +---+
  904.                      *    *                   *     *
  905.                       ****                    *     *
  906.                                               *     *
  907.                                  +---+        *     *       +---+
  908.                                  | E +--------*     *-------+ D |
  909.                                  +---+         *   *        +---+
  910.                                                 ***
  911.  
  912.          Figure 2.  Topology Used in Protocol Exchange Diagrams
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.                       ****     ST Agent 1       ****
  920.                      * +--+---14--- o -----15--+----+--44---+---+
  921.                     *  | +-+--11---   -----16--+-+  *       | B |
  922.                     *  | | *                   * |+-+--45---+---+
  923.                     *  | | *                    *++*
  924.       +---+         *  | | *                  34 ||32
  925.       |   +----4----+--+ | *                     ||
  926.       | A +----6----+----+ *                     o ST Agent 3
  927.       |   +----5----+---+  *                     |
  928.       +---+         *   |  *                     | 33
  929.                     *   |  *       ST           *+*
  930.                     *   |  *      Agent        * | *
  931.                     *   |  *        2 -----24-+--+  *       +---+
  932.                     *   +--+--23--- o -----25-+-----+--54---+ C |
  933.                      *    *           -----26-+---+ *       +---+
  934.                       ****            -----27-+-+ | *
  935.                                               * | | *
  936.                                  +---+        * | | *       +---+
  937.                                  | E +---74---+-+ +-+--64---+ D |
  938.                                  +---+         *   *        +---+
  939.                                                 ***
  940.  
  941.          Figure 3.  Virtual Link Identifiers for SCMP Messages
  942.  
  943.  
  944. CIP Working Group                                              [Page 16]
  945.  
  946. RFC 1190                Internet Stream Protocol            October 1990
  947.  
  948.  
  949. 3.      ST Control Message Protocol Functional Description
  950.  
  951.    This section contains a functional description of the ST Control
  952.    Message Protocol (SCMP); Section 4 (page 75) specifies the formats of
  953.    the control message PDUs.  We begin with a description of stream
  954.    setup.  Mechanisms used to deal with the exceptional cases are then
  955.    presented.  Complications due to options that an application or a ST
  956.    agent may select are then detailed.  Once a stream has been
  957.    established, the data transfer phase is entered; it is described.
  958.    Once the data transfer phase has been completed, the stream must be
  959.    torn down and resources released; the control messages used to
  960.    perform this function are presented.  The resources or participants
  961.    of a stream may be changed during the lifetime of the stream; the
  962.    procedures to make changes are described.  Finally, the section
  963.    concludes with a description of some ancillary functions, such as
  964.    failure detection and recovery, HID negotiation, routing, security,
  965.    etc.
  966.  
  967.    To help clarify the SCMP exchanges used to setup and maintain ST
  968.    streams, we have included a series of figures in this section.  The
  969.    protocol interactions in the figures assume the topology shown in
  970.    Figure 2.  The figures, taken together,
  971.  
  972.     o  Create a stream from an application at A to three peers at B,
  973.        C and D,
  974.  
  975.     o  Add a peer at E,
  976.  
  977.     o  Disconnect peers B and C, and
  978.  
  979.     o  D drops out of the stream.
  980.  
  981.    Other figures illustrate exchanges related to failure recovery.
  982.  
  983.    In order to make the dispatch function within SCMP more uniform and
  984.    efficient, each end of a hop is assigned, by the agent at that end, a
  985.    Virtual Link Identifier that uniquely (within that agent) identifies
  986.    the hop and associates it with a particular stream's state
  987.    machine(s).  The identifier at the end of a link that is sending a
  988.    message is called the Sender Virtual Link Identifier (SVLId);  that
  989.    at the receiving end is called the Receiver Virtual Link Identifier
  990.    (RVLId).  Whenever one agent sends a control message for the other to
  991.    receive, the sender will place the receiver's identifier into the
  992.    RVLId field of the message and its own identifier in the SVLId field.
  993.    When a reply to the message is sent, the values in SVLId and RVLId
  994.    fields will be reversed, reflecting the fact the sender and receiver
  995.    roles are reversed.  VLIds with values zero through three are
  996.    received and should not be assigned in response to CONNECT messages.
  997.    Figure 3 shows the hops that will be used in the examples and
  998.    summarizes the VLIds that will be assigned to them.
  999.  
  1000.  
  1001.  
  1002.  
  1003. CIP Working Group                                              [Page 17]
  1004.  
  1005. RFC 1190                Internet Stream Protocol            October 1990
  1006.  
  1007.  
  1008.    Similarly, Figure 4 summarizes the HIDs that will eventually be
  1009.    negotiated as the stream is created.
  1010.  
  1011.                       ****     ST Agent 1       ****
  1012.                      *  +>+--1200-> o -------->+--->+-3600->+---+
  1013.                     *   ^  *                   *    *       | B |
  1014.                     *   |  *                   * +->+-6000->+---+
  1015.                     *   |  *                    *+**
  1016.       +---+         *   |  *                     ^
  1017.       |   +-------->+-->+  *                     |
  1018.       | A |         *      *                     o St Agent 3
  1019.       |   +-------->+-->+  *                     ^
  1020.       +---+         *   |  *                     | 4801
  1021.                     *   |  *                    *+*
  1022.                     *   V  *   ST Agent 2      * ^ *        +---+
  1023.                      *  +>+--2400-> o ------->+->+->+-4800->+ C |
  1024.                       ****                    *  |  * 4801  +---+
  1025.                                               *  |  *
  1026.                                  +---+        *  V  *       +---+
  1027.                                  | E +<-4800--+<-+->+-4800->+ D |
  1028.                                  +---+         *   *  4801  +---+
  1029.                                                 ***
  1030.  
  1031.              Figure 4.  HIDs Assigned for ST User Packets
  1032.  
  1033.  
  1034.    Some of the diagrams that follow form a progression.  For example,
  1035.    the steps required initially to establish a connection are spread
  1036.    across five figures.  Within a progression, the actions on the first
  1037.    diagram are numbered 1.1, 1.2, etc.;  within the second diagram they
  1038.    are numbered 2.1, 2.2, etc.  Points where control leaves one diagram
  1039.    to enter another are identified with a continuation arrow "-->>", and
  1040.    are continued with "[a.b] >>-->" in the other diagram.  The number in
  1041.    brackets shows the label where control left the earlier diagram.  The
  1042.    reception of simple acknowledgments, e.g., ACKs, in one figure from
  1043.    another is omitted for clarity.
  1044.  
  1045.  
  1046.    3.1.       Stream Setup
  1047.  
  1048.  
  1049.       This section presents a description of stream setup assuming that
  1050.       everything succeeds -- HIDs are approved, any required resources
  1051.       are available, and the routing is correct.
  1052.  
  1053.  
  1054.       3.1.1.        Initial Setup at the Origin
  1055.  
  1056.          As described in Section 2.3 (page 11), the application has
  1057.          collected the information necessary to determine the
  1058.  
  1059.  
  1060.  
  1061.  
  1062. CIP Working Group                                              [Page 18]
  1063.  
  1064. RFC 1190                Internet Stream Protocol            October 1990
  1065.  
  1066.  
  1067.          participants in the communication before passing it to the host
  1068.          ST agent at the origin.  The host ST agent will take this
  1069.          information, allocate a Name for the stream (see Section
  1070.          4.2.2.8 (page 87)), and create a stream.
  1071.  
  1072.  
  1073.       3.1.2.        Invoking the Routing Function
  1074.  
  1075.          An ST agent that is setting up a stream invokes a routing
  1076.          function to find a path to reach each of the targets specified
  1077.          in the TargetList.  This is similar to the routing decision in
  1078.          IP.  However, in this case the route is to a multitude of
  1079.          targets rather than to a single destination.
  1080.  
  1081.          The set of next-hops that an ST agent would select is not
  1082.          necessarily the same as the set of next hops that IP would
  1083.          select given a number of independent IP datagrams to the same
  1084.          destinations.  The routing algorithm may attempt to optimize
  1085.          parameters other than the number of hops that the packets will
  1086.          take, such as delay, local network bandwidth consumption, or
  1087.          total internet bandwidth consumption.
  1088.  
  1089.          The result of the routing function is a set of next-hop ST
  1090.          agents and the parameters of the intervening network(s).  The
  1091.          latter permit the ST agent to determine whether the selected
  1092.          network has the resources necessary to support the level of
  1093.          service requested in the FlowSpec.
  1094.  
  1095.  
  1096.       3.1.3.        Reserving Resources
  1097.  
  1098.          The intent of ST is to provide a guaranteed level of service by
  1099.          reserving internet resources for a stream during a setup phase
  1100.          rather than on a per packet basis.  The relevant resources are
  1101.          not only the forwarding information maintained by the ST
  1102.          agents, but also packet switch processor bandwidth and buffer
  1103.          space, and network bandwidth and multicast group identifiers.
  1104.          Reservation of these resources can help to increase the
  1105.          reliability and decrease the delay and delay variance with
  1106.          which data packets are delivered.  The FlowSpec contains all
  1107.          the information needed by the ST agent to allocate the
  1108.          necessary resources.  When and how these resources are
  1109.          allocated depends on the details of the networks involved, and
  1110.          is not specified here.
  1111.  
  1112.          If an ST agent must send data across a network to a single
  1113.          next-hop ST agent, then only the point-to-point bandwidth needs
  1114.          to be reserved.  If the agent must send data to multiple next-
  1115.          hop agents across one network and network layer multicasting is
  1116.          not available, then bandwidth must be reserved for all of them.
  1117.          This will allow the ST agent to
  1118.  
  1119.  
  1120.  
  1121. CIP Working Group                                              [Page 19]
  1122.  
  1123. RFC 1190                Internet Stream Protocol            October 1990
  1124.  
  1125.  
  1126.          use replication to send a copy of the data packets to each
  1127.          next-hop agent.
  1128.  
  1129.          If multicast is supported, its use will decrease the effort
  1130.          that the ST agent must expend when forwarding packets and also
  1131.          reduces the bandwidth required since one copy can be received
  1132.          by all next-hop agents.  However, the setup phase is more
  1133.          complicated.  A network multicast address must be allocated
  1134.          that contains all those next-hop agents, the sender must have
  1135.          access to that address, the next-hop agents must be informed of
  1136.          the address so they can join the multicast group identified by
  1137.          it (see Section 4.2.2.7 (page 86)), and a common HID must be
  1138.          negotiated.
  1139.  
  1140.          The network should consider the bandwidth and multicast
  1141.          requirements to determine the amount of packet switch
  1142.          processing bandwidth and buffer space to reserve for the
  1143.          stream.  In addition, the membership of a stream in a Group may
  1144.          affect the resources that have to be allocated;  see Section
  1145.          3.7.3 (page 56).
  1146.  
  1147.          Few networks in the Internet currently offer resource
  1148.          reservation, and none that we know of offer reservation of all
  1149.          the resources specified here.  Only the Terrestrial Wideband
  1150.          Network (TWBNet) [7] and the Atlantic Satellite Network
  1151.          (SATNET) [9] offer(ed) bandwidth reservation.  Multicasting is
  1152.          more widely supported.  No network provides for the reservation
  1153.          of packet switch processing bandwidth or buffer space.  We hope
  1154.          that future networks will be designed to better support
  1155.          protocols like ST.
  1156.  
  1157.          Effects similar to reservation of the necessary resources may
  1158.          be obtained even when the network cannot provide direct support
  1159.          for the reservation.  Certainly if total reservations are a
  1160.          small fraction of the overall resources, such as packet switch
  1161.          processing bandwidth, buffer space, or network bandwidth, then
  1162.          the desired performance can be honored if the degree of
  1163.          confidence is consistent with the requirements as stated in the
  1164.          FlowSpec.  Other solutions can be designed for specific
  1165.          networks.
  1166.  
  1167.  
  1168.       3.1.4.        Sending CONNECT Messages
  1169.  
  1170.          A VLId and a proposed HID must be selected for each next-hop
  1171.          agent.  The control packets for the next-hop must carry the
  1172.          VLId in the SVLId field.  The data packets transmitted in the
  1173.          stream to the next-hop must carry the HID in the ST Header.
  1174.  
  1175.          The ST agent sends a CONNECT message to each of the ST agents
  1176.          identified by the routing function.  Each CONNECT message
  1177.          contains the VLId, the proposed HID (the HID Field option bit
  1178.  
  1179.  
  1180. CIP Working Group                                              [Page 20]
  1181.  
  1182. RFC 1190                Internet Stream Protocol            October 1990
  1183.  
  1184.  
  1185.          must be set, see Section 3.6.1 (page 44)), an updated FlowSpec,
  1186.          and a TargetList.  In general, the HID, FlowSpec, and
  1187.          TargetList will depend on both the next-hop and the intervening
  1188.          network.  Each TargetList is a subset of the received (or
  1189.          original) TargetList, identifying the targets that are to be
  1190.          reached through the next-hop to which the CONNECT message is
  1191.          being sent.  Note that a CONNECT message to a single next-hop
  1192.          might have to be fragmented into multiple CONNECTs if the
  1193.          single CONNECT is too large for the intervening network's MTU;
  1194.          fragmentation is performed by further dividing the TargetList.
  1195.  
  1196.          If multiple next-hops are to be reached through a network that
  1197.          supports network level multicast, a different CONNECT message
  1198.          must nevertheless be sent to each next-hop since each will have
  1199.          a different TargetList;  see Section 4.2.3.5 (page 105).
  1200.          However, since an identical copy of each ensuing data packet
  1201.          will reach each member of the multicast group, all the CONNECT
  1202.          messages must propose the same HID.  See Section 3.7.4 (page
  1203.          58) for a detailed discussion on HID selection.
  1204.  
  1205.          In the example of Figure 2, the routing function might return
  1206.          that B is reachable via Agent 1 and C and D are reachable via
  1207.          Agent 2.  Thus A would create two CONNECT messages, one each
  1208.          for Agents 1 and 2, as illustrated in Figure 5.  Assuming that
  1209.          the proposed HIDs are available in the receiving agents, they
  1210.          would each send a responding HID-APPROVE back to Agent A.
  1211.  
  1212.  
  1213.          Application  Agent A                    Agent 1    Agent 2
  1214.  
  1215.     1.1. (open B,C,D)
  1216.                V
  1217.     1.2.       +-> (routing to B,C,D)
  1218.                          V
  1219.     1.3.                 +->(reserve resources from A to Agent 1)
  1220.                          |  V
  1221.     1.4.                 |  +-> CONNECT B --------->>
  1222.                          |      <RVLId=0><SVLId=4>
  1223.                          |      <Ref=10><HID=1200>
  1224.                          V
  1225.     1.5.                 +->(reserve resources from A to Agent 2)
  1226.                             V
  1227.     1.6.                    +-> CONNECT C,D ------------------>>
  1228.                                 <RVLId=0><SVLId=5>
  1229.                                 <Ref=15><HID=2400>
  1230.  
  1231.                Figure 5.  Origin Sending CONNECT Message
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239. CIP Working Group                                              [Page 21]
  1240.  
  1241. RFC 1190                Internet Stream Protocol            October 1990
  1242.  
  1243.  
  1244.       3.1.5.        CONNECT Processing by an Intermediate Agent
  1245.  
  1246.          An ST agent receiving a CONNECT message should, assuming no
  1247.          errors, quickly select a VLId and respond to the previous-hop
  1248.          with either an ACK, a HID-REJECT, or a HID-APPROVE message, as
  1249.          is appropriate.  This message must identify the CONNECT to
  1250.          which it corresponds by including the CONNECT's Reference
  1251.          number in its Reference field.  Note that the VLId that this
  1252.          agent selects is placed in the SVLId of the response, and the
  1253.          previous-hop's VLId (which is contained in the SVLId of the
  1254.          CONNECT) is copied into the RVLId of the response.  If the
  1255.          agent is not a target, it must then invoke the routing
  1256.          function, reserve resources, and send a CONNECT message(s) to
  1257.          its next-hop(s), as described in Sections 3.1.2-4 (pages 19-
  1258.          20).
  1259.  
  1260.  
  1261.        Agent A                   Agent 1                      Agent B
  1262.  
  1263.     [1.4] >>-> CONNECT B -------->+--+
  1264.                <RVLId=0><SVLId=4> |  V
  1265. 2.1.           <Ref=10><HID=1200> |  (routing to B)
  1266.                                   |  V
  1267. 2.2.                              V  +->(reserve resources from 1 to B)
  1268. 2.3.       +<- HID-APPROVE <------+     V
  1269. 2.4.           <RVLId=4><SVLId=14>      +-> CONNECT B ---------->>
  1270.                <Ref=10><HID=1200>           <RVLId=0><SVLId=15>
  1271.                                             <Ref=110><HID=3600>
  1272.  
  1273.        Agent A                   Agent 2                      Agent C
  1274.  
  1275.     [1.6] >>-> CONNECT C,D ------>+-+
  1276.                <RVLId=0><SVLId=5> | V
  1277. 2.5.           <Ref=15><HID=2400> | (routing to C,D)
  1278.                                   | V
  1279. 2.6.                              V +-->(reserve resources from 2 to C)
  1280. 2.7.       +<- HID-APPROVE <------+ |   V
  1281. 2.8.           <RVLId=5><SVLId=23>  |   +-> CONNECT C ---------->>
  1282.                <Ref=15><HID=2400>   |       <RVLId=0><SVLId=25>
  1283.                                     |       <Ref=210><HID=4800>
  1284.                                     |
  1285.                                     |                         Agent D
  1286.                                     V
  1287. 2.9.                                +->(reserve resources from 2 to D)
  1288.                                         V
  1289. 2.10.                                   +-> CONNECT D ---------->>
  1290.                                             <RVLId=0><SVLId=26>
  1291.                                             <Ref=215><HID=4800>
  1292.  
  1293.          Figure 6.  CONNECT Processing by an Intermediate Agent
  1294.  
  1295.  
  1296.  
  1297.  
  1298. CIP Working Group                                              [Page 22]
  1299.  
  1300. RFC 1190                Internet Stream Protocol            October 1990
  1301.  
  1302.  
  1303.          The resources listed as Desired in a received FlowSpec may not
  1304.          correspond to those actually reserved in either the ST agent
  1305.          itself or in the network(s) used to reach the next-hop
  1306.          agent(s).  As long as the reserved resources are sufficient to
  1307.          meet the specified Limits, the copy of the FlowSpec sent to a
  1308.          next-hop must have the Desired resources updated to reflect the
  1309.          resources that were actually obtained.  For example, the
  1310.          Desired bandwidth might be reduced because the network to the
  1311.          next-hop could not provide all of the desired bandwidth.  Also,
  1312.          the delay and delay variance are appropriately increased, and
  1313.          the link MTU may require that the DesPDUBytes field be reduced.
  1314.          (The minimum requirements that the origin had entered into the
  1315.          FlowSpec Limits fields cannot be altered by the intermediate or
  1316.          target agents.)
  1317.  
  1318.  
  1319.       3.1.6.        Setup at the Targets
  1320.  
  1321.          An ST agent that is the target of a CONNECT, whether from an
  1322.          intermediate ST agent, or directly from the origin host ST
  1323.          agent, must respond first (assuming no errors) with either a
  1324.          HID-REJECT or HID-APPROVE.  After inquiring from the specified
  1325.          application process whether or not it is willing to accept the
  1326.          connection, the agent must also respond with either an ACCEPT
  1327.          or a REFUSE.
  1328.  
  1329.          In particular, the application must be presented with
  1330.          parameters from the CONNECT, such as the Name, FlowSpec,
  1331.          Options, and Group, to be used as a basis for its decision.
  1332.          The application is identified by a combination of the NextPcol
  1333.          field and the SAP field in the (usually) single remaining
  1334.          Target of the TargetList.  The contents of the SAP field may
  1335.          specify the "port" or other local identifier for use by the
  1336.          protocol layer above the host ST layer.  Subsequently received
  1337.          data packets will carry a short hand identifier (the HID) that
  1338.          can be mapped into this information and be used for their
  1339.          delivery.
  1340.  
  1341.          The responses to the CONNECT message are sent to the previous-
  1342.          hop from which the CONNECT was received.  An ACCEPT contains
  1343.          the Name of the stream and the updated FlowSpec.  Note that the
  1344.          application might have reduced the desired level of service in
  1345.          the received FlowSpec before accepting it.  The target must not
  1346.          send the ACCEPT until HID negotiation has been successfully
  1347.          completed.
  1348.  
  1349.          Since the ACCEPT or REFUSE message must be acknowledged by the
  1350.          previous-hop, it is assigned a new Reference number that will
  1351.          be returned in the ACK.  The CONNECT to which the ACCEPT or
  1352.          REFUSE is a reply is identified by placing the CONNECT's
  1353.          Reference number in the LnkReference field of the ACCEPT or
  1354.          REFUSE.
  1355.  
  1356.  
  1357. CIP Working Group                                              [Page 23]
  1358.  
  1359. RFC 1190                Internet Stream Protocol            October 1990
  1360.  
  1361.  
  1362.            Agent 1                    Agent B       Application B
  1363.  3.1.                                             (proc B listening)
  1364.          [2.4] >>-> CONNECT B ---------->+------------------+
  1365.                     <RVLId=0><SVLId=15>  |                  |
  1366.  3.2.               <Ref=110><HID=3600>  V          (proc B accepts)
  1367.  3.3.           +<- HID-APPROVE <--------+                  |
  1368.                     <RVLId=15><SVLId=44>                    |
  1369.                     <Ref=110><HID=3600>                     V
  1370.  3.4.                       (wait until HID negotiated) <---+
  1371.                                          V
  1372.  3.5.       <<--+<- ACCEPT B <-----------+
  1373.                     <RVLId=15><SVLId=44>
  1374.                     <Ref=410><LnkRef=110>
  1375.  
  1376.            Agent 2                    Agent C       Application C
  1377.  3.6.                                             (proc C listening)
  1378.          [2.8] >>-> CONNECT C ---------->+------------------+
  1379.                     <RVLId=0><SVLId=25>  |                  |
  1380.  3.7.               <Ref=210><HID=4800>  V          (proc C accepts)
  1381.  3.8.           +<- HID-APPROVE <--------+                  |
  1382.                     <RVLId=25><SVLId=54>                    |
  1383.                     <Ref=210><HID=4800>                     V
  1384.  3.9.                       (wait until HID negotiated) <---+
  1385.                                          V
  1386.  3.10.      <<--+<- ACCEPT C <-----------+
  1387.                     <RVLId=25><SVLId=54>
  1388.                     <Ref=510><LnkRef=210>
  1389.  
  1390.            Agent 2                    Agent D       Application D
  1391.  3.11.                                            (proc D listening)
  1392.         [2.10] >>-> CONNECT D ---------->+------------------+
  1393.                     <RVLId=0><SVLId=26>  |                  |
  1394.  3.12.              <Ref=215><HID=4800>  V          (proc D accepts)
  1395.  3.13.          +<- HID-APPROVE <--------+                  |
  1396.                     <RVLId=26><SVLId=64>                    |
  1397.                     <Ref=215><HID=4800>                     V
  1398.  3.14.                      (wait until HID negotiated) <---+
  1399.                                          V
  1400.  3.15.      <<--+<- ACCEPT D <-----------+
  1401.                     <RVLId=26><SVLId=64>
  1402.                     <Ref=610><LnkRef=215>
  1403.  
  1404.               Figure 7.  CONNECT Processing by the Target
  1405.  
  1406.  
  1407.       3.1.7.        ACCEPT Processing by an Intermediate Agent
  1408.  
  1409.          When an intermediate ST agent receives an ACCEPT, it first
  1410.          verifies that the message is a response to an earlier CONNECT.
  1411.          If not, it responds to the next-hop ST agent with an ERROR-IN-
  1412.          REPLY (LnkRefUnknown) message.  Otherwise, it responds to the
  1413.          next-hop ST agent with an ACK, and propagates
  1414.  
  1415.  
  1416. CIP Working Group                                              [Page 24]
  1417.  
  1418. RFC 1190                Internet Stream Protocol            October 1990
  1419.  
  1420.  
  1421.          the ACCEPT message to the previous-hop along the same path
  1422.          traced by the CONNECT but in the reverse direction toward the
  1423.          origin.  The ACCEPT should not be propagated until all HID
  1424.          negotiations with the next-hop agent(s) have been successfully
  1425.          completed.
  1426.  
  1427.          The FlowSpec is included in the ACCEPT message so that the
  1428.          origin and intermediate ST agents can gain access to the
  1429.          information that was accumulated as the CONNECT traversed the
  1430.          internet.  Note that the resources, as specified in the
  1431.          FlowSpec in the ACCEPT message, may differ from the resources
  1432.          that were reserved by the agent when the CONNECT was
  1433.  
  1434.  
  1435.       Agent A                     Agent 1                    Agent B
  1436.  
  1437.                                      +<-+<- ACCEPT B <-------<< [3.5]
  1438.                                      V  |   <RVLId=15><SVLId=44>
  1439. 4.1.                 (wait for ACCEPTS) V   <Ref=410><LnkRef=110>
  1440. 4.2.                                 V  +-> ACK --------------->+
  1441. 4.3.    (wait until HID negotiated)<-+      <RVLId=44><SVLId=15>
  1442.                                   V         <Ref=410>
  1443. 4.4.  <<--+<-- ACCEPT B <---------+
  1444.                <RVLId=4><SVLId=14>
  1445.                <Ref=115><LnkRef=10>
  1446.  
  1447.        Agent A                    Agent 2                    Agent C
  1448.  
  1449.                                      +<-+<- ACCEPT C <------<< [3.10]
  1450.                                      |  |   <RVLId=25><SVLId=54>
  1451.                                      |  V   <Ref=510><LnkRef=210>
  1452. 4.5.                                 |  +-> ACK --------------->+
  1453.                                      |      <Ref=510>
  1454.                                      |      <RVLId=54><SVLId=25>
  1455.                                      |
  1456.                                      |                       Agent D
  1457.                                      V
  1458.                                      +<-+<- ACCEPT D <------<< [3.15]
  1459.                                      V  |   <RVLId=26><SVLId=64>
  1460. 4.6.                 (wait for ACCEPTS) V   <Ref=610><LnkRef=215>
  1461. 4.7.                                 V  +-> ACK --------------->+
  1462. 4.8.    (wait until HID negotiated)<-+      <RVLId=64><SVLId=26>
  1463.                                   V         <Ref=610>
  1464. 4.9.  <<--+<- ACCEPT C <----------+
  1465.               <RVLId=5><SVLId=23> |
  1466.               <Ref=220><LnkRef=15>|
  1467.                                   V
  1468. 4.10. <<--+<- ACCEPT D <----------+
  1469.               <RVLId=5><SVLId=23>
  1470.               <Ref=225><LnkRef=15>
  1471.  
  1472.          Figure 8.  ACCEPT Processing by an Intermediate Agent
  1473.  
  1474.  
  1475. CIP Working Group                                              [Page 25]
  1476.  
  1477. RFC 1190                Internet Stream Protocol            October 1990
  1478.  
  1479.  
  1480.          originally processed.  However, the agent does not adjust the
  1481.          reservation in response to the ACCEPT.  It is expected that any
  1482.          excess resource allocation will be released for use by other
  1483.          stream or datagram traffic through an explicit CHANGE message
  1484.          initiated by the application at the origin if it does not wish
  1485.          to be charged for any excess resource allocations.
  1486.  
  1487.  
  1488.       3.1.8.        ACCEPT Processing by the Origin
  1489.  
  1490.          The origin will eventually receive an ACCEPT (or REFUSE or
  1491.          ERROR-IN-REQUEST) message from each of the targets.  As each
  1492.          ACCEPT is received, the application should be notified of the
  1493.          target and the resources that were successfully allocated along
  1494.          the path to it, as specified in the FlowSpec contained in the
  1495.          ACCEPT message.  The application may then use the information
  1496.          to either adopt or terminate the portion of the stream to each
  1497.          target.  When ACCEPTs (or failures) from all targets have been
  1498.          received at the origin, the application is notified that stream
  1499.          setup is complete, and that data may be sent.
  1500.  
  1501.  
  1502.          Application A   Agent A                  Agent 1   Agent 2
  1503.  
  1504.                             +<-- ACCEPT B <--------<< [4.4]
  1505.                             |    <RVLId=4><SVLId=14>
  1506.                             V    <Ref=115><LnkRef=10>
  1507.    5.1.                     +--> ACK ----------------->+
  1508.                             |    <RVLId=14><SVLId=4>
  1509.                             V    <Ref=115>
  1510.    5.2.        +<-- (inform A of B's FlowSpec)
  1511.                |            +<-- ACCEPT C <----------------<< [4.9]
  1512.                |            |    <RVLId=5><SVLId=23>
  1513.                |            V    <Ref=220><LnkRef=15>
  1514.    5.3.        |            +--> ACK ------------------------->+
  1515.                |            |    <RVLId=23><SVLId=5>
  1516.                |            V    <Ref=220>
  1517.    5.4.        +<-- (inform A of C's FlowSpec)
  1518.                |            +<-- ACCEPT D <----------------<< [4.10]
  1519.                |            |    <RVLId=5><SVLId=23>
  1520.                |            V    <Ref=225><LnkRef=15>
  1521.    5.5.        |            +--> ACK ------------------------->+
  1522.                |            |    <RVLId=23><SVLId=5>
  1523.                |            V    <Ref=225>
  1524.    5.6.        +<-- (inform A of D's FlowSpec)
  1525.                V
  1526.    5.7.    (wait until HIDs negotiated)
  1527.                V
  1528.    5.8.    (inform A open to B,C,D)
  1529.  
  1530.                Figure 9.  ACCEPT Processing by the Origin
  1531.  
  1532.  
  1533.  
  1534. CIP Working Group                                              [Page 26]
  1535.  
  1536. RFC 1190                Internet Stream Protocol            October 1990
  1537.  
  1538.  
  1539.          There are several pieces of information contained in the
  1540.          FlowSpec that the application must combine before sending data
  1541.          through the stream.  The PDU size should be computed from the
  1542.          minimum value of the DesPDUBytes field from all ACCEPTs and the
  1543.          protocol layers above ST should be informed of the limit.  It
  1544.          is expected that the next higher protocol layer above ST will
  1545.          segment its PDUs accordingly.  Note, however, that the MTU may
  1546.          decrease over the life of the stream if new targets are
  1547.          subsequently added.  Whether the MTU should be increased as
  1548.          targets are dropped from a stream is left for further study.
  1549.  
  1550.          The available bandwidth and packet rate limits must also be
  1551.          combined.  In this case, however, it may not be possible to
  1552.          select a pair of values that may be used for all paths, e.g.,
  1553.          one path may have selected a low rate of large packets while
  1554.          another selected a high rate of small packets.  The application
  1555.          may remedy the situation by either tearing down the stream,
  1556.          dropping some participants, or creating a second stream.
  1557.  
  1558.          After any differences have been resolved (or some targets have
  1559.          been deleted by the application to permit resolution), the
  1560.          application at the origin should send a CHANGE message to
  1561.          release any excess resources along paths to those targets that
  1562.          exceed the resolved parameters for the stream, thereby reducing
  1563.          the costs that will be incurred by the stream.
  1564.  
  1565.  
  1566.       3.1.9.        Processing a REFUSE Message
  1567.  
  1568.          REFUSE messages are used to indicate a failure to reach an
  1569.          application at a target;  they are propagated toward the origin
  1570.          of a stream.  They are used in three situations:
  1571.  
  1572.           1  during stream setup or expansion to indicate that there
  1573.              is no satisfactory path from an ST agent to a target,
  1574.  
  1575.           2  when the application at the target either does not
  1576.              exist does not wish to be a participant, or wants to
  1577.              cease being a participant, and
  1578.  
  1579.           3  when a failure has been detected and the agents are
  1580.              trying to find a suitable path around the failure.
  1581.  
  1582.          The cases are distinguished by the ReasonCode field and an
  1583.          agent receiving a REFUSE message must examine that field in
  1584.          order to determine the proper action to be taken.  In
  1585.          particular, if the ReasonCode indicates that the CONNECT
  1586.          message reached the target then the REFUSE should be propagated
  1587.          back to the origin, releasing resources as appropriate along
  1588.          the way.  If the ReasonCode indicates that
  1589.  
  1590.  
  1591.  
  1592.  
  1593. CIP Working Group                                              [Page 27]
  1594.  
  1595. RFC 1190                Internet Stream Protocol            October 1990
  1596.  
  1597.  
  1598.          the CONNECT message did not reach the target then the
  1599.          intermediate (origin) ST agent(s) should check for alternate
  1600.          routes to the target before propagating the REFUSE back another
  1601.          hop toward the origin.  This implies that an agent must keep
  1602.          track of the next-hops that it has tried, on a target by target
  1603.          basis, in order not to get caught in a loop.
  1604.  
  1605.          An ST agent that receives a REFUSE message must acknowledge it
  1606.          by sending an ACK to the next-hop.  The REFUSE must also be
  1607.          propagated back to the previous-hop ST agent.  Note that the ST
  1608.          agent may not have any information about the target in
  1609.  
  1610.  
  1611.    Appl.  Agent A                   Agent 2                 Agent E
  1612.                                                (proc E NOT listening)
  1613. 1. (add E)
  1614. 2.    +----->+-> CONNECT E ---------->+->+
  1615.                  <RVLId=23><SVLId=5>  |  |
  1616.                  <Ref=65>             V  |
  1617. 3.           +<-- ACK <---------------+  |
  1618.                   <RVLId=5><SVLId=23>    V
  1619. 4.                <Ref=65>         (routing to E)
  1620.                                          V
  1621. 5.                           (reserve resources 2 to E)
  1622.                                          V
  1623. 6.                                       +--> CONNECT E --------->+
  1624.                                               <RVLId=0><SVLId=27> |
  1625.                                               <Ref=115><HID=4600> |
  1626.                                                                   V
  1627. 7.                                    +<-+<- REFUSE B <-----------+
  1628.                                       |  |   <RVLId=27><SVLId=74>
  1629.                                       |  |   <Ref=705><LnkRef=115>
  1630.                                       |  V   <RC=SAPUnknown>
  1631. 8.                                    |  +-> ACK ---------------->+
  1632.                                       |  |   <RVLId=74><SVLId=27> |
  1633.                                       |  V   <Ref=705>            |
  1634. 9.                                    |  (free link 27)           V
  1635. 10.                                   V              (free link 74)
  1636. 11.          +<- REFUSE B <-----------+
  1637.              |   <RVLId=5><SVLId=23>  |
  1638.              |   <Ref=550><LnkRef=65> V
  1639. 12.          |   <RC=SAPUnknown>  (free resources 2 to E)
  1640.              V
  1641. 13.          +-> ACK  --------------->+
  1642.              |   <RVLId=23><SVLId=5>  |
  1643.              |   <Ref=550>            V
  1644. 14.          V             (keep link 23 for C,D)
  1645. 15.  (keep link 5 for C,D)
  1646.       V
  1647. 16.  (inform application failed SAPUnknown)
  1648.  
  1649.                    Figure 10.  Sending REFUSE Message
  1650.  
  1651.  
  1652. CIP Working Group                                              [Page 28]
  1653.  
  1654. RFC 1190                Internet Stream Protocol            October 1990
  1655.  
  1656.  
  1657.          the TargetList.  This may result from interacting DISCONNECT
  1658.          and REFUSE messages and should be logged and silently ignored.
  1659.  
  1660.          If, after deleting the specified target, the next-hop has no
  1661.          remaining targets, then those resources associated with that
  1662.          next-hop agent may be released.  Note that network resources
  1663.          may not actually be released if network multicasting is being
  1664.  
  1665.  
  1666.    Appl.   Agent A       Agent 2  Agent 1 Agent 3              Agent B
  1667.  
  1668. 1.                                      (network from 1 to B fails)
  1669. 2. (add B)
  1670. 3.   +-> CONNECT B ----------------->+
  1671.          <RVLId=0><SVLId=6>          |
  1672.          <Ref=35><HID=100>           |
  1673. 3.   +<- HID-APPROVE <---------------+
  1674.          <RVLId=6><SVLId=11>         |
  1675.          <Ref=35><HID=100>           V
  1676. 4.                       (routing to B: no route)
  1677.                                      V
  1678. 5.   +<-+-- REFUSE B ----------------+
  1679.      |  |   <RVLId=6><SVLId=11>
  1680.      |  |   <Ref=155><LnkRef=35>
  1681.      |  V   <RC=NoRouteToDest>
  1682. 6.   |  +-> ACK -------------------->+
  1683.      |  |   <RVLId=11><SVLId=6>      V
  1684. 7.   |  V   <Ref=155>           (drop link 6)
  1685. 8.   V  (drop link 11)
  1686. 9.   (find alternative route: via agent 2)
  1687. 10.  (resources from A to 2 already allocated:
  1688.      V   reuse control link & HID, no additional resources required)
  1689. 11.  +-> CONNECT B -------->+->+
  1690.          <RVLId=23><SVLId=5>|  |
  1691.          <Ref=40>           V  |
  1692. 12.  +<- ACK <--------------+  |
  1693.          <RVLId=5><SVLId=23>   V
  1694. 13.      <Ref=40>    (routing to B: via agent 3)
  1695.                             V
  1696. 14.                         +-> CONNECT B -->+
  1697. 15.                      <RVLId=0><SVLId=24> +-> CONNECT B --------->+
  1698.                          <Ref=245><HID=4801> V   <RVLId=0><SVLId=32> |
  1699. 16.                         +<- HID-APPROVE -+   <Ref=310><HID=6000> |
  1700.                                 <RVLId=24><SVLId=33>                 |
  1701.                                 <Ref=245><HID=4801>                  V
  1702. 17.                                          +<- HID-APPROVE --------+
  1703.                                                  <RVLId=32><SVLId=45>|
  1704.                                                  <Ref=310><HID=6000> V
  1705. 18.        (ACCEPT handling follows normally to complete stream setup)
  1706.  
  1707.            Figure 11.  Routing Around a Failure
  1708.  
  1709.  
  1710.  
  1711. CIP Working Group                                              [Page 29]
  1712.  
  1713. RFC 1190                Internet Stream Protocol            October 1990
  1714.  
  1715.  
  1716.          used since they may still be required for traffic to other
  1717.          next-hops in the multicast group.
  1718.  
  1719.          When the REFUSE reaches a origin, the origin sends an ACK and
  1720.          notifies the application via the next higher layer protocol
  1721.          that the target listed in the TargetList is no longer part of
  1722.          the stream and also if the stream has no remaining targets.  If
  1723.          there are no remaining targets, the application may wish to
  1724.          terminate the stream.
  1725.  
  1726.          Figure 10 illustrates the protocol exchanges for processing a
  1727.          REFUSE generated at the target, either because the target
  1728.          application is not running or that the target application
  1729.          rejects membership in the stream.  Figure 11 illustrates the
  1730.          case of rerouting around a failure by an intermediate agent
  1731.          that detects a failure or receives a refuse.  The protocol
  1732.          exchanges used by an application at the target to delete itself
  1733.          from the stream is discussed in Section 3.3.3 (page 35).
  1734.  
  1735.  
  1736.    3.2.       Data Transfer
  1737.  
  1738.       At the end of the connection setup phase, the origin, each target,
  1739.       and each intermediate ST agent has a database entry that allows it
  1740.       to forward the data packets from the origin to the targets and to
  1741.       recover from failures of the intermediate agents or networks.  The
  1742.       database should be optimized to make the packet forwarding task
  1743.       most efficient.  The time critical operation is an intermediate
  1744.       agent receiving a packet from the previous-hop agent and
  1745.       forwarding it to the next-hop agent(s).  The database entry must
  1746.       also contain the FlowSpec, utilization information, the address of
  1747.       the origin and previous-hop, and the addresses of the targets and
  1748.       next-hops, so it can perform enforcement and recover from
  1749.       failures.
  1750.  
  1751.       An ST agent receives data packets encapsulated by an ST header.  A
  1752.       data packet received by an ST agent contains the non-zero HID
  1753.       assigned to the stream for the branch from the previous-hop to
  1754.       itself.  This HID was selected so that it is unique at the
  1755.       receiving ST agent and thus can be used, e.g., as an index into
  1756.       the database, to obtain quickly the necessary replication and
  1757.       forwarding information.
  1758.  
  1759.       The forwarding information will be network and implementation
  1760.       specific, but must identify the next-hop agent or agents and their
  1761.       respective HIDs.  It is suggested that the cached information for
  1762.       a next-hop agent include the local network address of the next-
  1763.       hop.  If the data packet must be forwarded to multiple next-hops
  1764.       across a single network that supports multicast, the database may
  1765.       specify a single HID and may identify the next-hops by a (local
  1766.       network) multicast address.
  1767.  
  1768.  
  1769.  
  1770. CIP Working Group                                              [Page 30]
  1771.  
  1772. RFC 1190                Internet Stream Protocol            October 1990
  1773.  
  1774.  
  1775.       If the network does not support multicast, or the next-hops are on
  1776.       different networks, then the database must indicate multiple
  1777.       (next-hop, HID) tuples.  When multiple copies of the data packet
  1778.       must be sent, it may be necessary to invoke a packet replicator.
  1779.  
  1780.       Data packets should not require fragmentation as the next higher
  1781.       protocol layer at the origin was informed of the minimum MTU over
  1782.       all paths in the stream and is expected to segment its PDUs
  1783.       accordingly.  However, it may be the case that a data packet that
  1784.       is being rerouted around a failed network component may be too
  1785.       large for the MTU of an intervening network.  This should be a
  1786.       transient condition that will be corrected as soon as the new
  1787.       minimum MTU has been propagated back to the origin.  Disposition
  1788.       by a mechanism other than dropping of the too large PDUs is left
  1789.       for further study.
  1790.  
  1791.  
  1792.    3.3.       Modifying an Existing Stream
  1793.  
  1794.       Some applications may wish to change the parameters of a stream
  1795.       after it has been created.  Possible changes include adding or
  1796.       deleting targets and changing the FlowSpec.  These are described
  1797.       below.
  1798.  
  1799.  
  1800.       3.3.1.        Adding a Target
  1801.  
  1802.          It is possible for an application to add a new target to an
  1803.          existing stream any time after ST has incorporated information
  1804.          about the stream into its database.  At a high level, the
  1805.          application entities exchanges whatever information is
  1806.          necessary.  Although the mechanism or protocol used to
  1807.          accomplish this is not specified here, it is necessary for the
  1808.          higher layer protocol to inform the host ST agent at the origin
  1809.          of this event.  The host ST agent at the target must also be
  1810.          informed unless this had previously been done.  Generally, the
  1811.          transfer of a target list from an ST agent to another, or from
  1812.          a higher layer protocol to a host ST agent, will occur
  1813.          atomically when the CONNECT is received.  Any information
  1814.          concerning a new target received after this point can be viewed
  1815.          as a stream expansion by the receiving ST agent.  However, it
  1816.          may be possible that an ST agent can utilize such information
  1817.          if it is received before it makes the relevant routing
  1818.          decisions.  These implementation details are not specified
  1819.          here, but implementations must be prepared to receive CONNECT
  1820.          messages that represent expansions of streams that are still in
  1821.          the process of being setup.
  1822.  
  1823.          To expand an existing stream, the origin issues one or more
  1824.          CONNECT messages that contain the Name, the VLId, the FlowSpec,
  1825.          and the TargetList specifying the new target or targets.  The
  1826.          origin issues multiple CONNECT messages if
  1827.  
  1828.  
  1829. CIP Working Group                                              [Page 31]
  1830.  
  1831. RFC 1190                Internet Stream Protocol            October 1990
  1832.  
  1833.  
  1834.          either the targets are to be reached through different next-hop
  1835.          agents, or a single CONNECT message is too large for the
  1836.          network MTU.  The HID Field option is not set since the HID has
  1837.          already been (or is being) negotiated for the hop;
  1838.          consequently, the CONNECT is acknowledged with an ACK instead
  1839.          of a HID-REJECT or HID-APPROVE.
  1840.  
  1841.  
  1842. Application  Agent A               Agent 2                    Agent E
  1843.  
  1844. 1.   (open E)
  1845. 2.      V                                            (proc E listening)
  1846. 3.      +->(routing to E)
  1847.            V
  1848. 4.         +-> (check resources from A to Agent 2: already allocated,
  1849.            V  reuse control link & HID, no additional resources needed)
  1850. 5.         +-> CONNECT E --------->+->+
  1851.                <RVLId=23><SVLId=5> |  V
  1852. 6.             <Ref=20>            V  (routing to E)
  1853. 7.         +<- ACK <---------------+  V
  1854.                <RVLId=5><SVLId=23>    +->(reserve resources 2 to E)
  1855.                <Ref=20>                  V
  1856. 8.                                       +-> CONNECT E --------->+
  1857.                                              <RVLId=0><SVLId=27> |
  1858.                                              <Ref=230><HID=4800> |
  1859. 9.                                       +<- HID-APPROVE <-------+
  1860.                                              <RVLId=27><SVLId=74>|
  1861.                                              <Ref=230><HID=4800> V
  1862. 10.                                               (proc E accepts)
  1863. 11.                                    (wait until HID negotiated)
  1864.                                                                  V
  1865. 12.                                   +<-+<- ACCEPT E <----------+
  1866.                                       V  |   <RVLId=27><SVLId=74>
  1867. 13.                  (wait for ACCEPTS)  V   <Ref=710><LnkRef=230>
  1868. 14.                                   V  +-> ACK --------------->+
  1869. 15.      (wait until HID negotiated)<-+      <RVLId=74><SVLId=27>
  1870.                                    V         <Ref=710>
  1871. 16.           +<- ACCEPT E <-------+
  1872.               |   <RVLId=5><SVLId=23>
  1873.               V   <Ref=235><LnkRef=20>
  1874. 17.           +-> ACK ------------>+
  1875.               |   <RVLId=23><SVLId=5>
  1876.               V   <Ref=235>
  1877. 18.        +<-(inform A of E's FlowSpec)
  1878.            V
  1879. 19.     +<-(wait for ACCEPTS)
  1880.         V
  1881. 20.  +<-(wait until HID negotiated)
  1882.      V
  1883. 21.  (inform A open to E)
  1884.  
  1885.                  Figure 12.  Addition of Another Target
  1886.  
  1887.  
  1888. CIP Working Group                                              [Page 32]
  1889.  
  1890. RFC 1190                Internet Stream Protocol            October 1990
  1891.  
  1892.  
  1893.          An ST agent that is already a node in the stream recognizes the
  1894.          RVLId and verifies that the Name of the stream is the same.  It
  1895.          then checks if the intersection of the TargetList and the
  1896.          targets of the established stream is empty.  If this is not the
  1897.          case, then the receiver responds with an ERROR-IN-REQUEST with
  1898.          the appropriate reason code (RouteLoop) that contains a
  1899.          TargetList of those targets that were duplicates;  see Section
  1900.          4.2.3.5 (page 106).
  1901.  
  1902.          For each new target in the TargetList, processing is much the
  1903.          same as for the original CONNECT;  see Sections 3.1.2-4 (pages
  1904.          19-20).  The CONNECT must be acknowledged, propagated, and
  1905.          network resources must be reserved.  However, it may be
  1906.          possible to route to the new targets using previously allocated
  1907.          paths or an existing multicast group.  In that case, additional
  1908.          resources do not need to be reserved but more next-hop(s) might
  1909.          have to be added to an existing multicast group.
  1910.  
  1911.          Nevertheless, the origin, or any intermediate ST agent that
  1912.          receives a CONNECT for an existing stream, can make a routing
  1913.          decision that is independent of any it may have made
  1914.          previously.  Depending on the routing algorithm that is used,
  1915.          the ST agent may decide to reach the new target by way of an
  1916.          established branch, or it may decide to create a new branch.
  1917.          The fact that a new target is being added to an existing stream
  1918.          may result in a suboptimal overall routing for certain routing
  1919.          algorithms.  We take this problem to be unavoidable since it is
  1920.          unlikely that the stream routing can be made optimal in
  1921.          general, and the only way to avoid this loss of optimality is
  1922.          to redefine the routing of potentially the entire stream, which
  1923.          would be too expensive and time consuming.
  1924.  
  1925.  
  1926.       3.3.2.        The Origin Removing a Target
  1927.  
  1928.          The application at the origin specifies a set of targets that
  1929.          are to be removed from the stream and an appropriate reason
  1930.          code (ApplDisconnect).  The targets are partitioned into
  1931.          multiple DISCONNECT messages based on the next-hop to the
  1932.          individual targets.  As with CONNECT messages, an ST agent that
  1933.          is sending a DISCONNECT must make sure that the message fits
  1934.          into the MTU for the intervening network.  If the message is
  1935.          too large, the TargetList must be further partitioned into
  1936.          multiple DISCONNECT messages.
  1937.  
  1938.          An ST agent that receives a DISCONNECT message must acknowledge
  1939.          it by sending an ACK back to the previous-hop.  The DISCONNECT
  1940.          must also be propagated to the relevant next-hop ST agents.
  1941.          Before propagating the message, however, the TargetList should
  1942.          be partitioned based on next-hop ST
  1943.  
  1944.  
  1945.  
  1946.  
  1947. CIP Working Group                                              [Page 33]
  1948.  
  1949. RFC 1190                Internet Stream Protocol            October 1990
  1950.  
  1951.  
  1952.          agent and MTU, as described above.  Note that there may be
  1953.          targets in the TargetList for which the ST agent has no
  1954.          information.  This may result from interacting DISCONNECT and
  1955.          REFUSE messages and should be logged and silently ignored.
  1956.  
  1957.          If, after deleting the specified targets, any next-hop has no
  1958.          remaining targets, then those resources associated with that
  1959.          next-hop agent may be released.  Note that network resources
  1960.          may not actually be released if network multicasting is being
  1961.          used since they may still be required for traffic to other
  1962.          next-hops in the multicast group.
  1963.  
  1964.  
  1965.       Application                                         Application
  1966.             Agent A             Agent 1  Agent 2          Agent B    C
  1967.  
  1968.   1.  (close B,C ApplDisconnect)
  1969.           V
  1970.   2.      +->+-+-> DISCONNECT B ----->+
  1971.   3.         | |   <RVLId=14><SVLId=4>+-+-> DISCONNECT B ------>+
  1972.              | |   <Ref=25>           | |   <RVLId=44><SVLId=15>|
  1973.              | V   <RC=ApplDisconnect>| |   <Ref=120>           |
  1974.   4.         | (free A to 1 resrc.)   | V   <RC=ApplDisconnect> |
  1975.   5.         |                        V (free 1 to B resrc.)    |
  1976.   6.         | +<- ACK <--------------+                         V
  1977.   7.         | |   <RVLId=4><SVLId=14>| +<- ACK <---------------+
  1978.              | V   <Ref=25>           | |   <RVLId=15><SVLId=44>|
  1979.   8.         | (free link 4)          V |   <Ref=120>           |
  1980.   9.         |           (free link 14) V                       |
  1981.   10.        |                          (free link 15)          V
  1982.   11.        |        (inform B that stream closed ApplDisconnect)
  1983.   12.        |                                     (free link 44)
  1984.              V
  1985.   13.     +<-+-+-> DISCONNECT C ---------->+
  1986.   14.     |    |   <RVLId=23><SVLId=5>     +-+-> DISCONNECT C ------>+
  1987.           |    |   <Ref=30>                | |   <RVLId=54><SVLId=25>|
  1988.           |    V   <RC=ApplDisconnect>     | |   <Ref=240>           |
  1989.   15.     |    (keep A to 2 resrc for      | V   <RC=ApplDisconnect> |
  1990.   16.     |         data going to D,E)     | (free 2 to C resrc.)    |
  1991.           |                                V                         |
  1992.   17.     |    +<- ACK <-------------------+                         V
  1993.   18.     |    |   <RVLId=5><SVLId=23>     | +<- ACK <---------------+
  1994.           |    V   <Ref=30>                | |   <RVLId=25><SVLId=54>|
  1995.   19.     |    (keep link 5 for D,E)       V |   <Ref=240>           |
  1996.   20.     |           (keep link 23 for D,E) V                       |
  1997.   21.     |                           (free link 25)                 V
  1998.   22.     |              (inform C that stream closed ApplDisconnect>)
  1999.   23.     V                                             (free link 54)
  2000.   24.     (inform A closed to B,C ApplDisconnect)
  2001.  
  2002.                   Figure 13.  Origin Removing a Target
  2003.  
  2004.  
  2005.  
  2006. CIP Working Group                                              [Page 34]
  2007.  
  2008. RFC 1190                Internet Stream Protocol            October 1990
  2009.  
  2010.  
  2011.          When the DISCONNECT reaches a target, the target sends an ACK
  2012.          and notifies the application that it is no longer part of the
  2013.          stream and the reason.  The application should then inform ST
  2014.          to terminate the stream, and ST should delete the stream from
  2015.          its database after performing any necessary management and
  2016.          accounting functions.
  2017.  
  2018.  
  2019.       3.3.3.        A Target Deleting Itself
  2020.  
  2021.          The application at the target may inform ST that it wants to be
  2022.          removed from the stream and the appropriate reason code
  2023.          (ApplDisconnect).  The agent then forms a REFUSE message with
  2024.          itself as the only entry in the TargetList.  The REFUSE is sent
  2025.          back to the origin via the previous-hop.  If a stream has
  2026.          multiple targets and one target leaves the stream using this
  2027.          REFUSE mechanism, the stream to the other targets is not
  2028.          affected;  the stream continues to exist.
  2029.  
  2030.          An ST agent that receives such a REFUSE message must
  2031.          acknowledge it by sending an ACK to the next-hop.  The target
  2032.          is deleted and, if the next-hop has no remaining targets, then
  2033.          the those resources associated with that next-hop agent may be
  2034.          released.  Note that network resources may not actually be
  2035.          released if network multicasting is being used since they may
  2036.          still be required for traffic to other next-hops in the
  2037.          multicast group.  The REFUSE must also be propagated back to
  2038.          the previous-hop ST agent.
  2039.  
  2040.  
  2041.                  Agent A          Agent 2          Agent E
  2042.  
  2043.             1.                             (close E ApplDisconnect)
  2044.                                                       V
  2045.             2.                         +<- REFUSE E --+
  2046.                                        |   <RVLId=27><SVLId=74>
  2047.                                        |   <Ref=720>
  2048.                                        V   <RC=ApplDisconnect>
  2049.             3.                      +<-+-> ACK ------>+
  2050.                                     |  |   <RVLId=74><SVLId=27>
  2051.             4.                      V  V   <Ref=720>
  2052.             5.    +<-+<- REFUSE E --+  (prune allocations)
  2053.                   |  |   <RVLId=5><SVLId=23>
  2054.                   |  |   <Ref=245>
  2055.                   |  V   <RC=ApplDisconnect>
  2056.             6.    |  +-> ACK ------>+
  2057.                   |  |   <RVLId=23><SVLId=5>
  2058.                   |  V   <Ref=245>
  2059.             7.    V  (prune allocations)
  2060.             8.    (inform application closed E ApplDisconnect)
  2061.  
  2062.                    Figure 14.  Target Deleting Itself
  2063.  
  2064.  
  2065. CIP Working Group                                              [Page 35]
  2066.  
  2067. RFC 1190                Internet Stream Protocol            October 1990
  2068.  
  2069.  
  2070.          When the REFUSE reaches the origin, the origin sends an ACK and
  2071.          notifies the application that the target listed in the
  2072.          TargetList is no longer part of the stream.  If the stream has
  2073.          no remaining targets, the application may choose to terminate
  2074.          the stream.
  2075.  
  2076.  
  2077.       3.3.4.        Changing the FlowSpec
  2078.  
  2079.          An application may wish to change the FlowSpec of an
  2080.          established stream.  To do so, it informs ST of the new
  2081.          FlowSpec and the list of targets that are to be changed.  The
  2082.          origin ST agent then issues one or more CHANGE messages with
  2083.          the new FlowSpec and sends them to the relevant next-hop
  2084.          agents.  CHANGE messages are structured and processed similarly
  2085.          to CONNECT messages.  A next-hop agent that is an intermediate
  2086.          agent and receives a CHANGE message similarly determines if it
  2087.          can implement the new FlowSpec along the hop to each of its
  2088.          next-hop agents, and if so, it propagates the CHANGE messages
  2089.          along the established paths.  If this process succeeds, the
  2090.          CHANGE messages will eventually reach the targets, which will
  2091.          each respond with an ACCEPT message that is propagated back to
  2092.          the origin.
  2093.  
  2094.          Note that since a CHANGE may be sent containing a FlowSpec with
  2095.          a range of permissible values for bandwidth, delay, and/or
  2096.          error rate, and the actual values returned in the ACCEPTs may
  2097.          differ, then another CHANGE may be required to release excess
  2098.          resources along some of the paths.
  2099.  
  2100.  
  2101.    3.4.       Stream Tear Down
  2102.  
  2103.       A stream is usually terminated by the origin when it has no
  2104.       further data to send, but may also be partially torn down by the
  2105.       individual targets.  These cases will not be further discussed
  2106.       since they have already been described in Sections 3.3.2-3 (pages
  2107.       33-35).
  2108.  
  2109.       A stream is also torn down if the application should terminate
  2110.       abnormally.  Processing in this case is identical to the previous
  2111.       descriptions except that the appropriate reason code is different
  2112.       (ApplAbort).
  2113.  
  2114.       When all targets have left a stream, the origin notifies the
  2115.       application of that fact, and the application then is responsible
  2116.       for terminating the stream.  Note, however, that the application
  2117.       may decide to add a target(s) to the stream instead of terminating
  2118.       it.
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124. CIP Working Group                                              [Page 36]
  2125.  
  2126. RFC 1190                Internet Stream Protocol            October 1990
  2127.  
  2128.  
  2129.    3.5.       Exceptional Cases
  2130.  
  2131.       The previous descriptions covered the simple cases where
  2132.       everything worked.  We now discuss what happens when things do not
  2133.       succeed.  Included are situations where messages are lost, the
  2134.       requested resources are not available, the routing fails or is
  2135.       inconsistent.
  2136.  
  2137.       In order for the ST Control Message Protocol to be reliable over
  2138.       an unreliable internetwork, the problems of corruption,
  2139.       duplication, loss, and ordering must be addressed.  Corruption is
  2140.       handled through use of checksumming, as described in Section 4
  2141.       (page 76).  Duplication of control messages is detected by
  2142.       assigning a transaction number (Reference) to each control
  2143.       message;  duplicates are discarded.  Loss is detected using a
  2144.       timeout at the sender;  messages that are not acknowledged before
  2145.       the timeout expires are retransmitted;  see Section 3.7.6 (page
  2146.       66).  If a message is not acknowledged after a few retransmissions
  2147.       a fault is reported.  The protocol does not have significant
  2148.       ordering constraints.  However, minor sequencing of control
  2149.       messages for a stream is facilitated by the requirement that the
  2150.       Reference numbers be monotonically increasing;  see Section 4.2
  2151.       (page 78).
  2152.  
  2153.  
  2154.       3.5.1.        Setup Failure due to CONNECT Timeout
  2155.  
  2156.          If a response (an ERROR-IN-REQUEST, an ACK, a HID-REJECT, or a
  2157.          HID-APPROVE) has not been received within time ToConnect, the
  2158.          ST agent should retransmit the CONNECT message.  If no response
  2159.          has been received within NConnect retransmissions, then a fault
  2160.          occurs and a REFUSE message with the appropriate reason code
  2161.          (RetransTimeout) is sent back in the direction of the origin,
  2162.          and, in place of the CONNECT, a DISCONNECT is sent to the
  2163.          next-hop (in case the response to the CONNECT is the message
  2164.          that was lost).  The agent will expect an ACK for both the
  2165.          REFUSE and the DISCONNECT messages.  If it does not receive an
  2166.          ACK after retransmission time ToRefuse and ToDisconnect
  2167.          respectively, it will resend the REFUSE/DISCONNECT message.  If
  2168.          it does not receive ACKs after sending NRefuse/ NDisconnect
  2169.          consecutive REFUSE/DISCONNECT messages, then it simply gives up
  2170.          trying.
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183. CIP Working Group                                              [Page 37]
  2184.  
  2185. RFC 1190                Internet Stream Protocol            October 1990
  2186.  
  2187.  
  2188.           Sending Agent              Receiving Agent
  2189.  
  2190.     1.   ->+----> CONNECT X ------>//// (message lost or garbled)
  2191.            |      <RVLId=0><SVLId=99>
  2192.            V      <Ref=1278><HID=1234>
  2193.     2. (timeout)
  2194.            V
  2195.     3.     +----> CONNECT X ------------>+
  2196.     4.     |      <RVLId=0><SVLId=99>    +----> CONNECT X ----------->+
  2197.            |      <Ref=1278><HID=1234>   V      <RVLId=0><SVLId=1010> |
  2198.     5.     | //<- HID-APPROVE <----------+      <Ref=6666><HID=6666>  V
  2199.     6.     |      <RVLId=99><SVLId=88>      +<- HID-APPROVE <---------+
  2200.            V      <Ref=1278><HID=1234>          <RVLId=1010><SVLId=1111>
  2201.     7. (timeout)                                <Ref=6666><HID=6666>
  2202.            V
  2203.     8.     +----> CONNECT X ------------>+
  2204.                   <RVLId=0><SVLId=99>    |
  2205.                   <Ref=1278><HID=1234>   V
  2206.     9.     +<-+<- HID-APPROVE <----------+
  2207.            |      <RVLId=99><SVLId=88>
  2208.            V      <Ref=1278><HID=1234>
  2209.      (cancel timer)
  2210.  
  2211.            Figure 15.  CONNECT Retransmission after a Timeout
  2212.  
  2213.  
  2214.       3.5.2.        Problems due to Routing Inconsistency
  2215.  
  2216.          When an intermediate agent receives a CONNECT, it selects the
  2217.          next-hop agents based on the TargetList and the networks to
  2218.          which it is connected.  If the resulting next-hop to any of the
  2219.          targets is across the same network from which it received the
  2220.          CONNECT (but not the previous-hop itself), there may be a
  2221.          routing problem.  However, the routing algorithm at the
  2222.          previous-hop may be optimizing differently than the local
  2223.          algorithm would in the same situation.  Since the local ST
  2224.          agent cannot distinguish the two cases, it should permit the
  2225.          setup but send back to the previous-hop agent an informative
  2226.          NOTIFY message with the appropriate reason code (RouteBack),
  2227.          pertinent TargetList, and in the NextHopIPAddress element the
  2228.          address of the next-hop ST agent returned by its routing
  2229.          algorithm.
  2230.  
  2231.          The agent that receives such a NOTIFY should ACK it.  If the
  2232.          agent is using an algorithm that would produce such behavior,
  2233.          no further action is taken;  if not, the agent should send a
  2234.          DISCONNECT to the next-hop agent to correct the problem.
  2235.  
  2236.          Alternatively, if the next-hop returned by the routing function
  2237.          is in fact the previous-hop, a routing inconsistency has been
  2238.          detected.  In this case, a REFUSE is sent back to
  2239.  
  2240.  
  2241.  
  2242. CIP Working Group                                              [Page 38]
  2243.  
  2244. RFC 1190                Internet Stream Protocol            October 1990
  2245.  
  2246.  
  2247.          the previous-hop agent containing an appropriate reason code
  2248.          (RouteInconsist), pertinent TargetList, and in the
  2249.          NextHopIPAddress element the address of the previous-hop.  When
  2250.          the previous-hop receives the REFUSE, it will recompute the
  2251.          next-hop for the affected targets.  If there is a difference in
  2252.          the routing databases in the two agents, they may exchange
  2253.          CONNECT and REFUSE messages again.  Since such routing errors
  2254.          in the internet are assumed to be temporary, the situation
  2255.          should eventually stabilize.
  2256.  
  2257.  
  2258.       3.5.3.        Setup Failure due to a Routing Failure
  2259.  
  2260.          It is possible for an agent to receive a CONNECT message that
  2261.          contains a known Name, but from an agent other than the
  2262.          previous-hop agent of the stream with that Name.  This may be:
  2263.  
  2264.           1  that two branches of the tree forming the stream have
  2265.              joined back together,
  2266.  
  2267.           2  a deliberate source routing loop,
  2268.  
  2269.           3  the result of an attempted recovery of a partially
  2270.              failed stream, or
  2271.  
  2272.           4  an erroneous routing loop.
  2273.  
  2274.          The TargetList is used to distinguish the cases 1 and 2 (see
  2275.          also Section 4.2.3.5 (page 107)) by comparing each newly
  2276.          received target with those of the previously existing stream:
  2277.  
  2278.           o  if the IP address of the targets differ, it is case 1;
  2279.  
  2280.           o  if the IP address of the targets match but the source
  2281.              route(s) are different, it is case 2;
  2282.  
  2283.           o  if the target (including any source route) matches a
  2284.              target (including any source route) in the existing
  2285.              stream, it may be case 3 or 4.
  2286.  
  2287.          It is expected that the joining of branches will become more
  2288.          common as routing decisions are based on policy issues and not
  2289.          just simple connectivity.  Unfortunately, there is no good way
  2290.          to merge the two parts of the stream back into a single stream.
  2291.          They must be treated independently with respect to processing
  2292.          in the agent.  In particular, a separate state machine is
  2293.          required, the Virtual Link Identifiers and HIDs from the
  2294.          previous-hops and to the next-hops must be different, and
  2295.          duplicate resources must be reserved in both the agent and in
  2296.          any next-hop networks.  Processing is the same for a deliberate
  2297.          source routing loop.
  2298.  
  2299.  
  2300.  
  2301. CIP Working Group                                              [Page 39]
  2302.  
  2303. RFC 1190                Internet Stream Protocol            October 1990
  2304.  
  2305.  
  2306.          The remaining cases requiring recovery, a partially failed
  2307.          stream and an erroneous routing loop, are not easily
  2308.          distinguishable.  In attempting recovery of a failed stream, an
  2309.          agent may issue new CONNECT messages to the affected targets;
  2310.          for a full explanation see also Section 3.7.2 (page 51),
  2311.          Failure Recovery.  Such a CONNECT may reach an agent downstream
  2312.          of the failure before that agent has received a DISCONNECT from
  2313.          the neighborhood of the failure.  Until that agent receives the
  2314.          DISCONNECT, it cannot distinguish between a failure recovery
  2315.          and an erroneous routing loop.  That agent must therefore
  2316.          respond to the CONNECT with a REFUSE message with the affected
  2317.          targets specified in the TargetList and an appropriate reason
  2318.          code (StreamExists).
  2319.  
  2320.          The agent immediately preceding that point, i.e., the latest
  2321.          agent to send the CONNECT message, will receive the REFUSE
  2322.          message.  It must release any resources reserved exclusively
  2323.          for traffic to the listed targets.  If this agent was not the
  2324.          one attempting the stream recovery, then it cannot distinguish
  2325.          between a failure recovery and an erroneous routing loop.  It
  2326.          should repeat the CONNECT after a ToConnect timeout.  If after
  2327.          NConnect retransmissions it continues to receive REFUSE
  2328.          messages, it should propagate the REFUSE message toward the
  2329.          origin, with the TargetList that specifies the affected
  2330.          targets, but with a different error code (RouteLoop).
  2331.  
  2332.          The REFUSE message with this error code (RouteLoop) is
  2333.          propagated by each ST agent without retransmitting any CONNECT
  2334.          messages.  At each agent, it causes any resources reserved
  2335.          exclusively for the listed targets to be released.  The REFUSE
  2336.          will be propagated to the origin in the case of an erroneous
  2337.          routing loop.  In the case of stream recovery, it will be
  2338.          propagated to the ST agent that is attempting the recovery,
  2339.          which may be an intermediate agent or the origin itself.  In
  2340.          the case of a stream recovery, the agent attempting the
  2341.          recovery may issue new CONNECT messages to the same or to
  2342.          different next-hops.
  2343.  
  2344.          If an agent receives both a REFUSE message and a DISCONNECT
  2345.          message with a target in common then it can release the
  2346.          relevant resources and propagate neither the REFUSE nor the
  2347.          DISCONNECT (however, we feel that it is unlikely that most
  2348.          implementations will be able to detect this situation).
  2349.  
  2350.          If the origin receives such a REFUSE message, it should attempt
  2351.          to send a new CONNECT to all the affected targets.  Since
  2352.          routing errors in an internet are assumed to be temporary, the
  2353.          new CONNECTs will eventually find acceptable routes to the
  2354.          targets, if one exists.  If no further routes exist after
  2355.          NRetryRoute tries, the application should be
  2356.  
  2357.  
  2358.  
  2359.  
  2360. CIP Working Group                                              [Page 40]
  2361.  
  2362. RFC 1190                Internet Stream Protocol            October 1990
  2363.  
  2364.  
  2365.          informed so that it may take whatever action it deems
  2366.          necessary.
  2367.  
  2368.  
  2369.       3.5.4.        Problems in Reserving Resources
  2370.  
  2371.          If the network or ST agent resources are not available, an ST
  2372.          agent may preempt one or more streams that have lower
  2373.          precedence than the one being created.  When it breaks a lower
  2374.          precedence stream, it must issue REFUSE and DISCONNECT messages
  2375.          as described in Sections 4.2.3.15 (page 122) and 4.2.3.6 (page
  2376.          110).  If there are no streams of lower precedence, or if
  2377.          preempting them would not provide sufficient resources, then
  2378.          the stream cannot be accepted by the ST agent.
  2379.  
  2380.          If an intermediate agent detects that it cannot allocate the
  2381.          necessary resources, then it sends a REFUSE that contains an
  2382.          appropriate reason code (CantGetResrc) and the pertinent
  2383.          TargetList to the previous-hop ST agent.  For further study are
  2384.          issues of reporting what resources are available, whether the
  2385.          resource shortage is permanent or transitory, and in the latter
  2386.          case, an estimate of how long before the requested resources
  2387.          might be available.
  2388.  
  2389.  
  2390.       3.5.5.        Setup Failure due to ACCEPT Timeout
  2391.  
  2392.          An ST agent that propagates an ACCEPT message backward toward
  2393.          the origin expects an ACK from the previous-hop.  If it does
  2394.          not receive an ACK within a timeout, called ToAccept, it will
  2395.          retransmit the ACCEPT.  If it does not receive an ACK after
  2396.          sending a number, called NAccept, of ACCEPT messages, then it
  2397.          will replace the ACCEPT with a REFUSE, and will send a
  2398.          DISCONNECT in the direction toward the target.  Both the REFUSE
  2399.          and DISCONNECT will identify the affected target(s) and specify
  2400.          an appropriate reason code (AcceptTimeout).  Both are also
  2401.          retransmitted until ACKed with timeout ToRefuse/ ToDisconnect
  2402.          and retransmit count NRefuse/NDisconnect.  If they are not
  2403.          ACKed, the agent simply gives up, letting the failure detection
  2404.          mechanism described in Section 3.7.1 (page 48) take care of any
  2405.          cleanup.
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419. CIP Working Group                                              [Page 41]
  2420.  
  2421. RFC 1190                Internet Stream Protocol            October 1990
  2422.  
  2423.  
  2424.       3.5.6.        Problems Caused by CHANGE Messages
  2425.  
  2426.          An application must exercise care when changing a FlowSpec to
  2427.          prevent a failure.  A CHANGE might fail for two reasons.  The
  2428.          request may be for a larger amount of network resources when
  2429.          those resources are not available;  this failure may be
  2430.          prevented by requiring that the current level of service be
  2431.          contained within the ranges of the FlowSpec in the CHANGE.
  2432.  
  2433.          Alternatively, the local network might require all the former
  2434.          resources to be released before the new ones are requested and,
  2435.          due to unlucky timing, an unrelated request for network
  2436.          resources might be processed between the time the resources are
  2437.          released and the time the new resources are requested, so that
  2438.          the former resources are no longer available.  There is not
  2439.          much that an application or ST can do to prevent such failures.
  2440.  
  2441.          If the attempt to change the FlowSpec fails then the ST agent
  2442.          where the failure occurs must intentionally break the stream
  2443.          and invoke the stream recovery mechanism using REFUSE and
  2444.          DISCONNECT messages;  see Section 3.7.2 (page 51).  Note that
  2445.          the reserved resources after the failure of a CHANGE may not be
  2446.          the same as before, i.e., the CHANGE may have been partially
  2447.          completed.  The application is responsible for any cleanup
  2448.          (another CHANGE).
  2449.  
  2450.  
  2451.       3.5.7.        Notification of Changes Forced by Failures
  2452.  
  2453.          NOTIFY is issued by a an ST Agent to inform upsteam agents and
  2454.          the origin that resource allocation changes have occurred after
  2455.          a stream was established.  These changes occur when network
  2456.          components fail and when competing streams preempt resources
  2457.          previously reserved by a lower precedence stream.  We also
  2458.          anticipate that NOTIFY can be used in the future when
  2459.          additional resources become available, as is the case when
  2460.          network components recover or when higher precedence streams
  2461.          are deleted.
  2462.  
  2463.          NOTIFY is also used to inform upstream agents that a routing
  2464.          anomaly has occurred.  Such an example was cited in Section
  2465.          3.5.2 (page 38), where an agent notices that the next-hop agent
  2466.          is on the same network as the previous-hop agent;  the anomaly
  2467.          is that the previous-hop should have connected directly to the
  2468.          next-hop without using an intermediate agent.  Delays in
  2469.          propagating host status and routing information can cause such
  2470.          anomalies to occur.  NOTIFY allows ST to correct automatically
  2471.          such mistakes.
  2472.  
  2473.          NOTIFY reports a FlowSpec that reflects that revised guarantee
  2474.          that can be promised to the stream.  NOTIFY also
  2475.  
  2476.  
  2477.  
  2478. CIP Working Group                                              [Page 42]
  2479.  
  2480. RFC 1190                Internet Stream Protocol            October 1990
  2481.  
  2482.  
  2483.          identifies those targets affected by the change.  In this way,
  2484.          NOTIFY is similar to ACCEPT.  NOTIFY includes a ReasonCode to
  2485.          identify the event that triggered the notification.  It also
  2486.          includes a TargetList, rather than a single Target, since a
  2487.          single event can affect a branch leading to several targets.
  2488.  
  2489.          NOTIFY is relayed by the ST agents back toward the origin,
  2490.          along the path established by the CONNECT but in the reverse
  2491.          direction.  NOTIFY must be acknowledged with an ACK at each
  2492.          hop.  If intermediate agent corrects the situation without
  2493.          causing any disruption to the data flow or guarantees, it can
  2494.          choose to drop the notification message before it reaches the
  2495.          origin.  If the originating agent receives a NOTIFY, it is then
  2496.          expected to adjust its own processing and data rates, and to
  2497.          submit any required CHANGE requests.  As with ACCEPT, the
  2498.          FlowSpec is not modified on this trip from the target back to
  2499.          the origin.  It is up to the origin to decide whether a CHANGE
  2500.          should be submitted.  (However, even though the FlowSpec has
  2501.          not been modified, the situation reported in the
  2502.  
  2503.  
  2504.    Application  Agent A            Agent 1                    Agent B
  2505.  
  2506.  1.                      (high precedence request preempts 10K of
  2507.                              the stream's original 30Kb bandwidth
  2508.                               allocated to the hop from 1 to B)
  2509.                                       |
  2510.                                       V
  2511.  2.   +<------+-- NOTIFY -------------+
  2512.       |       |   <RVLId=4><SVLId=14>
  2513.       |       |   <Ref=150>
  2514.       |       V   <FlowSpec=20Kb,...><TargList=B>
  2515.  3.   |       +-> ACK --------------->+
  2516.       |           <RVLId=14><SVLId=4>
  2517.       V           <Ref=150>
  2518.  4. (inform application)
  2519.       ....
  2520.  5. change(FlowSpec=20Kb,...)
  2521.       V
  2522.  6.   +---------> CHANGE B ---------->+
  2523.  7.               <RVLId=14><SVLId=4> +--> CHANGE B ------------>+->+
  2524.                   <Ref=60>            |    <RVLId=44><SVLId=15>  |  |
  2525.                   <FlowSpec=20Kb,...> V    <Ref=160>             |  |
  2526.  8.           +<- ACK ----------------+    <FlowSpec=20Kb,...>   |  |
  2527.                   <RVLId=4><SVLId=14>                            V  |
  2528.  9.               <Ref=60>            +--- ACK ------------------+  |
  2529.                                              <RVLId=15><SVLId=44>   |
  2530.                                              <Ref=160>              V
  2531.               ... perform normal ACCEPT processing ...        <-----+
  2532.  
  2533.                  Figure 16.  Processing NOTIFY Messages
  2534.  
  2535.  
  2536.  
  2537. CIP Working Group                                              [Page 43]
  2538.  
  2539. RFC 1190                Internet Stream Protocol            October 1990
  2540.  
  2541.  
  2542.          notify may have prevented the ST agents from meeting the
  2543.          original guarantees.)
  2544.  
  2545.  
  2546.    3.6.       Options
  2547.  
  2548.       Several options are defined in the CONNECT message.  The special
  2549.       processing required to support each will be described in the
  2550.       following sections.  The options are independent, i.e., can be set
  2551.       to one (1, TRUE) or zero (0, FALSE) in any combination.  However,
  2552.       the effect and implementation of the options is NOT necessarily
  2553.       independent, and not all combinations are supported.
  2554.  
  2555.  
  2556.       3.6.1.        HID Field Option
  2557.  
  2558.          The sender of a CONNECT message may or not specify an HID in
  2559.          the HID field.  If the HID Field option of the CONNECT message
  2560.          is not set (the H bit is 0), then the HID field does not
  2561.          contain relevant information and should be ignored.
  2562.  
  2563.          If this option is set (the H bit is 1), then the HID field
  2564.          contains a relevant value.  If this option is set and the HID
  2565.          field of the CONNECT contains a non-zero value, that value
  2566.          represents a proposed HID that initiates the HID negotiation.
  2567.  
  2568.          If the HID Field option is set but the HID field of the CONNECT
  2569.          message contains a zero, this means that the sender of that
  2570.          CONNECT message has chosen to defer selection of the HID to the
  2571.          next-hop agent (the receiver of a CONNECT message).  This
  2572.          choice can allow a more efficient mechanism for selecting HIDs
  2573.          and possibly a more efficient mechanism for forwarding data
  2574.          packets in the case when the previous-hop does not need to
  2575.          select the HID;  see also Section 4.2.3.5 (page 105).
  2576.  
  2577.          Upon receipt of a CONNECT message with the HID Field option set
  2578.          and the HID field set to zero, a next-hop agent selects the HID
  2579.          for the hop, enters it into its appropriate data structure, and
  2580.          returns it in the HID field of the HID-APPROVE message.  The
  2581.          previous-hop takes the HID from the HID-APPROVE message and
  2582.          enters it into its appropriate data structure.
  2583.  
  2584.  
  2585.       3.6.2.        PTP Option
  2586.  
  2587.          The PTP option (Point-to-Point) is used to indicate that the
  2588.          stream will never have more than a single target.  It
  2589.          consequently implies that the stream will never need to support
  2590.          any form of multicasting.  Use of the PTP option may thus allow
  2591.          efficiencies in the way the stream is built or is
  2592.  
  2593.  
  2594.  
  2595.  
  2596. CIP Working Group                                              [Page 44]
  2597.  
  2598. RFC 1190                Internet Stream Protocol            October 1990
  2599.  
  2600.  
  2601.          managed.  Specifically, the ST agents do not need to request
  2602.          that the intervening networks allocate multicast groups to
  2603.          support this stream.
  2604.  
  2605.          The PTP option can only be set to one (1) by the origin, and
  2606.          must be the same for the entire stream (i.e., propagated by ST
  2607.          agents).  The details of what this option does are
  2608.          implementation specific, and do not affect the protocol very
  2609.          much.
  2610.  
  2611.          If the application attempts to add a new target to an existing
  2612.          stream that was created with the PTP option set to one (1), the
  2613.          application should be informed of the error with an ERROR-IN-
  2614.          REQUEST message with the appropriate reason code.  If a CONNECT
  2615.          is received whose TargetList contains more than a single entry,
  2616.          an ERROR-IN-REQUEST message with the appropriate reason code
  2617.          (PTPError) should be returned to the previous-hop agent (note
  2618.          that such a CONNECT should never be received if the origin both
  2619.          implements the PTP option and is functioning properly).
  2620.  
  2621.          As implied in the last paragraph, a subsetted implementation
  2622.          might choose not to implement the PTP option.
  2623.  
  2624.  
  2625.       3.6.3.        FDx Option
  2626.  
  2627.          The FDx option is used to indicate that a second stream in the
  2628.          reverse direction, from the target to the origin, should
  2629.          automatically be created.  This option is most likely to be
  2630.          used when the TargetList has only a single entry.  If used when
  2631.          the TargetList has multiple entries, the resulting streams
  2632.          would allow bi-directional communication between the origin and
  2633.          the various targets, but not among the targets.  The FDx option
  2634.          can only be invoked by the origin, and must be propagated by
  2635.          intermediate agents.
  2636.  
  2637.          This option is specified by inclusion of both an RFlowSpec and
  2638.          an RHID parameter in the CONNECT message (possibly with an
  2639.          optional RGroup parameter).
  2640.  
  2641.          Any ST agent that receives a CONNECT message with both an
  2642.          RFlowSpec and an RHID parameter will create database entries
  2643.          for streams in both directions and will allocate resources in
  2644.          both directions for them.  By this we mean that an ST agent
  2645.          will reserve resources to the next-hop agent for the normal
  2646.          stream and resources back to the previous-hop agent for the
  2647.          reverse stream.  This is necessary since it is expected that
  2648.          network reservation interfaces will require the destination
  2649.          address(es) in order to make reservations, and because all ST
  2650.          agents must use the same reservation model.
  2651.  
  2652.  
  2653.  
  2654.  
  2655. CIP Working Group                                              [Page 45]
  2656.  
  2657. RFC 1190                Internet Stream Protocol            October 1990
  2658.  
  2659.  
  2660.          The target agent will select a Name for the reverse stream and
  2661.          return it (in the RName parameter) and the resulting FlowSpec
  2662.          (in the RFlowSpec parameter) of the ACCEPT message.  Each agent
  2663.          that processes the ACCEPT will update its partial stream
  2664.          database entry for the reverse stream with the Name contained
  2665.          in the RName parameter.  We assume that the next higher
  2666.          protocol layer will use the same SAP for both streams.
  2667.  
  2668.  
  2669.       3.6.4.        NoRecovery Option
  2670.  
  2671.          The NoRecovery option is used to indicate that ST agents should
  2672.          not attempt recovery in case of network or component failure.
  2673.          If a failure occurs, the origin will be notified via a REFUSE
  2674.          message and the target(s) via a DISCONNECT, with an appropriate
  2675.          reason code of "failure" (i.e., one of DropFailAgt,
  2676.          DropFailHst, DropFailIfc, DropFailNet, IntfcFailure,
  2677.          NetworkFailure, STAgentFailure, FailureRecovery).  They can
  2678.          then decide whether to wait for the failed component to be
  2679.          fixed, or drop the target via DISCONNECT/REFUSE messages.  The
  2680.          NoRecovery option can only be set to one (1) by the origin, and
  2681.          must be the same for the entire stream.
  2682.  
  2683.  
  2684.       3.6.5.        RevChrg Option
  2685.  
  2686.          The RevChrg option bit in the FlowSpec is set to one (1) by the
  2687.          origin to request that the target(s) pay any charges associated
  2688.          with the stream (to the target(s));  see Section 4.2.2.3 (page
  2689.          83).  If the target is not willing to accept charges, the bit
  2690.          should be set to zero (0) by the target before returning the
  2691.          FlowSpec to the origin in an ACCEPT message.
  2692.  
  2693.          If the FDx option is also specified, the target pays charges
  2694.          for both streams.
  2695.  
  2696.  
  2697.       3.6.6.        Source Route Option
  2698.  
  2699.          The Source Route Option may be used both for diagnostic
  2700.          purposes, and, in those hopefully infrequent cases where the
  2701.          standard routing mechanisms do not produce paths that satisfy
  2702.          some policy constraint, to allow the origin to prespecify the
  2703.          ST agents along the path to the target(s).  The idea is that
  2704.          the origin can explicitly specify the path to a target, either
  2705.          strictly hop-by-hop or more loosely by specification of one or
  2706.          more agents through which the path must pass.
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714. CIP Working Group                                              [Page 46]
  2715.  
  2716. RFC 1190                Internet Stream Protocol            October 1990
  2717.  
  2718.  
  2719.          The option is specified by including source routing information
  2720.          in the Target structure.  A target may contain zero or more
  2721.          SrcRoute options;  when multiple options are present, they are
  2722.          processed in the order in which they occur.  The parameter code
  2723.          indicates whether the portion of the path contained in the
  2724.          parameter is of the strict or loose variety.
  2725.  
  2726.          Since portions of a path may pass through portions of an
  2727.          internet that does not support ST agents, there are also forms
  2728.          of the SrcRoute option that are converted into the
  2729.  
  2730.  
  2731. Application  Agent A        Agent 2        Agent 3              Agent B
  2732.  
  2733. 1.  (open B<SR=2,3>)
  2734. 2.    V                                              (proc B listening)
  2735. 3.   (source routed to 2)
  2736.       V
  2737. 4.   (check resources from A to Agent 2: already allocated,
  2738.       V   reuse control link & HID, no additional resources needed)
  2739. 5.    +-> CONNECT B<SR=2,3>->-+-+
  2740.           <RVLId=23><SVLId=5> | |
  2741. 6.        <Ref=50>            V |
  2742. 7.    +<- ACK ----------------+ |
  2743.           <RVLId=5><SVLId=23>   |
  2744.           <Ref=50>              V
  2745. 8.                 (source routed to 3)
  2746.                              V
  2747. 9.            (reserve resources 2 to 3)
  2748.                           V
  2749. 10.                       +-> CONNECT B<SR=3> ---->+
  2750.                               <RVLId=0><SVLId=24>  |
  2751.                               <Ref=280><HID=4801>  V
  2752. 11.                       +<- HID-APPROVE <--------+
  2753.                               <RVLId=24><SVLId=33> |
  2754.                               <Ref=280><HID=4801>  |
  2755.                                                    V
  2756.                                            (routing to B)
  2757.                                                 V
  2758.                                  (reserve resources from 3 to B)
  2759.                                              V
  2760. 12.                                          +-> CONNECT B ---------->+
  2761.                                                  <RVLId=0><SVLId=32>  |
  2762.                                                  <Ref=330><HID=6000>  V
  2763. 13.                                          +<- HID-APPROVE <--------+
  2764.                                                  <RVLId=32><SVLId=45> |
  2765.                                                  <Ref=330><HID=6000>  V
  2766. 14.                                                    (proc B accepts)
  2767.                                                                       V
  2768.                 ... perform normal ACCEPT processing ...        <-----+
  2769.  
  2770.                     Figure 17.  Source Routing Option
  2771.  
  2772.  
  2773. CIP Working Group                                              [Page 47]
  2774.  
  2775. RFC 1190                Internet Stream Protocol            October 1990
  2776.  
  2777.  
  2778.          corresponding IP Source Routing options by the ST agent that
  2779.          performs the encapsulation.
  2780.  
  2781.          The SrcRoute option is usually selected by the origin, but may
  2782.          be used by intermediate agents if specified as a result of the
  2783.          routing function.
  2784.  
  2785.          For example, in the topology of Figure 2, if A wants to add B
  2786.          back into the stream, its routing function might decide that
  2787.          the best path is via Agent 3.  Since the data is already being
  2788.          multicast across the network connected to C, D, and E, the
  2789.          route via Agent 3 might cost less than having A replicate the
  2790.          data packets and send them across A's network a second time.
  2791.  
  2792.  
  2793.    3.7.       Ancillary Functions
  2794.  
  2795.       There are several functions and procedures that are required by
  2796.       the ST Protocol.  They are described in subsequent sections.
  2797.  
  2798.  
  2799.       3.7.1.        Failure Detection
  2800.  
  2801.          The ST failure detection mechanism is based on two assumptions:
  2802.  
  2803.           1  If a neighbor of an ST agent is up, and has been up
  2804.              without a disruption, and has not notified the ST agent
  2805.              of a problem with streams that pass through both, then
  2806.              the ST agent can assume that there has not been any
  2807.              problem with those streams.
  2808.  
  2809.           2  A network through which an ST agent has routed a stream
  2810.              will notify the ST agent if there is a problem that
  2811.              affects the stream data packets but does not affect the
  2812.              control packets.
  2813.  
  2814.          The purpose of the robustness protocol defined here is for ST
  2815.          agents to determine that the streams through a neighbor have
  2816.          been broken by the failure of the neighbor or the intervening
  2817.          network.  This protocol should detect the overwhelming majority
  2818.          of failures that can occur.  Once a failure is detected,
  2819.          recovery procedures are initiated.
  2820.  
  2821.  
  2822.          3.7.1.1.         Network Failures
  2823.  
  2824.             In this memo, a network is defined to be the protocol
  2825.             layer(s) below ST.  This function can be implemented in a
  2826.             hardware module separate from the ST agent, or as software
  2827.             modules within the ST agent itself, or as a combination of
  2828.  
  2829.  
  2830.  
  2831.  
  2832. CIP Working Group                                              [Page 48]
  2833.  
  2834. RFC 1190                Internet Stream Protocol            October 1990
  2835.  
  2836.  
  2837.             both.  This specification and the robustness protocol do not
  2838.             differentiate between these alternatives.
  2839.  
  2840.             An ST agent can detect network failures by two mechanisms;
  2841.             the network can report a failure, or the ST agent can
  2842.             discover a failure by itself.  They differ in the amount of
  2843.             information that ST agent has available to it in order to
  2844.             make a recovery decision.  For example, a network may be
  2845.             able to report that reserved bandwidth has been lost and the
  2846.             reason for the loss and may also report that connectivity to
  2847.             the neighboring ST agent remains intact.  In this case, the
  2848.             ST agent may request the network to allocate bandwidth anew.
  2849.             On the other hand, an ST agent may discover that
  2850.             communication with a neighboring ST agent has ceased because
  2851.             it has not received any traffic from that neighbor in some
  2852.             time period.  If an ST agent detects a failure, it may not
  2853.             be able to determine if the failure was in the network while
  2854.             the neighbor remains available, or the neighbor has failed
  2855.             while the network remains intact.
  2856.  
  2857.  
  2858.          3.7.1.2.         Detecting ST Stream Failures
  2859.  
  2860.             Each ST agent periodically sends each neighbor with which it
  2861.             shares a stream a HELLO message.  A HELLO message is ACKed
  2862.             if the Reference field is non-zero.  This message exchange
  2863.             is between ST agents, not entities representing streams or
  2864.             applications (there is no Name field in a HELLO message).
  2865.             That is, an ST agent need only send a single HELLO message
  2866.             to a neighbor regardless of the number of streams that flow
  2867.             between them.  All ST agents (host as well as intermediate)
  2868.             must participate in this exchange.  However, only agents
  2869.             that share active streams need to participate in this
  2870.             exchange.
  2871.  
  2872.             To facilitate processing of HELLO messages, an
  2873.             implementation may either create a separate Virtual Link
  2874.             Identifier for each neighbor having an active stream, or may
  2875.             use the reserved identifier of one (1) for the SVLId field
  2876.             in all its HELLO messages.
  2877.  
  2878.             An implementation that wishes to send its HELLO messages via
  2879.             a data path instead of the control path may setup a separate
  2880.             stream to its neighbor agent for that purpose.  The HELLO
  2881.             message would contain a HID of zero, indicating a control
  2882.             message, but would be identified to the next lower protocol
  2883.             layer as being part of the separate stream.
  2884.  
  2885.             As well as identifying the sender, the HELLO message has two
  2886.             fields;  a HelloTimer field that is in units of milliseconds
  2887.             modulo the maximum for the field size, and a
  2888.  
  2889.  
  2890.  
  2891. CIP Working Group                                              [Page 49]
  2892.  
  2893. RFC 1190                Internet Stream Protocol            October 1990
  2894.  
  2895.  
  2896.             Restarted bit specifying that the ST agent has been
  2897.             restarted recently.  The HelloTimer must appear to be
  2898.             incremented every millisecond whether a HELLO message is
  2899.             sent or not, but it is allowable for an ST agent to create a
  2900.             new HelloTimer only when it sends a HELLO message.  The
  2901.             HelloTimer wraps around to zero after reaching the maximum
  2902.             value.  Whenever an ST agent suffers a catastrophic event
  2903.             that may result in it losing ST state information, it must
  2904.             reset its HelloTimer to zero and must set the Restarted bit
  2905.             for the following HelloTimerHoldDown seconds.
  2906.  
  2907.             An ST agent must send HELLO messages to its neighbor with a
  2908.             period shorter than the smallest RecoveryTimeout parameter
  2909.             of the FlowSpecs of all the active streams that pass between
  2910.             the two agents, regardless of direction.  This period must
  2911.             be smaller by a factor, called HelloLossFactor, which is at
  2912.             least as large as the greatest number of consecutive HELLO
  2913.             messages that could credibly be lost while the communication
  2914.             between the two ST agents is still viable.
  2915.  
  2916.             An ST agent may send simultaneous HELLO messages to all its
  2917.             neighbors at the rate necessary to support the smallest
  2918.             RecoveryTimeout of any active stream.  Alternately, it may
  2919.             send HELLO messages to different neighbors independently at
  2920.             different rates corresponding to RecoveryTimeouts of
  2921.             individual streams.
  2922.  
  2923.             The agent that receives a HELLO message expects to receive
  2924.             at least one new HELLO message from a neighbor during the
  2925.             RecoveryTimeout of every active stream through that
  2926.             neighbor.  It can detect duplicate or delayed HELLO messages
  2927.             by saving the HelloTimer field of the most recent valid
  2928.             HELLO message from that neighbor and comparing it with the
  2929.             HelloTimer field of incoming HELLO messages.  It will only
  2930.             accept an incoming HELLO message from that neighbor if it
  2931.             has a HelloTimer field that is greater than the most recent
  2932.             valid HELLO message by the time elapsed since that message
  2933.             was received plus twice the maximum likely delay variance
  2934.             from that neighbor.  If the ST agent does not receive a
  2935.             valid HELLO message within the RecoveryTimeout of a stream,
  2936.             it must assume that the neighboring ST agent or the
  2937.             communication link between the two has failed and it must
  2938.             initiate stream recovery activity.
  2939.  
  2940.             Furthermore, if an ST agent receives a HELLO message that
  2941.             contains the Restarted bit set, it must assume that the
  2942.             sending ST agent has lost its ST state.  If it shares
  2943.             streams with that neighbor, it must initiate stream recovery
  2944.             activity.  If it does not share streams with that neighbor,
  2945.             it should not attempt to create one until that
  2946.  
  2947.  
  2948.  
  2949.  
  2950. CIP Working Group                                              [Page 50]
  2951.  
  2952. RFC 1190                Internet Stream Protocol            October 1990
  2953.  
  2954.  
  2955.             bit is no longer set.  If an ST agent receives a CONNECT
  2956.             message from a neighbor whose Restarted bit is still set, it
  2957.             must respond with ERROR-IN-REQUEST with the appropriate
  2958.             reason code (RemoteRestart).  If it receives a CONNECT
  2959.             message while its own Restarted bit is set, it must respond
  2960.             with ERROR-IN-REQUEST with the appropriate reason code
  2961.             (RestartLocal).
  2962.  
  2963.  
  2964.          3.7.1.3.         Subset
  2965.  
  2966.             This failure detection mechanism subsets by reducing the
  2967.             complexity of the timing and decisions.  A subsetted ST
  2968.             agent sends HELLO messages to all its ST neighbors
  2969.             regardless of whether there is an active ST stream between
  2970.             them or not.  The RecoveryTimeout parameter of the FlowSpec
  2971.             is ignored and is assumed to be the DefaultRecoveryTimeout.
  2972.             Note that this implies that a REFUSE should be sent for all
  2973.             CONNECT or CHANGE messages whose RecoveryTimeout is less
  2974.             than DefaultRecoveryTimeout.  An ST agent will accept an
  2975.             incoming HELLO message if it has a HelloTimer field that is
  2976.             greater than the most recent valid HELLO message by
  2977.             DefaultHelloFactor times the time elapsed since that message
  2978.             was received.
  2979.  
  2980.  
  2981.       3.7.2.        Failure Recovery
  2982.  
  2983.          Streams can fail from various causes;  an ST agent can break, a
  2984.          network can break, or an ST agent can intentionally break a
  2985.          stream in order to give the stream's resources to a higher
  2986.          precedence stream.  We can envision several approaches to
  2987.          recovery of broken streams, and we consider the one described
  2988.          here the simplest and therefore the most likely to be
  2989.          implemented and work.
  2990.  
  2991.          If an intermediate agent fails or a network or part of a
  2992.          network fails, the previous-hop agent and the various next-hop
  2993.          agents will discover the fact by the failure detection
  2994.          mechanism described in Section 3.7.1 (page 48).  An ST agent
  2995.          that intentionally breaks a stream obviously knows of the
  2996.          event.
  2997.  
  2998.          The recovery of an ST stream is a relatively complex and time
  2999.          consuming effort because it is designed in a general manner to
  3000.          operate across a large number of networks with diverse
  3001.          characteristics.  Therefore, it may require information to be
  3002.          distributed widely, and may require relatively long timers.  On
  3003.          the other hand, since a network is a homogeneous system,
  3004.          failure recovery in the network may be a relatively faster and
  3005.          simpler operation.  Therefore an ST agent that detects a
  3006.          failure should attempt to fix the network failure before
  3007.  
  3008.  
  3009. CIP Working Group                                              [Page 51]
  3010.  
  3011. RFC 1190                Internet Stream Protocol            October 1990
  3012.  
  3013.  
  3014.          attempting recovery of the ST stream.  If the stream that
  3015.          existed between two ST agents before the failure cannot be
  3016.          reconstructed by network recovery mechanisms alone, then the ST
  3017.          stream recovery mechanism must be invoked.
  3018.  
  3019.          If stream recovery is necessary, the different ST agents may
  3020.          need to perform different functions, depending on their
  3021.          relation to the failure.
  3022.  
  3023.          An intermediate agent that breaks the stream intentionally
  3024.          sends DISCONNECT messages with the appropriate reason code
  3025.          (StreamPreempted) toward the affected targets.  If the
  3026.          NoRecovery option is selected, it sends a REFUSE message with
  3027.          the appropriate reason code(StreamPreempted) toward the origin.
  3028.          If the NoRecovery option is not selected, then this agent
  3029.          attempts recovery of the stream, as described below.
  3030.  
  3031.          A host agent that is a target of the broken stream or is itself
  3032.          the next-hop of the failed component should release resources
  3033.          that are allocated to the stream, but should maintain the
  3034.          internal state information describing the stream.  It should
  3035.          inform any next higher protocol of the failure.  It is
  3036.          appropriate for that protocol to expect that the stream will be
  3037.          fixed shortly by some alternate path and so maintain, for some
  3038.          time period, whatever information in the ST layer, the next
  3039.          higher layer, and the application is necessary to reactivate
  3040.          quickly entries for the stream as the alternate path develops.
  3041.          The agent should use a timeout to delete all the stream
  3042.          information in case the stream cannot be fixed in a reasonable
  3043.          time.
  3044.  
  3045.          An intermediate agent that is a next-hop of a failure that was
  3046.          not due to a preemption should first verify that there was a
  3047.          failure.  It can do this using STATUS messages to query its
  3048.          upstream neighbor.  If it cannot communicate with that
  3049.          neighbor, then it should first send a REFUSE message with the
  3050.          appropriate reason code of "failure" to the neighbor to speed
  3051.          up the failure recovery in case the hop is unidirectional,
  3052.          i.e., the neighbor can hear the agent but the agent cannot hear
  3053.          the neighbor.  The ST agent detecting the failure must then
  3054.          send DISCONNECT messages with the same reason code toward the
  3055.          targets.  The intermediate agents process this DISCONNECT
  3056.          message just like the DISCONNECT that tears down the stream.
  3057.          However, a target ST agent that receives a DISCONNECT message
  3058.          with the appropriate reason code (StreamPreempted, or
  3059.          "failure") will maintain the stream state and notify the next
  3060.          higher protocol of the failure.  In effect, these DISCONNECT
  3061.          messages tear down the stream from the point of the failure to
  3062.          the targets, but inform the targets that the stream may be
  3063.          fixed shortly.
  3064.  
  3065.  
  3066.  
  3067.  
  3068. CIP Working Group                                              [Page 52]
  3069.  
  3070. RFC 1190                Internet Stream Protocol            October 1990
  3071.  
  3072.  
  3073.          An ST agent that is the previous-hop before the failed
  3074.          component first verifies that there was a failure by querying
  3075.          the downstream neighbor using STATUS messages.  If the neighbor
  3076.          has lost its state but is available, then the ST agent may
  3077.          reconstruct the stream if the NoRecovery option is not
  3078.          selected, as described below.  If it cannot communicate with
  3079.          the next-hop, then the agent detecting the failure releases any
  3080.          resources that are dedicated exclusively to sending data on the
  3081.          broken branch and sends a DISCONNECT message with the
  3082.          appropriate reason code ("failure") toward the affected
  3083.          targets.  It does so to speed up failure recovery in case the
  3084.          communication may be unidirectional and this message might be
  3085.          delivered successfully.
  3086.  
  3087.          If the NoRecovery option is selected, then the ST agent that
  3088.          detects the failure sends a REFUSE message with the appropriate
  3089.          reason code ("failure") to the previous-hop.  If it is breaking
  3090.          the stream intentionally, it sends a REFUSE message with the
  3091.          appropriate reason code (StreamPreempted) to the previous-hop.
  3092.          The TargetList in these messages contains all the targets that
  3093.          were reached through the broken branch.  Multiple REFUSE
  3094.          messages may be required if the PDU is too long for the MTU of
  3095.          the intervening network.  The REFUSE message is propagated all
  3096.          the way to the origin, which can attempt recovery of the stream
  3097.          by sending a new CONNECT to the affected targets.  The new
  3098.          CONNECT will be treated by intermediate ST agents as an
  3099.          addition of new targets into the established stream.
  3100.  
  3101.          If the NoRecovery option is not selected, the ST agent that
  3102.          breaks the stream intentionally or is the previous-hop before
  3103.          the failed component can attempt recovery of the stream.  It
  3104.          does so by issuing a new CONNECT message to the affected
  3105.          targets.  If the ST agent cannot find new routes to some
  3106.          targets, or if the only route to some targets is through the
  3107.          previous-hop, then it sends one or more REFUSE messages to the
  3108.          previous-hop with the appropriate reason code ("failure" or
  3109.          StreamPreempted) specifying the affected targets in the
  3110.          TargetList.  The previous-hop can then attempt recovery of the
  3111.          stream by issuing a CONNECT to those targets.  If it cannot
  3112.          find an appropriate route, it will propagate the REFUSE message
  3113.          toward the origin.
  3114.  
  3115.          Regardless of which agent attempts recovery of a damaged
  3116.          stream, it will issue one or more CONNECT messages to the
  3117.          affected targets.  These CONNECT messages are treated by
  3118.          intermediate ST agents as additions of new targets into the
  3119.          established stream.  The FlowSpecs of the new CONNECT messages
  3120.          should be the same as the ones contained in the most recent
  3121.          CONNECT or CHANGE messages that the ST agent had sent toward
  3122.          the affected targets when the stream was operational.
  3123.  
  3124.  
  3125.  
  3126.  
  3127. CIP Working Group                                              [Page 53]
  3128.  
  3129. RFC 1190                Internet Stream Protocol            October 1990
  3130.  
  3131.  
  3132.          The reconstruction of a broken stream may not proceed smoothly.
  3133.          Since there may be some delay while the information concerning
  3134.          the failure is propagated throughout an internet, routing
  3135.          errors may occur for some time after a failure.  As a result,
  3136.          the ST agent attempting the recovery may receive REFUSE or
  3137.          ERROR-IN-REQUEST messages for the new CONNECTs that are caused
  3138.          by internet routing errors.  The ST agent attempting the
  3139.          recovery should be prepared to resend CONNECTs before it
  3140.          succeeds in reconstructing the stream.  If the failure
  3141.          partitions the internet and a new set of routes cannot be found
  3142.          to the targets, the REFUSE messages will eventually be
  3143.          propagated to the origin, which can then inform the application
  3144.          so it can decide whether to terminate or to continue to attempt
  3145.          recovery of the stream.
  3146.  
  3147.          The new CONNECT may at some point reach an ST agent downstream
  3148.          of the failure before the DISCONNECT does.  In this case, the
  3149.          agent that receives the CONNECT is not yet aware that the
  3150.          stream has suffered a failure, and will interpret the new
  3151.          CONNECT as resulting from a routing failure.  It will respond
  3152.          with an ERROR-IN-REQUEST message with the appropriate reason
  3153.          code (StreamExists).  Since the timeout that the ST agents
  3154.          immediately preceding the failure and immediately following the
  3155.          failure are approximately the same, it is very likely that the
  3156.          remnants of the broken stream will soon be torn down by a
  3157.          DISCONNECT message with the appropriate reason code
  3158.          ("failure").  Therefore, the ST agent that receives the ERROR-
  3159.          IN-REQUEST message with reason code (StreamExists) should
  3160.          retransmit the CONNECT message after the ToConnect timeout
  3161.          expires.  If this fails again, the request will be retried for
  3162.          NConnect times.  Only if it still fails will the ST agent send
  3163.          a REFUSE message with the appropriate reason code (RouteLoop)
  3164.          to its previous-hop.  This message will be propagated back to
  3165.          the ST agent that is attempting recovery of the damaged stream.
  3166.          That ST agent can issue a new CONNECT message if it so chooses.
  3167.          The REFUSE is matched to a CONNECT message created by a
  3168.          recovery operation through the LnkReference field in the
  3169.          CONNECT.
  3170.  
  3171.          ST agents that have propagated a CONNECT message and have
  3172.          received a REFUSE message should maintain this information for
  3173.          some period of time.  If an agent receives a second CONNECT
  3174.          message for a target that recently resulted in a REFUSE, that
  3175.          agent may respond with a REFUSE immediately rather than
  3176.          attempting to propagate the CONNECT.  This has the effect of
  3177.          pruning the tree that is formed by the propagation of CONNECT
  3178.          messages to a target that is not reachable by the routes that
  3179.          are selected first.  The tree will pass through any given ST
  3180.          agent only once, and the stream setup phase will be completed
  3181.          faster.
  3182.  
  3183.  
  3184.  
  3185.  
  3186. CIP Working Group                                              [Page 54]
  3187.  
  3188. RFC 1190                Internet Stream Protocol            October 1990
  3189.  
  3190.  
  3191.          The time period for which the failure information is maintained
  3192.          must be consistent with the expected lifetime of that
  3193.          information.  Failures due to lack of reachability will remain
  3194.          relevant for time periods large enough to allow for network
  3195.          reconfigurations or repairs.  Failures due to routing loops
  3196.          will be valid only until the relevant routing information has
  3197.          propagated, which can be a short time period.  Lack of
  3198.          bandwidth resulting from over-allocation will remain valid
  3199.          until streams are terminated, which is an unpredictable time,
  3200.          so the time that such information is maintained should also be
  3201.          short.
  3202.  
  3203.          If a CONNECT message reaches a target, the target should as
  3204.          efficiently as possible use the state that it has saved from
  3205.          before the stream failed during recovery of the stream.  It
  3206.          will then issue an ACCEPT message toward the origin.  The
  3207.          ACCEPT message will be intercepted by the ST agent that is
  3208.          attempting recovery of the damaged stream, if not the origin.
  3209.          If the FlowSpec contained in the ACCEPT specifies the same
  3210.          selection of parameters as were in effect before the failure,
  3211.          then the ST agent that is attempting recovery will not
  3212.          propagate the ACCEPT.  If the selections of the parameters are
  3213.          different, then the agent that is attempting recovery will send
  3214.          the origin a NOTIFY message with the appropriate reason code
  3215.          (FailureRecovery) that contains a FlowSpec that specifies the
  3216.          new parameter values.  The origin may then have to change its
  3217.          data generation characteristics and the stream's parameters
  3218.          with a CHANGE message to use the newly recovered subtree.
  3219.  
  3220.  
  3221.          3.7.2.1.         Subset
  3222.  
  3223.             Subsets of this mechanism may reduce the functionality in
  3224.             the following ways.  A host agent might not retain state
  3225.             describing a stream that fails with a DISCONNECT message
  3226.             with the appropriate reason code ("failure" or
  3227.             StreamPreempted).
  3228.  
  3229.             An agent might force the NoRecovery option always to be set.
  3230.             In this case, it will allow the option to be propagated in
  3231.             the CONNECT message, but will propagate the REFUSE message
  3232.             with the appropriate reason code ("failure" or
  3233.             StreamPreempted) without attempting recovery of the damaged
  3234.             stream.
  3235.  
  3236.             If an ST agent allows stream recovery and attempts recovery
  3237.             of a stream, it might choose a FlowSpec to specify exactly
  3238.             the current values of the parameters, with no ranges or
  3239.             options.
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245. CIP Working Group                                              [Page 55]
  3246.  
  3247. RFC 1190                Internet Stream Protocol            October 1990
  3248.  
  3249.  
  3250.       3.7.3.        A Group of Streams
  3251.  
  3252.          There may be a need to associate related streams.  The Group
  3253.          mechanism is simply an association technique that allows ST
  3254.          agents to identify the different streams that are to be
  3255.          associated.  Streams are in the same Group if they have the
  3256.          same Group Name in the GroupName field of the (R)Group
  3257.          parameter.  At this time there are no ST control messages that
  3258.          modify Groups.  Group Names have the same format as stream
  3259.          Names, and can share the same name space.  A stream that is a
  3260.          member of a Group can specify one or more (Subgroup Identifier,
  3261.          Relation) tuples.  The Relation specifies how the members of
  3262.          the Subgroup of the Group are related.  The Subgroups
  3263.          Identifiers need only be unique within the Group.
  3264.  
  3265.          Streams can be associated into Groups to support activities
  3266.          that deal with a number of streams simultaneously.  The
  3267.          operation of Groups of streams is a matter for further study,
  3268.          and this mechanism is provided to support that study.  This
  3269.          mechanism allows streams to be identified as belonging to a
  3270.          given Group and Subgroup, but in order to have any effect, the
  3271.          behavior that is expected of the Relation must be implemented
  3272.          in the ST agents.  Possible applications for this mechanism
  3273.          include the following:
  3274.  
  3275.           o  Associating streams that are part of a floor-controlled
  3276.              conference.  In this case, only one origin can send data
  3277.              through its stream at any given time.  Therefore, at any
  3278.              point where more than one stream passes through a branch
  3279.              or network, only enough bandwidth for one stream needs
  3280.              to be allocated.
  3281.  
  3282.           o  Associating streams that cannot exist independently.  An
  3283.              example of this may be the various streams that carry
  3284.              the audio, video, and data components of a conference,
  3285.              or the various streams that carry data from the
  3286.              different participants in a conference.  In this case,
  3287.              if some ST agent must preempt more than a single stream,
  3288.              and it has selected any one of the streams so
  3289.              associated, then it should also preempt the rest of the
  3290.              members of that Subgroup rather than preempting any
  3291.              other streams.
  3292.  
  3293.           o  Associating streams that must not be completed
  3294.              independently.  This example is similar to the preceding
  3295.              one, but relates to the stream setup phase.  In this
  3296.              example, any single member of a Subgroup of streams need
  3297.              not be completed unless the rest are also completed.
  3298.              Therefore, if one stream becomes blocked, all the others
  3299.              will also be blocked.  In this case, if there are not
  3300.              enough resources to support all the conferences that are
  3301.              attempted, some number of the conferences will complete
  3302.  
  3303.  
  3304. CIP Working Group                                              [Page 56]
  3305.  
  3306. RFC 1190                Internet Stream Protocol            October 1990
  3307.  
  3308.  
  3309.              and other will be blocked, rather than all conferences
  3310.              be partially completed and partially blocked.
  3311.  
  3312.          This document assumes that the creation and membership of the
  3313.          Group will be managed by the next protocol above ST, with the
  3314.          assistance of ST.  For example, the next higher protocol
  3315.          would request ST to create a unique Group Name and a set of
  3316.          Subgroups with specified characteristics.  The next higher
  3317.          protocol would distribute this information to the other
  3318.          participants that were to be members of the Group.  Each
  3319.          would transfer the Group Name, Subgroups, and Relations to
  3320.          the ST layer, which would simply include them in the stream
  3321.          state.
  3322.  
  3323.  
  3324.          3.7.3.1.         Group Name Generator
  3325.  
  3326.             This facility is provided so that an application or higher
  3327.             layer protocol can obtain a unique Group Name from the ST
  3328.             layer.  This is a mechanism for the application to request
  3329.             the allocation of a Group Name that is independent of the
  3330.             request to create a stream.  The Group Name is used by the
  3331.             application or higher layer protocol when creating the
  3332.             streams that are to be part of a group.  All that is
  3333.             required is a function of the form:
  3334.  
  3335.                AllocateGroupName()
  3336.                   -> result, GroupName
  3337.  
  3338.             A corresponding function to release a Group Name is also
  3339.             desirable;  its form is:
  3340.  
  3341.                ReleaseGroupName( GroupName )
  3342.                   -> result
  3343.  
  3344.  
  3345.          3.7.3.2.         Subset
  3346.  
  3347.             Since Groups are currently intended to support
  3348.             experimentation, and it is not clear how best to use them,
  3349.             it is appropriate for an implementation not to support
  3350.             Groups.  At this time, a subsetted ST agent may ignore the
  3351.             Group parameter.  It is expected that in the future, when
  3352.             Groups transition from being an experimental concept to an
  3353.             operational one, it may be the case that such subsetting
  3354.             will no longer be acceptable.  At that time, a new
  3355.             subsetting option may be defined.
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363. CIP Working Group                                              [Page 57]
  3364.  
  3365. RFC 1190                Internet Stream Protocol            October 1990
  3366.  
  3367.  
  3368.       3.7.4.        HID Negotiation
  3369.  
  3370.          Each data packet must carry a value to identify the stream to
  3371.          which it belongs, so that forwarding can be performed.
  3372.          Conceptually, this value could be the Name of the stream.  A
  3373.          shorthand identifier is desirable for two reasons.  First,
  3374.          since each data packet must carry this identifier, network
  3375.          bandwidth efficiency suggests that it be as small as
  3376.          possible.  This is particularly important for applications
  3377.          that use small data packets, and that use low bandwidth
  3378.          networks, such as voice across packet radio networks.
  3379.          Second, the operation of mapping this identifier into a data
  3380.          object that contains the forwarding information must be
  3381.          performed at each intermediate ST agent in the stream.  To
  3382.          minimize delay and processing overhead, this operation should
  3383.          be as efficient as possible.  Most likely, this identifier
  3384.          will be used to index into an internal table.  To meet these
  3385.          goals, ST has chosen to use a 16-bit hop-by-hop identifier
  3386.          (HID).  It is large enough to handle the foreseen number of
  3387.          streams during the expected life of the protocol while small
  3388.          enough not to preclude its use as a forwarding table index.
  3389.          Note, however, that HID 0 is reserved for control messages,
  3390.          and that HIDs 1-3 are also reserved for future use.
  3391.  
  3392.          When ST makes use of multicast ability in networks that
  3393.          provide it, a data packet multicast by an ST agent will be
  3394.          received identically by several next-hop ST agents.  In a
  3395.          multicast environment, the HID must be selected either by
  3396.          some network-wide mechanism that selects unique identifiers,
  3397.          or it must be selected by the sender of the CONNECT message.
  3398.          Since we feel any network-wide mechanism is outside the scope
  3399.          of this protocol, we propose that the previous-hop agent
  3400.          select the HID and send it in the CONNECT message (with the
  3401.          HID Field option set, see Section 3.6.1 (page 44)) subject to
  3402.          the approval of the next-hop agents.  We call this "HID
  3403.          negotiation".
  3404.  
  3405.          As an origin ST agent is creating a stream or as an
  3406.          intermediate agent is propagating a CONNECT message, it must
  3407.          make a routing decision to determine which targets will be
  3408.          reached through which next-hop ST agents.  In some cases,
  3409.          several next-hops can be reached through a network that
  3410.          supports multicast delivery.  If so, those next-hops will be
  3411.          made members of a multicast group and data packets will be
  3412.          sent to the group.  Different CONNECT messages are sent to
  3413.          the several next-hops even if the data packets will be sent
  3414.          to the multicast group, because the CONNECT messages contain
  3415.          different TargetLists and are acknowledged and accepted
  3416.          separately.  However, the HID contained by the different
  3417.          CONNECT message must be identical.  The ST agent selects a
  3418.          16-bit quantity to be the HID and inserts it into each
  3419.  
  3420.  
  3421.  
  3422. CIP Working Group                                              [Page 58]
  3423.  
  3424. RFC 1190                Internet Stream Protocol            October 1990
  3425.  
  3426.  
  3427.          CONNECT message that is then sent to the appropriate
  3428.          next-hop.
  3429.  
  3430.          The next-hop agents that receive the CONNECT messages must
  3431.          propagate the CONNECT messages toward the targets, but must
  3432.          also look at the HID and decide whether they can approve it.
  3433.          An ST agent can only receive data packets with a given HID if
  3434.          they belong to a single stream.  If the ST agent already has
  3435.          an established stream that uses the proposed HID, this is a
  3436.          HID collision, and the agent cannot approve the HID for the
  3437.          new stream.  Otherwise the agent can approve the HID.  If it
  3438.          can approve the HID, then it must make note of that HID and
  3439.          it must respond with a HID-APPROVE message (unless it can
  3440.          immediately respond with an ERROR-IN-REQUEST or a REFUSE).
  3441.          If it cannot approve the HID then it must respond with a
  3442.          HID-REJECT message.
  3443.  
  3444.          An agent that sends a CONNECT message with the H bit set
  3445.          awaits its acknowledgment message (which could be a
  3446.          HID-ACCEPT, HID-REJECT, or an ERROR-IN-REQUEST) from the
  3447.          next-hops independently of receiving ACCEPT messages.  If it
  3448.          does not receive an acknowledgment within timeout ToConnect,
  3449.          it will resend the CONNECT.  If each next-hop agent responds
  3450.          with a HID-ACCEPT, this implies that they have each approved
  3451.          of the HID, so it can be used for all subsequent data
  3452.          packets.  If one or more next-hops respond with an
  3453.          HID-REJECT, then the agent that selected the HID must select
  3454.          another HID and send it to each next-hop in a set of
  3455.          HID-CHANGE messages.  The next-hop agents must respond to
  3456.          (and thus acknowledge) these HID-CHANGE messages with either
  3457.          a HID-ACCEPT or a HID-REJECT (or, in the case of an error, an
  3458.          ERROR-IN-REQUEST, or a REFUSE if the next-hop agent wants to
  3459.          abort the HID negotiation process after rejecting NHIDAbort
  3460.          proposed HIDs).  If the agent does not receive such a
  3461.          response within timeout ToHIDChange, it will resend the
  3462.          HID-CHANGE up to NHIDChange times.  If any next-hop agents
  3463.          respond with a REFUSE message that specifies all the targets
  3464.          that were included in the corresponding CONNECT, then that
  3465.          next-hop is removed from the negotiation.  The overall
  3466.          negotiation is complete only when the agent receives a
  3467.          HID-ACCEPT to the same proposed HID from all the next-hops
  3468.          that do not respond with an ERROR-IN-REQUEST or a REFUSE.
  3469.  
  3470.          This negotiation may continue an indeterminate length of
  3471.          time.  In fact, the CONNECT messages could propagate to the
  3472.          targets and their ACCEPT messages may potentially propagate
  3473.          back to the origin before the negotiation is complete.  If
  3474.          this were permitted, the origin would not be aware of the
  3475.          incomplete negotiation and could begin to send data packets.
  3476.          Then the agent that is attempting to select a HID would have
  3477.          to discard any data rather than sending it to the next-hops
  3478.          since it might not have a valid HID to send with the data.
  3479.  
  3480.  
  3481. CIP Working Group                                              [Page 59]
  3482.  
  3483. RFC 1190                Internet Stream Protocol            October 1990
  3484.  
  3485.  
  3486.          To prevent this situation, an ACCEPT should not be propagated
  3487.          back to the previous-hop until the HID negotiation with the
  3488.          next-hops has been completed.
  3489.  
  3490.          Although it is possible that the negotiation extends for an
  3491.          arbitrary length of time, we consider this to be very
  3492.          unlikely.  Since the HID is only relevant across a single
  3493.          hop, we can estimate the probability that a randomly selected
  3494.          HID will conflict with the HID of an established stream.
  3495.          Consider a stream in which the hop from an ST agent to ten
  3496.          next-hop agents is through the multicast facility of a given
  3497.          network.  Assume also that each of the next-hop agents
  3498.          participates in 1000 other streams, and that each has been
  3499.          created with a different HID.  A randomly selected 16-bit HID
  3500.          will have a probability of greater than 85.9% of succeeding
  3501.          on the first try, 98.1% of succeeding on the second, and
  3502.          99.8% of succeeding on the third.  We therefore suggest that
  3503.          a 16-bit HID space is sufficiently large to support ST until
  3504.          better multicast HID selection procedures, e.g., HID servers,
  3505.          can be deployed.
  3506.  
  3507.          An obvious way to select the HID is for the ST agents to use
  3508.          a random number generator as suggested above.  An alternate
  3509.          mechanism is for the intermediate agents to use the HID
  3510.          contained in the incoming CONNECT message for all the
  3511.          outgoing CONNECT messages, and generate a random number only
  3512.          as a second choice.  In this case, the origin ST agent would
  3513.  
  3514.  
  3515.           Agent 3                      Agent B
  3516.  
  3517.       1.     +-> CONNECT B -------------->+
  3518.                  <RVLId=0><SVLId=32>      |
  3519.                  <Ref=315><HID=5990>      V
  3520.       2.             (Check HID Table, 5990 busy, 6000-11 unused)
  3521.                                           V
  3522.       3.     +<- HID-REJECT --------------+
  3523.              |   <RVLId=32><SVLId=45>
  3524.              |   <Ref=315><HID=5990>
  3525.              V   <FreeHIDs=5990:0000FFF0>
  3526.       4.     +-> HID-CHANGE  ------------>+
  3527.                  <RVLId=45><SVLId=32>     |
  3528.                  <Ref=320><HID=6000>      V
  3529.       5.             (Check HID Table, 6000 (still) available)
  3530.                                           V
  3531.       6.     +<- HID-APPROVE -------------+
  3532.                  <RVLId=32><SVLId=45>
  3533.                  <Ref=320><HID=6000>
  3534.  
  3535.       7.     (Both parties have now agreed to use HID 6000)
  3536.  
  3537.          Figure 18.  Typical HID Negotiation (No Multicasting)
  3538.  
  3539.  
  3540. CIP Working Group                                              [Page 60]
  3541.  
  3542. RFC 1190                Internet Stream Protocol            October 1990
  3543.  
  3544.  
  3545.          be responsible for generating the HID, and the same HID could
  3546.          be propagated for the entire stream.  This approach has the
  3547.          marginal advantage that the HID could be created by a higher
  3548.          layer protocol that might have global knowledge and could
  3549.          select small, globally unique HIDs for all the streams.  While
  3550.          this is possible, we leave it for further study.
  3551.  
  3552.  
  3553.        Agent 2                           Agent C        Agent D
  3554.  
  3555.    1.    +->+-> CONNECT ---------------------------------->+
  3556.             |   <RVLId=0><SVLId=26>                        |
  3557.             |   <Ref=250><HID=4824>                        |
  3558.             V   <Mcast=224.1.18.216,01:00:5E:01:12:d8>     |
  3559.    2.       +-> CONNECT --------------------+              |
  3560.                 <RVLId=0><SVLId=25>         |              |
  3561.                 <Ref=252><HID=4824>         |              V
  3562.    3.           <Mcast=224.1.18.216,        V      (Check HID Table)
  3563.    4.            01:00:5E:01:12:d8> (Check HID Table)  (4824 ok)
  3564.                                         (4824 busy)  (4800-4809 ok)
  3565.                                       (4800-4820 ok)       |
  3566.                                             V              |
  3567.    5.       +<- HID-REJECT -----------------+              |
  3568.             |   <RVLId=25><SVLId=54>                       |
  3569.             |   <Ref=252><HID=4824>                        |
  3570.             V   <FreeHIDs=4824:FFFFF800>                   V
  3571.    6.    +<-+<- HID-APPROVE -------------------------------+
  3572.          |      <RVLId=26><SVLId=64>
  3573.          |      <Ref=250><HID=4824>
  3574.          V      <FreeHIDs=4824:FFC00080>
  3575.          (find common HID 4800)
  3576.          V
  3577.    7.    +->+-> HID-CHANGE ------------------------------->+
  3578.             |   <RVLId=64><SVLId=26>                       |
  3579.             V   <Ref=253><HID=4800>                        |
  3580.    8.       +-> HID-CHANGE ---------------->+              |
  3581.                 <RVLId=54><SVLId=25>        |              V
  3582.    9.           <Ref=254><HID=4800>         V      (Check HID Table)
  3583.    10.                              (Check HID Table)   (4800 ok)
  3584.                                       (4800-4820 ok) (4800-4809 ok)
  3585.                                             V              |
  3586.    11.      +<- HID-APPROVE ----------------+              |
  3587.             |   <RVLId=25><SVLId=54>                       |
  3588.             |   <Ref=254><HID=4800>                        |
  3589.             V   <FreeHIDs=4800:7FFFF800>                   V
  3590.    12.   +<-+<- HID-APPROVE -------------------------------+
  3591.          |      <RVLId=26><SVLId=64>
  3592.          |      <Ref=253><HID=4800>
  3593.          V      <FreeHIDs=4800:7FC00080>
  3594.    13.   (all parties have now agreed to use HID 4800)
  3595.  
  3596.                  Figure 19.  Multicast HID Negotiation
  3597.  
  3598.  
  3599. CIP Working Group                                              [Page 61]
  3600.  
  3601. RFC 1190                Internet Stream Protocol            October 1990
  3602.  
  3603.  
  3604.       Agent 2                  Agent C        Agent D     Agent 3
  3605.  
  3606.   1.   +----> CONNECT B ------------------------------------>+
  3607.               <RVLId=0><SVLId=24>                            V
  3608.   2.          <Ref=260><HID=4800>                    (Check HID Table)
  3609.               <Mcast=224.1.18.216,             (4800 busy, 4801-4810 ok)
  3610.                01:00:5E:01:12:d8>                            V
  3611.   3.   +<---- HID-REJECT <-----------------------------------+
  3612.        |      <RVLId=24><SVLId=33>
  3613.        |      <Ref=260><HID=4824>
  3614.        V      <FreeHIDs=4824:7FE00000>
  3615.   4.   (find common HID 4810)
  3616.        V
  3617.   5.   +->+-> HID-CHANGE ----------------------------------->+
  3618.           |   <RVLId=33><SVLId=24>                           |
  3619.           V   <Ref=262><HID=4810>                            |
  3620.   6.      +-> HID-CHANGE-ADD ------------------->+           |
  3621.           |   <RVLId=64><SVLId=26>               |           V
  3622.   7.      V   <Ref=263><HID=4810>                |   (Check HID Table)
  3623.   8.      +-> HID-CHANGE-ADD ---->+              |     (4801-4815 ok)
  3624.               <RVLId=54><SVLId=25>|              V           |
  3625.   9.          <Ref=265><HID=4810> V      (Check HID Table)   |
  3626.   10.                     (Check HID Table) (4810 busy)      |
  3627.                             (4801-4812 ok) (4801-4807 ok)    |
  3628.                                   V              |           |
  3629.   11.     +<- HID-APPROVE <-------+              |           |
  3630.           |   <RVLId=25><SVLId=54>               |           |
  3631.           |   <Ref=265><HID=4810>                |           |
  3632.           V   <FreeHIDs=4810:7FD8000>            V           |
  3633.   12.     +<- HID-REJECT <-----------------------+           |
  3634.           |   <RVLId=26><SVLId=64>                           |
  3635.           |   <Ref=263><HID=4810>                            |
  3636.           V   <FreeHIDs=4810:7F000000>                       V
  3637.   13.  +<-+<- HID-APPROVE <----------------------------------+
  3638.        |      <RVLId=24><SVLId=33>
  3639.        |      <Ref=262><HID=4810>
  3640.        V      <FreeHIDs=4810:7FDF0000>
  3641.   14.  +->+-> HID-CHANGE-DELETE ---------------------------->+
  3642.        |  |   <RVLId=33><SVLId=24>                           |
  3643.        |  V   <Ref=266><HID=4810>                            |
  3644.   15.  |  +-> HID-CHANGE-DELETE ->+                          |
  3645.        |      <RVLId=54><SVLId=25>|                          |
  3646.        |      <Ref=268><HID=4810> V                          |
  3647.   16.  |  +<- HID-APPROVE --------+                          |
  3648.        |      <RVLId=25><SVLId=54>                           |
  3649.        |      <Ref=268><HID=0>                               V
  3650.   17.  |  +<- HID-APPROVE -----------------------------------+
  3651.        |      <RVLId=24><SVLId=33>
  3652.        V      <Ref=266><HID=0>
  3653.   18.  (find common HID 4801)
  3654.  
  3655.                 Figure 20.  Multicast HID Re-Negotiation (part 1)
  3656.  
  3657.  
  3658. CIP Working Group                                              [Page 62]
  3659.  
  3660. RFC 1190                Internet Stream Protocol            October 1990
  3661.  
  3662.  
  3663.       Agent 2                  Agent C        Agent D     Agent 3
  3664.  
  3665.   18.  (find common HID 4801)
  3666.        V
  3667.   19.  +->+-> HID-CHANGE ----------------------------------->+
  3668.           |   <RVLId=33><SVLId=24>                           |
  3669.           V   <Ref=270><HID=4801>                            |
  3670.   20.     +-> HID-CHANGE-ADD ------------------->+           |
  3671.           |   <RVLId=64><SVLId=26>               |           V
  3672.   21.     V   <Ref=273><HID=4801>                |   (Check HID Table)
  3673.   22.     +-> HID-CHANGE-ADD ---->+              |     (4801-4815 ok)
  3674.               <RVLId=54><SVLId=25>|              V           |
  3675.   23.         <Ref=274><HID=4801> V      (Check HID Table)   |
  3676.   24.                     (Check HID Table)(4801-4807 ok)    |
  3677.                             (4801-4812 ok)       |           |
  3678.                                   V              |           |
  3679.   25.     +<- HID-APPROVE <-------+              |           |
  3680.           |   <RVLId=25><SVLId=54>               |           |
  3681.           |   <Ref=274><HID=4801>                |           |
  3682.           V   <FreeHIDs=4801:3FF80000>           V           |
  3683.   26.     +<- HID-APPROVE <----------------------+           |
  3684.           |   <RVLId=26><SVLId=64>                           |
  3685.           |   <Ref=273><HID=4801>                            |
  3686.           V   <FreeHIDs=4801:3F000000>                       V
  3687.   27.  +<-+<- HID-APPROVE <----------------------------------+
  3688.        |      <RVLId=24><SVLId=33>
  3689.        |      <Ref=270><HID=4801>
  3690.        V      <FreeHIDs=4801:3FFF0000>
  3691.   28.  (switch data stream to HID 4801, drop 4800)
  3692.        V
  3693.   29.  +->+-> HID-CHANGE-DELETE ---------------->+
  3694.           |   <RVLId=64><SVLId=26>               |
  3695.           V   <Ref=275><HID=4800>                |
  3696.   30.     +-> HID-CHANGE-DELETE ->+              |
  3697.               <RVLId=54><SVLId=25>|              |
  3698.               <Ref=277><HID=4800> V              |
  3699.   31.  +<-+<- HID-APPROVE --------+              |
  3700.        |      <RVLId=25><SVLId=54>               |
  3701.        V      <Ref=277><HID=0>                   V
  3702.   32.  +<-+<- HID-APPROVE -----------------------+
  3703.        |      <RVLId=26><SVLId=64>
  3704.        V      <Ref=275><HID=0>
  3705.        (all parties have now agreed to use HID 4801)
  3706.  
  3707.                 Figure 20.  Multicast HID Re-Negotiation (part 2)
  3708.  
  3709.  
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715.  
  3716.  
  3717. CIP Working Group                                              [Page 63]
  3718.  
  3719. RFC 1190                Internet Stream Protocol            October 1990
  3720.  
  3721.  
  3722.          3.7.4.1.         Subset
  3723.  
  3724.             The above mechanism can operate exactly as described even if
  3725.             the ST agents do not all use the entire 16 bits of the HID.
  3726.             A low capacity ST agent that cannot support a large number
  3727.             of simultaneous streams may use only some of the bits in the
  3728.             HID, say for example the low order byte.  This may allow
  3729.             this disadvantaged agent to use smaller internal data
  3730.             structures at the expense of causing HID collisions to occur
  3731.             more often.  However, neither the disadvantaged agent's
  3732.             previous-hop nor its next-hops need be aware of its
  3733.             limitations.  In the HID negotiation, the negotiators still
  3734.             exchange a 16-bit quantity.
  3735.  
  3736.  
  3737.       3.7.5.        IP Encapsulation of ST
  3738.  
  3739.          ST packets may be encapsulated in IP to allow them to pass
  3740.          through routers that don't support the ST Protocol.  Of course,
  3741.          ST resource management is precluded over such a path, and
  3742.          packet overhead is increased by encapsulation, but if the
  3743.          performance is reasonably predictable this may be better than
  3744.          not communicating at all.  IP encapsulation may also be
  3745.          required either for enhanced security (see Section 3.7.8 (page
  3746.          67)) or for user-space implementations of ST in hosts that
  3747.          don't allow demultiplexing on the IP Version Number field (see
  3748.          Section 4 (page 75)), but do allow access to raw IP packets.
  3749.  
  3750.          IP-encapsulated ST packets begin with a normal IP header.  Most
  3751.          fields of the IP header should be filled in according to the
  3752.          same rules that apply to any other IP packet.  Three fields of
  3753.          special interest are:
  3754.  
  3755.           o  Protocol is 5 to indicate an ST packet is enclosed, as
  3756.              opposed to TCP or UDP, for example.  The assignment of
  3757.              protocol 5 to ST is an arranged coincidence with the
  3758.              assignment of IP Version 5 to ST [18].
  3759.  
  3760.           o  Destination Address is that of the next-hop ST agent.
  3761.              This may or may not be the target of the ST stream.
  3762.              There may be an intermediate ST agent to which the
  3763.              packet should be routed to take advantage of service
  3764.              guarantees on the path past that agent.  Such an
  3765.              intermediate agent would not be on a directly-connected
  3766.              network (or else IP encapsulation wouldn't be needed),
  3767.              so it would probably not be listed in the normal routing
  3768.              table.  Additional routing mechanisms, not defined here,
  3769.              will be required to learn about such agents.
  3770.  
  3771.           o  Type-of-Service may be set to an appropriate value for
  3772.              the service being requested (usually low delay, high
  3773.  
  3774.  
  3775.  
  3776. CIP Working Group                                              [Page 64]
  3777.  
  3778. RFC 1190                Internet Stream Protocol            October 1990
  3779.  
  3780.  
  3781.          throughput, normal reliability).  This feature is not
  3782.          implemented uniformly in the Internet, so its use can't be
  3783.          precisely defined here.
  3784.  
  3785.          Since there can be no guarantees made about performance across
  3786.          a normal IP network, the ST agent that will encapsulate should
  3787.          modify the Desired FlowSpec parameters when the stream is being
  3788.          established to indicate that performance is not guaranteed.  In
  3789.          particular, Reliability should be set to the minimum value
  3790.          (1/256), and suitably large values should be added to the
  3791.          Accumulated Mean Delay and Accumulated Delay Variance to
  3792.          reflect the possibility that packets may be delayed up to the
  3793.          point of discard when there is network congestion.  A suitably
  3794.          large value is 255 seconds, the maximum packet lifetime as
  3795.          defined by the IP Time-to-Live field.
  3796.  
  3797.          IP encapsulation adds little difficulty for the ST agent that
  3798.          receives the packet.  The IP header is simply removed, then the
  3799.          ST header is processed as usual.
  3800.  
  3801.          The more difficult part is during setup, when the ST agent must
  3802.          decide whether or not to encapsulate.  If the next-hop ST agent
  3803.          is on a remote network and the route to that network is through
  3804.          a router that supports IP but not ST, then encapsulation is
  3805.          required.  As mentioned in Section 3.8.1 (page 69), routing
  3806.          table entries must be expanded to indicate whether the router
  3807.          supports ST.
  3808.  
  3809.          On forwarding, the (mostly constant) IP Header must be inserted
  3810.          and the IP checksum appropriately updated.
  3811.  
  3812.          On a directly connected network, though, one might want to
  3813.          encapsulate only when sending to a particular destination host
  3814.          that does not allow demultiplexing on the IP Version Number
  3815.          field.  This requires the routing table to include host-route
  3816.          as well as network-route entries.  Host-route entries might
  3817.          require static definition if the hosts do not participate in
  3818.          the routing protocols.  If packet size is not a critical
  3819.          performance factor, one solution is always to encapsulate on
  3820.          the directly connected network whenever some hosts require
  3821.          encapsulation.  Those that don't require the encapsulation
  3822.          should be able to remove it upon reception.
  3823.  
  3824.  
  3825.          3.7.5.1.         IP Multicasting
  3826.  
  3827.             If an ST agent must use IP encapsulation to reach multiple
  3828.             next-hops toward different targets, then either the packet
  3829.             must be replicated for transmission to each next-hop, or IP
  3830.             multicasting [6] may be used if it is implemented in the
  3831.             next-hop ST agents and in the intervening IP routers.
  3832.  
  3833.  
  3834.  
  3835. CIP Working Group                                              [Page 65]
  3836.  
  3837. RFC 1190                Internet Stream Protocol            October 1990
  3838.  
  3839.  
  3840.             This is analogous to using network-level service to
  3841.             multicast to several next-hop agents on a directly connected
  3842.             network.
  3843.  
  3844.             When the stream is established, the collection of next-hop
  3845.             ST agents must be set up as an IP multicast group.  It may
  3846.             be necessary for the ST agent that wishes to send the IP
  3847.             multicast to allocate a transient multicast group address
  3848.             and then tell the next-hop agents to join the group.  Use of
  3849.             the MulticastAddress parameter (see Section 4.2.2.7 (page
  3850.             86)) provides one way that the information may be
  3851.             communicated, but other techniques are possible.  The
  3852.             multicast group address in inserted in the Destination
  3853.             Address field of the IP encapsulation when data packets are
  3854.             transmitted.
  3855.  
  3856.             A block of transient IP multicast addresses, 224.1.0.0 -
  3857.             224.1.255.255, has been allocated for this purpose.  There
  3858.             are 2^16 addresses in this block, allowing a direct mapping
  3859.             with 16-bit HIDs, if appropriate.  The mechanisms for
  3860.             allocating these addresses are not defined here.
  3861.  
  3862.             In addition, two permanent IP multicast addresses have been
  3863.             assigned to facilitate experimentation with exchange of
  3864.             routing or other information among ST agents.  Those
  3865.             addresses are:
  3866.  
  3867.                224.0.0.7    All ST routers
  3868.                224.0.0.8    All ST hosts
  3869.  
  3870.             An ST router is an ST agent that can pass traffic between
  3871.             attached networks;  an ST host is an ST agent that is
  3872.             connected to a single network or is not permitted to pass
  3873.             traffic between attached networks.  Note that the range of
  3874.             these multicasts is normally just the attached local
  3875.             network, limited by setting the IP time-to-live field to 1
  3876.             (see [6]).
  3877.  
  3878.  
  3879.       3.7.6.        Retransmission
  3880.  
  3881.          The ST Control Message Protocol is made reliable through use of
  3882.          retransmission when an expected acknowledgment is not received
  3883.          in a timely manner.  The problem of when to send a
  3884.          retransmission has been studied for protocols such as TCP [2]
  3885.          [10] [11].  The problem should be simpler for ST since control
  3886.          messages usually only have to travel a single hop and they do
  3887.          not contain very much data.  However, the algorithms developed
  3888.          for TCP are sufficiently simple that their use is recommended
  3889.          for ST as well;  see [2].  An implementor might, for example,
  3890.          choose to keep statistics separately for each
  3891.  
  3892.  
  3893.  
  3894. CIP Working Group                                              [Page 66]
  3895.  
  3896. RFC 1190                Internet Stream Protocol            October 1990
  3897.  
  3898.  
  3899.          neighboring ST agent, or combined into a single statistic for
  3900.          an attached network.
  3901.  
  3902.          Estimating the packet round-trip time (RTT) is a key function
  3903.          in reliable transport protocols such as TCP.  Estimation must
  3904.          be dynamic, since congestion and resource contention result in
  3905.          varying delays.  If RTT estimates are too low, packets will be
  3906.          retransmitted too frequently, wasting network capacity.  If RTT
  3907.          estimates are too high, retransmissions will be delayed
  3908.          reducing network throughput when transmission errors occur.
  3909.          Article [11] identifies problems that arise when RTT estimates
  3910.          are poor, outlines how RTT is used and how retransmission
  3911.          timeouts (RTO) are estimated, and surveys several ways that RTT
  3912.          and RTO estimates can be improved.
  3913.  
  3914.          Note the HELLO/ACK mechanism described in Section 3.7.1.2 (page
  3915.          49) can give an estimate of the RTT and its variance.  These
  3916.          estimates are also important for use with the delay and delay
  3917.          variance entries in the FlowSpec.
  3918.  
  3919.  
  3920.       3.7.7.        Routing
  3921.  
  3922.          ST requires access to routing information in order to select a
  3923.          path from an origin to the destination(s).  However, routing is
  3924.          considered to be a separate issue and neither the routing
  3925.          algorithm nor its implementation is specified here.  ST should
  3926.          operate equally well with any reasonable routing algorithm.
  3927.  
  3928.          While ST may be capable of using several types of information
  3929.          that are not currently available, the minimal information
  3930.          required is that provided by IP, namely the ability to find an
  3931.          interface and next hop router for a specified IP destination
  3932.          address and Type of Service.  Methods to make more information
  3933.          available and to use it are left for further study.  For
  3934.          initial ST implementations, any routing information that is
  3935.          required but not automatically provided will be assumed to be
  3936.          manually configured into the ST agents.
  3937.  
  3938.  
  3939.       3.7.8.        Security
  3940.  
  3941.          The ST Protocol by itself does not provide security services.
  3942.          It is more vulnerable to misdelivery and denial of service than
  3943.          IP since the ST Header only carries a 16-bit HID for
  3944.          identification purposes.  Any information, such as source and
  3945.          destination addresses, which a higher-layer protocol might use
  3946.          to detect misdelivery are the responsibility of either the
  3947.          application or higher-layer protocol.
  3948.  
  3949.  
  3950.  
  3951.  
  3952.  
  3953. CIP Working Group                                              [Page 67]
  3954.  
  3955. RFC 1190                Internet Stream Protocol            October 1990
  3956.  
  3957.  
  3958.          ST is less prone to traffic analysis than IP since the only
  3959.          identifying information contained in the ST Header is a hop-
  3960.          by-hop identifier (HID).  However, the use of a HID is also
  3961.          what makes ST more vulnerable to denial of service since an ST
  3962.          agent has no reliable way to detect when bogus traffic is
  3963.          injected into, and thus consumes bandwidth from, a user's
  3964.          stream.  Detection can be enhanced through use of per-interface
  3965.          forwarding tables and verification of local network source and
  3966.          destination addresses.
  3967.  
  3968.          We envision that applications that require security services
  3969.          will use facilities, such as the Secure Digital Networking
  3970.          System (SDNS) layer 3 Security Protocol (SP3/D) [19] [20].  In
  3971.          such an environment, ST PDUs would first be encapsulated in an
  3972.          IP Header, using IP Protocol 5 (ST) as described in Section
  3973.          3.7.5 (page 64).  These IP datagrams would then be secured
  3974.          using SP3/D, which results in another IP Protocol 5 PDU that
  3975.          can be passed between ST agents.
  3976.  
  3977.          This memo does not specify how an application invokes security
  3978.          services.
  3979.  
  3980.  
  3981.    3.8.       ST Service Interfaces
  3982.  
  3983.       ST has several interfaces to other modules in a communication
  3984.       system.  ST provides its services to applications or transport-
  3985.       level protocols through its "upper" interface (or SAP).  ST in
  3986.       turn uses the services provided by network layers, management
  3987.       functions (e.g., address translation and routing), and IP.  The
  3988.       interfaces to these modules are described in this section in the
  3989.       form of subroutine calls.  Note that this does not mean that an
  3990.       implementation must actually be implemented as subroutines, but is
  3991.       instead intended to identify the information to be passed between
  3992.       the modules.
  3993.  
  3994.       In this style of outlining the module interfaces, the information
  3995.       passed into a module is shown as arguments to the subroutine call.
  3996.       Return information and/or success/failure indications are listed
  3997.       after the arrow ("->") that follows the subroutine call.  In
  3998.       several cases, a list of values must either be passed to or
  3999.       returned from a module interface.  Examples include a set of
  4000.       target addresses, or the mappings from a target list to a set of
  4001.       next hop addresses that span the route to the originally listed
  4002.       targets.  When such a list is appropriate, the values repeated for
  4003.       each list element are bracketed and an asterisk is added to
  4004.       indicate that zero, one, or many list elements can be passed
  4005.       across the interface (e.g., "<target>*" means zero, one, or more
  4006.       targets).
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012. CIP Working Group                                              [Page 68]
  4013.  
  4014. RFC 1190                Internet Stream Protocol            October 1990
  4015.  
  4016.  
  4017.       3.8.1.        Access to Routing Information
  4018.  
  4019.          The design of routing functions that can support a variety of
  4020.          resource management algorithms is difficult.  In this section
  4021.          we suggest a set of preliminary interfaces suitable for use in
  4022.          initial experiments.  We expect that these interfaces will
  4023.          change as we gain more insight into how routing, resource
  4024.          allocation, and decision making elements are best divided.
  4025.  
  4026.          Routing functions are required to identify the set of potential
  4027.          routes to each destination site.  The routing functions should
  4028.          make some effort to identify routes that are currently
  4029.          available and that meet the resource requirements. However,
  4030.          these properties need not be confirmed until the actual
  4031.          resource allocation and connection setup propagation are
  4032.          performed.
  4033.  
  4034.          The minimum capability required of the interface to routing is
  4035.          to identify the network interface and next hop toward a given
  4036.          target.  We expect that the traditional routing table will need
  4037.          to be extended to include information that ST requires such as
  4038.          whether or not a next hop supports ST, and, if so, whether or
  4039.          not IP encapsulation (see Section 3.7.5 (page 64)) is required
  4040.          to communicate with it.  In particular, host entries will be
  4041.          required for hosts that can only support ST through
  4042.          encapsulation because the IP software either is not capable of
  4043.          demultiplexing datagrams based on the IP Version Number field,
  4044.          or the application interface only supports access to raw IP
  4045.          datagrams.  This interface is illustrated by the function:
  4046.  
  4047.             FindNextHop( destination, TOS )
  4048.                -> result, < interface, next hop, ST-capable,
  4049.                   MustEncapsulate >*
  4050.  
  4051.          However, the resource management functions can best tradeoff
  4052.          among alternative routes when presented with a matrix of all
  4053.          potential routes.  The matrix entry corresponding to a
  4054.          destination and a next hop would contain the estimated
  4055.          characteristics of the corresponding pathway.  Using this
  4056.          representation, the resource management functions can quickly
  4057.          determine the next hop sets that cover the entire destination
  4058.          list, and compare the various parameters of the tradeoff
  4059.          between the guarantees that can be promised by each set.  An
  4060.          interface that returns a compressed matrix, listing the
  4061.          suitable routes by next hop and the destinations reachable
  4062.          through each, is illustrated by the function:
  4063.  
  4064.             FindNextHops( < destination >*, TOS )
  4065.                -> result, < destination, < interface, next hop,
  4066.                   ST-capable, MustEncapsulate >* >*
  4067.  
  4068.  
  4069.  
  4070.  
  4071. CIP Working Group                                              [Page 69]
  4072.  
  4073. RFC 1190                Internet Stream Protocol            October 1990
  4074.  
  4075.  
  4076.          We hope that routing protocols will be available that propagate
  4077.          additional metrics of bandwidth, delay, bit/burst error rate,
  4078.          and whether a router has ST capability.  However, propagating
  4079.          this information in a timely fashion is still a key research
  4080.          issue.
  4081.  
  4082.  
  4083.       3.8.2.        Access to Network Layer Resource Reservation
  4084.  
  4085.          The resources required to reach the next-hops associated with
  4086.          the chosen routes must be allocated.  These allocations will
  4087.          generally be requested and released incrementally.  As the
  4088.          next-hop elements for the routes are chosen, the network
  4089.          resources between the current node and the next-hops must be
  4090.          allocated.  Since the resources are not guaranteed to be
  4091.          available -- a network or node further down the path might have
  4092.          failed or needed resources might have been allocated since the
  4093.          routing decisions where made -- some of these allocations may
  4094.          have to be released, another route selected, and a new
  4095.          allocation requested.
  4096.  
  4097.          There are four basic interface functions needed for the network
  4098.          resource allocator.  The first checks to see if the required
  4099.          resources are available, returning the likelihood that an
  4100.          ensuing resource allocation will succeed.  A probability of 0%
  4101.          indicates the resources are not available or cannot promise to
  4102.          meet the required guarantees.  Low probabilities indicate that
  4103.          most of the resource has been allocated or that there is a lot
  4104.          of contention for using the resource.  This call does not
  4105.          actually reserve the resources:
  4106.  
  4107.             ResourceProbe( requirements )
  4108.                -> likelihood
  4109.  
  4110.          Another call reserves the resources:
  4111.  
  4112.             ResourceReserve( requirements )
  4113.                -> result, reservation_id
  4114.  
  4115.          The third call adjusts the resource guarantees:
  4116.  
  4117.             ResourceAdjust( reservation_id, new requirements )
  4118.                -> result
  4119.  
  4120.          The final call allows the resources to be released:
  4121.  
  4122.             ResourceRelease( reservation_id )
  4123.                -> result
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130. CIP Working Group                                              [Page 70]
  4131.  
  4132. RFC 1190                Internet Stream Protocol            October 1990
  4133.  
  4134.  
  4135.       3.8.3.        Network Layer Services Utilized
  4136.  
  4137.          ST requires access to the usual network layer functions to send
  4138.          and receive packets and to be informed of network status
  4139.          information.  In addition, it requires functions to enable and
  4140.          disable reception of multicast packets.  Such functions might
  4141.          be defined as:
  4142.  
  4143.             JoinLocalGroup( network level group-address )
  4144.                -> result, multicast_id
  4145.  
  4146.             LeaveLocalGroup( network level group-address )
  4147.                -> result
  4148.  
  4149.             RecvNet( SAP )
  4150.                -> result, src, dst, len, BufPTR )
  4151.  
  4152.             SendNet( src, dst, SAP, len, BufPTR )
  4153.                -> result
  4154.  
  4155.             GetNotification( SAP )
  4156.                -> result, infop
  4157.  
  4158.  
  4159.       3.8.4.        IP Services Utilized
  4160.  
  4161.          Since ST packets might be sent or received using IP
  4162.          encapsulation, IP level routines to join and leave multicast
  4163.          groups are required in addition to the usual services defined
  4164.          in the IP specification (see the IP specification [2] [15] and
  4165.          the IP multicast specification [6] for details).
  4166.  
  4167.             JoinHostGroup( IP level group-address, interface )
  4168.                -> result, multicast_id
  4169.  
  4170.             LeaveHostGroup( IP level group-address, interface )
  4171.                -> result
  4172.  
  4173.             GET_SRCADDR( remote IP addr, TOS )
  4174.                -> local IP address
  4175.  
  4176.             SEND( src, dst, prot, TOS, TTL, BufPTR, len, Id, DF,
  4177.                   opt )
  4178.                -> result
  4179.  
  4180.             RECV( BufPTR, prot )
  4181.                -> result, src, dst, SpecDest, TOS, len, opt
  4182.  
  4183.             GET_MAXSIZES( local, remote, TOS )
  4184.                -> MMS_R, MMS_S
  4185.  
  4186.  
  4187.  
  4188.  
  4189. CIP Working Group                                              [Page 71]
  4190.  
  4191. RFC 1190                Internet Stream Protocol            October 1990
  4192.  
  4193.  
  4194.             ADVISE_DELIVPROB( problem, local, remote, TOS )
  4195.                -> result
  4196.  
  4197.             SEND_ICMP( src, dst, TOS, TTL, BufPTR, len, Id, DF, opt )
  4198.                -> result
  4199.  
  4200.             RECV_ICMP( BufPTR )
  4201.                -> result, src, dst, len, opt
  4202.  
  4203.  
  4204.       3.8.5.        ST Layer Services Provided
  4205.  
  4206.          Interface to the ST layer services may be modeled using a set
  4207.          of subroutine calls (but need not be implemented as such).
  4208.          When the protocol is implemented as part of an operating
  4209.          system, these subroutines may be used directly by a higher
  4210.          level protocol processing layer.
  4211.  
  4212.          These subroutines might also be provided through system service
  4213.          calls to provide a raw interface for use by an application.
  4214.          Often, this will require further adaptation to conform with the
  4215.          idiom of the particular operating system.  For example, 4.3 BSD
  4216.          UNIX (TM) provides sockets, ioctls and signals for network
  4217.          programming.
  4218.  
  4219.          open( connect/listen, SAPBytes, local SAP, local host,
  4220.                account, authentication info, < foreign host,
  4221.                SAPBytes, foreign SAP, options >*, flow spec,
  4222.                precedence, group name, optional parameters )
  4223.              -> result, id, stream name, < foreign host,
  4224.                foreign SAPBytes, foreign SAP, result, flow spec,
  4225.                rname, optional parameters >*
  4226.  
  4227.          Note that an open by a target in "listen mode" may cause ST to
  4228.          create a state block for the stream to facilitate rendezvous.
  4229.  
  4230.          add( id, SAPBytes, local SAP, local host, < foreign host,
  4231.               SAPBytes, foreign SAP, options >*, flow spec,
  4232.               precedence, group name, optional parameters )
  4233.             -> result, < foreign host, foreign SAPBytes,
  4234.                foreign SAP, result,
  4235.                flow spec, rname, optional parameters >*
  4236.  
  4237.          send( id, buffer address, byte count, priority )
  4238.             -> result, next send time, burst send time
  4239.  
  4240.          recv( id, buffer address, max byte count )
  4241.             -> result, byte count
  4242.  
  4243.          recvsignal( id )
  4244.             -> result, signal, info
  4245.  
  4246.  
  4247.  
  4248. CIP Working Group                                              [Page 72]
  4249.  
  4250. RFC 1190                Internet Stream Protocol            October 1990
  4251.  
  4252.  
  4253.          receivecontrol( id )
  4254.             -> result, id, stream name, < foreign host,
  4255.                foreign SAPBytes, foreign SAP, result, flow spec,
  4256.                rname, optional parameters >*
  4257.  
  4258.          sendcontrol( id, flow spec, precedence, options,
  4259.                < foreign host, SAPBytes, foreign SAP, options >*)
  4260.             -> result, < foreign host, foreign SAPBytes,
  4261.                foreign SAP, result, flow spec, rname,
  4262.                optional parameters >*
  4263.  
  4264.          change( id, flow spec, precedence, options,
  4265.                < foreign host, SAPBytes, foreign SAP, options >*)
  4266.             -> result, < foreign host, foreign SAPBytes,
  4267.                foreign SAP, result, flow spec, rname,
  4268.                optional parameters >*
  4269.  
  4270.          close( id, < foreign host, SAPBytes, foreign SAP >*,
  4271.                optional parameters )
  4272.             -> result
  4273.  
  4274.          status( id/stream name/group name )
  4275.             -> result, account, group name, protocol,
  4276.                < stream name, < foreign host, SAPbytes,
  4277.                foreign SAP, state, options, flow spec,
  4278.                routing info, rname >*, precedence, options >*
  4279.  
  4280.          creategroup( members* )
  4281.             -> result, group name
  4282.  
  4283.          deletegroup( group name, members* )
  4284.             -> result
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.  
  4294.  
  4295.  
  4296.  
  4297.  
  4298.  
  4299.  
  4300.  
  4301.  
  4302.  
  4303.  
  4304.  
  4305.  
  4306.  
  4307. CIP Working Group                                              [Page 73]
  4308.  
  4309. RFC 1190                Internet Stream Protocol            October 1990
  4310.  
  4311.  
  4312.                       [This page intentionally left blank.]
  4313.  
  4314.  
  4315.  
  4316.  
  4317.  
  4318.  
  4319.  
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.  
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366. CIP Working Group                                              [Page 74]
  4367.  
  4368. RFC 1190                Internet Stream Protocol            October 1990
  4369.  
  4370.  
  4371. 4.      ST Protocol Data Unit Descriptions
  4372.  
  4373.    The ST PDUs sent between ST agents consist of an ST Header
  4374.    ncapsulating either a higher layer PDU or an ST Control Message.
  4375.    Since ST operates as an extension of IP, the packet arrives at the
  4376.    same network service access point that IP uses to receive IP
  4377.    datagrams, e.g., ST would use the same ethertype (0x800) as does IP.
  4378.    The two types of packets are distinguished by the IP Version Number
  4379.    field (the first four bits of the packet);  IP currently uses a value
  4380.    of 4, while ST has been assigned the value 5 [18].  There is no
  4381.    requirement for compatibility between IP and ST packet headers beyond
  4382.    the first four bits.
  4383.  
  4384.    The ST Header also includes an ST Version Number, a total length
  4385.    field, a header checksum, and a HID, as shown in Figure 21.  See
  4386.    Appendix 1 (page 147) for an explanation of the notation.
  4387.  
  4388.       ST is the IP Version Number assigned to identify ST packets.  The
  4389.       value for ST is 5.
  4390.  
  4391.       Ver is the ST Version Number.  This document defines ST Version 2.
  4392.  
  4393.       Pri is the priority of the packet.  It is used in data packets to
  4394.       indicate those packets to drop if a stream is exceeding its
  4395.       allocation.  Zero is the lowest priority and 7 the highest.
  4396.  
  4397.       T (bit 11) is used to indicate that a Timestamp is present
  4398.       following the ST Header but before any next higher layer protocol
  4399.       data.  The Timestamp is not permitted on ST Control Messages
  4400.       (which may use the OriginTimestamp option).
  4401.  
  4402.       Bits 12 through 15 are spares and should be set to 0.
  4403.  
  4404.  
  4405.     0                   1                   2                   3
  4406.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  4407.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4408.    |  ST=5 | Ver=2 | Pri |T| Bits  |           TotalBytes          |
  4409.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4410.    |              HID              |        HeaderChecksum         |
  4411.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4412.  
  4413.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4414.    |                                                               |
  4415.    +-                          Timestamp                          -+
  4416.    |                                                               |
  4417.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4418.  
  4419.                          Figure 21.  ST Header
  4420.  
  4421.  
  4422.  
  4423.  
  4424.  
  4425. CIP Working Group                                              [Page 75]
  4426.  
  4427. RFC 1190                Internet Stream Protocol            October 1990
  4428.  
  4429.  
  4430.       TotalBytes is the length, in bytes, of the entire ST packet, it
  4431.       includes the ST Header and optional Timestamp but does not include
  4432.       any local network headers or trailers.  In general, all length
  4433.       fields in the ST Protocol are in units of bytes.
  4434.  
  4435.       HID is the 16-bit hop-by-hop stream identifier.  It is an
  4436.       abbreviation for the Name of the stream and is used both to reduce
  4437.       the packet header length and, by the receiver of the data packet,
  4438.       to make the forwarding function more efficient.  Control Messages
  4439.       have a HID value of zero.  HIDs are negotiated by the next-hop and
  4440.       previous-hop agents to make the abbreviation unique.  It is used
  4441.       here in the ST Header and in various Control Messages.  HID values
  4442.       1-3 are reserved for future use.
  4443.  
  4444.       HeaderChecksum covers only the ST Header and Timestamp, if
  4445.       present.  The ST Protocol uses 16-bit checksums here in the ST
  4446.       Header and in each Control Message.  The standard Internet
  4447.       checksum algorithm is used:  "The checksum field is the 16-bit
  4448.       one's complement of the one's complement sum of all 16-bit words
  4449.       in the header.  For purposes of computing the checksum, the value
  4450.       of the checksum field is zero."  See [1] [12] [15] for suggestions
  4451.       for efficient checksum algorithms.
  4452.  
  4453.       Timestamp is an optional timestamp inserted into data packets by
  4454.       the origin.  It is only present when the T bit, described above,
  4455.       is set (1).  Its use is negotiated at connection setup time;  see
  4456.       Sections 4.2.3.5 (page 108) and 4.2.3.1 (page 100).  The Timestamp
  4457.       has the NTP format;  see [13].
  4458.  
  4459.  
  4460.    4.1.       Data Packets
  4461.  
  4462.       ST packets whose HID is not zero to three are user data packets.
  4463.       Their interpretation is a matter for the higher layer protocols
  4464.       and consequently is not specified here.  The data packets are not
  4465.       protected by an ST checksum and will be delivered to the higher
  4466.       layer protocol even with errors.
  4467.  
  4468.       ST agents will not pass data packets over a new hop whose setup is
  4469.       not complete, i.e., a HID must have been negotiated and either an
  4470.       ACCEPT or REFUSE has been received for all targets specified in
  4471.       the CONNECT.
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482.  
  4483.  
  4484. CIP Working Group                                              [Page 76]
  4485.  
  4486. RFC 1190                Internet Stream Protocol            October 1990
  4487.  
  4488.  
  4489.    4.2.       ST Control Message Protocol Descriptions
  4490.  
  4491.       ST Control Messages are between a previous-hop agent and its
  4492.       next-hop agent(s) using a HID of zero.  The control protocol
  4493.       follows a request-response model with all requests expecting
  4494.       responses.  Retransmission after timeout (see Section 3.7.6 (page
  4495.       66)) is used to allow for lost or ignored messages.  Control
  4496.       messages do not extend across packet boundaries; if a control
  4497.       message is too large for the MTU of a hop, its information
  4498.       (usually a TargetList) is partitioned and a control message per
  4499.       partition is sent.  All control messages have the following
  4500.       format:
  4501.  
  4502.          OpCode identifies the type of control message.  Each is
  4503.          described in detail in following sections.
  4504.  
  4505.          Options is used to convey OpCode-specific variations for a
  4506.          control message.
  4507.  
  4508.          TotalBytes is the length of the control message, in bytes,
  4509.          including all OpCode specific fields and optional parameters.
  4510.          The value is always divisible by four.
  4511.  
  4512.          RVLId is used to convey the Virtual Link Identifier of the
  4513.          receiver of the control message, when known, or zero in the
  4514.          case of an initial CONNECT or diagnostic message.  The RVLId is
  4515.          intended to permit efficient dispatch to the portion of a
  4516.          stream's state machine containing information about a specific
  4517.          operation in progress over the link.  RVLId values 1-3 are
  4518.          reserved; see Sections 3 (page 17) and 3.7.1.2 (page 49).
  4519.  
  4520.  
  4521.     0                   1                   2                   3
  4522.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  4523.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4524.    |     OpCode    |    Options    |           TotalBytes          |
  4525.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4526.    |             RVLId             |             SVLId             |
  4527.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4528.    |           Reference           |         LnkReference          |
  4529.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4530.    |                         SenderIPAddress                       |
  4531.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4532.    |            Checksum           |                               :
  4533.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-                             -+
  4534.    :                      OpCode Specific Data                     :
  4535.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4536.  
  4537.                  Figure 22.  ST Control Message Format
  4538.  
  4539.  
  4540.  
  4541.  
  4542.  
  4543. CIP Working Group                                              [Page 77]
  4544.  
  4545. RFC 1190                Internet Stream Protocol            October 1990
  4546.  
  4547.  
  4548.          SVLId is used to convey the Virtual Link Identifier of the
  4549.          sender of the control message.  Except for ERROR-IN-REQUEST and
  4550.          diagnostic messages, it must never be zero.  SVLId values 1-3
  4551.          are reserved; see Sections 3 (page 17) and 3.7.1.2 (page 49).
  4552.  
  4553.          Reference is a transaction number.  Each sender of a request
  4554.          control message assigns a Reference number to the message that
  4555.          is unique with respect to the stream.  The Reference number is
  4556.          used by the receiver to detect and discard duplicates.  Each
  4557.          acknowledgment carries the Reference number of the request
  4558.          being acknowledged.  Reference zero is never used, and
  4559.          Reference numbers are assumed to be monotonically increasing
  4560.          with wraparound so that the older-than and more-recent-than
  4561.          relations are well defined.
  4562.  
  4563.          LnkReference contains the Reference field of the request
  4564.          control message that caused this request control message to be
  4565.          created.  It is used in situations where a single request leads
  4566.          to multiple "responses".  Examples are CONNECT and CHANGE
  4567.          messages that must be acknowledged hop-by-hop and will also
  4568.          lead to an ACCEPT or REFUSE from each target in the TargetList.
  4569.  
  4570.          SenderIPAddress is the 32-bit IP address of the network
  4571.          interface that the ST agent used to send the control message.
  4572.          This value changes each time the packet is forwarded by an ST
  4573.          agent (hop-by-hop).
  4574.  
  4575.          Checksum is the checksum of the control message.  Because the
  4576.          control messages are sent in packets that may be delivered with
  4577.          bits in error, each control message must be checked before it
  4578.          is acted upon;  see Section 4 (page 76).
  4579.  
  4580.          OpCode Specific Data contains any additional information that
  4581.          is associated with the control message.  It depends on the
  4582.          specific control message and is explained further below.  In
  4583.          some response control messages, fields of zero are included to
  4584.          allow the format to match that of the corresponding request
  4585.          message.  The OpCode Specific Data may also contain any of the
  4586.          optional Parameters defined in Section 4.2.2 (page 80).
  4587.  
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.  
  4594.  
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.  
  4601.  
  4602. CIP Working Group                                              [Page 78]
  4603.  
  4604. RFC 1190                Internet Stream Protocol            October 1990
  4605.  
  4606.  
  4607.       4.2.1.        ST Control Messages
  4608.  
  4609.          The CONNECT and CHANGE messages are used to establish or modify
  4610.          branches in the stream.  They propagate in the direction from
  4611.          the origin toward the targets.  They are end-to-end messages
  4612.          created by the origin.  They propagate all the way to the
  4613.          targets, and require ERROR-IN-REQUEST, ACK, HID-REJECT, HID-
  4614.          APPROVE, ACCEPT, or REFUSE messages in response.  The CONNECT
  4615.          message is the stream setup message.  The CHANGE message is
  4616.          used to change the characteristics of an established stream.
  4617.          The CONNECT message is also used to add one or more targets to
  4618.          an existing stream and during recovery of a broken stream.
  4619.          Both messages have a TargetList parameter and are processed
  4620.          similarly.
  4621.  
  4622.          The DISCONNECT message is used to tear down streams or parts of
  4623.          streams.  It propagates in the direction from the origin toward
  4624.          the targets.  It is either used as an end-to-end message
  4625.          generated by the origin that is used to completely tear down a
  4626.          stream, or is generated by an intermediate ST agent that
  4627.          preempts a stream or detects the failure of its previous-hop
  4628.          agent or network in the stream.  In the latter case, it is used
  4629.          to tear down the part of the stream from the failure to the
  4630.          targets, thus the message propagates all the way to the
  4631.          targets.
  4632.  
  4633.          The REFUSE message is sent by a target to refuse to join or
  4634.          remove itself from a stream;  in these cases, it is an end-to-
  4635.          end message.  An intermediate ST agent issues a REFUSE if it
  4636.          cannot find a route to a target, can only find a route to a
  4637.          target through the previous-hop, preempts a stream, or detects
  4638.          a failure in a next-hop ST agent or network.  In all cases a
  4639.          REFUSE propagates in the direction toward the origin.
  4640.  
  4641.          The ACCEPT message is an end-to-end message generated by a
  4642.          target and is used to signify the successful completion of the
  4643.          setup of a stream or part of a stream, or the change of the
  4644.          FlowSpec.  There are no other messages that are similar to it.
  4645.  
  4646.          The following sections contain descriptions of common fields
  4647.          and parameters, followed by descriptions of the individual
  4648.          control messages, both listed in alphabetical order.  A brief
  4649.          description of the use of the control message is given.  The
  4650.          packet format is shown graphically.
  4651.  
  4652.  
  4653.  
  4654.  
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  
  4661. CIP Working Group                                              [Page 79]
  4662.  
  4663. RFC 1190                Internet Stream Protocol            October 1990
  4664.  
  4665.  
  4666.       4.2.2.        Common SCMP Elements
  4667.  
  4668.          Several fields and parameters (referred to generically as
  4669.          "elements") are common to two or more PDUs.  They are described
  4670.          in detail here instead of repeating their description several
  4671.          times.  In many cases, the presence of a parameter is optional.
  4672.          To permit the parameters to be easily defined and parsed, each
  4673.          is identified with a PCode byte that is followed by a PBytes
  4674.          byte indicating the length of the parameter in bytes (including
  4675.          the PCode, PByte, and any padding bytes).  If the length of the
  4676.          information is not a multiple of 4 bytes, the parameter is
  4677.          padded with one to three zero (0) bytes.  PBytes is thus always
  4678.          a multiple of four.  Parameters can be present in any order.
  4679.  
  4680.  
  4681.          4.2.2.1.         DetectorIPAddress
  4682.  
  4683.             Several control messages contain the DetectorIPAddress
  4684.             field.  It is used to identify the agent that caused the
  4685.             first instance of the message to be generated, i.e., before
  4686.             it was propagated.  It is copied from the received message
  4687.             into the copy of the message that is to be propagated to a
  4688.             previous-hop or next-hop.  It use is primarily diagnostic.
  4689.  
  4690.  
  4691.          4.2.2.2.         ErroredPDU
  4692.  
  4693.             The ErroredPDU parameter (PCode = 1) is used for diagnostic
  4694.             purposes to encapsulate a received ST PDU that contained an
  4695.             error.  It may be included in the ERROR-IN-REQUEST, ERROR-
  4696.             IN-RESPONSE, or REFUSE messages.  It use is primarily
  4697.             diagnostic.
  4698.  
  4699.                PDUBytes indicates how many bytes of the PDUInError are
  4700.                actually present.
  4701.  
  4702.                ErrorOffset contains the number of bytes into the errored
  4703.                PDU to the field containing the error.  At least as much
  4704.                of the PDU in error must be included to
  4705.  
  4706.  
  4707.     0                   1                   2                   3
  4708.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  4709.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4710.    |   PCode = 1   |     PBytes    |   PDUBytes    |  ErrorOffset  |
  4711.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4712.    :                          PDUInError           :    Padding    |
  4713.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4714.  
  4715.                           Figure 23.  ErroredPDU
  4716.  
  4717.  
  4718.  
  4719.  
  4720. CIP Working Group                                              [Page 80]
  4721.  
  4722. RFC 1190                Internet Stream Protocol            October 1990
  4723.  
  4724.  
  4725.                include the field or parameter identified by ErrorOffset;
  4726.                an ErrorOffset of zero would imply a problem with the IP
  4727.                Version Number or ST Version Number fields.
  4728.  
  4729.                PDUInError is the PDU in error, beginning with the ST
  4730.                Header.
  4731.  
  4732.  
  4733.          4.2.2.3.         FlowSpec & RFlowSpec
  4734.  
  4735.             The FlowSpec is used to convey stream service requirements
  4736.             end-to-end.  We expect that other versions of FlowSpec will
  4737.             be needed in the future, which may or may not be subsets or
  4738.             supersets of the version described here.  PBytes will allow
  4739.             new constraints to be added to the end without having to
  4740.             simultaneously update all implementations in the field.
  4741.             Implementations are expected to be able to process in a
  4742.             graceful manner a Version 4 (or higher) structure that has
  4743.             more elements than shown here.
  4744.  
  4745.             The FlowSpec parameter (PCode = 2) is used in several
  4746.             messages to convey the FlowSpec.
  4747.  
  4748.  
  4749.     0                   1                   2                   3
  4750.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  4751.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4752.    |     PCode     |     PBytes    |  Version = 3  |       0       |
  4753.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4754.    |   DutyFactor  |   ErrorRate   |   Precedence  |  Reliability  |
  4755.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4756.    |           Tradeoffs           |        RecoveryTimeout        |
  4757.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4758.    |          LimitOnCost          |         LimitOnDelay          |
  4759.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4760.    |        LimitOnPDUBytes        |        LimitOnPDURate         |
  4761.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4762.    |                         MinBytesXRate                         |
  4763.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4764.    |                         AccdMeanDelay                         |
  4765.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4766.    |                       AccdDelayVariance                       |
  4767.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4768.    |          DesPDUBytes          |          DesPDURate           |
  4769.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4770.  
  4771.                     Figure 24.  FlowSpec & RFlowSpec
  4772.  
  4773.  
  4774.  
  4775.  
  4776.  
  4777.  
  4778.  
  4779. CIP Working Group                                              [Page 81]
  4780.  
  4781. RFC 1190                Internet Stream Protocol            October 1990
  4782.  
  4783.  
  4784.             The RFlowSpec parameter (PCode = 12) is used in conjunction
  4785.             with the FDx option to convey the FlowSpec that is to be
  4786.             used in the reverse direction.
  4787.  
  4788.                Version identifies the version of the FlowSpec.  Version
  4789.                3 is defined here.
  4790.  
  4791.                DutyFactor is the estimated proportion of the time that
  4792.                the requested bandwidth will actually be in use.  Zero is
  4793.                taken to represent 256 and signify a duty factor of 1.
  4794.                Other values are to be divided by 256 to yield the duty
  4795.                factor.
  4796.  
  4797.                ErrorRate expresses the error rate as the negative
  4798.                exponent of 10 in the error rate.  One (1) represents a
  4799.                bit error rate of 0.1 and 10 represents 0.0000000001.
  4800.  
  4801.                Precedence is the precedence of the connection being
  4802.                established.  Zero represents the lowest precedence.
  4803.                Note that non-zero values of this parameter should be
  4804.                subject to authentication and authorization checks, which
  4805.                are not specified here.  In general, the distinction
  4806.                between precedence and priority is that precedence
  4807.                specifies streams that are permitted to take previously
  4808.                committed resources from another stream, while priority
  4809.                identifies those PDUs that a stream is most willing to
  4810.                have dropped when the stream exceeds its guaranteed
  4811.                limits.
  4812.  
  4813.                Reliability is modified by each intervening ST agent as a
  4814.                measure of the probability that a given offered data
  4815.                packet will be forwarded and not dropped.  Zero is taken
  4816.                to represent 256 and signify a probability of 1.  Other
  4817.                values are to be divided by 256 to yield the probability.
  4818.  
  4819.                Tradeoffs is incompletely defined at this time.  Bits
  4820.                currently specified are as follows:
  4821.  
  4822.                   The most significant bit in the field, bit 0 in the
  4823.                   Figure 24, when one (1) means that each ST agent must
  4824.                   "implement" all constraints in the FlowSpec even if
  4825.                   they are not shown in the figure, e.g., when the
  4826.                   FlowSpec has been extended.  When zero (0), unknown
  4827.                   constraints may be ignored.
  4828.  
  4829.                   The second most significant bit in the field, bit 1,
  4830.                   when one (1) means that one or more constraints are
  4831.                   unknown and have been ignored.  When zero (0), all
  4832.                   constraints are known and have been processed.
  4833.  
  4834.  
  4835.  
  4836.  
  4837.  
  4838. CIP Working Group                                              [Page 82]
  4839.  
  4840. RFC 1190                Internet Stream Protocol            October 1990
  4841.  
  4842.  
  4843.                   The third most significant bit in the field, bit 2, is
  4844.                   used for RevChrg;  see Section 3.6.5 (page 46).
  4845.  
  4846.                   Other bits are currently unspecified, and should be
  4847.                   set to zero (0) by the origin ST agent and not changed
  4848.                   by other agents unless those agents know their
  4849.                   meaning.
  4850.  
  4851.                RecoveryTimeout specifies the nominal number of
  4852.                milliseconds that the application is willing to wait for
  4853.                a failed system component to be detected and any
  4854.                corrective action to be taken.
  4855.  
  4856.                LimitOnCost specifies the maximum cost that the origin is
  4857.                willing to expend.  A value of zero indicates that the
  4858.                application is not willing to incur any direct charges
  4859.                for the resources used by the stream.  The meaning of
  4860.                non-zero values is left for further study.
  4861.  
  4862.                LimitOnDelay specifies the maximum end-to-end delay, in
  4863.                milliseconds, that can be tolerated by the origin.
  4864.  
  4865.                LimitOnPDUBytes is the smallest packet size, in terms of
  4866.                ST-user data bytes, that can be tolerated by the origin.
  4867.  
  4868.                LimitOnPDURate is the lowest packet rate that can be
  4869.                tolerated by the origin, expressed as tenths of a packet
  4870.                per second.
  4871.  
  4872.                MinBytesXRate is the minimum bandwidth that can be
  4873.                tolerated by the origin, expressed as a product of bytes
  4874.                and tenths of a packet per second.
  4875.  
  4876.                AccdMeanDelay is modified by each intervening ST agent.
  4877.                This provides a means of reporting the total expected
  4878.                delay, in milliseconds, for a data packet.  Note that it
  4879.                is implicitly assumed that the requested mean delay is
  4880.                zero and there is no limit on the mean delay, so there
  4881.                are no parameters to specify these explicitly.
  4882.  
  4883.                AccdDelayVariance is also modified by each intervening ST
  4884.                agent as a measure, in milliseconds squared, of the
  4885.                packet dispersion.  This quantity can be used by the
  4886.                target or origin in determining whether the resulting
  4887.                stream has an adequate quality of service to support the
  4888.                application.  Note that it is implicitly assumed that the
  4889.                requested delay variance is zero and there is no limit on
  4890.                the delay variance, so there are no parameters to specify
  4891.                these explicitly.
  4892.  
  4893.  
  4894.  
  4895.  
  4896.  
  4897. CIP Working Group                                              [Page 83]
  4898.  
  4899. RFC 1190                Internet Stream Protocol            October 1990
  4900.  
  4901.  
  4902.                DesPDUBytes is the desired PDU size in bytes.  This is
  4903.                not necessarily the same as the minimum necessary PDU
  4904.                size.  This value may be made smaller by intervening ST
  4905.                agents so long as it is not made smaller than
  4906.                LimitOnPDUBytes.  The *PDUBytes limits measure the size
  4907.                of the PDUs of next-higher protocol layer, i.e., the user
  4908.                information contained in a data packet.  An ST agent must
  4909.                account for both the ST Header (including possible IP
  4910.                encapsulation) and any local network headers and trailers
  4911.                when comparing a network's MTU with *PDUBytes.  In an
  4912.                ACCEPT message, the value of this field will be no larger
  4913.                than the MTU of the path to the specified target.
  4914.  
  4915.                DesPDURate is the requested PDU rate, expressed as tenths
  4916.                of a packet per second.  This value may be made smaller
  4917.                by intervening ST agents so long as it is not made
  4918.                smaller than LimitOnPDURate.
  4919.  
  4920.                It is expected that the next parameter to be added to the
  4921.                FlowSpec will be a Burst Descriptor.  This parameter will
  4922.                describe the burstiness of the offered traffic.  For
  4923.                example, this may include the simple average rate, peak
  4924.                rate and variance values, or more complete descriptions
  4925.                that characterize the distribution of expected burst
  4926.                rates and their expected duration.  The nature of the
  4927.                algorithms that deal with the traffic's burstiness and
  4928.                the information that needs to be described by this
  4929.                parameter will be subjects of further experimentation.
  4930.                It is expected that a new FlowSpec with Version = 4 will
  4931.                be defined that looks like Version 3 but has a Burst
  4932.                Descriptor parameter appended to the end.
  4933.  
  4934.  
  4935.          4.2.2.4.         FreeHIDs
  4936.  
  4937.             The FreeHIDs parameter (PCode = 3) is used to communicate to
  4938.             the previous-hop suggestions for a HID.  It consists of
  4939.             BaseHID and FreeHIDBitMask fields.  Experiments will
  4940.             determine how long the mask should be for practical use of
  4941.             this parameter.  The parameter (if implemented) should be
  4942.             included in all HID-REJECTs, and in HID-APPROVEs that are
  4943.             linked to a multicast CONNECT, e.g., one containing the
  4944.             MulticastAddress parameter.
  4945.  
  4946.                BaseHID was the suggested value in a HID-CHANGE or
  4947.                CONNECT.  BaseHID is chosen to be the suggested HID value
  4948.                to insure that the masks from multiple FreeHIDs
  4949.                parameters will overlap.
  4950.  
  4951.                FreeHIDBitMask identifies available HID values as
  4952.                follows.  Bit 0 in the FreeHIDBitMask corresponds to a
  4953.  
  4954.  
  4955.  
  4956. CIP Working Group                                              [Page 84]
  4957.  
  4958. RFC 1190                Internet Stream Protocol            October 1990
  4959.  
  4960.  
  4961.                HID with a value equal to BaseHID with the 5 least
  4962.                significant bits set to zero, bit 1 corresponds to that
  4963.                value + 1, etc.  This alignment of the mask on a 32-bit
  4964.                boundary is used so that masks from several FreeHIDs
  4965.                parameters might more easily be combined using a bit-wise
  4966.                AND function to find a free HID.
  4967.  
  4968.  
  4969.     0                   1                   2                   3
  4970.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  4971.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4972.    |   PCode = 3   |     4+4*N     |            BaseHID            |
  4973.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4974.    :                        FreeHIDBitMask                         :
  4975.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  4976.  
  4977.                           Figure 25.  FreeHIDs
  4978.  
  4979.  
  4980.          4.2.2.5.         Group & RGroup
  4981.  
  4982.             The Group parameter (PCode = 4) is an optional argument
  4983.             used only for the creation of a stream.  This parameter
  4984.             contains a GroupName; the GroupName may be the same as the
  4985.             Name of one of the group's streams.  In addition, there
  4986.             may be some number of <SubGroupId, Relation> tuples that
  4987.             describe the meaning of the grouping and the relation
  4988.             between the members of the group.  The forms of grouping
  4989.             are for further study.
  4990.  
  4991.             The RGroup parameter (PCode = 13) is an optional argument
  4992.             used only for the creation of a stream in the reverse
  4993.             direction that is a member of a Group;  see the FDx
  4994.             option, Section 3.6.3 (page 45).  This parameter has the
  4995.             same format as the Group parameter.
  4996.  
  4997.  
  4998.     0                   1                   2                   3
  4999.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5000.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5001.    |     PCode     |    12+4*N     |                               !
  5002.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-                             -+
  5003.    !                           GroupName                           !
  5004.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5005.    |           SubGroupId          |            Relation           |
  5006.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5007.    :              ...              :              ...              :
  5008.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5009.    |           SubGroupId          |            Relation           |
  5010.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5011.  
  5012.                        Figure 26.  Group & RGroup
  5013.  
  5014.  
  5015. CIP Working Group                                              [Page 85]
  5016.  
  5017. RFC 1190                Internet Stream Protocol            October 1990
  5018.  
  5019.  
  5020.             A GroupName has the same format as a Name;  see Figure 29.
  5021.  
  5022.  
  5023.          4.2.2.6.         HID & RHID
  5024.  
  5025.             The HID parameter (PCode = 5) is used in the NOTIFY message
  5026.             when the notification is related to a HID, and possibly in
  5027.             the STATUS-RESPONSE message to convey additional HIDs that
  5028.             are valid for a stream when there are more than one.  It
  5029.             consists of the PCode and PBytes bytes prepended to a HID;
  5030.             HIDs were described in Section 4 (page 76).
  5031.  
  5032.             The RHID parameter (PCode = 14) is used in conjunction with
  5033.             the FDx option to convey the HID that is to be used in the
  5034.             reverse direction.  It consists of the PCode and PBytes
  5035.             bytes prepended to a HID.
  5036.  
  5037.  
  5038.     0                   1                   2                   3
  5039.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5040.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5041.    |     PCode     |       4       |              HID              |
  5042.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5043.  
  5044.                          Figure 27.  HID & RHID
  5045.  
  5046.  
  5047.          4.2.2.7.         MulticastAddress
  5048.  
  5049.             The MulticastAddress parameter (PCode = 6) is an optional
  5050.             parameter that is used, when setting up a network level
  5051.             multicast group, to communicate an IP and/or local network
  5052.             multicast address to the next-hop agents that should become
  5053.             members of the group.
  5054.  
  5055.                LocalNetBytes is the length of the Local Net Multicast
  5056.                Address.
  5057.  
  5058.  
  5059.     0                   1                   2                   3
  5060.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5061.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5062.    |   PCode = 6   |    PBytes     | LocalNetBytes |       0       |
  5063.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5064.    |                     IP Multicast Address                      |
  5065.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5066.    :                  Local Net Multicast Address  :    Padding    |
  5067.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5068.  
  5069.                       Figure 28.  MulticastAddress
  5070.  
  5071.  
  5072.  
  5073.  
  5074. CIP Working Group                                              [Page 86]
  5075.  
  5076. RFC 1190                Internet Stream Protocol            October 1990
  5077.  
  5078.  
  5079.                IP Multicast Address is described in [6].  This field is
  5080.                zero (0) if no IP multicast address is known or is
  5081.                applicable.  The block of addresses 224.1.0.0 -
  5082.                224.1.255.255 has been allocated for use by ST.
  5083.  
  5084.                Local Net Multicast Address is the multicast address to
  5085.                be used on the local network.  It corresponds to the IP
  5086.                Multicast Address when the latter is non-zero.
  5087.  
  5088.  
  5089.          4.2.2.8.         Name & RName
  5090.  
  5091.             Each stream is uniquely (i.e., globally) identified by a
  5092.             Name.  A Name is created by the origin host ST agent and is
  5093.             composed of 1) a 16-bit number chosen to make the Name
  5094.             unique within the agent, 2) the IP address of the origin ST
  5095.             agent, and 3) a 32-bit timestamp.  If the origin has
  5096.             multiple IP addresses, then any that can be used to reach
  5097.             target may be used in the Name.  The intent is that the
  5098.             <Unique ID, IP Address> tuple be unique for the lifetime of
  5099.             the stream.  It is suggested that to increase robustness a
  5100.             Unique ID value not be reused for a period of time on the
  5101.             order of 5 minutes.
  5102.  
  5103.             The Timestamp is included both to make the Name unique over
  5104.             long intervals (e.g., forever) for purposes of network
  5105.             management and accounting/billing, and to protect against
  5106.             failure of an ST agent that causes knowledge of active
  5107.             Unique IDs to be lost.  The assumption is that all ST agents
  5108.             have access to some "clock".  If this is not the case, the
  5109.             agent should have access to some form of non-volatile memory
  5110.             in which it can store some number that at least gets
  5111.             incremented per restart.
  5112.  
  5113.             The Name parameter (PCode = 7) is used in most control
  5114.             messages to identify a stream.
  5115.  
  5116.             The RName parameter (PCode = 15) is used in conjunction with
  5117.             the FDx option to convey the Name of the reverse stream in
  5118.             an ACCEPT message.
  5119.  
  5120.     0                   1                   2                   3
  5121.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5122.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5123.    |     PCode     |       12      |            Unique ID          |
  5124.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5125.    |                          IP Address                           |
  5126.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5127.    |                           Timestamp                           |
  5128.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5129.  
  5130.                         Figure 29.  Name & RName
  5131.  
  5132.  
  5133. CIP Working Group                                              [Page 87]
  5134.  
  5135. RFC 1190                Internet Stream Protocol            October 1990
  5136.  
  5137.  
  5138.          4.2.2.9.         NextHopIPAddress
  5139.  
  5140.             The NextHopIPAddress parameter (PCode = 8) is an optional
  5141.             parameter of NOTIFY (RouteBack) or REFUSE (RouteInconsist or
  5142.             RouteLoop) and contains the IP address of a suggested next-
  5143.             hop ST agent.
  5144.  
  5145.  
  5146.     0                   1                   2                   3
  5147.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5148.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5149.    |   PCode = 8   |       8       |               0               |
  5150.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5151.    |                       next-hop IP address                     |
  5152.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5153.  
  5154.                       Figure 30.  NextHopIPAddress
  5155.  
  5156.  
  5157.          4.2.2.10.        Origin
  5158.  
  5159.             The Origin parameter (PCode = 9) is used to identify the
  5160.             origin of the stream, the next higher protocol, and the SAP
  5161.             being used in conjunction with that protocol.
  5162.  
  5163.                NextPcol is an 8-bit field used in demultiplexing
  5164.                operations to identify the protocol to be used above ST.
  5165.                The values of NextPcol are in the same number space as
  5166.                the IP Header's Protocol field and are consequently
  5167.                defined in the Assigned Numbers RFC [18].
  5168.  
  5169.                OriginSAPBytes specifies the length of the OriginSAP,
  5170.                exclusive of any padding required to maintain 32-bit
  5171.                alignment.
  5172.  
  5173.                OriginIPAddress is (one of) the IP address of the origin.
  5174.  
  5175.                OriginSAP identifies the origin's SAP associated with the
  5176.                NextPcol protocol.
  5177.  
  5178.     0                   1                   2                   3
  5179.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5180.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5181.    |   PCode = 9   |    PBytes     |    NextPcol   |OriginSAPBytes |
  5182.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5183.    |                         OriginIPAddress                       |
  5184.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5185.    :                           OriginSAP           :    Padding    |
  5186.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5187.  
  5188.                            Figure 31.  Origin
  5189.  
  5190.  
  5191.  
  5192. CIP Working Group                                              [Page 88]
  5193.  
  5194. RFC 1190                Internet Stream Protocol            October 1990
  5195.  
  5196.  
  5197.          4.2.2.11.        OriginTimestamp
  5198.  
  5199.             The OriginTimestamp parameter (PCode = 10) is used to
  5200.             indicate the time at which the control message was sent.
  5201.  
  5202.             The units and format of the timestamp is that defined in the
  5203.             NTP protocol specification [13].  Note that discontinuities
  5204.             over leap seconds are expected.
  5205.  
  5206.             Note that the time synchronization implied by the use of
  5207.             such a parameter is the subject of systems management
  5208.             functions not described in this memo, e.g., NTP.
  5209.  
  5210.  
  5211.     0                   1                   2                   3
  5212.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5213.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5214.    |   PCode = 10  |      12       |               0               |
  5215.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5216.    |                                                               |
  5217.    +-                          Timestamp                          -+
  5218.    |                                                               |
  5219.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5220.  
  5221.                            Figure 32.  OriginTimestamp
  5222.  
  5223.  
  5224.          4.2.2.12.        ReasonCode
  5225.  
  5226.             Several errors may occur during protocol processing.  All ST
  5227.             error codes are taken from a single number space.  The
  5228.             currently defined values and their meaning is presented in
  5229.             the list below.  Note that new error codes may be defined
  5230.             from time to time.  All implementations are expected to
  5231.             handle new codes in a graceful manner.  If an unknown
  5232.             ReasonCode is encountered, it should be assumed to be fatal.
  5233.  
  5234.  
  5235.                     0                   1
  5236.                     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  5237.                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5238.                    |          ReasonCode           |
  5239.                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5240.  
  5241.                          Figure 33.  ReasonCode
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.  
  5248.  
  5249.  
  5250.  
  5251. CIP Working Group                                              [Page 89]
  5252.  
  5253. RFC 1190                Internet Stream Protocol            October 1990
  5254.  
  5255.  
  5256.                   Name       Value                 Meaning
  5257.             ---------------- ----- ---------------------------------------
  5258.  
  5259.             AcceptTimeout      2   An Accept has not been
  5260.                                    acknowledged.
  5261.  
  5262.             AccessDenied       3   Access denied.
  5263.  
  5264.             AckUnexpected      4   An unexpected ACK was received.
  5265.  
  5266.             ApplAbort          5   The application aborted the stream
  5267.                                    abnormally.
  5268.  
  5269.             ApplDisconnect     6   The application closed the stream
  5270.                                    normally.
  5271.  
  5272.             AuthentFailed      7   The authentication function
  5273.                                    failed.
  5274.  
  5275.             CantGetResrc       8   Unable to acquire (additional)
  5276.                                    resources.
  5277.  
  5278.             CantRelResrc       9   Unable to release excess
  5279.                                    resources.
  5280.  
  5281.             CksumBadCtl       10   A received control PDU has a bad
  5282.                                    message checksum.
  5283.  
  5284.             CksumBadST        11   A received PDU has a bad ST Header
  5285.                                    checksum.
  5286.  
  5287.             DropExcdDly       12   A received PDU was dropped because
  5288.                                    it could not be processed within
  5289.                                    the delay specification.
  5290.  
  5291.             DropExcdMTU       13   A received PDU was dropped because
  5292.                                    its size exceeds the MTU.
  5293.  
  5294.             DropFailAgt       14   A received PDU was dropped because
  5295.                                    of a failed ST agent.
  5296.  
  5297.             DropFailHst       15   A received PDU was dropped because
  5298.                                    of a host failure.
  5299.  
  5300.             DropFailIfc       16   A received PDU was dropped because
  5301.                                    of a broken interface.
  5302.  
  5303.             DropFailNet       17   A received PDU was dropped because
  5304.                                    of a network failure.
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310. CIP Working Group                                              [Page 90]
  5311.  
  5312. RFC 1190                Internet Stream Protocol            October 1990
  5313.  
  5314.  
  5315.                   Name       Value                 Meaning
  5316.             ---------------- ----- ---------------------------------------
  5317.  
  5318.             DropLimits        18   A received PDU was dropped because
  5319.                                    it exceeds the resource limits for
  5320.                                    its stream.
  5321.  
  5322.             DropNoResrc       19   A received PDU was dropped due to
  5323.                                    no available resources (including
  5324.                                    precedence).
  5325.  
  5326.             DropNoRoute       20   A received PDU was dropped because
  5327.                                    of no available route.
  5328.  
  5329.             DropPriLow        21   A received PDU was dropped because
  5330.                                    it has a priority too low to be
  5331.                                    processed.
  5332.  
  5333.             DuplicateIgn      22   A received control PDU is a
  5334.                                    duplicate and is being
  5335.                                    acknowledged.
  5336.  
  5337.             DuplicateTarget   23   A received control PDU contains a
  5338.                                    duplicate target, or an attempt to
  5339.                                    add an existing target.
  5340.  
  5341.             ErrorUnknown       1   An error not contained in this
  5342.                                    list has been detected.
  5343.  
  5344.             failure          N/A   An abbreviation used in the text
  5345.                                    for any of the more specific
  5346.                                    errors:  DropFailAgt, DropFailHst,
  5347.                                    DropFailIfc, DropFailNet,
  5348.                                    IntfcFailure, NetworkFailure,
  5349.                                    STAgentFailure, FailureRecovery.
  5350.  
  5351.             FailureRecovery   24   A notification that recovery is
  5352.                                    being attempted.
  5353.  
  5354.             FlowVerBad        25   A received control PDU has a
  5355.                                    FlowSpec Version Number that is
  5356.                                    not supported.
  5357.  
  5358.             GroupUnknown      26   A received control PDU contains an
  5359.                                    unknown Group Name.
  5360.  
  5361.             HIDNegFails       28   HID negotiation failed.
  5362.  
  5363.             HIDUnknown        29   A received control PDU contains an
  5364.                                    unknown HID.
  5365.  
  5366.  
  5367.  
  5368.  
  5369. CIP Working Group                                              [Page 91]
  5370.  
  5371. RFC 1190                Internet Stream Protocol            October 1990
  5372.  
  5373.  
  5374.                   Name       Value                 Meaning
  5375.             ---------------- ----- ---------------------------------------
  5376.  
  5377.             InconsistHID      30   An inconsistency has been detected
  5378.                                    with a stream Name and
  5379.                                    corresponding HID.
  5380.  
  5381.             InconsistGroup    31   An inconsistency has been detected
  5382.                                    with the streams forming a group.
  5383.  
  5384.             IntfcFailure      32   A network interface failure has
  5385.                                    been detected.
  5386.  
  5387.             InvalidHID        33   A received ST PDU contains an
  5388.                                    invalid HID.
  5389.  
  5390.             InvalidSender     34   A received control PDU has an
  5391.                                    invalid SenderIPAddress field.
  5392.  
  5393.             InvalidTotByt     35   A received control PDU has an
  5394.                                    invalid TotalBytes field.
  5395.  
  5396.             LnkRefUnknown     36   A received control PDU contains an
  5397.                                    unknown LnkReference.
  5398.  
  5399.             NameUnknown       37   A received control PDU contains an
  5400.                                    unknown stream Name.
  5401.  
  5402.             NetworkFailure    38   A network failure has been
  5403.                                    detected.
  5404.  
  5405.             NoError            0   No error has occurred.
  5406.  
  5407.             NoRouteToAgent    39   Cannot find a route to an ST
  5408.                                    agent.
  5409.  
  5410.             NoRouteToDest     40   Cannot find a route to the
  5411.                                    destination.
  5412.  
  5413.             NoRouteToHost     41   Cannot find a route to a host.
  5414.  
  5415.             NoRouteToNet      42   Cannot find a route to a network.
  5416.  
  5417.             OpCodeUnknown     43   A received control PDU has an
  5418.                                    invalid OpCode field.
  5419.  
  5420.             PCodeUnknown      44   A received control PDU has a
  5421.                                    parameter with an invalid PCode.
  5422.  
  5423.             ParmValueBad      45   A received control PDU contains an
  5424.                                    invalid parameter value.
  5425.  
  5426.  
  5427.  
  5428. CIP Working Group                                              [Page 92]
  5429.  
  5430. RFC 1190                Internet Stream Protocol            October 1990
  5431.  
  5432.  
  5433.                   Name       Value                 Meaning
  5434.             ---------------- ----- ---------------------------------------
  5435.  
  5436.             PcolIdUnknown     46   A received control PDU contains an
  5437.                                    unknown next-higher layer protocol
  5438.                                    identifier.
  5439.  
  5440.             ProtocolError     47   A protocol error was detected.
  5441.  
  5442.             PTPError          48   Multiple targets were specified
  5443.                                    for a stream created with the PTP
  5444.                                    option.
  5445.  
  5446.             RefUnknown        49   A received control PDU contains an
  5447.                                    unknown Reference.
  5448.  
  5449.             RestartLocal      50   The local ST agent has recently
  5450.                                    restarted.
  5451.  
  5452.             RemoteRestart     51   The remote ST agent has recently
  5453.                                    restarted.
  5454.  
  5455.             RetransTimeout    52   An acknowledgment to a control
  5456.                                    message has not been received
  5457.                                    after several retransmissions.
  5458.  
  5459.             RouteBack         53   The routing function indicates
  5460.                                    that the route to the next-hop is
  5461.                                    through the same interface as the
  5462.                                    previous-hop and is not the
  5463.                                    previous-hop.
  5464.  
  5465.             RouteInconsist    54   A routing inconsistency has been
  5466.                                    detected, e.g., a route loop.
  5467.  
  5468.             RouteLoop         55   A CONNECT was received that
  5469.                                    specified an existing target.
  5470.  
  5471.             SAPUnknown        56   A received control PDU contains an
  5472.                                    unknown next-higher layer SAP
  5473.                                    (port).
  5474.  
  5475.             STAgentFailure    57   An ST agent failure has been
  5476.                                    detected.
  5477.  
  5478.             StreamExists      58   A stream with the given Name or
  5479.                                    HID already exists.
  5480.  
  5481.             StreamPreempted   59   The stream has been preempted by
  5482.                                    one with a higher precedence.
  5483.  
  5484.  
  5485.  
  5486.  
  5487. CIP Working Group                                              [Page 93]
  5488.  
  5489. RFC 1190                Internet Stream Protocol            October 1990
  5490.  
  5491.  
  5492.                   Name       Value                 Meaning
  5493.             ---------------- ----- ---------------------------------------
  5494.  
  5495.             STVerBad          60   A received PDU is not ST Version
  5496.                                    2.
  5497.  
  5498.             TooManyHIDs       61   Attempt to add more HIDs to a
  5499.                                    stream than the implementation
  5500.                                    supports.
  5501.  
  5502.             TruncatedCtl      62   A received control PDU is shorter
  5503.                                    than expected.
  5504.  
  5505.             TruncatedPDU      63   A received ST PDU is shorter than
  5506.                                    the ST Header indicates.
  5507.  
  5508.             UserDataSize      64   The UserData parameter is too
  5509.                                    large to permit a control message
  5510.                                    to fit into a network's MTU.
  5511.  
  5512.  
  5513.          4.2.2.13.        RecordRoute
  5514.  
  5515.             The RecordRoute parameter (PCode = 11) may be used to
  5516.             request that the route between the origin and a target be
  5517.             recorded and returned to the agent specified in the
  5518.             DetectorIPAddress field.
  5519.  
  5520.             FreeOffset is the offset to the position where the next
  5521.             next-hop IP address should be inserted.  It is initialized
  5522.             to four (4) and incremented by four each time an agent
  5523.             inserts its IP address.
  5524.  
  5525.  
  5526.     0                   1                   2                   3
  5527.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5528.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5529.    |   PCode = 11  |     PBytes    |       0       |  FreeOffset   |
  5530.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5531.    |                       next-hop IP address                     |
  5532.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5533.    :                              ...                              :
  5534.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5535.    |                       next-hop IP address                     |
  5536.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5537.  
  5538.                           Figure 34.  RecordRoute
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546. CIP Working Group                                              [Page 94]
  5547.  
  5548. RFC 1190                Internet Stream Protocol            October 1990
  5549.  
  5550.  
  5551.          4.2.2.14.        SrcRoute
  5552.  
  5553.             The SrcRoute parameter is used, in the Target structure
  5554.             shown in Figure 36, to specify the IP addresses of the ST
  5555.             agents through which the stream to the target should pass.
  5556.             There are two forms of the option, distinguished by the
  5557.             PCode.
  5558.  
  5559.             With loose source route (PCode = 18) each ST agent first
  5560.             examines the first next-hop IP address in the option.  If
  5561.             the address is (one of) the address of the current ST agent,
  5562.             that entry is removed, and the PBytes field reduced by four
  5563.             (4).  If the resulting PBytes field contains 4 (i.e., there
  5564.             are no more next-hop IP addresses) the parameter is removed
  5565.             from the Target.  In either case, the Target's TargetBytes
  5566.             field and the TargetList's PBytes field must be reduced
  5567.             accordingly.  The ST agent then routes toward the first
  5568.             next-hop IP address in the option, if one exists, or toward
  5569.             the target otherwise.  Note that the target's IP address is
  5570.             not included as the last entry in the list.
  5571.  
  5572.             With a strict source route (PCode = 19) each ST agent first
  5573.             examines the first next-hop IP address in the option.  If
  5574.             the address is not (one of) the address of the current ST
  5575.             agent, a routing error has occurred and should be reported
  5576.             with the appropriate reason code.  Otherwise that entry is
  5577.             removed, and the PBytes field reduced by four (4).  If the
  5578.             resulting PBytes field contains 4 (i.e., there are no more
  5579.             next-hop IP addresses) the parameter is removed from the
  5580.             Target.  In either case, the Target's TargetBytes field and
  5581.             the TargetList's PBytes field must be reduced accordingly.
  5582.             The ST agent then routes toward the first next-hop IP
  5583.             address in the option, if one exists, or toward the target
  5584.             otherwise.  Note that the target's IP address is not
  5585.             included as the last entry in the list.
  5586.  
  5587.  
  5588.     0                   1                   2                   3
  5589.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5590.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5591.    |      PCode    |     4+4*N     |               0               |
  5592.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5593.    |                      next-hop IP address                      |
  5594.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5595.    :                              ...                              :
  5596.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5597.    |                      next-hop IP address                      |
  5598.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5599.  
  5600.                           Figure 35.  SrcRoute
  5601.  
  5602.  
  5603.  
  5604.  
  5605. CIP Working Group                                              [Page 95]
  5606.  
  5607. RFC 1190                Internet Stream Protocol            October 1990
  5608.  
  5609.  
  5610.             Since it is possible that a single hop between ST agents is
  5611.             actually composed of multiple IP hops using IP
  5612.             encapsulation, it might be necessary to also specify an IP
  5613.             source routing option.  Two additional PCodes are used in
  5614.             this case.  See [15] for a description of IP routing
  5615.             options.
  5616.  
  5617.             An IP Loose Source Route (PCode = 16) indicates that PDUs
  5618.             for the next-hop ST agent should be encapsulated in IP and
  5619.             that the IP datagram should contain an IP Loose Source Route
  5620.             constructed from the list of IP router addresses contained
  5621.             in this option.
  5622.  
  5623.             An IP Strict Source Route (PCode = 17) is similarly used
  5624.             when the corresponding IP Strict Source Route option should
  5625.             be constructed.
  5626.  
  5627.             Consequently, the "routing parameter" may consist of a
  5628.             sequence of one or more separate parameters with PCodes 16,
  5629.             17, 18, or 19.
  5630.  
  5631.  
  5632.          4.2.2.15.        Target and TargetList
  5633.  
  5634.             Several control messages use a parameter called TargetList
  5635.             (PCode = 20), which contains information about the targets
  5636.             to which the message pertains.  For each Target in the
  5637.             TargetList, the information includes the IP addresses of the
  5638.             target, the SAP applicable to the next higher layer
  5639.             protocol, the length of the SAP (SAPBytes), and zero or more
  5640.             optional SrcRoute parameters;  see Section 4.2.2.14 (page
  5641.             95).  Consequently, a Target structure can be of variable
  5642.             length.  Each entry has the format shown in Figure 36.
  5643.  
  5644.             The optional SrcRoute parameter is only meaningful in a
  5645.             CONNECT messages;  if present in other messages, they are
  5646.             ignored.  Note that the presence of SrcRoute parameter(s)
  5647.             reduces the number of Targets that can be contained in a
  5648.             TargetList since the maximum size of a TargetList is 256
  5649.             bytes.  Consequently an implementation should be prepared to
  5650.             accept multiple TargetLists in a single message.
  5651.  
  5652.                TargetIPAddress is the IP Address of the Target.
  5653.  
  5654.                TargetBytes is the length of the Target structure,
  5655.                beginning with the TargetIPAddress and including any
  5656.                SrcRoute Parameter(s).
  5657.  
  5658.                SAPBytes is the length of the SAP, excluding any padding
  5659.                required to maintain 32-bit alignment.  I.e.,
  5660.  
  5661.  
  5662.  
  5663.  
  5664. CIP Working Group                                              [Page 96]
  5665.  
  5666. RFC 1190                Internet Stream Protocol            October 1990
  5667.  
  5668.  
  5669.                there would be no padding required for SAPs with lengths
  5670.                of 2, 6, etc., bytes.
  5671.  
  5672.  
  5673.     0                   1                   2                   3
  5674.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5675.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5676.    |                        TargetIPAddress                        |
  5677.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5678.    |  TargetBytes  |   SAPBytes    |                               :
  5679.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-             -+-+-+-+-+-+-+-+-+
  5680.    :                              SAP              :    Padding    |
  5681.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5682.  
  5683.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5684.    :                     SrcRoute Parameter(s)                     :
  5685.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5686.  
  5687.                            Figure 36.  Target
  5688.  
  5689.  
  5690.             We assume that the ST agents must know the maximum packet
  5691.             size of the networks to which they are connected (the MTU),
  5692.             and those maximum sizes will restrict the number of targets
  5693.             that can be specified in control messages.  We feel that
  5694.             this is not a serious drawback.  High bandwidth networks
  5695.             such as the Ethernet or the Terrestrial Wideband network
  5696.             support packet sizes large enough to allow well over one
  5697.             hundred targets to be specified, and we feel that
  5698.             conferences with a larger number of participants will not
  5699.             occur for quite some time.  Furthermore, we expect that
  5700.             future higher bandwidth networks will allow even larger
  5701.             packet sizes.  It may be desirable to send ST voice data
  5702.             packets in individual B-ISDN ATM cells, which are small, but
  5703.             network services on ATM will provide "adaptation layers" to
  5704.             implement network-level fragmentation that may be used to
  5705.             carry larger ST control messages.
  5706.  
  5707.  
  5708.     0                   1                   2                   3
  5709.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5710.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5711.    |   PCode = 20  |    PBytes     |        TargetCount = N        |
  5712.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5713.    :                            Target 1                           :
  5714.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5715.    :                              ...                              :
  5716.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5717.    :                            Target N                           :
  5718.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5719.  
  5720.                          Figure 37.  TargetList
  5721.  
  5722.  
  5723. CIP Working Group                                              [Page 97]
  5724.  
  5725. RFC 1190                Internet Stream Protocol            October 1990
  5726.  
  5727.  
  5728.             If a message must pass across a network whose maximum packet
  5729.             size is too small, the message must be broken up into
  5730.             multiple messages, each of which carries part of the
  5731.             TargetList.  The function of the message can still be
  5732.             performed even if the message is so partitioned.  The effect
  5733.             in this partitioning is to compromise the performance, but
  5734.             still allows proper operation.  For example, if a CONNECT
  5735.             message were partitioned, the first CONNECT would establish
  5736.             the stream, and the rest of the CONNECTs would be processed
  5737.             as additions to the first.  The routing decisions might
  5738.             suffer, however, since they would be made on partial
  5739.             information.  Nevertheless, the stream would be created.
  5740.  
  5741.  
  5742.          4.2.2.16.        UserData
  5743.  
  5744.             The UserData parameter (PCode = 21) is an optional parameter
  5745.             that may be used by the next higher protocol or an
  5746.             application to convey arbitrary information to its peers.
  5747.             Note that since the size of control messages is limited by
  5748.             the smallest MTU in the path to the target(s), the maximum
  5749.             size of this parameter cannot be specified a priori.  If the
  5750.             parameter is too large for some network's MTU, a
  5751.             UserDataSize error will occur.  The parameter must be padded
  5752.             to a multiple of 32 bits.
  5753.  
  5754.                UserBytes specifies the number of valid UserInformation
  5755.                bytes.
  5756.  
  5757.                UserInformation is arbitrary data meaningful to the next
  5758.                higher protocol layer or application.
  5759.  
  5760.  
  5761.     0                   1                   2                   3
  5762.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5763.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5764.    |   PCode = 21  |    PBytes     |           UserBytes           |
  5765.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5766.    :                        UserInformation        :    Padding    |
  5767.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5768.  
  5769.                          Figure 38.  UserData
  5770.  
  5771.  
  5772.  
  5773.  
  5774.  
  5775.  
  5776.  
  5777.  
  5778.  
  5779.  
  5780.  
  5781.  
  5782. CIP Working Group                                              [Page 98]
  5783.  
  5784. RFC 1190                Internet Stream Protocol            October 1990
  5785.  
  5786.  
  5787. 4.2.3.        ST Control Message PDUs
  5788.  
  5789.          Each control message is described in a following section.  See
  5790.          Appendix 1 (page 147) for an explanation of the notation.
  5791.  
  5792.  
  5793.  
  5794.  
  5795.  
  5796.  
  5797.  
  5798.  
  5799.  
  5800.  
  5801.  
  5802.  
  5803.  
  5804.  
  5805.  
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811.  
  5812.  
  5813.  
  5814.  
  5815.  
  5816.  
  5817.  
  5818.  
  5819.  
  5820.  
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826.  
  5827.  
  5828.  
  5829.  
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.  
  5838.  
  5839.  
  5840.  
  5841. CIP Working Group                                              [Page 99]
  5842.  
  5843. RFC 1190                Internet Stream Protocol            October 1990
  5844.  
  5845.  
  5846.          4.2.3.1.         ACCEPT
  5847.  
  5848.             ACCEPT (OpCode = 1) is issued by a target as a positive
  5849.             response to a CONNECT message.  It implies that the target
  5850.             is prepared to accept data from the origin along the stream
  5851.             that was established by the CONNECT.  The ACCEPT includes
  5852.             the FlowSpec that contains the cumulative information that
  5853.             was calculated by the intervening ST agents as the CONNECT
  5854.             made its way from the origin to the target, as well as any
  5855.             modifications made by the application at the target.  The
  5856.             ACCEPT is relayed by the ST agents from the target to the
  5857.             origin along the path established by the CONNECT but in the
  5858.             reverse direction.  The ACCEPT must be acknowledged with an
  5859.             ACK at each hop.
  5860.  
  5861.             The FlowSpec is not modified on this trip from the target
  5862.             back to the origin.  Since the cumulative FlowSpec
  5863.             information can be different for different targets, no
  5864.             attempt is made to combine the ACCEPTs from the various
  5865.             targets.  The TargetList included in each ACCEPT contains
  5866.             the IP address of only the target that issued the ACCEPT.
  5867.  
  5868.             Any SrcRoute parameters in the TargetList are ignored.
  5869.  
  5870.             Since an ACCEPT might be the first response from a next-hop
  5871.             on a control link (due to network reordering), the SVLId
  5872.             field may be the first source of the Virtual Link Identifier
  5873.             to be used in the RVLId field of subsequent control messages
  5874.             sent to that next-hop.
  5875.  
  5876.             When the FDx option has been selected to setup a second
  5877.             stream in the reverse direction, the ACCEPT will contain
  5878.             both RFlowSpec and RName parameters.  Each agent should
  5879.             update the state tables for the reverse stream with this
  5880.             information.
  5881.  
  5882.                TSR (bits 14 and 15) specifies the target's response for
  5883.                the use of data packet timestamps; see Section 4 (page
  5884.                76).  Its values and semantics are:
  5885.  
  5886.                   00  Not implemented.
  5887.                   01  No timestamps are permitted.
  5888.                   10  Timestamps must always be present.
  5889.                   11  Timestamps may optionally be present.
  5890.  
  5891.                Reference contains a number assigned by the agent sending
  5892.                the ACCEPT for use in the acknowledging ACK.
  5893.  
  5894.                LnkReference is the Reference number from the
  5895.                corresponding CONNECT or CHANGE.
  5896.  
  5897.  
  5898.  
  5899.  
  5900. CIP Working Group                                             [Page 100]
  5901.  
  5902. RFC 1190                Internet Stream Protocol            October 1990
  5903.  
  5904.  
  5905.     0                   1                   2                   3
  5906.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5907.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5908.    |  OpCode = 1   |     0     |TSR|           TotalBytes          |
  5909.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5910.    |             RVLId             |             SVLId             |
  5911.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5912.    |           Reference           |         LnkReference          |
  5913.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5914.    |                         SenderIPAddress                       |
  5915.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5916.    |            Checksum           |               0               |
  5917.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5918.    |                       DetectorIPAddress                       |
  5919.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5920.    !                         Name Parameter                        !
  5921.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5922.    :                      FlowSpec Parameter                       :
  5923.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5924.    :                     TargetList Parameter                      :
  5925.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5926.  
  5927.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5928.    :                     RecordRoute Parameter                     :
  5929.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5930.  
  5931.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5932.    :                      RFlowSpec Parameter                      :
  5933.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5934.  
  5935.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5936.    !                         RName Parameter                       !
  5937.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5938.  
  5939.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5940.    :                      UserData Parameter                       :
  5941.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5942.  
  5943.                    Figure 39.  ACCEPT Control Message
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955.  
  5956.  
  5957.  
  5958.  
  5959. CIP Working Group                                             [Page 101]
  5960.  
  5961. RFC 1190                Internet Stream Protocol            October 1990
  5962.  
  5963.  
  5964.          4.2.3.2.         ACK
  5965.  
  5966.             ACK (OpCode = 2) is used to acknowledge a request.  The
  5967.             Reference in the header is the Reference number of the
  5968.             control message being acknowledged.
  5969.  
  5970.             Since a ACK might be the first response from a next-hop on a
  5971.             control link, the SVLId field may be the first source of the
  5972.             Virtual Link Identifier to be used in the RVLId field of
  5973.             subsequent control messages sent to that next-hop.
  5974.  
  5975.                ReasonCode is usually NoError, but other possibilities
  5976.                exist, e.g., DuplicateIgn.
  5977.  
  5978.  
  5979.     0                   1                   2                   3
  5980.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  5981.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5982.    |  OpCode = 2   |       0       |           TotalBytes          |
  5983.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5984.    |             RVLId             |             SVLId             |
  5985.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5986.    |           Reference           |         LnkReference          |
  5987.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5988.    |                         SenderIPAddress                       |
  5989.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5990.    |            Checksum           |          ReasonCode           |
  5991.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5992.    |                               0                               |
  5993.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5994.    !                         Name Parameter                        !
  5995.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  5996.  
  5997.                     Figure 40.  ACK Control Message
  5998.  
  5999.  
  6000.  
  6001.  
  6002.  
  6003.  
  6004.  
  6005.  
  6006.  
  6007.  
  6008.  
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014.  
  6015.  
  6016.  
  6017.  
  6018. CIP Working Group                                             [Page 102]
  6019.  
  6020. RFC 1190                Internet Stream Protocol            October 1990
  6021.  
  6022.  
  6023.          4.2.3.3.         CHANGE-REQUEST
  6024.  
  6025.             CHANGE-REQUEST (OpCode = 4) is used by an intermediate or
  6026.             target agent to request that the origin change the FlowSpec
  6027.             of an established stream.  The CHANGE-REQUEST message is
  6028.             propagated hop-by-hop to the origin, with an ACK at each
  6029.             hop.
  6030.  
  6031.             Any SrcRoute parameters in the targets of the TargetList are
  6032.             ignored.
  6033.  
  6034.                G (bit 8) is used to request a global, stream-wide
  6035.                change;  the TargetList parameter may be omitted when the
  6036.                G bit is specified.
  6037.  
  6038.  
  6039.     0                   1                   2                   3
  6040.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6041.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6042.    |  OpCode = 4   |G|      0      |           TotalBytes          |
  6043.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6044.    |             RVLId             |             SVLId             |
  6045.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6046.    |           Reference           |         LnkReference          |
  6047.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6048.    |                         SenderIPAddress                       |
  6049.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6050.    |            Checksum           |               0               |
  6051.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6052.    |                       DetectorIPAddress                       |
  6053.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6054.    !                         Name Parameter                        !
  6055.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6056.    :                       FlowSpec Parameter                      :
  6057.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6058.  
  6059.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6060.    :                     TargetList Parameter                      :
  6061.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6062.  
  6063.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6064.    :                      UserData Parameter                       :
  6065.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6066.  
  6067.                Figure 41.  CHANGE-REQUEST Control Message
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077. CIP Working Group                                             [Page 103]
  6078.  
  6079. RFC 1190                Internet Stream Protocol            October 1990
  6080.  
  6081.  
  6082.          4.2.3.4.         CHANGE
  6083.  
  6084.             CHANGE (OpCode = 3) is used to change the FlowSpec of an
  6085.             established stream.  Parameters are the same as for CONNECT
  6086.             but the TargetList is not required.  The CHANGE message is
  6087.             processed similarly to the CONNECT message, except that it
  6088.             travels along the path of an established stream.
  6089.  
  6090.             If the change to the FlowSpec is in a direction that makes
  6091.             fewer demands of the involved networks, then the change has
  6092.             a high probability of success along the path of the
  6093.             established stream.  Each ST agent receiving the CHANGE
  6094.             message makes the necessary requested changes to the network
  6095.             resource allocations, and if successful, propagates the
  6096.             CHANGE message along the established paths.  If the change
  6097.             cannot be made then the ST agent must recover using
  6098.             DISCONNECT and REFUSE messages as in the case of a network
  6099.             failure.  Note that a failure to change the resources
  6100.             requested for a specific target(s) should not cause other
  6101.             targets in the stream to be deleted.  The CHANGE must be
  6102.             ACKed.
  6103.  
  6104.             If the CHANGE is a result of a CHANGE-REQUEST the
  6105.             LnkReference field of the CHANGE will contain the value from
  6106.             the Reference field of the CHANGE-REQUEST.
  6107.  
  6108.             It is recommended that the origin only have one outstanding
  6109.             CHANGE per target;  if the application requests more that
  6110.             one to be outstanding at a time, it is the application's
  6111.             responsibility to deal with any sequencing problems that may
  6112.             arise.
  6113.  
  6114.             Any SrcRoute parameters in the targets of the
  6115.             TargetListParameter are ignored.
  6116.  
  6117.                G (bit 8) is used to request a global, stream-wide
  6118.                change;  the TargetList parameter may be omitted when the
  6119.                G bit is specified.
  6120.  
  6121.  
  6122.  
  6123.  
  6124.  
  6125.  
  6126.  
  6127.  
  6128.  
  6129.  
  6130.  
  6131.  
  6132.  
  6133.  
  6134.  
  6135.  
  6136. CIP Working Group                                             [Page 104]
  6137.  
  6138. RFC 1190                Internet Stream Protocol            October 1990
  6139.  
  6140.  
  6141.     0                   1                   2                   3
  6142.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6143.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6144.    |  OpCode = 3   |G|      0      |           TotalBytes          |
  6145.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6146.    |             RVLId             |             SVLId             |
  6147.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6148.    |           Reference           |         LnkReference          |
  6149.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6150.    |                         SenderIPAddress                       |
  6151.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6152.    |            Checksum           |               0               |
  6153.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6154.    |                       DetectorIPAddress                       |
  6155.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6156.    !                         Name Parameter                        !
  6157.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6158.    :                       FlowSpec Parameter                      :
  6159.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6160.  
  6161.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6162.    :                     TargetList Parameter                      :
  6163.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6164.  
  6165.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6166.    :                      UserData Parameter                       :
  6167.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6168.  
  6169.                    Figure 42.  CHANGE Control Message
  6170.  
  6171.  
  6172.  
  6173.  
  6174.          4.2.3.5.         CONNECT
  6175.  
  6176.             CONNECT (OpCode = 5) requests the setup of a new stream or
  6177.             an addition to or recovery of an existing stream.  Only the
  6178.             origin can issue the initial set of CONNECTs to setup a
  6179.             stream, and the first CONNECT to each next-hop is used to
  6180.             convey the initial suggestion for a HID.  If the stream's
  6181.             data packets will be sent to some set of next-hop ST agents
  6182.             by multicast then the CONNECTs to that set must suggest the
  6183.             same HID.  Otherwise, the HIDs in the various CONNECTs can
  6184.             be different.
  6185.  
  6186.             The CONNECT message must fit within the maximum allowable
  6187.             packet size (MTU) for the intervening network.  If a CONNECT
  6188.             message is too large, it must be fragmented into multiple
  6189.             CONNECT messages by partitioning the TargetList; see Section
  6190.             4.2 (page 77).  Any UserData parameter will be replicated in
  6191.             each fragment for delivery to all targets.
  6192.  
  6193.  
  6194.  
  6195. CIP Working Group                                             [Page 105]
  6196.  
  6197. RFC 1190                Internet Stream Protocol            October 1990
  6198.  
  6199.  
  6200.             The next-hop can initially respond with any of the following
  6201.             five responses:
  6202.  
  6203.              1  ERROR-IN-REQUEST, which implies that the CONNECT was
  6204.                 not valid and has been ignored,
  6205.  
  6206.              2  ACK, which implies that the CONNECT with the H bit not
  6207.                 set was valid and is being processed,
  6208.  
  6209.              3  HID-APPROVE, which implies that the CONNECT with the
  6210.                 H bit set was valid, and the suggested HID can be
  6211.                 used or was deferred,
  6212.  
  6213.              4  HID-REJECT, which implies that the CONNECT with the H
  6214.                 bit set was valid but the suggested HID cannot be
  6215.                 used and another must be suggested in a subsequent
  6216.                 HID-CHANGE message, or
  6217.  
  6218.              5  REFUSE, which implies that the CONNECT was valid but
  6219.                 the included list of targets in the REFUSE cannot be
  6220.                 processed for the stated reason.
  6221.  
  6222.             The next-hop will later relay back either an ACCEPT or
  6223.             REFUSE from each target not already specified in the REFUSE
  6224.             of case 5 above (note multiple targets may be included in a
  6225.             single REFUSE message).
  6226.  
  6227.             An intermediate ST agent that receives a CONNECT selects the
  6228.             next-hop ST agents, partitions the TargetList accordingly,
  6229.             reserves network resources in the direction toward the
  6230.             next-hop, updating the FlowSpec accordingly (see Section
  6231.             4.2.2.3 (page 81)), selects a proposed HID for each next-
  6232.             hop, and sends the resulting CONNECTs.
  6233.  
  6234.             If the intermediate ST agent that is processing a CONNECT
  6235.             fails to find a route to a target, then it responds with a
  6236.             REFUSE with the appropriate reason code.  If the next-hop to
  6237.             a target is by way of the network from which it received the
  6238.             CONNECT, then it sends a NOTIFY with the appropriate reason
  6239.             code (RouteBack).  In either case, the TargetList specifies
  6240.             the affected targets.  The intermediate ST agent will only
  6241.             route to and propagate a CONNECT to the targets for which it
  6242.             does not issue either an ERROR-IN-REQUEST or a REFUSE.
  6243.  
  6244.  
  6245.  
  6246.  
  6247.  
  6248.  
  6249.  
  6250.  
  6251.  
  6252.  
  6253.  
  6254. CIP Working Group                                             [Page 106]
  6255.  
  6256. RFC 1190                Internet Stream Protocol            October 1990
  6257.  
  6258.  
  6259.             The processing of a received CONNECT message requires care
  6260.             to avoid routing loops that could result from delays in
  6261.             propagating routing information among ST agents.  If a
  6262.             received CONNECT contains a new Name, a new stream should be
  6263.             created (unless the Virtual Link Identifier matches a known
  6264.             link in which case an ERROR-IN-REQUEST should be sent).  If
  6265.             the Name is known, there are four cases:
  6266.  
  6267.              1  the Virtual Link Identifier matches and the Target
  6268.                 matches a current Target -- the duplicate target
  6269.                 should be ignored.
  6270.  
  6271.              2  the Virtual Link Identifier matches but the Target is
  6272.                 new -- the stream should be expanded to include the
  6273.                 new target.
  6274.  
  6275.              3  the Virtual Link Identifier differs and the Target
  6276.                 matches a current Target -- an ERROR-IN-REQUEST
  6277.                 message should be sent specifying that the target is
  6278.                 involved in a routing loop.  If a reroute, the old
  6279.                 path will eventually timeout and send a DISCONNECT;
  6280.                 a subsequent retransmission of the rerouted CONNECT
  6281.                 will then be processed under case 2 above.
  6282.  
  6283.              4  the Virtual Link Identifier differs but the Target is
  6284.                 new -- a new (instance of the) stream should be
  6285.                 created for the target that is deliberately part of
  6286.                 a loop using a SrcRoute parameter.
  6287.  
  6288.  
  6289.             Note that the test for a known or matching Target includes
  6290.             comparing any SrcRoute parameter that might be present.
  6291.  
  6292.             Option bits are specified by either the origin's service
  6293.             user or by an intermediate agent, depending on the specific
  6294.             option.  Bits not specified below are currently unspecified,
  6295.             and should be set to zero (0) by the origin agent and not
  6296.             changed by other agents unless those agents know their
  6297.             meaning.
  6298.  
  6299.                H (bit 8) is used for the HID Field option; see Section
  6300.                3.6.1 (page 44).  It is set to one (1) only if the HID
  6301.                field contains either zero (when the HID selection is
  6302.                being deferred), or the proposed HID.  This bit is zero
  6303.                (0) if the HID field does not contain valid data and
  6304.                should be ignored.
  6305.  
  6306.                P (bit 9) is used for the PTP option; see Section 3.6.2
  6307.                (page 44).
  6308.  
  6309.                S (bit 10) is used for the NoRecovery option; see Section
  6310.                3.6.4 (page 46).
  6311.  
  6312.  
  6313. CIP Working Group                                             [Page 107]
  6314.  
  6315. RFC 1190                Internet Stream Protocol            October 1990
  6316.  
  6317.  
  6318.                TSP (bits 14 and 15) specifies the origin's proposal for
  6319.                the use of data packet timestamps; see Section 4 (page
  6320.                76).  Its values and semantics are:
  6321.  
  6322.                   00  No proposal.
  6323.                   01  Cannot insert timestamps.
  6324.                   10  Must always insert timestamps.
  6325.                   11  Can insert timestamps if requested.
  6326.  
  6327.                RVLId, the receiver's Virtual Link Identifier, is set to
  6328.                zero in all CONNECT messages until its value arrives in
  6329.                the SVLId field of an acknowledgment to the CONNECT.
  6330.  
  6331.                SVLId, the sender's Virtual Link Identifier, is set to a
  6332.                value chosen by each hop to facilitate efficient
  6333.                dispatching of subsequent control messages.
  6334.  
  6335.                HID is the identifier that will be used with data packets
  6336.                moving through the stream in the direction from the
  6337.                origin to the targets.  It is a hop-by-hop shorthand
  6338.                identifier for the stream's Name, and is chosen by each
  6339.                agent for the branch to the next-hop agents.  The
  6340.                contents of the HID field are only valid, and a HID-
  6341.                REJECT or HID-APPROVE reply may only be sent, when the
  6342.                HID Field option (H bit) is set (1).  If the HID Field
  6343.                option is specified and the proposed HID is zero, the
  6344.                selection of the HID is deferred to the receiving next-
  6345.                hop agent.  If the HID Field option is not set (H bit is
  6346.                0), then the HID field does not contain valid data and
  6347.                should be ignored;  see Section 3.6.1 (page 44).
  6348.  
  6349.                TargetList is the list of IP addresses of the target
  6350.                processes.  It is of arbitrary size up to the maximum
  6351.                allowed for packets traveling across the specific
  6352.                network.
  6353.  
  6354.  
  6355.  
  6356.  
  6357.  
  6358.  
  6359.  
  6360.  
  6361.  
  6362.  
  6363.  
  6364.  
  6365.  
  6366.  
  6367.  
  6368.  
  6369.  
  6370.  
  6371.  
  6372. CIP Working Group                                             [Page 108]
  6373.  
  6374. RFC 1190                Internet Stream Protocol            October 1990
  6375.  
  6376.  
  6377.     0                   1                   2                   3
  6378.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6379.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6380.    |  OpCode = 5   |H|P|S|  0  |TSP|           TotalBytes          |
  6381.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6382.    |            RVLId/0            |             SVLId             |
  6383.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6384.    |           Reference           |         LnkReference          |
  6385.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6386.    |                         SenderIPAddress                       |
  6387.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6388.    |            Checksum           |             HID/0             |
  6389.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6390.    |                       DetectorIPAddress                       |
  6391.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6392.    !                         Name Parameter                        !
  6393.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6394.    !                       Origin Parameter                        !
  6395.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6396.    :                      FlowSpec Parameter                       :
  6397.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6398.    :                      TargetList Parameter(s)                  :
  6399.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6400.  
  6401.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6402.    :                        Group Parameter                        :
  6403.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6404.  
  6405.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6406.    :                   MulticastAddress Parameter                  :
  6407.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6408.  
  6409.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6410.    :                     RecordRoute Parameter                     :
  6411.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6412.  
  6413.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6414.    :                      RFlowSpec Parameter                      :
  6415.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6416.  
  6417.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6418.    :                        RGroup Parameter                       :
  6419.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6420.  
  6421.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6422.    !                        RHID Parameter                         !
  6423.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6424.  
  6425.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6426.    :                      UserData Parameter                       :
  6427.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6428.  
  6429.                   Figure 43.  CONNECT Control Message
  6430.  
  6431. CIP Working Group                                             [Page 109]
  6432.  
  6433. RFC 1190                Internet Stream Protocol            October 1990
  6434.  
  6435.  
  6436.          4.2.3.6.         DISCONNECT
  6437.  
  6438.             DISCONNECT (OpCode = 6) is used by an origin to tear down an
  6439.             established stream or part of a stream, or by an
  6440.             intermediate agent that detects a failure between itself and
  6441.             its previous-hop, as distinguished by the ReasonCode.  The
  6442.             DISCONNECT message specifies the list of targets that are to
  6443.             be disconnected.  An ACK is required in response to a
  6444.             DISCONNECT message.  The DISCONNECT message is propagated
  6445.             all the way to the specified targets.  The targets are
  6446.             expected to terminate their participation in the stream.
  6447.  
  6448.             Note that in the case of a failure it may be advantageous to
  6449.             retain state information as the stream should be repaired
  6450.             shortly;  see Section 3.7.2 (page 52).
  6451.  
  6452.                G (bit 8) is used to request a DISCONNECT of all the
  6453.                stream's targets; the TargetList parameter may be omitted
  6454.                when the G bit is set (1).
  6455.  
  6456.  
  6457.     0                   1                   2                   3
  6458.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6459.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6460.    |  OpCode = 6   |G|      0      |           TotalBytes          |
  6461.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6462.    |             RVLId             |             SVLId             |
  6463.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6464.    |           Reference           |         LnkReference          |
  6465.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6466.    |                         SenderIPAddress                       |
  6467.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6468.    |            Checksum           |          ReasonCode           |
  6469.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6470.    |                       DetectorIPAddress                       |
  6471.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6472.    !                         Name Parameter                        !
  6473.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6474.  
  6475.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6476.    :                     TargetList Parameter                      :
  6477.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6478.  
  6479.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6480.    :                      UserData Parameter                       :
  6481.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6482.  
  6483.                  Figure 44.  DISCONNECT Control Message
  6484.  
  6485.  
  6486.  
  6487.  
  6488.  
  6489.  
  6490. CIP Working Group                                             [Page 110]
  6491.  
  6492. RFC 1190                Internet Stream Protocol            October 1990
  6493.  
  6494.  
  6495.          4.2.3.7.         ERROR-IN-REQUEST
  6496.  
  6497.             ERROR-IN-REQUEST (OpCode = 7) is sent in acknowledgment to a
  6498.             request in which an error is detected.  No action is taken
  6499.             on the erroneous request and no state information for the
  6500.             stream is retained.  Consequently it is appropriate for the
  6501.             SVLId to be zero (0).  No ACK is expected.
  6502.  
  6503.             An ERROR-IN-REQUEST is never sent in response to either an
  6504.             ERROR-IN-REQUEST or an ERROR-IN-RESPONSE;  however, the
  6505.             event should be logged for diagnostic purposes.  The
  6506.             receiver of an ERROR-IN-REQUEST is encouraged to try again
  6507.             without waiting for a retransmission timeout.
  6508.  
  6509.                Reference is the Reference number of the erroneous
  6510.                request.
  6511.  
  6512.  
  6513.     0                   1                   2                   3
  6514.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6515.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6516.    |  OpCode = 7   |       0       |           TotalBytes          |
  6517.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6518.    |             RVLId             |            SVLId/0            |
  6519.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6520.    |           Reference           |         LnkReference          |
  6521.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6522.    |                         SenderIPAddress                       |
  6523.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6524.    |            Checksum           |          ReasonCode           |
  6525.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6526.    |                       DetectorIPAddress                       |
  6527.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6528.  
  6529.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6530.    !                         Name Parameter                        !
  6531.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6532.  
  6533.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6534.    :                          ErroredPDU                           :
  6535.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6536.  
  6537.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6538.    :                      TargetList Parameter                     :
  6539.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6540.  
  6541.               Figure 45.  ERROR-IN-REQUEST Control Message
  6542.  
  6543.  
  6544.  
  6545.  
  6546.  
  6547.  
  6548.  
  6549. CIP Working Group                                             [Page 111]
  6550.  
  6551. RFC 1190                Internet Stream Protocol            October 1990
  6552.  
  6553.  
  6554.          4.2.3.8.         ERROR-IN-RESPONSE
  6555.  
  6556.             ERROR-IN-RESPONSE (OpCode = 8) is sent in acknowledgment to
  6557.             a response in which an error is detected.  No ACK is
  6558.             expected.  Action taken by the requester and responder will
  6559.             vary with the nature of the request.
  6560.  
  6561.             An ERROR-IN-REQUEST is never sent in response to either an
  6562.             ERROR-IN-REQUEST or an ERROR-IN-RESPONSE;  however, the
  6563.             event should be logged for diagnostic purposes.  The
  6564.             receiver of an ERROR-IN-RESPONSE is encouraged to try again
  6565.             without waiting for a retransmission timeout.
  6566.  
  6567.             Reference identifies the erroneous response.
  6568.  
  6569.  
  6570.     0                   1                   2                   3
  6571.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6572.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6573.    |  OpCode = 8   |       0       |           TotalBytes          |
  6574.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6575.    |             RVLId             |             SVLId             |
  6576.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6577.    |           Reference           |         LnkReference          |
  6578.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6579.    |                         SenderIPAddress                       |
  6580.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6581.    |            Checksum           |          ReasonCode           |
  6582.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6583.    |                       DetectorIPAddress                       |
  6584.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6585.  
  6586.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6587.    :                          ErroredPDU                           :
  6588.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6589.  
  6590.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6591.    !                         Name Parameter                        !
  6592.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6593.  
  6594.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6595.    :                      TargetList Parameter                     :
  6596.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6597.  
  6598.              Figure 46.  ERROR-IN-RESPONSE Control Message
  6599.  
  6600.  
  6601.  
  6602.  
  6603.  
  6604.  
  6605.  
  6606.  
  6607.  
  6608. CIP Working Group                                             [Page 112]
  6609.  
  6610. RFC 1190                Internet Stream Protocol            October 1990
  6611.  
  6612.  
  6613.          4.2.3.9.         HELLO
  6614.  
  6615.             HELLO (OpCode = 9) is used as part of the ST failure
  6616.             detection mechanism; see Section 3.7.1.2 (page 49).
  6617.  
  6618.                R (bit 8) is used for the Restarted bit.
  6619.  
  6620.                Reference is non-zero to inform the receiver that an ACK
  6621.                should be promptly sent so that the sender can update its
  6622.                round-trip time estimates.  If the Reference is zero, no
  6623.                ACK should be sent.
  6624.  
  6625.  
  6626.     0                   1                   2                   3
  6627.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6628.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6629.    |  OpCode = 9   |R|      0      |           TotalBytes          |
  6630.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6631.    |            RVLId/0            |             SVLId             |
  6632.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6633.    |          Reference/0          |         LnkReference          |
  6634.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6635.    |                         SenderIPAddress                       |
  6636.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6637.    |            Checksum           |               0               |
  6638.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6639.    |                          HelloTimer                           |
  6640.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6641.  
  6642.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6643.    !                        OriginTimestamp                        !
  6644.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6645.  
  6646.                    Figure 47.  HELLO Control Message
  6647.  
  6648.  
  6649.  
  6650.  
  6651.  
  6652.  
  6653.  
  6654.  
  6655.  
  6656.  
  6657.  
  6658.  
  6659.  
  6660.  
  6661.  
  6662.  
  6663.  
  6664.  
  6665.  
  6666.  
  6667. CIP Working Group                                             [Page 113]
  6668.  
  6669. RFC 1190                Internet Stream Protocol            October 1990
  6670.  
  6671.  
  6672.          4.2.3.10.        HID-APPROVE
  6673.  
  6674.             HID-APPROVE (OpCode = 10) is used by the agent that is
  6675.             responding to either a CONNECT or HID-CHANGE to agree to
  6676.             either use the proposed HID or to the addition or deletion
  6677.             of the specified HID.  In all cases but deletion, the newly
  6678.             approved HID is returned in the HID field;  for deletion,
  6679.             the HID field must be set to zero.  The HID-APPROVE is the
  6680.             acknowledgment of a CONNECT or HID-CHANGE.
  6681.  
  6682.             The optional FreeHIDs parameter provides the previous-hop
  6683.             agent with hints about what other HIDs are acceptable in
  6684.             case a multicast HID is being negotiated;  see Section
  6685.             4.2.2.4 (page 84).
  6686.  
  6687.             Since a HID-APPROVE might be the first response from a
  6688.             next-hop on a control link, the SVLId field may be the first
  6689.             source of the Virtual Link Identifier to be used in the
  6690.             RVLId field of subsequent control messages sent to that
  6691.             next-hop.
  6692.  
  6693.  
  6694.     0                   1                   2                   3
  6695.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6696.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6697.    |  OpCode = 10  |       0       |           TotalBytes          |
  6698.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6699.    |             RVLId             |             SVLId             |
  6700.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6701.    |           Reference           |         LnkReference          |
  6702.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6703.    |                         SenderIPAddress                       |
  6704.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6705.    |            Checksum           |              HID              |
  6706.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6707.    |                               0                               |
  6708.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6709.    !                         Name Parameter                        !
  6710.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6711.  
  6712.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6713.    :                      FreeHIDs Parameter                       :
  6714.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6715.  
  6716.                 Figure 48.  HID-APPROVE Control Message
  6717.  
  6718.  
  6719.  
  6720.  
  6721.  
  6722.  
  6723.  
  6724.  
  6725.  
  6726. CIP Working Group                                             [Page 114]
  6727.  
  6728. RFC 1190                Internet Stream Protocol            October 1990
  6729.  
  6730.  
  6731.          4.2.3.11.        HID-CHANGE-REQUEST
  6732.  
  6733.             HID-CHANGE-REQUEST (OpCode = 12) is used by a next-hop agent
  6734.             that would like, for administrative reasons, to change the
  6735.             HID that is in use.  The receiving previous-hop agent
  6736.             acknowledges the request by either an ERROR-IN-REQUEST if it
  6737.             is unwilling to make the requested change, or with a HID-
  6738.             CHANGE if it can accommodate the request.
  6739.  
  6740.                A (bit 8) is used to indicate that the specified HID
  6741.                should be included in the set of HIDs for the specified
  6742.                Name.  When a HID is added, the acknowledging HID-APPROVE
  6743.                should contain a HID field whose contents is the HID just
  6744.                added.
  6745.  
  6746.                D (bit 9) is used to indicate that the specified HID
  6747.                should be removed in the set of HIDs for the specified
  6748.                Name.  When a HID is deleted, the acknowledging HID-
  6749.                APPROVE should contain a HID field whose contents is
  6750.                zero.  Note that the Reference field may be used to
  6751.                determine the HID that has been deleted.
  6752.  
  6753.                If neither bit is set, the specified HID should replace
  6754.                that currently in use with the specified Name.
  6755.  
  6756.  
  6757.     0                   1                   2                   3
  6758.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6759.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6760.    |  OpCode = 12  |A|D|     0     |           TotalBytes          |
  6761.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6762.    |             RVLId             |             SVLId             |
  6763.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6764.    |           Reference           |         LnkReference          |
  6765.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6766.    |                         SenderIPAddress                       |
  6767.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6768.    |            Checksum           |              HID              |
  6769.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6770.    |                               0                               |
  6771.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6772.    !                         Name Parameter                        !
  6773.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6774.  
  6775.              Figure 49.  HID-CHANGE-REQUEST Control Message
  6776.  
  6777.  
  6778.  
  6779.  
  6780.  
  6781.  
  6782.  
  6783.  
  6784.  
  6785. CIP Working Group                                             [Page 115]
  6786.  
  6787. RFC 1190                Internet Stream Protocol            October 1990
  6788.  
  6789.  
  6790.          4.2.3.12.        HID-CHANGE
  6791.  
  6792.             HID-CHANGE (OpCode = 11) is used by the agent that issued a
  6793.             CONNECT and received a HID-REJECT to attempt to negotiate a
  6794.             suitable HID.  The HID in the HID-CHANGE message must be
  6795.             different from that in the CONNECT, or any previous HID-
  6796.             CHANGE messages for the given Name.  The agent receiving the
  6797.             HID-CHANGE must respond with a HID-APPROVE if the new HID is
  6798.             suitable, or a HID-REJECT if it is not.  In case of an
  6799.             error, either an ERROR-IN-REQUEST or a REFUSE may be
  6800.             returned as an acknowledgment.
  6801.  
  6802.             Since an agent may send CONNECT messages with the same HID
  6803.             to several next-hops in order to use multicast data
  6804.             transfer, any HID-CHANGE must also be sent to the same set
  6805.             of next-hops.  Therefore, a next-hop agent must be prepared
  6806.             to receive a HID-CHANGE before or after it has sent a HID-
  6807.             APPROVE response to the CONNECT or a previous HID-CHANGE.
  6808.             Only the last HID-CHANGE is relevant.  The previous-hop
  6809.             agent will ignore HID-APPROVE or HID-REJECT messages to
  6810.             previous CONNECT or HID-CHANGE messages.
  6811.  
  6812.             A DISCONNECT can be sent instead of a HID-CHANGE, or a
  6813.             REFUSE can be sent instead of a HID-APPROVE or HID-REJECT,
  6814.             to terminate fatally the HID negotiation and the agent's
  6815.             knowledge of the stream.
  6816.  
  6817.             The A and D bits are used to change a HID, e.g., when adding
  6818.             a new next-hop to a multicast group, in such a way that data
  6819.             packets that are flowing through the network will not be
  6820.             mishandled due to a race condition in processing the HID-
  6821.             CHANGE messages between the previous-hop and its next-hops.
  6822.             An implementation may choose to limit the number of
  6823.             simultaneous HIDs associated with a stream, but must allow
  6824.             at least two.
  6825.  
  6826.                A (bit 8) is used to indicate that the specified HID
  6827.                should be included in the set of HIDs for the specified
  6828.                Name.  When a HID is added, the acknowledging HID-APPROVE
  6829.                should contain a HID field whose contents is the HID just
  6830.                added.
  6831.  
  6832.                D (bit 9) is used to indicate that the specified HID
  6833.                should be removed from the set of HIDs for the specified
  6834.                Name.  When a HID is deleted, the acknowledging HID-
  6835.                APPROVE should contain a HID field whose contents is
  6836.                zero.  Note that the Reference field may be used to
  6837.                determine the HID that has been deleted.
  6838.  
  6839.                If neither bit is set, the specified HID should replace
  6840.                that currently in use for the specified Name.
  6841.  
  6842.  
  6843.  
  6844. CIP Working Group                                             [Page 116]
  6845.  
  6846. RFC 1190                Internet Stream Protocol            October 1990
  6847.  
  6848.  
  6849.     0                   1                   2                   3
  6850.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6851.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6852.    |  OpCode = 11  |A|D|     0     |           TotalBytes          |
  6853.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6854.    |             RVLId             |             SVLId             |
  6855.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6856.    |           Reference           |         LnkReference          |
  6857.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6858.    |                         SenderIPAddress                       |
  6859.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6860.    |            Checksum           |              HID              |
  6861.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6862.    |                               0                               |
  6863.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6864.    !                         Name Parameter                        !
  6865.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6866.  
  6867.                  Figure 50.  HID-CHANGE Control Message
  6868.  
  6869.  
  6870.  
  6871.  
  6872.  
  6873.  
  6874.  
  6875.  
  6876.  
  6877.  
  6878.  
  6879.  
  6880.  
  6881.  
  6882.  
  6883.  
  6884.  
  6885.  
  6886.  
  6887.  
  6888.  
  6889.  
  6890.  
  6891.  
  6892.  
  6893.  
  6894.  
  6895.  
  6896.  
  6897.  
  6898.  
  6899.  
  6900.  
  6901.  
  6902.  
  6903. CIP Working Group                                             [Page 117]
  6904.  
  6905. RFC 1190                Internet Stream Protocol            October 1990
  6906.  
  6907.  
  6908.          4.2.3.13.        HID-REJECT
  6909.  
  6910.             HID-REJECT (OpCode = 13) is used as an acknowledgment that a
  6911.             CONNECT or HID-CHANGE was received and is being processed,
  6912.             but means that the HID contained in the CONNECT or HID-
  6913.             CHANGE is not acceptable.  Upon receipt of this message the
  6914.             agent that issued the CONNECT or HID-CHANGE must now issue a
  6915.             HID-CHANGE to attempt to find a suitable HID.  The HID-
  6916.             CHANGE can cause another HID-REJECT but eventually the HID-
  6917.             CHANGE must be acknowledged with a HID-APPROVE to end
  6918.             successfully the HID negotiation.  The agent that issued the
  6919.             HID-REJECT may not issue an ACCEPT before it has found an
  6920.             acceptable HID.
  6921.  
  6922.             Since a HID-REJECT might be the first response from a next-
  6923.             hop on a control link, the SVLId field may be the first
  6924.             source of the Virtual Link Identifier to be used in the
  6925.             RVLId field of subsequent control messages sent to that
  6926.             next-hop.
  6927.  
  6928.             Either agent may terminate the negotiation by issuing either
  6929.             a DISCONNECT or a REROUTE.  The agent that issued the HID-
  6930.             REJECT may issue a REFUSE, or REROUTE at any time after the
  6931.             HID-REJECT.  In this case, the stream cannot be created, the
  6932.             HID negotiation need not proceed, and the previous-hop need
  6933.             not transmit any further messages;  any further messages
  6934.             that are received should be ignored.
  6935.  
  6936.             The optional FreeHIDs parameter provides the previous-hop
  6937.             agent with hints about what HIDs would have been acceptable;
  6938.             see Section 4.2.2.4 (page 84).
  6939.  
  6940.  
  6941.  
  6942.  
  6943.  
  6944.  
  6945.  
  6946.  
  6947.  
  6948.  
  6949.  
  6950.  
  6951.  
  6952.  
  6953.  
  6954.  
  6955.  
  6956.  
  6957.  
  6958.  
  6959.  
  6960.  
  6961.  
  6962. CIP Working Group                                             [Page 118]
  6963.  
  6964. RFC 1190                Internet Stream Protocol            October 1990
  6965.  
  6966.  
  6967.     0                   1                   2                   3
  6968.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  6969.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6970.    |  OpCode = 13  |       0       |           TotalBytes          |
  6971.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6972.    |             RVLId             |             SVLId             |
  6973.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6974.    |           Reference           |         LnkReference          |
  6975.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6976.    |                         SenderIPAddress                       |
  6977.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6978.    |            Checksum           |          RejectedHID          |
  6979.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6980.    |                               0                               |
  6981.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6982.    !                         Name Parameter                        !
  6983.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6984.  
  6985.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6986.    :                      FreeHIDs Parameter                       :
  6987.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  6988.  
  6989.                  Figure 51.  HID-REJECT Control Message
  6990.  
  6991.  
  6992.  
  6993.  
  6994.  
  6995.  
  6996.  
  6997.  
  6998.  
  6999.  
  7000.  
  7001.  
  7002.  
  7003.  
  7004.  
  7005.  
  7006.  
  7007.  
  7008.  
  7009.  
  7010.  
  7011.  
  7012.  
  7013.  
  7014.  
  7015.  
  7016.  
  7017.  
  7018.  
  7019.  
  7020.  
  7021. CIP Working Group                                             [Page 119]
  7022.  
  7023. RFC 1190                Internet Stream Protocol            October 1990
  7024.  
  7025.  
  7026.          4.2.3.14.        NOTIFY
  7027.  
  7028.             NOTIFY (OpCode = 14) is issued by a an agent to inform other
  7029.             agents, the origin, or target(s) of events that may be
  7030.             significant.  The action taken by the receiver of a NOTIFY
  7031.             depends on the ReasonCode.  Possible events are suspected
  7032.             routing problems or resource allocation changes that occur
  7033.             after a stream has been established.  These changes occur
  7034.             when network components fail and when competing streams
  7035.             preempt resources previously reserved by a lower precedence
  7036.             stream.  We also anticipate that NOTIFY can be used in the
  7037.             future when additional resources become available, as is the
  7038.             case when network components recover or when higher
  7039.             precedence streams are deleted.
  7040.  
  7041.             NOTIFY may contain a FlowSpec that reflects that revised
  7042.             guarantee that can be promised to the stream.  NOTIFY may
  7043.             also identify those targets that are affected by the change.
  7044.             In this way, NOTIFY is similar to ACCEPT.
  7045.  
  7046.             NOTIFY may be relayed by the ST agents back to the origin,
  7047.             along the path established by the CONNECT but in the reverse
  7048.             direction.  It is up to the origin to decide whether a
  7049.             CHANGE should be submitted.
  7050.  
  7051.             When NOTIFY is received at the origin, the application
  7052.             should be notified of the target and the change in resources
  7053.             allocated along the path to it, as specified in the FlowSpec
  7054.             contained in the NOTIFY message.  The application may then
  7055.             use the information to either adjust or terminate the
  7056.             portion of the stream to each affected target.
  7057.  
  7058.             The NOTIFY may be propagated beyond the previous-hop or
  7059.             next-hop agent; it must be acknowledged with an ACK.
  7060.  
  7061.                Reference contains a number assigned by the agent sending
  7062.                the NOTIFY for use in the acknowledging ACK.
  7063.  
  7064.                ReasonCode identifies the reason for the notification.
  7065.  
  7066.                LnkReference, when non-zero, is the Reference number from
  7067.                a command that is the subject of the notification.
  7068.  
  7069.                HID is present when the notification is related to a HID.
  7070.  
  7071.                Name is present when the notification is related to a
  7072.                stream.
  7073.  
  7074.  
  7075.  
  7076.  
  7077.  
  7078.  
  7079.  
  7080. CIP Working Group                                             [Page 120]
  7081.  
  7082. RFC 1190                Internet Stream Protocol            October 1990
  7083.  
  7084.  
  7085.                NextHopIPAddress is an optional parameter and contains
  7086.                the IP address of a suggested next-hop ST agent.
  7087.  
  7088.                TargetList is present when the notification is related to
  7089.                one or more targets.
  7090.  
  7091.  
  7092.     0                   1                   2                   3
  7093.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  7094.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7095.    |  OpCode = 14  |       0       |           TotalBytes          |
  7096.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7097.    |             RVLId             |             SVLId             |
  7098.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7099.    |           Reference           |         LnkReference          |
  7100.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7101.    |                         SenderIPAddress                       |
  7102.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7103.    |            Checksum           |          ReasonCode           |
  7104.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7105.    |                       DetectorIPAddress                       |
  7106.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7107.  
  7108.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7109.    :                          ErroredPDU                           :
  7110.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7111.  
  7112.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7113.    :                      FlowSpec Parameter                       :
  7114.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7115.  
  7116.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7117.    !                         HID Parameter                         !
  7118.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7119.  
  7120.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7121.    !                         Name Parameter                        !
  7122.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7123.  
  7124.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7125.    !                  NextHopIPAddress Parameter                   !
  7126.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7127.  
  7128.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7129.    :                     RecordRoute Parameter                     :
  7130.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7131.  
  7132.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7133.    :                      TargetList Parameter                     :
  7134.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7135.  
  7136.                 Figure 52.  NOTIFY Control Message
  7137.  
  7138.  
  7139. CIP Working Group                                             [Page 121]
  7140.  
  7141. RFC 1190                Internet Stream Protocol            October 1990
  7142.  
  7143.  
  7144.          4.2.3.15.        REFUSE
  7145.  
  7146.             REFUSE (OpCode = 15) is issued by a target that either does
  7147.             not wish to accept a CONNECT message or wishes to remove
  7148.             itself from an established stream.  It might also be issued
  7149.             by an intermediate agent in response to a CONNECT or CHANGE
  7150.             either to terminate fatally a failing HID negotiation, to
  7151.             terminate a routing loop, or when a satisfactory next-hop to
  7152.             a target cannot be found.  It may also be a separate command
  7153.             when an existing stream has been preempted by a higher
  7154.             precedence stream or an agent detects the failure of a
  7155.             previous-hop, next-hop, or the network between them.  In all
  7156.             cases, the TargetList specifies the targets that are
  7157.             affected by the condition.  Each REFUSE must be acknowledged
  7158.             by an ACK.
  7159.  
  7160.             The REFUSE is relayed by the agents from the originating
  7161.             agent to the origin (or intermediate agent that created the
  7162.             CONNECT or CHANGE) along the path traced by the CONNECT.
  7163.             The agent receiving the REFUSE will process it differently
  7164.             depending on the condition that caused it, as specified in
  7165.             the ReasonCode field.  In some cases, such as if a next-hop
  7166.             cannot obtain resources, the agent can release any resources
  7167.             reserved exclusively for transmissions in the stream in
  7168.             question to the target specified in the TargetList, and the
  7169.             previous-hop can attempt to find an alternate route.  In
  7170.             some cases, such as a routing failure, the previous-hop
  7171.             cannot determine where the failure occurred, and must
  7172.             propagate the REFUSE back to the origin, which can attempt
  7173.             recovery of the stream by issuing a new CONNECT.
  7174.  
  7175.             No special effort is made to combine multiple REFUSE
  7176.             messages since it is considered most unlikely that separate
  7177.             REFUSEs will happen to both pass through an agent at the
  7178.             same time and be easily combined, e.g., have identical
  7179.             ReasonCodes and parameters.
  7180.  
  7181.             Since a REFUSE might be the first response from a next-hop
  7182.             on a control link, the SVLId field may be the first source
  7183.             of the Virtual Link Identifier to be used in the RVLId field
  7184.             of subsequent control messages sent to that next-hop.
  7185.  
  7186.                Reference contains a number assigned by the agent sending
  7187.                the REFUSE for use in the acknowledging ACK.
  7188.  
  7189.                LnkReference is either the Reference number from the
  7190.                corresponding CONNECT or CHANGE, if it is the result of
  7191.                such a message, or zero when the REFUSE was originated as
  7192.                a separate command.
  7193.  
  7194.  
  7195.  
  7196.  
  7197.  
  7198. CIP Working Group                                             [Page 122]
  7199.  
  7200. RFC 1190                Internet Stream Protocol            October 1990
  7201.  
  7202.  
  7203.     0                   1                   2                   3
  7204.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  7205.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7206.    |  OpCode = 15  |       0       |           TotalBytes          |
  7207.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7208.    |             RVLId             |             SVLId             |
  7209.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7210.    |           Reference           |         LnkReference          |
  7211.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7212.    |                         SenderIPAddress                       |
  7213.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7214.    |            Checksum           |          ReasonCode           |
  7215.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7216.    |                       DetectorIPAddress                       |
  7217.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7218.    !                        Name Parameter                         !
  7219.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7220.    :                     TargetList Parameter                      :
  7221.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7222.  
  7223.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7224.    :                          ErroredPDU                           :
  7225.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7226.  
  7227.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7228.    :                     RecordRoute Parameter                     :
  7229.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7230.  
  7231.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7232.    :                      UserData Parameter                       :
  7233.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7234.  
  7235.                    Figure 53.  REFUSE Control Message
  7236.  
  7237.  
  7238.  
  7239.  
  7240.  
  7241.  
  7242.  
  7243.  
  7244.  
  7245.  
  7246.  
  7247.  
  7248.  
  7249.  
  7250.  
  7251.  
  7252.  
  7253.  
  7254.  
  7255.  
  7256.  
  7257. CIP Working Group                                             [Page 123]
  7258.  
  7259. RFC 1190                Internet Stream Protocol            October 1990
  7260.  
  7261.  
  7262.          4.2.3.16.        STATUS
  7263.  
  7264.             STATUS (OpCode = 16) is used to inquire about the existence
  7265.             of a particular stream identified by either a HID (H bit
  7266.             set) or Name (Name Parameter present).
  7267.  
  7268.             When a stream has been identified, a STATUS-RESPONSE is
  7269.             returned that will contain the specified HID and/or Name but
  7270.             no other parameters if the specified stream is unknown, or
  7271.             will otherwise contain the current HID(s), Name, FlowSpec,
  7272.             TargetList, and possibly Group(s) of the stream.  Note that
  7273.             if a stream has no current HID, the HID field in the
  7274.             STATUS-RESPONSE will contain zero;  it will contain the
  7275.             first, or only, HID if a valid HID exists; additional valid
  7276.             HIDs will be returned in HID parameters.
  7277.  
  7278.             Use of STATUS is intended for diagnostic purposes and to
  7279.             assist in stream cleanup operations.  Note that if both a
  7280.             HID and Name are specified, but they do not correspond to
  7281.             the same stream, an ERROR-IN-REQUEST with the appropriate
  7282.             reason code (InconsistHID) would be returned.
  7283.  
  7284.             It is possible in cases of multiple failures or network
  7285.             partitioning for an ST agent to have information about a
  7286.             stream after the stream has either ceased to exist or has
  7287.             been rerouted around the agent.  When an agent concludes
  7288.             that a stream has not been used for a period of time and
  7289.             might no longer be valid, it can probe the stream's
  7290.             previous-hop or next-hop(s) to see if they believe that the
  7291.             stream still exists through the interrogating agent.  If
  7292.             not, those hops would reply with a STATUS-RESPONSE that
  7293.             contains the HID and/or Name but no other parameters;
  7294.             otherwise, if the stream is still valid, the hops would
  7295.             reply with the parameters of the stream.
  7296.  
  7297.                H (bit 8) is used to indicate whether (when 1) or not
  7298.                (when 0) a HID is present in the HID field.
  7299.  
  7300.                Q (bit 9) is set to one (1) for remote diagnostic
  7301.                purposes when the receiving agent should return a
  7302.                stream's parameters, whether or not the source of the
  7303.                message is believed to be a previous-hop or next-hop in
  7304.                the specified stream.  Note that this use has potential
  7305.                for disclosure of sensitive information.
  7306.  
  7307.                RVLId and SVLId may either or both be zero when STATUS is
  7308.                used for diagnostic purposes.
  7309.  
  7310.  
  7311.  
  7312.  
  7313.  
  7314.  
  7315.  
  7316. CIP Working Group                                             [Page 124]
  7317.  
  7318. RFC 1190                Internet Stream Protocol            October 1990
  7319.  
  7320.  
  7321.     0                   1                   2                   3
  7322.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  7323.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7324.    |  OpCode = 16  |H|Q|     0     |           TotalBytes          |
  7325.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7326.    |            RVLId/0            |            SVLId/0            |
  7327.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7328.    |           Reference           |         LnkReference          |
  7329.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7330.    |                         SenderIPAddress                       |
  7331.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7332.    |            Checksum           |             HID/0             |
  7333.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7334.    |                               0                               |
  7335.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7336.  
  7337.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7338.    !                         Name Parameter                        !
  7339.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7340.  
  7341.                    Figure 54.  STATUS Control Message
  7342.  
  7343.  
  7344.  
  7345.  
  7346.  
  7347.  
  7348.  
  7349.  
  7350.  
  7351.  
  7352.  
  7353.  
  7354.  
  7355.  
  7356.  
  7357.  
  7358.  
  7359.  
  7360.  
  7361.  
  7362.  
  7363.  
  7364.  
  7365.  
  7366.  
  7367.  
  7368.  
  7369.  
  7370.  
  7371.  
  7372.  
  7373.  
  7374.  
  7375. CIP Working Group                                             [Page 125]
  7376.  
  7377. RFC 1190                Internet Stream Protocol            October 1990
  7378.  
  7379.  
  7380.          4.2.3.17.        STATUS-RESPONSE
  7381.  
  7382.             STATUS-RESPONSE (OpCode = 17) is the reply to a STATUS
  7383.             message.  If the stream specified in the STATUS message is
  7384.             not known, the STATUS-RESPONSE will contain the specified
  7385.             HID and/or Name but no other parameters.  It will otherwise
  7386.             contain the current HID(s), Name, FlowSpec, TargetList, and
  7387.             possibly Group of the stream.  Note that if a stream has no
  7388.             current HID, the H bit in the STATUS-RESPONSE will be zero.
  7389.             The HID field will contain the first, or only, HID if a
  7390.             valid HID exists; additional valid HIDs will be returned in
  7391.             HID parameters.
  7392.  
  7393.                H (bit 8) is used to indicate whether (when 1) or not
  7394.                (when 0) a HID is present in the HID field.
  7395.  
  7396.  
  7397.     0                   1                   2                   3
  7398.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  7399.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7400.    |  OpCode = 17  |H|Q|     0     |           TotalBytes          |
  7401.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7402.    |            RVLId/0            |            SVLId/0            |
  7403.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7404.    |           Reference           |         LnkReference          |
  7405.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7406.    |                         SenderIPAddress                       |
  7407.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7408.    |            Checksum           |             HID/0             |
  7409.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7410.    |                               0                               |
  7411.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7412.    !                         Name Parameter                        !
  7413.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7414.  
  7415.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7416.    :                       FlowSpec Parameter                      :
  7417.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7418.  
  7419.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7420.    :                        Group Parameter                        :
  7421.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7422.  
  7423.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7424.    !                         HID Parameter                         !
  7425.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7426.  
  7427.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7428.    :                      TargetList Parameter                     :
  7429.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  7430.  
  7431.                    Figure 55.  STATUS-RESPONSE Control Message
  7432.  
  7433.  
  7434. CIP Working Group                                             [Page 126]
  7435.  
  7436. RFC 1190                Internet Stream Protocol            October 1990
  7437.  
  7438.  
  7439.    4.3.       Suggested Protocol Constants
  7440.  
  7441.       The ST Protocol uses several fields that must have specific values
  7442.       for the protocol to work, and also several values that an
  7443.       implementation must select.  This section specifies the required
  7444.       values and suggests initial values for others.  It is recommended
  7445.       that the latter be implemented as variables so that they may be
  7446.       easily changed when experience indicates better values.
  7447.       Eventually, they should be managed via the normal network
  7448.       management facilities.
  7449.  
  7450.       ST uses IP Version Number 5.
  7451.  
  7452.       When encapsulated in IP, ST uses IP Protocol Number 5.
  7453.  
  7454.  
  7455.        Value  ST Command Message Name       Value     ST Element Name
  7456.       ------- -----------------------      ------- ---------------------
  7457.  
  7458.          1    ACCEPT                          1    ErroredPDU
  7459.          2    ACK                             2    FlowSpec
  7460.          3    CHANGE                          3    FreeHIDs
  7461.          4    CHANGE-REQUEST                  4    Group
  7462.          5    CONNECT                         5    HID
  7463.          6    DISCONNECT                      6    MulticastAddress
  7464.          7    ERROR-IN-REQUEST                7    Name
  7465.          8    ERROR-IN-RESPONSE               8    NextHopIPAddress
  7466.          9    HELLO                           9    Origin
  7467.         10    HID-APPROVE                    10    OriginTimestamp
  7468.         11    HID-CHANGE                     11    RecordRoute
  7469.         12    HID-CHANGE-REQUEST             12    RFlowSpec
  7470.         13    HID-REJECT                     13    RGroup
  7471.         14    NOTIFY                         14    RHID
  7472.         15    REFUSE                         15    RName
  7473.         16    STATUS                         16    SrcRoute, IP Loose
  7474.         17    STATUS-RESPONSE                17    SrcRoute, IP Strict
  7475.                                              18    SrcRoute, ST Loose
  7476.                                              19    SrcRoute, ST Strict
  7477.                                              20    TargetList
  7478.                                              21    UserData
  7479.  
  7480.  
  7481.       A good choice for the minimum number of bits in the FreeHIDBitMask
  7482.       element of the FreeHIDs parameter is not yet known.  We suggest a
  7483.       minimum of 64 bits, i.e., N in Figure 25 has a value of two (2).
  7484.  
  7485.  
  7486.       HID value zero (0) is reserved for ST Control Messages.  HID
  7487.       values 1-3 are reserved for future use.
  7488.  
  7489.  
  7490.  
  7491.  
  7492.  
  7493. CIP Working Group                                             [Page 127]
  7494.  
  7495. RFC 1190                Internet Stream Protocol            October 1990
  7496.  
  7497.  
  7498.       VLId value zero (0) may only be used in the RVLId field of an ST
  7499.       Control Message when the appropriate value has not yet been
  7500.       received from the other end of the virtual link;' except for an
  7501.       ERROR-IN-REQUEST or diagnostic message, the SVLId field may never
  7502.       contain a value of zero except in a diagnostic message.  VLId
  7503.       value 1 is reserved for use with HELLO messages by those agents
  7504.       whose implementation wishes to have all HELLOs so identified.
  7505.       VLId values 2-3 are reserved for future use.
  7506.  
  7507.  
  7508.       The following permanent IP multicast addresses have been assigned
  7509.       to ST:
  7510.  
  7511.          224.0.0.7    All ST routers
  7512.          224.0.0.8    All ST hosts
  7513.  
  7514.       In addition, a block of transient IP multicast addresses,
  7515.       224.1.0.0 - 224.1.255.255, has been allocated for ST multicast
  7516.       groups.  Note that in the case of Ethernet, an ST Multicast
  7517.       address of 224.1.cc.dd maps to an Ethernet Multicast address of
  7518.       01:00:5E:01:cc:dd (see [6]).
  7519.  
  7520.  
  7521.       SCMP uses retransmission to effect reliability and thus has
  7522.       several "retransmission timers".  Each "timer" is modeled by an
  7523.       initial time interval (ToXxx), which gets updated dynamically
  7524.       through measurement of control traffic, and a number of times
  7525.       (NXxx) to retransmit a message before declaring a failure.  All
  7526.       time intervals are in units of milliseconds.
  7527.  
  7528.  
  7529.        Value   Timeout  Name                      Meaning
  7530.       ------- ---------------------- ----------------------------------
  7531.  
  7532.         1000  ToAccept               Initial hop-by-hop timeout for
  7533.                                      acknowledgment of ACCEPT
  7534.  
  7535.            3  NAccept                ACCEPT retries before failure
  7536.  
  7537.         1000  ToConnect              Initial hop-by-hop timeout for
  7538.                                      acknowledgment of CONNECT
  7539.  
  7540.            5  NConnect               CONNECT retries before failure
  7541.  
  7542.         1000  ToDisconnect           Initial hop-by-hop timeout for
  7543.                                      acknowledgment of DISCONNECT
  7544.  
  7545.           3   NDisconnect            DISCONNECT retries before
  7546.                                      failure
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  
  7552. CIP Working Group                                             [Page 128]
  7553.  
  7554. RFC 1190                Internet Stream Protocol            October 1990
  7555.  
  7556.  
  7557.        Value   Timeout  Name                      Meaning
  7558.       ------- ---------------------- ----------------------------------
  7559.  
  7560.         1000  ToHIDAck               Initial hop-by-hop timeout for
  7561.                                      acknowledgment of
  7562.                                      HID-CHANGE-REQUEST
  7563.  
  7564.            3  NHIDAck                HID-CHANGE-REQUEST retries
  7565.                                      before failure
  7566.  
  7567.         1000  ToHIDChange            Initial hop-by-hop timeout for
  7568.                                      acknowledgment of HID-CHANGE
  7569.  
  7570.            3  NHIDChange             HID-CHANGE retries before
  7571.                                      failure
  7572.  
  7573.         1000  ToNotify               Initial hop-by-hop timeout for
  7574.                                      acknowledgment of NOTIFY
  7575.  
  7576.            3  NNotify                NOTIFY retries before failure
  7577.  
  7578.         1000  ToRefuse               Initial hop-by-hop timeout for
  7579.                                      acknowledgment of REFUSE
  7580.  
  7581.            3  NRefuse                REFUSE retries before failure
  7582.  
  7583.         1000  ToReroute              Timeout for receipt of ACCEPT or
  7584.                                      REFUSE from targets during
  7585.                                      failure recovery
  7586.  
  7587.            5  NReroute               CONNECT retries before failure
  7588.  
  7589.         5000  ToEnd2End              End-to-End timeout for receipt
  7590.                                      of ACCEPT or REFUSE from targets
  7591.                                      by origin
  7592.  
  7593.            0  NEnd2End               CONNECT retries before failure
  7594.  
  7595.  
  7596.  
  7597.  
  7598.  
  7599.  
  7600.  
  7601.  
  7602.  
  7603.  
  7604.  
  7605.  
  7606.  
  7607.  
  7608.  
  7609.  
  7610.  
  7611. CIP Working Group                                             [Page 129]
  7612.  
  7613. RFC 1190                Internet Stream Protocol            October 1990
  7614.  
  7615.  
  7616.        Value   Parameter  Name                    Meaning
  7617.       ------- ---------------------- ----------------------------------
  7618.  
  7619.           10  NHIDAbort              Number of rejected HID proposals
  7620.                                      before aborting the HID
  7621.                                      negotiation process
  7622.  
  7623.        10000  HelloTimerHoldDown     Interval that Restarted bit must
  7624.                                      be set after ST restart
  7625.  
  7626.            5  HelloLossFactor        Number of consecutively missed
  7627.                                      HELLO messages before declaring
  7628.                                      link failure
  7629.  
  7630.         2000  DefaultRecoveryTimeout Interval between successive
  7631.                                      HELLOs to/from active neighbors
  7632.  
  7633.            2  DefaultHelloFactor     HELLO filtering function factor
  7634.  
  7635.  
  7636.  
  7637.  
  7638.  
  7639.  
  7640.  
  7641.  
  7642.  
  7643.  
  7644.  
  7645.  
  7646.  
  7647.  
  7648.  
  7649.  
  7650.  
  7651.  
  7652.  
  7653.  
  7654.  
  7655.  
  7656.  
  7657.  
  7658.  
  7659.  
  7660.  
  7661.  
  7662.  
  7663.  
  7664.  
  7665.  
  7666.  
  7667.  
  7668.  
  7669.  
  7670. CIP Working Group                                             [Page 130]
  7671.  
  7672. RFC 1190                Internet Stream Protocol            October 1990
  7673.  
  7674.  
  7675. 5.      Areas Not Addressed
  7676.  
  7677.    There are a number of issues that will need to be addressed in the
  7678.    long run but are not addressed here.  Some issues are network or
  7679.    implementation specific.  For example, the management of multicast
  7680.    groups depends on the interface that a network provides to the ST
  7681.    agent, and an UP/DOWN protocol based on ST HELLO messages depends on
  7682.    the details of the ST agents.  Both these examples may impact the ST
  7683.    implementations, but we feel it is inappropriate to specify them
  7684.    here.
  7685.  
  7686.    In other cases we feel that appropriate solutions are not clear at
  7687.    this time.  The following are examples of such issues:
  7688.  
  7689.    This document does not include a routing mechanism.  We do not feel
  7690.    that a routing strategy based on minimizing the number of hops from
  7691.    the source to the destination is necessarily appropriate.  An
  7692.    alternative strategy is to minimize the consumption of internet
  7693.    resources within some delay constraints.  Furthermore, it would be
  7694.    preferable if the routing function were to provide routes that
  7695.    incorporated bandwidth, delay, reliability, and perhaps other
  7696.    characteristics, not just connectivity.  This would increase the
  7697.    likelihood that a selected route would succeed.  This requirement
  7698.    would probably cause the ST agents to exchange more routing
  7699.    information than currently implemented.  We feel that further
  7700.    research and experimentation will be required before an appropriate
  7701.    routing strategy is well enough defined to be incorporated into the
  7702.    ST specification.
  7703.  
  7704.    Once the bandwidth for a stream has been agreed upon, it is not
  7705.    sufficient to rely on the origin to transmit traffic at that rate.
  7706.    The internet should not rely on the origin to operate properly.
  7707.    Furthermore, even if the origin sources traffic at the agreed rate,
  7708.    the packets may become aggregated unintentionally and cause local
  7709.    congestion.  There are several approaches to addressing this problem,
  7710.    such as metering the traffic in each stream as it passes through each
  7711.    agent.  Experimentation is necessary before such a mechanism is
  7712.    selected.
  7713.  
  7714.    The interface between the agent and the network is very limited.  A
  7715.    mechanism is provided by which the ST layer can query the network to
  7716.    determine the likelihood that a stream can be supported.  However,
  7717.    this facility will require practical experience before its
  7718.    appropriate use is defined.
  7719.  
  7720.    The simplex tree model of a stream does not easily allow for using
  7721.    multiple paths to support a greater bandwidth.  That is, at any given
  7722.    point in a stream, the entire incoming bandwidth must be transmitted
  7723.    to the same next-hop in order to get to some target.  If the
  7724.    bandwidth isn't available along any single path, the stream cannot be
  7725.    built to that target.  It may be the case that the bandwidth is not
  7726.    available along a single path, but if the data
  7727.  
  7728.  
  7729. CIP Working Group                                             [Page 131]
  7730.  
  7731. RFC 1190                Internet Stream Protocol            October 1990
  7732.  
  7733.  
  7734.    flow is split along multiple paths, and so multiple next-hops,
  7735.    sufficient bandwidth would be available.  As currently specified, the
  7736.    ST agent at the point where the multiple flows converge will refuse
  7737.    the second connection because it can only be interpreted as a routing
  7738.    failure.  A mechanism that allows multiple paths in a stream and can
  7739.    protect against routing failures has not been defined.
  7740.  
  7741.    If sufficient bandwidth is not available, both preemption and
  7742.    rerouting are possible.  However, it is not clear when to use one or
  7743.    the other.  As currently specified, an ST agent that cannot obtain
  7744.    sufficient bandwidth will attempt to preempt lower precedence streams
  7745.    before attempting to reroute around the bottleneck.  This may lead to
  7746.    an undesirably high number of preemptions.  It may be that a higher
  7747.    precedence stream can be rerouted around lower precedence streams and
  7748.    still meet its performance requirements, whereas the preempted lower
  7749.    precedence streams cannot be reconstructed and still meet their
  7750.    performance requirements.  A simple and effective algorithm to allow
  7751.    a better decision has not been identified.
  7752.  
  7753.    In case a stream cannot be completed, ST does not report to the
  7754.    application the nature of the trouble in any great detail.
  7755.    Specifically, the application cannot determine where the bottleneck
  7756.    is, whether the problem is permanent or transitory, or the likely
  7757.    time before the trouble may be resolved.  The application can only
  7758.    attempt to build the stream at some later time hoping that the
  7759.    trouble has been resolved.  Schemes can be envisioned by which
  7760.    information is relayed back to the application.  However, only
  7761.    practical experience can evaluate the kind of trouble that is most
  7762.    likely encountered and the nature of information that would be most
  7763.    useful to the application.
  7764.  
  7765.    A mechanism is also not defined for cases where a stream cannot be
  7766.    completed not because of lack of resources but because of an
  7767.    unexpected failure that results in an ERROR-IN-REQUEST message.  An
  7768.    ERROR-IN-REQUEST message is returned in cases when an ST agent issues
  7769.    a malformed control message to a neighbor.  Such an occurrence is
  7770.    unexpected and may be caused by a bad or incomplete ST
  7771.    implementation.  In some cases a message, such as a NOTIFY should be
  7772.    sent to the origin.  Such a mechanism is not defined because it is
  7773.    not clear what information can be extracted and what the origin
  7774.    should do.
  7775.  
  7776.    No special action is taken when a target is removed from a stream.
  7777.    Removing a target may also remove a bottleneck either in bandwidth,
  7778.    packet rate or packet size, but advantage of this opportunity is not
  7779.    taken automatically.  The application may initiate a change to the
  7780.    stream's characteristics, but it is not in the best position to do
  7781.    this because the application may not know the nature of the
  7782.    bottleneck.  The ST layer may have the best information, but a
  7783.  
  7784.  
  7785.  
  7786.  
  7787.  
  7788. CIP Working Group                                             [Page 132]
  7789.  
  7790. RFC 1190                Internet Stream Protocol            October 1990
  7791.  
  7792.  
  7793.    mechanism to do this may be very complex.  As a result, this concept
  7794.    requires further thought.
  7795.  
  7796.    An agent simply discards a stream's data packets if it cannot forward
  7797.    them.  The reason may be that the packets are too large or are
  7798.    arriving at too high a rate.  Alternative actions may include an
  7799.    attempt to do something with the packets, such as fragmenting them,
  7800.    or to notify the origin of the trouble.  Corrective measures may be
  7801.    too complex, so it may be preferable simply to notify the origin with
  7802.    a NOTIFY message.  However, if the incoming packet rate is causing
  7803.    congestion, then the NOTIFY messages themselves may cause more
  7804.    trouble.  The nature of the communication has yet to be defined.
  7805.  
  7806.    The FlowSpec includes a cost field, but its implementation has not
  7807.    been identified.  The units of cost can probably be defined
  7808.    relatively easily.  Cost of bandwidth can probably also be assigned.
  7809.    It is not clear how cost is assigned to other functions, such as high
  7810.    precedence or low delay, or how cost of the components of the stream
  7811.    are combined together.  It is clear that the cost to provide services
  7812.    will become more important in the near future, but it is not clear at
  7813.    this time how that cost is determined.
  7814.  
  7815.    A number of parameters of the FlowSpec are intended to be used as
  7816.    ranges, but some may be useful as discrete values.  For example, the
  7817.    FlowSpec may specify that bandwidth for a stream carrying voice
  7818.    should be reserved in a range from 16Kbps to 64Kbps because the voice
  7819.    codec has a variable coding rate.  However, the voice codec may be
  7820.    varied only among certain discrete values, such as 16Kbps, 32Kbps and
  7821.    64Kbps.  A stream that has 48Kbps of bandwidth is no better than one
  7822.    with 32Kbps.  The parameters of the FlowSpec where this may be
  7823.    relevant should optionally specify discrete values.  This is being
  7824.    considered.
  7825.  
  7826.    Groups are defined as a way to associate different streams, but the
  7827.    nature of the association is left for further study.  An example of
  7828.    such an association is to allow streams whose traffic is inherently
  7829.    not simultaneous to share the same allocated resources.  This may
  7830.    happen for example in a conference that has an explicit floor, such
  7831.    that only one site can generate video or audio traffic at any given
  7832.    time.  The grouping facility can be implemented based on this
  7833.    specification, but the implementation of the possible uses of groups
  7834.    will require new functionality to be added to the ST agents.  The
  7835.    uses for groups and the implementation to support them will be
  7836.    carried out as experience is gained and the need arises.
  7837.  
  7838.    We hope that the ST we here propose will act as a vehicle to study
  7839.    the use and performance of stream oriented services across packet
  7840.    switched networks.
  7841.  
  7842.  
  7843.  
  7844.  
  7845.  
  7846.  
  7847. CIP Working Group                                             [Page 133]
  7848.  
  7849. RFC 1190                Internet Stream Protocol            October 1990
  7850.  
  7851.  
  7852.                    [This page intentionally left blank.]
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858.  
  7859.  
  7860.  
  7861.  
  7862.  
  7863.  
  7864.  
  7865.  
  7866.  
  7867.  
  7868.  
  7869.  
  7870.  
  7871.  
  7872.  
  7873.  
  7874.  
  7875.  
  7876.  
  7877.  
  7878.  
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884.  
  7885.  
  7886.  
  7887.  
  7888.  
  7889.  
  7890.  
  7891.  
  7892.  
  7893.  
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.  
  7900.  
  7901.  
  7902.  
  7903.  
  7904.  
  7905.  
  7906. CIP Working Group                                             [Page 134]
  7907.  
  7908. RFC 1190                Internet Stream Protocol            October 1990
  7909.  
  7910.  
  7911. 6.      Glossary
  7912.  
  7913.    appropriate reason code
  7914.       This phrase refers to one or perhaps a set of reason codes that
  7915.       indicate why a particular action is being taken.  Typically,
  7916.       these result from detection of errors or anomalous conditions.
  7917.       It can also indicate that an application component or agent has
  7918.       presented invalid parameters.
  7919.  
  7920.    DefaultRecoveryTimeout
  7921.       The DefaultRecoveryTimeout is maintained by each ST agent.  It
  7922.       indicates the default time interval to use for sending HELLO
  7923.       messages.
  7924.  
  7925.    downstream
  7926.       The direction in a stream from an origin toward its targets.
  7927.  
  7928.    element
  7929.       The fields and parameters of the ST control messages are
  7930.       collectively called elements.
  7931.  
  7932.    FlowSpec
  7933.       The Flow Specification, abbreviated "FlowSpec" is used by an
  7934.       application to specify required and desired characteristics of
  7935.       the stream.  The FlowSpec specifies bandwidth, delay, and
  7936.       reliability parameters.  Both minimal requirements and desired
  7937.       characteristics are included.  This information is then used to
  7938.       guide route selection and resource allocation decisions.  The
  7939.       desired vs. required characteristics are used to guide tradeoff
  7940.       decisions among competing stream requests.
  7941.  
  7942.    group
  7943.       A set of related streams can be associated as a group.  This is
  7944.       done by generating a Group Name and assigning it to each of the
  7945.       related streams.  The grouping information can then be used by
  7946.       the ST agents in making resource management and other control
  7947.       decisions.  For example, when preemption is necessary to
  7948.       establish a high precedence stream, we can exploit the group
  7949.       information to minimize the number of stream groups that are
  7950.       preempted.
  7951.  
  7952.    Group Name
  7953.       The Group Name is used to indicate that a collection of streams
  7954.       are related.  A Group Name is structured to ensure that it is
  7955.       unique across all hosts:  it includes the address of the host
  7956.       where it was generated combined with a unique number generated
  7957.       by that host.  A timestamp is added to ensure that the overall
  7958.       name is unique over all time.  (A Group Name has the same format
  7959.       as a stream Name.)
  7960.  
  7961.  
  7962.  
  7963.  
  7964.  
  7965. CIP Working Group                                             [Page 135]
  7966.  
  7967. RFC 1190                Internet Stream Protocol            October 1990
  7968.  
  7969.  
  7970.    HelloLossFactor
  7971.       The HelloLossFactor is a parameter maintained by each ST agent.
  7972.       It identifies the expected number of consecutive HELLO messages
  7973.       typically lost due to transient factors.  Thus, an agent will be
  7974.       assumed to be down after we miss more than HelloLossFactor
  7975.       messages.
  7976.  
  7977.    HelloTimer
  7978.       The HelloTimer is a millisecond timer maintained by each ST
  7979.       agent.  It is included in each HELLO message.  It represents the
  7980.       time since the agent was restarted, modulo the precision of the
  7981.       field.  It is used to detect variations in the delay between the
  7982.       two agents, by comparing the arrival interval of two HELLO
  7983.       messages to the difference between their HelloTimer fields.
  7984.  
  7985.    HelloTimerHoldDown
  7986.       The HelloTimerHoldDown value is maintained by each ST agent.
  7987.       When an ST agent is restarted, it will set the "Restarted" bit
  7988.       in all HELLO messages it sends for HelloTimerHoldDown seconds.
  7989.  
  7990.    HID
  7991.       The Hop IDentifier, abbreviated as HID, is a numeric key stored
  7992.       in the header of each ST packet.  It is used by an ST agent to
  7993.       associate the packet with one of the incoming hops managed by
  7994.       the agent.  It can be used by receiving agent to map to
  7995.       the set of outgoing next-hops to which the message should be
  7996.       forwarded.  The HID field of an ST packet will generally need to
  7997.       be changed as it passes through each ST agent since there may be
  7998.       many HIDs associated with a single stream.
  7999.  
  8000.    hop
  8001.       A "hop" refers to the portion of a stream's path between two
  8002.       neighbor ST agents.  It is usually represented by a physical
  8003.       network.  However, a multicast hop can connect a single ST agent
  8004.       to several next-hop ST agents.
  8005.  
  8006.    host agents
  8007.       Synonym for host ST agents.
  8008.  
  8009.    host ST agents
  8010.       Host ST agents are ST agents that provide services to higher
  8011.       layer protocols and applications.  The services include methods
  8012.       for sourcing data from and sinking data to the higher layer or
  8013.       application, and methods for requesting and modifying streams.
  8014.  
  8015.    intermediate agents
  8016.       Synonym for intermediate ST agents.
  8017.  
  8018.    intermediate ST agents
  8019.       Intermediate ST agents are ST agents that can forward ST
  8020.       packets between the networks to which they are attached.
  8021.  
  8022.  
  8023.  
  8024. CIP Working Group                                             [Page 136]
  8025.  
  8026. RFC 1190                Internet Stream Protocol            October 1990
  8027.  
  8028.  
  8029.    MTU
  8030.       The abbreviation for Maximum Transmission Unit, which is the
  8031.       maximum packet size in bytes that can be accepted by a given
  8032.       network for transmission.  ST agents determine the maximum
  8033.       packet size for a stream so that data written to the stream can
  8034.       be forwarded through the networks without fragmentation.
  8035.  
  8036.    multi-destination simplex
  8037.       The topology and data flow of ST streams are described as being
  8038.       multi-destination simplex:  all data flowing on the stream
  8039.       originates from a single origin and is passed to one or more
  8040.       destination targets.  Only control information, invisible to the
  8041.       application program, ever passes in the upstream direction.
  8042.  
  8043.    NAccept
  8044.       NAccept is an integer parameter maintained by each ST agent.  It
  8045.       is used to control retransmission of an ACCEPT message.  Since
  8046.       an ACCEPT request is relayed by agents back toward the origin,
  8047.       it must be acknowledged by each previous-hop agent.  If this ACK
  8048.       is not received within the appropriate timeout interval, the
  8049.       request will be resent up to NAccept times before giving up.
  8050.  
  8051.    Name
  8052.       Generally refers to the name of a stream.  A stream Name is
  8053.       structured to ensure that it is unique across all hosts: it
  8054.       includes the address of the host where it was generated combined
  8055.       with a unique number generated at that host.  A timestamp is
  8056.       added to ensure that the overall Name is unique over all time.
  8057.       (A stream Name has the same format as a Group Name.)
  8058.  
  8059.    NConnect
  8060.       NConnect is an integer parameter maintained by each ST agent.
  8061.       It is used to control retransmission of a CONNECT message.  A
  8062.       CONNECT request must be acknowledged by each next-hop agent as
  8063.       it is propagated toward the targets.  If a HID-ACCEPT,
  8064.       HID-REJECT, or ACK is not received for the CONNECT between any
  8065.       two agents within the appropriate timeout interval, the request
  8066.       will be resent up to NConnect times before giving up.
  8067.  
  8068.    NDisconnect
  8069.       NDisconnect is an integer parameter maintained by each ST
  8070.       agent.  It is used to control retransmission of a DISCONNECT
  8071.       message.  A DISCONNECT request must be acknowledged by each
  8072.       next-hop agent as it is propagated toward the targets.  If this
  8073.       ACK is not received for the DISCONNECT between any two agents
  8074.       within the appropriate timeout interval, the request will be
  8075.       resent up to NDisconnect times before giving up.
  8076.  
  8077.  
  8078.  
  8079.  
  8080.  
  8081.  
  8082.  
  8083. CIP Working Group                                             [Page 137]
  8084.  
  8085. RFC 1190                Internet Stream Protocol            October 1990
  8086.  
  8087.  
  8088.    next protocol identifier
  8089.       The next protocol identifier is used by a target ST agent to
  8090.       identify to which of several higher layer protocols it should
  8091.       pass data packets it receives the network.  Examples of higher
  8092.       layer protocols include the Network Voice Protocol and the
  8093.       Packet Video Protocol.  These higher layer protocols will
  8094.       typically perform further demultiplexing among multiple
  8095.       application processes as part of their protocol processing
  8096.       activities.
  8097.  
  8098.    next-hop
  8099.       Synonym for next-hop ST agent.
  8100.  
  8101.    next-hop ST agent
  8102.       For each origin or intermediate ST agent managing a stream
  8103.       there are a set of next-hop ST agents.  The intermediate agent
  8104.       forwards each data packet it receives to all the next-hop ST
  8105.       agents, which in turn forward the data toward the target host
  8106.       agent (if the particular next-hop agent is another intermediate
  8107.       agent) or to the next higher protocol layer at the target (if
  8108.       the particular next-hop agent is a host agent).
  8109.  
  8110.    NextPcol
  8111.       NextPcol is a field in each Target of the CONNECT message used
  8112.       to convey the next protocol identifier.  See definition of next
  8113.       protocol identifier above for more details.
  8114.  
  8115.    NHIDAbort
  8116.       NHIDAbort is an integer parameter maintained by each ST agent.
  8117.       It is the number of unacceptable HID proposals before an ST
  8118.       agent aborts the HID negotiation process.
  8119.  
  8120.    NHIDAck
  8121.       NHIDAck is an integer parameter maintained by each ST agent.
  8122.       It is used to control retransmission of HID-CHANGE-REQUEST
  8123.       messages.  HID-CHANGE-REQUEST is sent by an ST agent to the
  8124.       previous-hop ST agent to request that the HID in use between
  8125.       those agents be changed.  The previous-hop acknowledges the
  8126.       HID-CHANGE-REQUEST message by sending a HID-CHANGE message.  If
  8127.       the HID-CHANGE is not received within the appropriate timeout
  8128.       interval, the request will be resent up to NHIDAck times before
  8129.       giving up.
  8130.  
  8131.    NHIDChange
  8132.       NHIDChange is an integer parameter maintained by each ST agent.
  8133.       It is used to control retransmission of the HID-CHANGE message.
  8134.       A HID-CHANGE message must be acknowledged by the next-hop agent.
  8135.       If this ACK is not received within the appropriate timeout
  8136.       interval, the request will be resent up to NHIDChange times
  8137.       before giving up.
  8138.  
  8139.  
  8140.  
  8141.  
  8142. CIP Working Group                                             [Page 138]
  8143.  
  8144. RFC 1190                Internet Stream Protocol            October 1990
  8145.  
  8146.  
  8147.    NRefuse
  8148.       NRefuse is an integer parameter maintained by each ST agent.
  8149.       It is used to control retransmission of a REFUSE message.  As a
  8150.       REFUSE request is relayed by agents back toward the origin, it
  8151.       must be acknowledged by each previous-hop agent.  If this ACK is
  8152.       not received within the appropriate timeout interval, the
  8153.       request will be resent up to NRefuse times before giving up.
  8154.  
  8155.    NRetryRoute
  8156.       NRetryRoute is an integer parameter maintained by each ST
  8157.       agent.  It is used to control route exploration.  When an agent
  8158.       receives a REFUSE message whose ReasonCode indicates that the
  8159.       originally selected route is not acceptable, the agent should
  8160.       attempt to find an alternate route to the target.  If the agent
  8161.       has not found a viable route after a maximum of NRetryRoute
  8162.       choices, it should give up and notify the previous-hop or
  8163.       application that it cannot find an acceptable path to the
  8164.       target.
  8165.  
  8166.    origin
  8167.       The origin of a stream is the host agent where an application
  8168.       or higher level protocol originally requested that the stream be
  8169.       created.  The origin specifies the data to be sent through the
  8170.       stream.
  8171.  
  8172.    parameter
  8173.       Parameters are additional values that may be included in
  8174.       control messages.  Parameters are often optional.  They are
  8175.       distinguished from fields, which are always present.
  8176.  
  8177.    participants
  8178.       Participants are the end-users of a stream.
  8179.  
  8180.    PDU
  8181.       Abbreviation for Protocol Data Unit, defined below.
  8182.  
  8183.    peer
  8184.       The term peer is used to refer to entities at the same protocol
  8185.       layer.  It is used here to identify instances of an application
  8186.       or protocol layer above ST.  For example, data is passed through
  8187.       a stream from an originating peer process to its target peers.
  8188.  
  8189.    previous-hop
  8190.       Synonym for previous-hop ST agent.
  8191.  
  8192.    previous-hop ST agent
  8193.       The origin or intermediate agent from which an ST agent receives
  8194.       its data.
  8195.  
  8196.  
  8197.  
  8198.  
  8199.  
  8200.  
  8201. CIP Working Group                                             [Page 139]
  8202.  
  8203. RFC 1190                Internet Stream Protocol            October 1990
  8204.  
  8205.  
  8206.    protocol data unit
  8207.       A protocol data unit (PDU) is the unit of data passed to a
  8208.       protocol layer by the next higher layer protocol or user.  It
  8209.       consists of control information and possibly user data.
  8210.  
  8211.    RecoveryTimeout
  8212.       RecoveryTimeout is specified in the FlowSpec of each stream.
  8213.       The minimum of these values over all streams between a pair of
  8214.       adjacent agents determines how often those agents must send
  8215.       HELLO messages to each other in order to ensure that failure of
  8216.       one of the agents will be detected quickly enough to meet the
  8217.       guarantee implied by the FlowSpec.
  8218.  
  8219.    Restarted bit
  8220.       The Restarted bit is part of the HELLO message.  When set, it
  8221.       indicates that the sending agent was restarted recently (within
  8222.       the last HelloTimerHoldDown seconds).
  8223.  
  8224.    round-trip time
  8225.       The round-trip-time is the time it takes a message to be sent,
  8226.       delivered, processed, and the acknowledgment received.  It
  8227.       includes both network and processing delays.
  8228.  
  8229.    RTT
  8230.       Abbreviation for round-trip-time.
  8231.  
  8232.    RVLId
  8233.       Abbreviation for Receiver's Virtual Link Identifier.  It
  8234.       uniquely identifies to the receiver the virtual link, and this
  8235.       stream, used to send it a message.  See definition for Virtual
  8236.       Link Identifier below.
  8237.  
  8238.    SAP
  8239.       Abbreviation for Service Access Point.
  8240.  
  8241.    SCMP
  8242.       Abbreviation for ST Control Message Protocol, defined below.
  8243.  
  8244.    Service Access Point
  8245.       A point where a protocol service provider makes available the
  8246.       services it offers to a next higher layer protocol or user.
  8247.  
  8248.    setup phase
  8249.       Before data can be transmitted through a stream, the ST agents
  8250.       must distribute state information about the stream to all agents
  8251.       along the path(s) to the target(s).  This is the setup phase.
  8252.       The setup phase ends when all the ACCEPT and REFUSE messages
  8253.       sent by the targets have been delivered to the origin.  At this
  8254.       point, the data transfer phase begins and data can be sent.
  8255.       Requests to modify the stream can be issued after the setup
  8256.       phase has ended, i.e., during the data transfer phase without
  8257.       disrupting the flow of data.
  8258.  
  8259.  
  8260. CIP Working Group                                             [Page 140]
  8261.  
  8262. RFC 1190                Internet Stream Protocol            October 1990
  8263.  
  8264.  
  8265.    ST agent
  8266.       An ST agent is an entity that implements the ST Protocol.
  8267.  
  8268.    ST Control Message Protocol
  8269.       The ST Control Message Protocol is the subset of the overall ST
  8270.       Protocol responsible for creation, modification, maintenance,
  8271.       and tear down of a stream.  It also includes support for event
  8272.       notification and status monitoring.
  8273.  
  8274.    stream
  8275.       A stream is the basic object managed by the ST Protocol for
  8276.       transmission of data.  A stream has one origin where data are
  8277.       generated and one or more targets where the data are received
  8278.       for processing.  A flow specification, provided by the origin
  8279.       and negotiated among the origin, intermediate, and target ST
  8280.       agents, identifies the requirements of the application and the
  8281.       guarantees that can be assured by the ST agents.
  8282.  
  8283.    subsets
  8284.       Subsets of the ST Protocol are permitted, as defined in various
  8285.       sections of this specification.  Subsets are defined to allow
  8286.       simplified implementations that can still effectively
  8287.       interoperate with more complete implementations without causing
  8288.       disruption.
  8289.  
  8290.    SVLId
  8291.       Abbreviation for Sender's Virtual Link Identifier.  It uniquely
  8292.       identifies to the receiver the virtual link identifier that
  8293.       should be placed into the RVLId field of all replies sent over
  8294.       the virtual link for a given stream.  See definition for Virtual
  8295.       Link Identifier below.
  8296.  
  8297.    target
  8298.       An ST target is the destination where data supplied by the
  8299.       origin will be delivered for higher layer protocol or
  8300.       application processing.
  8301.  
  8302.    tear down
  8303.       The tear down phase of a stream begins when the origin indicates
  8304.       that it has no further data to send and the ST agents through
  8305.       which the stream passes should dismantle the stream and release
  8306.       its resources.
  8307.  
  8308.    ToAccept
  8309.       ToAccept is a timeout in seconds maintained by each ST agent.
  8310.       It sets the retransmission interval for ACCEPT messages.
  8311.  
  8312.    ToConnect
  8313.       ToConnect is a timeout in seconds maintained by each ST agent.
  8314.       It sets the retransmission interval a CONNECT messages.
  8315.  
  8316.  
  8317.  
  8318.  
  8319. CIP Working Group                                             [Page 141]
  8320.  
  8321. RFC 1190                Internet Stream Protocol            October 1990
  8322.  
  8323.  
  8324.    ToDisconnect
  8325.       ToDisconnect is a timeout in seconds maintained by each ST
  8326.       agent.  It sets the retransmission interval for DISCONNECT
  8327.       messages.
  8328.  
  8329.    ToHIDAck
  8330.       ToHIDAck is a timeout in seconds maintained by each ST agent.
  8331.       It sets the retransmission interval for HID-CHANGE-REQUEST
  8332.       messages.
  8333.  
  8334.    ToHIDChange
  8335.       ToHIDChange is a timeout in seconds maintained by each ST agent.
  8336.       It sets the retransmission interval for HID-CHANGE messages.
  8337.  
  8338.    ToRefuse
  8339.       ToRefuse is a timeout in seconds maintained by each ST agent.
  8340.       It sets the retransmission interval for REFUSE messages.
  8341.  
  8342.    upstream
  8343.       The direction in a stream from a target toward the origin.
  8344.  
  8345.    Virtual Link
  8346.       A virtual link is one edge of the tree describing the path of
  8347.       data flow through a stream.  A separate virtual link is assigned
  8348.       to each pair of neighbor ST agents, even when multiple next-hops
  8349.       are be reached through a single network level multicast group.
  8350.       The virtual link allows efficient demultiplexing of ST Control
  8351.       Message PDUs received from a single physical link or network.
  8352.  
  8353.    Virtual Link Identifier
  8354.       For each ST Control Message sent, the sender provides its own
  8355.       virtual link identifier and that of the receiver (if known).
  8356.       Either of these identifiers, combined with the address of the
  8357.       corresponding host, can be used to identify uniquely the virtual
  8358.       control link to the agent.  However, virtual link identifiers
  8359.       are chosen by the associated agent so that the agent may
  8360.       precisely identify the stream, state machine, and other protocol
  8361.       processing data elements managed by that agent, without regard
  8362.       to the source of the control message.  Virtual link identifiers
  8363.       are not negotiated, and do not change during the lifetime of a
  8364.       stream.  They are discarded when the stream is torn down.
  8365.  
  8366.  
  8367.  
  8368.  
  8369.  
  8370.  
  8371.  
  8372.  
  8373.  
  8374.  
  8375.  
  8376.  
  8377.  
  8378. CIP Working Group                                             [Page 142]
  8379.  
  8380. RFC 1190                Internet Stream Protocol            October 1990
  8381.  
  8382.  
  8383. 7.      References
  8384.  
  8385.    [1] Braden, B., Borman, D., and C. Partridge, "Computing the
  8386.        Internet Checksum", RFC 1071, USC/Information Sciences
  8387.        Institute, Cray Research, BBN Laboratories, September
  8388.        1988.
  8389.  
  8390.  
  8391.    [2] Braden, R. (ed.), "Requirements for Internet Hosts --
  8392.        Communication Layers", RFC 1122, USC/Information Sciences
  8393.        Institute, October 1989.
  8394.  
  8395.  
  8396.    [3] Cheriton, D., "VMTP: Versatile Message Transaction Protocol
  8397.        Specification", RFC 1045, Stanford University, February 1988.
  8398.  
  8399.  
  8400.    [4] Cohen, D., "A Network Voice Protocol NVP-II", USC/Information
  8401.        Sciences Institute, April 1981.
  8402.  
  8403.  
  8404.    [5] Cole, E., "PVP - A Packet Video Protocol", W-Note 28,
  8405.        USC/Information Sciences Institute, August 1981.
  8406.  
  8407.  
  8408.    [6] Deering, S., "Host Extensions for IP Multicasting", RFC 1112,
  8409.        Stanford University, August 1989.
  8410.  
  8411.  
  8412.    [7] Edmond W., Seo K., Leib M., and C. Topolcic, "The DARPA
  8413.        Wideband Network Dual Bus Protocol", accepted for presentation
  8414.        at ACM SIGCOMM '90, September 24-27, 1990.
  8415.  
  8416.  
  8417.    [8] Forgie, J., "ST - A Proposed Internet Stream Protocol",
  8418.        IEN 119, M. I. T. Lincoln Laboratory, 7 September 1979.
  8419.  
  8420.  
  8421.    [9] Jacobs I., Binder R., and E. Hoversten E., "General Purpose
  8422.        Packet Satellite Network", Proc. IEEE, vol 66, pp 1448-1467,
  8423.        November 1978.
  8424.  
  8425.  
  8426.    [10] Jacobson, V., "Congestion Avoidance and Control", ACM
  8427.         SIGCOMM-88, August 1988.
  8428.  
  8429.  
  8430.    [11] Karn, P. and C. Partridge, "Round Trip Time Estimation",
  8431.         ACM SIGCOMM-87, August 1987.
  8432.  
  8433.  
  8434.  
  8435.  
  8436.  
  8437. CIP Working Group                                             [Page 143]
  8438.  
  8439. RFC 1190                Internet Stream Protocol            October 1990
  8440.  
  8441.  
  8442.    [12] Mallory, T., and A. Kullberg, "Incremental Updating of the
  8443.         Internet Checksum", RFC 1141, BBN Communications
  8444.         Corporation, January 1990.
  8445.  
  8446.  
  8447.    [13] Mills, D., "Network Time Protocol (Version 2) Specification
  8448.         and Implementation", RFC 1119, University of Delaware,
  8449.         September 1989 (Revised February 1990).
  8450.  
  8451.  
  8452.    [14] Pope, A., "The SIMNET Network and Protocols", BBN
  8453.         Report No. 7102, BBN Systems and Technologies, July 1989.
  8454.  
  8455.  
  8456.    [15] Postel, J., ed., "Internet Protocol - DARPA Internet Program
  8457.         Protocol Specification", RFC 791, DARPA, September 1981.
  8458.  
  8459.  
  8460.    [16] Postel, J., ed., "Transmission Control Protocol - DARPA
  8461.         Internet Program Protocol Specification", RFC 793, DARPA,
  8462.         September 1981.
  8463.  
  8464.  
  8465.    [17] Postel, J., "User Datagram Protocol", RFC 768,
  8466.         USC/Information Sciences Institute, August 1980.
  8467.  
  8468.  
  8469.    [18] Reynolds, J., Postel, J., "Assigned Numbers", RFC 1060,
  8470.         USC/Information Sciences Institute, March 1990.
  8471.  
  8472.  
  8473.    [19] SDNS Protocol and Signaling Working Group, SP3 Sub-Group,
  8474.         SDNS Secure Data Network System, Security Protocol 3 (SP3),
  8475.         SDN.301, Rev. 1.5, 1989-05-15.
  8476.  
  8477.  
  8478.    [20] SDNS Protocol and Signaling Working Group, SP3 Sub-Group,
  8479.         SDNS Secure Data Network System, Security Protocol 3 (SP3)
  8480.         Addendum 1, Cooperating Families, SDN.301.1, Rev. 1.2,
  8481.         1988-07-12.
  8482.  
  8483. 8.      Security Considerations
  8484.  
  8485.    See section 3.7.8.
  8486.  
  8487.  
  8488.  
  8489.  
  8490.  
  8491.  
  8492.  
  8493.  
  8494.  
  8495.  
  8496. CIP Working Group                                             [Page 144]
  8497.  
  8498. RFC 1190                Internet Stream Protocol            October 1990
  8499.  
  8500.  
  8501. 9.      Authors' Addresses
  8502.  
  8503.       Stephen Casner
  8504.       USC/Information Sciences Institute
  8505.       4676 Admiralty Way
  8506.       Marina del Rey, CA 90292-6695
  8507.  
  8508.       Phone: (213) 822-1511 x153
  8509.       EMail: Casner@ISI.Edu
  8510.  
  8511.  
  8512.       Charles Lynn, Jr.
  8513.       BBN Systems and Technologies,
  8514.       a division of Bolt Beranek and Newman Inc.
  8515.       10 Moulton Street
  8516.       Cambridge, MA  02138
  8517.  
  8518.       Phone: (617) 873-3367
  8519.       EMail: CLynn@BBN.Com
  8520.  
  8521.  
  8522.       Philippe Park
  8523.       BBN Systems and Technologies,
  8524.       a division of Bolt Beranek and Newman Inc.
  8525.       10 Moulton Street
  8526.       Cambridge, MA  02138
  8527.  
  8528.       Phone: (617) 873-2892
  8529.       EMail: ppark@BBN.COM
  8530.  
  8531.  
  8532.       Kenneth Schroder
  8533.       BBN Systems and Technologies,
  8534.       a division of Bolt Beranek and Newman Inc.
  8535.       10 Moulton Street
  8536.       Cambridge, MA  02138
  8537.  
  8538.       Phone: (617) 873-3167
  8539.       EMail: Schroder@BBN.Com
  8540.  
  8541.  
  8542.       Claudio Topolcic
  8543.       BBN Systems and Technologies,
  8544.       a division of Bolt Beranek and Newman Inc.
  8545.       10 Moulton Street
  8546.       Cambridge, MA  02138
  8547.  
  8548.       Phone: (617) 873-3874
  8549.       EMail: Topolcic@BBN.Com
  8550.  
  8551.  
  8552.  
  8553.  
  8554.  
  8555. CIP Working Group                                             [Page 145]
  8556.  
  8557. RFC 1190                Internet Stream Protocol            October 1990
  8558.  
  8559.  
  8560.                    [This page intentionally left blank.]
  8561.  
  8562.  
  8563.  
  8564.  
  8565.  
  8566.  
  8567.  
  8568.  
  8569.  
  8570.  
  8571.  
  8572.  
  8573.  
  8574.  
  8575.  
  8576.  
  8577.  
  8578.  
  8579.  
  8580.  
  8581.  
  8582.  
  8583.  
  8584.  
  8585.  
  8586.  
  8587.  
  8588.  
  8589.  
  8590.  
  8591.  
  8592.  
  8593.  
  8594.  
  8595.  
  8596.  
  8597.  
  8598.  
  8599.  
  8600.  
  8601.  
  8602.  
  8603.  
  8604.  
  8605.  
  8606.  
  8607.  
  8608.  
  8609.  
  8610.  
  8611.  
  8612.  
  8613.  
  8614. CIP Working Group                                             [Page 146]
  8615.  
  8616. RFC 1190                Internet Stream Protocol            October 1990
  8617.  
  8618.  
  8619. Appendix 1.      Data Notations
  8620.  
  8621.    The convention in the documentation of Internet Protocols is to
  8622.    express numbers in decimal and to picture data with the most
  8623.    significant octet on the left and the least significant octet on the
  8624.    right.
  8625.  
  8626.    The order of transmission of the header and data described in this
  8627.    document is resolved to the octet level.  Whenever a diagram shows a
  8628.    group of octets, the order of transmission of those octets is the
  8629.    normal order in which they are read in English.  For example, in the
  8630.    following diagram the octets are transmitted in the order they are
  8631.    numbered.
  8632.  
  8633.  
  8634.     0                   1                   2                   3
  8635.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  8636.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8637.    |       1       |       2       |       3       |       4       |
  8638.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8639.    |       5       |       6       |       7       |       8       |
  8640.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8641.    |       9       |      10       |      11       |      12       |
  8642.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  8643.  
  8644.                 Figure 56.  Transmission Order of Bytes
  8645.  
  8646.  
  8647.    Whenever an octet represents a numeric quantity the left most bit in
  8648.    the diagram is the high order or most significant bit.  That is, the
  8649.    bit labeled 0 is the most significant bit.  For example, the
  8650.    following diagram represents the value 170 (decimal).
  8651.  
  8652.  
  8653.                             0 1 2 3 4 5 6 7
  8654.                            +-+-+-+-+-+-+-+-+
  8655.                            |1 0 1 0 1 0 1 0|
  8656.                            +-+-+-+-+-+-+-+-+
  8657.  
  8658.                     Figure 57.  Significance of Bits
  8659.  
  8660.  
  8661.    Similarly, whenever a multi-octet field represents a numeric quantity
  8662.    the left most bit of the whole field is the most significant bit.
  8663.    When a multi-octet quantity is transmitted the most significant octet
  8664.    is transmitted first.
  8665.  
  8666.    Fields whose length is fixed and fully illustrated are shown with a
  8667.    vertical bar (|) at the end;  fixed fields whose contents are
  8668.    abbreviated are shown with an exclamation point (!);  variable fields
  8669.    are shown with colons (:).
  8670.  
  8671.  
  8672.  
  8673. CIP Working Group                                             [Page 147]
  8674.  
  8675. RFC 1190                Internet Stream Protocol            October 1990
  8676.  
  8677.  
  8678.    Optional parameters are separated from control messages with a blank
  8679.    line.  The order of any optional parameters is not meaningful.
  8680.  
  8681.  
  8682.  
  8683.  
  8684.  
  8685.  
  8686.  
  8687.  
  8688.  
  8689.  
  8690.  
  8691.  
  8692.  
  8693.  
  8694.  
  8695.  
  8696.  
  8697.  
  8698.  
  8699.  
  8700.  
  8701.  
  8702.  
  8703.  
  8704.  
  8705.  
  8706.  
  8707.  
  8708.  
  8709.  
  8710.  
  8711.  
  8712.  
  8713.  
  8714.  
  8715.  
  8716.  
  8717.  
  8718.  
  8719.  
  8720.  
  8721.  
  8722.  
  8723.  
  8724.  
  8725.  
  8726.  
  8727.  
  8728.  
  8729.  
  8730.  
  8731.  
  8732. CIP Working Group                                             [Page 148]
  8733.