%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '16px' }}}%%
graph TD
subgraph Scenario["Scenario"]
style Scenario fill:#e8f5e9,stroke:#333,stroke-width:2px
A[IP: 172.16.45.178] --> B[Subnet Mask: 255.255.255.240 /28]
B --> C[Network Address: 172.16.45.176]
C --> F7[First Usable Host: 172.16.45.177]
C --> F8[Last Usable Host: 172.16.45.190]
C --> L[IP Range]
L --> M[172.16.45.176 - 172.16.45.191]
B --> D[Broadcast Address: 172.16.45.191]
B --> G[Host Bits: 4]
G --> H[Usable Hosts: 14]
B --> I[Subnet Bits: 4]
I --> J[Total Subnets: 16]
A --> K[Subnet Number: 11]
end
subgraph Formulas["Formulas"]
style Formulas fill:#e0f7fa,stroke:#333,stroke-width:2px
F1[Network Address] --> F2["NA = IP AND Subnet_Mask"]
F3[Broadcast Address] --> F4["BA = NA + (2^n - 1)"]
F5[Usable Hosts] --> F6["UH = 2^Host_Bits - 2"]
F7[First Host] --> F8["FH = NA + 1"]
F9[Last Host] --> F10["LH = BA - 1"]
F11[Total Subnets] --> F12["TS = 2^Subnet_Bits"]
end
Formulas --> Scenario