Re: [alto] New Incremental Update draft

Hans Seidel <hseidel@benocs.com> Mon, 02 November 2015 16:43 UTC

Return-Path: <hseidel@benocs.com>
X-Original-To: alto@ietfa.amsl.com
Delivered-To: alto@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4D7211B498D for <alto@ietfa.amsl.com>; Mon, 2 Nov 2015 08:43:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.309
X-Spam-Level:
X-Spam-Status: No, score=-1.309 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, J_CHICKENPOX_72=0.6, T_RP_MATCHES_RCVD=-0.01] 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 T2f0TGYOV2oS for <alto@ietfa.amsl.com>; Mon, 2 Nov 2015 08:43:30 -0800 (PST)
Received: from mail.benocs.com (mx-01.benocs.com [91.102.13.130]) by ietfa.amsl.com (Postfix) with ESMTP id 6E5E81B4990 for <alto@ietf.org>; Mon, 2 Nov 2015 08:43:30 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail.benocs.com (Postfix) with ESMTP id 596FB6432D8; Mon, 2 Nov 2015 17:43:29 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at benocs.com
Received: from mail.benocs.com ([127.0.0.1]) by localhost (mail.benocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RyUuS5z4A-u4; Mon, 2 Nov 2015 17:43:27 +0100 (CET)
Received: from [192.168.178.43] (unknown [192.168.3.6]) by mail.benocs.com (Postfix) with ESMTPSA id EDA566432D3; Mon, 2 Nov 2015 17:43:26 +0100 (CET)
From: Hans Seidel <hseidel@benocs.com>
To: Wendy Roome <w.roome@alcatel-lucent.com>, "Y. Richard Yang" <yry@cs.yale.edu>
References: <D2302448.504B98%w.roome@alcatel-lucent.com> <CANUuoLpK7f3Y3=N6dxSv5vD3cyKE9OjSwKa+D7ctA9fU0fbqkA@mail.gmail.com> <560D4722.5080402@benocs.com> <D232C62E.51667F%w.roome@alcatel-lucent.com>
Message-ID: <563792AD.9040609@benocs.com>
Date: Mon, 02 Nov 2015 17:43:25 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <D232C62E.51667F%w.roome@alcatel-lucent.com>
Content-Type: multipart/alternative; boundary="------------030401010702090403040700"
Archived-At: <http://mailarchive.ietf.org/arch/msg/alto/ai52GdWXep0YGj8PZ7kuBmUZs68>
Cc: "alto@ietf.org" <alto@ietf.org>
Subject: Re: [alto] New Incremental Update draft
X-BeenThere: alto@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Application-Layer Traffic Optimization \(alto\) WG mailing list" <alto.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/alto>, <mailto:alto-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/alto/>
List-Post: <mailto:alto@ietf.org>
List-Help: <mailto:alto-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/alto>, <mailto:alto-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Nov 2015 16:43:33 -0000

Wendy,

while working on our Incremental Update implementation is was thinking 
about the 3 solutions and decided to prefer option 1. I also like it for 
its simplicity while it still keeps start and stop separated.
However,if I read your mail correctly the stream-id field is only 
allowed in stop updates. That means adding resources to an existing 
stream is not supported. So, if a client wants to add resources it needs 
to create a new stream requesting the existing + the new resource(s)?

Furthermore, I updated our ALTO server 
(alto.benocs.berlin:8000/directory) and it now supports the 
incremental-updates draft -01. However, since we use the interop network 
to generate the maps
there are no changes (yet). Hence, every client will only receive the 
start event and the first resource data but no updates since there 
aren't any changes in the network.

Due to the lack of updates from our ALTO server I was also thinking 
about adding some (optional) incremental update tests to the interop 
draft. What do you think?

Hans


On 01.10.2015 17:53, Wendy Roome wrote:
> Hans,
>
> Thanks for pointing that out!  First, I assumed they were exclusive: a 
> request can have start-updates or stop-updates, but not both. But the 
> draft does not say that. My implementation does not support both in 
> one request, but does not return an error if a request does. (My 
> server just ignores the stop-updates field. My culpa!)
>
> But I just realized there is a use for having both in one request. 
> Suppose a client wants to stop a previous update-stream, and replace 
> it with a new stream. Combining both in the same request is more 
> efficient. On the other hand, is that going to happen often enough to 
> matter?
>
> To complicate things, a request with start-updates, stream-id and 
> stop-updates is ambiguous. The stop-updates part is clear. The 
> ambiguity is for the new resources in start-updates. Should the server 
> return updates for those on the new tcp connection? Or should the 
> server add the start-updates resources to the *other* stream - - the 
> one with the stream-id?
>
> I see several ways to fix that:
>
> 1. Say that start-updates & stop-updates are mutually exclusive. That 
> is, a request has start-updates, or stop-updates and stream-id, but no 
> other combination. And say the server must return an error if the 
> client violates that rule.
>
> 2. Allow both in one request. But then we have to decide whether the 
> start-updates resources are to be added to the existing stream, or to 
> be returned in a new stream.
>
> 3. Define two separate requests: start-new-update-stream and 
> modify-existing-update-stream. They would have different parameter 
> types, and hence different accepts media-types. That is unambiguous, 
> and is very general, and would allow a client to add resources to an 
> existing update stream. But that approach is more complicated, and I 
> do not know if the extra complication is worth it.
>
> What do the rest of you think?  My vote is for #1, just to keep it simple.
>
> - Wendy Roome
>
>
> From: Hans Seidel <hseidel@benocs.com>
> Date: Thu, October 1, 2015 at 10:45
> To: "Y. Richard Yang" <yry@cs.yale.edu <mailto:yry@cs.yale.edu>>, 
> Wendy Roome <w.roome@alcatel-lucent.com 
> <mailto:w.roome@alcatel-lucent.com>>
> Cc: "alto@ietf.org" <alto@ietf.org <mailto:alto@ietf.org>>
> Subject: Re: [alto] New Incremental Update draft
>
> Wendy, Richard,
>
> great work.
>
> One question that came up while reading:
>
> 1. Is it allowed to use "start-updates" and "stop-updates" in one HTTP 
> request? I found nothing specific that neither supports nor 
> contradicts that.
>     Intuitively, I would say no, it is not allowed to have both in one 
> request but I am not entirely convinced.
>
> Hans