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 April 13th, 2001
fossilltemp
Guest
 
Posts: n/a
Post gnutella and tcp/ip

I am looking for information on how gnutella is built upon tcp/ip. i've looked through the protocol documentation provided by clip2 but that doesn't say much about how tcp/ip is related to the gnutella protocol or how they play so nicely together. Could anybody enlighten me or point me in the right direction towards some docs?
Reply With Quote
  #2 (permalink)  
Old April 14th, 2001
dux dux is offline
Disciple
 
Join Date: April 13th, 2001
Location: new brunswick, nj, us
Posts: 11
dux is flying high
Post

TCP/IP is supposed to be transparent to application level protocols like gnutella. Data is written to a TCP socket and it comes out a socket at the other end of the connection. You can just put the gnutella message into an array and call socket.write(message) or something similar, and message = socket.read() to send and receive gnutella messages.
The TCP/IP packets themselves don't even need to wrap a gnutella message and could just as well contain only a few bytes of one message, or several whole messages, in one packet. A smart client will let a set of queries and pings collect over a short period of time, and write them to the socket together so that all messages are sent out in one TCP/IP packet. Since the overhead for TCP/IP is 40 bytes per packet (20 IP, 20 TCP), aggregating several messages into one packet meaningfully reduces bandwidth. If the average gnutella message is 30 bytes, and there is an average of 8 messages per second, aggregating messages might abridge overhead from (30+40)*8 = 560 bytes/second to 30+(40*8) = 350 bytes/second.
That's really all you need to know about TCP before implementing gnutella protocol. Hope that meets what you needed to know.
Reply With Quote
  #3 (permalink)  
Old April 15th, 2001
simpleboy
Guest
 
Posts: n/a
Post

You could also look at it like the old modem days, you call someone and connect to their modem, then you type something and they type something back. You didn't worry about the phone company, the phone lines or how the modem worked. Picture the IP address as a phone number. Now if only people would tell the government that a socket based connection is the same as a private phone call, maybe we could get some privacy like we do with VOICE packets.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What posts belong in this General Gnutella / Gnutella Network Discussion section! Lord of the Rings General Gnutella / Gnutella Network Discussion 0 November 17th, 2005 05:54 AM
Should Gnutella developers work on measures to achieve anonymity on Gnutella? Joakim Agren General Gnutella / Gnutella Network Discussion 23 August 27th, 2003 08:18 AM
Warning to Gnutella developers: Design a system of anonymity or Gnutella is doomed Unregistered General Gnutella / Gnutella Network Discussion 16 June 28th, 2002 06:54 AM
RFC-Gnutella Archie General Gnutella Development Discussion 4 April 16th, 2002 11:21 AM
Gnutella Resources - Everything you need for Gnutella Unregistered General Gnutella / Gnutella Network Discussion 0 July 21st, 2001 07:05 PM


All times are GMT -7. The time now is 09:28 PM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.