Junos OS Fundamentals · Topic 1 of 3

Junos OS Software Architecture

Learn the Junos OS software architecture for JNCIA-Junos JN0-106: one source code base, modular daemons, protected memory, the kernel and release numbers.

  • 5 min
In a nutshell
  • Junos OS uses one source code base across routers, switches and SRX firewalls.
  • It is modular: each daemon runs in its own protected memory space.
  • The kernel is based on FreeBSD and runs on the Routing Engine.

What it is

Junos OS is the network operating system on Juniper routers, switches and SRX Series firewalls. The same operating system, with the same CLI and the same configuration style, runs across these product families.

Its architecture rests on a few design ideas: one source code base, a modular set of software processes, and a clean split between the control plane and the forwarding plane. The exam tests these ideas and the benefits they bring.

One sourcecode baseOne Junos OSreleaseRoutersSwitchesSRX firewalls

How it works

The design ideas

IdeaWhat it meansBenefit
Single source code baseAll platforms are built from one code baseFeatures behave the same way on every platform
One release cadenceNew releases follow a planned scheduleEasier to plan upgrades across the network
Modular softwareEach function runs as its own process (daemon)A fault in one process does not bring down the others
Protected memoryEach process has its own memory spaceOne process cannot corrupt another
Separate control and forwardingThe RE runs the software; the PFE forwards packetsHeavy control work does not slow forwarding

Because the software is the same everywhere, an engineer who learns the CLI on a switch can use the same skills on a router or a firewall. The configuration hierarchy, the commit model and the operational commands are shared.

The kernel and the daemons

Junos OS runs on the Routing Engine. At its core is a kernel based on FreeBSD, which manages the hardware, schedules the processes and handles communication with the Packet Forwarding Engine. Juniper also has a Linux based variant, Junos OS Evolved, but the JN0-106 exam is about Junos OS.

Above the kernel, separate processes called daemons do the work. Each daemon owns one job.

DaemonNameJob
rpdRouting protocol processRuns the routing protocols such as OSPF, IS-IS and BGP, and maintains the routing tables
mgdManagement processRuns the CLI, handles configuration and commits
chassisdChassis processMonitors and manages the chassis hardware
dcdDevice control processConfigures and manages the interfaces

You see the running processes with show system processes. Some daemons can be restarted from the CLI, for example restart routing restarts the routing protocol process.

Operatortypes in CLImgdmanagementcommitrpd andother daemonsKernelon the REPFEforwarding table

When you commit a configuration, mgd checks it and signals the daemons that need the change. rpd then updates the routing tables, the kernel builds the forwarding table and passes it to the PFE.

Why modular matters

In a monolithic operating system, a bug in one feature can crash the whole device. In Junos OS each daemon runs in its own protected memory space. If one daemon fails, the others keep running, and Junos OS can restart the failed process.

The PFE also keeps forwarding with the forwarding table it already has while the RE is busy. This is a direct result of the control and forwarding split, covered on the next page.

Release numbering

Junos OS releases use a number such as 21.2R3-S2. The JN0-106 exam is based on Junos OS 21.2.

PartExampleMeaning
Release21.2Year 2021, second release of that year
Release type and numberR3R means a regular release; 3 is the maintenance release
Service releaseS2A service release with fixes on top of R3

Use show version to see the hostname, the model and the Junos OS release a device runs.

user@router> show version
Hostname: router
Model: mx204
Junos: 21.2R3-S2
...

A worked example

An engineer adds a new OSPF interface and commits. mgd validates the configuration and tells rpd about the change. rpd forms an adjacency, learns new routes and updates the routing table.

Later a bug makes the SNMP process fail. Because the processes are separate, rpd keeps its adjacencies and the PFE keeps forwarding traffic. Users notice nothing while the failed process restarts.

How the exam asks about this

  • "Which feature prevents one failed process from affecting others?" → Modular design with each process in protected memory.
  • "Which process handles routing protocols?" → The routing protocol process, rpd.
  • "What is the benefit of one source code base?" → Consistent features and CLI across Juniper platforms.

Common mistakes

Thinking each platform has its own operating system. Routers, switches and SRX firewalls run the same Junos OS, built from one code base. Feature sets differ by hardware, not by a different OS.

Mixing up the daemons. rpd runs routing protocols, mgd runs the CLI and commits, chassisd looks after hardware and dcd looks after interfaces. Exam options often swap these names.

Assuming the PFE runs Junos OS. The operating system and its daemons run on the Routing Engine. The PFE forwards packets using the forwarding table the RE gives it.

What to remember for the exam

  • Junos OS uses one source code base across routers, switches and SRX firewalls.
  • It is modular: each daemon runs in its own protected memory space.
  • The kernel is based on FreeBSD and runs on the Routing Engine.
  • rpd = routing protocols, mgd = management and CLI, chassisd = chassis, dcd = interfaces.
  • show version shows the release; 21.2R3-S2 means release 21.2, maintenance release 3, service release 2.
Watch out

Do not confuse "modular" with "optional add-ons". Modular means separate processes with protected memory, so one fault stays contained. That containment is the benefit the exam asks about.

Check yourself

  • Why does a failure in one Junos OS process not crash the whole device?

    Each process runs separately in its own protected memory space, so the other processes keep running.

  • Which Junos OS process runs OSPF and BGP?

    The routing protocol process, rpd, which also maintains the routing tables.

  • Where does Junos OS and its kernel run?

    On the Routing Engine; the Packet Forwarding Engine only forwards packets using the forwarding table.

Topic 1 of 3 in Junos OS Fundamentals

Test yourself on Junos OS Fundamentals

The full Juniper JNCIA-Junos JN0-106 question bank has 1,155 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Juniper. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.