Fixed stupid bug when printing QSORT ADD BEST.
Signed-off-by: Stefano Traverso <firstname.lastname@example.org>
1) Fixed qsort for topo_add_best and topo_keep_best;2) Added capability to specify metrics for ranking (RTT, BW and RTT*BW for topo_add_best and RXCHUNKS and PACKET_LOSS for topo_keep_best).
TODO: get_capacity_of(a) funtion is faulty....
1) peers update their neighbourood when: a - they receive an explicit "add/remove peer to neighbours" message; b - when they see it's time to (when UPDATE_PEERS_TIMEOUT expires);2) when a gossiping message is received, newscast cache is updated, but NO...
BLACKLIST IMPLEMENTATION: Compiling checkpoint!
Added --topo_black_list option to streamer.c.
Added blacklisting features to topology manager.
When removing a peer from neighbourood, add it to blacklist if it wasa bad neighbour.
Remove peer from neighborood when timeout expires.
OFFER THREADS IMPLEMENTATION:
Modified metadata to follow offer threads policy.
Merge branch 'fixes-polito'
topology: add peer only if it wasn't in the peerset yet
topology: remove unused define
added topo_keep_best and topo_add_best options
topology: fix calculation of random_size
topology: fix max_ids calculation in case of topo_in
fix: getting rid of size_t and related signedness problems
topology: fixing --topo_in behaviour
topology: just some better messages
topology: restoring original default behaviour of out-neigh selection
topology: making control variables for neighbourhood directionality
topology: refactoring add_peer/remove_peer code
add streamer topology messages
topology: fix call to bind_msg_types
toplogy: improved debug info
topology: change logic to keep "topo_mem" portion of peers between irerations
default is topo_mem=0, i.e. the old way
topology: add MAX macro
topology: fix remove code
should have worked also before, but it was operating in a largerset than needed
factoring nodeid_set operation into separate file
topology: print some timestamps
changing default neighbour activity timeout to 20 sec
topology: changing default neighbourhood target size to 30
topology: fixed a printf
topology: improving debug message and fixing some fprintf compile warnings on 32bit
topology: fix: adding parenthesis around MIN macro
topology: fix: inverting alpha (again)
it was inverted during the rewrite of the desired algorithm
topology: fix problem with adding random nodes
size value was not initialized
topology: more debug messages
adding desired_bw parameter to define BW threshold in topology selection
topology: gossiping capacity
requires change of struct peer in GRAPES as well
topology: fix: changing metadata to packed
topology: use nodeid_equal instead of just "=="
topology: better debug messages
topology: fix some size parameters in the update algorithm
topology: fix nidset_add to work as set add should
topology: change code to add only the necessary ones
topology: some more debug output
topology: remove inactive peers at every call
topology: remove commented code
topology: fixing const in nideset_ functions
topology: fix the calculation of the new size when TARGET_SIZE is set to 0
topology: fix get_rtt_of
was not working, always giving NAN!
topology: the new "desired" based selection logic
topology: splitting is_desired in two
topology: defining the MIN macro
topology: a bunch of nodeidset manipulation functions
topology: revert alpha (now 0 means max RTT awareness)
gossip chunks_per_sec (offers_per_sec)
fix some compile warnings
topology: fix use of get_rtt in case there is no MONL
some topology debug
change defaul desired rtt to 200ms
try to keep a target ratio of desired peers
turning on bmap timout with 10sec
adding recv_delay to matadata
changing cb_size to fixed 16bit
do not add nodeIDs to topo if known indirectly
we do not know metadata for these nodes, which could create problems.Besides, peers should start gossiping their own data, and should not startgossiping threads for others.
adding cb_size to metadata
changing metadata to a structure
Merge branch 'win' into merge-wine-0.9.9
moving Windows specific defintion of timeradd to a separate header
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/Streamer@2527 c54fac2e-1815-407e-9b96-088d06743913
Merge remote branch 'svn/branches/Streamer/winestreamer-0.9' into merge-wine
Conflicts: Chunkiser/input-stream-avs.c streamer.c streaming.c topology.c
remove dependence on mathlib from topology module
fix: don't call tmanChangeMetadata if TMAN is not yet active
Merge branch 'reply-non-neighbour' into back-offer
change interface of send_bmap from peer* to nodeid*
remove warning about unknown peer
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/branches/winestreamer-0.9/Applications/OfferStreamer@2259 c54fac2e-1815-407e-9b96-088d06743913
write more explicit message when adding peer based on incoming messages
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/branches/winestreamer-0.9/Applications/OfferStreamer@2258 c54fac2e-1815-407e-9b96-088d06743913
remove some debug messages
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/branches/winestreamer-0.9/Applications/OfferStreamer@2255 c54fac2e-1815-407e-9b96-088d06743913
r2142 has been selected as the baseline for release 0.9.x
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/branches/winestreamer-0.9/Applications/OfferStreamer@2232 c54fac2e-1815-407e-9b96-088d06743913
Merge branch '2010_streamers_paper' into back-offer
more frequent logging of neighbourhood size
rotate neighbourhood when new peers arrive in a topo message
change neighbourhood only when topo message arrived
update_peers could also be called with null parameters as a heartbeat.we don't want to update the peerset on these.
we don't need metadata updates now
Revert "OfferStreamer/topology.c : re-enabling tman"
This reverts commit 553821b16729fc6c2d121fde31f72d72d1666c55.
turn off bmap based removal from neighborhood
Merge branches 'fixes2', 'protocol', 'sched', 'topo-config' and 'measures' into 2010_streamers_paper
set neighbourhood target size (-M)
remove a debug message
add way to disable bmap_timeout based deletion of peers
OfferStreamer/topology.c : fixing memleak
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2140 c54fac2e-1815-407e-9b96-088d06743913
OfferStreamer/topology.c : re-enabling tman
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2129 c54fac2e-1815-407e-9b96-088d06743913
OfferStreamer/topology.c : blacklist peers in ncast/tman after bmap timeout
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2126 c54fac2e-1815-407e-9b96-088d06743913
TopologyManager/topocache.c : updating metadata in cache_add_ranked also for ncast entries
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2096 c54fac2e-1815-407e-9b96-088d06743913
less frequent tman logging
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2036 c54fac2e-1815-407e-9b96-088d06743913
control tman logging period with a define
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2035 c54fac2e-1815-407e-9b96-088d06743913
turning off tman temporarily
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2034 c54fac2e-1815-407e-9b96-088d06743913
OfferStreamer/topology.c : stetting a max peerset size to 20
git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/Applications/OfferStreamer@2024 c54fac2e-1815-407e-9b96-088d06743913