Internet DRAFT - draft-individual-mjoras-sadcdn
draft-individual-mjoras-sadcdn
WG Working Group M. Joras
Internet-Draft Meta
Intended status: Informational 27 June 2023
Expires: 29 December 2023
Securing Ancillary Data for Communicating with Devices in the Network
draft-individual-mjoras-sadcdn-00
Abstract
There is increasing need for application endpoints to communicate
with devices in the network without exposing that information to on
path observers.
About This Document
This note is to be removed before publishing as an RFC.
The latest revision of this draft can be found at
https://example.com/LATEST. Status information for this document may
be found at https://datatracker.ietf.org/doc/draft-individual-mjoras-
sadcdn/.
Discussion of this document takes place on the WG Working Group
mailing list (mailto:WG@example.com), which is archived at
https://example.com/WG.
Source for this draft and an issue tracker can be found at
https://github.com/USER/REPO.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 29 December 2023.
Joras Expires 29 December 2023 [Page 1]
RFC 1 SADCDN June 2023
Copyright Notice
Copyright (c) 2023 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Traffic Policing . . . . . . . . . . . . . . . . . . . . . . 3
3. Packet Prioritization . . . . . . . . . . . . . . . . . . . . 3
4. Out of Band vs. Inband Communication . . . . . . . . . . . . 4
5. Proposed Solution Sketch . . . . . . . . . . . . . . . . . . 6
6. Conventions and Definitions . . . . . . . . . . . . . . . . . 7
7. Security Considerations . . . . . . . . . . . . . . . . . . . 7
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7
9. Normative References . . . . . . . . . . . . . . . . . . . . 7
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 8
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 8
1. Introduction
In modern mobile networks it is extremely common for policies to be
applied to network flows by devices in the network. These policies
are usually implemented by network vendors and enabled by mobile
network operators (MNOs) to achieve certain outcomes. The two most
prominent examples of this are traffic policing and packet
prioritization.
Traffic policing in this context is a modification applied to the
flow of packets to limit the achievable throughput by the flow to a
given bandwidth (e.g. 2Mbps).
Packet prioritization policies are meant to prioritize certain kinds
of data in the device queues over others. For example, an operator
may want to employ a policy which gives queue priority to low latency
video conferencing traffic over long form video playback traffic, to
ensure lower latency for the more latency-sensitive user experience.
Joras Expires 29 December 2023 [Page 2]
RFC 1 SADCDN June 2023
While these goals seem straightforward, and at first glance it seems
like the network device can achieve them in isolation, without
content endpoint cooperation there are issues that inevitably arise
and pathologies which are detrimental to user experience.
2. Traffic Policing
The goal of these policing policies are variable, but usually are
motivated by limiting data usage. One goal that’s fairly common is
for the operator to limit the total possible data used by customers
on an “Unlimited” data plan. With these plans there are no “hard”
limits (i.e. where network access ceases), rather the MNO will apply
policing policies to flows such that the amount of data reaching the
customer’s device is effectively capped. These policies will often
be targeted at flows known to carry certain kinds of data, such as
video. The detection method varies, but typically the flows are
identified based on the SNI in the TLS ClientHello, or similar.
Modern video playback typically employs adaptive bitrate (ABR)
schemes to dynamically adjust the video quality (and thus the data
rate) in response to changing network conditions. Ideally the ABR
scheme should adapt the quality and converge on a bitrate sustainable
by the network policer. In practice this is extremely difficult to
achieve while maintaining a good user experience, due to the myriad
complexities and interactions involved, such as the transport
congestion control behavior, changing radio signal strength, etc.
The end goal of limiting a customer’s aggregate data usage can
instead be achieved through having a content endpoint mediate the
amount of data served to a given user. This capability is already
present in data-heavy applications such as streaming video. For
example, if a content endpoint limits a given user’s video bitrate to
~2Mbps and also limits the number of outstanding videos being
streamed to that user, the overall effect on aggregate data usage is
the same as if the network itself employs a policer configured to a
2Mbps data rate. Networks are able to achieve better efficiencies
while still maintaining data usage limits by having the content
producing endpoints limiting the data sent, rather than relying on a
network device to impose an artificial limit.
3. Packet Prioritization
For packet prioritization there is a different problem. While the
network device may be able to make inferences about what kinds of
content different packets and flows carry, it has become increasingly
difficult as traffic is encrypted more holistically. Newly endemic
protocols like QUIC are being used for a diverse range of traffic
types, and this makes heuristics such as “all low latency traffic
Joras Expires 29 December 2023 [Page 3]
RFC 1 SADCDN June 2023
looks like WebRTC or RTP” untenable. Additionally, if multiple
application flows are being multiplexed over a single encrypted
transport, such as QUIC, the network device may want to make
different prioritization decisions depending on the application
contained within any given packet. Information Disparity In both
situations, there is an information disparity between devices in the
network and the content endpoints. In both of these situations
better outcomes can be achieved by explicit communication and
cooperation.
In the case of a data-limiting policy, it would be advantageous for
the network device to explicitly communicate the desired limits to
the content endpoint so that it can “self-regulate”, and in exchange
for the in-network policer to be disabled. For prioritization, it
would be advantageous for the endpoint to communicate the content
type of different packets so that they can be prioritized correctly.
4. Out of Band vs. Inband Communication
There are generally two ways to resolve this information disparity
between the content endpoints and the network: communicating
additional information out of band, or inband.
Out of band communication involves the content endpoint and the MNO
exchanging information in a separate context from the flow in
question. There are various ways this could occur in practice, such
as facilities provided by 3GPP, emerging API standards like CAMARA,
or bespoke Internet API endpoints maintained by the MNO and accessed
by a content endpoint. Regardless of which method is used, there are
a few issues with using this form on information exchange that makes
them undesirable.
The core issue though is one of association. Suppose there’s a flow
that exists between an end user device and a content endpoint server
on the Internet. The endpoint server has relatively little
information about this user initially, mostly its basics such as the
5-tuple associated with the flow, of which the most identifying
information is the IP address. In order to exchange information with
the MNO about this, it has to be able to query the defined API and
exchange this information. In practical terms this may range in
difficulty from challenging to simply impossible. Further, the API
endpoint being communicated with is often not the same entity as a
network device which is applying the relevant policies. Thus even
after communication is established and information is exchanged, the
MNO API endpoint has the further responsibility of taking action on
that information, which involves further communication within its
network.
Joras Expires 29 December 2023 [Page 4]
RFC 1 SADCDN June 2023
Inband communication, as the name suggests, is any mechanism by which
devices in the network and the content endpoints can communicate
directly. This is, in a sense, merely an extension of how all
Internet Protocols as we know them today function. And indeed there
are even examples of where such communication is done inband to
facilitate cooperation, such as ECN marking. However to date all
these systems stop short of what one might think of as a
“communication channel” for exchanging rich information between the
network device and a content endpoint. Such a communication
mechanism has benefits over the out of band alternative, mostly in
the form of simplicity for both parties. If the communication
channel is established between the network device and the content
endpoint directly then the relevant information can be exchanged, and
acted upon, directly.
To use a concrete example, consider the case of traffic policing.
Suppose that there is a content provider who, in cooperation with
certain MNOs, is willing to limit the aggregate video data served to
a given user, and in exchange the MNO disables the network policer
for that user’s flows. The network device would identify these flows
and, inband with the flow’s packets, establish a communication
channel with the flows’ destination content endpoint. The network
device would communicate the desired limits to the content endpoint,
and the content endpoint would acknowledge the limits. The network
device would then simply disable (or significantly modify) the
policing configuration it otherwise would have applied. Securing
Information Exchange A major challenge with this inband approach in
particular is how to ensure the privacy and integrity of the data
being exchanged. The benefits of integrity protection are self-
evident – a bad actor on the path should not be able to modify the
communication such that it alters the behavior of the network or the
content endpoint. Privacy is similarly important. It is not
acceptable that an on-path observer should be privy to the
information being exchanged between the network device and the
content endpoint. Allowing this would enable a whole host of privacy
vulnerabilities which are all too commonplace on the Internet today.
The solution to both these problems is to encrypt the communication
using a standard cryptographic protocol. Utilizing standardized
cryptography also solves problems of trust and authenticity, by
allowing the parties to utilize existing authentication features of
cryptographic protocols.
Joras Expires 29 December 2023 [Page 5]
RFC 1 SADCDN June 2023
5. Proposed Solution Sketch
This proposed solution sketch first focuses on solving this problem
for UDP-based protocols, such as QUIC. This is partially because of
QUIC’s increasing ubiquity on the Internet for serving content of
this kind, but also because the solution itself involves utilizing
QUIC.
Recall that the desired goal here is for a network device to be able
to, inband with a new flow of QUIC packets, establish a communication
channel with the content endpoint to which those QUIC packets are
destined. The key mechanism to achieve this is for the network
device to establish its own QUIC connection with the same content
endpoint by appending its own QUIC packets to some part of the UDP/IP
packet of the original flow.
There are broadly two ways this could be done. One which seems
relatively straightforward would be for the network device to modify
the packet by adding on a UDP option or (newly defined) IP header,
the value of which is a QUIC packet. There are issues with this
approach though. Either a UDP option or an IP header could be
“bleached” by other devices in the network, or not supported by the
operating systems for the mobile device or content endpoint.
Another option which avoids this issue would be for the network
device to modify the UDP payload of the UDP/IP packet. To achieve
this the network device could encapsulate the original UDP payload
within another layer, similar to what was proposed with SPUD. In
this way each UDP payload would effectively contain two payloads: the
original UDP payload and the payload of a QUIC packet for the channel
between the network device and the content endpoint. The content
endpoint would have to be able to recognize this type of packet, of
course.
In either case, it is important to note the distinct advantages of
coupling the packets, versus the network device sending its own
packets. The most important property is that it allows guaranteeing
that the end-to-end flow and the inband flow arrive at the same
content endpoint. If the network device sent its own packets
instead, there would have to be some mechanism ensuring that the
packets are routed to the same endpoint. Another useful property is
that it allows the network device to have a much simpler QUIC
implementation, as it does not have to make any decisions about when
and if it can send packets on its own. It makes that decision only
on forwarding a UDP/IP packet.
Joras Expires 29 December 2023 [Page 6]
RFC 1 SADCDN June 2023
Using this scheme a network device can initiate its own QUIC
connection with the content endpoint as part of an existing UDP flow.
This QUIC connection is cryptographically independent from the end-
to-end UDP flow, and once established can be used as a secure
communication channel between the network device and the content
endpoint. Another way to think about this is that the QUIC packets
used for network device to content endpoint communication are simply
encrypted packet metadata associated with the end user’s flow.
TODO diagram.
In the above we can see a visualization of this idea, assuming that
the end-to-end flow is a QUIC connection. These form two completely
independent cryptographic contexts. Thus, only the content endpoint
can securely communicate with both the network device and the mobile
device. This can be used by the network device to, for example,
communicate the policer configuration to the content endpoint, which
can then influence the video playback to self-regulate and avoid the
policing. We can also use a similar scheme to establish a channel
between the mobile device and the packet core device.
6. Conventions and Definitions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
7. Security Considerations
TODO Security
8. IANA Considerations
This document has no IANA actions.
9. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/rfc/rfc8174>.
Joras Expires 29 December 2023 [Page 7]
RFC 1 SADCDN June 2023
Acknowledgments
TODO acknowledge.
Author's Address
Matt Joras
Meta
Email: matt.joras@gmail.com
Joras Expires 29 December 2023 [Page 8]