From owner-freebsd-net@FreeBSD.ORG Thu Sep 18 07:45:45 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB70FD95 for ; Thu, 18 Sep 2014 07:45:45 +0000 (UTC) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72C3CADD for ; Thu, 18 Sep 2014 07:45:45 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wm4so368091obc.15 for ; Thu, 18 Sep 2014 00:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tsUehk9P+K0uD1bineaJmfX0tNlRGLUTsHLFIrbiJVY=; b=o+tvPmM8ox35wF8THxdrBpaD5+NGmH7PERaOWQff6L+BK31B0Fi35kjJW530W39DJw uZc2qRve3W6xbbW7kV0fop+bkJc+8Vrex1uM4DlmZwU/AIlu1h/5FIW6t19rNJ99A0V6 3NqtNghgTC0XT4Hhk0on8NN4tfE03iWivBRpj1lCslx2/VUkQweEM68+WsqOZ8C43Bfk 9QgZA0xVzGDwXtsqHAeaBbOovX0B6d8YIjCFGzcljbqCL1mOf/PPo9ydxN7aUR8I7O7A 3DGUUG4qi0VcIuvjIcTVxU84A0xHc2kIR1PG2wPcdS0XZ4TCK3PjXo+pcDLe8Asi6DGS AHiA== MIME-Version: 1.0 X-Received: by 10.182.3.100 with SMTP id b4mr2314603obb.79.1411026344604; Thu, 18 Sep 2014 00:45:44 -0700 (PDT) Received: by 10.76.95.199 with HTTP; Thu, 18 Sep 2014 00:45:44 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Sep 2014 15:45:44 +0800 Message-ID: Subject: Re: [netmap/vale-ctl] when could process packet From: upyzl To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net@freebsd.org, =?UTF-8?B?6LW16ZKm?= X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2014 07:45:45 -0000 Hi Luigi, glad to see you :) I just implement the datapath of the switch (base on openflow 1.0) For the basis, a FreeBSD act as the switch typical topo: (there should be a controller link with the switch, we currently ignore it) host1[eth0] -------- [em0]switch[em1] ------- [eth0]host2 [em2] [em3] | | host3[eth0] --------------| |----------------[eth0]host4 In OpenFlow std. there may be some rules like (just an example): TCP packet: host1 --> host 3 & host 4 I think I should analysis all incoming em0 packets which match the rules(flow table), forward only matched packets to em2 & em3 (forward itself using netmap) ( I use like this: ./vale-ctl -a vale0:em0 ./vale-ctl -a vale0:em1 ./vale-ctl -a vale0:em2 ./vale-ctl -a vale0:em3 then host1 send packets ) the point is, I don't know when/where to process it before forwarding ( as vale.ctl.c is very simple... I could do the match on bridge.c with 2 interfaces) Additional, I don't use OpenvSwitch since it's too complex (conclusion of talked with my advisor) Thanks! Jaye 2014-09-18 15:07 GMT+08:00 Luigi Rizzo : > Please tell me more details on what are your goals. We already have some > work on progress on the topic and it might make sense for you to start from > what we have already, rather than restart from scratch. Of course, if your > advisor agrees - you may want to involve him in the discussion. > > Cheers > Luigi > > On Thursday, September 18, 2014, upyzl wrote: > >> Hi, >> >> I think it's right place to talk about FreeBSD 10 - netmap question >> (location at FreeBSD 10: /usr/src/tools/tools/netmap ; with kernel device >> netmap on) >> >> I'm (entry) study on openflow software switch based on netmap/vale >> >> It seems very simple in vale-ctl.c and hard to add features for packet >> process (such as flow match and forward actions apply) >> >> Could anyone give me some advice? thanks. >> >> Best regards, >> Jaye >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2211611 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > >