Main content
AP®︎/College Computer Science Principles
Computer networks
The Internet is the world's largest computer network. Let's break that down:
A computer network is any group of interconnected computing devices capable of sending or receiving data. A computing device isn't just a computer—it's any device that can run a program, such as a tablet, phone, or smart sensor.
Building a network
The simplest computer network is two devices:
A network like that only has to worry about a few things, like how to physically connect the two devices and how to send data over the physical connection in a format they both understand.
Let's add one more device:
Now there's additional complexity. How can each device know whether incoming data is meant for them or for their neighbor? This simple network will need an addressing scheme.
Let's jump to six devices. There are actually many ways we can connect six devices together in a computer network:
Each of those arrangements is a different network topology, and each topology has its advantages and disadvantages.
Imagine the journey of a piece of data through one of those larger networks. What path will it take? When there are multiple paths, how does it know which path is best?
Once networks become larger, routing strategies become more important. There isn't a big difference between two stops and three stops in a path, but there is a big difference between 20 stops and 300 stops.
Types of networks
We use different terms to refer to networks based on their size and characteristics. Let's touch on a few of them here.
The most common type of network is the Local area network (LAN), a network that covers a limited area like a house or school.
The largest type of network is a Wide Area Network (WAN), a network that extends over a large geographic area and is composed of many, many LANs. Oftentimes, the networks in a WAN can only be connected by leasing telecommunications lines from different companies, since no single company owns all the infrastructure across the wide geographic area.
Another type of network is the Data Center Network (DCN), a network used in data centers where data must be exchanged with very little delay.
Networking protocols
Whenever computing devices are connected together in a network, they need protocols to communicate with each other.
If the devices want to communicate over the Internet, they must use the Internet networking protocols. There are many networks that aren't connected to the Internet that also use the Internet protocols, due to how well designed they are for networking.
However, there are networks that use other protocols that are more suited for their task. Data center networks often opt to use networking protocols that take advantage of the incredibly closely knit architecture of the data center. That enables data centers to more efficiently run intensive algorithms, such as training a deep learning network.
As we go forward in this unit, we will focus specifically on the Internet protocols that power the majority of computer networks. In the future, networks might be using protocols that haven't even been invented yet. Fortunately, the concepts underlying the Internet protocols are relevant to all networked systems.
🙋🏽🙋🏻♀️🙋🏿♂️Do you have any questions about this topic? We'd love to answer—just ask in the questions area below!
Want to join the conversation?
- new lessons...where are the vidios?(5 votes)
- From the author:Hi Mohamed, I didn't make videos for most of the new topics, but I've gotten feedback that lots of folks would like videos, so I'll be working on video versions of the articles.(31 votes)
- gl on the ap test everyone...(18 votes)
- what does a network mean(3 votes)
- From above: "A computer network is any group of interconnected computing devices capable of sending or receiving data."(22 votes)
- Are the Internet and Network same?(6 votes)
- the internet is a group of connected networks (WAN). a network is a group of interconnected devices(LAN,PAN,MAN), as shown in the article above, so, no. they are not the same.(15 votes)
- I don't understand this statement:"Data center networks often opt to use networking protocols that take advantage of the incredibly closely knit architecture of the data center."(3 votes)
- I'm assuming that this means that the internet uses protocols that might not be as efficient as possible, but that better allow machines that might be far away from each other to connect. In data centers, they can use the most efficent protocols possible, because all of the connecting machines are squahed together, so distance between machines isn't a limiting factor. Hope this helps!(8 votes)
- how does the internet workkkk(2 votes)
- Read the article duhhh(8 votes)
- giao thức mạng hoạt động thế nào(1 vote)
- The network protocols are a bit like instructional manuals for your computer. They establish how network communication works and what to expect from other computers.(9 votes)
- is there anywhere i can get to know about topology(3 votes)
- What about MAN(Metropolitan area network)(3 votes)