A computer network can be categorized based on its size as PAN, LAN, MAN, or WAN. A PAN covers an area of about 30 feet and connects personal devices like laptops and phones. A LAN connects computers within a building using cables, providing faster data transfer and higher security than larger networks. A MAN interconnects multiple LANs within a city using telephone lines to connect organizations like businesses, schools, and governments. A WAN spans large geographic areas like countries and states, with the internet being the largest example, connecting networks globally.