Skip to content

Commit 7540fc3

Browse files
[Rules] Changelog: Create 2025-10-30-tcp-rtt-and-tcp-fields.mdx (#26187)
--------- Co-authored-by: Pedro Sousa <680496+pedrosousa@users.noreply.github.com>
1 parent 9c23931 commit 7540fc3

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 filter 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 Rules language [fields reference](/ruleset-engine/rules-language/fields/reference/).

0 commit comments

Comments
 (0)