What is network address and broadcast address?
Answers
In every network, there is two addresses used for network and broadcast addressing. These addresses are not available for node addressing. So if there are 4 addresses in the network, there can be 2 nodes defined. Only exception is network with 32 bit mask (network with only one address), which is used for defining the nodes local IP address in the routing table. It means mask with 31 bits, network with 2 addresses, can not be used.
Network address is first address in the network and it is used for identification network segment. All the IP addresses, using the same network address part, are in the same network segment. Because network address is first address in the network, it can not be random IP address, but it must mach with network mask in a binary view, for last bits in the network address must be zeros, as long as mask has zeros.
In private networks, inside organizations, there is mostly used mask 255.255.255.0, because of simplicity of calculations of network address – last octet is zero, and first three octets are representing network address.
Broadcast address is the last address in the network, and it is used for addressing all the nodes in the network at the same time. It means that IP packet, where the destination address is broadcast address, is sent to all nodes of the IP network. It is important for remote announcements in network segment. In some cases it is used for attacking purposes by hackers or can cause problems in bigger network segments.
Answer:
Broadcast address is the last address in the network, and it is used for addressing all the nodes in the network at the same time. It means that IP packet, where the destination address is broadcast address, is sent to all nodes of the IP network.