Overview of Computer Networks Basics
Overview of Computer Networks Basics
Mabunda
Chapter I
Generalities about Computer Networks
1
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Definition:
The computer network is a set of hardware and software means put in place
software to ensure communication between computers, workstations and
computer terminals. Networks vary in size, some are limited to a
office and others spread across the planet.
2
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Networks are made up of a physical and software part. The devices and the
supports represent the physical elements or hardware of the network. The hardware
often corresponds to the visible components of the network platform, such as a
laptop, a desktop computer, routers, or the wiring used to connect
the peripherals.
Network devices are generally physical components of the network, such as,
computers, servers, network cards, routers, switches
printers, etc.
The network support is considered to be the part that serves to connect the devices,
In other words, it's the network cabling. This cabling can be done using cables in
copper, through optical fibers or radio waves (wireless network).
3
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The network devices that people are most familiar with are called
end devices. These devices form the interface between the human network and the
communication network. Some of these end devices include the following:
4
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Servers are computers that have software installed on them allowing them to
provide information and services to other computers on the network. The
the most common services are:
• file sharing;
• access to information from the World Wide Web;
• the email
• the sharing of printers ;
• e-commerce
• database storage.
In addition to the end devices that people are used to, the networks
depend on intermediate devices to provide connectivity, in order to
ensure the flow of data across the network. These devices connect the hosts
individuals to the network and can connect multiple individual networks to form
an inter-network. Among these intermediate network devices, we can mention the following:
5
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Data management during their passage through the network is also one
roles of intermediate devices. These devices use the host address
of destination, with information regarding network interconnections, in a way
to determine the path that messages should take through the network. The
processes that run on intermediate network devices fulfill these
functions:
6
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Network card: a network card, or local area network adapter, provides the connection
physical to the network from the computer. The media that connect the computer to
network devices connect directly to the network card.
Communication over a network occurs over a medium. This medium provides the
channel through which the message travels from the source to the destination.
7
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The coding of the signal that must occur in order to transmit the message differs according to the
type of support. On metal wires, the data is coded in pulses
electric ones that correspond to specific models. The transmissions by fiber
Optics occur through light pulses, in light ranges.
infrared or visible. In wireless transmissions, wave patterns
Electromagnetic waves illustrate the different bit values.
The different types of network media have various advantages and features.
Not all network media have the same characteristics and are not suitable
not for the same objectives. The criteria for choosing a network medium are:
• the distance over which the supports can correctly transmit a signal;
• the environment in which the supports must be installed;
• the amount of data and the transmission rate;
• the cost of supports and installation.
Copper supports.
8
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
9
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
10
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Network infrastructures can vary considerably depending on the size of the area.
covered, the number of connected users, the number and types of services
available.
11
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
For wireless networks, we add the letter W which stands for Wireless: WPAN, WLAN,
WMAN and WWAN. The figure below represents the different wireless technologies.
used in each type of network.
A LAN generally extends over a single geographical area and provides services
and applications to individuals within a common organizational structure,
such as a company, a campus, or a region. Generally, a local network is
managed by a single organization. The administrative control that manages the strategies
Security and access control apply at the network level.
12
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The topology of a network constitutes the organization or the relationship of network devices.
and the existing interconnections between them. A logical topology constitutes the way
A network transfers frames (data) from one node (computer) to another. This
organization consists of virtual connections established between the nodes of a network
regardless of the (physical) arrangement of them.
13
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
14
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
In a ring, all the nodes located around the ring between the source nodes and
destination examines the framework.
Several access control techniques for the medium can be used with a
ring, depending on the level of control required. For example, one frame at a time
is usually conveyed by the medium. If no data is being processed
transmission, a signal (called a token) can be placed on the medium and a node cannot
place a data frame on the medium only if it has the token.
A wide area network is a network that connects local area networks (LANs).
When a company or organization has locations separated by
Due to significant geographic distances, it may be necessary to use a provider.
telecommunications services to interconnect local networks to them
different locations. Telecommunications service providers are in
general of telephone operators or internet service providers (ISPs), in general
they represent the wide area network (WAN).
15
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
In brief, we can say that the main characteristics of wide area networks are the
following:
• They allow interconnecting LANs;
• they usually connect devices separated by an area
a geographical area larger than can be covered by a local network;
• they use the services of operators, such as telephone companies or
cable, satellite systems and network providers.
2.2.1. Internet
The Internet is an example of a wide area network. It is indeed the largest wide area network.
used in the world.
16
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The gradual interconnection of all the computers on the planet works like a
gigantic network. But in practice, these computers are not directly
interconnected with each other. Computers are first interconnected within a
organization or a building thus forming a multitude of small sub-networks.
17
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Chapter II
Protocols and layered models
18
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The protocols
19
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Although the TCP/IP and OSI models are the main models used when it comes to
of network features, the designers of protocols, services or devices
networks can create their own models to represent their products. Finally, the
designers must communicate with the industry by associating their products or their
services to OSI or TCP/IP models or both.
20
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Among these protocols, let's mention (we will take the layers of the OSI model):
21
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Port addressing
In general, protocols are associated with logical ports and these ports are numbered.
Reserved ports (numbers 0 to 1023). These numbers are reserved for services and
applications. They are generally reserved for HTTP-type applications
(Web server), POP3/SMTP (mail server) and Telnet;
22
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Ports assigned (numbers 1024 to 49151). These port numbers are allocated to some
user processes or applications. These processes are essentially
specific applications that a user has chosen to install rather than
common applications that would receive a reserved port.
23
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
24
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Layered models
25
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
OSI Model
The OSI model was designed by the International Organization for Standardization ISO.
(International Organization for Standardization) to provide a framework in which
design a set of open system protocols.
The OSI model provides a comprehensive list of functions and services that can
intervene at each layer. It also describes the interaction of each layer with the
top and bottom layers.
Layer 5 (Session): The session layer establishes a link between two programs or
two machines to communicate. It allows the establishment of a session between the
network users.
26
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Layer 3 (Network): The network layer provides network addressing services (for example,
IP addresses) and decides the path that the data must take during
communications.
Layer 2 (Data Link): The data link layer describes the methods
exchange of frames between devices on a medium.
Layer 1 (Physical): The physical layer describes the mechanical, electrical means,
functional and methodological approaches to activate, manage, and deactivate
physical connections for the transmission of bits to and from a device
network.
Protocols are generally classified into two categories based on the level of control of the
data that we desire:
27
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The transport layer segments the data and is responsible for the necessary control over
reassembly of these data blocks in the various communication streams. For this
to do, he must:
• monitor individual communications between applications
residing on the source and destination hosts;
• segment the data and manage each individual block;
• reassemble the segments into application data streams;
• identify the different applications.
Data segmentation
Each application creates a data stream to send to a remote application; these
data must therefore be prepared to be shipped on the medium in the form of
easy-to-manage blocks. Transport layer protocols describe the services that
segment the data coming from the application layer. This includes
the encapsulation must apply to each block of data. Headers must be
added to each application data block at the transport layer for
indicate which communication it is associated with.
28
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Split the data into smaller blocks and send them from the source to the
destination allows multiple different communications to be interwoven (to make
the purpose of multiplexing) on the same network.
Reconstruction of segments
The host receiving the data blocks can direct them to the appropriate application. It is necessary
Furthermore, these individual data blocks can be reassembled into a stream of
complete data useful to the application layer. The protocols involved at the level of
the transport layer manages how the header information of the layer
transport is used to reassemble the data blocks into streams that will be transmitted to the
application layer.
Identification of applications
In order for data flows to reach the applications they are intended for, the
The transport layer must identify the target application. To do this, the transport layer assigns
an identifier for each application. The TCP/IP protocols call this
identify a port number. Each software process needing to access the
the network is assigned a unique port number on its host. This port number is
included in the transport layer header to specify which application this block
data is associated.
29
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
UDP Protocol
30
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Length: indicates the total length (expressed in bytes) of the UDP segment (in-
header and data). The minimum length is therefore 8 bytes (header size).
Checksum: this allows us to ensure the integrity of the received packet.
when it is different from zero. It is calculated over the entire UDP header and
data.
TCP protocol
31
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Pointer for urgent data: Relative position of the last urgent data.
Options: Optional.
Data: Sequences of bytes transmitted by the application.
The network layer provides services for the exchange of data elements.
individuals on the network between identified endpoints. To carry out this
end-to-end transport, layer 3 uses four basic processes:
• addressing;
• encapsulation;
• routing;
• the uncapping.
Addressing
The network layer must first provide a mechanism for addressing these
end devices. If individual data elements need to be routed
towards an endpoint, it must have a unique address. In a network
IPv4 (IP version 4), when this address is added to a device, it is then
designated as host.
Encapsulation
The network layer must also provide encapsulation. Not only the
devices must be identified by an address, but individual items
(layer network protocol data units) must also contain these
addresses. During the encapsulation process, layer 3 receives the data unit from
Layer 4 protocol and adds a layer 3 header, or label, to create the unit.
of layer 3 protocol data. In a network layer context, this unit of
Protocol data is called a packet. When creating a packet, the header must
including, among others, the address of the host to which it is sent. This address is called
destination address. The layer 3 header also contains the host address
transmitter. This address is called the source address.
Routing
The network layer must then provide services to route these packets to their
destination host. Source and destination hosts are not always connected to
same network. In fact, the packet may have to pass through many networks. On the way,
each packet must be routed on the network to reach its final destination. The
Intermediate devices that connect networks are called routers. Their role
involves selecting the paths to direct packets to their destination. This
The process is called routing.
32
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Uncapping
Finally, the packet arrives at the destination host and is processed by layer 3. The host
check the destination address to verify that the packet was correctly addressed to it
device. If the address is correct, the packet is decapsulated by the network layer, and
the protocol data unit of layer 4 contained in the packet is transmitted to the
appropriate transport layer service.
The IP protocol was designed not to overload networks. It only provides the
required functions to transfer a packet from a source to a destination by passing
by an interconnected system of networks. This protocol is not intended for monitoring and
packet flow management. These functions are performed by other protocols of others
couches.
33
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
34
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Subnet mask
As indicated in the figure above, the prefix /24 corresponds to the mask of
subnet and is expressed under the shape [Link]
(11111111.11111111.11111111.00000000). The remaining bits (on the right) of the mask of
Subnets are zeros and indicate the host part of the address on the network.
Class addressing
36
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
IP Address Classes
Address blocks A
A class A address block has been created to support very large networks.
large size, containing more than 16 million host addresses. The IPv4 addresses of
Class A uses a /8 fixed prefix, with the first octet indicating the network address.
The remaining three octets correspond to host addresses.
Class B blocks
The Class B addressing space was created to meet the needs of networks.
medium or large size, containing more than 65,000 hosts. The IP addresses of
Class B uses the first two octets to indicate the network address, the two octets
The following correspond to the host addresses.
Class C blocks
The address space of class C is the most available of the address classes. This
The address space is reserved for small networks, consisting of 254 hosts.
maximum.
Class C address blocks use the /24 prefix. Thus, a Class C network does not
can only use the last octet for host addresses, the first three octets
corresponding to the network address.
In the address range of each IPv4 network, there are three types of address:
• The network address: the address that refers to the network;
• The broadcast address: a specific address used to send the
data to all network hosts;
• Host addresses: addresses assigned to endpoint devices on the
network.
37
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
In the IPv4 address range of a network, the smallest address is reserved for the address
network. In the host portion, this address contains a '0' for each host bit.
Adresse de diffusion
The IPv4 broadcast address is a specific address assigned to each network. It
allows data to be transmitted to all hosts on a network. To do this, a
A host can send a single packet addressed to the network's broadcast address.
The broadcast address corresponds to the highest address in the address range of a
network. This refers to the address in which the bits of the host part are all '1'.
For example, for the [Link] network with a 24-bit subnet mask, the broadcast address
would be [Link].
Host addresses
As mentioned earlier, each end device requires a unique address.
to deliver a packet to a host. In IPv4 addresses, we assign values
located between the network address and the broadcast address for the devices on this network.
The formula that determines the total number of hosts a network can have
is the following: 2n- 2, where 'n' is the number of bits in the host part.
Number of subnets = 2noùn= the number of bits borrowed for the sub-
networks.
In our example (figure above), we borrowed 1 bit from the host part to
create subnets. So we can create 21= 2 subnets.
The number of hosts: To calculate the number of hosts per subnet, one must use the
formule2n - Where is the number of bits left for the hosts. After application of
this formula, (272 = 126), it follows that each subnet can have up to
126 hosts.
39
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
40
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The IPv4 host address is logically added by an AND operation to its mask of
subnet to determine the network address to which the host is associated. When
this AND operation is applied between the address and the subnet mask, the
The obtained result is the network address.
Fig. Using the subnet mask to determine the host's network address
[Link].
The devices on a network perform the AND operation between the host address and the
subnet mask for various reasons:
Routers use it to determine an acceptable route for a packet.
entrant
A source host must determine whether a packet should be sent directly to a
local network host or directed to the gateway.
41
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
42
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
A public IP address is unique in the world, which is not the case for addresses.
private ones that must be unique within the same local network but not at the level
planetary as these addresses cannot be routed on the internet.
43
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
These procedures require the use of the Cisco Internetwork operating system.
Operating System (IOS) and related configuration files for devices
intermediaries.
The operational details of Cisco IOS vary from one device to another depending on the
but and the function game of the device.
The IOS file itself, which reaches several megabytes in size, is stored in
a semi-permanent memory area called Flash. Flash memory provides a
non-volatile storage. In other words, this memory keeps its content when the
The device is no longer powered. Unlike read-only memory, however, the
Flash memory allows for modification or overwriting of its content if necessary.
Access methods
There are several ways to access the ILC environment. The most common methods are
widespread use:
Console port
The console directly connects a computer or terminal to the console port of the
router or switch via a slow serial link.
The console port is a management port that allows out-of-band access to a router.
The console port is accessible even if no network service has been configured on the
Peripheral. The console port is often used to access a device.
before the network services are launched or when they are failing.
When a router is commissioned for the first time, its network settings do not
have not been configured. The router cannot therefore communicate via a network. For
prepare the initial startup and configuration of the router, a computer running a
the terminal emulation software is connected to the console port of the device. Thus,
it is possible to enter commands using the computer keyboard connected to
router configuration.
For many IOS devices, console access does not require any by default.
security form. However, it is advisable to set a password for the console
to prevent unauthorized access to the device. In case of loss of the password,
45
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Port AUX
The AUX port can also be used locally, like the console port, with a
direct connection to a computer running a terminal emulation program. The
console port is required for router configuration, but the routers do not
not all have an AUX port. Furthermore, it is better to use the console port
rather than the AUX port for troubleshooting, as it displays messages by default.
startup, debugging, and error of the router. Generally, the AUX port is not used.
locally instead of the console port only in case of issues related to the console port,
for example when you ignore certain console parameters.
A host equipped with a Telnet client can access the ongoing vty sessions on the
Cisco device. For security reasons, IOS requires the use of a password.
in the Telnet session as a minimal authentication method. The methods
allowing to configure logins and passwords will be
explained further in this chapter.
The Secure Shell (SSH) protocol allows for more secure remote access to devices.
Like Telnet, this protocol provides the structure for a session opening to
distance, but it uses more secure network services.
SSH provides a password authentication that is more resilient than that of Telnet and
uses encryption during the transport of session data. The SSH session
encrypts all communications between the client and the IOS device. This preserves the
confidentiality of the user ID, password, and session details
46
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The configuration files, for their part, contain the commands of the Cisco software.
IOS used to customize the features of a Cisco device. The
commands are analyzed (translated and executed) by the Cisco IOS software at
system startup (from a file called startup-config) or when they are
entries in the ILC environment in configuration mode.
47
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
the current configuration file that the device uses during operation
normal
the initial configuration file, which is loaded when the device starts
and serves as a backup copy of the configuration.
The current configuration is modified when the network administrator configures the
device. Changes to the current configuration take effect immediately.
their effects on the functioning of the Cisco device. After performing some
Modifications, the administrator has the option to save them in the startup file.
configuration so that they can be reused during the next restart of the device.
48
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Cisco IOS was designed as a modal operating system. The adjective modal qualifies
a system offering different modes of operation, each with its own domain of
operation. The modes of the ILC environment are organized according to a structure
hierarchical.
49
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The figure shows the hierarchical structure of IOS modes with prompts and
classic features.
Order invitations
In the ILC environment, the mode in which you are working is recognizable by its
unique command prompt. This prompt consists of words and symbols that
appear at the beginning of the command line. As the word prompt indicates, the
the system invites you to make an entry.
By default, any prompt starts with the device name. After the name of the
device, the rest of the prompt specifies the mode. For example, the default prompt for the
global configuration mode on a router is:
Router(config)#
As shown in the figure, when you enter commands and switch from one mode to
The other, the prompt changes to reflect the current context.
Main modes
For security reasons, Cisco IOS provides two distinct access modes for sessions.
execution.
These two main access modes are used within the framework of the structure.
hierarchical of the Cisco ILC environment.
50
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
These two modes offer similar commands. However, the execution mode
The privileged individual enjoys broader powers in the actions that he is allowed to execute.
The user execution mode has restricted powers but allows for operation.
certain basic operations. User mode is at the top of the
hierarchical structure of IOS modes. This mode is the initial entry point into
the ILC environment of an IOS router.
The user execution mode is recognized by the ILC prompt that ends with the symbol
Here is an example showing the symbol > in the prompt:
Router>
Preferred mode
The privileged execution mode is recognized by the prompt that ends with the symbol #:
Router#
By default, the privileged execution mode does not require authentication. Therefore, it is
It is recommended to ensure that authentication is configured.
51
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
52
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
53
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
STATIC ROUTING
Configure static routes ip route [Link] [Link]
CESIM(config)#
[Link]
DIAGNOSTIC
Display the routing table CESIM # show ip route
Display the configuration CESIM # show running configuration
Protocols and interface statuses CESIM # show ip brief
Ping CESIM # ping @ip
Show the route taken by a packet CESIM # Traceroute @ip
54
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
55
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The data link layer connects the software and hardware layers. It exists in
as a connection layer between the software processes of the layers located below
above and the physical layer located beneath. As such, it prepares the
network layer packets to be transmitted over a certain type of medium (copper, fiber or
air).
The data link layer is responsible for the exchange of frames between nodes.
through the supports. It provides two basic services:
• It allows the upper layers to access the supports through techniques.
such as the locking (creation) of frames;
• She controls how the data is placed on the media and received
supports through techniques such as access control to the support and the
error detection.
56
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Support, uncapsulate the frame, then forward the packet in a new frame.
corresponding to the support of this segment of the physical network.
In the figure, each connection established between the devices uses a different medium.
An Ethernet connection can be established between the PC and the router. Routers are
connected via a satellite link and the laptop is connected to the last one
routeur via une liaison sans fil. Dans cet exemple, pendant son voyage du PC vers
the laptop, an IP packet is encapsulated in an Ethernet frame, decapsulated,
processed, then encapsulated in a new data link frame to cross the
satellite link. For the last link, the packet uses a link frame of
wireless data from the router to the laptop.
Without the data link layer, a network layer protocol (for example, IP)
should plan to establish a connection to every type of support that may appear along
of a delivery path. Furthermore, the IP protocol should adapt to each
development of a new network technology or a new medium. This
the process would hinder innovation and the development of protocols and
network supports. This is one of the major reasons for the layered approach
applied to networks.
57
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
At the level of intermediate devices such as a router, where the type of media
may vary depending on each connected network, different physical interfaces on the
Routers are used to encapsulate the packet in the appropriate frame and a
appropriate access control method for the support is used to access each
liaison.
58
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The fields located at the end of the frame constitute the tail of the band. These fields are
used for error detection and mark the end of the frame.
59
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Access control to the support (MAC, Media Access Control): The sub-layer
MAC ensures data link layer addressing and delimitation of
data according to the requirements of the physical signaling of the support and the
type of data link layer protocol used.
60
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
61
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
the MAC address of the device. If they match, the device accepts the
frame.
Source MAC Address Field: This 6-byte field identifies the interface
or the network card sending the frame.
- Length/Type Field: This 2-byte field defines the exact length of the field
of the frame data. This length is then used in the sequence of
frame control, to ensure the message is received. A length or a type
may be entered in this field. However, only one or the other can be used in
a given implementation. If the field aims to designate a type, the
champ Type describes the protocol implemented.
- Frame Control Sequence Field: This 4-byte field allows for detection
the errors of a frame.
The OSI physical layer provides the means to transport bits over the network medium.
constituting a data link layer frame. This layer accepts a frame
complete the data link layer and the code in the form of a series of signals
transmitted on the local medium. The coded bits forming a frame are received by a
final or intermediate peripheral.
62
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The transmission of frames over the local medium requires the components of the physical layer.
following:
• physical components;
• data coding;
• signaling.
Physical components
The physical elements are electronic peripherals, media, and connectors.
which transport and transmit signals to represent bits.
Coding
Coding is a method of converting a stream of data bits into a predefined code.
Codes are groupings of bits used to provide a predictable model.
that can be recognized by both the sender and the receiver. The use of templates
predictable helps to distinguish data bits from control bits and to provide a
better detection of support errors.
Signaling
The physical layer must generate the electrical, optical, or wireless signals that
represent the 1 and 0 on the medium. The method of representing bits is
called signaling method. The physical layer standards must define the
type of signal representing a 1 and a 0. It can simply be a change of
level of the electrical signal or optical pulse, or a signaling method
more complex.
It is also the responsibility of the physical layer to retrieve these individual signals from
to support, to restore their binary representations and to transmit the bits to the
data link layer in the form of a complete frame.
63
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The representation of bits (that is, the type of signal) depends on the type of medium.
For a copper cable support, the signals are variations of pulses.
electric. For fiber optics, the signals are variations of light. For the
Wireless supports, signals are variations of radio transmissions.
For example, the standards for copper supports are defined for:
• the type of copper wiring used
• the bandwidth of communication
• the type of connectors used;
• the wiring and color codes of the connections with the support;
• the maximum distance of the support.
64
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Wireless supports.
Bandwidth
The ability of a medium to carry data is described as bandwidth.
of raw data from the support. Digital bandwidth measures the amount
information that can move from one location to another over a period of time
Data. Bandwidth is usually measured in kilobits per second (Kbits/s)
or megabits per second (Mbits/s).
Gross flow
The throughput is the measure of the transfer of bits over the medium during a given period.
Due to a number of factors, the flow generally does not correspond to the
bandwidth specified in physical layer implementations such as Ethernet.
Many factors influence the flow rate. These factors include the amount of
traffic, its type, as well as the number of devices encountered on the measured network.
65
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
A third measure has been created to calculate usable data transfer. This
The measure is called application throughput. It corresponds to the usable data transferred.
over a given period, and consequently represents the most measure
interesting for network users.
Unlike the raw throughput, which measures the transfer of bits and not the transfer of
usable data, the application throughput does not take into account the bits dedicated to overhead
related to the protocol. The application throughput corresponds to the raw throughput minus the overhead
traffic for session establishment, receipts, and encapsulation.
Let's take for example two hosts on a local network transferring a file. The bandwidth
The LAN throughput is 100 Mbits/s. Following the sharing and overload of the medium, the
The throughput between the computers is only 60 Mbits/s. With the process overhead.
of TCP/IP stack encapsulation, the actual data rate received by the computer of
The destination (application throughput) is only 40 Mbits/s.
67
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Straight cables.
Identifying the cable standard used allows you to determine if you are using
the cable suitable for the task. Use straight cables for the following connections:
• Ethernet port switch of a router;
• Switch computer;
• Hub computer.
2. TCP/IP Model
The TCP/IP model is an open standard; no company controls the definition of it.
model.
68
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
The protocols that make up the TCP/IP protocol suite can be described according to
the terms of the OSI reference model. In the OSI model, the network access layer and the
The application layer of the TCP/IP model is still divided to describe functions.
discreet ones that must intervene at the level of these layers.
69
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
At the level of the network access layer, the TCP/IP protocol suite does not specify
which protocols to use when transmitting over a physical medium; it
describe only the handover from the Internet layer to the physical network protocols.
OSI layers 1 and 2 deal with the procedures necessary for access to the media and the
physical means to send data across a network.
The main parallels between the two network models are found at layers 3 and 4.
of the OSI model. Layer 3 of the OSI model, the network layer, is used almost everywhere.
in the world in order to address and document the range of processes that
intervene in all data networks to address and route
messages across an inter-network. The IP protocol is the protocol of the TCP/IP suite.
which contains the feature described at layer 3.
Layer 4, the transport layer of the OSI model, is often used to describe services or
general functions that manage individual conversations between hosts
source and destination. These functions include the receipt, the resumption on error and the
sequencing. At this layer, the TCP/IP Transmission Control protocols
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) provide the functionalities
necessary.
70
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Chapter III
Network Models: Client-Server and Peer
to Peer
71
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
1. Client-server model
When the user tries to access the information located on their device, they
whether it's a PC, a laptop, a personal digital assistant, a
mobile phone or other device connected to the network, the data may not
cannot be stored on this device. In this case, a request for access to the information
doit être adressée au niveau du périphérique sur lequel résident les données.
Although the data is generally described as being transmitted from the server
To the client, some data is always transmitted from the client to the server. The flow of
data can be equal in both directions or even more significant in the client direction
to the server. For example, a client can transfer a file to the server for purposes
storage. The transfer of data from a client to a server is referred to as
download amount. The transfer of data from a server to a client is
designated by the term download.
72
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
73
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
74
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
[Link].Accommodation Categories
Dedicated accommodations
The client has their own server and can generally manage it as they wish.
but the server provider remains the owner of the server. This is the most
expensive but also the most efficient.
Thin client
The client workstation accesses an application located on a computer (the server) via a
interface and a web browser. The application runs entirely on the server,
The client posts receives the pre-made response to the request they made.
75
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Thick client
The client workstation must have an operating system capable of running locally a
part of the treatments. The processing of the response to the user client's request will
implement a combined work between the server computer and the client workstation.
In addition to the client/server network model, there is also a Peer to Peer model.
(peer to peer, in French). The Peer to Peer network involves two different forms: the
Peer to Peer network design and Peer to Peer (P2P) applications. The two
forms have similar characteristics but, in fact, function very
differently.
For example, a simple home network connecting two computers that share
a printer is a Peer to Peer network. Each user can configure their
computer to share files, run network games or share a
Internet connection. Another example of a Peer to Peer network: two connected computers
to a large network and using software applications to share resources
through the network.
76
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
security and access rules for networks with more than a few computers.
Accounts and user access rights must be defined individually for each
homologous device.
BitTorrent
BitTorrent is a method for widely distributing large amounts of data.
by distributing the inherent load in terms of equipment, Internet hosting and
bandwidth.
Gnutella
In Gnutella, each node acts as both a server and a client. Each server is
connected to a set of neighbors. To initiate a search, a server queries all
77
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
his neighbors by sending them a search message. His neighbors do the same with
their own neighbors.
Servers with files that respond to the request send their response (name
to the neighbor who relayed the request to them. The response
climbs back up step by step to the server that initiated the request. The server
the requester will then choose the files to download by sending
directly a download request to the server that has the file.
IPCONFIG
The network command 'ipconfig' allows you to display the IP properties of the computer.
For each card, we find the IP address, the subnet mask, and the gateway.
default.
Command 'ipconfig'.
In our example, for the Ethernet card, we find the IP address ([Link]), the
subnet mask ([Link]) and the default gateway ([Link]).
IPCONFIG /ALL
The command "ipconfig /all" displays a summary of the IP properties of the network cards.
78
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
Identical to the previous one but more complete, 'IPCONFIG /all' also displays the
host name (of the computer), the description of the card and its MAC address, etc.
PING
It allows you to determine if the connection to an IP address is effective by displaying
the commands actually received. It is based on the ICMP network protocol.
Fig. Command 'ping [Link]' where [Link] represents the domain name of a website.
Tracert
This command allows you to display the hops when connecting to the IP address (X.X.X.X)
or the domain name ([Link]).
79
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
NETSTAT
This command displays all active (listening) ports on a computer
both in TCP and in UDP. It allows for example to detect harmful programs.
ARP
This command is used for the ARP (Address Reverse Protocol) network protocol.
It allows you to display and modify the IP address / physical (MAC) mappings.
of a network card).
ARP -a displays the IP address / MAC address mapping of computers and devices.
connected. Dynamic mappings use DHCP to configure the address
IP.
80
Sources: CCNA (Cisco Certified Network Associate)
Computer Networks Prepared by: A. S. Mabunda
81
Sources: CCNA (Cisco Certified Network Associate)