rfc3303.txt
来自「RFC 的详细文档!」· 文本 代码 · 共 1,285 行 · 第 1/5 页
TXT
1,285 行
4. MIDCOM Protocol
The MIDCOM protocol between a MIDCOM agent and a middlebox allows the
MIDCOM agent to invoke services of the middlebox and allow the
middlebox to delegate application specific processing to the MIDCOM
agent. The protocol will allow MIDCOM agents to signal the
middleboxes, to let complex applications using dynamic port based
sessions through them (i.e., middleboxes) seamlessly.
It is important to note that an agent and a middlebox can be on the
same physical device. In such a case, they may communicate using a
MIDCOM protocol message formats, but using a non-IP based transport,
such as IPC messaging (or) they may communicate using well-defined
API/DLL (or) the application intelligence is fully embedded into the
middlebox service (as it is done today in many stateful inspection
firewall devices and NAT devices).
The MIDCOM protocol will consist of a session setup phase, run-time
session phase, and a session termination phase.
Session setup must be preceded by registration of the MIDCOM agent
with either the middlebox or the MIDCOM PDP. The MIDCOM agent access
and authorization profile may either be pre-configured on the
middlebox (or) listed on a MIDCOM PDP; the middlebox is configured to
consult. MIDCOM shall be a client-server protocol, initiated by the
agent.
A MIDCOM session may be terminated by either of the parties. A
MIDCOM session termination may also be triggered by (a) the middlebox
or the agent going out of service and not being available for further
MIDCOM operations, or (b) the MIDCOM PDP notifying the middlebox that
a particular MIDCOM agent is no longer authorized.
The MIDCOM protocol data exchanged during run-time is governed
principally by the middlebox services the protocol supports.
Firewall and NAT middlebox services are considered in this document.
Nonetheless, the MIDCOM framework is designed to be extensible to
support the deployment of other services as well.
Srisuresh, et al. Informational [Page 10]
RFC 3303 MIDCOM Architecture and Framework August 2002
5.0. MIDCOM Agents
MIDCOM agents are logical entities which may reside physically on
nodes external to a middlebox, possessing a combination of
application awareness and knowledge of middlebox function. A MIDCOM
agent may communicate with one or more middleboxes. The issues of
middleboxes discovering agents, or vice versa, are outside the scope
of this document. The focus of the document is the framework in
which a MIDCOM agent communicates with a middlebox using MIDCOM
protocol, which is yet to be devised. Specifically, the focus is
restricted to just the In-Path agents.
In-Path MIDCOM agents are MIDCOM agents that are located naturally
within the message path of the application(s) they are associated
with. Bundled session applications, such as H.323, SIP, and RTSP
which have separate control and data sessions, may have their
sessions take divergent paths. In those scenarios, In-Path MIDCOM
agents are those that find themselves in the control path. In a
majority of cases, a middlebox will likely require the assistance of
a single agent for an application in the control path alone.
However, it is possible that a middlebox function, or a specific
application traversing the middlebox might require the intervention
of more than a single MIDCOM agent for the same application, one for
each sub-session of the application.
Application Proxies and gateways are a good choice for In-Path MIDCOM
agents, as these entities by definition, are in the path of an
application between a client and server. In addition to hosting the
MIDCOM agent function, these natively in-path application specific
entities may also enforce application-specific choices locally, such
as dropping messages infected with known viruses, or lacking user
authentication. These entities can be interjecting both the control
and data sessions. For example, FTP control and Data sessions are
interjected by an FTP proxy server.
However, proxies may also be interjecting just the control session
and not the data sessions, as is the case with real-time streaming
applications, such as SIP and RTSP. Note, applications may not
always traverse a proxy and some applications may not have a proxy
server available.
SIP proxies and H.323 gatekeepers may be used to host MIDCOM agent
functions to control middleboxes implementing firewall and NAT
functions. The advantage of using in-path entities, as opposed to
creating an entirely new agent, is that the in-path entities already
possess application intelligence. You will need to merely enable the
use of the MIDCOM protocol to be an effective MIDCOM agent. Figure 2
below illustrates a scenario where the in-path MIDCOM agents
Srisuresh, et al. Informational [Page 11]
RFC 3303 MIDCOM Architecture and Framework August 2002
interface with the middlebox. Let us say, the MIDCOM PDP has pre-
configured the in-path proxies as trusted MIDCOM agents on the
middlebox and the packet filter implements a 'default-deny' packet
filtering policy. Proxies use their application-awareness knowledge
to control the firewall function and selectively permit a certain
number of voice stream sessions dynamically using MIDCOM protocol.
In the illustration below, the proxies and the MIDCOM PDP are shown
inside a private domain. The intent however, is not to imply that
they be inside the private boundary alone. The proxies may also
reside external to the domain. The only requirement is that there be
a trust relationship with the middlebox.
+-----------+
| MIDCOM |
| PDP |~~~~~~~~~~~~~|
+-----------+ \
\
+--------+ \
| SIP |___ \
________| Proxy | \ Middlebox \
/ +--------+.. | +--------------------+
| : | MIDCOM | | |
| RTSP +---------+ :..|........| MIDCOM | POLICY |
SIP | ____| RTSP |.....|........| PROTOCOL | INTER- |
| / | Proxy |___ | | INTERFACE | FACE |
| | +---------+ \ \ |--------------------|
| | \ \______| |__SIP
| | \________| |__RTSP
| | ---| FIREWALL |--->--
+-----------+ /---| |---<--
+-----------+| Data streams // +--------------------+
+-----------+||---------->----// |
|end-hosts ||-----------<----- .
+-----------+ (RTP, RTSP data, etc.) |
. Outside the
Within a private domain | private domain
Legend: ---- Application data path datagrams
____ Application control path datagrams
.... Middlebox Communication Protocol (MIDCOM)
~~~~ MIDCOM PDP Interface
|
. private domain Boundary
|
Figure 2: In-Path MIDCOM Agents for middlebox Communication
Srisuresh, et al. Informational [Page 12]
RFC 3303 MIDCOM Architecture and Framework August 2002
5.1. End-hosts as In-Path MIDCOM agents
End-hosts are another variation of In-Path MIDCOM agents. Unlike
Proxies, End-hosts are a direct party to the application and possess
all the end-to-end application intelligence there is to it. End-
hosts presumably terminate both the control and data paths of an
application. Unlike other entities hosting MIDCOM agents, end-host
is able to process secure datagrams. However, the problem would be
one of manageability - upgrading all the end-hosts running a specific
application.
6.0. MIDCOM PDP functions
The functional decomposition of the MIDCOM architecture assumes the
existence of a logical entity, known as MIDCOM PDP, responsible for
performing authorization and related provisioning services for the
middlebox as depicted in figure 1. The MIDCOM PDP is a logical
entity which may reside physically on a middlebox or on a node
external to the middlebox. The protocol employed for communication
between the middlebox and the MIDCOM PDP is unrelated to the MIDCOM
protocol.
Agents are registered with a MIDCOM PDP for authorization to invoke
services of the middlebox. The MIDCOM PDP maintains a list of agents
that are authorized to connect to each of the middleboxes the MIDCOM
PDP supports. In the context of the MIDCOM Framework, the MIDCOM PDP
does not assist a middlebox in the implementation of the services it
provides.
The MIDCOM PDP acts in an advisory capacity to a middlebox, to
authorize or terminate authorization for an agent attempting
connectivity to the middlebox. The primary objective of a MIDCOM PDP
is to communicate agent authorization information, so as to ensure
that the security and integrity of a middlebox is not jeopardized.
Specifically, the MIDCOM PDP should associate a trust level with each
agent attempting to connect to a middlebox and provide a security
profile. The MIDCOM PDP should be capable of addressing cases when
end-hosts are agents to the middlebox.
6.1. Authentication, Integrity and Confidentiality
Host authenticity and individual message security are two distinct
types of security considerations. Host authentication refers to
credentials required of a MIDCOM agent to authenticate itself to the
middlebox and vice versa. When authentication fails, the middlebox
must not process signaling requests received from the agent that
failed authentication. Two-way authentication should be supported.
In some cases, the 2-way authentication may be tightly linked to the
Srisuresh, et al. Informational [Page 13]
RFC 3303 MIDCOM Architecture and Framework August 2002
establishment of keys to protect subsequent traffic. Two-way
authentication is often required to prevent various active attacks on
the MIDCOM protocol and secure establishment of keying material.
Security services such as authentication, data integrity,
confidentiality and replay protection may be adapted to secure MIDCOM
messages in an untrusted domain. Message authentication is the same
as data origin authentication and is an affirmation that the sender
of the message is who it claims to be. Data integrity refers to the
ability to ensure that a message has not been accidentally,
maliciously or otherwise altered or destroyed. Confidentiality is
the encryption of a message with a key, so that only those in
possession of the key can decipher the message content. Lastly,
replay protection is a form of sequence integrity, so when an
intruder plays back a previously recorded sequence of messages, the
receiver of the replay messages will simply drop the replay messages
into bit-bucket. Certain applications of the MIDCOM protocol might
require support for non-repudiation as an option of the data
integrity service. Typically, support for non-repudiation is
required for billing, service level agreements, payment orders, and
receipts for delivery of service.
IPsec AH ([IPSEC-AH]) offers data-origin authentication, data
integrity and protection from message replay. IPsec ESP ([IPSEC-
ESP]) provides data-origin authentication to a lesser degree (same as
IPsec AH if the MIDCOM transport protocol turns out to be TCP or
UDP), message confidentiality, data integrity and protection from
replay. Besides the IPsec based protocols, there are other security
options as well. TLS based transport layer security is one option.
There are also many application-layer security mechanisms available.
Simple Source-address based security is a minimal form of security
and should be relied on only in the most trusted environments, where
those hosts will not be spoofed.
The MIDCOM message security shall use existing standards, whenever
the existing standards satisfy the requirements. Security shall be
specified to minimize the impact on sessions that do not use the
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?