Computer Networks Course Overview
Computer Networks Course Overview
Networks
Computer networks Course
Objective: name
Acquire the basics of the concept of computer networks
Prénom
Class :
Table of Contents
1 Introductionn .......................................................................................................................................... 2
2 The classification of computer networks
3 The different network topologies
4 The different components ..................................................................................................................... 7
5 Communication in a network ....................................................................................................... 11
6 The main network services............................................................................................................ 21
Page 1 | 21
1hereS-SI
The networks
Computer networks Course
1 Introduction
1.1 Definition
The word 'network' could be defined in one sentence:
An entity can refer to a 'thing' among others. For example, a person in a group of people.
is an entity of this group. To stay with this example, we talk about a network when two or more people
speak together.
Yes, but don't forget that "talking together" also means "exchanging information"! ;)
So, basically, a network consists of the exchange of information, and there are (in everyday life) several ways
of information exchange, without involving technology (Internet, phone, etc.).
Page 2 | 21
1hereS-SI
The networks
Computer networks Course
For example, if someone wants to give you a book, they take the book and extend their hand to you, then you take the book.
What is interesting is that I can send (transfer) a book to André, through Pierre.
Hey Pierre, if you see André, pass him the book, and have him give it back to you when he has finished reading it.
We will assume in this case that André and I do not see each other, so Pierre is in this case a
intermediary. Indeed, the principle of intermediary is one of the foundations of computer networks.
A computer network is exactly the same as a human network, except that we need to replace the
humans by machines. It's as simple as that. In both cases, humans or machines exchange
they communicate!!!
For example, where we mention spoken, written, body language or even language
signs in humans, we will mention the communication protocol for the
machines.
• A transmitter,
• A receiver,
Page 3 | 21
1hereS-SI
The networks
Computer networks Course
1.2 The 2 essential global networks
When we think of computer networks, we primarily think of the Internet. But to
Initially, to access the Internet, one would go through a telephone line. That is why,
In the category of computer networks, two main networks are distinguished:
Internet
The Internet, on the other hand, is the set of nodes (connections, cables, etc.)
among the machines that give us access to the web. The internet is therefore the whole
networks that allow us to share data on the web (between
others, because there is not just the web on the Internet). So, when a person
she asks if you have Internet, she wants to know if your computer has access to
Internet. Moreover, it is still an abuse of language to say that one has
Internet: this gigantic network that belongs to no one, we can only have
internet access.
Page 4 | 21
1hereS-SI
Networks
Computer networks Course
2 The classification of computer networks
There are networks suited to the nature of exchanges and connected devices. The distinction between the
networks are mainly classified based on their range:
These networks are generally used to interconnect sensors, actuators, and calculators or
industrial automations.
Electronic components
Another approach is to define the local network by its physical size. It is generally a network of one
relatively small geographical scale, for example a computer room, a particular dwelling, a
building or a business site.
Page 5 | 21
1hereS-SI
The networks
Computer networks Course
3 The different network topologies
A computer network topology corresponds to the architecture (physical or logical) of it, defining the
links between network equipment and a possible hierarchy among them.
It can define how the equipment is interconnected and the spatial representation of the network.
(physical topology). It can also define how data transits across communication lines.
(logical topology).
It has a physical address (MAC address). A second IP address is assigned to it and allows for
freeing oneself from the physical address. One can therefore change the network card (in case of failure) and thus the physical address
without changing the IP address.
Page 7 | 21
1hereS-SI
The networks
Computer networks Course
4.2 The concentrators (or hub)
A hub is a networking device that allows several computers to connect.
in contact.
The Hub does not have internal memory and broadcasts collisions; the more there are
the more equipment, the more collisions there are and the greater the load is. For
for longer distances, we use switches.
4.3 Switches
A switch works much like a hub, except that it is more discreet and intelligent. It does not send everything
what he receives from everyone, but he sends it only to the recipient.
In order to determine the computer to which the data should be sent back, the switch relies on physical addresses.
(MAC addresses) of the network cards of the terminals.
4.4 Routers
A router looks like a switch in terms of usage: indeed, it allows several computers to be connected.
in network. But it goes further: it enables the connection of 2 fundamentally different networks. In a
small installation, with one or more computers connected to a 'box' (which is actually a router), it is the boundary
between the local network and the Internet.
In wireless transmission (radio, telephone), we also talk about relays. A repeater allows covering distances.
greater than the maximum distances set by the equipment we use: for example, in a wireless network
(Wi-Fi), the maximum range between 2 devices is about 50 meters indoors. By placing a repeater just before
At 50 meters, you can connect 2 devices at a distance of 100 meters. The fact that the information is
Re-sent "stronger" can degrade the quality of the signal in wireless networks.
Page 8 | 21
1hereS-SI
The networks
Computer networks Course
4.6 Transmission media
Transmission physical media can be very heterogeneous, both in terms of transfer of
data (data transmission in the form of electrical impulses, in the form of light or in the form
of electromagnetic waves) in terms of the type of medium (twisted pairs, coaxial cable, optical fiber, waves
radio, ...).
The choice of the medium depends on interdependent criteria among which are: the maximum distance between stations,
the minimum and maximum rates
exchanged (data, voice, video ...), connectivity, reliability, cost ...
There are two types of Ethernet cables (twisted pair): straight-through Ethernet cables and crossover Ethernet cables.
These allow for a direct connection between two similar devices (e.g., two computers or two ...
switches) while straight cables are used to connect two different devices (e.g. a computer to another device
like a hub or a switch).
Page 9 | 21
1hereS-SI
The networks
Computer networks Course
4.6.2 Bluetooth
Bluetooth is a networking technology
wireless personnel, that is to say a technology of
short-range wireless networks allowing for connection
devices with each other without wired connection.
There are 3 classes in Bluetooth: class 1, class 2, and class 3. What differentiates them is just the range. In class 1, the
the range can reach up to 100 meters, in category 2, it is about ten meters, and in class 3, it is
only a few meters (less than 10). It is this 3rd class that is used in mobile phones.
Wi-Fi is certainly the most widely used wireless data transmission method. Its range can exceed
the 200 meters in open space and its theoretical flow speed of over 100 megabits per second (Mbps) have
allows a democratization of this technology which is now widely used in local networks for access
to the Internet. It is impressive to see the number of secure and unsecured Wi-Fi hotspots that can be captured.
everywhere. 'Wi-Fi' can be considered as the trade name for the IEEE 802.11 standard, a standard that governs this
technology.
Page 10 | 21
1hereS-SI
Networks
Computer networks Course
5 Communication in a network
All connected devices share the same transmission medium and must therefore ...
respect rules called protocols, governing the use of this support.
Thus, the OSI model allows for a detailed understanding of how communication occurs between a
computer A and computer B. Indeed, a lot is happening behind the scenes between the moment t, where you
you sent an email (for example), and the moment t1, when the recipient receives it.
Page 11 | 21
1hereS-SI
Networks
Computer networks Course
Example:
Page 12 | 21
1hereS-SI
Networks
Computer networks Course
5.2.1 The different layers of the OSI model
Position
Name of the
in the Role of the layer
layer
OSI model
7 Application Point of contact with network services.
She takes care of all aspects related to data presentation: format, encryption,
6 Presentation
encoding, etc.
5 Session Responsible for the initialization of the session, its management, and its closure.
Logical connection between hosts (IP address). It deals with everything related to
3 Network
the identification and routing in the network.
Liaison of Establishment of a physical link between hosts (MAC address). Fragment the
2
data data in multiple frames.
1 Physics Conversion of frames into bits and physical transmission of data over the medium.
Page 13 | 21
1hereS-SI
The networks
Computer networks Course
5.3 The encapsulation
During a transmission, the data pass through each layer at the transmitting machine. At each
Layer, information is added to the data packet, it is a header, a set of information that ensures
the transmission. At the level of the receiving machine, as it passes through each layer, the header is read, then
deleted. Thus, upon receipt, the message is in its original state.
At each level, the data packet changes appearance, as a header is added to it, thus the names
changing according to the layers:
Each layer of the OSI model has a specific function. This correlation clearly indicates that some
Information can be found from one layer to another. This is only possible through the principle of encapsulation.
Page 14 | 21
1hereS-SI
The networks
Computer networks Course
5.4 The TCP/IP model
The TCP/IP model has a descriptive purpose, meaning that it
describe how communication takes place between two hosts.
In other words, if you want to understand how to
roll out the communication "on the ground", take the model
TCP/IP.
The TCP/IP model is therefore the model used for the Internet.
Position in
Name of the
the model Role of the layer
layer
TCP/IP
The application layer is the layer located at the top of the protocol layers.
4 Application TCP/IP. This includes network applications that enable communication.
thanks to the lower layers.
The protocols of the previous layers allowed for the sending of information
from one machine to another. The transport layer allows applications running
on remote machines to communicate. The problem involves identifying these
applications.
The transport layer contains two protocols that allow two applications
3 Transport
to exchange data regardless of the type of network used
independently of the lower layers...), these are the following protocols:
➢ TCP, a connection-oriented protocol that ensures error control
➢ UDP, a connectionless protocol whose error control is
archaic
The Internet layer is the 'most important' layer (they all have their
2 Internet importance) because it defines the datagrams and manages the concepts
of IP addressing.
The network interface layer is the first layer of the TCP/IP stack, it provides the
Interface
1 capabilities to access any physical network, that is to say the means to
network
implement in order to transmit data over a network.
Page 15 | 21
1hereS-SI
The networks
Computer networks Course
5.4.1 The IP protocol
IP stands for Internet Protocol: literally 'the protocol of the Internet.' It is the main protocol used on the Internet.
On the Internet, it's pretty much the same thing: each message (each little packet of data) is wrapped up
by IP that adds different information:
Page 16 | 21
1hereS-SI
The networks
Computer networks Course
5.4.2 The UDP and TCP protocols
The main protocols used by the transport layer of the TCP/IP model are UDP and TCP.
For example, to send the message 'Hi, how are you?', here's what TCP does (Each arrow represents
1 packet IP):
Page 17 | 21
1hereS-SI
The networks
Computer networks Course
5.5 Addressing
To communicate, you must know who you want to address!
It's time to talk about identification and communication in a network. We will address 2 concepts: it
it concerns IP addresses and MAC addresses.
The primary difference between IP addresses and MAC addresses is that IP addresses are routable. They
can communicate with machines beyond a subnet, unlike MAC addresses. The element
The central (switch, ...) is based on MAC addresses to ensure communication between multiple machines.
belonging to the same subnet, but uses IP addresses to enable communication between machines in the subnet.
different networks.
5.5.2 IP addresses
An IP address is "nothing more" than the place where a computer lives. But be careful: this address is relative.
On the network. A machine may not necessarily have the same IP address on network X and network Y.
IP addresses are the only means of identifying machines on the Internet. But there are 2 versions of the protocol.
Internet (the "way" to access the Internet in a way): IPv4 and IPv6. And each version uses its own structure.
IP address.
An 'IPv4 address' consists of 4 numbers corresponding to 4 octets ranging from 0 to 255, separated by
points. Nowadays, these are the most well-known.
Example: [Link].
IPv6 addresses are even more complex: they are represented by a series of 8 groups of 2 bytes.
represented in hexadecimal.
Example: 1fff:0000:0a88:85a3:0000:0000:ac1f:8001.
➢ A network identifier (NET-ID): all systems on the same physical network must have it
same network identifier, which must be unique across all managed networks.
➢ A host identifier (HOST-ID): a node on a TCP/IP network is called a host, it identifies a station.
work, a server, a router or any other TCP/IP device within the network.
Page 18 | 21
1hereS-SI
Networks
Computer networks Course
[Link] The IPV4 address classes
A network class is, in fact, a set of IP addresses. Each IP address belongs to a main class.
(it is also called a subnet). Each class has a default subnet mask. Whether you like it or not, as soon as
you give your network card an IP address, your operating system directly assigns it a mask of
default subnet according to the class to which your IP address belongs.
By convention, the creators of the IP protocol say that there are 5 classes of IP addresses. In other words, one can
choose our IP address from these five classes. These classes are: A, B, C, D, and E. The most used classes are the
classes A, B, and C.
The binary word starts with the bits 10, so it is a class B address.
Regarding a class B address, the first two octets (a and b) identify the network. The network number
is therefore: [Link]
The last two octets (c and d) identify the host device on the network.
A bit set to 1 in the mask indicates that the corresponding bit in the IP address is part of the network number; conversely,
A bit at 0 specifies a bit used to code the host number.
Thus, we have a so-called 'default' mask that corresponds to the class of this network.
Example: in a class A network without subnetting, the first octet corresponds to the network address so the
The netmask starts with 11111111 followed by zeros, which is [Link].
Class A B C
Subnet mask [Link] [Link] [Link]
Example: If my IP address is [Link] then I am working with a class B address. My network number is
[Link] and my mask [Link].
Page 19 | 21
1S-SI
The networks
Computer networks Course
[Link] Reserved addresses
Reserved addresses cannot designate a TCP/IP machine on a network.
The loopback address: the network address 127 is not assigned to a company, it is used as
loopback address in all networks. This address is used to test the operation of your network card. A
Ping [Link] should return a correct message. The packet sent to this address returns to the sender.
The network address is an address where all the host bits are set to 0 (e.g., [Link] network address).
of the class B network 128.10). It is used to refer to all the stations of the network. This address is used in
the routing tables
The broadcast address is an address where all the host bits are set to 1 (e.g.:
[Link] is the broadcast address of network 128 of class B). It is used to send a message to everyone.
network posts.
Private addresses
The following addresses can also be freely used to set up a private network:
From [Link] to [Link], from [Link] to [Link] and from [Link] to [Link]
No packets from or to these networks will be routed on the Internet (these addresses
are nonetheless 'routable' on the local network).
What you need to know is that the address 255 in Class C networks is a network broadcast address. In
In short, if you send data to this address, the data will be sent to all the computers on the network!
the same thing for the addresses of classes A and B. For example, the address 255.255.255 of network 110 (for class
A) is a broadcast address, as well as the address 255.255 of the network 140.20 (for class B).
Page 20 | 21
1hereS-SI
Networks
Computer networks Course
6 The main network services
We have seen that the Internet relies on the TCP/IP protocol. There are many other protocols in use on
this network, in particular, the main services offered by the Internet which are the web, email (e-mail)
Forums, chat, and FTP each use a different protocol.
For example, we find the services listed below, but there are plenty of others.
A hyperdocument is an electronic document containing images, sound, text, and sometimes small...
pieces of programs, but mostly links to other hyperdocuments: hypertext links. These links
appear in a style that distinguishes them, and a simple mouse action on a link is enough to open the document
linked. Documents can be found on any machine (server) on the Internet in sometimes very
distant and it is what gives the user the impression of navigating the network.
It relies on the HTTP protocol, which is at the beginning of the address of the server you connect to access.
to a web page
Messages are sent and received using two protocols (SMTP and POP), but they can also pass through the
Web.
Page 21 | 21