zlatinb / muwire

MuWire file sharing client for I2P
GNU General Public License v3.0
192 stars 27 forks source link

Question on traffic #47

Open xenpac opened 4 years ago

xenpac commented 4 years ago

im downloading a file. In I2p-console->Client tunnels for muwire.... i see: "Lifetime bandwidth usage: 477MB in, 151MB out" , so thats the i2p traffic caused by muwire so far.

The downing of the file has contributed ?? maybe 300MB, the rest and the out-traffic is ?? passthrough ??

Of corse you pay your download with upload bandwidth. I wonder if that out-traffic is related just to the file im downing? or is it general muwire through-traffic? Would i have muwire traffic, if im not up/down loading anything?

zlatinb commented 4 years ago

Hi,

yes MuWire does use some traffic when idle for it's peer discovery gossip protocol. That was reduced a lot in 0.7.4 and as the network updates it should reduce more If it's a problem you can reduce it even further by reducing the number of connections to other MuWire nodes via the peerConnections property in $HOME/.MuWire/MuWire.properties, but that will have negative effect on your search horizon (i.e. you will get fewer search results).

Also, the I2P protocol which sits below MuWire adds some overhead due to encryption and padding. I don't know enough about it to tell you how to calculate the exact numbers though.

xenpac commented 4 years ago

thanks, the outtraffic when downloading, is that related to the file im downloading?

zlatinb commented 4 years ago

I said incorrectly that the discovery protocol is only using traffic while MuWire is idle - it is indeed active all the time, even while downloading.

In addition to that, MuWire downloads files in pieces, and makes a new request for each piece, so yes there is some out traffic related to downloads.

xenpac commented 4 years ago

ok, ...my up-traffic is about a third of my downtraffic. ? !

zlatinb commented 4 years ago

Well as the network updates to 0.7.4 the situation should improve.

MuWire can upload partial files while downloading, but if that were the case you would see the file in your "Uploads" table. If it's not there then it's really only the background traffic.

xenpac commented 4 years ago

oki;) just got status=hopeless on one download. clicked "clear finished" and it was gone.....oouuh i want it back.

zlatinb commented 4 years ago

"Hopeless" status means not a single source for the file was contacted successfully after 10 attempts (default). If you want your downloads to never be hopeless, change the "Give up on sources after this many failures" to "-1" in the options.

If you are running MuWire 0.7.4 you can restart and the download should reappear. But that is a bug which is fixed in git, so this trick won't work in the future.

xenpac commented 4 years ago

ok that works , its back.

just installed muwire on ubuntu using MuWire-0.7.5.AppImage. It installs in .Muwire directory and comes with a buildin i2p.

I have already i2pd installed and would lke to use it with i2pd. Is there an uninstaller for muwire?

zlatinb commented 4 years ago

Uninstalling from the AppImage means just deleting the AppImage file and the $HOME/.MuWire directory.

If you want to use i2pd with the AppImage you need to edit $HOME/.MuWire/MuWire.properties and set the following property embeddedRouter=false

The AppImage is intended for situations where the user doesn't have Java or I2P/I2Pd. If you have both of those on your system, you can download the .zip distribution from https://muwire.com/MuWire-0.7.5.zip . For I2Pd specifically you need to enable the "I2CP" interface which is not enabled by default as far as I know. The setup wizard will ask you for the I2CP port of the I2Pd router (default is 7654).

xenpac commented 4 years ago

@zlatinb, wonderfull, just upvoting you, i never had such a responsive support. you really like your project :-)

So the installer just creates directorys, fills with application data, no global links, no linux app-links. ok, if i terminated muwire and want to restart it, i type ??? what? ( i am totally new to this)

Reading from your last post, i do have Java installed on that linux machine. are you also providing java in that AppImage ? ( i see some funny install logs related to google..java)

ok, for i2pd i should remove AppImage(just delete .Muwire) and download the MuWire-0.7.5.zip ( that does not include i2p?)...and configure as to i2pd ports. (it uses i2cp, bob/sam-interface?)

zlatinb commented 4 years ago

Thanks for the upvote :)

The appimage does not create anything anywhere outside $HOME/.MuWire so if you delete that and the AppImage file MuWire will be completely gone from your computer. It does come with it's own Java (AdoptOpenJDK version 14) but if you already have Java 11 or newer you don't need that.

To restart MuWire from the AppImage you need to mark the file as executable (chmod u+x MuWire-0.7.5.AppImage) and then you can simply double-click on the file.

For i2pd you need just the I2CP interface, not BOB or SAM. Unzip the MuWire-0.7.5.zip in a location of your choice. That will create a directory MuWire-0.7.5. Inside that there is a bin directory and inside that there is a start script MuWire.

The zip does not come with I2P or Java.

xenpac commented 4 years ago

thanks, so the AppImage file is the application, not the installer, got it.

xenpac commented 4 years ago

Sooo, just extacted the MuWire-0.7.5.zip and run it. Got some java error: tom@LinuxLaptop:~/muwire/MuWire-0.7.5/bin$ ./MuWire Unrecognized option: --add-opens Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. tom@LinuxLaptop:~/muwire/MuWire-0.7.5/bin$

tom@LinuxLaptop:~/muwire/MuWire-0.7.5/bin$ readlink -f /usr/bin/java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java tom@LinuxLaptop:~/muwire/MuWire-0.7.5/bin$ ll

zlatinb commented 4 years ago

MuWire needs Java 11 to run, you're trying to run it on java 8.

xenpac commented 4 years ago

ok

xenpac commented 4 years ago

can you get the hash value of a file you are just downloading? isnt it that a file is identified by its hash value which might be stored somewhere? and you could search with a hash value? ( iam exploiting you ;)

zlatinb commented 4 years ago

Not from the download table, but from the search results table you can right-click on a result and copy the hash to the clipboard. Also, you can get the hash of files you are sharing by right-clicking on them and copying it to the clipboard.

Yes, you can search by hash. Just paste the hash in the search box and MuWire will search just for that file.