Nodes are the points of connection in a network, while ports are the channels of data that pass through these connections.