# Performance over long hauls

**URL:** https://forum.syncthing.net/t/performance-over-long-hauls/1225
**Category:** Support
**Created:** [October 22, 2014, 12:08pm UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225 "2014-10-22T12:08:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![damageboy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/damageboy/32/562_2.png) [@damageboy](https://forum.syncthing.net/u/damageboy)
#### Post date: [October 22, 2014, 12:08pm UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/1 "2014-10-22T12:08:46Z")

</div>

I’ve have the unfortunate “luck” of discovering the wonderful aspects of using TCP over high BDP networks (Bandwidth Delay Product), where TCP performs miserably over networks with very large bandwidths (say 100Mbit/s) and high distances (15k miles, in some of my cases).

One of the ways around this I’ve employed so far was the use of udp based tools like [uftp](http://uftp-multicast.sourceforge.net/) whose main saving grace (except for having and abominal cli interface) is that it simply blasts the other side with udp packets and re-transmits the failed chunks in a second, then third and so forth passes.

This sort of technique, has been able to provide almost full BW over long hauls for me, where all previous methods had failed.

I would like to perhaps understand a bit more about how pulse/syncthing works, and start by asking, is there a way to force pulse to use UDP?

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [October 22, 2014, 1:03pm UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/2 "2014-10-22T13:03:16Z")

</div>

> <https://github.com/syncthing/syncthing/issues/804>
>
> This is a long-shot, over-engineering and is not required, but a interesting topic nonetheless which could be a unique selling point...

But I’d be nice to have encryption too somehow.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [October 23, 2014, 9:06am UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/3 "2014-10-23T09:06:45Z")

</div>

Yeah, it’s something that’s going on a little bit in the background. Now and then when I have time over I make baby steps towards implementing UDT or similar in Go (but not much progress there yet), and another approach could be to change BEP to be easier used directly on top of unreliable messages. That would require reworking the encryption mostly, since we can’t rely on TLS solving it for us.

---

<div class="post-metadata">

### Author: ![Cyphase](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cyphase/32/526_2.png) [@Cyphase](https://forum.syncthing.net/u/Cyphase)
#### Post date: [October 23, 2014, 10:21pm UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/4 "2014-10-23T22:21:59Z")

</div>

There is DTLS for encryption, though I don’t see a Go package that supports it; you’d have to bind to OpenSSL or something.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [October 24, 2014, 8:52am UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/5 "2014-10-24T08:52:11Z")

</div>

Yeah, exactly. I’d prefer not going down that route.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [May 12, 2017, 12:57pm UTC](https://forum.syncthing.net/t/performance-over-long-hauls/1225/6 "2017-05-12T12:57:05Z")

</div>


