Skip to content

Commit 2f52c30

Browse files
renandincerkodster28
authored andcommitted
Calls: Cleanup Calls TURN FAQ page and add STUN question (#19526)
1 parent b647f57 commit 2f52c30

File tree

1 file changed

+10
-116
lines changed

1 file changed

+10
-116
lines changed

src/content/docs/calls/turn/faq.mdx

Lines changed: 10 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ pcx_content_type: get-started
33
title: FAQ
44
sidebar:
55
order: 20
6-
76
---
87

9-
108
## General
119

1210
### What is Cloudflare Calls TURN pricing? How exactly is it calculated?
1311

14-
15-
1612
Cloudflare TURN pricing is based on the data sent from the Cloudflare edge to the TURN client, as described in [RFC 8656 Figure 1](https://datatracker.ietf.org/doc/html/rfc8656#fig-turn-model). This means data sent from the TURN server to the TURN client and captures all data, including TURN overhead, following successful authentication.
1713

1814
Pricing for Cloudflare Calls Serverless SFU and TURN services is $0.05 per GB of data used.
@@ -27,211 +23,109 @@ Traffic between Cloudflare Calls TURN and Cloudflare Calls SFU or Cloudflare Str
2723

2824
</div>
2925

30-
3126
### Is Calls TURN HIPAA/GDPR/FedRAMP compliant?
3227

33-
34-
35-
36-
3728
Please view Cloudflare's [certifications and compliance resources](https://www.cloudflare.com/trust-hub/compliance-resources/) and contact your Cloudflare enterprise account manager for more information.
3829

3930
### Is Calls TURN end-to-end encrypted?
4031

41-
42-
43-
44-
45-
46-
4732
TURN protocol, [RFC 8656](https://datatracker.ietf.org/doc/html/rfc8656), does not discuss encryption beyond wrapper protocols such as TURN over TLS. If you are using TURN with WebRTC will encrypt data at the WebRTC level.
4833

49-
50-
5134
### What regions does Cloudflare Calls TURN operate at?
5235

53-
54-
55-
56-
5736
Cloudflare Calls TURN server runs on [Cloudflare's global network](https://www.cloudflare.com/network) - a growing global network of thousands of machines distributed across hundreds of locations, with the notable exception of the Cloudflare's [China Network](/china-network/).
5837

59-
60-
6138
### Does Cloudflare Calls TURN use the Cloudflare Backbone or is there any "magic" Cloudflare do to speed connection up?
6239

63-
64-
65-
66-
6740
Cloudflare Calls TURN allocations are homed in the nearest available Cloudflare data center to the TURN client via anycast routing. If both ends of a connection are using Cloudflare Calls TURN, Cloudflare will be able to control the routing and, if possible, route TURN packets through the Cloudflare backbone.
6841

69-
70-
7142
### What is the difference between Cloudflare Calls TURN with a enterprise plan vs self-serve (pay with your credit card) plans?
7243

73-
74-
75-
76-
7744
There is no performance or feature level difference for Cloudflare Calls TURN service in enterprise or self-serve plans, however those on [enterprise plans](https://www.cloudflare.com/enterprise/) will get the benefit of priority support, predictable flat-rate pricing and SLA guarantees.
7845

79-
8046
### Does Cloudflare Calls TURN run in the Cloudflare China Network?
8147

82-
83-
84-
85-
86-
8748
Cloudflare's [China Network](/china-network/) does not participate in serving Calls traffic and TURN traffic from China will connect to Cloudflare locations outside of China.
8849

89-
90-
91-
9250
### How long does it take for TURN activity to be available in analytics?
9351

94-
95-
96-
9752
TURN usage shows up in analytics in 30 seconds.
9853

99-
10054
## Technical
10155

10256
### I need to allowlist (whitelist) Cloudflare Calls TURN IP addresses. Which IP addresses should I use?
10357

104-
105-
106-
107-
108-
10958
Cloudflare Calls TURN is easy to use by IT administrators who have strict firewalls because it requires very few IP addresses to be allowlisted compared to other providers. You must allowlist both IPv6 and IPv4 addresses.
11059

11160
Please allowlist the following IP addresses:
11261

113-
* `2a06:98c1:3200::1/128`
114-
* `2606:4700:48::1/128`
115-
* `141.101.90.1/32`
116-
* `162.159.207.1/32`
62+
- `2a06:98c1:3200::1/128`
63+
- `2606:4700:48::1/128`
64+
- `141.101.90.1/32`
65+
- `162.159.207.1/32`
11766

11867
:::caution[Watch for IP changes]
11968

120-
12169
Cloudflare tries to, but cannot guarantee that the IP addresses used for the TURN service won't change. If you are allowlisting IP addresses and do not have a enterprise contract, you must set up alerting that detects changes the DNS response from `turn.cloudflare.com` (A and AAAA records) and update the hardcoded IP address(es) accordingly within 14 days of the DNS change.
12270

12371
For more details about static IPs, guarantees and other arrangements please discuss with your enterprise account team.
12472

12573
Your enterprise team will be able to provide additional addresses to allowlist as future backup to achieve address diversity while still keeping a short list of IPs.
12674

127-
12875
:::
12976

130-
13177
### I would like to hardcode IP addresses used for TURN in my application to save a DNS lookup
13278

133-
134-
135-
136-
137-
13879
Although this is not recommended, we understand there is a very small set of circumstances where hardcoding IP addresses might be useful. In this case, you must set up alerting that detects changes the DNS response from `turn.cloudflare.com` (A and AAAA records) and update the hardcoded IP address(es) accordingly within 14 days of the DNS change. Note that this DNS response could return more than one IP address. In addition, you must set up a failover to a DNS query if there is a problem connecting to the hardcoded IP address. Cloudflare tries to, but cannot guarantee that the IP address used for the TURN service won't change unless this is in your enterprise contract. For more details about static IPs, guarantees and other arrangements please discuss with your enterprise account team.
13980

81+
### I see that TURN IP are published above. Do you also publish IPs for STUN?
14082

83+
TURN service at `turn.cloudflare.com` will also respond to binding requests ("STUN requests").
14184

14285
### Does Cloudflare Calls TURN support the expired IETF RFC draft "draft-uberti-behave-turn-rest-00"?
14386

144-
145-
146-
147-
14887
The Cloudflare Calls credential generation function returns a JSON structure similar to the [expired RFC draft "draft-uberti-behave-turn-rest-00"](https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00), but it does not include the TTL value. If you need a response in this format, you can modify the JSON from the Cloudflare Calls credential generation endpoint to the required format in your backend server or Cloudflare Workers.
14988

150-
151-
15289
### I am observing packet loss when using Cloudflare Calls TURN - how can I debug this?
15390

154-
155-
156-
157-
15891
Packet loss is normal in UDP and can happen occasionally even on reliable connections. However, if you observe systematic packet loss, consider the following:
15992

160-
* Are you sending or receiving data at a high rate (>50-100Mbps) from a single TURN client? Calls TURN might be dropping packets to signal you to slow down.
161-
* Are you sending or receiving large amounts of data with very small packet sizes (high packet rate > 5-10kpps) from a single TURN client? Cloudflare Calls might be dropping packets.
162-
* Are you sending packets to new unique addresses at a high rate resembling to [port scanning](https://en.wikipedia.org/wiki/Port_scanner) behavior?
163-
164-
93+
- Are you sending or receiving data at a high rate (>50-100Mbps) from a single TURN client? Calls TURN might be dropping packets to signal you to slow down.
94+
- Are you sending or receiving large amounts of data with very small packet sizes (high packet rate > 5-10kpps) from a single TURN client? Cloudflare Calls might be dropping packets.
95+
- Are you sending packets to new unique addresses at a high rate resembling to [port scanning](https://en.wikipedia.org/wiki/Port_scanner) behavior?
16596

16697
### I plan to use Calls TURN at scale. What is the rate at which I can issue credentials?
16798

168-
169-
170-
171-
17299
There is no defined limit for credential issuance. Start at 500 credentials/sec and scale up linearly. Ensure you use more than 50% of the issued credentials.
173100

174-
175101
### What is the maximum value I can use for TURN credential expiry time?
176102

177-
178103
You can set a expiration time for a credential up to 48 hours in the future. If you need your TURN allocation to last longer than this, you will need to [update](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration) the TURN credentials.
179104

180-
181-
182105
### Does Calls TURN support IPv6?
183106

184-
185-
186-
187107
Yes. Cloudflare Calls is available over both IPv4 and IPv6 for TURN Client to TURN server communication, however it does not issue relay addresses in IPv6 as described in [RFC 6156](https://datatracker.ietf.org/doc/html/rfc6156).
188108

189-
190-
191109
### Does Calls TURN issue IPv6 relay addresses?
192110

193-
194-
195-
196-
197111
No. Calls TURN will not respect `REQUESTED-ADDRESS-FAMILY` STUN attribute if specified and will issue IPv4 addresses only.
198112

199-
200113
### Does Calls TURN support TCP relaying?
201114

202-
203-
204-
205-
206-
207115
No. Calls does not implement [RFC6062](https://datatracker.ietf.org/doc/html/rfc6062) and will not respect `REQUESTED-TRANSPORT` STUN attribute.
208116

209-
210-
211-
212117
### I am unable to make CreatePermission or ChannelBind requests with certain IP addresses. Why is that?
213118

214-
215-
216-
217119
Cloudflare Calls denies CreatePermission or ChannelBind requests if private IP ranges (e.g loopback addresses, linklocal unicast or multicast blocks) or IP addresses that are part of [BYOIP](/byoip/) are used.
218120

219121
If you are a Cloudflare BYOIP customer and wish to connect to your BYOIP ranges with Calls TURN, please reach out to your account manager for further details.
220122

221-
222-
223123
### When I send packets to relayed address without using TURN, the packets don't arrive
224124

225-
226-
227-
228-
229125
Cloudflare Calls denies CreatePermission or ChannelBind requests if private IP ranges (e.g loopback addresses, linklocal unicast or multicast blocks) or IP addresses that are part of [BYOIP](/byoip/) are used.
230126

231127
If you are a Cloudflare BYOIP customer and wish to connect to your BYOIP ranges with Calls TURN, please reach out to your account manager for further details.
232128

233-
234-
235129
### What will happen if TURN credentials expire while the TURN allocation is in use?
236130

237-
Cloudflare Calls will immediately stop billing and recording usage for analytics. After a short delay, the connection will be disconnected.
131+
Cloudflare Calls will immediately stop billing and recording usage for analytics. After a short delay, the connection will be disconnected.

0 commit comments

Comments
 (0)