Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella / Gnutella Network Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella / Gnutella Network Discussion For general discussion about Gnutella and the Gnutella network.
For discussion about a specific Gnutella client program, please post in one of the client forums above.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 20th, 2009
Novicius
 
Join Date: February 20th, 2009
Posts: 1
gogalop27 is flying high
Default Gnutella: How does it work.

Hello everyone ,

I have an article which describes how Gnutella works: in 5 Steps.

1. Connect to at least one active peer (address received from bootstrap)
2. Explore your neighborhood (Ping/Pong)
3. Submit Query with list of keywords to your neighbors (they forward it)
4. Select "best" of correct answers (which we receive after a while)
5. Connect to providing host/peer

I can not really understand the 2nd point. Well, how can we explore our neighborhood via Ping/Pong? Well, after point 1, we have lets say 1 neighbor. After that we want to explore our neighbor via Ping/Pong. Who do we ping then?

Because, what I know about Ping/Pong, is that, we ping some nodes, and we receive pong as answers from them, in order to know how the latency to each node looks like (in Napster). The requirement is that we already know these nodes.

In Gnutella, in the 2nd point, we have only 1 neighbor, we dont know any other nodes, so how can we explore our neighborhood via ping/pong?

Well, I imagin, probabaly, the 2nd step means: we ping our existence to our neighbor, and this neighbor will ping continously to his neighbors, so that these neighbors know about me. Well, sounds very coriously?
Can someone help me? Thanks so much.

Perhaps, can someone give a brief description, how point 3-5 work. Thanks..

Ratna from Germany.
Reply With Quote
  #2 (permalink)  
Old February 21st, 2009
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Ping/Pong on Gnutella is not mainly used to measure latency or any other time related issue. Actually I don't even know a single servent which uses Ping/Pong to measure any kind time or latency related things.

On Gnutella Ping/Pong is mainly used to discover more parts of the network and find other nodes which are of high value for you.
There are usually two types of Pings. The KeepAlive-Pings carry a TTL of 1 and are only used to check if your neighbor still responds with a Pong or is offline or overloaded.
Then there are Pings with higher TTL, your neighbor will respond to this Ping but he also forwards the Ping to its neighbors (at least in the traditional Ping/Pong schema) and routes the Pongs back to you. This way you learn about hosts further away from you. Additionally the Pongs carry node information, most importantly its uptime. With the uptime data you build yourself a list of nodes mainly ordered by uptime and maybe some other criteria (every vendor has its own recipe).
Next time you go online your servent will go through this list and tries to connect to the nodes it will most likely successful connect to first.

Today most servents don't use the traditional Ping/Pong concept anymore. It causes too much traffic. It was replaced by a Pong caching algorithm. But the concept remains the same. Depending on your Ping TTL your neighbor will send you Pongs from nodes further away.

Gregor
__________________
Reply With Quote
  #3 (permalink)  
Old February 25th, 2009
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Just have a look at the guide Gnutella for Users - Gnufu

It describes Gnutella in easy to understand language.
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.