Docsity

Data access and web Diritto e tecnologia, Dispense di Database Distribuiti

Toggle sidebar
bg1
Data access and web
27/09/2022
Introduzione
Computer Cambridge Dictionary
An electronic machine that is used for storing, organizing, and
finding words, numbers, and pictures, for doing calculations, and
for controlling other machines.
Network definition according to the Cambridge Dictionary
A large system consisting of many similar parts that are connected
together to allow movement or communication between or along the
parts, or between the parts and a control center
A number of computers that are connected together so that they can
share information:
With computers you can mean PC, smartphone, desktop computers ecc.
All these entities are connected through a network, a computer
network is created through telecommunication. It means that we can
create something that can connect the different entities by defining
ways, rules to connect the entities . Telecommunications means
transmitting something over distance.
Telecommunication started a long time
ago with the telegraph. The first
computers were very huge because they
had a lot of entities and moving parts
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Anteprima parziale del testo

Scarica Data access and web Diritto e tecnologia e più Dispense in PDF di Database Distribuiti solo su Docsity!

Data access and web

Introduzione

Computer Cambridge Dictionary

An electronic machine that is used for storing, organizing, and finding words, numbers, and pictures, for doing calculations, and for controlling other machines.

Network definition according to the Cambridge Dictionary

A large system consisting of many similar parts that are connected together to allow movement or communication between or along the parts, or between the parts and a control center

A number of computers that are connected together so that they can share information:

With computers you can mean PC, smartphone, desktop computers ecc. All these entities are connected through a network, a computer network is created through telecommunication. It means that we can create something that can connect the different entities by defining ways, rules to connect the entities. Telecommunications means transmitting something over distance.

Telecommunication started a long time ago with the telegraph. The first computers were very huge because they had a lot of entities and moving parts

connected together. But we can date the start of telecommunication even before the telegraph.

The starting point was the prehistoric era with smoke signals. Then they switched to pigeon. But then they realize it isn9t reliable (it can die, lose the way). Then they switched to cable.

TLC = telecommunication IT = Information Technology ITE = Information engineering

In 4G and 5G the G stands for generation

Basic concepts

A communication system is composed of 2 fundamentals: the sender and the receiver. The data we receive are different from the one we send, according to the situation. Like when we speak we transmit the data through the sound, and the data received depends on the distance, shorter the distance the better the quality, some part of the message can be lost if the person who listens is too far to hear. All the things between the source and the receiver are called the channel. Between people the channel can be air, in other cases the wire connection between devices. The channel can be wired or not. But we want for the received data to be as similar as possible to the transmitted data, we need a media to transmit the information like the mike. A transmitter converts the data into a signal, (like during a voice call the voice is converted into an electromagnetic signal), and then the receiver needs a device that converts the signal back into data (the electromagnetic wave is then reconverted in voice from the receiver device). The telephone, when you send a message, converts the data into signals that are transmitted through the channel, wirelessly or wired or a combination of them, then the receiving device converts the signals back into data. The signal usually reaches an antenna of an ISP (internet service provider) and then from there they go through wired cable and reach the server of the telecommunication company of the receiving device and then the message is sent from an antenna of the receiving device9s ISP, and received, converted into data (sounds) and listened. The basic scheme is: a SOURCE who want to transmit DATA, a TRANSMITTER convert the DATA into SIGNAL that are transmitted through the CHANNEL, that cannot be controlled, the RECEIVER converts the SIGNAL into DATA, that are received by the TRANSMITTER. The channel can also be a combination of different types (Fiber cable under the ocean) of transmission medium.

In order for the communication to start we have to agree to some ground rules. The rules in

the IT world are called PROTOCOLS.

Something cannot be decided by a single computer because the decisions can change according to the different computers, so in order for a connection to be established and the information correctly transmitted we need that every computer agrees on the same rules. In a protocol we have:

  • definition of how we address a specific device inside the network. In order to communicate device to device;
  • the specification of the form of the message;
  • the order of how the message is transmitted. The same order will be followed by the receiver in order to understand the message;
  • what to do in an unwanted situation; A computer network is composed of < bones = that are the singol nodes (devices like computers, printers, phones, every device connected to the network).

The < soul = are the rules, the protocols, that the devices need to follow in order to correctly establish a connection.

Physical architecture

How the different computers and other devices are connected with each other, through the air or through cable. The logical architecture description of how 2 entities are connected over other different entities.

Connects devices inside a building or a region, like in the Papa Luciani when you connect to the new Wi - Fi.

  1. WSN (Wireless Sensor Network)

It describes networks that connect small devices that are battery restrained and so the network needs to use little battery in order to establish the connection. To create this type of network we need a lot of nodes, because we need to create a network that captures a lot of information from the environment and measures and performs other analisis.

Internetwork

A connection of 2 or more networks is called internet. Which is not the Internet with the capital I. To connect two LANs we create a new network called WAN. The entities R1 and R2 are the switching units that allow us to connect the 2 LAN. The LANs in the WAN became the access (edge) network , because they are the parts of the network to

which you connect to at the edge of the network; the other part of the network we don9t see, is called transport (core) network (the WAN), they transport the information through the LANs.

The part in blue is the transport network, while the one in green is the access network, at the edge of the network that is connected through the transport network. The router you connect to from your home is a part of the access (edge) network, while the invisible part that connects all the access point are called transport (core) network.

Network topologies (access edge network)

BUS NETWORK

In this type of topology all the nodes are connected through a cable. The problem is that there can be a collision, so the information cannot pass correctly from one node to the other, this happens when all the devices start to speak at the same time and the information gets lost. To avoid this problem all the devices before they start to speak, they need to accept some ground rules (protocols) before they start to communicate. So they establish turns to communicate. Broadcast means one node can send a message to all the devices (broadcast channel), but also to only one device. If one of the nodes fails we don9t have any problem because all the devices can keep communicating with each other, while if we have a cable failure all the network goes down.

STAR NETWORK

router and wirelessly to our friend9s phone. The logical architecture means we focus on the devices that send and receive, we don9t care about the links.

First possible logical architecture CLIENT-SERVER We have our device and our friend's device. They are logically connected to a server. We cannot communicate directly from one device to the other we need to pass from the server. The server has to be always-on to allow clients to communicate, if the server is off clients cannot reach each other directly. We use a higher level of abstraction (to abstract means to semplificate).

Second possible logical architecture PEER-TO-PEER The nodes can communicate with each other directly. Difficult to manage because there is no central authority, the singole devices are responsible for the correct transmission of the information.

NON SERVE RICORDARE LE DATE

The GARR is the ISP of all the universities in Italy. It connects all the universities.

It allows all the ISPs to be connected among them. It9s what permits us to communicate with someone who has a different ISP.

MIX isn9t an ISP but only a NAP.

The Protocol Stack

Now we focus on what we previously called

The TCP/IP

protocol suite

TCP/IP is the main protocol used on the internet. It9s a protocol stack. There is a set of protocols which we use every day to access the internet. Each of these protocols is a layer. The communication does not go directly from the sender and the receiver but it goes through the stack. We have only a logical link. When you type an URL on a browser you are using the application layer, then the message is processed from all the other layers till the physical one. On the other side then there is the reverse process. The message on a layer is called PDU. Then it becomes the SDU when it passes to the layer below, this layer does something and takes the SDU, inserts it in a package and puts some information at the beginning called PCI. This information is what is needed for that layer to perform a task.

E.g. The layer N+1 is the application layer. We

have a message that has to be delivered, this is a PDU. This message is passed to the other layer, the other layer adds some information that is needed to perform what that layer is in charge of. Each layer has a protocol data unit, composed of some information PCI (protocol control information) and the PDU from the precedent layer (it9s called now SDU service data unit, a name which the PDU takes in the moment it passes to the layer below). This process of adding PCI to the SDU (PDU), is called encapsulation. The part that is added from the single layers, the PCI, is called header. At the receiver we have the decapsulation.

The single layers of the TCP/IP model

THE PHYSICAL LAYER (PHY)

It9s the one responsible for the delivery of the message. The message is transmitted through signals, it takes the data from the data link layer (1s and 0s) and converts them into another kind of signal to be transmitted over the channel.

DATA LINK LAYER (DLL)

It9s above the physical layer and it9s responsible for creating a link with the next physical device and sending a message to one device from another device physically connected between each other within a single link. E.g. the link between

We don9t have an error recovery application so we need to rely on the data and transport layer for error control. Also at the network layer we need addressings, but the MAC is not enough, because we also need at this layer to identify a single network, so we are looking at a global scope. Inside a single network we are identified by a single MAC address, while our network is identified by all the other networks with the IP address. When we access the internet we use an IP address.

TRANSPORT LAYER

It9s the one responsible for creating a one-to-one connection where we find a logical client-server approach. Since it offers a logical connection it doesn9t care about the topology. This layer has a powerful error-control service that, if triggered, can ask for retransmission. It also offers control flow so we avoid congestion in the network.

APPLICATION LAYER

When you type on the browser you are working on the application layer.

Switching devices

We have 2 types of switching devices used to connect: ● terminal devices 3> to form a local area network (LAN)

● two or more LANs ---> to form a wide area network (WAN)

Switching devices are different from modems