Network Address i see as anything ending with 0 Example: 192.168.0.0
Not correct. A network address or prefix is anything where the host bits are all 0
. Your example works for /24 only.
With e.g. a /26 subnet, the network address could end with .0, .64, .128, or .192.
A /23 could end with any even number in the third octet and 0 in the fourth.
Broadcast Address i see as anything ending with 255 Example: 192.168.0.255
The subnet directed broadcast address is the network address with all host bits 1
. Same logic as above applies (.255 only for a /24, /26 with .63, .127, .191, .255, and so on).
In a nutshell: without knowing the subnet mask, you can't tell whether an address is a prefix or a directed broadcast. E.g. 192.168.0.255 is not the broadcast address for 192.168.0.0/23.