gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] forwarding of p2p queries


From: Glenn McGrath
Subject: Re: [GNUnet-developers] forwarding of p2p queries
Date: Wed, 30 Apr 2003 17:22:21 +1000

On Tue, 29 Apr 2003 13:03:10 -0500
Christian Grothoff <address@hidden> wrote:

> Check where the counteres are incremented. One thing may be that the
> p2p queries sent counter is incremented by one regardless of how many
> peers will be targeted (that would explain (most of) the difference:
> one query send to two recipients). Also, if you are not exclusively
> looking at search queries, super-queries may be only counted once at
> the sender but up to 25 times at the receiver -- again, depending on
> where the stats-calls are.
> 
Apr 29 21:37:00 DEBUG: I am 800E1FCC08BE085C6591DC7356C4D3554E0AE748
...
Apr 29 21:52:33 DEBUG: received query for
605F37291E7891A058C3D03EF55DC3F2D4C020BB with ttl 24012
Apr 29 21:52:33 INFO: received 1-query
605F37291E7891A058C3D03EF55DC3F2D4C020BB with ttl 9878 and priority 0
Apr 29 21:52:33 INFO: REPLACE and reset SEEN: existing query expired and
older than new query (0, 649834356)
Apr 29 21:52:33 EVERYTHING: selecting from active nodes
12FF39EA4455680D00AAB6CD5EAE05A957705948 as rand(1)*3 > rand(1)
Apr 29 21:52:33 EVERYTHING: selecting from active nodes
EB8CB3D9B09FB0FE1F632672C665A6B4C06857F9 as rand(1)*3 > rand(1)
Apr 29 21:52:33 EVERYTHING: selecting at random from active nodes
12FF39EA4455680D00AAB6CD5EAE05A957705948 using rand(1657)*3 > rand(2022)
Apr 29 21:52:33 EVERYTHING: node selected for forwarding from random
set: 12FF39EA4455680D00AAB6CD5EAE05A957705948
Apr 29 21:52:33 EVERYTHING: selecting at random from active nodes
EB8CB3D9B09FB0FE1F632672C665A6B4C06857F9 using rand(365)*3 > rand(2022)
Apr 29 21:52:33 EVERYTHING: node selected for forwarding from random
set: EB8CB3D9B09FB0FE1F632672C665A6B4C06857F9
Apr 29 21:52:33 EVERYTHING: queueing query in buffer of selected node
12FF39EA4455680D00AAB6CD5EAE05A957705948
Apr 29 21:52:33 EVERYTHING: queueing query in buffer of selected node
EB8CB3D9B09FB0FE1F632672C665A6B4C06857F9
Apr 29 21:52:33 DEBUG: slots free in routing table, forwarded 1 out of 1
queries

The 2nd and 3rd last log lines show its been forwarded to 2 other nodes,
however the last line shows its only incrementing it by 1.

I tried returning qr->sendCount back from forwardQuery() of queryManager.c
and incrementing stat_p2p_query_out in execQuery() from route.c, but its
not working... giving up in frustration for now.


Glenn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]