TSVWG | G. Fairhurst |
Internet-Draft | University of Aberdeen |
Intended status: Informational | C. Perkins |
Expires: February 24, 2020 | University of Glasgow |
August 23, 2019 |
The Impact of Transport Header Confidentiality on Network Operation and Evolution of the Internet
draft-ietf-tsvwg-transport-encrypt-08
This document describes some implications of applying end-to-end encryption at the transport layer. It first identifies in-network uses of transport layer header information. Then, it reviews some implications of developing end-to-end transport protocols that use encryption to provide confidentiality of the transport protocol headers, or that use authentication to protect the integrity of transport header information. Since measurement and analysis of the impact of network characteristics on transport protocols has been important to the design of current transports, it also considers the impact of transport encryption on transport and application evolution.
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 February 24, 2020.
Copyright (c) 2019 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
There is increased interest in, and deployment of, protocols that employ end-to-end encryption at the transport layer, including the transport layer headers. An example of such a transport is the QUIC transport protocol [I-D.ietf-quic-transport], currently being standardised in the IETF. Encryption of transport layer headers and payload data has many benefits in terms of protecting user privacy. These benefits have been widely discussed [RFC7258], [RFC7624], and this document strongly supports the increased use of encryption in transport protocols. Encryption and authentication can also be used to prevent unwanted modification of transport header information by middleboxes. There are also, however, some costs, in that the widespread use of transport encryption requires changes to network operations, and complicates network measurement for research, operational, and standardisation purposes. The direction in which the use of transport header confidentiality evolves could have significant implications on the way the Internet architecture develops, and therefore needs to be considered as a part of protocol design.
The remainder of this document discusses some consequences of applying end-to-end encryption at the transport layer. It reviews the implications of developing end-to-end transport protocols that use encryption to provide confidentiality of the transport protocol headers, and considers the effect of such changes on transport protocol design and network operations. It also considers some anticipated implications on transport and application evolution.
Transports are also increasingly encrypting and authenticating the payload (i.e., the application data carried within the transport connection) end-to-end. Such protection is encouraged, and the implications of protecting the payload are not further discussed in this document.
The transport layer provides end-to-end interactions between endpoints (processes) using an Internet path. Transport protocols layer directly over the network-layer service, and are sent in the payload of network-layer packets. They support end-to-end communication between applications, supported by higher-layer protocols, running on the end systems (transport endpoints). This simple architectural view hides one of the core functions of the transport: to discover and adapt to the Internet path that is currently used. The design of Internet transport protocols is as much about trying to avoid the unwanted side effects of congestion on a flow and other capacity-sharing flows, avoiding congestion collapse, adapting to changes in the path characteristics, etc., as it is about end-to-end feature negotiation, flow control, and optimising for performance of a specific application.
To achieve stable Internet operations, the IETF transport community has to date relied heavily on the results of measurements and the insights of the network operations community to understand the trade-offs, and to inform selection of appropriate mechanisms to ensure a safe, reliable, and robust Internet (e.g., [RFC1273]). In turn, the network operator and access provider community has relied on being able to understand the pattern and requirements of traffic passing over the Internet, both in aggregate and at the flow level. The widespread use of transport header encryption may change this.
In-network measurement of transport flow characteristics can be used to enhance performance, and control cost and service reliability. Some operators have deployed functionality in middleboxes to both support network operations and enhance performance. This reliance on the presence and semantics of specific header information leads to ossification, where an endpoint could be required to supply a specific header to receive the network service that it desires. In some cases, this could be benign or advantageous to the protocol (e.g., recognising the start of a connection, or explicitly exposing protocol information can be expected to provide more consistent decisions by on-path devices than the use of diverse methods to infer semantics from other flow properties). In other cases, the ossification could frustrate the evolution of the protocol (e.g., a mechanism implemented in a network device, such as a firewall, that required a header field to have only a specific known set of values would prevent the device from forwarding packets using a different version of a protocol that introduces a feature that changes the value of this field).
As an example of ossification, consider the experience of developing Transport Layer Security (TLS) 1.3 [RFC8446]. This required a design that recognised that deployed middleboxes relied on the presence of certain header filed exposed in TLS 1.2, and failed if those headers were changed. Other examples of the impact of ossification can be found in the development of Multipath TCP (MPTCP) and the TCP Fast Open option. The design of MPTCP had to be revised to account for middleboxes, so called "TCP Normalizers", that monitor the evolution of the window advertised in the TCP headers and that reset connections if the window does not grow as expected. Similarly, TCP Fast Open has had issues with middleboxes that remove unknown TCP options, that drop segments with unknown TCP options, that drop segments that contain data and have the SYN bit set, that drop packets with SYN/ACK that acknowledge data, or that disrupt connections that send data before the three-way handshake completes.
In all these cases, the issue was caused by middleboxes that had a hard-coded understanding of transport behaviour, and that interacted poorly with transports that tried to change that behaviour. Other examples have included middleboxes that rewrite TCP sequence and acknowledgement numbers but are unaware of the (newer) SACK option and don't correctly rewrite selective acknowledgements to match the changes made to the fixed TCP header.
Encryption is expected to form a basis for many future transport protocol designs. These can be in the form of encrypted transport protocols (i.e., transport protocols that use encryption to provide confidentiality of some or all of the transport-layer header information), and/or the encryption of transport payloads (i.e., confidentiality of the payload data). There are many motivations for deploying such transports, and increasing public concerns about interference with Internet traffic [RFC7624] have led to a rapidly expanding deployment of encrypted transport protocols such as QUIC [I-D.ietf-quic-transport]. Using encryption to provide confidentiality of the transport layer therefore brings some well-known privacy and security benefits.
Authentication and the introduction of cryptographic integrity checks for header fields can prevent undetected manipulation of transport headers by network devices. This does not prevent inspection of the information by devices on path, and it is possible that such devices could develop mechanisms that rely on the presence of such a field or a known value in the field. In this context, specification of a non-encrypted transport header field explicitly allows protocol designers to make the certain header information observable by the network. This supports use of this information by on-path devices, but at the same time can be expected to lead to ossification of the transport header, because network forwarding could evolve to depend on the presence and/or value of these fields. To avoid unwanted inspection, a protocol could intentionally vary the format or value of exposed header fields [I-D.ietf-tls-grease].
A protocol design that uses header encryption with secure key distribution can provide confidentiality for some, or all, of the protocol header information. This prevents an on-path device from observing the transport headers, and stops mechanisms being built that directly rely on transport header information, or that seek to infer semantics of exposed header fields. Transport header encryption can therefore help reduce ossification of the transport layer.
While encryption can hide transport header information, it does not prevent ossification of the network service. People seeking to understand network traffic could come to rely on pattern inferences and other heuristics as the basis for network decision and to derive measurement data. This can create new dependencies on the transport protocol, or the patterns of traffic it can generate. This use of machine-learning methods usually demands large data sets, presenting it own requirements for collecting and distributing the data.
The are architectural challenges and considerations in the way transport protocols are designed, and the ability to characterise and compare different transport solutions [Measure]. The decision about which transport headers fields are made observable offers trade-offs around authentication and confidentiality versus observability, network operations and management, and ossification. The impact differs depending on the activity, for example:
Different parties will view the relative importance of these issues differently. For some, the benefits of encrypting some, or all, of the transport headers may outweigh the impact of doing so; others might make a different trade-off. The purpose of highlighting the trade-offs is to make such analysis possible.
Despite transport headers having end-to-end meaning, some of these transport headers have come to be used in various ways within the Internet. In response to pervasive monitoring [RFC7624] revelations and the IETF consensus that "Pervasive Monitoring is an Attack" [RFC7258], efforts are underway to increase encryption of Internet traffic. Applying confidentiality to transport header fields affects how protocol information is used [RFC8404], requiring consideration of the trade-offs discussed in Section 2.3. To understand the implications, it is necessary to understand how transport layer headers are currently observed and/or modified by middleboxes within the network.
We review some current uses in the following section. This does not consider the intentional modification of transport headers by middleboxes (such as in Network Address Translation, NAT, or Firewalls). Common issues concerning IP address sharing are described in [RFC6269].
If in-network observation of transport protocol headers is needed, this requires knowledge of the format of the transport header:
The following subsections describe various ways that observable transport information has been utilised.
Flow identification is a common function. For example, performed by measurement activities, QoS classification, firewalls, Denial of Service, DOS, prevention. This becomes more complex and less easily achieved when multiplexing is used at or above the transport layer.
Observable transport header information, together with information in the network header, has been used to identify flows and their connection state, together with the protocol options being used. Transport protocols, such as TCP and the Stream Control Transport Protocol (SCTP), specify a standard base header that includes sequence number information and other data. They also have the possibility to negotiate additional headers at connection setup, identified by an option number in the transport header.
In some uses, a low-numbered (well-known) transport port number can be used to identify the protocol, although port information alone is not sufficient to guarantee identification of a protocol since applications can use arbitrary ports, multiple sessions can be multiplexed on a single port, and ports can be re-used by subsequent sessions.
UDP-based protocols often do not use well-known port numbers. Some flows can instead be identified by observing signalling protocol data (e.g., [RFC3261], [I-D.ietf-rtcweb-overview]) or through the use of magic numbers placed in the first byte(s) of the datagram payload [RFC7983].
Concealing transport header information can remove information used to classify flows by passive observers along the path, so operators will be unable to use this information directly. Careful use of the network layer features can help address provide similar information in the case where the network is unable to inspect transport protocol headers. Operators could also turn to more ambitious ways to collect, estimate, or infer that data, including heuristics based on the analysis of traffic patterns. For example, an operator that no longer has access to Session Description Protocol (SDP) session descriptions to classify a flow carry as audio traffic might instead use heuristics to infer that short UDP packets with regular spacing carry audio traffic. Operational practices aimed at inferring transport parameters are out of scope for this document, and are only mentioned here to recognize that encryption does not prevent operators from attempting to apply practices that were used with unencrypted transport headers.
Confidentiality of the transport payload could be provided while leaving some, or all, transport headers unencrypted, or providing this information in a network-layer extension, possibly with authentication. This provides many of the privacy and security benefits while supporting operations and research, but at the cost of ossifying the exposed headers.
Observable transport headers enable explicit measurement and analysis of protocol performance, network anomalies, and failure pathologies at any point along the Internet path. Some operators manage their portion of the Internet by characterizing the performance of link/network segments. Passive monitoring can observe traffic that does not encrypt the transport header information, and make inferences from transport headers to derive performance metrics.
A variety of open source and commercial tools have been deployed that utilise transport header information in this way. The following metrics can be derived:
This information can support network operations, inform capacity planning, and assist in determining the need for equipment and/or configuration changes by network operators. It can also inform Internet engineering activities by informing the development of new protocols, methodologies, and procedures.
Information from the transport protocol can be used by a multi-field classifier as a part of policy framework. Policies are commonly used for management of the QoS or Quality of Experience (QoE) in resource-constrained networks, and by firewalls to implement access rules (see also section 2.2.2 of [RFC8404]). Network-layer classification methods that rely on a multi-field classifier (e.g., inferring QoS from the 5-tuple or choice of application protocol) are incompatible with transport protocols that encrypt the transport information. Traffic that cannot be classified will typically receive a default treatment.
Transport information can also be explicitly set in network-layer header fields that are not encrypted. This can provide information to enable a different forwarding treatment by the network, even when a transport employs encryption to protect other header information.
The user of a transport that multiplexes multiple sub-flows might want to hide the presence and characteristics of these sub-flows. On the other hand, an encrypted transport could set the network-layer information to indicate the presence of sub-flows, and to reflect the network needs of individual sub-flows. There are several ways this could be done:
When transport headers are concealed, operators will be unable to use this information directly. Careful use of the network layer features can help address provide similar information in the case where the network is unable to inspect transport protocol headers.
The common language between network operators and application/content providers/users is packet transfer performance at a layer that all can view and analyse. For most packets, this has been the transport layer, until the emergence of QUIC, with the obvious exception of Virtual Private Networks (VPNs) and IPsec.
When encryption conceals more layers in each packet, people seeking understanding of the network operation rely more on pattern inference and other heuristics. It remains to be seen whether more complex inferences can be mastered to produce the same monitoring accuracy (see section 2.1.1 of [RFC8404]).
When measurement datasets are made available by servers or client endpoints, additional metadata, such as the state of the network, is often required to interpret this data to answer questions about network performance or understand a pathology. Collecting and coordinating such metadata is more difficult when the observation point is at a different location to the bottleneck/device under evaluation [RFC7799].
Packet sampling techniques are used to scale the processing involved in observing packets on high rate links. This exports only the packet header information of (randomly) selected packets. The utility of these measurements depends on the type of bearer and number of mechanisms used by network devices. Simple routers are relatively easy to manage, a device with more complexity demands understanding of the choice of many system parameters. This level of complexity exists when several network methods are combined.
This section discusses topics concerning observation of transport flows, with a focus on transport measurement.
On-path measurements are particularly useful for locating the source of problems, or to assess the performance of a network segment or a particular device configuration. Often issues can only be understood in the context of the other flows that share a particular path, common network device, interface port, etc. A simple example is monitoring of a network device that uses a scheduler or active queue management technique [RFC7567], where it could be desirable to understand whether the algorithms are correctly controlling latency, or if overload protection is working. This understanding implies knowledge of how traffic is assigned to any sub-queues used for flow scheduling, but can also require information about how the traffic dynamics impact active queue management, starvation prevention mechanisms, and circuit-breakers.
Sometimes multiple on-path observation points are needed. By correlating observations of headers at multiple points along the path (e.g., at the ingress and egress of a network segment), an observer can determine the contribution of a portion of the path to an observed metric, to locate a source of delay, jitter, loss, reordering, congestion marking, etc.
Traffic measurements (e.g., traffic volume, loss, latency) are used by operators to help plan deployment of new equipment and configuration in their networks. Data is also valuable to equipment vendors who want to understand traffic trends and patterns of usage as inputs to decisions about planning products and provisioning for new deployments. This measurement information can also be correlated with billing information when this is also collected by an operator.
A network operator supporting traffic that uses transport header encryption might not have access to per-flow measurement data. Trends in aggregate traffic can be observed and can be related to the endpoint addresses being used, but it may be impossible to correlate patterns in measurements with changes in transport protocols (e.g., the impact of changes in introducing a new transport protocol mechanism). This increases the dependency on other indirect sources of information to inform planning and provisioning.
Traffic measurements (e.g., traffic volume, loss, latency) can be used by various actors to help analyse the performance offered to the users of a network segment, and to inform operational practice.
While active measurements (see section 3.4 of [RFC7799]) may be used within a network, passive measurements (see section 3.6 of [RFC7799]) can have advantages in terms of eliminating unproductive test traffic, reducing the influence of test traffic on the overall traffic mix, and the ability to choose the point of observation (see Section 3.2.1). However, passive measurements can rely on observing transport headers which is not possible if those headers are encrypted.
Information provided by tools observing transport headers can help determine whether mechanisms are needed in the network to prevent flows from acquiring excessive network capacity. Operators can implement operational practices to manage traffic flows (e.g., to prevent flows from acquiring excessive network capacity under severe congestion) by deploying rate-limiters, traffic shaping or network transport circuit breakers [RFC8084].
Transport header information can be useful for a variety of operational tasks [RFC8404]: to diagnose network problems, assess network provider performance, evaluate equipment/protocol performance, capacity planning, management of security threats (including denial of service), and responding to user performance questions. Section 3.1.2 and Section 5 of [RFC8404] provide further examples. These tasks seldom involve the need to determine the contents of the transport payload, or other application details.
A network operator supporting traffic that uses transport header encryption can see only encrypted transport headers. This prevents deployment of performance measurement tools that rely on transport protocol information. Choosing to encrypt all the information reduces the ability of an operator to observe transport performance and could limit the ability of network operators to trace problems, make appropriate QoS decisions, or response to other queries about the network service. For some this will be blessing, for others it may be a curse. For example, operational performance data about encrypted flows needs to be determined by traffic pattern analysis, rather than relying on traditional tools. This can impact the ability of the operator to respond to faults, it could require reliance on endpoint diagnostic tools or user involvement in diagnosing and troubleshooting unusual use cases or non-trivial problems. A key need here is for tools to provide useful information during network anomalies (e.g., significant reordering, high or intermittent loss).
Measurements can be used to monitor the health of a portion of the Internet, to provide early warning of the need to take action. They can assist in setting buffer sizes, debugging and diagnosing the root causes of faults that concern a particular user's traffic. They can also be used to support post-mortem investigation after an anomaly to determine the root cause of a problem.
In some cases, measurements could involve active injection of test traffic to perform a measurement. However, most operators do not have access to user equipment, therefore the point of test is normally different from the transport endpoint. Injection of test traffic can incur an additional cost in running such tests (e.g., the implications of capacity tests in a mobile network are obvious). Some active measurements [RFC7799] (e.g., response under load or particular workloads) perturb other traffic, and could require dedicated access to the network segment. An alternative approach is to use in-network techniques that observe transport packet headers added while traffic traverses an operational network to make the measurements. These measurements do not require the cooperation of an endpoint.
In other cases, measurement involves dissecting network traffic flows. The observed transport layer information can help identify whether the link/network tuning is effective and alert to potential problems that can be hard to derive from link or device measurements alone. The design trade-offs for radio networks are often very different from those of wired networks. A radio-based network (e.g., cellular mobile, enterprise WiFi, satellite access/back-haul, point-to-point radio) has the complexity of a subsystem that performs radio resource management, with direct impact on the available capacity, and potentially loss/reordering of packets. The impact of the pattern of loss and congestion, differs for different traffic types, correlation with propagation and interference can all have significant impact on the cost and performance of a provided service. The need for this type of information is expected to increase as operators bring together heterogeneous types of network equipment and seek to deploy opportunistic methods to access radio spectrum.
A flow that conceals its transport header information could imply "don't touch" to some operators. This could limit a trouble-shooting response to "can't help, no trouble found".
Header compression saves link capacity by compressing network and transport protocol headers on a per-hop basis. It was widely used with low bandwidth dial-up access links, and still finds application on wireless links that are subject to capacity constraints. Header compression has been specified for use with TCP/IP and RTP/UDP/IP flows [RFC2507], [RFC2508], [RFC4995].
While it is possible to compress only the network layer headers, significant savings can be made if both the network and transport layer headers are compressed together as a single unit. The Secure RTP extensions [RFC3711] were explicitly designed to leave the transport protocol headers unencrypted, but authenticated, since support for header compression was considered important. Encrypting the transport protocol headers does not break such header compression, but does cause it to fall back to compressing only the network layer headers, with a significant reduction in efficiency. This can impact the efficiency of a link/path.
End-to-end encryption can be applied at various protocol layers. It can be applied above the transport to encrypt the transport payload. Encryption methods can hide information from an eavesdropper in the network. Encryption can also help protect the privacy of a user, by hiding data relating to user/device identity or location. Neither an integrity check nor encryption methods prevent traffic analysis, and usage needs to reflect that profiling of users, identification of location and fingerprinting of behaviour can take place even on encrypted traffic flows. Any header information that has a clear definition in the protocol's message format(s), or is implied by that definition, and is not cryptographically confidentiality-protected can be unambiguously interpreted by on-path observers [RFC8546].
There are several motivations for encryption:
[RFC6437], DSCP, and ECN fields.
Authentication methods that provide integrity checks of protocols fields have also been specified at the network layer, and this also protects transport header fields. The network layer itself carries protocol header fields that are increasingly used to help forwarding decisions reflect the need of transport protocols, such as the IPv6 Flow Label
The use of transport layer authentication and encryption exposes a tussle between middlebox vendors, operators, applications developers and users:
Whatever the motives, a decision to use pervasive transport header encryption will have implications on the way in which design and evaluation is performed. This can, in turn, impact the direction of evolution of the transport protocol stack. While the IETF can specify protocols, the success in actual deployment is often determined by many factors [RFC5218] that are not always clear at the time when protocols are being defined.
The following briefly reviews some security design options for transport protocols. A Survey of Transport Security Protocols [I-D.ietf-taps-transport-security] provides more details concerning commonly used encryption methods at the transport layer.
As seen, different transports use encryption to protect their header information to varying degrees. There is, however, a trend towards increased protection with newer transport protocols.
An on-path device can make measurements by appending additional protocol headers carrying operations, administration and management (OAM) information to packets at the ingress to a maintenance domain (e.g., an Ethernet protocol header with timestamps and sequence number information using a method such as 802.11ag or in-situ OAM [I-D.ietf-ippm-ioam-data]) and removing the additional header at the egress of the maintenance domain. This approach enables some types of measurements, but does not cover the entire range of measurements described in this document. In some cases, it can be difficult to position measurement tools at the required segments/nodes and there can be challenges in correlating the downsream/upstream information when in-band OAM data is inserted by an on-path device. This has the advantage that a single header can support all transport protocols, but there could also be less desirable implications of separating the operation of the transport protocol from the measurement framework.
Another example of a network-layer approach is the IPv6 Performance and Diagnostic Metrics (PDM) Destination Option [RFC8250]. This allows a sender to optionally include a destination option that caries header fields that can be used to observe timestamps and packet sequence numbers. This information could be authenticated by receiving transport endpoints when the information is added at the sender and visible at the receiving endpoint, although methods to do this have not currently been proposed. This method needs to be explicitly enabled at the sender.
Current measurement results suggest that it can be undesirable to rely on methods requiring end to end support of network options or extension headers across the Internet. IPv4 network options are often not supported (or are carried on a slower processing path) and some IPv6 networks have been observed to drop packets that set an IPv6 header extension (e.g., results from 2016 in [RFC7872]). Another possibility is that protocols that separately expose header information do not necessarily have an incentive to expose the actual information that is utilised by the protocol itself and could therefore manipulate the exposed header information to gain an advantage from the network. The incentive to reflect actual transport information needs to be considered when proposing a method that selectively exposes header information.
The choice of which fields to expose and which to encrypt is a design choice for the transport protocol. Any selective encryption method requires trading two conflicting goals for a transport protocol designer to decide which header fields to encrypt. Security work typically employs a design technique that seeks to expose only what is needed. This approach provides incentives to not reveal any information that is not necessary for the end-to-end communication. However, there can be performance and operational benefits in exposing selected information to network tools.
This section explores key implications of working with encrypted transport protocols.
Independent observation by multiple actors is important if the transport community is to maintain an accurate understanding of the network. Encrypting transport header encryption changes the ability to collect and independently analyse data. Internet transport protocols employ a set of mechanisms. Some of these need to work in cooperation with the network layer for loss detection and recovery, congestion detection and congestion control. Others need to work only end-to-end (e.g., parameter negotiation, flow-control).
The majority of present Internet applications use two well-known transport protocols, TCP and UDP. Although TCP represents the majority of current traffic, many real-time applications use UDP, and much of this traffic utilises RTP format headers in the payload of the UDP datagram. Since these protocol headers have been fixed for decades, a range of tools and analysis methods have became common and well-understood.
Protocols that expose the state information used by the transport protocol in their header information (e.g., timestamps used to calculate the RTT, packet numbers used to asses congestion and requests for retransmission) provide an incentive for the sending endpoint to provide correct information, since the protocol will not work otherwise. This increases confidence that the observer understands the transport interaction with the network. For example, when TCP is used over an unencrypted network path (i.e., one that does not use IPsec or other encryption below the transport), it implicitly exposes header information that can be used for measurement at any point along the path. This information is necessary for the protocol's correct operation, therefore there is no incentive for a TCP implementation to put incorrect information in this transport header. A network device can have confidence that the well-known (and ossified) transport information represents the actual state of the endpoints.
When encryption is used to conceal some or all of the transport headers, the transport protocol choose what information to reveal to the network about its internal state, what information to leave encrypted, and what fields to grease to protect against future ossification. Such a transport could be designed, for example, to provide summary data regarding its performance, congestion control state, etc., or to make an explicit measurement signal available. For example, a QUIC endpoint could set the spin bit to reflect to explicitly reveal a session's RTT [I-D.ietf-quic-spin-exp]).
When providing or using such information, it becomes important to consider the privacy of the user and their incentive for providing accurate and detailed information. Protocols that selectively reveal some transport state or measurement signals are choosing to establish a trust relationship with the network operators. There is no protocol mechanism that can guarantee that the information provided represents the actual transport state of the endpoints, since those endpoints can always send additional information in the encrypted part of the header, to update or replace whatever they reveal. This reduces the ability to independently measure and verify that a protocol is behaving as expected. Some operational uses need the information to contain sufficient detail to understand, and possibly reconstruct, the network traffic pattern for further testing; such operators must gain the trust of transport protocol implementers if they are to correctly reveal such information.
OAM data records [I-D.ietf-ippm-ioam-data] could be embedded into a variety of encapsulation methods at different layers to support the goals of a specific operational domain. OAM-related metadata can support functions such as performance evaluation, path-tracing, path verification information, classification and a diversity of other uses. When encryption is used to conceal some or all of the transport headers, analysis will require coordination between actors at different layers to successfully characterise flows and correlate the performance or behaviour of a specific mechanism with the configuration and traffic using operational equipment (e.g., combining transport and network measurements to explore congestion control dynamics, the implications of designs for active queue management or circuit breakers).
For some usage a standardised endpoint-based logging format (e.g., based on Quic-Trace) could offer an alternative for some in-network measurement. Such information will have a diversity of uses, including developers wishing to debug/understand the transport/application protocols with which they work, researchers seeking to spot trends and anomalies, and to characterise variants of protocols. Measurments based on logging will need to establish the validity and provenance of the logged information to establish how and when traces were captured.
However, endpoint logs do not provide equivalent information to in-network measurements. In particular, endpoint logs contain only a part of the information needed to understand the operation of network devices and identify issues such as link performance or capacity sharing between multiple flows. Additional information is needed to determine which equipment/links are used and the configuration of equipment along the network paths being measured.
The patterns and types of traffic that share Internet capacity change over time as networked applications, usage patterns and protocols continue to evolve.
If "unknown" or "uncharacterised" traffic patterns form a small part of the traffic aggregate passing through a network device or segment of the network the path, the dynamics of the uncharacterised traffic may not have a significant collateral impact on the performance of other traffic that shares this network segment. Once the proportion of this traffic increases, the need to monitor the traffic and determine if appropriate safety measures need to be put in place.
Tracking the impact of new mechanisms and protocols requires traffic volume to be measured and new transport behaviours to be identified. This is especially true of protocols operating over a UDP substrate. The level and style of encryption needs to be considered in determining how this activity is performed. On a shorter timescale, information may also need to be collected to manage denial of service attacks against the infrastructure.
Information provided by tools observing transport headers can be used to classify traffic, and to limit the network capacity used by certain flows, as discussed in Section 3.2.4). Equally, operators could use analysis of transport headers and transport flow state to demonstrate that they are not providing differential treatment to certain flows. Obfuscating or hiding this information using encryption may lead operators and maintainers of middleboxes (firewalls, etc.) to seek other methods to classify, and potentially other mechanisms to condition, network traffic.
A lack of data that reduces the level of precision with which flows can be classified also reduces the design space for conditioning mechanisms (e.g., rate limiting, circuit breaker techniques [RFC8084], or blocking of uncharacterised traffic), and this needs to be considered when evaluating the impact of designs for transport encryption [RFC5218].
Many network operators currently utilise observed transport information as a part of their operational practice, and have developed tools and operational practices based around currently deployed transports and their applications. Encryption of the transport information prevents tools from directly observing this information. A variety of open source and commercial tools have been deployed that utilise this information for a variety of short and long term measurements.
The network will not break just because transport headers are encrypted, although alternative diagnostic and troubleshooting tools would need to be developed and deployed. Introducing a new protocol or application can require these tool chains and practice to be updated, and may in turn impact operational mechanisms, and policies. Each change can introduce associated costs, including the cost of collecting data, and the tooling needed to handle multiple formats (possibly as these co-exist in the network, when measurements need to span time periods during which changes are deployed, or to compare with historical data). These costs are incurred by an operator to manage the service and debug network issues.
At the time of writing, the additional operational cost of using encrypted transports is not yet well understood. Design trade-offs could mitigate these costs by explicitly choosing to expose selected information (e.g., header invariants and the spin-bit in QUIC [I-D.ietf-quic-transport]), the specification of common log formats, and development of alternative approaches.
Evolution and the ability to understand (measure) the impact need to proceed hand-in-hand. Observable transport headers can provide open and verifiable measurement data. Observation of pathologies has a critical role in the design of transport protocol mechanisms and development of new mechanisms and protocols. This helps understanding the interactions between cooperating protocols and network mechanism, the implications of sharing capacity with other traffic and the impact of different patterns of usage. The ability of other stake holders to review transport header traces helps develop insight into performance and traffic contribution of specific variants of a protocol.
In development of new transport protocol mechanisms, attention needs to be paid to the expected scale of deployment. Whatever the mechanism, experience has shown that it is often difficult to correctly implement combinations of mechanisms [RFC8085]. Mechanisms often evolve as a protocol matures, or in response to changes in network conditions, changes in network traffic, or changes to application usage. Analysis is especially valuable when based on the behaviour experienced across a range of topologies, vendor equipment, and traffic patterns.
New transport protocol formats are expected to facilitate an increased pace of transport evolution, and with it the possibility to experiment with and deploy a wide range of protocol mechanisms. There has been recent interest in a wide range of new transport methods, e.g., Larger Initial Window, Proportional Rate Reduction (PRR), congestion control methods based on measuring bottleneck bandwidth and round-trip propagation time, the introduction of AQM techniques and new forms of ECN response (e.g., Data Centre TCP, DCTP, and methods proposed for L4S).The growth and diversity of applications and protocols using the Internet also continues to expand. For each new method or application it is desirable to build a body of data reflecting its behaviour under a wide range of deployment scenarios, traffic load, and interactions with other deployed/candidate methods.
Concealing transport header information could reduce the range of actors that can observe useful data. This would limit the information sources available to the Internet community to understand the operation of new transport protocols, reducing information to inform design decisions and standardisation of the new protocols and related operational practices. The cooperating dependence of network, application, and host to provide communication performance on the Internet is uncertain when only endpoints (i.e., at user devices and within service platforms) can observe performance, and when performance cannot be independently verified by all parties.
Independently observed data is also important to ensure the health of the research and development communities and can help promote acceptance of proposed specifications by the wider community (e.g., as a method to judge the safety for Internet deployment) and provides valuable input during standardisation. Open standards motivate a desire to include independent observation and evaluation of performance data, which in turn demands control over where and when measurement samples are collected. This requires consideration of the methods used to observe data and the appropriate balance between encrypting all and no transport information.
Confidentiality and strong integrity checks have properties that are being incorporated into new protocols and that have important benefits. The pace of development of transports using the WebRTC data channel, and the rapid deployment of the QUIC transport protocol, can both be attributed to using the combination of UDP as a substrate while providing confidentiality and authentication of the encapsulated transport headers and payload.
To achieve stable Internet operations, the IETF transport community has, to date, relied heavily on measurement and insights of the network operations community to understand the trade-offs, and to inform selection of appropriate mechanisms, to ensure a safe, reliable, and robust Internet (e.g., [RFC1273],[RFC2914]).
The traffic that can be observed by on-path network devices is a function of transport protocol design/options, network use, applications, and user characteristics. In general, when only a small proportion of the traffic has a specific (different) characteristic, such traffic seldom leads to operational concern, although the ability to measure and monitor it is less. The desire to understand the traffic and protocol interactions typically grows as the proportion of traffic increases in volume. The challenges increase when multiple instances of an evolving protocol contribute to the traffic that share network capacity.
An increased pace of evolution therefore needs to be accompanied by methods that can be successfully deployed and used across operational networks. This leads to a need for network operators at various levels (ISPs, enterprises, firewall maintainer, etc.) to identify appropriate operational support functions and procedures.
Protocols that change their transport header format (wire format) or their behaviour (e.g., algorithms that are needed to classify and characterise the protocol), will require new tooling to be developed to catch-up with the change. If the currently deployed tools and methods are no longer relevant, then it may no longer be possible to correctly measure performance. This can increase the response-time after faults, and can impact the ability to manage the network resulting in traffic causing traffic to be treated inappropriately (e.g., rate limiting because of being incorrectly classified/monitored).
There are benefits in exposing consistent information to the network that avoids traffic being inappropriately classified and then receiving a default treatment by the network. The flow label and DSCP fields provide examples of how transport information can be made available for network-layer decisions. Extension headers could also be used to carry transport information that can inform network-layer decisions. Other information may also be useful to various stakeholders, however this document does not make recommendations about what information should be exposed, to whom it should be observable, or how this will be achieved.
There are trade-offs and implications of increased use of encryption when designing a protocol. Transport protocol designers have often ignored the implications of whether the information in transport header fields can or will be used by in-network devices, and the implications this places on protocol evolution. This motivates a design that provides confidentiality of header information. This lack of visibility of transport header information can be expected to impact the ways that protocols are deployed, standardised, and their operational support. The impact of hiding transport headers therefore needs to be considered in the specification and development of protocols and standards. This has a potential impact on the way in which the IRTF and IETF develop new protocols, specifications, and guidelines: [RFC7258] notes: "Making networks unmanageable to mitigate (pervasive monitoring) is not an acceptable outcome, but ignoring (pervasive monitoring) would go against the consensus documented here."
The choice of whether future transport protocols encrypt their protocol headers needs to be taken based not solely on security and privacy considerations, but also taking into account the impact on operations, standards and research. As
As part of a protocol’s design, the community therefore needs to weigh the benefits of ossifying common headers versus the potential demerits of exposing specific information that could be observed along the network path, to ensure network operators, researchers and other stakeholders have appropriate tools to manage their networks and enable stable operation of the Internet as new protocols are deployed. An appropriate balance will emerge over time as real instances of this tension are analysed [RFC7258]. This balance between information exposed and information concealed ought to be carefully considered when specifying new transport protocols.
This document is about design and deployment considerations for transport protocols. Issues relating to security are discussed throughout this document.
Authentication, confidentiality protection, and integrity protection are identified as Transport Features by [RFC8095]. As currently deployed in the Internet, these features are generally provided by a protocol or layer on top of the transport protocol [I-D.ietf-taps-transport-security].
Confidentiality and strong integrity checks have properties that can also be incorporated into the design of a transport protocol. Integrity checks can protect an endpoint from undetected modification of protocol fields by network devices, whereas encryption and obfuscation or greasing can further prevent these headers being utilised by network devices. Hiding headers can therefore provide the opportunity for greater freedom to update the protocols and can ease experimentation with new techniques and their final deployment in endpoints. A protocol specification needs to weigh the benefits of ossifying common headers, versus the potential demerits of exposing specific information that could be observed along the network path to provide tools to manage new variants of protocols.
A protocol design that uses header encryption can provide confidentiality of some or all of the protocol header information. This prevents an on-path device from knowledge of the header field. It therefore prevents mechanisms being built that directly rely on the information or seeks to infer semantics of an exposed header field. Hiding headers can limit the ability to measure and characterise traffic.
Exposed transport headers are sometimes utilised as a part of the information to detect anomalies in network traffic. This can be used as the first line of defence to identify potential threats from DOS or malware and redirect suspect traffic to dedicated nodes responsible for DOS analysis, malware detection, or to perform packet "scrubbing" (the normalization of packets so that there are no ambiguities in interpretation by the ultimate destination of the packet). These techniques are currently used by some operators to also defend from distributed DOS attacks.
Exposed transport header fields are sometimes also utilised as a part of the information used by the receiver of a transport protocol to protect the transport layer from data injection by an attacker. In evaluating this use of exposed header information, it is important to consider whether it introduces a significant DOS threat. For example, an attacker could construct a DOS attack by sending packets with a sequence number that falls within the currently accepted range of sequence numbers at the receiving endpoint, this would then introduce additional work at the receiving endpoint, even though the data in the attacking packet may not finally be delivered by the transport layer. This is sometimes known as a “shadowing attack”. An attack can, for example, disrupt receiver processing, trigger loss and retransmission, or make a receiving endpoint perform unproductive decryption of packets that cannot be successfully decrypted (forcing a receiver to commit decryption resources, or to update and then restore protocol state).
One mitigation to off-path attack is to deny knowledge of what header information is accepted by a receiver or obfuscate the accepted header information, e.g., setting a non-predictable initial value for a sequence number during a protocol handshake, as in [RFC3550] and [RFC6056], or a port value that can not be predicted (see section 5.1 of [RFC8085]). A receiver could also require additional information to be used as a part of a validation check before accepting packets at the transport layer (e.g., utilising a part of the sequence number space that is encrypted; or by verifying an encrypted token not visible to an attacker). This would also mitigate against on-path attacks. An additional processing cost can be incurred when decryption needs to be attempted before a receiver is able to discard injected packets.
Open standards motivate a desire for this evaluation to include independent observation and evaluation of performance data, which in turn suggests control over where and when measurement samples are collected. This requires consideration of the appropriate balance between encrypting all and no transport information. Open data, and accessibility to tools that can help understand trends in application deployment, network traffic and usage patterns can all contribute to understanding security challenges.
The Security and Privacy Considerations in the Framework for Large-Scale Measurement of Broadband Performance (LMAP) [RFC7594] contain considerations for Active and Passive measurement techniques and supporting material on measurement context.
XX RFC ED - PLEASE REMOVE THIS SECTION XXX
This memo includes no request to IANA.
The authors would like to thank Mohamed Boucadair, Spencer Dawkins, Tom Herbert, Jana Iyengar, Mirja Kuehlewind, Kyle Rose, Kathleen Moriarty, Al Morton, Chris Seal, Joe Touch, Brian Trammell, Chris Wood, Thomas Fossati, and other members of the TSVWG for their comments and feedback.
This work has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 688421, and the EU Stand ICT Call 4. The opinions expressed and arguments employed reflect only the authors' view. The European Commission is not responsible for any use that may be made of that information.
This work has received funding from the UK Engineering and Physical Sciences Research Council under grant EP/R04144X/1.
-00 This is an individual draft for the IETF community.
-01 This draft was a result of walking away from the text for a few days and then reorganising the content.
-02 This draft fixes textual errors.
-03 This draft follows feedback from people reading this draft.
-04 This adds an additional contributor and includes significant reworking to ready this for review by the wider IETF community Colin Perkins joined the author list.
Comments from the community are welcome on the text and recommendations.
-05 Corrections received and helpful inputs from Mohamed Boucadair.
-06 Updated following comments from Stephen Farrell, and feedback via email. Added a draft conclusion section to sketch some strawman scenarios that could emerge.
-07 Updated following comments from Al Morton, Chris Seal, and other feedback via email.
-08 Updated to address comments sent to the TSVWG mailing list by Kathleen Moriarty (on 08/05/2018 and 17/05/2018), Joe Touch on 11/05/2018, and Spencer Dawkins.
-09 Updated security considerations.
-10 Updated references, split the Introduction, and added a paragraph giving some examples of why ossification has been an issue.
-01 This resolved some reference issues. Updated section on observation by devices on the path.
-02 Comments received from Kyle Rose, Spencer Dawkins and Tom Herbert. The network-layer information has also been re-organised after comments at IETF-103.
-03 Added a section on header compression and rewriting of sections referring to RTP transport. This version contains author editorial work and removed duplicate section.
-04 Revised following SecDir Review
-05 Editorial pass and minor corrections noted on TSVWG list.
-06 Updated conclusions and minor corrections. Responded to request to add OAM discussion to Section 6.1.
-07 Addressed feedback from Ruediger and Thomas.
Section 2 deserved some work to make it easier to read and avoid repetition. This edit finally gets to this, and eliminates some duplication. This also moves some of the material from section 2 to reform a clearer conclusion. The scope remains focussed on the usage of transport headers and the implications of encryption - not on proposals for new techniques/specifications to be developed.
-08 Addressed feedback and completed editorial work, including updating the text referring to RFC7872, in preparation for a WGLC.