[Ns-bugs] [Bug 627] New: Jakes Propagation Loss Model doesn't properly calculate signal loss

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Jul 7 13:25:56 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=627

           Summary: Jakes Propagation Loss Model doesn't properly calculate
                    signal loss
           Product: ns-3
           Version: ns-3-dev
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P5
         Component: wifi
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: bosawt at gmail.com
   Estimated Hours: 0.0


Created an attachment (id=517)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=517)
simple script to set up a wifi model and print if packets are received

I'm using a simple point to point wifi setup, with a jakes propagation loss
model between two nodes.  It seems that regardless of the settings I put into
the loss model, the received signal is always either 'nan' or 0.  I have
attached a sample script to show this behavior (logging via the terminal should
be turned on).

I have also found that in the source code for the propagation loss model, if
you add this print statement to the constructor:

        JakesPropagationLossModel::JakesPropagationLossModel ()
        {
                DoConstruct (); 
                printf("osc: %d, ray: %d\n",m_nOscillators,m_nRays);
        }

Both these values won't necessarily be what they should be.  (For me it says
m_nOscillators is 0, and m_nRays is 3, although rays should be 1 and
oscillators should be 4)  Also, in jakes-propagation-loss-model.h (lines
127-128), if the declaration of these two variables are switched.  So instead
of:

                        uint8_t m_nRays;        
                        uint8_t m_nOscillators;         

they are switched to this:

                        uint8_t m_nOscillators; 
                        uint8_t m_nRays;        

Then the print statement will switch the values of the variables (so for me
m_nOscillators is 3 and m_nRays is 0).


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list