I'm trying to understand link protocol versions, but I have some problems. I requested descriptor from the root server and it contains line "protocols Link 1 2 Circuit 1". Then I connected to the node, sent VERSIONS cell and got a responce: "00 00 07 00 04 00 03 00 04". But according to that responce, the node supports link protocol v3 and v4, not v1 and v2. Could you please explain that moment?
On Tue, Oct 28, 2014 at 02:19:17PM +0400, ???????????????? ?????????????????? wrote:
I'm trying to understand link protocol versions, but I have some problems. I requested descriptor from the root server and it contains line "protocols Link 1 2 Circuit 1". Then I connected to the node, sent VERSIONS cell and got a responce: "00 00 07 00 04 00 03 00 04". But according to that responce, the node supports link protocol v3 and v4, not v1 and v2. Could you please explain that moment?
I think the versions listed in the descriptor are no longer considered. You should instead listen to the VERSIONS cell. I've opened https://bugs.torproject.org/13593 so we can fix the inconsistency.
That said, what relay is this? It seems weird that it would tell you that it supports link versions 4, 3, and 4.
--Roger
Thank you, now I know that Descriptor's field is obsolete :-)
Node info: name = xshells identity = +czI3CZ3wvWJREtPs5VrOd8b8Ts host = 178.217.187.39 orPort = 443 dirPort = 80 version = 0.2.5.8-rc flags = V2Dir Fast Valid Exit Stable HSDir Running Guard The data I sent: "00 00 07 00 02 00 03" Is it strange for node to support link v3 and link v4? By reading tor protocol specification I understnd it's OK. BTW, all the nodes I try responded with v3+v4 in VERSIONS cell.
2014-10-28 14:32 GMT+03:00 Roger Dingledine arma@mit.edu:
On Tue, Oct 28, 2014 at 02:19:17PM +0400, ???????????????? ?????????????????? wrote:
I'm trying to understand link protocol versions, but I have some
problems.
I requested descriptor from the root server and it contains line
"protocols
Link 1 2 Circuit 1". Then I connected to the node, sent VERSIONS cell and got a responce: "00 00 07 00 04 00 03 00 04". But according to that responce, the node supports link protocol v3 and v4, not v1 and v2. Could you please explain that moment?
I think the versions listed in the descriptor are no longer considered. You should instead listen to the VERSIONS cell. I've opened https://bugs.torproject.org/13593 so we can fix the inconsistency.
That said, what relay is this? It seems weird that it would tell you that it supports link versions 4, 3, and 4.
--Roger
tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
On Tue, Oct 28, 2014 at 07:32:09AM -0400, Roger Dingledine wrote:
Then I connected to the node, sent VERSIONS cell and got a responce: "00 00 07 00 04 00 03 00 04".
That said, what relay is this? It seems weird that it would tell you that it supports link versions 4, 3, and 4.
Ah ha. I was mis-reading your bytes from the wire.
It shows a circid of 0, a command of 7, a payload length of 4, and supported link versions of 3 and 4.
So I think all is good.
--Roger
Thank you :-) Will go further in the protocol!
2014-10-28 16:38 GMT+03:00 Roger Dingledine arma@mit.edu:
On Tue, Oct 28, 2014 at 07:32:09AM -0400, Roger Dingledine wrote:
Then I connected to the node, sent VERSIONS cell and got a responce: "00 00 07 00 04 00 03 00 04".
That said, what relay is this? It seems weird that it would tell you that it supports link versions 4, 3, and 4.
Ah ha. I was mis-reading your bytes from the wire.
It shows a circid of 0, a command of 7, a payload length of 4, and supported link versions of 3 and 4.
So I think all is good.
--Roger
tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev