1.2 Operating system and ppt

 Overview of Wireless Sensor Network Operating Systems, Examples of WSN Operating Systems

OS for WSN

Designing an operating system (OS) tailored for Wireless Sensor Networks (WSNs) involves addressing several unique challenges and considerations due to the constrained resources and diverse applications of sensor nodes. Here are some key points to keep in mind:

  1. Process Management and Scheduling:

    • Traditional OSs allocate separate memory spaces for each process, which may not be energy-efficient for WSNs.
    • Real-time scheduling algorithms like Earliest Deadline First (EDF) may be suitable for some applications, but the number of processes should be limited to avoid complexity.
  2. Memory Management:

    • Traditional OSs allocate memory exclusively for each process, but in WSNs with limited memory, a shared memory approach can reduce memory requirements.
  3. Kernel Model:

    • WSN OSs often use event-driven or Finite State Machine (FSM) models for the kernel.
    • The event-driven model aligns well with the nature of WSNs, where events like packet reception, transmission, and energy depletion are crucial.
    • FSM-based models facilitate concurrency, reactivity, and synchronization in WSN applications.
  4. Application Program Interface (API):

    • WSN OSs should provide modular and general APIs to enable applications to access underlying hardware functionalities.
    • These APIs should be designed to be efficient and optimized for resource-constrained environments.
  5. Code Upgrade and Reprogramming:

    • Sensor nodes may require adjustments to their behavior or algorithms for functionality or energy conservation.
    • The OS should support reprogramming and code upgrades to accommodate changes in node behavior or application requirements.
  6. File System:

    • Since sensor nodes typically lack external storage like disks, WSN OSs cannot rely on traditional file systems.
    • Alternative mechanisms for data storage and management, such as in-memory storage or flash memory, may be used.



DESIGN REQUIREMETS OF OS-WSN

Designing a Sensor Operating System (SOS) for Wireless Sensor Networks (WSNs) involves incorporating specific functions tailored to the limited resources and unique requirements of sensor nodes. Here are the key functions an SOS should embody:

  1. Compactness:

    • The SOS should be compact and small in size to accommodate the limited memory of sensor nodes, which typically have only tens or hundreds of kilobytes of memory.
    • Minimizing the size of the OS reduces memory overhead and allows more space for application-specific functionalities.
  2. Real-time Support:

    • Since WSNs often involve real-time applications, especially when actuators are involved, the SOS should provide support for real-time data collection and reporting.
    • It should prioritize the collection and transmission of data to minimize latency and ensure that information remains timely and relevant.
  3. Efficient Resource Management:

    • The SOS should implement efficient resource management mechanisms to allocate CPU time and limited memory effectively.
    • Careful scheduling and allocation of CPU time and memory are necessary to ensure fairness among processes and prioritize critical tasks, if required.
  4. Reliable and Efficient Code Distribution:

    • The SOS should support reliable and efficient code distribution mechanisms, as the functionality of sensor nodes may need to be updated or changed after deployment.
    • Code distribution should minimize the use of wireless bandwidth while ensuring that WSNs continue to operate normally during updates or changes.
  5. Power Management:

    • Power management is crucial for extending the system lifetime and improving performance in WSNs.
    • The SOS should implement power-saving features such as sleep modes, where processes are suspended during idle periods and awakened upon receiving an event or hardware interrupt.
  6. Generic Programming Interface:

    • The SOS should provide a generic programming interface that allows sensor middleware or application software to access and control hardware directly.
    • This interface enables optimization of system performance by providing low-level access to hardware functionalities.

Examples
  1. TinyOS:

    • TinyOS is a microthreaded OS designed for WSNs with limited resources.
    • It utilizes an event-based model to support concurrent operations efficiently.
    • Components in TinyOS consist of command handlers, event handlers, fixed-size frames, and tasks.
    • TinyOS emphasizes modularity and efficiency, achieving high throughput and low memory overhead.
    • salient features:
    • Designed for Low-Power Devices: TinyOS is made for devices with limited resources and low power requirements, like those used in wireless sensor networks.

    • Event-Driven: It operates on an event-driven model, where actions are triggered by events rather than following a sequential program flow.

    • Modular Design: Applications are built from reusable components called "modules," making code more modular and easier to manage.

    • Efficient Concurrency: It supports lightweight tasks that execute in response to events, helping manage resources effectively.

    • Static Configuration: System behavior is set at compile time, reducing runtime overhead and memory usage.

    • Optimized for Low Power: It includes features to conserve energy, crucial for battery-operated devices.

    • Built-In Components: Comes with pre-built components for common tasks like communication and sensor interaction.

    • Supports Network Protocols: Includes support for various network protocols used in wireless sensor networks.

    • Active Community: Benefits from a community of developers who contribute to its development and provide support.

  2. Mate:

    • Mate operates on top of TinyOS and serves as a byte-code interpreter.
    • It aims to simplify programming for WSNs and provides an execution environment.
    • Mate implements capsule-based programming, where capsules deploy themselves into the network, enabling easy code distribution and reconfiguration.
  3. MagnetOS:

    • MagnetOS focuses on application adaptation and energy conservation in WSNs.
    • It provides a single system image (SSI) architecture and supports dynamic adaptation mechanisms.
    • MagnetOS offers power-aware algorithms for efficient object placement and migration, aiming to extend network lifetime while optimizing resource utilization.
  4. MANTIS:

    • MANTIS is a multithreaded embedded OS designed for flexible deployment of applications in WSNs.
    • It follows a layered structure with standard programming language support.
    • MANTIS features a priority-based scheduler, a lightweight network protocol stack, and support for dynamic binary updates and remote management.
  5. OSPM (Dynamic Power Management):

    • OSPM focuses on power management techniques in WSNs, employing a greedy algorithm for dynamic power management.
    • It considers factors like transition overhead and wake-up time to optimize energy savings.
    • OSPM aims to strike a balance between energy conservation and the cost of delay in WSN operations.
  6. EYES OS:

    • EYES OS is an event-driven OS for WSNs with a focus on small memory footprint, power awareness, and code distribution.
    • It employs a task mechanism and provides APIs for local and network components.
    • EYES OS features an efficient code distribution mechanism for updating software modules and operating system components.
  7. SenOS:

    • SenOS is a finite state machine (FSM)-based OS for WSNs, offering support for concurrency and reconfiguration.
    • It consists of a kernel, state transition tables, and callback functions, enabling flexible application development and network management.
  8. EMERALDS:

    • EMERALDS is an extensible microkernel designed for embedded, real-time distributed systems.
    • It supports multi-threaded processes, memory protection, and interprocessor communication (IPC) using message passing and shared memory.
    • EMERALDS prioritizes resource efficiency and scalability for slow processors and limited memory environments.
  9. PicOS:

    • PicOS is tailored for microcontrollers with limited on-chip RAM and emphasizes minimal memory allocation.
    • Tasks in PicOS share a global stack and operate as coroutines with event-triggered state transitions.
    • PicOS is suitable for reactive applications that prioritize event handling over data processing.

Ad-hoc

An ad hoc network is a decentralized type of wireless network. It is characterized by the absence of any established infrastructure or centralized control, meaning that devices communicate directly with each other without the need for a fixed base station or access point. Instead, each device in the network acts both as a host and as a router, forwarding data packets to other devices within the network.

Key features of ad hoc networks include:

  1. Decentralization: Ad hoc networks operate without a central control point or fixed infrastructure. Each device in the network can function as both a client and a router, facilitating communication among all devices.

  2. Dynamic Topology: The network topology in an ad hoc network can change rapidly and unpredictably as devices join or leave the network or move within the coverage area. This dynamic nature makes ad hoc networks suitable for scenarios where a fixed infrastructure is impractical or unavailable, such as military battlefield communications or emergency response situations.

  3. Self-Organization: Ad hoc networks typically employ self-organizing protocols that enable devices to automatically discover and connect to nearby devices, form network links, and establish communication paths without manual intervention.

  4. Limited Range: The communication range of individual devices in an ad hoc network is typically limited, meaning that devices must be within close proximity to establish direct communication links. However, data can be relayed through intermediate devices to reach more distant destinations.

  5. Scalability: Ad hoc networks can be easily scaled by adding or removing devices, as each device contributes to the network's routing and forwarding capabilities.

Ad hoc networks are commonly used in various applications, including military and emergency response operations, mobile and vehicular communication systems, sensor networks, and peer-to-peer file sharing. They offer flexibility, resilience, and rapid deployment capabilities, making them suitable for scenarios where traditional wired or infrastructure-based wireless networks are impractical or insufficient.


https://docs.google.com/presentation/d/1mzp13s8EV5jBnnwdRIdDzJS7XFOqGGTh/edit#slide=id.p1


Comments

Popular posts from this blog

3 DECT

2.3 TCP