Thanks for your reply, Ben, I've already read lib/dpif-provider.h, and known that struct dpif_class abstract some basic functions of one switch. I need to emulate a switch (e.g., 4 input ports and output ports), setup a network arrival pattern(e.g., bernoulli process), then monitor the switch's performance such as delay, lossratio and throughput. My conern is that whether OVS can be competent to this.
Cheers, Hu Jingfei 2012/3/3 Ben Pfaff <[email protected]> > On Sat, Mar 03, 2012 at 07:21:22PM +0800, Jingfei Hu wrote: > > Now I know the switching is done in lib/dpif-netdev.c under userspace > OVS. > > And I roughly look through the code of lib/dpif-netdev.c, but got no > > userful information for my work. So is there any documentation about the > > code of lib/dpif-netdev.c? > > Did you read lib/dpif-provider.h? > > > Where is the code of scheduling packets on input ports and output > > ports? > > dpif_netdev_run(). > > > I need to customize the scheduling algorithm and the buffer to each > > output ports. >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
