Slashdot Log In
An Analysis of the Skype Protocol
Posted by
michael
on Thu Jan 20, 2005 12:50 PM
from the past-the-firewall-nothing-but-net dept.
from the past-the-firewall-nothing-but-net dept.
zib writes "Ever felt a need to peek under the hood of your Skype client? This paper (PDF) explains all the details. Among other issues, it focuses on the NAT capabilities of Skype and audio compression."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Supernodes? (Score:3, Interesting)
What is the deal with supernodes, isn't there a peer to peer protocol that doesn't revolve around supernodes? I don't like the idea of somebody setting up a high-bandwidth machine and routing enough packets to get the entire phone call I'm making and then in their spare time decrypting my phone call.
We need a a VoIP method that uses bit torrent and duplicates what you are saying many times, which wastes bandwidth but makes up for the slowness factor. And even still, we need a bit torrent less reliant on supernodes... could a VoIP network function on a P2P network meant to work without supernodes?
Somebody know more details about what the difficulties are in making a P2P network without supernodes? (Assuming there are lots of people on the network).
Privacy issues?
Re:Supernodes? (Score:2, Insightful)
Well, I can't read the paper, because I don't have a pdf reader available, but I think they've done the crypto-stuff good enough, so that it's almost impossible to decrypt.
What is the point of decrypting something if it takes >100.000 years?
Re:Supernodes? (Score:2, Funny)
Re:Supernodes? (Score:2)
Several. Freenet [freenetproject.org] doesn't require supernodes, it is entirely decentralised, the same is true of Dijjer [dijjer.org]. Generally, a P2P application can use a Distributed Hashtable [wikipedia.org] to find information without relying on a centralised server (neither Freenet nor Dijjer use a DHT, although their approach is vaguely similar).
Re:Supernodes? (Score:3, Informative)
Re:Supernodes? (Score:2)
At the very least; In the connection setup the third-party (ie supernode) has to open a server socket that both clients connect to using client sockets. The supernode then forwards information between the two.
Now what type of magic is used to hook up a direct connection between the two clients ? TCP connecti
Re:Supernodes? (Score:3, Informative)
basically each computer attempts to initiate a connection to the other computer on a port that has been agreed to in advance. the first computer to attempt will fail, due to the fi
Re:Supernodes? (Score:2, Interesting)
Interesting, but I wouldn't expect this technique to defeat anything else than trivial "personal firewalls". Any NAT between the two computers would alter the calling ports and break your assumptions.
Has anyone actually tried this ?
Re:Supernodes? (Score:3, Informative)
Re:Supernodes? (Score:5, Informative)
Because this type of tiered network is what works and scales well to thousands and millions of clients. The original Gnutella protocol was designed not to use "supernodes" or a tiered network structure and it was a miserable failure. The bandwidth and large latency required for all of the clients to communicate with each other (especially ones using 56K modems) easily overcame the usefulness of the network. The current Gnutella protocol now uses a tiered (layered) network where clients can become supernodes and this version actually works with tens to hundreds of thousands of people connected.
When creating a large, scalable network this type of protocol is what has been proven to work.
--
Join the Pyramid - Free Mini Mac [freeminimacs.com]
Parent
Re:Supernodes? (Score:2)
Re:Supernodes? (Score:2)
I've proposed a modification of the basic concept to the kenosis group; we'll have to see
Re:Supernodes? (Score:5, Informative)
There are other solutions which'll do essentially what you want. One option is to have connections rotate round-robin style, rather than by bandwidth. That way, if you can go by 5 paths, each path gets 1/5th of the traffic, making it much harder for evesdroppers.
A second option is to use kernel or userland IPSec, so that all connections are secure. IPSec is pretty solid and it is doubtful anyone would be able to break into such traffic.
Supernodes are just a load-balancing mechanism. Not a very good one, because it's a two-state system, but it works. Networks have developed routing and QoS protocols to handle exactly the kind of information P2P is approximating with the supernode scheme. It would seem to make much more sense to use mechanisms people have worked on for much longer to get right.
Parent
Re:Supernodes? (Score:3, Insightful)
Re:Supernodes? (Score:2)
Re:Supernodes? (Score:3, Interesting)
It's not difficult, but the issue is scalability. To have a P2P network scale, you have to have some efficient network structure for shunting data around. Efficient is a relative term; robustness might be the goal here with supernodes.
For implementations of distributed hash tables, bandwidth certainly isn't the main concern, so those are logically constructed generally without any concept of a supernode
How future proof is this? (Score:3, Insightful)
Re:How future proof is this? (Score:2)
Bad start (Score:5, Informative)
Re:Bad start (Score:3, Insightful)
Skype Banned (Score:5, Interesting)
Skype Peer to Peer Telephony software is now also prohibited. Skype is a
free application that facilitates free telephone calls through the use of
an internet connection.
Calls made using the system are directed through 'Supernodes', which can be
ordinary PC's with Skype installed. Machines on fast and well connected
Internet feeds like the $Network are likely to automatically become
'Supernodes' and forward a considerable amount of traffic.
This allows Skype to route other peoples Voice over IP calls using your
machine and the university internet connection. This is in breach of the
Acceptable Use Policy and could potentially put the university's network
and core business at risk.
Finally, the Skype End User License Agreement (EULA) grants Skype permission
to install and use 3rd party software on computers running Skype. This could
include an array of spyware and adware that is likely to threaten the
privacy of anyone installing this software.
Re:Skype Banned (Score:5, Informative)
The only thing relating to third party software that I found was this:
2.4 Third Parties. You acknowledge and agree that the Skype Software may be incorporated into, and may incorporate itself, software and other technology owned and controlled by third parties. Skype emphasizes that it will only incorporate such third party software or technology for the purpose of (a) adding new or additional functionality or (b) improving the technical performance of the Skype Software. Any such third party software or technology that is incorporated in the Skype Software falls under the scope of this Agreement. Any and all other third party software or technology that may be distributed together with the Skype Software will be subject to you explicitly accepting a license agreement with that third party. You acknowledge and agree that you will not enter into a contractual relationship with Skype or its Affiliates regarding such third party software or technology and you will look solely to the applicable third party and not to Skype or its Affiliates to enforce any of your rights.
Basically, you have to explicitly accept a license agreement with the third party. They say nothing in here about installing and using 3rd party software on your computer without your consent.
Parent
[OT]: Re:Skype Banned (Score:2)
Okay, I understand the whole AUP piece. I understand that it could be a problem for the network.
What I'm not sure I understand, is how a simple program could "put the University's core business at risk". If that is a publically funded University, I really object to that statement (it's not a business, a public service. It's nice if it's self funding, but the objective it not
Re:[OT]: Re:Skype Banned (Score:2)
Skype could concievably interfere with the relability and speed of these connections
Re:Skype Banned (Score:3, Informative)
Generally speaking, end users are at the very bottom of a long hierarchy of ISPs and pipes. For example: UUNET -> AT&T -> Your local ISP -> You. As such, generally speaking, you are a leaf on a very large tree that may span several classes of IP networks. If a peer were to be used as a super node, it would mean that the data send from A to C would travel like this: A -> ISP -
Re:Skype Banned (Score:4, Informative)
Um, actually RTFA.
In most cases the voice packets go direct leaf node to leaf node.
However if both are behind NAT firewalls then they can't directly talk to each other, and the Skype protocol seems to pick another Skype users machine (picked by some scheme that probably isn't publically described anywhere) and route the packets through them.
There's no security problem with doing this (the packets are end-end encrypted), it just takes longer and is more likely to congest, and it takes up bandwidth at the extra users network.
Really, IMNHO, NAT is a real menace. I'm really looking forward to IPv6 which doesn't have all this garbage; should be here by 2100 I reckon.
Parent
Re:Skype Banned (Score:2)
This is horribly inefficient, however it is only used if you are behind a firewall or NAT and don't have have the necissary ports open. If you (or the person you are talking to) is on a publically routable IP address then Skype will just make a direct P2P connecti
Re:Skype Banned (Score:2)
Re:Skype Banned (Score:3, Insightful)
Re:Why would it route through machines? (Score:2)
When multicasting data, you reduce the number of packets sent by building a distribution tree between nodes, which either all users share, or have one rooted at each source in the conference. There are many, many ways of doing this, but the end-result is the same. This tree is on the overlay level -- the routers have no knowledge of it. To forward packets across the overlay, they have to be pulled up to the appli
Windows registry? what's that? (Score:5, Funny)
Strange, I have it installed on my linux machine... and it doesn't have a windows registry... guess I dont have the capability of storing a buddy list.
Worst thing about Skype. . . (Score:4, Interesting)
Re:Worst thing about Skype. . . (Score:4, Informative)
If you run Skype on Linux or Mac OS X, it is reduced to using high ports anyway, so it's easy to block. An example iptables command line would be
(Caveat: Check your local servers, use passive FTP, modify this if you actually want to use P2P, etc.)Parent
Non-Windows stuff (Score:5, Informative)
Don't knock it. (Score:4, Interesting)
It uses very little bandwidth and those Universities who are banning the software are just kneejerking to a new technology, just showing how far from the academic mission of research and experimentation most colleges have gone. Even more telling is how most Colleges charge exorbitant fees for local and long distance phone calls from student dorm phones. Why would they want to allow a technology onto their network that will mean less money going into their pockets.
As to the bandwidth issues, I think they greatly exaggerate the bandwidth use of a Skype supernode in order to justify their kneejerk reaction to any new technology on their network that does not come with a 3 year agreement with Dell and Microsoft.
Re:Don't knock it. (Score:2, Informative)
Re:I can knock it if I want to... (Score:2)
Re:I can knock it if I want to... (Score:2)
Re:I can knock it if I want to... (Score:3, Interesting)
Re:I can knock it if I want to... (Score:3, Insightful)
I use Skype all the time to practice and learn foreign languages, and to collaborate with people located in different regions of the world. I would definately say there are many educational applications for Skype, and banning this software from a network is most probably due to a lack of understanding.
Any more docs like this? (Score:3, Funny)
200 Mhz (Score:2, Insightful)
I bet they couldn't only see 5kbytes of traffic because that's all those poor machines could pump out!
Beware of Skype's third party apps (Score:2)
These are the same guys who wrote Kazaa which installed 3rd party software which basically stole money from mom & pop websites in affiliate networks.
How often does skype refresh NAT binding (Score:2, Informative)
The PDF doesn't explain how it's done, but it's rather simple, and is explained in the STUN RFC:
1. Open a socket, and tell the server, hi, i'm here, reply to the same address you received this message from, and tell me what that address is (let's call this address REF_ADDRESS_A).
2. Sleep for some time...
3. Open a second socket, and say, hi, i'm here, reply to the same address you received this message from AND to the old address(REF_A
Re:other VOIP providers? (Score:3, Interesting)
But, even with that, there is a feature in SIP called "REINVITE" in which two SIP endpoints can renegotiate their media stream paths to send their audio directly to each other and only send call progress messages to the original server (for billing purposes, mainly). Reinvite really only works well if both
Re:other VOIP providers? (Score:3, Insightful)
Simply because it is so damn easy to use, It has clients for Windows, Mac OS X and Linux, and all you need is the ID of anyone you want to call. No screwing around.
I ain't no fan boy, but after using SIP and Skype, I know which the majority of users are going to find easier to use.
Also check out http://www.ilbcfreeware.org/ [ilbcfreeware.org] for the codec.
Re:other VOIP providers? (Score:2)
Re:other VOIP providers? (Score:2, Interesting)
Skype vs a SIP solution (Score:3, Interesting)
He muttered that he'd get around to it sometime, so next time I was in the office I installed it myself, and using the USB VOIP
Re:Congratulations, Mr President (Score:2)
Child appears unhappy [boingboing.net]