aarizaq / Oversim-20121206

Oversim 20121206. for inetmanet-2.0
1 stars 2 forks source link

low success ratio when this fork of oversim used with inetmanet-2.0 #2

Closed mohammad-almojamed closed 10 years ago

mohammad-almojamed commented 10 years ago

Hi, i am working on oversim with inetmanet. whenever i run a simulation of any protocol with simple underlay or inet underlay it gives a bad performance. for example simulating Chord simple or inet underlay with no churn gives 32% success ratio. where running the same simulation with the same parametres on the normal oversim with inet gives 100% success ratio. i copied the ( defult.ini, and omnetpp.ini from the orginal oversim to oversim with inetmanet but no luck to get better performance.

your help is appreciated. M

mohammad-almojamed commented 10 years ago

Hi, i think the problem is with the BaseOverlay.cc. this class did not fetch the parameter " overlayId" which result in having different values for overlayId and creating new Chord ring each time a new node is added to the network during initialization ( Chord::changeState). and the node is then treated as a bootstrap node. so after adding the following line when i run chord simulation with no churn i get 100% success ratio. overlayId = par ("overlayId"); in function BaseOverlay::initialize(int stage) when the stage is MIN_STAGE_OVERLAY.

Am I right?

M

aarizaq commented 10 years ago

i will check, but have sense

Date: Wed, 1 Jan 2014 07:33:17 -0800 From: notifications@github.com To: Oversim-20121206@noreply.github.com Subject: Re: [Oversim-20121206] low success ratio when this fork of oversim used with inetmanet-2.0 (#2)

Hi,

i think the problem is with the BaseOverlay.cc. this class did not fetch the parameter " overlayId"

which result in having different values for overlayId and creating new Chord ring each time a new node is added to the network during initialization ( Chord::changeState). and the node is then treated as a bootstrap node.

so after adding the following line when i run chord simulation with no churn i get 100% success ratio.

    overlayId = par ("overlayId");

in function BaseOverlay::initialize(int stage) when the stage is MIN_STAGE_OVERLAY.

Am I right?

M

— Reply to this email directly or view it on GitHub.

aarizaq commented 10 years ago

I have uploaded your suggestion, it is true that the overlayId was not initialized, in this condition the initial value is a random value

mohammad-almojamed commented 10 years ago

many thanks