Re: [ppsp] Firefox ppsp URL support

Jeff Thompson <jeff@thefirst.org> Tue, 11 March 2014 15:27 UTC

Return-Path: <jefft0@gmail.com>
X-Original-To: ppsp@ietfa.amsl.com
Delivered-To: ppsp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5291F1A0766 for <ppsp@ietfa.amsl.com>; Tue, 11 Mar 2014 08:27:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.65
X-Spam-Level:
X-Spam-Status: No, score=-1.65 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bpLdJDhhvmYD for <ppsp@ietfa.amsl.com>; Tue, 11 Mar 2014 08:27:50 -0700 (PDT)
Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) by ietfa.amsl.com (Postfix) with ESMTP id 940CE1A0763 for <ppsp@ietf.org>; Tue, 11 Mar 2014 08:27:50 -0700 (PDT)
Received: by mail-pd0-f182.google.com with SMTP id g10so8631911pdj.41 for <ppsp@ietf.org>; Tue, 11 Mar 2014 08:27:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=xvSffL8LF+qJPmk6MqWi2lo5y3LCcYDUdR3qWKfbnEw=; b=OHJClB4fnUa1eFQfzK9VG4to13cotbr1PjcAy/MQ2nzhu+dqDUJh3grVS8mQvxGVsr YvNruX/X0iqkZIjeLWCPe3e9DC1Fs1zGnF0QcDwTRIprS8dJPTF7HArmDw/DB47p/lpe hXLOxFVudPuNM+FX0LVmzNmacoZnloe1NH5oq0PAGB42G69ILe8L0ORylMrt9AEJU0rk M1+y4P+cXIv4JF6Os65cIbrZFbRkfb3YUqXRZBs+cYGr4yeBHSKUkARaUifWRTwbZA3k WZ5Dnh30I9/fGKRtSIs81q3sKvMHOLDwGaj/ZQNHWtX5Kj3eiI9MINNfIeNWp7etd4iq /L7g==
X-Received: by 10.66.240.130 with SMTP id wa2mr48021042pac.73.1394551663933; Tue, 11 Mar 2014 08:27:43 -0700 (PDT)
Received: from [192.168.8.2] (cpe-23-241-245-244.socal.res.rr.com. [23.241.245.244]) by mx.google.com with ESMTPSA id c7sm74953034pbt.0.2014.03.11.08.27.40 for <ppsp@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 08:27:42 -0700 (PDT)
Sender: Jeff Thompson <jefft0@gmail.com>
Message-ID: <531F2B5F.4070002@thefirst.org>
Date: Tue, 11 Mar 2014 08:27:27 -0700
From: Jeff Thompson <jeff@thefirst.org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: "ppsp@ietf.org" <ppsp@ietf.org>
References: <etPan.53170ae3.327b23c6.13b40@akai.jsonified.com> <CAJYQ-fRK04u88g19EAG9TOSQFWN=tzCLxTacSbsiHzii+YWoSg@mail.gmail.com> <CAL+Y1nsniFo9-KFc63551fU+-eia46x8uKJ2A2WEBPKVq=W2sA@mail.gmail.com> <531B4789.2000108@thefirst.org> <etPan.531e2988.46e87ccd.4b0@akai.jsonified.com>
In-Reply-To: <etPan.531e2988.46e87ccd.4b0@akai.jsonified.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: http://mailarchive.ietf.org/arch/msg/ppsp/593ntyJ9kp08YiS0EJjRkOdAnYU
Subject: Re: [ppsp] Firefox ppsp URL support
X-BeenThere: ppsp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: discussing to draw up peer to peer streaming protocol <ppsp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ppsp>, <mailto:ppsp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ppsp/>
List-Post: <mailto:ppsp@ietf.org>
List-Help: <mailto:ppsp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ppsp>, <mailto:ppsp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Mar 2014 15:27:52 -0000

Hi Dave,

Good news that there is some motion on this. I think I can contribute.  
I've had some experience implementing protocol handlers as a Firefox 
extension.  I wrote one to handle the NetInf ni protocol which has a 
hash-based URI similar to ppsp, and helped write one for the ndn 
protocol which has some more complex TCP communication behind the 
scenes.  These are able to render an entire web site in the space of 
documents referred to by URIs with the special protocol.

> I would imagine it will need something like http://www.w3.org/TR/app-uri/

This uses a universal app: URI with an application-specific UUID which 
has to be in every URI, for example app:<UUID>/<hash>. You prefer this 
to using the ppsp: protocol directly, for example ppsp:<hash> ?  This is 
how the examples look on ppsp.me:
http://www.ppsp.me/start.html

> I’m not sure how mime types etc would be transported

The NetInf people have thought about this when they wrote the "Naming 
Things with Hashes" RFC: http://tools.ietf.org/html/rfc6920 . They 
propose putting the content type in the URI, for example 
ppsp://2b2fe5f1462e5b7ac4d70fa081e0169160b2d3a6?ct=video/mpeg

Thanks,
- Jeff

On 2014-03-10 14:07, Dave Cottlehuber wrote:
> On 08. März 2014 at 17:38:46, Jeff Thompson (jeff@thefirst.org) wrote:
>>
>> Hello Dave,
>>   
>> A related question. What are the plans for Firefox to support ppsp
>> URLs, so that an HTML page can have, for example
>>   
>> and Firefox (or an extension) will use PPSP to fetch and display an
>> image (or other content type)?
>>   
>> Thank you,
>> - Jeff Thompson
> Hey Jeff,
>
> I would love to see this too. I had a brief chat with some IETF folk about the right way to organise this; it requires a bit of coordination across Mozilla, IANA, and a few other places. I’d love to have some help on this, atm I am still working on the Erlang peer before I get stuck into the javascript one. If there’s interest in doing this I am happy to give input based on what I’ve learned so far.
>
> One of the other crazy ideas I had was that, as the leaf nodes don’t have to be identical chunk size, one could in theory cram an entire web site into a hash tree simply by putting the files into the appropriate lower level chunks with some structuring info, for example, I’m not sure how mime types etc would be transported, and there are a few other hitches, but in *theory* it’s all achievable :).
>
> I would imagine it will need something like http://www.w3.org/TR/app-uri/ and these are defined by http://www.w3.org/TR/uri-clarification/ which refers to http://tools.ietf.org/html/rfc2717 and http://tools.ietf.org/html/rfc2718 ; I have had some offers of assistance in working through all this, with a recommendation that getting a few of the core browser developers onside with the proposal before doing all the paperwork.
>
> Currently my priority is to finish the Erlang PPSP code first :-).
>
> A+
> --
> Dave Cottlehuber
> Sent from my PDP11
>
> _______________________________________________
> ppsp mailing list
> ppsp@ietf.org
> https://www.ietf.org/mailman/listinfo/ppsp