On Mon, Dec 1, 2008 at 10:25 PM, Ole Tange <[EMAIL PROTECTED]> wrote: > [...] So if I assign the weight 255 to all of my connections and you assign > the weight 10 to your download, and 200 to your VoIP connection, then > all my P2P connections will outweigh your connections (assuming that > we share the bandwidth at some point), right? [...]
See response far below for your share bandwidth at some point. The keyword is _eventually_ will share the bandwidth. > > When the connection starts, how do you know how much he is going to > downloaded? A lot (most?) P2P downloads are done in blocks; each block > smaller than the total data of an average VoIP conversation. You don't care. Your application should assign the weight of the connection (there is handshake to help you decide between two hosts). The weight is applied per packet, not the entire 100GB. But the end results is the same. If you assign weight of 255 to every packets in your 100GB P2P connections, you'll end up with much greater weight than if you had assigned 1. > > Let's take the following fairly realistic example: > > From NAT-box A you see 100 connections all having same weight. You > cannot see what is in them, as they are encrypted. For some reason you > know that 90 of them are P2P downloads (probably from user U1), 1 of > them is a live video stream (most likely from user U2), 3 of them are > VPN connections (from U1, U2 and U3), and the rest of the connections > you have no idea what are. You have, however, no idea which connection > is which. Let's look at an even more realistic example. A home user is using a wireless router. There is your NAT. Does the ISP care what kind of traffic originated from each of the home user's computers (computer A, laptop A, laptop B, etc.). No. If it sees 1000 packets of 1500 bytes each weighted with certain weight going between the TCP connections, the ISP can simply multiply weight with the load of each TCP packets. The main idea is the node before the user nodes (whether it is router or a home computer directly) can be monitored by the ISP. The same with companies. ISP can just monitor the companies, who cares if 2 out of its hundreds employees download porn at huge weight, it will penalize the companies. The companies will in turn penalize its users (which they already do today). Now generalize this to every routers in the network. > I can see a TCP-weight may help if all are kind, so people (or rather: > applications) will tell a reasonable priority of their connection. But > what is to stop me from changing the weight to 255 for all of my > packets and hog all the bandwidth from you honest folks? Sure, hog all you like, the next node that is _not_ controlled by you will penalize you, whether it's your company, your ISP, whatever. You can do whatever you like with nodes controlled by you. (Sorry I keep using nodes to mix hosts and nodes, I'm too used to deal with distributed network last year.) -- Chris [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ Slugnet mailing list [email protected] http://wiki.lugs.org.sg/LugsMailingListFaq http://www.lugs.org.sg/mailman/listinfo/slugnet
