Opened 9 years ago

Closed 5 years ago

#1338 closed defect (duplicate)

Implement+use V3Dir flag

Reported by: mikeperry Owned by: mikeperry
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: 0.2.1.25
Severity: Keywords: tor-client
Cc: mikeperry, Sebastian, nickm, BarkerJr Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by arma)

Right now clients are checking if dir_port != 0 for the weights in http://archives.seul.org/or/dev/Feb-2010/msg00009.html.
We should switch that to V3Dir, because if we make all relays support tunneleddircons without a dirport, we'll want
to make sure we still balance among those properly.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (14)

comment:1 Changed 9 years ago by Sebastian

Instead of V3Dir, if we make everyone a dir mirror a check for
dirport != 0 or version > x seems to be sufficient, no? I'd
like to get rid of the *Dir flags

comment:2 Changed 9 years ago by BarkerJr

Will making everyone a directory mirror put too much load on the authorities?

comment:3 Changed 9 years ago by mikeperry

I like Sebastian's idea from comment 1. We also need to update path-spec.txt to specify that this is when we use
the W*b and Wb* weights.

comment:4 Changed 9 years ago by arma

Description: modified (diff)
Milestone: Tor: post 0.2.2.x

I think the v2dir flag was a mistake. We just use the Tor version anyway in practice to decide whether it should be able to handle a given URL.

So I think making a v3dir flag would be even more of a mistake. What's next, v4dir?

It looks from comment 3 like Mike has this direction in mind. So Mike, what's left before we can close this trac?

comment:5 Changed 9 years ago by nickm

Why do we want to make everybody a directory mirror again? I think a "I-Am-A-Directory" flag is a fine alternative.

(The v2dir flag was a mistake, but this is not equivalent. V2Dir meant "my version is X"; an IsDir flag would mean "is a directory cache that answers begindir")

comment:6 Changed 9 years ago by nickm

Milestone: Tor: post 0.2.2.xTor: 0.2.3.x-final

comment:7 in reply to:  5 Changed 9 years ago by arma

Replying to nickm:

Why do we want to make everybody a directory mirror again?

We used to only separate the "is a directory mirror" functionality because you had to open a separate port, make port forwarding work, etc. Now you don't have to. The only reasons not to make everybody a dir mirror are that they would fetch, store, and serve more stuff. I don't think the overhead is bad.

To answer barkerjr's question, about half the relays are directory mirrors currently. The authorities can handle it.

Also, when we deploy the directory guard design, we'll want all guards to be directory mirrors.

I'll turn the question around: why not make everybody a dir mirror? It's cheap and now that you don't need a separate port for it, there's no extra thing the operator needs to do.

I think a "I-Am-A-Directory" flag is a fine alternative.

I wouldn't mind that in the meantime.

(The v2dir flag was a mistake, but this is not equivalent. V2Dir meant "my version is X"; an IsDir flag would mean "is a directory cache that answers begindir")

"this" in this case is a v3dir flag. I think a v3dir flag would be a mistake for the same reason the v2dir flag was a mistake. If somebody wants to make this trac ticket be about an IsDir flag, we should change the summary line.

comment:8 Changed 9 years ago by nickm

I'll turn the question around: why not make everybody a dir mirror? It's cheap and now that you don't need a separate port for it, there's no extra thing the operator needs to do.

In theory, the extra bandwidth. It means more fetching (since you must fetch more stuff more often), and more serving. If you're a low-bandwidth router, you might rather spend your time on traffic than on directory stuff.

But this may not matter; we should get numbers and do a proper proposal.

comment:9 in reply to:  8 Changed 8 years ago by arma

Replying to nickm:

I'll turn the question around: why not make everybody a dir mirror? It's cheap and now that you don't need a separate port for it, there's no extra thing the operator needs to do.

In theory, the extra bandwidth. It means more fetching (since you must fetch more stuff more often), and more serving. If you're a low-bandwidth router, you might rather spend your time on traffic than on directory stuff.

But this may not matter; we should get numbers and do a proper proposal.

I opened an analysis ticket at #3044.

comment:10 Changed 8 years ago by nickm

Milestone: Tor: 0.2.3.x-finalTor: unspecified

comment:11 Changed 7 years ago by nickm

This is basically proposal 185.

comment:12 Changed 7 years ago by nickm

Keywords: tor-client added

comment:13 Changed 7 years ago by nickm

Component: Tor ClientTor

comment:14 Changed 5 years ago by sysrqb

Cc: mikeperry,Sebastian,nickm,BarkerJrmikeperry, Sebastian, nickm, BarkerJr
Resolution: Noneduplicate
Status: newclosed

Marking dup of #12538. At this point we're planning on keeping the V2Dir flag, but clients will actually use it now. So, V2Dir is really "V2+Dir", but maybe this is confusing.

Note: See TracTickets for help on using tickets.