Skip to content

Commit 701a715

Browse files
authored
Create 2025-10-30-tcp-rtt-and-tcp-fields.mdx
Change log for TCP fields
1 parent b66b61c commit 701a715

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: New TCP based fields available in Rulesets
3+
description: Cloudflare Rulesets now support evaluating TCP connections and TCP RTT as part of request logic.
4+
date: 2025-10-30
5+
---
6+
7+
## Build Rules Based on TCP Transport and Latency
8+
9+
Cloudflare now provides two new request fields in the Ruleset engine that let you make decisions based on whether a request used TCP and the measured TCP round trip time between the client and Cloudflare. These fields help you understand protocol usage across your traffic and build policies that respond to network performance. For example, you can distinguish TCP from QUIC traffic or route high latency requests to alternative origins when needed.
10+
11+
---
12+
13+
### New Fields
14+
15+
| Field | Type | Description |
16+
| --- | --- | --- |
17+
| `cf.edge.client_tcp` | Boolean | Indicates whether the request used TCP. A value of true means the client connected using TCP instead of QUIC. |
18+
| `cf.timings.client_tcp_rtt_msec` | Number | Reports the smoothed TCP round trip time between the client and Cloudflare in milliseconds. For example, a value of 20 indicates roughly twenty milliseconds of RTT. |
19+
20+
Example Ruleset expression:
21+
22+
```
23+
cf.edge.client_tcp && cf.timings.client_tcp_rtt_msec < 100
24+
```
25+
26+
More information can be found in the [Ruleset fields reference](https://developers.cloudflare.com/ruleset-engine/rules-language/fields/)

0 commit comments

Comments
 (0)