<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><div>Hi,</div><div><br></div></div><div dir="ltr">On 5 Dec 2018, at 16:15, marziyeh latifi <<a href="mailto:marziyeh.latifi95@gmail.com">marziyeh.latifi95@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="rtl"><div dir="ltr">I want to count the number of cells that are sent from circuit queue to the output buffer in each relay. How can I do this?</div><div dir="ltr">
Any opinion?</div></div></div></blockquote><div><br></div><span style="background-color: rgba(255, 255, 255, 0);">You already asked this question in tor-relays:</span><div><a href="https://lists.torproject.org/pipermail/tor-relays/2018-December/016696.html" style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);"><font color="#000000">https://lists.torproject.org/pipermail/tor-relays/2018-December/016696.html</font></a></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Continuing on from that reply:<br></span><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">CIRC_BW events are only sent for origin circuits:</span></div><div><a href="https://github.com/torproject/tor/blob/7d8e0cc9abf2a74789e635d2fd4d0e18b8e0d1fe/src/feature/control/control.c#L6082" style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);"><font color="#000000">https://github.com/torproject/tor/blob/7d8e0cc9abf2a74789e635d2fd4d0e18b8e0d1fe/src/feature/control/control.c#L6082</font></a></div></div><div><span style="background-color: rgba(255, 255, 255, 0);">An origin circuit starts at the tor instance sending the event.</span></div><div><br></div>Why do you want to see the number of cells?<div><br></div><div>Do you want to count cells on a public relay?</div><div>Tor is an anonymity network, so we ask relay operators to protect</div><div>user privacy. If you are running a Tor relay on the public network,</div><div>please don't collect this information.</div><div><br></div><div>If you need to collect this information for research, ask the Tor</div><div>research safety board for help:</div><div><a href="https://research.torproject.org/safetyboard.html">https://research.torproject.org/safetyboard.html</a></div><div><br></div><div>The research safety board suggests using traffic simulation, rather</div><div>than experimenting on real tor users. The chutney and shadow tools</div><div>are useful for Tor traffic simulation:</div><div><a href="https://gitweb.torproject.org/chutney.git">https://gitweb.torproject.org/chutney.git</a></div><div><a href="https://shadow.github.io/">https://shadow.github.io/</a></div><div><br></div><div>In a simulated Tor network, with TestingTorNetwork 1, you can</div><div>use the CELL_STATS event to count cells:</div><div><a href="https://github.com/torproject/torspec/blob/master/control-spec.txt#L3041">https://github.com/torproject/torspec/blob/master/control-spec.txt#L3041</a></div><div><br></div><div>If you can't use a simulation, use a tool that protects user privacy,</div><div>like PrivCount:</div><div><a href="https://github.com/privcount/privcount">https://github.com/privcount/privcount</a></div><div><br></div><div>T</div></body></html>