Chapter One
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Syllabus topic Module 1 and Module 2, with MU's assessment rules for a 2-credit practical course: "Certified Journal is compulsory for appearing at the time of Practical Exam", "Minimum 80% practical are required to be completed.", "Mid - Term Practical Examination 15 marks", "Final Journal: 5 marks".
Aim
To know, before building a single sensor network, exactly how this paper is marked, what the journal must contain, what the two hours in the examination hall hold, and which laboratory each half of the paper is done in.
Why this chapter comes first
Every later chapter teaches you to do something. This one tells you what the marks are for.
Marks are lost on this paper by students whose programs work, because two of MU's rules are about the journal and one of them decides whether you may sit the examination at all. And this paper has a feature most practical papers do not: its two modules are done in two different laboratories, one a sensor-network operating system and its simulator, the other a network simulator. A student who is fluent in one and a stranger to the other has prepared for half an examination.
Where this paper sits in your semester
This is the practical paper of a Major Elective. MU's credit structure for Semester V prints it as MJELP2: Wireless & Sensor Networks Practical, 2 credits, and prints its theory paper beside it as MJEL2: Wireless & Sensor Networks, also 2 credits. The elective carries four credits in all, two for the theory paper and two for this practical, and the pair stands opposite the other pair on offer, Software Testing and Quality Assurance and its practical.
So the theory paper and this one are chosen together. The theory paper explains why sensor networks, ad hoc routing and MAC protocols are built the way they are. This paper makes you build, run and measure them. Each chapter here recalls the theory its exercise needs, and no more.
The paper in one table
| Marks | ||
|---|---|---|
| Internal | Mid-term practical examination | 15 |
| Internal | Final journal | 5 |
| External | Q.1, a practical question on Module 1 | 15 |
| External | Q.2, a practical question on Module 2 | 15 |
| Total | 50 |
The external examination lasts two hours and carries 30 of the 50 marks. The other 20 are internal, and they are settled before you walk into the hall.
The paper is 2 credits. MU counts one practical credit as 30 hours of laboratory work, so the paper has 60 hours, thirty for each module.
The two rules that can stop you sitting the paper
"Certified Journal is compulsory for appearing at the time of Practical Exam." Those are MU's words. A journal becomes certified when your subject teacher has checked it and signed it. Arrive on the day of the practical examination without a certified journal and no program you can write will fix the problem.
"Minimum 80% practical are required to be completed." MU prints twenty practicals, ten in each module. Eighty per cent of twenty is sixteen. At least sixteen of the twenty must be done, written up and signed.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Sixteen is the floor, not the plan. The external paper sets one question on Module 1 and one on Module 2, and nobody knows in advance which of the ten each will be drawn from. A student who skipped four practicals skipped four of the twenty things the examiner chooses from. Do all twenty.
What "completed" means for one practical
A practical is complete when your journal carries all of this for it:
- The practical number and its title, in MU's own words.
- Aim. A line or two saying what the exercise is for.
- Theory. What you need to know to do it, kept short: this is a practical journal, not a theory answer.
- Procedure. The steps, numbered.
- The program. For a Module 1 practical that means every file: the nesC configuration, the nesC module, the Makefile and the Python script that drives the simulation. For a Module 2 practical it means the Tcl script and the awk script that reads its trace, or the program itself.
- The output, exactly as the machine produced it.
- Observations. The table of what was measured. This is the part most students leave out and the part an examiner reads first.
- Result. One or two lines saying what the run showed.
- The date and your teacher's signature.
Every chapter of this book ends with a section called For the journal listing what that practical's write-up has to contain, in that order.
The two laboratories
MU names the tools in the paper's own description: "Using tools such as TinyOS, nesC, TOSSIM, and network simulators". This book uses exactly those, and runs every one of them.
Module 1 is done in TinyOS. TinyOS is an operating system for the tiny battery-powered computers called motes. Its programs are written in nesC, a dialect of C built for it, and TOSSIM is its simulator: the same nesC program is compiled to run on your PC, with as many simulated motes as you like and a simulated radio between them. You need no hardware. The next chapter sets the laboratory up from nothing on Ubuntu 22.04.
Module 2 is done in NS-2, the network simulator. You describe a network in a Tcl script (the nodes, how they move, the routing protocol, the MAC protocol and the traffic), NS-2 runs it and writes a trace file recording every packet, and you measure the network by reading that file, usually with awk. NAM, the network animator, plays the trace back as an animation. Chapter thirteen sets it up. Three Module 2 exercises also need a short Python program, and the last needs a small real network, both of which run on the same Ubuntu.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
Every program in this book was run on Ubuntu 22.04, and every output printed beside a program is what the machine produced. Where your own output differs, the chapter says what may differ and why.
The two-hour paper: how to spend the time
Two hours, two questions, fifteen marks each: an hour a question. The two questions come from the two laboratories, so the hour for Q.1 is spent in nesC and TOSSIM and the hour for Q.2 in Tcl and a trace file.
A working plan, not a rule of MU's:
| Minutes | What you are doing |
|---|---|
| 0 to 5 | Read both questions. Decide which one you are surer of. |
| 5 to 12 | Write the aim, the theory and the procedure for that question. |
| 12 to 45 | Type the program, build it, run it, fix it, and get output. |
| 45 to 55 | Write the output and the observation table into the answer. |
| 55 to 110 | The same for the other question. |
| 110 to 120 | Check both: output written down, table filled, result stated. |
Start with the question you are surer of. One practical that runs and is written up completely is worth more than two that are half done.
Type the short files first. A TinyOS application is two nesC files, a Makefile and a Python script, and the Makefile and the configuration are a few lines each. An NS-2 answer is one Tcl script whose first thirty lines are the same in every wireless simulation. Chapters two and thirteen give you those skeletons; know them well enough to type them without looking.
Never leave the output blank. If the build fails, copy the first error line the machine printed, say in one sentence what you think it means, and show what you changed. An honest error with a diagnosis reads far better than an empty page.
What the examiner is actually looking at
The examiner has fifteen marks to give for one practical question. A fair division, and the one this book is written to satisfy:
| Part | Weight |
|---|---|
| The program is correct and runs | high |
| The output is present and matches the program | high |
| The observation table and what it shows | medium |
| Aim, theory and procedure written out | medium |
| You can explain what your own program did | medium |
The last line is not a separate viva in this paper. MU's pattern for a 2-credit practical under this scheme prints no viva component: the whole fifteen marks belong to the practical question. But an examiner standing at your machine will ask about what is on the screen, and your answer is part of how the fifteen marks are decided. So every chapter ends with Questions you must be able to answer, which are the questions asked at a machine: what does this line do, why did you choose this value, what happens if I change it.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
A warning about copying
Twenty students, one laboratory, the same twenty practicals. It is obvious to an examiner when four journals carry the same nesC module with the same variable names and the same comment in the same place, and it is just as obvious when the student in front of them cannot say what a line of it does.
Type the programs. Run them. Break one on purpose and read the error. That is what makes the questions at the machine easy, and nothing else prepares you for this paper as well.
The shape of every chapter after this one
The book follows MU's printed order: this chapter, the TinyOS laboratory, Practicals 1 to 10, the NS-2 laboratory, Practicals 11 to 20, and a last chapter on the examination itself. Every practical chapter is laid out the same way, so that you can read it straight into your journal:
- Aim. MU's own words for the exercise.
- What you need to know before you start. The theory, cut to what the exercise needs.
- The steps, each with its program and its real output.
- Procedure. The steps again as a numbered list, for the journal.
- Observations, filled in from the run.
- Result. What the run showed.
- Where marks are lost. The mistakes that actually cost marks in that exercise.
- For the journal. What to write.
- Quick revision. A few lines for the day before.
- Questions you must be able to answer.
Result
The assessment of this paper was recorded from MU's print: 20 internal marks, made up of a mid-term practical examination for 15 and the final journal for 5; a Semester End Practical Examination of two hours for 30 marks, with one practical question on each module for 15 marks each; a certified journal compulsory for appearing; and at least sixteen of the twenty practicals completed. The paper is MJELP2, chosen together with its theory paper MJEL2, and its two modules are done in TinyOS with TOSSIM and in NS-2.
Where marks are lost
An uncertified journal. Get each practical signed in the week you do it, not in the week before the examination.
Fewer than sixteen practicals. Count them. Twenty minus four is the line, and it is a hard line.
A Module 1 answer with one file missing. A TinyOS application does not build without its configuration, its module and its Makefile, and it does not run without the Python script. Write all four.
How This Practical Is Examined: the Journal, the 80 Per Cent Rule and the Two-Hour Paper
No observation table. Most of the Module 2 exercises ask you to measure or compare: throughput, delivery ratio, delay, overhead, energy, coverage. A simulation that runs but measures nothing has done half the exercise.
Output not in the journal. The program is not the practical. The program, its output and what you concluded from the output are the practical.
Ninety minutes on one question. Half the paper is in the other laboratory.
For the journal
This chapter is not one of the twenty practicals and does not go into the journal. Use it for the index page of your practical file: list the twenty practicals in MU's order, tick each one when it is signed, and count the ticks.
Quick revision
- Paper MJELP2, 2 credits, 60 hours, 50 marks, chosen with its theory paper MJEL2.
- Internal 20: mid-term practical examination 15, final journal 5.
- External 30: two hours, Q.1 on Module 1 for 15, Q.2 on Module 2 for 15.
- A certified journal is compulsory for appearing at the practical examination.
- At least 80 per cent of the practicals completed: sixteen of twenty.
- Module 1 is TinyOS, nesC and TOSSIM. Module 2 is NS-2, with NAM and awk.
- No separate viva marks are printed for this paper.
- Every write-up: aim, theory, procedure, program, output, observations, result, signature.
Questions you must be able to answer
1. How many marks is this paper out of, and how are they split? Fifty. Twenty internal, made up of a mid-term practical examination for 15 and the final journal for 5, and thirty external in a two-hour practical examination.
2. What is in the two-hour examination? Two practical questions, one on Module 1 and one on Module 2, fifteen marks each.
3. How many practicals must be completed? At least eighty per cent of the twenty MU prints, which is sixteen.
4. What happens if your journal is not certified? MU's rule is that a certified journal is compulsory for appearing at the practical examination.
5. Which tools does each module use? Module 1 uses TinyOS, its language nesC and its simulator TOSSIM. Module 2 uses a network simulator, NS-2 in this book, with NAM to animate its trace and awk to measure it.
6. Which theory paper goes with this practical? Wireless & Sensor Networks, MJEL2. The two are chosen together as the four credits of the Semester V elective.
7. Is there a viva? No separate viva marks are printed for this paper. The whole fifteen marks of each question belong to the practical, and the questions an examiner asks at your machine are part of how those marks are decided.
8. Your TinyOS build fails with ten minutes left. What do you write? The aim, the theory, every file as far as you have it, the first error line the build printed, and one sentence saying what you think it means. Never an empty output.