Traditional buses 2-8 cores ke liye kaam karti hain, lekin usse aage contention (multiple cores ka bus ke liye larna) aur wire delay (signals ko chip cross karne mein multiple cycles lagte hain) performance ko khatam kar deti hain. NoC yeh problems solve karta hai:
Parallelism: Multiple packets alag-alag links par simultaneously travel karte hain
Locality: Data nearby routers se route hota hai, jisse hops kam hote hain
Scalability: Cores add karne se network collapse nahi hota
Wire delay dominate karta hai modern tech nodes mein: 7nm par ek 10mm wire ko signal propagate karne mein ~20 cycles lagte hain.
Shared bus bandwidth: Bbus=f⋅w (frequency × wire width). 64 cores ke liye jo 2GHz par 128-bit bus share kar rahe hain: 2GHz⋅128b=256Gb/s total, toh 4 Gb/s per core—bahut kam hai.
Dedicated point-to-point links linearly scale karte hain: Har router-router link full bandwidth provide karta hai, aur multiple links parallel mein operate karti hain.
Diameter: Worst case corner-to-opposite corner hai. Ek N×M grid mein, tum ek dimension mein (N−1) steps aur doosre mein (M−1) steps chalte ho. Koi diagonal moves nahi, isliye D=(N−1)+(M−1).
Bisection bandwidth: Grid ko half mein kato. Smaller dimension decide karta hai kitne links cut cross karte hain. Ek 4×4 mesh mein, vertically kaatne se 4 links kat jaati hain.
Pros: Simple layout, 2D chip floorplan se match karta hai, easy routing (XY-routing).
Cons: High diameter → door ke nodes ke liye high latency. Edge nodes ka degree kam → asymmetric performance.
Diameter ki Derivation:
Torus mein, tum "wrap around" kar sakte ho. Ek N×N torus ke liye, sabse door ka node har dimension mein ⌊N/2⌋ distance par hai (agar >N/2 ho toh wrap karo). Example: 8×8 torus, node (0,0) se (7,7) tak. 14 hops (mesh) ki jagah, (0,0) → (0, -1≡7) 1 hop mein jao, phir (4,7) tak 4 hops, phir (7,7) tak 3 = 8 hops. Actually, ⌊8/2⌋+⌊8/2⌋=8.
Derivation:
Nodes ko 0 se 2k−1 tak binary mein label karo. Node i=bk−1bk−2…b0 node i⊕2j se connect hota hai (bit j flip karo). Example: 4D hypercube (k=4, 16 nodes). Node 5 = 0101 in connect karta hai:
5⊕20=0100=4 (bit 0 flip)
5⊕21=0111=7 (bit 1 flip)
5⊕22=0001=1 (bit 2 flip)
5⊕23=1101=13 (bit 3 flip)
Diameter: Koi bhi node kisi bhi doosre node tak at most k bits flip karke pahunch sakta hai (Hamming distance ≤ k).
Pros: Logarithmic diameter (best scalability). High bisection BW.
Cons: Degree N ke saath badhta hai → complex routers. Non-planar (2D silicon mein lay out karna mushkil).
"Fat" kyun?
Traditional trees root par bottleneck create karte hain (saara traffic ek link se funnel hota hai). Fat-tree har level upar jaane par link bandwidth double karta hai. Ek binary tree ke liye jisme N leaves hain:
Level 0 (leaves): Har link = B
Level 1: Links = 2B
Level 2: Links = 4B
Root: Link = NB/2
Yeh sabhi cuts mein constant bisection bandwidth maintain karta hai.
Pros: High bandwidth, fault-tolerant (root tak multiple paths).
Cons: Area/power poorly scale karta hai (root switches bahut bade). Deep hierarchy → latency.
Diameter = ⌊N/2⌋ kyun?
Worst case: Ring ka opposite side. Ek 10-node ring mein, node 0 se node 5 tak 5 hops hain (clockwise ya counter-clockwise). N nodes ke liye, max = ⌊N/2⌋.
Pros: Simplest layout, lowest wiring cost, low power.
Cons: Bekar bisection BW (major bottleneck), high average latency.
Yeh kyun matter karta hai: Lambi links (torus wraparound, fat-tree root) mein high C hota hai → high Plink. Hypercube mein zyada routers hote hain → high Nrouters. Mesh dono ko minimize karta hai.
Power Management in SoCs: NoC links idle hone par power-gate ho sakti hain.
Latency and Throughput Trade-offs: NoC topology directly dono ko impact karta hai.
#flashcards/hardware
Network-on-Chip (NoC) kya hota hai? :: Ek packet-switched on-chip interconnect jahan cores/memory routers aur links ke zariye connect hote hain, traditional buses ke baad parallel data transfer aur scalable communication enable karta hai.
NoC topologies ke key metrics kya hain?
Hop count (traverse kiye gaye routers), bisection bandwidth (cut ke across max data), diameter (kisi bhi do nodes ke beech max hops), degree (router per links).
Ek N×M mesh ka diameter formula kya hai?
D=(N−1)+(M−1), kyunki worst case corner-to-corner Manhattan distance hai jisme koi diagonal moves nahi hote.
Torus diameter mesh se kaise compare karta hai?
Torus diameter ⌊N/2⌋+⌊M/2⌋ mesh diameter se roughly aadha hota hai kyunki wraparound links shortcuts create karti hain.
2 GHz par 64-bit links wale 4×4 mesh ki bisection bandwidth kya hai?
Bb=4⋅64b⋅2GHz=512Gb/s (midline cut ko 4 links cross karti hain).
Torus mein mesh se zyada bisection BW kyun hoti hai?
Degree = k=log2(N), kyunki har node un nodes se connect hota hai jo k dimensions mein ek bit flip se different hain.
Hypercube ka diameter kya hota hai?
D=log2(N), kyunki koi bhi do nodes at most k bits mein differ karte hain, aur sabhi differing bits flip karne ke liye k hops chahiye.
Hypercube connections kaise determine hote hain?
Node i node i⊕2j se connect hota hai j=0,1,…,k−1 ke liye (har bit position ek baar flip karo).
Hypercube topology ka main disadvantage kya hai?
Non-planar layout (2D silicon par map karna mushkil) aur degree N ke saath badhta hai (1024 nodes ke liye 10+ ports), jisse routers complex aur expensive ho jaate hain.
Fat-tree "fat" kyun hota hai?
Links root ki taraf wider (zyada bandwidth) hoti jaati hain, har level par double hoti hain taaki bottlenecks na aayein: root link = N⋅Blink/2.
Fat-tree ka diameter kya hota hai?
D=2logk(N) (k-ary tree levels se root tak upar hop karo, phir destination tak neeche).
Ring ki bisection bandwidth kya hoti hai?
Bb=2⋅Blink (kisi bhi cut ko sirf 2 links cross karti hain, jo ise ek severe bottleneck banata hai).
Ring topology 8 nodes ke baad rarely kyun use hoti hai?
Diameter O(N) aur bisection BW O(1) hone ki wajah se N badhne par severe congestion hoti hai; saara cross-traffic 2 links share karta hai.
Mesh topology ka main advantage kya hai?
Silicon floorplan se match karta hua simple 2D layout, moderate diameter/bisection BW, aur sirf 4-port routers (low cost).
Torus wraparound links ki hidden cost kya hai?
Ye poore chip edges span karti hain (10+ mm), high capacitance, power drain, aur repeaters/upper metal layers ki zaroorat cause karti hain.
Fat-tree sabhi bottlenecks eliminate kyun nahi karta?
Yeh root bottleneck prevent karta hai lekin hot-spot (many-to-one) traffic nahi rokta, jahan destination ka last-hop link abhi bhi sirf B capacity ka hota hai.