# Peer-to-Peer support default setting in the next OS update

**URL:** <https://community.info-beamer.com/t/peer-to-peer-support-default-setting-in-the-next-os-update/1016>\
**Category:** Announcements\
**Created:** [April 20, 2022, 10:00pm UTC](https://community.info-beamer.com/t/peer-to-peer-support-default-setting-in-the-next-os-update/1016 "2022-04-20T22:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [April 20, 2022, 10:00pm UTC](https://community.info-beamer.com/t/peer-to-peer-support-default-setting-in-the-next-os-update/1016/1 "2022-04-20T22:00:00Z")

</div>

![image](https://community.info-beamer.com/uploads/default/original/1X/453354e78296dbdf299802b5755e869d54cdbb24.jpeg)  
(image created using stable diffusion)

A new minor update to the `stable` release of the info-beamer OS will be available soon. One of the changes that’s worth its own post here is the new default setting for the [Peer-to-Peer feature](https://info-beamer.com/blog/introducing-peer-to-peer-content-distribution). With the new release, the peer-to-peer feature will be enabled by default for newly set up devices.

## What’s the peer-to-peer feature

- It allows a device to retrieve assigned content from other local devices in the same network. This results in reduced external bandwidth usage, and as a result faster downloads if multiple devices have the same content assigned to them.

- Since the [last OS release](https://info-beamer.com/blog/info-beamer-hosted-update-stable-0012), system updates can also use the peer-to-peer mechanism. That way multiple devices within the same network will most likely only have to download a new operating system update from the internet once as they can then locally share it. Of course updates are cryptographically signed to ensure they have not been tampered with.

- Devices can calculate how synchronized they are and auto-correct clock related problems automatically. They do this by periodically sending small messages to other local devices and taking measurements on how long those take to respond. This is an important feature for any video wall (or otherwise synchronized) installation as it allows devices to check on each other.

- The transfer of data among local devices is fully encrypted. Additionally, just like with content downloads over the internet, all data is checksummed before being used.

- The Peer-to-peer feature is purely additive. If a device cannot download content from any other local device it will fall back to downloading content over the internet instead.

- Additional minor features, see below.

## What the peer-to-peer feature is not

- It does **not** make your content available to anyone outside of your local network.

- It does **not** allow anyone with network access to your device to see what content is assigned to the device.

- It does **not** allow other devices within the same to control what a device is showing on its screen. Assigning content is done by the info-beamer backend. It also does not change the trust relationship between the device and the local network: The device does not trust other peers and the peer-to-peer feature cannot be used to push content to a device. It’s only used by a device to pull content from other devices. Of course all content is cryptographically verified before being used.

- While it opens up a two new ports (UDP 11111 and TCP 111111), they are only reachable from within the local network. Additionally the service implementing the peer-to-peer content transfer is written in Python and sandboxed. So a lot of bug classes caused by use of unsafe implementation languages can be ruled out.

- It’s not (and never will be) a required feature. You can set up devices without peer-to-peer support or disable peer-to-peer using the device configuration editor.

## Why enable by default?

With the next release, any newly set up device (so one where you just unzipped the install.zip or wrote install.img.gz to a fresh SD card) will enable peer-to-peer by default. Nothing will change for existing devices.

- The peer-to-peer feature was introduced 3 years ago. Since then one third of all devices have the feature enabled. The feature has been used millions of times to accelerate downloads for content assigned to such devices. Here’s a small snapshot from a device that heavily benefitted from using the peer-to-peer feature:  
 ![image](https://community.info-beamer.com/uploads/default/original/1X/d8ed971392bd372d1ff9fa81b47b127201d6ce9c.png)

- There have been zero issues within the last 3 years resulting from the peer-to-peer feature. Its usage is completely transparent as it is purely additive and if devices with peer-to-peer enabled cannot reach each other, all content retrieval seamlessly falls back to using the internet.

- A lot of video wall installations do not have the peer-to-peer feature enabled, despite adding lots of benefits like automatic time synchronization checks and sharing downloads. This resulted in quite a few support mails to help with enabling peer-to-peer in such cases.

- Additional minor features enabled by having the peer-to-peer service running on a device:

- In the near future, new scheduling capabilities will be available for packages across info-beamer. Due to how video walls work right now (each device only uses the local time to derive which content to play when), scheduling is pretty much impossible for video walls. The synchronization and discovery of other local devices offered by the peer-to-peer service will allow setups to seamlessly discover other local devices running the same setup and help them work together. This can be used, for example, to make synchronized scheduling decisions for videos walls. A new p2plib.py library will be released soon that offers an easy way to implement leader/follower logic with encrypted communication across multiple devices. Stay tuned.

To summarize: There are no downsides and only advantages. Having peer-to-peer enabled for new devices makes sense as the feature had more than 3 years to mature and proof its usefulness. Existing devices remain unchanged, but you can of course manually enable peer-to-peer support on them as well.

Feedback welcome.
