Data communication refers to the transmission of digital data between computers, while a network allows connected devices to exchange files and communicate electronically. A personal area network (PAN) connects devices within 10 meters of an individual, while a local area network (LAN) connects devices within a building. Network interface cards (NICs) and media access control (MAC) addresses facilitate device connections to networks. Switches and hubs are hardware that connect networked devices to share resources and exchange data.