Changeset 5735 for source/ariba/overlay


Ignore:
Timestamp:
Aug 6, 2009, 11:01:21 AM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba/overlay/modules/chord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/modules/chord/Chord.cpp

    r5732 r5735  
    121121                dmsg.setSourceEndpoint(&baseoverlay.getEndpointDescriptor());
    122122                dmsg.setFollowType(Discovery::successor);
    123                 dmsg.setTTL((uint8_t)2);
     123                dmsg.setTTL((uint8_t)3);
    124124                cmsg.encapsulate(&dmsg);
    125125                send(&cmsg, lnk);
     
    131131                dmsg.setSourceEndpoint(&baseoverlay.getEndpointDescriptor());
    132132                dmsg.setFollowType(Discovery::predecessor);
    133                 dmsg.setTTL((uint8_t)2);
     133                dmsg.setTTL((uint8_t)3);
    134134                cmsg.encapsulate(&dmsg);
    135135                send(&cmsg, lnk);
     
    428428void Chord::eventFunction() {
    429429        stabilize_counter++;
    430         if (stabilize_counter < 0 || stabilize_counter == 3) {
     430        if (stabilize_counter < 0 || stabilize_counter == 2) {
    431431
    432432                // reset counter
  • source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp

    r5673 r5735  
    167167public:
    168168        /// constructs the reactive chord routing table
    169         explicit chord_routing_table( const nodeid_t& id, int redundancy = 2 ) :
     169        explicit chord_routing_table( const nodeid_t& id, int redundancy = 4 ) :
    170170                id(id), succ( redundancy, succ_compare_type(this->id), *this ),
    171171                pred( redundancy, pred_compare_type(this->id), *this ) {
Note: See TracChangeset for help on using the changeset viewer.