O Viber está usando TCP para VoIP?
O Viber está usando o UPD e não o TCP para o tráfego de VoIP. O TCP é usado para mensagens de texto.
O Viber usa o RTP (e SRTP quando criptografado). O RTP é principalmente implementado no UDP, pois é um protocolo em tempo real.
The RTP stream of the audio or audio/video call is converted to SRTP and encrypted via Salsa20 algorithm using the session key.
Fonte Visão geral da criptografia Viber
O uso de TCP e UDP está confirmado em Viber Communication Security desembaralhar o conteúdo embaralhado , que usou tcpdump
para gerar arquivos .pcap
para analisar o tráfego de dados do Viber:
This seemed like a good starting point to get some results so we filtered the data to get a one way voice stream using the following command:
tshark -r long-call.pcap -w long-call-oneway.pcap udp.dstport == 5243
Here we select only the UDP packets with the destination port for the Viber service so it is only originating voice traffic.
...
Besides the voice calls that Viber enables the user to make, it also allows them to send and receive text messages. This functionality uses some specialized tcp-based protocol to connect to the server and exchange messages. Decoding this stream has not been a priority within this project and there wasn’t any time left to research this further.
Quais portas o Viber usa?
In order for Viber Desktop to run on your computer, the following ports must be open for all addresses for both TCP and UDP:
- 5242
- 4244
- 5243
- 9785
- 80
- 443