Re: [Cse461] Emulator works but simulator hangs

From: Janet Davis (jlnd_at_cs.washington.edu)
Date: Wed Feb 04 2004 - 12:27:41 PST

  • Next message: Janet Davis: "Re: [Cse461] Class fishnet"

    On Tue, 3 Feb 2004, Jeff Tyrrill wrote:

    > We have our project working in the emulator including on the class trawler,
    > but in the simulator, there is a problem. We specify the number of nodes and
    > a topology file, and it starts, and some of the nodes see each other as
    > neighbors, but everything sort of freezes after that. Apparently, timers
    > never get called. Also, CPU usage goes up to maximum. We can enter commands
    > and the code for our onCommand runs, but it's not much use because neighbor
    > discovery and link state packets don't get sent.
    >
    > Are there some things we should check? Does this just indicate a problem in
    > our code? Again, everything works perfectly in emulation mode, so we're not
    > sure what to check for.

    I'm honestly not sure. Here are some things you might look at:

    - Are you calling addTimer in the node constructor or in start()?

    - If you hit ^C, what is the stack trace? Is it possible you are
    forwarding a packet you received from yourself?

    - What's your OS, ruby version, etc?

    Has anyone else seen a similar problem?

    (By the way, you are welcome to use the emulator for the turn-in output.)

    Cheers,
    Janet

    -- 
    Janet Davis
    jlnd_at_cs.washington.edu
    http://www.cs.washington.edu/homes/jlnd/
    _______________________________________________
    Cse461 mailing list
    Cse461_at_cs.washington.edu
    http://mailman.cs.washington.edu/mailman/listinfo/cse461
    

  • Next message: Janet Davis: "Re: [Cse461] Class fishnet"

    This archive was generated by hypermail 2.1.6 : Wed Feb 04 2004 - 12:28:11 PST