From: Date: Wed, 17 Mar 2010 17:01:02 -0500 Message-id: <1268863262384008500@...1315...> In-reply-to: <4BA1511E.5060202@...1114...> References: <1268855205316802500@...1315...> <4BA1433A.8090808@...1114...> <1268862004900065500@...1315...> <4BA1511E.5060202@...1114...> MIME-version: 1.0 Content-type: multipart/alternative; boundary="===axigen=8758003141573323283412822654342878303751=axigen===" Subject: Re: [Openvpn-devel] Bytecount Reporting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Sommerseth Cc: openvpn-devel@lists.sourceforge.net This is a MIME message. You may need a MIME compliant mail user agent. --===axigen=8758003141573323283412822654342878303751=axigen=== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, =20 All very good questions! Some thoughts, below. =20 Thanks for all your help! =20 ... Russell On Wed, Mar 17, 2010 05:01 PM, David Sommerseth w= rote: >=20 On 17/03/10 22:40, openvpn@...1315... wrote: > > Hi, > >=20 > >=20 > >=20 > > I'm running OpenVPN (client) on Windows - connecting to a Linux Server.= =20 >=20 > I'm presuming you're connecting to the management interface on the Linux > server. >> Russell: No, on the local client (i.e. on Windows). This avoids having t= o send information over the link (=3Dwasted bandwidth, and lower speed). >=20 >=20 > > I am wondering if a value isn't reported if there is no traffic - that = could be part of this=20 >=20 > I have a feeling this is the reality. As I don't see any timer alarms > scheduled in the management part of the code. So I need to see this > more in connection with the main part of the event loop code. But I > believe this is the case. >> Russell: Understood - if it is please just let me know. >=20 > > (though it would be better to report information anyways). > >=20 > > Make sense? >=20 > Yeah, I can see your point. But isn't the information going to be > rather useless if it hasn't changed? If there is no change, no need to > dump the same info once again. What do you think? >> Russell: I understand your point, but I'm also wanting to show transfer = rate, and plot the data (which would be easiest if the data arrives uniform= ly). Not a huge issue, but I would to at least like to understand why this = is the case. I guess if this is the way it works it should at least be capt= ured in the documentation for the Management Interface, right? >=20 >=20 > kind regards, >=20 > David Sommerseth >=20 >=20 >=20 > > On Wed, Mar 17, 2010 04:01 PM, David Sommerseth wrote: > >=20 > >=20 > >> > > On 17/03/10 20:46, openvpn@...1315... wrote: > >>> Hi, > >>> > >>> I am trying to write an application that monitors traffic over an Ope= nVPN link - by using bytecount information from the management interface. H= owever, after I telnet in, and enter "bytecount 1" (for 1 second updates), = I find that the real-time bytecount updates are not really every second. Th= ey seem to be initially, but soon slow down (to an update every 5-10 second= s). > >>> > >>> Is this expected, or a known issue? > >> > >> Hi, > >> > >> I'd say this is probably unexpected. But I'd like to know a little bit > >> more about your setup. What kind of OS are you running OpenVPN? > >> > >> It sounds like your OpenVPN process get lower priority somehow. But it > >> could also be that it is dependent on the amount of traffic passing ov= er > >> the tunnel. I'll dig more into the code to see if there are some > >> oddities there before concluding. > >> > >> > >> kind regards, > >> > >> David Sommerseth > >> >=20 >=20= --===axigen=8758003141573323283412822654342878303751=axigen=== Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

Hi,

 

All very good questions! Some thoughts, below.

 

Thanks for all your help!

 

... Russell



On Wed, Mar 17, 2010 05:01 PM, David Sommerseth <op= envpn.list@...1114...> wrote:

On 17/03/10 22:40, openvpn@...1315...<= /A> wrote:
> Hi,
>
>
>
> I'm running OpenV= PN (client) on Windows - connecting to a Linux Server.

I'm presumin= g you're connecting to the management interface on the Linux
server.
>> Russell: No= , on the local client (i.e. on Windows). This avoids having to send informa= tion over the link (=3Dwasted bandwidth, and lower speed).


> = I am wondering if a value isn't reported if there is no traffic - that coul= d be part of this

I have a feeling this is the reality. As I don't = see any timer alarms
scheduled in the management part of the code. So I = need to see this
more in connection with the main part of the event loop= code. But I
believe this is the case.
>> Russell: Un= derstood - if it is please just let me know.


> (though= it would be better to report information anyways).
>
> Make s= ense?

Yeah, I can see your point. But isn't the information going to= be
rather useless if it hasn't changed? If there is no change, no need = to
dump the same info once again. What do you think?
>> Russell: I = understand your point, but I'm also wanting to show transfer rate, and plot= the data (which would be easiest if the data arrives uniformly). Not a hug= e issue, but I would to at least like to understand why this is the case. I= guess if this is the way it works it should at least be captured in the do= cumentation for the Management Interface, right?


kind regards,
David Sommerseth



> On Wed, Mar 17, 2010 04:01 PM, D= avid Sommerseth <openvpn.list@...1114...> wrote:
>
>
>>> On 17/03/10 20:46, openvpn@...1315... wrote:
>>> Hi,
>>>>>> I am trying to write an application that monitors traffic ove= r an OpenVPN link - by using bytecount information from the management inte= rface. However, after I telnet in, and enter "bytecount 1" (for 1 second up= dates), I find that the real-time bytecount updates are not really every se= cond. They seem to be initially, but soon slow down (to an update every 5-1= 0 seconds).
>>>
>>> Is this expected, or a known is= sue?
>>
>> Hi,
>>
>> I'd say this is pr= obably unexpected. But I'd like to know a little bit
>> more about= your setup. What kind of OS are you running OpenVPN?
>>
>&g= t; It sounds like your OpenVPN process get lower priority somehow. But it>> could also be that it is dependent on the amount of traffic pass= ing over
>> the tunnel. I'll dig more into the code to see if ther= e are some
>> oddities there before concluding.
>>
>= ;>
>> kind regards,
>>
>> David Sommerseth>>

= --===axigen=8758003141573323283412822654342878303751=axigen===--