What Is a Computer Network?
A network in one minute
A computer network is a set of connected devices that can exchange data under agreed communication rules, called protocols. A network can be as small as two computers connected by a cable. It does not need an Internet connection. A host is an endpoint that sends or receives data, such as a laptop or a file server.
Follow your first message
Imagine two computers, A and B, connected directly by an Ethernet cable. Both interfaces are configured correctly, the link works, and the receiving program is ready. A sends the message HELLO to B. B receives it and can send a reply. The labels A and B are human-readable names in our drawing, not actual network addresses.
A [interface] <---- link ----> [interface] BA ---- HELLO ----> BA <---- OK ------- BThis is a diagram, not a command or packet capture. The first arrow shows the request direction; the second shows a possible response.
What travels through a network?
An interface is a physical or virtual connection point. A link connects network interfaces, using a medium such as a cable or radio. An address helps identify a destination or interface in a communication system. A packet is a formatted unit of network-layer data; on Ethernet, a frame carries data across a local link. A long application message may need many packets and frames. A route is information used to choose a path toward a destination; routers help forward packets between networks. You will learn their exact formats later.
A practical variation
A laptop can send a document to a network printer without visiting a website. The laptop is the sending host and the printer is the receiving host. The devices must have a usable communication path and agree on how to exchange the print job. Merely plugging in a cable does not configure every required setting.
Common mistake: a network is not the Internet
If a classroom network loses its Internet connection, two local computers may still exchange files if their local path and applications work. Conversely, a connected interface alone does not prove that a message reaches its destination.
Try it on paper
Draw two hosts named Desk and Store with one link. Mark the sender, receiver and reply direction for a file request. Now cross out the link; assume there is no other path. Can a new message reach Store? Check: the endpoints stay the same, but the broken link prevents delivery in this drawing. Next: learn which application asks for a service and which provides it.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
What is a computer network — knowledge check
Apply the concepts to fictional network situations.
Two computers exchange a document over a direct cable with no Internet access. What have they formed?
In the drawing A sends HELLO to B. Which endpoint receives that message?
What is the function of a network interface?
Which statement best distinguishes a packet and an Ethernet frame?
The only cable in a two-host diagram is disconnected. No alternative path exists. What follows?