Vasiliy Baranov
2008-Nov-28 15:51 UTC
[crossbow-discuss] flow statisitcs on xVM guest VNIC
While booted in OpenSolaris/xVM, I am running a Linux paravirtualized guest which uses a VNIC automatically created for the guest. In dom0, I am setting up a number (1 through 6) of flows on that VNIC representing some types of network traffic I am interested in. Each flow is identified by some remote IP address range and is created as follows: flowadm add-flow -l vnic100 -a remote_ip=a.b.c.d/e myflow The problem is, no matter how active the guest is on the network, ''flowadm show-flow -l vnic100 -s'' (flow statistics) shows all zeros for all flows. Is flow statistics supposed to work in this scenario? ''dladm show-link -s vnic100'' (link statisitcs) shows reasonable values. snv101a, Crossbow BFU Oct 31 2008. Thanks, Vasiliy
Hi Vasiliy, I think that was a bug in older bits. The latest code has this fixed. I tried exactly what you did on a x64 based system # dladm create-vnic -l e1000g1 vnic100 # ifconfig vnic100 plumb # ifconfig vnic100 10.1.10.6/8 up # flowadm add-flow -l vnic100 -a remote_ip=10.1.10.11/8 myflow # /opt/tools/netserver Starting netserver at port 12865 ... Shoot some traffic from the host having 10.1.10.11 addres to the destination 10.1.10.6 # flowadm show-flow -l vnic100 -s FLOW IPACKETS RBYTES IERRORS OPACKETS OBYTES OERRORS myflow 819636 1229148240 0 0 0 0 I believe this is what you are looking for. We should be pushing out the new bits very soon now. Thanks, Sunay Vasiliy Baranov wrote:> While booted in OpenSolaris/xVM, I am running a Linux paravirtualized > guest which uses a VNIC automatically created for the guest. In dom0, I > am setting up a number (1 through 6) of flows on that VNIC representing > some types of network traffic I am interested in. Each flow is > identified by some remote IP address range and is created as follows: > > flowadm add-flow -l vnic100 -a remote_ip=a.b.c.d/e myflow > > The problem is, no matter how active the guest is on the network, > ''flowadm show-flow -l vnic100 -s'' (flow statistics) shows all zeros for > all flows. Is flow statistics supposed to work in this scenario? > > ''dladm show-link -s vnic100'' (link statisitcs) shows reasonable values. > > snv101a, Crossbow BFU Oct 31 2008. > > Thanks, > Vasiliy > _______________________________________________ > crossbow-discuss mailing list > crossbow-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss-- Sunay Tripathi Distinguished Engineer Solaris Core Operating System Sun MicroSystems Inc. Solaris Networking: http://www.opensolaris.org/os/community/networking Project Crossbow: http://www.opensolaris.org/os/project/crossbow
Vasiliy Baranov
2008-Dec-01 14:22 UTC
[crossbow-discuss] flow statisitcs on xVM guest VNIC
Hi Sunay, Thank you for replying. Hmm, if I create, plumb, and bring a VNIC up myself per your example below, I can see flow statistics too. If, however, I use the VNIC created for the guest automatically, flow statistics still shows all zeros. May it be due to the fact that the guest VNIC is not plumbed or marked as "up" in dom0? Thank you, Vasiliy Sunay Tripathi wrote:> Hi Vasiliy, > > I think that was a bug in older bits. The latest code has this fixed. I > tried exactly what you did on a x64 based system > > # dladm create-vnic -l e1000g1 vnic100 > # ifconfig vnic100 plumb > # ifconfig vnic100 10.1.10.6/8 up > # flowadm add-flow -l vnic100 -a remote_ip=10.1.10.11/8 myflow > # /opt/tools/netserver > Starting netserver at port 12865 > > ... Shoot some traffic from the host having 10.1.10.11 addres to > the destination 10.1.10.6 > > # flowadm show-flow -l vnic100 -s > FLOW IPACKETS RBYTES IERRORS OPACKETS OBYTES OERRORS > myflow 819636 1229148240 0 0 0 0 > > I believe this is what you are looking for. We should be pushing out > the new bits very soon now. > > Thanks, > Sunay > > Vasiliy Baranov wrote: > >> While booted in OpenSolaris/xVM, I am running a Linux paravirtualized >> guest which uses a VNIC automatically created for the guest. In dom0, I >> am setting up a number (1 through 6) of flows on that VNIC representing >> some types of network traffic I am interested in. Each flow is >> identified by some remote IP address range and is created as follows: >> >> flowadm add-flow -l vnic100 -a remote_ip=a.b.c.d/e myflow >> >> The problem is, no matter how active the guest is on the network, >> ''flowadm show-flow -l vnic100 -s'' (flow statistics) shows all zeros for >> all flows. Is flow statistics supposed to work in this scenario? >> >> ''dladm show-link -s vnic100'' (link statisitcs) shows reasonable values. >> >> snv101a, Crossbow BFU Oct 31 2008. >> >> Thanks, >> Vasiliy >> _______________________________________________ >> crossbow-discuss mailing list >> crossbow-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss >> > > >
Girish Moodalbail
2008-Dec-01 20:41 UTC
[crossbow-discuss] flow statisitcs on xVM guest VNIC
On 12/01/08 09:22, Vasiliy Baranov wrote:> Hi Sunay, > > Thank you for replying. Hmm, if I create, plumb, and bring a VNIC up > myself per your example below, I can see flow statistics too. If, > however, I use the VNIC created for the guest automatically, flow > statistics still shows all zeros. May it be due to the fact that the > guest VNIC is not plumbed or marked as "up" in dom0? >Hello Vasiliy, We do not track the statistics for flows created on VNIC''s assigned to xVM guest domains. The reason we cannot capture statistics is that the flows don''t get initialized for non-DLS clients and we are tracking this as an RFE (See CR 6778531). We will look into this at the earliest. thanks ~Girish
Vasiliy Baranov
2008-Dec-01 21:03 UTC
[crossbow-discuss] flow statisitcs on xVM guest VNIC
Girish Moodalbail wrote:> On 12/01/08 09:22, Vasiliy Baranov wrote: > >> Hi Sunay, >> >> Thank you for replying. Hmm, if I create, plumb, and bring a VNIC up >> myself per your example below, I can see flow statistics too. If, >> however, I use the VNIC created for the guest automatically, flow >> statistics still shows all zeros. May it be due to the fact that the >> guest VNIC is not plumbed or marked as "up" in dom0? >> >> > Hello Vasiliy, > > We do not track the statistics for flows created on VNIC''s assigned to > xVM guest domains. The reason we cannot capture statistics is that the > flows don''t get initialized for non-DLS clients and we are tracking this > as an RFE (See CR 6778531). We will look into this at the earliest. >Girish, Thank you for clarifying this. This helps a lot. Thank you, Vasiliy