5.5.25 · D1 · HinglishEmbedded Systems & Real-Time Software

FoundationsRedundancy — TMR (triple modular redundancy), voting logic

3,077 words14 min read↑ Read in English

5.5.25 · D1 · Coding › Embedded Systems & Real-Time Software › Redundancy — TMR (triple modular redundancy), voting logic

TMR and voting logic ka parent note ek pile of shorthand pe rely karta hai. Uss shorthand ko abhi list karne ki bajaye (pehle mile bina woh sirf noise hoga), yeh page har symbol ko sirf tab introduce karta hai jab humein uski zaroorat ho, har ek ko scratch se build karte hue, ek aisi order mein jahan har idea apne pehle wale idea pe rest karta hai. Ek 12-saal ka bachcha jisne yeh kabhi nahi dekha, line one se follow kar sake.


1. Ek "module" aur letter

Ise picture karo. Teen identical vending machines side by side khadi hain. Teeno pe same button dabaao; har ek ek can drop karta hai. Same machine, teen bodies.

Topic ko iske zaroorat kyun hai. TMR define hota hai teen modules se. "Kuch identical copies mein se ek copy" ka idea kiye bina, redundancy shabd ka koi matlab nahi.

Figure — Redundancy — TMR (triple modular redundancy), voting logic
Figure 1 — Ek input (yellow) teen identical modules (blue boxes) mein fan out karta hai, har ek apna output (green) produce karta hai. Takeaway: machine same hai; sirf body aur label number alag hai.


2. Input , function , aur output

Ise picture karo. Ek box jiske left mein ek slot hai ( andar jaata hai) aur right mein ek slot hai ( bahar aata hai). Box ka andar rule hai.

Kyunki har module same rule ko same input pe run karta hai, isliye hum har module ka output likhte hain: Yahan hai "copy number ka output". Dhyaan se padho: machine hai (box), jabki woh number hai jo usse nikalta hai. Agar sabhi copies healthy hain, toh . Agar ek broken hai, uska disagree karta hai.

Topic ko iske zaroorat kyun hai. Voter compare karta hai. Baaki sab kuch inn teen outputs ka comparison hai, isliye pehle inhein name karna zaroori hai.


3. Probability , aur reliability

Ise picture karo. Length ki ek bar. fraction ko green colour karo (works) aur baaki ko red (fails). Dono pieces hamesha full bar tak add hote hain.

Figure — Redundancy — TMR (triple modular redundancy), voting logic
Figure 2 — Certainty bar ki total length hai. Green slice hai (module works); red slice hai (module fails). Takeaway: work aur fail sirf do hi outcomes hain, isliye unki probabilities exactly tak add up honee chahiye.

Topic ko iske zaroorat kyun hai. TMR ka poora point reliability raise karna hai. Yeh prove karne ke liye ki yeh help karta hai, humein pehle aur baad measure karna hoga — isliye aur poori derivation ki currency hain.


4. Kyun independent copies ke liye probabilities multiply hoti hain

Ise picture karo. Do coins toss karo. Heads-then-heads ka chance hai, kyunki grid ke chaar equally-likely corners mein se sirf ek "both heads" hai. ki jagah rakh do aur tum paoge ; teen copies ke liye, .

Topic ko iske zaroorat kyun hai. Parent ka Step 1, "", tabhi sach hai jab failures independent hon. Yeh assumption real life mein fragile hai — jab yeh toot jaata hai tum paate ho Common-Cause Failures, jiske baare mein topic warn karta hai.


5. Ways count karna:

Ise picture karo. Teen switches; exactly do ON karne hain. List karo: (1,2), (1,3), (2,3). Teen pictures, isliye number .

Topic ko iske zaroorat kyun hai. "Exactly 2 of 3 work" distinct arrangements mein ho sakta hai, har ek ki probability hai. Toh total hai — parent ka Step 2. Counting factor ke bina tum teen baar undercount karte.


6. Disjoint cases add karna, aur full TMR reliability

Abhi hamare paas do pieces hain: (teeno kaam karte hain) aur (exactly do kaam karte hain). Ek TMR system healthy hai jab kam se kam do modules kaam karein, yaani "teeno kaam karte hain" ya "exactly do kaam karte hain". "Or" combine karne ke liye humein probability ka ek aur rule chahiye.

"Teeno kaam karte hain" aur "exactly do kaam karte hain" disjoint hain: tum same trial mein teeno ko working aur exactly ek ko failing nahi rakh sakte — survivors ki count ya toh hai ya , kabhi dono nahi. Toh hum unhe add kar sakte hain.

Sanity check. ke saath: — ek single module ke se better. Yeh exactly woh formula hai jo parent note use karta hai; ab tum jaante ho har term kahan se aaya.


7. Failure rate aur curve

Ise picture karo. Ek slide jo full height se start hoti hai aur gently neeche curve hoti jaati hai, kabhi floor ko touch nahi karti. Steep slide = bada .

Figure — Redundancy — TMR (triple modular redundancy), voting logic
Figure 3 — Reliability over time, , ek slow-failing module ke liye (blue, small ) aur ek fast-failing ke liye (red, large ). Dono (yellow dot) se start hote hain aur ki taraf curve karte hain bina use touch kiye. Takeaway: bada = steep drop = chhoti useful life.

Yahi tool kyun, straight line kyun nahi? Ek straight line eventually zero se neechey cross kar jaati (probability ke liye impossible) aur assume karti ki cheezein ek fixed clock time pe fail hoti hain. ki jagah kehta hai "har equal time slice mein, survivors ka same fraction fail hota hai" — random hardware death ka natural model. Yahi wajah hai ki parent likhta hai .


8. Majority gate aur voter output

Ab tak matlab tha poori machine aur matlab tha uska output number. Voter circuit ke baare mein cleanly baat karne ke liye, hum sabse simple case mein zoom karte hain jahan har output sirf ek bit hai — sirf ya . Inn teen bits ko ==== kaho, jahan module ka one-bit output hai (toh jab output already ek single bit hai).

Voter ko ek sentence ki tarah padho. " hai agar bits 1-and-2 dono pe agree karein, OR bits 2-and-3 karein, OR bits 1-and-3 karein." Koi bhi pair pe agree kare toh force ho jaata hai — yeh exactly "teen mein se kam se kam do" hai.

Figure — Redundancy — TMR (triple modular redundancy), voting logic
Figure 4 — Majority voter: teen AND gates (yellow), har ek module ke pair ke liye, ek single OR gate (green) ko feed karte hain jo output karta hai. Takeaway: jab bhi koi ek pair pe agree kare, yaani jab bhi teen inputs mein se kam se kam do hon.

Topic ko iske zaroorat kyun hai. Yeh woh digital voter hai jo produce karta hai. Continuous (analog) outputs ke liye same "odd one out ignore karo" kaam median karta hai — aage define kiya gaya hai.


9. Median vs average, symbolically define kiya gaya

Median kyun, average kyun nahi? Average kisi bhi wild value ki taraf drag ho jaata hai; median simply ise ignore karta hai.

  • — broken result pollute kar deta hai.
  • — outlier throw away ho jaata hai. ✅

Yahi ek difference hai kyun analog voters median use karte hain: yeh "2-out-of-3 majority" ka continuous cousin hai.


Prerequisite map

Neeche ka diagram ek dependency graph hai: ise top-to-bottom padho, har box is page ka ek idea hai, aur har arrow ka matlab hai "tail pe idea pehle samajhna zaroori hai head pe idea se pehle". Koi bhi arrows ka path follow karo aur tum exactly usi order mein chal rahe ho jisme humne cheezein build ki; har path eventually "TMR topic" box mein funnel ho jaata hai.

Module M and subscript i

Output y = f of x

Probability P from 0 to 1

Reliability R and 1 minus R

Independent copies multiply

Choose count 3 pick 2

Disjoint events add

Failure rate lambda and e to the minus lambda t

Majority gate V from bits

Median for analog outputs

TMR reliability formula

TMR topic

Aage feed hota hai: Fault Tolerance Fundamentals, Watchdog Timers, Redundancy vs. Diversity, aur Byzantine Fault Tolerance ke deeper failure models mein.


Equipment checklist

Khud test karo — reveal karne se pehle answer do.

mein subscript ka kya matlab hai?
Yeh copy label karta hai — teen identical modules mein se "module number 2".
ka kya matlab hai, aur kya nahi?
"Rule ko input pe apply karo"; yeh multiplied by bilkul nahi hai.
aur mein kya fark hai?
machine hai (box); woh number hai jo woh machine output karta hai.
Agar reliability hai, toh failure ka chance kya hai?
, kyunki working aur failing milke poori probability bar ki length fill karte hain.
Hum kyun likh sakte hain?
Kyunki modules independently fail hote hain, isliye unki working probabilities multiply hoti hain.
Do probabilities ADD karne ki permission kab hai?
Jab events disjoint (mutually exclusive) hon — woh ek saath dono nahi ho sakte.
kyun hai?
Teen distinct ways hain yeh choose karne ke liye ki teen modules mein se kaunse do survivors hain.
Full TMR reliability formula kya hai?
.
Kin values of ke liye TMR single module ko beat karta hai?
Sirf jab ; pe tie hota hai, aur ke liye TMR worse hai.
kya hai, aur time ke saath kya karta hai?
ek fixed constant hai; se start hota hai aur smoothly ki taraf decay karta hai, bade ke liye tez.
Voter mein , aur kya hain?
modules ke one-bit outputs hain; (juxtaposition) logical AND hai; logical OR hai — arithmetic nahi.
kaise compute karte hain aur average se better kyun hai?
Teeno ko sort karo aur middle lo (ya ); yeh ek outlier ignore karta hai jabki average uski taraf drag ho jaata hai.
Recall Self-check: ek sentence mein core idea state karo.

Same kaam teen identical copies pe chalao aur us answer par trust karo jis pe unme se kam se kam do agree karein, taaki ek faulty copy mask ho jaaye.