SAP IoT Connect 365 OpenVPN configuration supports both UDP and TCP.
Transmission Control Protocol (TCP)
TCP is also known as the "reliable" protocol because it guarantees delivery. For each packet sent over TCP, a confirmation packet is answered by the destination server. If no such confirmation is received by the source, a new packet will be sent. When using TCP you have a guaranteed delivery of data.
User Datagram Protocol (UDP)
UDP does not guarantee delivery of data and is therefore not as reliable as TCP. Packets are simply sent without waiting for any acknowledgement of delivery or retries. This enables faster connection but is less reliable.
Clients have the possibility to use either one of the protocols by changing the configuration file they download in the SAP IoT Connect 365 UI.
Which protocol should you use?
This depends on what you are planning to use our service for. If reliability is your primary concern, TCP would be advised. If you are looking for speed, we recommend you use UDP.
The choice also depends on the application. Here are a few examples:
UDP is generally used for Voice over IP (VoIP), media streaming, online gaming.
TCP is generally used for web (https connections), SSH, IMAP/POP (for email).
Changing protocol in the SAP IoT Connect 365configuration
SAP IoT Connect 365 's OpenVPN configuration supports both UDP and TCP protocols. The standard protocol used is UDP. To change the protocol, you first need to download the configuration file in the UI:
Log in to the SAP IoT Connect 365 UI and click on the link symbol called "Tokens, IPs and VPNs setup" in the upper right corner. Scroll down the page and find the category VPN configuration and download the configuration that fits with your OS and Regional Internet Breakout. For example, for WIndows:
Once you have downloaded the configuration file, you can edit it with a text editor (we recommend you use: Notepad++).
OpenVPN for Windows
Open the file ".openvpn" and look for "proto udp" (3rd line). Change it to "proto tcp" if you want to switch to TCP.
OpenVPN for Linux
Open the file ".conf" and look for "proto udp" (3rd line). Change it to "proto tcp" if you want to switch to TCP.
Linux users also need to change the 7th line from "explicit-exit-notify 3" to ";explicit-exit-notify 3".
By adding ";" you disable this function.
Shahzad Ismail Community Manager – SAP Digital Interconnect