Date: Thu, 18 Sep 2014 15:45:44 +0800 From: upyzl <zj262144@gmail.com> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: freebsd-net@freebsd.org, =?UTF-8?B?6LW16ZKm?= <zhaoqin.bupt@gmail.com> Subject: Re: [netmap/vale-ctl] when could process packet Message-ID: <CAMijcFEYEi-9cy1F2CVS1-Nquy4x3fzapQ_F4u4=9pvVW2T6Vg@mail.gmail.com> In-Reply-To: <CA%2BhQ2%2BgYMCGx%2BTmih82Y8ojz3g1XS9c4aCmoN9CVCM%2B4=B96pQ@mail.gmail.com> References: <CAMijcFEpQcuvuWytTBMaQfMKV2vrx4qv_OCHzNzuFvROukXY_Q@mail.gmail.com> <CA%2BhQ2%2BgYMCGx%2BTmih82Y8ojz3g1XS9c4aCmoN9CVCM%2B4=B96pQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <rizzo@iet.unipi.it>: > 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 <zj262144@gmail.com> 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) > -----------------------------------------+------------------------------- > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMijcFEYEi-9cy1F2CVS1-Nquy4x3fzapQ_F4u4=9pvVW2T6Vg>