rfc3303.txt

来自「RFC 的详细文档!」· 文本 代码 · 共 1,285 行 · 第 1/5 页

TXT
1,285 行
字号
   security option.  Security should be designed to avoid introducing
   and to minimize the impact of denial of service attacks.  Some
   security mechanisms and algorithms require substantial processing or
   storage, in which case the security protocols should protect
   themselves as well as against possible flooding attacks that
   overwhelm the endpoint (i.e., the middlebox or the agent) with such
   processing.  For connection oriented protocols (such as TCP) using
   security services, the security protocol should detect premature
   closure or truncation attacks.





Srisuresh, et al.            Informational                     [Page 14]

RFC 3303           MIDCOM Architecture and Framework         August 2002


6.2. Registration and deregistration of MIDCOM agents

   Prior to allowing MIDCOM agents to invoke services of the middlebox,
   a registration process must take place.  Registration is a different
   process than establishing a MIDCOM session.  The former requires
   provisioning agent profile information with the middlebox or a MIDCOM
   PDP.  Agent registration is often a manual operation performed by an
   operator rather than the agent itself.  Setting up MIDCOM session
   refers to establishing a MIDCOM transport session and exchanging
   security credentials between an agent and a middlebox.  The transport
   session uses the registered information for session establishment.

   Profile of a MIDCOM agent includes agent authorization policy (i.e.,
   session tuples for which the agent is authorized to act as ALG),
   agent-hosting-entity (e.g., Proxy, Gateway or end-host which hosts
   the agent), agent accessibility profile (including any host level
   authentication information) and security profile (i.e., security
   requirements for messages exchanged between the middlebox and the
   agent).

   MIDCOM agent profile may be pre-configured on a middlebox.
   Subsequent to that, the agent may choose to initiate a MIDCOM session
   prior to any data traffic.  For example, MIDCOM agent authorization
   policy for a middlebox service may be preconfigured by specifying the
   agent in conjunction with a filter.  In the case of a firewall, for
   example, the ACL tuple may be altered to reflect the optional Agent
   presence.  The revised ACL may look something like the following.

   (<Session-Direction>, <Source-Address>, <Destination-Address>, <IP-
   Protocol>, <Source-Port>, <Destination-Port>, <Agent>)

   The reader should note that this is an illustrative example and not
   necessarily the actual definition of an ACL tuple.  The formal
   description of the ACL is yet to be devised.  Agent accessibility
   information should also be provisioned.  For a  MIDCOM agent,
   accessibility information includes the IP address, trust level, host
   authentication parameters and message authentication parameters.
   Once a session is established between a middlebox and a MIDCOM agent,
   that session should be usable with multiple instances of the
   application(s), as appropriate.  Note, all of this could be captured
   in an agent profile for ease of management.

   The technique described above is necessary for the pre-registration
   of MIDCOM agents with the middlebox.  The middlebox provisioning may
   remain unchanged, if the middlebox learns of the registered agents
   through a MIDCOM PDP.  In either case, the MIDCOM agent should
   initiate the session prior to the start of the application.  If the
   agent session is delayed until after the application has started, the



Srisuresh, et al.            Informational                     [Page 15]

RFC 3303           MIDCOM Architecture and Framework         August 2002


   agent might be unable to process the control stream to permit the
   data sessions.  When a middlebox notices an incoming MIDCOM session,
   and the middlebox has no prior profile of the MIDCOM agent, the
   middlebox will consult its MIDCOM PDP for authenticity,
   authorization, and trust guidelines for the session.

7.0. MIDCOM Framework Illustration using an In-Path agent

   In figure 3 below, we consider SIP applications (Refer [SIP]) to
   illustrate the operation of the MIDCOM protocol.  Specifically, the
   application assumes that a caller, external to a private domain,
   initiates the call.  The middlebox is assumed to be located at the
   edge of the private domain.  A SIP phone (SIP User Agent
   Client/Server) inside the private domain is capable of receiving
   calls from external SIP phones.  The caller uses a SIP Proxy, node
   located external to the private domain, as its outbound proxy.  No
   interior proxy is assumed for the callee.  Lastly, the external SIP
   proxy node is designated to host the MIDCOM agent function.

   Arrows 1 and 8 in the figure below refer to a SIP call setup exchange
   between the external SIP phone and the SIP proxy.  Arrows 4 and 5
   refer to a SIP call setup exchange between the SIP proxy and the
   interior SIP phone, and are assumed to be traversing the middlebox.
   Arrows 2, 3, 6 and 7 below, between the SIP proxy and the middlebox,
   refer to MIDCOM communication.  Na and Nb represent RTP/RTCP media
   traffic (Refer [RTP]) path in the external network.  Nc and Nd
   represent media traffic inside the private domain.

                               _________
                          --->|   SIP   |<-----\
                         /    |  Proxy  |       \
                        |     |_________|       |
                       1|       |^    ^|       4|
                        |       ||    ||        |
                        |8     2||3  7||6       |5
        ______________  |       ||    ||        |    _____________
        |            |<-/      _v|____|v___      \->|            |
        | External   |    Na   |           |   Nc   | SIP Phone  |
        | SIP phone  |>------->| Middlebox |>------>| within     |
        |            |<-------<|___________|<------<| Pvt. domain|
        |____________|    Nb                   Nd   |____________|

      Figure 3: MIDCOM framework illustration with In-Path SIP Proxy

   As for the SIP application, we make the assumption that the middlebox
   is pre-configured to accept SIP calls into the private SIP phone.
   Specifically, this would imply that the middlebox implementing
   firewall service is pre-configured to permit SIP calls (destination



Srisuresh, et al.            Informational                     [Page 16]

RFC 3303           MIDCOM Architecture and Framework         August 2002


   TCP or UDP port number set to 5060) into the private phone.
   Likewise, middlebox implementing NAPT service would have been pre-
   configured to provide a port binding, to permit incoming SIP calls to
   be redirected to the specific private SIP phone.  I.e., the INVITE
   from the external caller is not made to the private IP address, but
   to the NAPT external address.

   The objective of the MIDCOM agent in the following illustration is to
   merely permit the RTP/RTCP media stream (Refer [RTP]) through the
   middlebox, when using the MIDCOM protocol architecture outlined in
   the document.  A SIP session typically establishes two RTP/RTCP media
   streams - one from the callee to the caller and another from the
   caller to the callee.  These media sessions are UDP based and will
   use dynamic ports.  The dynamic ports used for the media stream are
   specified in the SDP section (Refer [SDP]) of the SIP payload
   message.  The MIDCOM agent will parse the SDP section and use the
   MIDCOM protocol to (a) open pinholes (i.e., permit RTP/RTCP session
   tuples) in a middlebox implementing firewall service, or (b) create
   PORT bindings and appropriately modify the SDP content to permit the
   RTP/RTCP streams through a middlebox implementing NAT service.  The
   MIDCOM protocol should be sufficiently rich and expressive to support
   the operations described under the timelines.  The examples do not
   show the timers maintained by the agent to keep the middlebox policy
   rule(s) from timing out.

   MIDCOM agent Registration and connectivity between the MIDCOM agent
   and the middlebox are not shown in the interest of restricting the
   focus of the MIDCOM transactions to enabling the middlebox to let the
   media stream through.  MIDCOM PDP is also not shown in the diagram
   below or on the timelines for the same reason.

   The following subsections illustrate a typical timeline sequence of
   operations that transpire with the various elements involved in a SIP
   telephony application path.  Each subsection is devoted to a specific
   instantiation of a middlebox service - NAPT (refer [NAT-TERM], [NAT-
   TRAD]), firewall and a combination of both NAPT and firewall are
   considered.

7.1. Timeline flow - Middlebox implementing firewall service

   In the following example, we will assume a middlebox implementing a
   firewall service.  We further assume that the middlebox is pre-
   configured to permit SIP calls (destination TCP or UDP port number
   set to 5060) into the private phone.  The following timeline
   illustrates the operations performed by the MIDCOM agent, to permit
   RTP/RTCP media stream through the middlebox.





Srisuresh, et al.            Informational                     [Page 17]

RFC 3303           MIDCOM Architecture and Framework         August 2002


   The INVITE from the caller (external) is assumed to include the SDP
   payload.  You will note that the MIDCOM agent requests the middlebox
   to permit the Private-to-external RTP/RTCP flows before the INVITE is
   relayed to the callee.  This is because, in SIP, the calling party
   must be ready to receive the media when it sends the INVITE with a
   session description.  If the called party (private phone) assumes
   this and sends "early media" before sending the 200 OK response, the
   firewall will have blocked these packets without this initial MIDCOM
   signaling from the agent.

      SIP Phone      SIP Proxy              Middlebox      SIP Phone
      (External)     (MIDCOM agent)         (FIREWALL      (private)
      |                 |                   Service)          |
      |                 |                      |              |
      |----INVITE------>|                      |              |
      |                 |                      |              |
      |<---100Trying----|                      |              |
      |                 |                      |              |
      |              Identify end-2-end        |              |
      |              parameters (from Caller's |              |
      |              SDP) for the pri-to-Ext   |              |
      |              RTP & RTCP sessions.      |              |
      |              (RTP1, RTCP1)             |              |
      |                 |                      |              |
      |                 |+Permit RTP1, RTCP1 +>|              |
      |                 |<+RTP1, RTCP1 OKed++++|              |
      |                 |                      |              |
      |                 |--------INVITE---------------------->|
      |                 |                      |              |
      |                 |<-----180 Ringing--------------------|
      |<--180Ringing----|                      |              |
      |                 |<-------200 OK-----------------------|
      |                 |                      |              |
      |              Identify end-2-end        |              |
      |              parameters (from callee's |              |
      |              SDP) for the Ext-to-Pri   |              |
      |              RTP and RTCP sessions.    |              |
      |              (RTP2, RTCP2)             |              |
      |                 |                      |              |
      |                 |+Permit RTP2, RTCP2 +>|              |
      |                 |<+RTP2, RTCP2 OKed++++|              |
      |                 |                      |              |
      |<---200 OK ------|                      |              |
      |-------ACK------>|                      |              |
      |                 |-----------ACK---------------------->|
      |                 |                      |              |
      |<===================RTP/RTCP==========================>|




Srisuresh, et al.            Informational                     [Page 18]

RFC 3303           MIDCOM Architecture and Framework         August 2002


      |                 |                      |              |
      |-------BYE------>|                      |              |
      |                 |--------------------------BYE------->|
      |                 |                      |              |
      |                 |<----------200 OK--------------------|
      |                 |                      |              |
      |                 |++Cancel permits to   |              |
      |                 |  RTP1, RTCP1, RTP2,  |              |
      |                 |  and RTCP2 +++++++++>|              |
      |                 |<+RTP1, RTP2, RTCP1 & |              |
      |                 |  RTCP2 cancelled ++++|              |
      |                 |                      |              |
      |<---200 OK-------|                      |              |
      |                 |                      |              |

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?