• Lagom

    Lagom (pronounced [ˈlɑ̀ːɡɔm]) is a Swedish word with no direct English equivalent, meaning "just the right amount". - Wikipedia

    If you're in Sweden and there's one word you should know, it would be 'lagom', a word that defines the essence of everything that is Swedish.

    More than two months into Stockholm and I must say it's been pretty lagom so far. The city itself is beautiful, with the only downside being that everything is at least twice as expensive as in Lisbon. Maybe that's what you get for everything around here being so perfect and systematic. And unlike Lisbon, you actually have easy access to a *large* collection of beers, which is definitely a plus.

    It's autumn here right now, and the scenery outside is fabulous. Sadly though, the weather in Sweden is not-so-lagom. Temperatures are already hovering around 5 degrees celsius, and for an Indian like me, this is pretty cold in itself (heck, it never gets lower than 20 in my town back home). The funny thing is, this weather is cute for the Swedes. Let's see how winter ends up looking like.

    Meanwhile, here are some pictures I took from Stockholm over the last two months.

  • Fourth Annual Workshop on NS-3, 2012

    We're organising the fourth annual Workshop on NS-3, to be held in conjunction with SIMUTools 2012. The workshop will be held on March 23rd, 2012, in Sirmione, Italy. Details regarding the important dates, submission guidelines, and the scope of the workshop is available on the WNS3 2012 site.

    The workshop serves as an annual gathering of ns-3 users and developers to share ideas, and brainstorm over future directions for the project. We're inviting conference style full paper submissions, which will be made available in the ACM and EU digital proceedings. Furthermore, we're also hosting an interactive session comprising of demos and posters. So start working on your papers and proposals as soon as possible! If you have any queries, feel free to contact the workshop chairs.

    Like previous editions of the workshop, we also plan to conduct a day long ns-3 developers' meeting around the same time. More details will be out soon. Keep an eye on our mailing lists and website to not miss any announcements.

    Important dates

    Papers submission deadline : December 2, 2011

    Notification of acceptance : January 20, 2012

    Camera-ready deadline : February 10, 2012

    Demos and posters proposal deadline : February 24, 2012

    Workshop in Sirmione : March 23, 2012

    Developers’ meeting : TBA

  • Comic: Deciphering Academic Presentations

    YANC 4: Deciphering academic presentations

  • How to extend ns-3 for your research

    Having been busy with coursework lately, I hadn't gone through our users' list in a while. Wading through a week's worth of posts today, it seems to me like a good deal of questions are from users who are trying to get started with extending ns-3. This is indeed quite expected; as a research tool, ns-3 is most useful only when built upon. These extensions usually take one of the following forms:

    1. a tweak to an existing protocol to make it simulate some specific scenario (try searching for "attacks" on our users list),
    2. adding some functionality X to an existing module, (for instance, RRC messages support for LTE)
    3. or writing an entirely new module from scratch.

    Before you do *anything* with ns-3, go through the tutorials first.

    Now, for cases 1 and 2 mentioned above, the *only* way to proceed is:

    1. Go through the literature about what you're trying to implement -- "What do I want to achieve?"
    2. Understand the scope and limitations of the ns-3 module you're trying to deal with (go through the model documentation at least) -- "Does ns-3 have the necessary base for me to build on top of?"
    3. If the answer to the above is "yes", then start reading through the respective module's code to figure out where you'll need to insert your modifications. -- "Where does my extension/tweak fit within the existing source code?"
    4. Implement.
    5. Profit.

    Case 3, on the other hand, requires a lot more work:

    1. Go through the literature about what you're trying to implement -- "What do I want to achieve?"
    2. Understand how your module would fit within ns-3. This is usually the tricky part. To this end, it's very important to understand how packets flow through a node within ns-3. This figure from our manual is usually the only thing you'll need to know to get started.
    3. At this point, I'll make things easier for myself and assume that you're going to implement something that fits into the above mentioned architecture (rather than trying to modify the architecture itself). The first step is as simple as deriving from the right class. This gives you the virtual methods you need to implement in order to maintain a particular component's semantics. So if you're trying to write a new application, derive from ns3::Application. If it's a new routing protocol, derive from ns3::Ipv4RoutingProtocol or ns3::Ipv6RoutingProtocol. If it's a new NetDevice, derive from ns3::NetDevice. The easiest thing to do is to find another example of the component type you're trying to develop and reflect its basic structure.
    4. Now to get started writing your new module, have a look at Gustavo Carnerio's create-module.py script (inside src/)  which generates a skeleton for your new module. This includes the necessary sub-folders for the module, and also the all important wscript file. For most use cases, it would suffice to peek into some other module's wscript file to get an idea of what to do. If you're going to need some fancy external libraries, you'll need to go through the waf documentation a bit. Look into src/click/wscript to get an idea of how to do external linking.
    5. Now once you start developing your new simulation model, you'll need to attach this object to a node to get it to do something. This mode of attachment varies from component to component. Some objects are 'aggregated' to the node, some are added to a list of similar components (like applications being added to a node's 'ApplicationList') and so forth. The best places to look in order to understand this are the helpers for each module. So for instance, if you want to figure out how to add your routing protocol to a node, look at src/olsr/helper/ to get an idea.
    6. Lastly, you'll need to write simulation scripts to see your module in action. Copying off and editing existing example scripts from the examples/ folder or the src/*/examples/ folders should suffice for most cases.
    7. If you're going to propose this new module for merge, look at our contributing code page. Keep in mind that we won't merge code which doesn't have any documentation, or tests (validation or unit tests, as is applicable).
    8. Merge. :)
  • Comic: Seals

    3. YANC - Seals