News for hackers. Stuff that matters.
Re:IPFS is the Distributed Web by d--b on Sunday October 23, 2016 @12:03PM (#12774044)
I have a truly naive question about the distributed web: what makes the supporters of it think it will be any different from the original web. I mean, isn't it likely that at some point, there will be the need for a centralized search engine for it? Isn't it unavoidable that big companies like facebook runs their own non-distributed subnetwork, so that it can deliver standard functionality to all its users? The original web IS distributed already, isn't it? It's just that organically, the way people use it has become a lot more centralized, no? Or am I missing the main argument for a distributed architecture?
Re:IPFS is the Distributed Web by daveguy on Sunday October 23, 2016 @12:33PM (#12774187)
The difference is IPFS (or similar) would distribute content. Currently communication is distributed, but content is not. IPFS is like https, but where every page is a bittorrent. There are challenges for security in distributing services and monetization. However, the key is that content would be distributed. YouTube probably would not switch to ipfs, but DNS (what was targeted recently) would make sense. A DNS host list should be more distributed. Even with DNS there is a dynamic content challenge. When a DNS entry changes, it would still need to propagate.

This brings it back to a distributed communication problem. If you could distribute content more consistently and 100,000 computers could step in as dns providers with authentic data rather than concentrating dns at dyn or Google it would help. That will still require protocol updates so that the fail over uses local content. Really ipfs and distributed content could be a component to help with distribution. It definitely isn't a complete solution alone (yet -- there is a push to make it the solution).

Re:IPFS is the Distributed Web by singham on Sunday October 23, 2016 @12:59PM (#12774295)
With the web going more mobile with less storage space. Why would anyone would want to be a node in such a network where you have to cache content for others.
Re:IPFS is the Distributed Web by teekert on Sunday October 23, 2016 @02:52PM (#12774828)
Well apart from battery, If I was an ISP, I´d like it if a Youtube movie would flow from one persons mobile to the hotspot of the train said person is sitting on and on towards another person on the train. This scenario would require significantly less bandwidth overall. Same goes for neighbors accessing the same information. And this can be extrapolated to many situations.

The IPFS powered internet would perhaps lead to more uploads but it would scale significantly better and will be cheaper to maintain. Hence cost can also go down for end users/consumers.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @03:42PM (#12775078)
> Well apart from battery,

... and that's pretty much the deal killer for this on mobile, even ignoring everything else.

> If I was an ISP, I´d like it if a Youtube movie

... except you are not allowed to download videos from YouTube or most (if not all) the popular video content services.

> a Youtube movie would flow from one persons mobile to the hotspot of the train said person is sitting on and on towards another person on the train.

This would only work as long as person A is running IPFS, connected to the hotspot and has any cached content somebody else is concurrently interested in. The hotspot is very unlikely to run IPFS and to have any storage, so cache hit ratios would not only be low they would be dependent on person A's transit schedule.

> This scenario would require significantly less bandwidth overall.

No, the same amount of bandwidth would be consumed, but perhaps over a cheaper radio bearer.

> The IPFS powered internet would perhaps lead to more uploads but it would scale significantly better and will be cheaper to maintain.

Somehow I doubt that. Total costs would most likely go up, but they would perhaps be more spread out.

> Hence cost can also go down for end users/consumers.

Consumers don't spend anything for accessing content on the Internet, so I really doubt there are any cost savings to be had.

Re:IPFS is the Distributed Web by teekert on Sunday October 23, 2016 @04:30PM (#12775274)
> ... and that's pretty much the deal killer for this on mobile, even ignoring everything else.

It is, for now, indeed.

> Except you are not allowed to download videos from YouTube

I think youtube would be interested in some load balancing if they could keep the income from commercials. Wait, what, there wouldn't be a need for YouTube. We'd only need a way to pay content creators build into the system (Ethereum coupling somehow?? I'm not sure, can views be tracked in IPFS?).

> This scenario would require significantly less bandwidth overall.

The same amount of bits are pumped around but they have to cover significantly less physical distance and hubs. This reduces bandwidth.

> Somehow I doubt that. Total costs would most likely go up, but they would perhaps be more spread out.

Me pumping bits from my neighbor's house to mine instead of us both via the backbone from some server in a central location requires less (expensive) infrastructure between me and that central location.

> Consumers don't spend anything for accessing content on the Internet

indirectly they (we) pay for the copper and the fiber.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @04:54PM (#12775385)
> I think youtube would be interested in some load balancing if they could keep the income from commercials.

Firstly, it's not up to Google. Secondly, how would that even work?

> Wait, what, there wouldn't be a need for YouTube.

Yes, there would. YouTube isn't the solution to a technical problem.

> We'd only need a way to pay content creators build into the system

Why?

That's also a pretty big "only".

> The same amount of bits are pumped around but they have to cover significantly less physical distance and hubs. This reduces bandwidth

No, it doesn't. What it reduces is bitmiles. Which may or may not be significant. Mostly not, but it may have some significant if we can lower the usage of some scarce and expensive radio bearer.

> Me pumping bits from my neighbor's house to mine instead of us both via the backbone from some server in a central location requires less (expensive) infrastructure between me and that central location.

Not really. You are still going to need that infrastucture, so no cost savings.

> indirectly they (we) pay for the copper and the fiber.

So we do, but using IPFS isn't going to result in us getting a check in the mail. Costs are still zero and savings likewise.

Re:IPFS is the Distributed Web by slang800 on Monday October 24, 2016 @09:54PM (#12784638)
> except you are not allowed to download videos from YouTube or most (if not all) the popular video content services.

If you're not allowed to download videos, then how come they show up on my screen? That information wasn't on my device before I pressed the play button.

Re:IPFS is the Distributed Web by clueless404 on Tuesday October 25, 2016 @01:45AM (#12785588)
Streaming is not downloading (and seeding).
Re:IPFS is the Distributed Web by slang800 on Friday October 28, 2016 @08:15AM (#12815006)
Streaming _is_ downloading. It's just downloading _continuously_ as the content is presented. Whether or not you seed is an entirely separate issue and has nothing to do with streaming vs downloading.
Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @09:07AM (#12815341)
> Streaming _is_ downloading.

No, it is not. Not from a legal perspective, which is all that matters in this context. With seeding you are making things worse for yourself, as you are not merely downloading but also distributing. Seeding is also relevant with regards to downloading, as IPFS automatically starts seeding what you download.

Re:IPFS is the Distributed Web by agumonkey on Monday October 24, 2016 @03:31AM (#12777195)
Depends, I'm wondering if it could be cheaper energy wise if everybody was tapping into each other phones nearby instead of reaching for the cell tower.
Re:IPFS is the Distributed Web by clueless404 on Monday October 24, 2016 @05:14AM (#12777507)
No, because you don't want nearby people draining your battery by using your phone as a server.
Re:IPFS is the Distributed Web by slang800 on Monday October 24, 2016 @10:00PM (#12784665)
By allowing your phone to be used as a server, other people will let you use their phones as a server, so you can download faster. If this sharing doesn't emerge naturally, then it can be directly incentivized with ratio tracking (like private torrent trackers), or even with money like the Karma WiFi service.

Also, I have WiFi on always and my battery lasts all day, so I doubt this will be a problem.

Re:IPFS is the Distributed Web by clueless404 on Tuesday October 25, 2016 @01:44AM (#12785584)
Having wifi on all day is one thing, actually using it is totally different. Just activate your wifi hotspot on your phone and start using it from your computer. See how fast the battery depletes.

No matter what incentive scheme you device , it's not going to help you with your battery.

Re:IPFS is the Distributed Web by slang800 on Friday October 28, 2016 @08:27AM (#12815063)
> No matter what incentive scheme you [devise], it's not going to help you with your battery.

Obviously with certain incentives, battery would become irrelevant. If this hypothetical "IPFS ratio" were as valuable as (for example) what.cd ratio, I'd have no problem carrying around car battery to continue seeding. Thankfully, I don't think it would be possible for my phone to consume that much power in a day.

Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @09:06AM (#12815325)
> Obviously with certain incentives, battery would become irrelevant.

Sure, cold hard cash would suffice, but imaginary Internet points won't do. But even with cash there comes a point where you would turn off IPFS, because the alternative would be to have a dead phone for the rest of the day.

> Thankfully, I don't think it would be possible for my phone to consume that much power in a day.

Perhaps not that much battery, but it is quite easy to deplete your battery in much less than a day by having your hotspot on constantly, which is what IPFS would require.

Re:IPFS is the Distributed Web by deno on Thursday October 27, 2016 @05:55AM (#12803898)
Seeding when phone is actually in use would be net positive. And everyone is on their phones all the time nowadays anyway.
Re:IPFS is the Distributed Web by clueless404 on Thursday October 27, 2016 @03:19PM (#12808729)
Net positive to who? Not to the seeder, whose most scarce resource, the battery, is being exploited.
Re:IPFS is the Distributed Web by deno on Friday October 28, 2016 @05:34AM (#12814323)
Let’s not forget the context here. We’re talking over-WiFi (not cellular) opportunistic sharing between two phones running an IPFS node.

If you have anything to share at this point this is probably a good indication that both clients have some content in common. So first of all, transfers over WiFi while the phone is in use anyway are not that expensive, and more importantly there’s an opportunity to save a lot of battery, and data, that results in substantial net positive gain.

To illustrate imagine the likely scenario of two people using some form of Youtube with a distributed IPFS cache while on a plane. If those two people have anything in common—and certainly there are things like news etc. that are always in common, those can be shared instantly over the WiFi.

So for an insignificant battery investment, you can potentially save a lot of data and modem power in the long run.

Re:IPFS is the Distributed Web by slang800 on Friday October 28, 2016 @08:09AM (#12814978)
Plus a plane, bus, or train could easily have 50 people within range. Assuming everyone has 8GB of cache space on their phones, you could access about 0.4TB of content directly. With a mesh network that supports packet forwarding, you could connect with everyone on the plane, meaning 100-700 people, which would give you 0.8-5.6TB of content.

Obviously content would be highly duplicated between peers, but you'd have access to a significant chunk of the "popular" internet, and would be able to avoid in-flight WiFi.

For such a mesh network, you don't even necessarily need to connect over WiFi - lower energy Bluetooth could be used too.

Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @08:51AM (#12815202)
> Assuming everyone has 8GB of cache space on their phones

That feels optimistic. I doubt people have that much free space on their phones, especially those that don't have flash cards. Heck, a basic iPhone won't have. Even a 16GB model has something like only 12 GB free when it's empty.

> For such a mesh network, you don't even necessarily need to connect over WiFi - lower energy Bluetooth could be used too.

IPFS doesn't (currently) work over Bluetooth.

However, my main point is, that I don't think most people would be altruistic enough to participate unless they could plug in their phones on the plane.

Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @08:56AM (#12815243)
> So for an insignificant battery investment, you can potentially save a lot of data and modem power in the long run.

Having run many a phone into the ground while hotspotting, I do not consider the battery investment insignificant. It's annoying enough when I drain my own battery when using the hotspot, I would never allow complete strangers to do that to me.

Re:IPFS is the Distributed Web by deno on Friday October 28, 2016 @09:38AM (#12815632)
As I said on mobile it would have to be very opportunistic, not something to be left in the background that keeps the phone awake.
Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @10:03AM (#12815897)
Isn't that the direct antithesis of IPFS? Might as well just Airdrop whatever you want to share with your buddy if you are going to require a rendezvous mechanism.
Re:IPFS is the Distributed Web by deno on Friday October 28, 2016 @12:30PM (#12817750)
Opportunistic as in piggyback on active WiFi connection and non-idle state. P2P networks like Bittorrent pride themselves on being available despite high churn, so this is right up their alley.

The network works even if people only seed during a download. Obviously, that’s less than ideal. For mobile, though, this is perfectly fine.

The point of IPFS is you can do an ‘airdrop’ without having to coordinate it. You lookup content by hash— If it’s available locally? Great! If not just get it from remote and add to cache. Simple as that.

Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @03:56PM (#12820050)
> Opportunistic as in piggyback on active WiFi connection and non-idle state.

That's a reasonable approach, but due to the synchronous requirement I guess the offload factor would be minimal. When I want to download something I might as well enable wifi and see if it's available locally. After I'm done there's really no incentive for me to keep seeding or even have wifi turned on.

> P2P networks like Bittorrent pride themselves on being available despite high churn, so this is right up their alley.

This really isn't applicable to opportunistic mobile use of IPFS, as you are unlikely to have a large enough local swarm to guarantee uptime or availability.

Re:IPFS is the Distributed Web by deno on Saturday October 29, 2016 @05:26AM (#12823273)
> This really isn't applicable to opportunistic mobile use of IPFS, as you are unlikely to have a large enough local swarm to guarantee uptime or availability.

IPFS content is chunked, your swarm is lan+wan.

> That's a reasonable approach, but due to the synchronous requirement I guess the offload factor would be minimal.

A room full of people using their phones is what I have in mind. Remember, a node’s cache is not exclusive to just the content that’s being currently consumed. Anyway, the point was whatever’s the offload factor it would still be a net positive.

Also one can imagine if IPFS gets popular, just as ISPs collocate CDN caches in the present model, WiFi routers could come with a local node of their own. The “Web Accelerator.” And now we’re talking!

There’s opportunity for caching at many network levels, but there’s no incentive to do so with HTTP.

Re:IPFS is the Distributed Web by clueless404 on Saturday October 29, 2016 @04:10PM (#12826081)
> IPFS content is chunked, your swarm is lan+wan.

Yes, but for offload, all that matters is your local lan swarm.

> A room full of people using their phones is what I have in mind.

That might work to some extent, but how often do you (i) spend your time in rooms full of people and (ii) have no wifi.

> Anyway, the point was whatever’s the offload factor it would still be a net positive.

Not quite. If the offload factor is sufficiently small there is no rational reason to burn battery on it.

> Also one can imagine if IPFS gets popular, just as ISPs collocate CDN caches in the present model, WiFi routers could come with a local node of their own. The “Web Accelerator.” And now we’re talking!

Possible, but unlikely. Web cache hit ratios are abysmal, normally it's much cheaper to just up the bandwidth. A lot of business models would also have to change for the (large) and interesting content to become third party cacheable.

> There’s opportunity for caching at many network levels, but there’s no incentive to do so with HTTP.

There are also many business models where there is no incentive to cache either.

Re:IPFS is the Distributed Web by deno on Monday October 31, 2016 @06:37AM (#12835618)
> If the offload factor is sufficiently small there is no rational reason to burn battery on it.

Sure, but there’s also no cost to it, if you go with the piggyback/opportunistic approach. That’s the point. It’s either net positive or just neutral. Whether the local offload is effective or not— that’s a different argument.

Anyway, the driving reason for my interest in IPFS is re-decentralization of the Web. If it can, theoretically, save some data on mobile—so much better.

What it needs, though, is simply work on mobile at least as well as HTTP. There’s no doubt IPFS has no fundamental architectural problems in that regard.

Though, full disclosure, it does have some major implementation issues at the moment.

Re:IPFS is the Distributed Web by dredmorbius on Thursday October 27, 2016 @04:38PM (#12809802)
It's trivial to provision a mobile device with 128GB+ storage these days.

Non-mobile devices start at $5. A considerable server is <$100. Even only modest amounts of server persistence allow for a powerful distributed net.

Re:IPFS is the Distributed Web by rv11 on Sunday October 23, 2016 @01:33PM (#12774456)
same reason why people seed torrent?
Re:IPFS is the Distributed Web by s_kilk on Sunday October 23, 2016 @01:39PM (#12774488)
Notably, no-one seeds torrents from their mobile connections. The cost would be prohibitive, without even getting into the issue of storage.
Re:IPFS is the Distributed Web by hatsunearu on Sunday October 23, 2016 @02:27PM (#12774704)
The idea is that companies or people backing the content could easily provision more nodes to meet the demand. To create an IPFS "host", its super simple:

ipfs pin myhash

Re:IPFS is the Distributed Web by rv11 on Sunday October 23, 2016 @02:23PM (#12774687)
cost is prohibitive today, not necessarily tomorrow or work only when you are using wifi . storage can be capped.
Re:IPFS is the Distributed Web by glibgil on Sunday October 23, 2016 @12:52PM (#12774269)
The internet may run on content (storage) and communication, but both those things run on computation. Until computation can be safely distributed real changes can't happen
Re:IPFS is the Distributed Web by wyager on Sunday October 23, 2016 @12:54PM (#12774279)
What do you mean? It seems to me that the single largest destructive force on the internet is forcible content takedowns. IPFS is immune to those.
Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @01:25PM (#12774416)
In which way is IPFS immune to content takedowns?

IPFS provides no anonymity, so it won't take long before DMCA notices to start arriving.

Re:IPFS is the Distributed Web by tom_mellior on Sunday October 23, 2016 @01:37PM (#12774480)
> In which way is IPFS immune to content takedowns?

In the way that, if one node is forced to take down some information, that information may still be accessible from other nodes under the same address as before. It's not quite immunity: They can still harrass individuals. Call it "resilience", maybe.

> IPFS provides no anonymity, so it won't take long before DMCA notices to start arriving.

It should compose well with Tor, I'd hope.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @01:52PM (#12774552)
Which makes it about as resilient as regular content hosting, which is not very.

Does IPFS work with Tor?

Re:IPFS is the Distributed Web by mburns on Sunday October 23, 2016 @02:26PM (#12774699)
>Which makes it about as resilient as regular content hosting, which is not very.

It is decidedly more resilient than regular hosting in that situation.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @02:37PM (#12774762)
How so?

IPFS so only as resilient as you are good at dodging DMCA notices.

Re:IPFS is the Distributed Web by mburns on Sunday October 23, 2016 @02:45PM (#12774795)
Because mirroring content on IPFS is trivial and transparent to the consumer. All it takes is a single user (or an arbitrary number) outside of US jurisdiction and the content is more or less DMCA-immune.

The equivalent is not practical in traditional HTTP, where content at risk of being taken down is scraped from the server and that snapshot-in-time is hosted as a mirror, generally at a different domain.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @03:02PM (#12774875)
> Because mirroring content on IPFS is trivial and transparent to the consumer.

Which is also why a regular consumer should never use IPFS and why prosumer should immediately disable caching and seeding upon install.

> All it takes is a single user (or an arbitrary number) outside of US jurisdiction and the content is more or less DMCA-immune.

Perhaps so, but if your plan for resiliency is based on the kindness of strangers in countries where the DMCA nor censorship does not apply, it's not much of a plan.

Plus you'll still have to seed the original which opens you up to liability, as IPFS does not provide any kind of anonymity.

So, while better than traditional HTTP, IPFS isn't really immune to takedowns nor very resilient.

Re:IPFS is the Distributed Web by mburns on Sunday October 23, 2016 @10:18PM (#12776438)
>Which is also why a regular consumer should never use IPFS and why prosumer should immediately disable caching and seeding upon install.

Unless they changed policy, seeding is strictly a manual, opt-in process.

>Perhaps so, but if your plan for resiliency is based on the kindness of strangers in countries where the DMCA nor censorship does not apply, it's not much of a plan.

I disagree, IPFS is a pretty reasonable plan for resiliency in the case of static web content, as previously discussed.

If instead of "kindness of strangers" you frame it as a "market with incentives" to maintain information availability it is both less condescending and more accurate to how situations are likely to play out with things like DMCA'd content.

>So, while better than traditional HTTP

(which is all it needs to be)

>IPFS isn't really immune to takedowns nor very resilient.

That wasn't the goalpost we originally set, nor one of the project's longterm objectives, so I'm not sure the relevance.

Re:IPFS is the Distributed Web by clueless404 on Monday October 24, 2016 @02:39AM (#12777038)
> Unless they changed policy, seeding is strictly a manual, opt-in process.

Pinning may be manual, but is not content automatically cached and seeded (until purged from the cache) once any content is retrieved?

> I disagree, IPFS is a pretty reasonable plan for resiliency in the case of static web content, as previously discussed.

How is it a reasonable plan to exploit the naive and the uninformed or to depend only on those that are outside your juridistiction and unassailable by their own?

> If instead of "kindness of strangers" you frame it as a "market with incentives" to maintain information availability it is both less condescending and more accurate to how situations are likely to play out with things like DMCA'd content.

What incentives exactly would those be?

I also find it interesting that you object to kindness from strangers.

>>So, while better than traditional HTTP

> (which is all it needs to be)

That might not be sufficient for IPFS to get enough adoption, tho.

>>IPFS isn't really immune to takedowns nor very resilient.

> That wasn't the goalpost we originally set, nor one of the project's longterm objectives, so I'm not sure the relevance.

Fair enough. It is however relevant in the sense that it both removes a use case and acts as a disincentive for users to participate, as there is no liability shielding.

Re:IPFS is the Distributed Web by wyager on Sunday October 23, 2016 @04:17PM (#12775219)
> Perhaps so, but if your plan for resiliency is based on the kindness of strangers in countries where the DMCA nor censorship does not apply, it's not much of a plan.

Have you ever used Bittorent? It works great.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @04:35PM (#12775300)
It works great only for a limited number of use cases.

It's terrible for unpopular content, it is not immune to takedown notices nor is it very resilient in the face of a determined adversary.

Re:IPFS is the Distributed Web by aaroninsf on Tuesday October 25, 2016 @01:13AM (#12785481)
Backing 'long tail' content with webseeds works well for Bittorrent.

...but that's the same as saying let's back the decentralized web with centralized resources erp.

Re:IPFS is the Distributed Web by clueless404 on Tuesday October 25, 2016 @01:48AM (#12785601)
Exactly. Which begs the question of why bother with the decentralization part at all of long tail / unpopular content?
Re:IPFS is the Distributed Web by Senji on Monday October 24, 2016 @10:15AM (#12778934)
That's what zeronet is for.
Re:IPFS is the Distributed Web by clueless404 on Monday October 24, 2016 @01:43PM (#12781023)
Could you expand on that?

Zeronet offers no anonymity, you have to use Tor for that.

Re:IPFS is the Distributed Web by dharma1 on Monday October 24, 2016 @04:09AM (#12777299)
Torrents work for content that is heavily seeded, but you also have a lot of content that has ~0-5 seeders with very bad bandwidth.

I don't see how IPFS tackles the problems of guaranteed availability and enough redundancy while relying on volunteers to mirror and serve content.

Also, if you want to DDoS content, it sounds like all you need to do is find the IPs of the nodes that host the content you want to target (which might not be many, and I guess become visible to you once you access/download that content) and knock them out

Unless I missed something?

Re:IPFS is the Distributed Web by Senji on Monday October 24, 2016 @10:15AM (#12778929)
Have fun when all your DDOS bot ips get added to null route on my ISPs level.
Re:IPFS is the Distributed Web by clueless404 on Monday October 24, 2016 @01:17PM (#12780776)
It's not like the grandparent is advocating DDOSing, he is just pointing out that doing so is trivial for less popular content. This is something that IPFS doesn't address, but that their marketing fluff implies would IPFS would take care of.

Good luck adding all DDOS bot IPs to your null route.

Re:IPFS is the Distributed Web by dredmorbius on Thursday October 27, 2016 @04:36PM (#12809780)
Chalk me up as someone who totally doesn't get your distinction betweeen content / computation and what distributed computation would look like.

Or why the current model (SaaS with Javascript apps literally shipped to every browser) isn't distributed computation.

(The long digression on takedowns doesn't illuminate this at all either.)

Re:IPFS is the Distributed Web by kordless on Sunday October 23, 2016 @02:25PM (#12774695)
I've come to the conclusion compute needs to be separated from content and users using a new non-financial based business model. That's the only way to ensure game theory based models don't fuck up the infra on which everything depends.
Re:IPFS is the Distributed Web by Senji on Monday October 24, 2016 @10:09AM (#12778886)
We should use something like namecoin and the .bit domain. Take the power of domain names away from governments and registrars.
Re:IPFS is the Distributed Web by httpagent on Sunday October 23, 2016 @12:26PM (#12774158)
I am a novice, but I'll do my best to answer. IPFS isn't a replacement for the existing web like many of its predecessors, for the purposes of your question, it really works more like a drop-in shared caching system. The site host doesn't have to participate in IPFS for this to work.

As an example: You host a blog. As an IPFS user, I surf to the blog and store your content in my cache. When another IPFS user attempts to access your blog they may pull directly from my cached version, or from the original host (depending which is fastest). Merkle DAGs are used to hash content for quick locating, to ensure content is up-to-date, and to build a linked line of content over time.

This gets more interesting if there's a widespread service outage. IPFS nodes will continue to serve the most up-to-date version of the web even if the web is fragmented. As new information becomes available it is integrated into the existing cache and then propagated to the rest of the fragments.

I still struggle to understand how this works with databased content, but I do believe IPFS addresses this content.

Re:IPFS is the Distributed Web by clueless404 on Sunday October 23, 2016 @02:16PM (#12774655)
> The site host doesn't have to participate in IPFS for this to work.

Really?

An IPFS user will scrape HTTP content, republish it over IPFS and update a directory of where non-IPFS content can be found over IPFS?

I must have missed that part.

Re:IPFS is the Distributed Web by slang800 on Monday October 24, 2016 @10:17PM (#12784740)
Yeah - there's a ton of immutable URLs on the web. All of CDNJS/JSDelivr/Google Hosted Libraries, most of raw.github.com, all Imgur & Instagram images, all YouTube video streams (excluding annotations & subtitles), and all torrent file caching sites (like itorrents.org). There are probably some large ones I'm forgetting about, but just mapping immutable URLs to IPFS could probably cover 1/3rd of Internet traffic.

Check out https://github.com/ipfs/archives to learn more.

Re:IPFS is the Distributed Web by clueless404 on Tuesday October 25, 2016 @02:30AM (#12785760)
IPFS archives look like something entirely different from what the grandparent was talking about.

Sure, you can manually publish archives over IPFS, but that's not something that automatically creates an IPFS cache copy of whatever you are surfing.

Re:IPFS is the Distributed Web by slang800 on Friday October 28, 2016 @07:43AM (#12814866)
IPFS archives is the effort that's going on right now to archive sites. Eventually there will be a system for automatically scraping & re-publishing content on IPFS.
Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @08:16AM (#12815013)
Fair enough. Eventually somebody will have to do a lot of work to get all that done then.
Re:IPFS is the Distributed Web by slang800 on Friday October 28, 2016 @02:04PM (#12818893)
Right now storage space and inefficiencies in the reference IPFS implementation are the biggest problems I've hit. Downloading sites is easy enough with grab-site, but my 24TB storage server is getting pretty full :( ... Gotta get more disks.
Re:IPFS is the Distributed Web by clueless404 on Friday October 28, 2016 @03:45PM (#12819937)
Say you grab a site. How do you announce that fact, verify that it is an unmodified copy, sync/merge/update copies and deduplicate assets between different snapshots?
Re:IPFS is the Distributed Web by drivingmenuts on Sunday October 23, 2016 @02:58PM (#12774862)
How would you prevent fraud?

Say I have a site that sells Awesome Products. L337Hacker mirrors my site, does a DDOS on the original and lets IPFS take over, redirecting the shopping cart to his own site.

Is this a potential scenario? If so, is there any way to prevent it?

Re:IPFS is the Distributed Web by dredmorbius on Thursday October 27, 2016 @04:47PM (#12809917)
If I'm reading this correctly, there are a few ways IPFS could be used in support of distributed, fraud-resistant, commerce.

First: publishing the catalog isn't the same as processing the shopping request. Online commerce is largely an update to catalog + mail-order shopping as it existed from ~1880 - 1990. If someone else wants to print and deliver your (PKI-authenticated, tamper-resistant) catalog, that's fine.

Second: The catalog isn't the transaction interface, it's the communications about product availability. The present e-commerce world is hugely hamstrung on numerous points, but one of these is the idea separating the catalog and product presentation itself from ordering. So long as you're controlling the order-request interface, you're good. A payment processing system which authorised payments via the bank rather than from the vendor would be helpful. Also a move away from account-info sharing.

The key is in knowing who the valid merchant is, and in establishing that the fraudulent merchant has misrepresented themselves as the valid merchant. Perhaps authentication within the payment system would help.

Taking the shopping cart's payment mechanism out of the shopping cart would help.

Re:IPFS is the Distributed Web by vertex-four on Sunday October 23, 2016 @03:13PM (#12774937)
All IPFS URLs contain the hash of the content, so you can't change it. There's a mechanism to allow for URLs which can point to varying bits of content, but I'm not aware of a paper which shows its security properties.
Re:IPFS is the Distributed Web by drivingmenuts on Sunday October 23, 2016 @04:09PM (#12775187)
Upon further reading, it appears that it may be impossible to verify the security of an IPFS cached page, simply because the hash is calculated post-fetch on the client. That allows any sort of shenanigans to be performed on the original content before it's stored.

If content is created specifically for IPFS-caching (similar to Freenet or Onion), then it may be possible to be authoritative, but content cached from the web should never be considered so.

Re:IPFS is the Distributed Web by diggan on Sunday October 23, 2016 @04:43PM (#12775336)
> Upon further reading, it appears that it may be impossible to verify the security of an IPFS cached page

Not at all, rather the opposite, it's very easy to verify a page since the hash is based on the content.

You have file "ABC" that you want to download. So you fetch it and once you have it locally, you hash it yourself and you compare the hashes. If they are the same, you know you have the right thing. If they are different, someone is sending you bad content.

Re:IPFS is the Distributed Web by drivingmenuts on Sunday October 23, 2016 @05:05PM (#12775421)
Re-read the original question. If someone is preventing access to the original page and the alternate is being served thru IPFS, there is no way to compare the original. The IPFS cached page becomes the authoritative page and could contain altered content, which the hash takes into account.

If the original page can perform the hash and embed it, that would somewhat alleviate the issue during the fetch, but do nothing to prove that the IPFS-served page was trustworthy or not, unless some third-party knows the original hash, as well.

If the page was served to the IPFS network, to be cached, by a neutral, trusted third-party, that would somewhat alleviate the problem, although there arises the problem of trust again.

The only way to minimize the trust issue is if the page originates from inside the IPFS network and is not a cached version of page originally served outside the network.

Re:IPFS is the Distributed Web by vertex-four on Sunday October 23, 2016 @05:05PM (#12775422)
You're right. I misread your parent's comment, which suggested that web pages could magically be cached securely into IPFS from the public web without any involvement from the website's owner, which is nonsense.
Re:IPFS is the Distributed Web by 0xcde4c3db on Sunday October 23, 2016 @12:29PM (#12774168)
I can think of two big differences to consider:

1) The web as a whole is decentralized, but any given web site is centralized by default. A webmaster can "push" a modification or deletion from a central server and have it trickle down through caches/proxies unless someone like archive.org makes a deliberate decision to archive it. In systems like IPFS, content deletion and modification follows a model more like garbage collection, where pointers to old data can hang around and continue working even if an "authoritative" pointer is pointing to something else. Basically, nobody has the authority to break a link (law/policy-mandated filters notwithstanding).

2) The web doesn't really have any built-in mechanisms to promote redundancy for durability, availability, or performance purposes. By default, there's one daemon serving one copy. Everything else (CDNs, forward/reverse proxies, failover) is some kind of optimization tacked on after-the-fact.

Re:IPFS is the Distributed Web by splintercell on Sunday October 23, 2016 @12:21PM (#12774136)
IPFS + Ethereum Smart Contracts = Distributed Web

The idea is that we run that centralized search engine via Smart Contracts.

In other words, using a decentralized currency such as Bitcoin and decentralized execution environment like Ethereum, we create softwares which pays people for providing CPU time and disk space (facilitated by IPFS).

Few missing pieces of this puzzle are homomorphic encryption implemented on Smart Contracts level which will allow that CPU service.

Once that's done then we can have the distributed web of the next level.

Re:IPFS is the Distributed Web by Taek on Sunday October 23, 2016 @01:02PM (#12774311)
A search engine via ethereum is not going to scale, is not easily upgraded, and will fall far short of any properly centralized search engine. If you want a competitve decentralized search engine, you're going to need a different technology.
Re:IPFS is the Distributed Web by traverseda on Sunday October 23, 2016 @01:44PM (#12774504)
I think that's why they talk about homomorphic encryption.
Re:IPFS is the Distributed Web by Taek on Sunday October 23, 2016 @05:08PM (#12775435)
Homomorphic encryption as best I'm aware is more than a decade away from practical use. I believe the best libraries today have blowups of 100,000,000x in resource usage, meaning it's not even practical for basic crypto operations.

Multiparty computation makes some security sacrifices (breaks if M out of N people cheat, breaks undetectably iirc), but I think the blowup is less than 10x for some operations and less than 1000x for the others.

Still not pretty, but at least makes certain things possible. But not competitive search engines.

Re:IPFS is the Distributed Web by drivingmenuts on Sunday October 23, 2016 @02:54PM (#12774838)
Does the issue of digital-currency volatility apply?

If you're hosting content at a certain rate, then the rate drops so that it's less profitable or no longer profitable, wouldn't the proper strategy be to drop that content and then find something worth hosting?

Re:IPFS is the Distributed Web by traverseda on Sunday October 23, 2016 @01:43PM (#12774500)
It's a pity that ether seems to really want to make their own file layer, and IPFS seems to really want to make their own coin for dns.
Re:IPFS is the Distributed Web by fit2rule on Sunday October 23, 2016 @01:18PM (#12774382)
>what makes the supporters of it think it will be any different from the original web.

Disclaimer: I have worked on building the Internet since before the web, and have a BOFH kind of point of view of things, 2 or 3 times over now ..

I support IPFS - and things like it - as a technologist/hacker/punk-ass because, in fact, we have built an utter monstrosity of a beast of a spaghetti god of an Internet, and we can always do better.

Software - and by extension, inter-networking - is like music. There will always be better ways to do it, beyond the horizon of what is current and now. Just because what we've got "basically works, even though its all broken", doesn't mean we can't 'fix whats broken'.

To those of us in the group of your postulate, whats broken is the fact that its all so damned hierarchical, and requires canonical/authority issue and agency in multiple forms before the bits can flow. We can't just set up an IP address - we also have to have DNS, serve content on it on some port, etc. And, on top of this, we end up having to sort it out all the way down the OSI stack, at the hardware layer, by keeping as many hosts as possible up and running as are required to service the customers, here and now, who are using our service.

All of that is what is broken about the current Internet, but of course the irony is that it is all that works about the Internet at the same time.

So, IPFS/distributed/etc. means this: we can un-bork all of the above, and just have all the things route down to the real, hard, user of the system, i.e. the original content provider. IPFS, and its ilk, is all about putting the original content provider in control, while also having the network - as a function of its operating capability - contribute to helping those content providers who become, eventually, popular.

So, we don't have a lot of rigid hierarchy - we have instead multi-variate spread spectra of responsibility/duty to serve up the bits of it all - packets at a time, as part of participation in the whole - to those who want something, and those who know how to find it, from those who have something, and know how to name it.

In short, "its not about the network any more, its the people..."