Re: [Coin] Hackaton

<hemant@mnkcg.com> Sat, 16 November 2019 06:00 UTC

Return-Path: <hemant@mnkcg.com>
X-Original-To: coin@ietfa.amsl.com
Delivered-To: coin@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D1B91200CC; Fri, 15 Nov 2019 22:00:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnkcg.com
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 TxQRTH0cwuhd; Fri, 15 Nov 2019 22:00:25 -0800 (PST)
Received: from web033.dnchosting.com (web033.dnchosting.com [199.7.109.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E86D11200B2; Fri, 15 Nov 2019 22:00:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mnkcg.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:In-Reply-To: References:Cc:To:From:Reply-To:Sender:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=t3CDUnKE084RsRaH4dJS+ECOvlf2SxlKjEpMqJlatXg=; b=A8DGfdK70Ar3nA7ZktGfjsOxl9 4d2TAf1cEaXtuBucps9InFAnoISygKSqun/3h109fvKPVPymYVJ5uoVMtAZX63e69XfIAy2tFShoC aqFPBbSAVgJ+kJtSorjDzMOcH8o3d8S2Otd+YZqqJuXG0QfU6YhHgoRZcFSEE2otECowNd42u9yjw t72/GJvXjsj4PaSYrjolQfWASIUd1hys5R1yb3mpkkq6/c2sOhgk4nb6UYWfBDJbpL+3syCFn/5dE tpQf+nZ7SQwYwxrHFcePaiGZ8VvT9xAH8lD0r5Era4lO9mIfFAn0G449CM/RkUUdZSWMD5g8OjuB3 ks+abRJA==;
Received: from [157.37.205.147] (port=50822 helo=hemantPC) by web033.dnchosting.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.92) (envelope-from <hemant@mnkcg.com>) id 1iVr7t-00CUzO-5T; Sat, 16 Nov 2019 00:00:15 -0600
Reply-To: hemant@mnkcg.com
From: hemant@mnkcg.com
To: eve.m.schooler@intel.com, coin@irtf.org
Cc: eve.schooler@gmail.com, coinrg-chairs@irtf.org, marie@mjmontpetit.com
References: <CAPjWiCQpuwbxX-obqgn4YFPaxgRCPekK=yd6o3swasG4ev=5Pw@mail.gmail.com> <1BBB5B8548ACEF4093CE0051D9EA9A6BDADC7F75@ORSMSX105.amr.corp.intel.com>
In-Reply-To: <1BBB5B8548ACEF4093CE0051D9EA9A6BDADC7F75@ORSMSX105.amr.corp.intel.com>
Date: Sat, 16 Nov 2019 11:30:01 +0530
Organization: MNK Consulting
Message-ID: <008401d59c43$1a618c00$4f24a400$@mnkcg.com>
X-Mailer: Microsoft Outlook 16.0
MIME-Version: 1.0
Thread-Index: AQJAAcILoRFxTOrgMBOBB8q5Xl4StQG9uepCpqqPgUA=
Content-Language: en-us
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_007D_01D59C71.2F3E7EC0"
X-OutGoing-Spam-Status: No, score=-0.2
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - web033.dnchosting.com
X-AntiAbuse: Original Domain - irtf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - mnkcg.com
X-Get-Message-Sender-Via: web033.dnchosting.com: authenticated_id: hemant@mnkcg.com
X-Authenticated-Sender: web033.dnchosting.com: hemant@mnkcg.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/coin/mJu3qXDMnSmbcXRIxuYw2GU9nAo>
Subject: Re: [Coin] Hackaton
X-BeenThere: coin@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "COIN: Computing in the Network" <coin.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/coin>, <mailto:coin-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/coin/>
List-Post: <mailto:coin@irtf.org>
List-Help: <mailto:coin-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/coin>, <mailto:coin-request@irtf.org?subject=subscribe>
X-List-Received-Date: Sat, 16 Nov 2019 06:00:27 -0000

Please see in line below.

 

From: Coin <coin-bounces@irtf.org> On Behalf Of Schooler, Eve M
Sent: Friday, November 15, 2019 5:38 AM
To: coin@irtf.org
Cc: eve.schooler@gmail.com; Schooler, Eve M <eve.m.schooler@intel.com>; coinrg-chairs@irtf.org; Marie-Jose Montpetit <marie@mjmontpetit.com>
Subject: Re: [Coin] Hackaton

 

Hi All, 

 

At the last Hackathon there was some terrific work on implementing match-action functions in P4.

These largely performed functions on single streams of data.

 

One thought I had for a longer-term Hackathon goal is if we can create and demonstrate good examples of group-oriented match-action functions?

 

Not sure what is group oriented.  You could use multiple actions in P4 bound to the same action.  

 

This question is motivated by the upstream nature of data flows at the IoT Edge, particularly visual data flows, as they meet up or converge at various points in the network.

Flows of this nature have been captured in at least one draft that discusses Extended Reality <https://datatracker.ietf.org/doc/draft-montpetit-coin-xr/> , and there have been COIN presentations on the Ubiquitous Witness use case <https://trac.ietf.org/trac/irtf/raw-attachment/wiki/coin/COIN%20-%20Use%20Case%20discussion%20-%202018-11-08.pdf>  and Cascading Video <https://datatracker.ietf.org/meeting/105/materials/slides-105-coinrg-5-jiang-video-analytics-and--coin-01> .

 

In some cases, multiple contextually-related streams pass through/converge/implode on network elements (switches, routers, access points, etc) as they flow upstream. As they pass through these boxes, can we perform some kind of collective computation on them before forwarding the (potentially new) stream onwards? 

 

For example, in the Ubiquitous Witness use case, multiple cameras in a Smart City capture and send video streams of an anomaly that has occurred (e.g., a car crash in an intersection). Each stream contains video frames from a different perspective and that relate to a specific point in time (at the moment the accident occurred, give or take a few milliseconds) and space (within some short distance around the intersection). I’d like the network box receiving those streams to perform some functions on those related data flows. The function could be simply to identify what “contextually-related” means for the use case at hand. Another function could be to identify which is the “best” stream to store as evidence, or it could be to identify “the top 10 streams” to “stitch” together into an immersive MPEG-I 360-degree view of the intersection or etc. Although this example highlights video data flows, the contextually-related streams can live in the video or non-video realm. 

 

Video processing involves floating point computation and division (percentage).  A switching data plane does not support floating point computation.  One would have to quantize the data first.  P4 does not support division used by percentage.  In regards to top 10 streams, one could use elephant vs. mice flow detection which uses hashes.  Just change the rate metric of elephant flow to another metric.  <https://web.stanford.edu/~balaji/papers/07elephanttrap.pdf> https://web.stanford.edu/~balaji/papers/07elephanttrap.pdf

 

Reasonable plan.  Details such as what is context, metric for “best”, etc. need working out.

 

Hemant

 

Thoughts?

Eve

 

From: Marie-Jose Montpetit [mailto:marie@mjmontpetit.com] 
Sent: Monday, November 11, 2019 3:11 AM
To: coin@irtf.org <mailto:coin@irtf.org> 
Cc: coinrg-chairs@irtf.org <mailto:coinrg-chairs@irtf.org> 
Subject: Hackaton 

 

Some notes about the P4 (Programming Protocol-independent Packet Processors)

 

Here are the links to the P4 material we used in Montreal:

https://github.com/p4lang/tutorials


In particular look at the  Obtaining required software section to setup your environment.
Printing the cheat sheet could also be a good idea:
https://drive.google.com/file/d/1Z8woKyElFAOP6bMd8tRa_Q4SA1cd_Uva/view

This reference to the language is also interesting:
https://github.com/p4lang/education/blob/master/GettingStarted.md


Look into P4 14 (as mentioned at the interim) for some available tools at the hackaton or 16.

This page also has a list of Code Examples.

 

There will be no tech support this time but I hope some people from Montreal will be there to help newcomers. For those more advanced the “initial group project” is a packet filtering application to identify packets based on a specific criterion.

 

There is a slack channel if people want to connect remotely:

coinrg.slack.com <http://coinrg.slack.com> 

 

Montreal participants: chime in for ideas and suggestions to the newcomers.

 

CU Saturday and have safe trips to Singapore.

 

 

mjm

 

 

Marie-José Montpetit, Ph.D.

Research Affiliate, MIT Media Laboratory

mariejose@mjmontpetit.com <mailto:mariejose@mjmontpetit.com> 

mariejo@mit.edu <mailto:mariejo@mit.edu>