Gnutella Explained

Gnutella is a peer-to-peer network protocol. Founded in 2000, it was the first decentralized peer-to-peer network of its kind, leading to other, later networks adopting the model.[1] In June 2005, Gnutella's population was 1.81 million computers[2] increasing to over three million nodes by January 2006.[3] In late 2007, it was the most popular file-sharing network on the Internet with an estimated market share of more than 40%.[4]

History

The first client (also called Gnutella) from which the network got its name[5] [6] was developed by Justin Frankel and Tom Pepper of Nullsoft in early 2000, soon after the company's acquisition by AOL. On March 14, the program was made available for download on Nullsoft's servers. The event was prematurely announced on Slashdot, and thousands downloaded the program that day.[7] [8] The source code was to be released later, under the GNU General Public License (GPL); however, the original developers never got the chance to accomplish this purpose.[9]

The next day, AOL stopped the availability of the program over legal concerns and restrained Nullsoft from doing any further work on the project. This did not stop Gnutella; after a few days, the protocol had been reverse engineered, and compatible free and open source clones began to appear.[10] This parallel development of different clients by different groups remains the modus operandi of Gnutella development today.

Among the first independent Gnutella pioneers were Gene Kan and Spencer Kimball, who launched the first portal aimed to assemble the open-source community to work on Gnutella[11] [12] and also developed "GNUbile", one of the first open-source (GNU-GPL) programs to implement the Gnutella protocol.[13] [14]

The Gnutella network is a fully distributed alternative to such semi-centralized systems as FastTrack (KaZaA) and the original Napster. The initial popularity of the network was spurred on by Napster's threatened legal demise in early 2001. This growing surge in popularity revealed the limits of the initial protocol's scalability. In early 2001, variations on the protocol (first implemented in proprietary and closed source clients) allowed an improvement in scalability. Instead of treating every user as client and server, some users were now treated as ultrapeers, routing search requests and responses for users connected to them.

This allowed the network to grow in popularity. In late 2001, the Gnutella client LimeWire Basic became free and open source. In February 2002, Morpheus, a commercial file sharing group, abandoned its FastTrack-based peer-to-peer software and released a new client based on the free and open source Gnutella client Gnucleus.

The word Gnutella today refers not to any one project or piece of software, but to the open protocol used by the various clients.

The name is a portmanteau of GNU and Nutella, the brand name of an Italian hazelnut flavored spread: supposedly, Frankel and Pepper ate a lot of Nutella working on the original project, and intended to license their finished program under the GNU General Public License. Gnutella is not associated with the GNU project[15] or GNU's own peer-to-peer network, GNUnet.

On October 26, 2010, the popular Gnutella client LimeWire was ordered shut down by Judge Kimba Wood of the United States District Court for the Southern District of New York when she signed a Consent Decree to which recording industry plaintiffs and LimeWire had agreed. This event was the likely cause of a notable drop[16] in the size of the network, because, while negotiating the injunction, LimeWire staff had inserted remote-disabling code into the software. As the injunction came into force, users who had installed affected versions (newer than 5.5.10) were cut off from the P2P network. Since LimeWire was free software, nothing had prevented the creation of forks that omitted the disabling code, as long as LimeWire trademarks were not used. The shutdown did not affect, for example, FrostWire, a fork of LimeWire created in 2004 that carries neither the remote-disabling code nor adware.

On November 9, 2010, LimeWire was resurrected by a secret team of developers and named LimeWire Pirate Edition.[17] It was based on LimeWire 5.6 BETA. This version had its server dependencies removed and all the PRO features enabled for free.

Design

To envision how Gnutella originally worked, imagine a large circle of users (called nodes), each of whom has Gnutella client software. On initial startup, the client software must bootstrap and find at least one other node. Various methods have been used for this, including a pre-existing address list of possibly working nodes shipped with the software, using updated web caches of known nodes (called Gnutella Web Caches), UDP host caches and, rarely, even IRC. Once connected, the client requests a list of working addresses. The client tries to connect to the nodes it was shipped with, as well as nodes it receives from other clients until it reaches a certain quota. It connects to only that many nodes, locally caching the addresses which it has not yet tried and discarding the addresses which it tried and found to be invalid.[18]

When the user wants to do a search, the client sends the request to each actively connected node. In version 0.4 of the protocol, the number of actively connected nodes for a client was quite small (around 5). In that version of the protocol, each node forwards the request to all its actively connected nodes, who, in turn, forward the request. This continues until the packet has reached a predetermined number of hops from the sender (maximum 7).[19]

Since version 0.6 (2002[20]), Gnutella is a composite network made of leaf nodes and ultra nodes (also called ultrapeers). The leaf nodes are connected to a small number of ultrapeers (typically 3) while each ultrapeer is connected to more than 32 other ultrapeers. With this higher outdegree, the maximum number of hops a query can travel was lowered to 4.

Leaves and ultrapeers use the Query Routing Protocol to exchange a Query Routing Table (QRT), a table of 64 Ki-slots and up to 2 Mi-slots consisting of hashed keywords. A leaf node sends its QRT to each of the ultrapeers to which it is connected, and ultrapeers merge the QRT of all their leaves (downsized to 128 Ki-slots) plus their own QRT (if they share files) and exchange that with their own neighbors. Query routing is then done by hashing the words of the query and seeing whether all of them match in the QRT. Ultrapeers do that check before forwarding a query to a leaf node, and also before forwarding the query to a peer ultra node provided this is the last hop the query can travel.

If a search request turns up a result, the node that has the result contacts the searcher. In the classic Gnutella protocol, response messages were sent back along the route taken by the query, as the query itself did not contain identifying information for the node. This scheme was later revised, to deliver search results over UDP, directly to the node that initiated the search, usually an ultrapeer of the node. Thus, in the current protocol, the queries carry the IP address and port number of either node. This lowers the amount of traffic routed through the Gnutella network, making it significantly more scalable.[21]

If the user decides to download the file, they negotiate the file transfer. If the node which has the requested file is not firewalled, the querying node can connect to it directly. However, if the node is firewalled, stopping the source node from receiving incoming connections, the client wanting to download a file sends it a so-called push request to the server for the remote client to initiate the connection instead (to push the file). At first, these push requests were routed along the original chain it used to send the query. This was rather unreliable because routes would often break and routed packets are always subject to flow control. push proxies were introduced to address this problem. These are usually the ultrapeers of a leaf node and they are announced in search results. The client connects to one of these push proxies using an HTTP request and the proxy sends a push request to a leaf on behalf of the client. Normally, it is also possible to send a push request over UDP to the push proxy, which is more efficient than using TCP. Push proxies have two advantages: First, ultrapeer-leaf connections are more stable than routes. This makes push requests much more reliable. Second, it reduces the amount of traffic routed through the Gnutella network.[22]

Finally, when a user disconnects, the client software saves a list of known nodes.This contains the nodes to which the client was connected and the nodes learned from pong packets.The client uses that as its seed list, when it next starts, thus becoming independent of bootstrap services.[23]

In practice, this method of searching on the Gnutella network was often unreliable. Each node is a regular computer user; as such, they are constantly connecting and disconnecting, so the network is never completely stable. Also, the bandwidth cost of searching on Gnutella grew exponentially to the number of connected users,[24] often saturating connections and rendering slower nodes useless. Therefore, search requests would often be dropped, and most queries reached only a very small part of the network. This observation identified the Gnutella network as an unscalable distributed system, and inspired the development of distributed hash tables, which are much more scalable but support only exact-match, rather than keyword, search.[25]

To address the problems of bottlenecks, Gnutella developers implemented a tiered system of ultrapeers and leaves. Instead of all nodes being considered equal, nodes entering the network were kept at the 'edge' of the network, as a leaf. Leaves don't provide routing. Nodes which are capable of routing messages are promoted to ultrapeers. Ultrapeers accept leaf connections and route searches and network maintenance messages. This allows searches to propagate further through the network and allows for numerous alterations in topology. This greatly improved efficiency and scalability.[26]

Additionally, gnutella adopted a number of other techniques to reduce traffic overhead and make searches more efficient. Most notable are Query Routing Protocol (QRP) and Dynamic Querying (DQ). With QRP, a search reaches only those clients which are likely to have the files, so searches for rare files become far more efficient. With DQ, the search stops as soon as the program has acquired enough search results. This vastly reduces the amount of traffic caused by popular searches.[27]

One of the benefits of having Gnutella so decentralized is to make it very difficult to shut the network down and to make it a network in which the users are the only ones who can decide which content will be available. Unlike Napster, where the entire network relied on the central server, Gnutella cannot be shut down by shutting down any one node. A decentralized network prevents bad actors from taking control of the contents of the network and/or manipulating data by controlling the central server.[28]

Protocol features and extensions

Gnutella once operated on a purely query flooding-based protocol. The outdated Gnutella version 0.4 network protocol employs five different packet types, namely:[29]

These packets facilitate searches. File transfers are instead handled by HTTP.[30]

The development of the Gnutella protocol is currently led by the Gnutella Developers Forum (The GDF). Many protocol extensions have been and are being developed by the software vendors and by the free Gnutella developers of the GDF. These extensions include intelligent query routing, SHA-1 checksums, query hit transmission via UDP, querying via UDP, dynamic queries via TCP, file transfers via UDP, XML metadata, source exchange (also termed the download mesh) and parallel downloading in slices (swarming).[30]

There are efforts to finalize these protocol extensions in the Gnutella 0.6 specification, at the Gnutella protocol development website. The Gnutella 0.4 standard is outdated but it remains the latest protocol specification because all extensions, so far, exist as proposals. In fact, it is hard or impossible to connect today with 0.4 handshakes. According to developers in the GDF, version 0.6 is what new developers should pursue using the work-in-progress specifications.[31]

The Gnutella protocol remains under development. Despite attempts to make a clean break with the complexity inherited from the old Gnutella 0.4 and to design a clean new message architecture, it remains one of the most successful file-sharing protocols to date.[32]

Software

The following tables compare general and technical information for a number of applications supporting the Gnutella network. The tables do not attempt to give a complete list of Gnutella clients. The tables are limited to clients that can participate in the current Gnutella network.

General specifications

NamePlatformLicenseProject active?
(otherwise discontinued)
Latest releaseHeritage
scope=row style="background:"AcquisitionmacOSscope=row style="background:"scope=row style="background:"LimeWire
scope=row style="background:" BearFlixWindowsscope=row style="background:"5.2.6.0scope=row style="background:"BearShare
scope=row style="background:" BearShareWindowsscope=row style="background:"scope=row style="background:"Original work
scope=row style="background:" CabosJavascope=row style="background:"scope=row style="background:"LimeWire
scope=row style="background:" CitrixWireWindowsscope=row style="background:"2014[33] scope=row style="background:"Addax
scope=row style="background:" CocoGnutRISC OSscope=row style="background:"1.21 (2005-06-21)scope=row style="background:"Original work
scope=row style="background:" FilesWire (P2P)Javascope=row style="background:"Beta 1.1 (2007)scope=row style="background:"Original work
scope=row style="background:" giFT (Gnutella plug-in)Cross-platformscope=row style="background:"0.0.11 (2006-08-06) scope=row style="background:"Original work
scope=row style="background:" Gnucleus-GnucDNAWindowsscope=row style="background:"scope=row style="background:"Original work
scope=row gtk-gnutellaCross-platformOriginal work
scope=row style="background:" KCeasyWindowsscope=row style="background:"scope=row style="background:"giFT
scope=row style="background:" Kiwi AlphaWindowsscope=row style="background:"scope=row style="background:"GnucDNA
scope=row style="background:" LimeWireJavascope=row style="background:"scope=row style="background:"Original work
scope=row style="background:" MorpheusWindowsscope=row style="background:"scope=row style="background:"GnucDNA
scope=row style="background:" PhexJavascope=row style="background:"scope=row style="background:"Original work
scope=row style="background:" PoisonedmacOSscope=row style="background:"scope=row style="background:"giFT
scope=row ShareazaWindowsOriginal work
scope=row style="background:" SymellaSymbianscope=row style="background:"scope=row style="background:"Original work
scope=row WireShare (aka LimeWire Pirate Edition)Java6.0.2 (2022-10-04)LimeWire
scope=row style="background:"ZultraxWindowsscope=row style="background:"4.33 (April 2009)scope=row style="background:"Original work

Gnutella features

ClientHash searchChatBuddy listHandles large files (> 4 GB)Unicode-compatible query routingUPnP port mappingNAT traversalNAT port mappingRUDTCP push proxyUDP push proxyUltrapeerGWebCacheUDP host cacheTLSOther
scope=row style="background:" colspan=2 BearShare-
scope=row style="background:" colspan=2 giFT (core & plug-ins)-
scope=row style="background:" colspan=2 -
scope=row colspan=2 gtk-gnutella (Dropped)IPv6, DHT, GUESS, G2
scope=row style="background:" colspan=2 LimeWireDHT
scope=row colspan=2 WireShareDHT
scope=row style="background:" colspan=2 PhexI2P
scope=row colspan=2 ShareazaG2, BT, eD2k, IRC

Notes

Gnutella2

See main article: Gnutella2. The Gnutella2 protocol (often referred to as G2), despite its name, is not a successor protocol of Gnutella nor related to the original Gnutella project,[34] but rather is a completely different protocol that forked from the original project and piggybacked on the Gnutella name. A sore point with many Gnutella developers is that the Gnutella2 name conveys an upgrade or superiority, which led to a flame war. Other criticism included the use of the Gnutella network to bootstrap G2 peers and poor documentation of the G2 protocol. Additionally, the more frequent search retries of the Shareaza client, one of the initial G2 clients, could unnecessarily burden the Gnutella network.[35]

Both protocols have undergone significant changes since the fork in 2002. G2 has advantages and disadvantages compared to Gnutella. An advantage often cited is that Gnutella2's hybrid search is more efficient than the original Gnutella's query flooding. However, Gnutella replaced query flooding with more efficient search methods, starting with Query Routing in 2002. This was proposed in 2001 by Limewire developers.[36] [37] [38] An advantage of Gnutella is its large user base, which numbers in the millions.[3] The G2 network is approximately an order of magnitude smaller.[39] It is difficult to compare the protocols in their current form. The choice of client, on either network, probably affects the end user just as much.

See also

References

External links

Notes and References

  1. Kushner . David . The World's Most Dangerous Geek . January 13, 2004 . Rolling Stone . May 10, 2011 . https://archive.today/20120630204949/http://74.220.215.94/~davidkus/index.php?option=com_content&view=article&id=82:the-worlds-most-dangerous-geek-&catid=35:articles&Itemid=54 . June 30, 2012.
  2. http://www.slyck.com/news.php?story=814 Slyck News - eDonkey2000 Nearly Double the Size of FastTrack
  3. http://www.barsoom.org/papers/gi-2006-long-term.pdf On the Long-term Evolution of the Two-Tier Gnutella Overlay
  4. https://arstechnica.com/news.ars/post/20080421-study-bittorren-sees-big-growth-limewire-still-1-p2p-app.html Ars Technica Study: BitTorrent sees big growth, LimeWire still #1 P2P app
  5. News: AOL's Nullsoft creates software for swapping MP3s. CNET. 2017-04-13. en. 2015-04-15. https://web.archive.org/web/20150415020210/http://news.cnet.com/AOLs-Nullsoft-creates-software-for-swapping-MP3s/2100-1023_3-237974.html. live.
  6. News: Gnutella. AfterDawn.com. AfterDawn. 2017-04-13. 2017-04-14. https://web.archive.org/web/20170414081208/http://www.afterdawn.com/software/network/p2p_clients/gnutella.cfm#description. live.
  7. Web site: Open Source Napster: Gnutella - Slashdot. slashdot.org. 14 March 2000 . 2019-03-24. 2019-03-24. https://web.archive.org/web/20190324202943/https://slashdot.org/story/00/03/14/0949234/open-source-napster-gnutella. live.
  8. Web site: CNN - Breaking News, Latest News and Videos. CNN. 2019-03-24. 2000-06-20. https://web.archive.org/web/20000620180259/https://www.cnn.com/. live.
  9. Web site: Regarding Gnutella - GNU Project - Free Software Foundation. 2015-03-17. 2015-03-16. https://web.archive.org/web/20150316094719/http://www.gnu.org/philosophy/gnutella.html. live.
  10. Book: Schell. Bernadette Hlubik. Webster's New World Hacker Dictionary. Schell. Bernadette. Martin. Clemens. 2006-09-05. John Wiley & Sons. 978-0-470-04752-1. en. 2020-10-02. 2023-01-17. https://web.archive.org/web/20230117212319/https://books.google.com/books?id=f26uXP_QIaQC&q=This+did+not+stop+Gnutella%3B+after+a+few+days%2C+the+protocol+had+been+reverse+engineered%2C+and+compatible+free+and+open+source+clones+began+to+appear&pg=PA137. live.
  11. News: Programmers help "Napster" clones take off. CNET. 2017-04-13. en. 2015-04-16. https://web.archive.org/web/20150416121148/http://news.cnet.com/2100-1023-239060.html. live.
  12. News: Gnutella pioneer Gene Kan dies. CNET. 2017-04-13. en. 2015-04-16. https://web.archive.org/web/20150416120216/http://news.cnet.com/2100-1023-942180.html. live.
  13. Web site: gnubile file listing. stearns.org. 2017-04-13. 2016-04-22. https://web.archive.org/web/20160422095301/http://www.stearns.org/gnubile/. live.
  14. Web site: The source code for Gnubile. underpop.free.fr. 2017-04-13. 2016-03-04. https://web.archive.org/web/20160304080332/http://underpop.free.fr/g/gnutelladev/source/gnubile.html. live.
  15. Web site: Regarding Gnutella (www.gnu.org). 2015-03-17. 2015-03-16. https://web.archive.org/web/20150316094719/http://www.gnu.org/philosophy/gnutella.html. live.
  16. Web site: Indie Labels Sue LimeWire Over Failed Copyright Deal . Chloe Albanesius . 18 July 2011 . PC Magazine . Ziff-Davis . In the wake of the LimeWire shutdown, the percentage of U.S. Internet users who access P2P file-sharing services dropped about 7 percent from [its] all-time high in 2007... . 19 March 2012 . 2 February 2016 . https://web.archive.org/web/20160202131044/http://www.pcmag.com/article2/0,2817,2388627,00.asp . live .
  17. Web site: Report: LimeWire 'Resurrected' by Secret Dev Team . Chloe Albanesius . 9 November 2010 . PC Magazine . Ziff-Davis . 19 March 2012 . 12 July 2017 . https://web.archive.org/web/20170712164112/https://www.pcmag.com/article2/0,2817,2372412,00.asp . live .
  18. Web site: How Auto Discovery Works - Amazon ElastiCache . 2023-06-08 . docs.aws.amazon.com . 2023-03-30 . https://web.archive.org/web/20230330091345/https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/AutoDiscovery.HowAutoDiscoveryWorks.html . live .
  19. Book: Moon . Jongbae . Cho . Yongyun . Computational Science and Its Applications - ICCSA 2011 Proceedings . 2011 . Springer . 978-3-642-21897-2 . https://books.google.com/books?id=3ivd-NwNCN8C&pg=PA464 . en . 464 . A point-based inventive system to prevent free-riding on p2p network environments . 2022-03-10 . 2023-01-17 . https://web.archive.org/web/20230117212316/https://books.google.com/books?id=3ivd-NwNCN8C&pg=PA464 . live .
  20. Web site: Gnutella Protocol Development. rfc-gnutella.sourceforge.net. 2017-04-13. 2017-05-12. https://web.archive.org/web/20170512103209/http://rfc-gnutella.sourceforge.net/src/rfc-0_6-draft.html. live.
  21. Ripeanu . Matei . Nakai . Yugo . Topology of Gnutella Network: Discovery and Analysis . 2023-06-08 . 2023-11-03 . https://web.archive.org/web/20231103002639/https://www.academia.edu/2893724 . live .
  22. Web site: 2022-05-09 . Gnutella clients that still work . 2023-06-08 . apreasnisuf1984's Ownd . ja . 2023-11-03 . https://web.archive.org/web/20231103002640/https://questhalo.amebaownd.com/posts/34235509 . live .
  23. Franzoni . Federico . Daza . Vanesa . 2022 . SoK: Network-Level Attacks on the Bitcoin P2P Network . IEEE Access . 10 . 94924–94962 . 10.1109/ACCESS.2022.3204387 . 2022IEEEA..1094924F . 252106900 . 2169-3536 . 10230/55353 . free . 2023-07-11 . 2022-09-26 . https://web.archive.org/web/20220926141417/https://ieeexplore.ieee.org/document/9877811/ . live .
  24. http://www.darkridge.com/~jpr5/doc/gnutella.html Why Gnutella Can't Scale. No, Really.
  25. Hasselbring . Wilhelm . 2004-01-01 . A hierarchical super peer network for distributed software development . 2023-06-08 . 2023-11-03 . https://web.archive.org/web/20231103002640/https://www.academia.edu/27326272 . live .
  26. Web site: Network Topology - an overview ScienceDirect Topics . 2023-06-08 . www.sciencedirect.com . 2023-10-18 . https://web.archive.org/web/20231018231051/https://www.sciencedirect.com/topics/engineering/network-topology . live .
  27. Web site: DQ in Arabic - English-Arabic Dictionary Glosbe . 2023-06-08 . glosbe.com . en . 2024-04-09 . https://web.archive.org/web/20240409044806/https://glosbe.com/en/ar/DQ . live .
  28. Web site: Decentralized Peer-to-Peer Network Architecture: Gnutella and Freenet . Berkes . Jem . University of Manitoba . April 9, 2003 . berkes.ca/ . October 26, 2019 . https://web.archive.org/web/20170808170634/http://www.berkes.ca/archive/berkes_gnutella_freenet.pdf . August 8, 2017 . dead .
  29. Dye, Mark. McDonald, Rick. Rufi, Antoon W., 'Network Fundamentals', Cisco Networking Academy, Cisco Press, Ch 3. p. 91
  30. Dye, Mark. McDonald, Rick. Rufi, Antoon W., 'Network Fundamentals', Cisco Networking Academy, Cisco Press, Ch 3. p90
  31. Web site: Gnutella Protocol Development . 2022-07-21 . rfc-gnutella.sourceforge.net . 2022-12-06 . https://web.archive.org/web/20221206185124/https://rfc-gnutella.sourceforge.net/developer/index.html . live .
  32. Tyson . Gareth . A Middleware Approach to Building Content-Centric Applications . 2023-06-08 . 2023-11-03 . https://web.archive.org/web/20231103002639/https://www.academia.edu/1477564 . live .
  33. Web site: CitrixWire. BrotherSoft. 2017-04-13. https://web.archive.org/web/20170414081046/http://www.brothersoft.com/citrixwire-50277.html. 2017-04-14. dead.
  34. http://www.mp3newswire.net/stories/2003/gnutella2.html Gnutella vs. Gnutella2, Part 2
  35. http://www.slyck.com/news.php?story=100 Gnutella vs. Gnutella2, Part 1
  36. http://wortschatz.uni-leipzig.de/~fwitschel/vorlP2P/literatur/search_methods.pdf A comparison of Peer-to-Peer search methods
  37. http://www.ic.unicamp.br/~celio/peer2peer/gnutella-related/query-routing-protocol.htm Query Routing for the Gnutella Network proposal
  38. http://www.ic.unicamp.br/~celio/peer2peer/gnutella-related/query-routing-protocol.htm Query Routing for the Gnutella Network 1.0
  39. http://crawler.trillinux.org/ G2 Network Statistics