Slashdot Mirror


PDTP - The Best of Both FTP and BitTorrent?

ikewillis writes "For awhile I've been following the development of PDTP (Peer Distributed Transfer Protocol), which is trying to merge the concepts of FTP and BitTorrent. This sounds like it could be useful for apt-get repositories or other high demand FTP sites. It's designed to be used as part of scalable networks which could replace manual selection of FTP mirrors. It also supports a number of other nifty features like cryptographic file signatures. Isn't it about time we ditched FTP for something better?"

26 of 265 comments (clear)

  1. This isn't fair... by LostCluster · · Score: 5, Insightful

    I feel sorry for these people. See, this isn't your typical slashdotting... It's a slashdotting that comes after eighteen consecutive nonsense stories being posted over twelve hours on the US April Fool's Day.

    So, their chance to build a reputation is going to be damaged by the fact that anybody reading Slashdot today has already given up on finding anything useful, and will be evaluating them as a joke that they're "not getting" rather than as a proposed networking scheme.

    Furthermore, the geek world is bored today by Slashdot's denial-of-normal-service throughout the day. So, once word leaks out that this is a real and normal story, they're going to get all of the pent up slashdotting force applied to their server.

    Simon, you should have started your set tonight with an NY Times article or two. That would have been a suitable transition between nonsense content and factual content, since NYT operates in that murky space and has a suitable web setup to absorb a larger-than-usual slashdotting. I'm sure the people at PDTP would have not minded at all if their moment in the sun had come an hour later tonight.

    1. Re:This isn't fair... by alan_dershowitz · · Score: 2, Insightful

      April Fool's day has only been around for about 400 years, it's time to start coping with the fact that it's not going away. You people sound like a senior citizen mad about loud fireworks on the fourth of july, or someone pissed that a Christmas walk has main street closed off.

    2. Re:This isn't fair... by stor · · Score: 3, Insightful

      There's a point where it's funny, but then there's a point where it's really just overdone.

      Hang on...

      Don't they overdo it every year and isn't that part of the joke? Maybe not an April Fool's Joke but rather an April Troll? (Which is obviously more appropriate for a geek site)

      That's what I always assumed.

      Cheers
      Stor

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
  2. The concept is great, but... by baximus · · Score: 4, Insightful

    ...mirrors would need to be in sync at all times for this to work. Otherwise your PDTP client is only able to download from the mirrors that are in sync, or worse, will get some chunks from files that aren't up-to-date, causing problems.

    Unfortunately, it's (almost) impossible to mirror new files instantaneously, so mirrors are never all in sync, all the time.

    1. Re:The concept is great, but... by anthonyclark · · Score: 3, Insightful

      I'm assuming that you're going to raise that potential problem with the pdtp developers, right?

      Sorry, pet peeve is people kvetching about something on /. but not telling the developers.

      To fix this, perhaps they could mandate that mirrors copy a particular directory to a temporary location, then take the old directory offline for the few minutes it would take to copy the new files over. Or have a $RELEASE var that clients would ask for and get returned all files marked with that var.

      or something. ;-)

      --
      ----- Documentation is worth it just to be able to answer all your mail with 'RTFM' - Alan Cox.
    2. Re:The concept is great, but... by alienmole · · Score: 2, Insightful
      I'm assuming that you're going to raise that potential problem with the pdtp developers, right?

      Sorry, pet peeve is people kvetching about something on /. but not telling the developers.

      If the PDTP developers haven't already thought of this, it's doubtful they're competent to develop such a system.
  3. think about that sentence: by Naikrovek · · Score: 5, Insightful

    Isn't it about time we ditched FTP for something better?

    Isn't it about time we ditched floppy disks for something better?

    Isn't it about time we ditched IDE drives for something better?

    Isn't it about time we ditched x86 for something better?

    Isn't it about time we ditched Microsoft Windows for something better?

    Isn't it about time we ditched CDs for something better?

    Isn't it about time we ditched telnet for something better?

    Isn't it about time we ditched CRTs for something better?

    Isn't it about time we ditched 20-year-old TV sets for something better?

    Isn't it about time we ditched COBOL for something better?

    Isn't it about time we ditched BASIC for something better?

    Isn't it about time we ditched SCO Unix for something better?

    Isn't it about time we ditched DOS for something better?

    Isn't it about time we ditched Dubya for something better?

    my point is that there is a lot of very old crap out there that should be replaces, but is going to get used and keep getting used for years to come.

    1. Re:think about that sentence: by LostCluster · · Score: 4, Insightful

      Isn't it about time we ditched floppy disks for something better?
      CD-RW

      Isn't it about time we ditched IDE drives for something better?
      SATA

      Isn't it about time we ditched x86 for something better?

      AMD

      Isn't it about time we ditched Microsoft Windows for something better?
      Linux

      Isn't it about time we ditched CDs for something better?
      DVDs

      Isn't it about time we ditched telnet for something better?
      SSH

      Isn't it about time we ditched CRTs for something better?
      LCDs

      Isn't it about time we ditched 20-year-old TV sets for something better?
      New TVs, available at your local stores.

      Isn't it about time we ditched COBOL for something better?
      Visual Basic.

      Isn't it about time we ditched BASIC for something better?
      Uhm... it's for beginners. We can't ditch the biginners...

      Isn't it about time we ditched SCO Unix for something better?
      Linux... we think.

      Isn't it about time we ditched DOS for something better?
      Windows XP

      Isn't it about time we ditched Dubya for something better?
      John Kerry

    2. Re:think about that sentence: by alan_dershowitz · · Score: 3, Insightful

      You made your point, but there's a disconnect between your point and why its relevant to the original statement. If someone said to me "isn't it time we ditched floppy disks for something better?" I'd probably say "yeah", not jump all over their ass because someone somewhere uses floppy disks.

    3. Re:think about that sentence: by QuantumFTL · · Score: 2, Insightful

      >>Isn't it about time we ditched floppy disks for something better?
      >CD-RW
      Yeah, no one uses floppies for small files. Or bigger ones. Many people I know, including my family, don't have CD-RW or even CD-R.

      >>Isn't it about time we ditched IDE drives for something better?
      >SATA
      And where is this option on dell.com/apple.com etc? Can you buy this at walmart? That stuff is nice for high end servers but...

      >>Isn't it about time we ditched x86 for something better?
      >AMD
      So we went from x86 to... x86. Wow. And not to mention that AMD's doing everything they can to drag out x86 to 64 bits.

      >>Isn't it about time we ditched Microsoft Windows for something better?
      >Linux
      Right, with it's 10% market share or whatever on desktops, I wouldn't exactly call it "ditching."

      >>Isn't it about time we ditched CDs for something better?
      >DVDs
      No one listens to music on DVDs, and I'd like to ask you how much of your software comes on a single DVD instead of multiple CDs.

      >>Isn't it about time we ditched telnet for something better?
      >SSH
      This is about the only accurate thing in your entire post.

      >>Isn't it about time we ditched CRTs for something better?
      >LCDs
      Better??? The only thing better is their size and energy consumption. image quality is significantly worse, to the point that for hardcore photographic work they are simply unacceptable due to inability to be calibrated properly. They aren't as bright, and have a really annoying image persistence which is bad for gaming, movies etc. Not to mention how expensive they are, and how easily they break.

      >>Isn't it about time we ditched 20-year-old TV sets for something better?
      >New TVs, available at your local stores.
      Unless your area is fully up to spec, getting an HDTV doesn't do a lot of good. And the other TVs are the same old crap we've had for 20 years, but with different shaped remotes.

      >>Isn't it about time we ditched COBOL for something better?
      >Visual Basic.
      Eh... Visual Basic is similar I suppose but I'm not sure it's really aimed at the exact same niche.

      >>Isn't it about time we ditched BASIC for something better?
      >Uhm... it's for beginners. We can't ditch the biginners...
      Yes but introducing more graphical or process oriented programming, maybe even programming without side effects might be better tahn just giving them a language with all they syntax benefits of FORTRAN and not even half as powerful as ancient hypercard!

      Come to think of it, hypertalk is a much better beginner's language.

      >>Isn't it about time we ditched SCO Unix for something better?
      >Linux... we think.
      I don't know what the original poster had in mind about this. No comment.

      >>Isn't it about time we ditched DOS for something better?
      >Windows XP
      And what exactly is the market share of XP among windows users? There's still people using 98 out there!

      >>Isn't it about time we ditched Dubya for something better?
      >John Kerry
      Not only is the election over a half year off, but it remains to be seen that he could even do a better job. I mean, Dubya may not be the brightest guy (or even trustworthy) however he's at least predictable, whereas John Kerry has basiccally voted on both sides of every issue... does that guy stand for anything???

      Cheers,
      Justin Wick

    4. Re:think about that sentence: by Anonymous Coward · · Score: 2, Insightful

      Dubya may not be the brightest guy (or even trustworthy) however he's at least predictable, whereas John Kerry has basiccally voted on both sides of every issue... does that guy stand for anything???

      So if the election was between Adam and Satan, you'd vote Satan, because he's "predictable" and "stands for something", whereas Adam has been known to listen to both sides?

      You're crazy.

  4. It still doesn't answer a very important question by Gay+Nigger · · Score: 0, Insightful
    Why anybody use this if they essentially have to donate their bandwidth to the serving of some company's files? Doesn't making your customers pay for your bandwidth seem, oh, I dunno, shady and cheap?

    There are many places in the world where bandwidth is metered and charged for the amount of data transferred. Unfortunately, it looks like this was written by a bunch of Americans and college students who don't have to pay for their bandwidth usage and seem willfully ignorant of the entire rest of the world out there. I, for one, will not be sharing my bandwidth for something that should be provided by the file's source.

  5. about time by evenprime · · Score: 5, Insightful
    Isn't it about time we ditched FTP for something better?"

    We already have. It is called SCP

    --

    "Weapons should be hardy rather than decorative" - Miyamoto Musashi
    I think that goes for OS's too
  6. Re:It still doesn't answer a very important questi by anthonyclark · · Score: 2, Insightful

    Answer to this is the same argument that I've heard sometimes applied to open source:

    If we all contribute a little, then the cost to all of us is that much less.

    --
    ----- Documentation is worth it just to be able to answer all your mail with 'RTFM' - Alan Cox.
  7. p2p OS installls by Chaostrophy · · Score: 3, Insightful

    I'm waiting for boot disks that fire up a peer to peer client for installing your os, and updates. Debian would be a great start, it would hugely reduce the load of the servers. Also Fedora, the BSDs, etc.

    Yes, you can already do bit torrent for the ISO, but that is its own kind of wast and hassle.

    Some day.

    --
    Plato seems wrong to me today
  8. Re:It still doesn't answer a very important questi by i23098 · · Score: 4, Insightful

    There's no problem with that, don't share your bandwith with anyone, noone shares bandwith with you. Then you can only download from one source with limited resources. Other people that share can download from many sources (eventually each one with much less resources) that provide a total bandwith much greater, and more, when there is more people downloading they also download faster, instead of you that don't wanna share and have to slower the download when more people that don't share start to download... And besides, most people's connection limits are dowload limits not uploads :-P

  9. Re:It still doesn't answer a very important questi by QuantumRiff · · Score: 5, Insightful
    I, for one, will not be sharing my bandwidth for something that should be provided by the file's source

    So, if for example, I write this need little GPL'd app that everyone loves, and release it as opensource, I should be responsible for hosting the file server for everyone? What if hundreds of thousands of people use it everyday, and a new patch comes out. Should I have to buy a T-1 (or something bigger) that costs an arm and a leg, to provide the file patch for a free program to others with no income for me? Or should I ask others to help out with their extra bandwith, and get a few seeders out there with bittorrent and run the tracker with the DSL line i have. I could pay $20 a month for a metered tiered connection in my town, but I pay $50 for an "unlimited" (notice the quotes). I know that not everywhere has these kinds of services, but you don't have to leave the torrent open forever either, or just leave the upload at 1k/s or something. It might slow down your download, but your still going to get access to the file..

    --

    What are we going to do tonight Brain?
  10. PDTP's Sketchy Liscensing by LoveTheIRS · · Score: 4, Insightful
    I was looking around on the pdtp website. I was thinking everything was fine and dandy until I saw this in the FAQ.

    Question:
    "Skyfire is using a derivative of the Apache License. Doesn't that preclude linking with Qt as the Apache License is incompatible with the GPL?"

    Answer:
    "Qt/X11 is dual licensed under both the GPL and the QPL. The Apache License, while incompatible with the GPL, is not incompatible with the QPL, so when Skyfire is linked with Qt/X11 the terms of the QPL apply. Qt Non-Commercial Edition for Windows has a separate set of license terms which apply to all Windows builds of Skyfire." (emphasis added)

    The FAQ page

    Isn't this license a poor one? Aren't they breaking sourceforge.net rules by using a OSI unapproved license?

    Or maybe I don't know what I am talking about. PLEASE Correct me if I am wrong.
  11. Re:It still doesn't answer a very important questi by Anonymous Coward · · Score: 1, Insightful

    So, if for example, I write this need little GPL'd app that everyone loves, and release it as opensource, I should be responsible for hosting the file server for everyone?

    You could either use a free distribution site, like Sourceforge, or, if your application is as great as you say it is, other people will ask *you* about mirroring it.

  12. You can chuck ftp but.. by xot · · Score: 2, Insightful

    The operating systems are not going to chuck ftp so soon and nor are they going to include torrent as a default program.
    I think theres still a while till we ditch ftp and move onto something else completely.Torrents and other p2p stuff is good but only if you take the effort to get them.What about the masses who want to click and go?It won't happen till they can right click and it says "Save torrent as". :-)

    --
    Lord of the Binges.
  13. If only... by Dog+and+Pony · · Score: 2, Insightful

    ... this QT GPL project was ever done, we could just ignore any such issues for ever and ever: http://kde-cygwin.sourceforge.net/qt3-win32/index. php

  14. Re:There's already a solution that covers this. by evilviper · · Score: 3, Insightful
    It ads *zero* value over HTTP,

    HTTP does not do the same things that FTP does.

    HTTP sucks for file transfers, frankly. You need a full-fledged web-browser just to view the index of files on an HTTP server. Not to mention that automatically downloading subdirectories requires serious processing of numerous HTML sub-documents.

    HTTP does not do a good job of:

    handling authentication.

    handling sessions.

    keeping statistics

    limiting connections

    communicating error messages
    Etc, etc, etc.

    does not suffer from the gross defects of the more primitive FTP such as transmission of
    port numbers as stream data.

    Yes, I think everyone will agree that FTP sucks in that regard, but HTTP has it's own drawbacks.

    FTP would disapear quickly if something came along that had all the features of FTP, without the baggage. However, until that something comes along, we are all stuck with FTP.
    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  15. Re:It still doesn't answer a very important questi by i23098 · · Score: 2, Insightful

    But there are people that keep sharing even after their dowload completes... And you seem to be missing an important point. Even if you have a T1, if there are lots of people downloading through FTP you have to share the bandwith with all of them. With a p2p solution people stop using your bandwith sharing between them, meaning you can serve your files faster and with a greater total bandwith. When you say In BitTorrent, your download speed is theoretically capped to your upload speed you are assuming that the FTP server can serve you faster than you can upload. And that's not the case when there are lots of people trying to access the files in question (never heard of pages being slashdoted?).

  16. Hash trees! by XNormal · · Score: 4, Insightful

    Please don't use straight SHA1 - it requires downloading the entire file to verify.

    Bittorrent and some other file sharing networks split the file into chunks and keep metadata with the hashes of chunks. The problem with this idea is how big to make the chunks: too big and you need to download a big chunk before you can verify. Too small and the list of hashes itself takes too long to download (the hashes are what makes .torrent files relatively big).

    I think the solution should be to use hash trees. Split the file into relatively small chunks (1k?) and calculate their hashes. Now take every two consecutive hashes and hash them. Repeat with the hash results from the previous step until you have a tree with a single hash at its root. The root hash represents the entire file just like an MD5 of SHA1 sum. The difference is that with a small amount of metadata as hints you can verify any part of the file without downloading the entire file. All you need is a short (log n) chain of hashes leading down to the root hash. The server will trickle the hash information interleaved with the download and the client will verify it on the fly and never need to write a single byte to the disk before it's cryptographically verified.

    --
    Stop worrying about the risks of nuclear power and start worrying about the risks of not using nuclear power.
    1. Re:Hash trees! by Bazzargh · · Score: 2, Insightful

      Moderators, how is the parent insightful? He's just misread the post he replied to!

      Please don't use straight SHA1 - it requires downloading the entire file to verify.

      Bittorrent and some other file sharing networks split the file into chunks and keep metadata with the hashes of chunks.


      Re read the grandparent:
      with clients uploading pieces to each other and verifying their integrity with MD5 or SHA1 checksums (emphasis mine, especialy on the pronoun)

      ie the SHA1s are of the pieces (ie chunks) not the whole file.

    2. Re:Hash trees! by laird · · Score: 2, Insightful

      "The problem with this idea is how big to make the chunks: too big and you need to download a big chunk before you can verify. Too small and the list of hashes itself takes too long to download ... I think the solution should be to use hash trees"

      This sounds clever, but the percentages don't work. Sure, a .torrent file might be 8K for a TV show, or 150K for an entire season of a TV show (to use two .torrent files that I have handy). Yes, those files are large, but let's keep it in perspective: the 8K file lets you download a 175 MB video file, and the 150K torrent lets you download 180 episodes of a TV show, totaling around 10 GB. So the torrent file is between 0.0015% and 0.005% of the total file size transferred (based on the two cases I looked at). So it hardly makes sense to make the protocol more complex in order to optimize that 0.005% of the bandwidth transferred.