Re: [forces] Comment on draft-haleplidis-forces-openflow-lib-00

Jamal Hadi Salim <hadi@mojatatu.com> Wed, 30 May 2012 23:16 UTC

Return-Path: <hadi@mojatatu.com>
X-Original-To: forces@ietfa.amsl.com
Delivered-To: forces@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9B4E11E80E3 for <forces@ietfa.amsl.com>; Wed, 30 May 2012 16:16:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.323
X-Spam-Level:
X-Spam-Status: No, score=-102.323 tagged_above=-999 required=5 tests=[AWL=0.654, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eACmZIo+dpcG for <forces@ietfa.amsl.com>; Wed, 30 May 2012 16:16:12 -0700 (PDT)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by ietfa.amsl.com (Postfix) with ESMTP id 1E1F211E80D5 for <forces@ietf.org>; Wed, 30 May 2012 16:16:11 -0700 (PDT)
Received: by yhq56 with SMTP id 56so261095yhq.31 for <forces@ietf.org>; Wed, 30 May 2012 16:16:11 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=0CN+KPSg0Cmx7HfG7MDnNb/FSIMphKWATmJVhDtDqlE=; b=ATqrHKhX5GSG+nvNys+1tVY4YbGNuAS4wbeKCE3m4tZjI2U9nu38fMrQPb9fuKvxex YLT6RBKI0h/PaIn4KRFgdng4Z6+28GiGSDXniTM6EvYiZ9vuuVVyA7wLsJXQQ3nfBElS aPoWpprEkNkhkaWTrm3ZlfNFMDyTxseqP4YQp9BVvwm2KUsJcmcFUxVrH6efy88Qhg2m 6zu7dj+m+q0QqIXYt49Eq6JzfolY5lt5EJbE15bNZy/FWinKTxaD9y9HepEB9iVLOBb4 Y1IwBfiusukgqq9YgUsz7vgLbj8aksX3mxhqUE8WSYCaz2/CpKInfhzlTELenF4xrHPq laBQ==
Received: by 10.60.8.35 with SMTP id o3mr16912631oea.45.1338419771288; Wed, 30 May 2012 16:16:11 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.164.68 with HTTP; Wed, 30 May 2012 16:15:50 -0700 (PDT)
In-Reply-To: <00dc01cd3eb4$1b063740$5112a5c0$@com>
References: <CAAFAkD--Zf7rzjLgQ8rspreUR3kGHzeJaappZZG_zq+GkYy=ow@mail.gmail.com> <00dc01cd3eb4$1b063740$5112a5c0$@com>
From: Jamal Hadi Salim <hadi@mojatatu.com>
Date: Wed, 30 May 2012 19:15:50 -0400
Message-ID: <CAAFAkD9UhMpoP-qS_Buvxwf0cu3kwxfW+xuvrdZVudUvnPXJ1g@mail.gmail.com>
To: Haleplidis Evangelos <ehalep@gmail.com>
Content-Type: text/plain; charset="ISO-8859-7"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQnFem9P5O+peviYWozmLYy1uHvW4aYIKMLvtpbl/PdKsWrD9+EG2BsiSY19OeCABZRYE6rr
Cc: forces@ietf.org, draft-haleplidis-forces-openflow-lib@tools.ietf.org
Subject: Re: [forces] Comment on draft-haleplidis-forces-openflow-lib-00
X-BeenThere: forces@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: ForCES WG mailing list <forces.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/forces>, <mailto:forces-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/forces>
List-Post: <mailto:forces@ietf.org>
List-Help: <mailto:forces-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/forces>, <mailto:forces-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2012 23:16:12 -0000

On Wed, May 30, 2012 at 6:32 PM, Haleplidis Evangelos <ehalep@gmail.com> wrote:
>
> [ΕΗ] We had a discussion with Joel. One of the main thing he is deeply
> concerned is that with multiple Flow Table LFB instances connected between
> them and all these instances connected with instances of action LFBs, the
> full mesh connections will create a very complex graph.
>
> However with your suggestion, we could have only one instance of the
> OFFlowTable LFB and inside have an array of an array of Flow Entries.
>
> This will simplify the graph a lot while still having the same flexibility.
>
> One other thing we discussed with Joel, was whether having an LFB class per
> action is worth it versus the complex graph it will create (as can be seen
> in figures 2, 3 and 4 in the draft).
>
> However if we have only one FlowTable LFB instance, the graph will be even
> less messy.
>
> What do you think?

I agree this is a cleaner looking model.
So the outer array index becomes the table id of the inner (Flow Entry) Table?

> [ΕΗ] Yes, in the OF specification, the ActionSet that travels along with a
> packet in the datapath is a limited array of actions. For this reason the
> ActionSetLFB exists. In the draft the ActionSet LFB is currently read-only
> and the CE can't configure it. So, the ActionSet LFB simply holds the
> metadata value (it is an array of an array of actions) and the actionset
> metadata that passes along is an index to that array.
>

My main contention is that given the approach in the current draft, the
CE will have zero interest in that Action Set table.
It is constantly fluctuating depending on what actions are set on a
specific run of a packet therefore i dont see even the value in it
being read-only.
All this to work around passing the metadata ....

> We also had a discussion with Joel regarding the Action Set LFB. Joel
> suggested we should specify which LFB makes the first allocation of the
> array when the packet enters the datapath and additionally we should
> explicitly specify, that the Action Set LFB is a modeling artifact and not
> an implementation description, the Action Set LFB may not correspond to
> anything in the implementation if the data storage can be handled in some
> other way.
>
> Joel, please correct me if I got something wrong.
>
> Now though, if we merge all Flow Tables in one big table in one LFB, will we
> need an ActionSet metadata? Shouldn't it be internally of the Flow Table
> LFB?

At some point you gotta get to the action executor at the end of that pipeline
so it can play the action script. I suggest that be an LFB as it is now instead
of merging it into the Flow Table LFB.

Would a largish octet string not suffice? It would have the action type/index
for all the actions. Maybe it is time we allowed complex structs as metadata?

cheers,
jamal