Skype protocol

Short description: Proprietary Internet telephony network

The Skype protocol is a proprietary Internet telephony network used by Skype. The protocol's specifications have not been made publicly available by Skype and official applications using the protocol are closed-source.

The Skype network is not interoperable with most other Voice over IP (VoIP) networks without proper licensing from Skype. Numerous attempts to study or reverse-engineer the protocol have been undertaken to reveal the protocol, investigate security or allow unofficial clients.

On June 20, 2014, Microsoft announced the deprecation of the old Skype protocol. Within several months from this date, in order to continue using Skype services, Skype users had to update to Skype applications released in 2014, and users were not able to log in to older Skype versions (clients).[1][2] No announcement has been made on whether SmartTV and hardware phones with built-in Skype functionality will continue to work without interruptions. The new Skype protocol—Microsoft Notification Protocol 24—promised better offline messaging and better messages synchronization across Skype devices. The deprecation became effective in the second week of August 2014.[3]

## Contents

* 1 Peer-to-peer architecture
* 2 Protocol
* 2.1 Protocol detection
* 3 Obfuscation layer
* 4 TCP
* 5 Low-level datagrams
* 5.1 Object lists
* 5.2 Packet compression
* 6 Legal issues
* 7 Notes
* 8 References
* 9 External links

## Peer-to-peer architecture

Skype was the first peer-to-peer IP telephony network.[4] The network contains three types of entities: supernodes, ordinary nodes, and the login server. Each client maintains a host cache with the IP address and port numbers of reachable supernodes. The Skype user directory is decentralized and distributed among the supernodes in the network. Supernodes are grouped into slots (9–10 supernodes), and slots are grouped into blocks (8 slots).[citation needed]

Previously any client with good bandwidth, no restrictions due to firewall or network address translation (NAT), and adequate processing power could become a supernode. This placed an extra burden on those who connected to the Internet without NAT, as Skype used their computers and Internet connections as third parties for UDP hole punching (to directly connect two clients both behind NAT) or to completely relay other users' calls. In 2012, Microsoft altered the design of the network, and brought all supernodes under their control as hosted servers in data centres.[5] Microsoft at the time defended the move, saying they "believe this approach has immediate performance, scalability and availability benefits for the hundreds of millions of users that make up the Skype community."[6] At the time there was some concern regarding the privacy implications of the change,[7] which appear to have been proven true with the revelation of the PRISM surveillance program in June 2013.[8][9]

Skype does not support the use of the IPv6 protocol,[10] which would greatly reduce the complexity associated with the aforementioned IPv4 communication structure.

Supernodes relay communications on behalf of two other clients, both of which are behind firewalls or "one-to-many" network address translation. Without relaying by the supernodes, two clients with firewall or NAT difficulties would be unable to make or receive calls from one another. Skype tries to get the two ends to negotiate the connection details directly, but sometimes the sum of problems at both ends can prevent direct conversation being established.

The problems with firewalls and NAT can be:

* The external port numbers or IP address are not derivable, because NAT rewrites them
* The firewall and NAT in use prevents the session being received
* UDP is not usable due to NAT issues, such as timeout
* Firewalls block many ports
* TCP through many-to-one NAT is always "outward only" by default – adding port-forwarding settings to the NAT router can allow reception of TCP sessions

## Protocol

Signaling is encrypted using RC4; however, the method only obfuscates the traffic as the key can be recovered from the packet. Voice data is encrypted with AES.[11]

The Skype client's application programming interface (API) opens the network to software developers. The Skype API allows other programs to use the Skype network to get "white pages" information and manage calls.

The Skype code is closed source, and the protocol is not standardized.[12] Parts of the client use Internet Direct (Indy), an open source socket communication library.[citation needed]

On July 8, 2012, a researcher from Benin, Ouanilo Medegan, released articles and proof of concept code, results of his reverse engineering the Skype client.[13]

### Protocol detection

Many networking and security companies claim to detect and control Skype's protocol for enterprise and carrier applications. While the specific detection methods used by these companies are often proprietary, Pearson's chi-squared test and stochastic characterization with Naive Bayes classifiers are two approaches that were published in 2007.[14]

## Obfuscation layer

The RC4 encryption algorithm is used to obfuscate the payload of datagrams.

1. The CRC32 of public source and destination IP, Skype's packet ID are taken
2. Skype obfuscation layer's initialization vector (IV).

The XOR of these two 32-bit values is transformed to an 80-byte RC4 key using an unknown key engine.

A notable misuse of RC4 in Skype can be found on TCP streams (UDP is unaffected). The first 14 bytes (10 of which are known to the user, since they consist of a hash of the username and password) are XOR-ed with the RC4 stream. Then, the cipher is reinitialized to encrypt the rest of the TCP stream.[15]

## TCP

TCP packets:

TCP
Skype Init TCP packet

The Skype Init TCP packet contains

* the seed (4 bytes)
* init_str string 00 01 00 00 01 00 00 00 01/03

## Low-level datagrams

Almost all traffic is ciphered. Each command has its parameters appended in an object list. The object list can be compressed.

/ Object List     ... -|
Enc      -> Cmd -> Encod
^           \ Compressed List ... -|
Frag         |                                  |
|

<

|
Ack

NAck

Forward  -> Forwarded..Message

### Object lists

An object can be a number, string, an IP:port, or even another object list. Each object has an ID. This ID identifies which command parameter the object is.

Object:
Number
IP:Port
List of numbers
String
RSA key

Object List
List Size (n)
Object 1

Object n

### Packet compression

Packets can be compressed. The algorithm is a variation of arithmetic compression that uses reals instead of bits.

## Legal issues

Reverse engineering of the Skype protocol by inspecting/disassembling binaries is prohibited by the terms and conditions of Skype's license agreement. However European Union law allows reverse-engineering a computer program without getting a permission from an author for inter-operability purposes.[16] In the United States, the Digital Millennium Copyright Act provides protections for reverse engineering software for the purposes of interoperability with other software.[17][18] There are also legal precedents in the United States when the reverse-engineering is aimed at interoperability of file formats and protocols.[19][20][21]

In addition, some countries specifically permit a program to be copied for the purposes of reverse engineering.[22]

## Notes

1. ↑ "Making Way for the Next Generation of Skype on Desktop". 20 June 2014. https://blogs.skype.com/news/2014/06/20/making-way-for-the-next-generation-of-skype-on-desktop/.
2. ↑ Keizer, Gregg (21 June 2014). "Update: Skype to retire recent editions for Windows, Mac; upgrades mandatory". http://www.computerworld.com/s/article/9249275/Update_Skype_to_retire_recent_editions_for_Windows_Mac_upgrades_mandatory.
3. ↑ Chris Merrimen (15 August 2014). "Skype stops working on older Android phones leaving Linux users in the dark". CNET. http://www.theinquirer.net/inquirer/news/2360604/skype-stops-working-on-older-android-phones-leaving-linux-users-in-the-dark.
4. ↑ Salman A. Baset; Henning Schulzrinne (2004). "An analysis of the Skype peer-to-peer Internet telephony protocol". p. 11\. arXiv:cs/0412017v1.
5. ↑ Branscombe, Mary (27 July 2012). "Forget the conspiracy theories: Skype's supernodes belong in the cloud". 500 words into the future (ZDNet). http://www.zdnet.com/forget-the-conspiracy-theories-skypes-supernodes-belong-in-the-cloud-7000001720/.
6. ↑ "Skype replaces P2P supernodes with Linux boxes hosted by Microsoft (updated)". Ars Technica. 2 May 2012. https://arstechnica.com/business/2012/05/skype-replaces-p2p-supernodes-with-linux-boxes-hosted-by-microsoft/.
7. ↑ Kosner, Anthony (18 July 2012). "Will Microsoft's Changes To The Architecture Of Skype Make It Easier To Snoop?". Forbes blog. https://www.forbes.com/sites/anthonykosner/2012/07/18/did-microsoft-change-the-architecture-of-skype-to-make-it-easier-to-snoop/.
8. ↑ Gallagher, Ryan (6 June 2013). "Newly Revealed PRISM Snooping Makes Verizon Surveillance Look Like Kids' Stuff". Slate blog. http://www.slate.com/blogs/future_tense/2013/06/06/nsa_prism_surveillance_private_data_from_google_microsoft_skype_apple_yahoo.html.
9. ↑ Greenwald, Glenn (7 June 2013). "NSA Prism program taps in to user data of Apple, Google and others". The Guardian. https://www.theguardian.com/world/2013/jun/06/us-tech-giants-nsa-data.
10. ↑ "Skype does not support IPv6.". Skype official Twitter account. 1 Nov 2012. https://twitter.com/SkypeTalks/status/264057558262747136.
11. ↑ Introduction Skype analysis Enforcing anti-Skype policies, Skype uncovered Security study of Skype, Desclaux Fabrice, 7/11/2005, EADS CCR/STI/C
12. ↑ "Which protocols does Skype use?". Skype. http://support.skype.com/en_US/faq/FA153/Which-protocols-does-Skype-use.
13. ↑ "Posts under Skype Reverse Category". http://www.oklabs.net/category/skype-reverse/.
"Skype Reverse Engineering: The (long) journey ;)..". http://www.oklabs.net/skype-reverse-engineering-the-long-journey/.
14. ↑ Dario Bonfiglio. "Revealing Skype Traffic: When Randomness Plays with You". ACM SIGCOMM Computer Communication Review 37 (SIGCOMM 2007): 37–48. https://www.dpacket.org/articles/revealing-skype-traffic-when-randomness-plays-you.
15. ↑ Fabrice Desclaux; Kostya Kortchinsky (2006-06-17). "Vanilla Skype part 2". http://www.recon.cx/en/f/vskype-part2.pdf.
16. ↑ Directive 2009/24/EC of the European Parliament and of the Council of 23 April 2009 on the legal protection of computer programs
17. ↑ 17 U.S.C. Sec. 1201(f).
18. ↑ WIPO Copyright and Performances and Phonograms Treaties Implementation Act
19. ↑ Sega vs Accolade, 1992
20. ↑ Sony vs Connectix, 2000
21. ↑ Pamela Samuelson; Suzanne Scotchmer (May 2002). "The Law and Economics of Reverse Engineering". Yale Law Journal 111 (7): 1575–1663. doi:10.2307/797533. http://www.yalelawjournal.org/pdf/111-7/SamuelsonFINAL.pdf. Retrieved 2015-03-17.
22. ↑ In the French "intellectual property" law set, there is an exception that allows any software user to reverse engineer it. See code de la propriété intellectuelle Script error: The function "in_lang" does not exist.. This law is the national implementation of a piece of EU legislation: Council Directive 91/250/EEC, since then repealed by Directive 2009/24/EC of the European Parliament and of the Council of 23 April 2009 on the legal protection of computer programs which also has a very similar provision allowing reverse engineering/decompilation for the purposes of development and testing of independent but inter-operating programs).

## References

* Salman A. Baset & Henning Schulzrinne (2004). "An analysis of the Skype peer-to-peer Internet telephony protocol". arXiv:cs/0412017v1.
* "Silver Needle in the Skype". March 3, 2006. https://www.blackhat.com/presentations/bh-europe-06/bh-eu-06-biondi/bh-eu-06-biondi-up.pdf.
* "Vanilla Skype - part 1". June 6, 2006. http://www.recon.cx/en/f/vskype-part1.pdf.
* "Vanilla Skype - part 2". June 17, 2006. http://www.recon.cx/en/f/vskype-part2.pdf.
* "An Experimental Investigation of the Congestion Control Used by Skype VoIP.". WWIC 07. Springer. May 2007. http://c3lab.poliba.it/images/d/d2/Skype_wwic07.pdf.
* "A Mathematical Model of the Skype VoIP Congestion Control Algorithm.". Proc. of IEEE Conference on Decision and Control 2008. December 9–11, 2008. http://c3lab.poliba.it/images/2/22/Skype_voip_model.pdf.
* "Revealing Skype Traffic: When Randomness Plays With You". ACM SIGCOMM Computer Communication Review. August 27–31, 2007. http://www.sigcomm.org/node/2623.

## External links

* Website containing articles and tools related to Skype protocol and behaviour analysis
* Repository of articles on Skype analysis
* Skype Architecture Inside

* v
* t
* e

Instant messaging

Protocols
(comparison)|

| Open|

* IMPP
* IRC
* Matrix
* MTProto
* RetroShare
* Signal Protocol
* SIP
* MSRP
* SIMPLE
* Tox
* XMPP
* Jingle
* WFP
* Zephyr
* DDP

|

Closed|

* MSNP
* OSCAR
* TOC
* Skype

Services|

* Band
* BBM
* Discord
* Facebook Messenger
* FireChat
* GroupMe
* Hike Messenger
* HipChat
* ICQ
* iGap
* iMessage
* IRC Networks
* Jongla
* KakaoTalk
* Kik
* Libon
* Line
* Marco Polo
* Palringo
* Signal
* Skype
* Slack
* Snapchat
* SNOW
* Tango
* Telegram
* QQ
* Textfree/Pinger
* The Palace
* Threema
* Tox
* Trillian
* Upptalk
* Viber
* Virtual Places Chat
* WeChat
* WhatsApp
* Wickr
* Windows Messenger service
* Yahoo Together
* Zulip

Clients
(comparison)|

| Single protocol|

* Allo
* Baidu Hi
* BBM
* CSipSimple
* Facebook Messenger
* FaceTime
* Fetion
* Gadu-Gadu
* GroupMe
* IBM Sametime
* ICQ
* IMVU
* Jami
* Jongla
* Linphone
* Palringo
* RetroShare
* Ricochet
* Riot.im
* Signal
* Skype
* Telegram
* Tencent QQ
* Tox
* WeChat
* WhatsApp
* Wickr
* Wire

|

Multi-protocol|

* Adium
* Ayttm
* BitlBee
* Centericq
* eBuddy
* Empathy
* Fire
* Instantbird
* Jitsi
* Kopete
* Messages/iChat
* Miranda IM
* Nimbuzz
* Pidgin
* QIP 2010
* Skype for Business
* Trillian
* Telepathy
* Upptalk

XMPP (Jabber)|

* Bombus
* ChatSecure
* Conversations
* Gajim
* Psi
* Tkabber
* Spark

MSNP|

* aMSN
* Skype

Defunct|

* List of defunct instant messaging platforms

See also|

* Backchannel
* Chat log
* Chatbot
* Contact list
* Emoticon
* File sharing
* Instant message service center
* LAN messenger
* Messaging apps
* Presence information
* Shoutbox
* SMS language
* Status message
* Videotelephony
* Voice over IP
* Webcam
* U-Report
* Web chat
* Circuit
* FirstClass
* Flock
* Fuze Box
* Glip
* Hall.com
* Yammer

it:Protocollo Skype sk:Skype Protocol

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Skype protocol. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Skype_protocol&oldid=297755"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template