Classless Inter-Domain Routing (CIDR) is a method used to represent subnets by counting the network bits in a subnet mask. An IP address consists of a 32-bit number that conveys a network ID and a host ID, both crucial for communication over Ethernet. The network address is calculated using a bitwise AND operation between the IP address and the subnet mask to determine the CIDR notation.