Translation

English
English French Actions
On the sender side : Du côté de l'émetteur :
set the voltage on the electrical wire at ``+5V`` during one millisecond to transmit a bit set to `1` mettre la tension sur le fil électeique à ``+5V`` pendant une milliseconde pour transmettre un bit mis à `1`
set the voltage on the electrical wire at ``-5V`` during one millisecond to transmit a bit set to `0` mettre la tension sur le fil électrique à ``-5V`` pendant une milliseconde pour transmettre un bit mis à `0`
On the receiver side : Du côté du récepteur :
every millisecond, record the voltage applied on the electrical wire. If the voltage is set to ``+5V``, record the reception of bit `1`. Otherwise, record the reception of bit `0` chaque milliseconde, enregistrer la tension appliquée sur le fil électrique. Si la tension est de ``+5V``, enregistrer le bit reçu comme étant `1`. Sinon, enregistrer le bit reçu comme étant `0`
This transmission scheme has been used in some early networks. We use it as a basis to understand how hosts communicate. From a Computer Science viewpoint, dealing with voltages is unusual. Computer scientists frequently rely on models that enable them to reason about the issues that they face without having to consider all implementation details. The physical transmission scheme described above can be represented by using a `time-sequence diagram`. Ce procédé de transmission a été utilisé pour quelques-uns des tout premiers réseaux. Nous l'utilisons comme base pour comprendre comment deux hôtes communiquent. Pour un informaticien, travailler avec des tensions est inhabituel. Les informaticiens reposent plutôt sur des modèles qui leur permettent de raisonner aux problèmes auxquels ils font face sans avoir à prendre en compte tous les détails d'implémentation. Le procédé de transmission physique décrit ci-dessus peut être représenté en utilisant un `diagramme de séquence`.
With the above transmission scheme, a bit is transmitted by setting the voltage on the electrical cable to a specific value during some period of time. We have seen that due to electromagnetic interference, the voltage measured by the receiver can differ from the voltage set by the transmitter. This is the main cause of transmission errors. However, this is not the only type of problem that can occur. Besides defining the voltages for bits `0` and `1`, the above transmission scheme also specifies the duration of each bit. If one million bits are sent every second, then each bit lasts 1 microsecond. On each host, the transmission (resp. the reception) of each bit is triggered by a local clock having a 1 MHz frequency. These clocks are the second source of problems when transmitting bits over a wire. Although the two clocks have the same specification, they run on different hosts, possibly at a different temperature and with a different source of energy. In practice, it is possible that the two clocks do not operate at exactly the same frequency. Assume that the clock of the transmitting host operates at exactly 1000000 Hz while the receiving clock operates at 999999 Hz. This is a very small difference between the two clocks. However, when using the clock to transmit bits, this difference is important. With its 1000000 Hz clock, the transmitting host will generate one million bits during a period of one second. During the same period, the receiving host will sense the wire 999999 times and thus will receive one bit less than the bits originally transmitted. This small difference in clock frequencies implies that bits can "disappear" during their transmission on an electrical cable. This is illustrated in the figure below. Avec le schéma de transmission ci-dessus, un bit est transmis en fixant la tension sur un câble électrique à une valeur spécifique durant un laps de temps donné. Nous avons vu qu'en raison des interférences électromagnétiques, la tension mesurée par le récepteur peut être différente de celle définie par l'émetteur. C'est la cause principale des erreurs de transmission. Cependant, ce n'est pas l'unique type de problème qui peut survenir. En plus de définir tes tensions spécifiques pour les bits `0` et `1`, le schéma ci-dessus définit aussi la durée de chaque bit. Si un million de bits sont envoyés chaque seconde, alors chaque bit a une durée de 1 microseconde. Sur chaque hôte, la transmission (resp. la réception) de chaque bit est déclenchée par une horloge locale ayant une fréquence de 1 MHz. Ces horloges constituent la deuxième source de problèmes lors de la transmission de bits par câble. Bien que les deux horloges aient les mêmes caractéristiques, elles tournent sur des hôtes différents, potentiellement à des températures différentes et des sources d'énergie différentes. En pratique, il est possible que les deux horloges ne soient pas précisément synchronisées sur la même fréquence. Considérons que l'horloge de l'émetteur tourne à précisément 1000000 Hz alors que l'horloge du récepteur tourne à 999999 Hz. Une différence minime entre les deux horloges, pourtant, cette différence est importante lorsque l'on utilise l'une ou l'autre horloge pour transmettre un bit. Dans le cas de l'horloge à 1 MHz, il y aura un million de bits générés durant une période de une seconde alors que pour la même durée, le récepteur ne détectera le signal sur le câble que 999999 fois et recevra un bit de moins que ce qui a été transmis initialement. Cette légère différence de fréquence implique la disparition potentielle de certains bits durant leur transmission sur un câble électrique. Ce phénomène est illustré sur la figure ci-dessous.
A similar reasoning applies when the clock of the sending host is slower than the clock of the receiving host. In this case, the receiver will sense more bits than the bits that have been transmitted by the sender. This is illustrated in the figure below where the second bit received on the right was not transmitted by the left host. Un raisonnement similaire s'applique lorsque la fréquence d'horloge de l'hôte émetteur est plus basse que celle de l'hôte récepteur. Dans ce cas, le récepteur va mesurer plus de bits que ce qui n'a été transmis par l'émetteur. La figure ci-dessous illustre ce phénomène. Le second bit reçu à droite n'a pas été transmis par l'hôte de gauche.
the `Physical layer service` may change, e.g. due to electromagnetic interference, the value of a bit being transmitted le `service de la couche physique` peut changer, c'est le cas notamment lors d'interférences électromagnétiques où la valeur d'un bit transmis peut être altérée
the `Physical layer service` may deliver `more` bits to the receiver than the bits sent by the sender le `service de la couche physique` peut délivrer `plus` de bits au récepteur que l'émetteur n'en a réellement envoyé
the `Physical layer service` may deliver `fewer` bits to the receiver than the bits sent by the sender le `service de la couche physique` peut délivrer `moins` de bits au récepteur que ce qui a été envoyé par l'émetteur
Many other types of encodings have been defined to transmit information over an electrical cable. All physical layers are able to send and receive physical symbols that represent values `0` and `1`. However, for various reasons that are outside the scope of this chapter, several physical layers exchange other physical symbols as well. For example, the Manchester encoding used in several physical layers can send four different symbols. The Manchester encoding is a differential encoding scheme in which time is divided into fixed-length periods. Each period is divided in two halves and two different voltage levels can be applied. To send a symbol, the sender must set one of these two voltage levels during each half period. To send a `1` (resp. `0`), the sender must set a high (resp. low) voltage during the first half of the period and a low (resp. high) voltage during the second half. This encoding ensures that there will be a transition at the middle of each period and allows the receiver to synchronize its clock to the sender's clock. Apart from the encodings for `0` and `1`, the Manchester encoding also supports two additional symbols : `InvH` and `InvB` where the same voltage level is used for the two half periods. By definition, these two symbols cannot appear inside a frame which is only composed of `0` and `1`. Some technologies use these special symbols as markers for the beginning or end of frames. De nombreux autres types de codages ont été définis pour transmettre des informations sur un câble électrique. Toutes les couches physiques sont capables d'envoyer et de recevoir des symboles physiques qui représentent les valeurs `0` et `1`. Cependant, pour diverses raisons qui sortent du cadre de ce chapitre, plusieurs couches physiques échangent également d'autres symboles physiques. Par exemple, le codage Manchester utilisé dans plusieurs couches physiques peut envoyer quatre symboles différents. Le codage Manchester est un schéma de codage différentiel dans lequel le temps est divisé en périodes de longueur fixe. Chaque période est divisée en deux moitiés et deux niveaux de tension différents peuvent être appliqués. Pour envoyer un symbole, l'expéditeur doit définir l'un de ces deux niveaux de tension pendant chaque demi-période. Pour envoyer un `1` (resp. `0`), l'expéditeur doit définir une tension élevée (resp. faible) pendant la première moitié de la période et une tension faible (resp. élevée) pendant la seconde moitié. Ce codage garantit qu'il y aura une transition au milieu de chaque période et permet au récepteur de synchroniser son horloge avec celle de l'émetteur. Outre les codages pour `0` et `1`, le codage Manchester supporte également deux symboles supplémentaires : `InvH` et `InvB` où le même niveau de tension est utilisé pour les deux demi-périodes. Par définition, ces deux symboles ne peuvent pas apparaître à l'intérieur d'une trame qui n'est composée que de `0` et `1`. Certaines technologies utilisent ces symboles spéciaux comme marqueurs de début ou de fin de trame.
Manchester encoding Le codage Manchester
All the functions related to the physical transmission or information through a wire (or a wireless link) are usually known as the `physical layer`. The physical layer allows thus two or more entities that are directly attached to the same transmission medium to exchange bits. Being able to exchange bits is important as virtually any information can be encoded as a sequence of bits. Electrical engineers are used to processing streams of bits, but computer scientists usually prefer to deal with higher level concepts. A similar issue arises with file storage. Storage devices such as hard-disks also store streams of bits. There are hardware devices that process the bit stream produced by a hard-disk, but computer scientists have designed filesystems to allow applications to easily access such storage devices. These filesystems are typically divided into several layers as well. Hard-disks store sectors of 512 bytes or more. Unix filesystems group sectors in larger blocks that can contain data or `inodes` representing the structure of the filesystem. Finally, applications manipulate files and directories that are translated in blocks, sectors and eventually bits by the operating system. Toutes les fonctions liées à la transmission physique ou à l'information transmise à travers un câble (ou une connexion sans fil) sont regroupées sous l'appellation `couche physique`. La couche physique permet ainsi à deux entités ou plus qui sont directement reliées par un même moyen de transmission d'échanger des bits. Pouvoir échanger des bits est fondamental puisque pratiquement n'importe quelle information peut être encodée comme une séquence de bits. Les ingénieurs électriciens sont habitués à traiter des flux de bits mais les informaticiens préfèrent habituellement faire usage de concepts plus haut niveau. Un problème similaire se pose quant aux systèmes de fichiers. Les périphériques de stockage tels que les disques durs stockent également des flux de bits. Il y a des périphériques matériels qui traitent directement le flux de bit produit par le disque dur mais les informaticiens ont conçu des systèmes de fichiers destinés à permettre aux applications d'accéder facilement à ces périphériques de stockage. Ces systèmes de fichiers sont généralement également divisés en plusieurs couches. Les disques durs stockent des secteurs de 512 bytes ou plus. Les systèmes de fichiers Unix regroupent les secteurs par blocs plus larges pouvant contenir des données ou `inodes` représentant la structure du système de fichiers. Enfin, les applications manipulent des fichiers et répertoires qui sont traduits en blocs, secteurs et enfin en bits par le système d'exploitation.
Computer networks use a similar approach. Each layer provides a service that is built above the underlying layer and is closer to the needs of the applications. The datalink layer builds upon the service provided by the physical layer. We will see that it also contains several functions. Les réseaux informatiques utilisent une approche similaire. Chaque couche fournit un service construit sur la couche en-dessous et est plus proche des besoins des applications. La couche de liaison de données est construite à partir du service fourni par la couche physique. Nous allons voir qu'elle contient aussi plusieurs fonctions.
The datalink layer La couche de liaison de données
To enable the transmission/reception of frames, the first problem to be solved is how to encode a frame as a sequence of bits, so that the receiver can easily recover the received frame despite the limitations of the physical layer.
If the physical layer were perfect, the problem would be very simple. We would simply need to define how to encode each frame as a sequence of consecutive bits. The receiver would then easily be able to extract the frames from the received bits. Unfortunately, the imperfections of the physical layer make this framing problem slightly more complex. Several solutions have been proposed and are used in practice in different network technologies.
Framing
The `framing` problem can be defined as : "`How does a sender encode frames so that the receiver can efficiently extract them from the stream of bits that it receives from the physical layer`".
A first solution to this problem is to require the physical layer to remain idle for some time after the transmission of each frame. These idle periods can be detected by the receiver and serve as a marker to delineate frame boundaries. Unfortunately, this solution is not acceptable for two reasons. First, some physical layers cannot remain idle and always need to transmit bits. Second, inserting an idle period between frames decreases the maximum bit rate that can be achieved.
Bit rate and bandwidth
Bit rate and bandwidth are often used to characterize the transmission capacity of the physical service. The original definition of `bandwidth <https://www.merriam-webster.com/dictionary/bandwidth>`_, as listed in the `Webster dictionary <https://www.merriam-webster.com/dictionary>`_ is `a range of radio frequencies which is occupied by a modulated carrier wave, which is assigned to a service, or over which a device can operate`. This definition corresponds to the characteristics of a given transmission medium or receiver. For example, the human ear is able to decode sounds in roughly the 0-20 KHz frequency range. By extension, bandwidth is also used to represent the capacity of a communication system in bits per second. For example, a Gigabit Ethernet link is theoretically capable of transporting one billion bits per second.
Given that multi-symbol encodings cannot be used by all physical layers, a generic solution which can be used with any physical layer that is able to transmit and receive only bits `0` and `1` is required. This generic solution is called `stuffing` and two variants exist : `bit stuffing` and `character stuffing`. To enable a receiver to easily delineate the frame boundaries, these two techniques reserve special bit strings as frame boundary markers and encode the frames so that these special bit strings do not appear inside the frames.
`Bit stuffing` reserves the `01111110` bit string as the frame boundary marker and ensures that there will never be six consecutive `1` symbols transmitted by the physical layer inside a frame. With bit stuffing, a frame is sent as follows. First, the sender transmits the marker, i.e. `01111110`. Then, it sends all the bits of the frame and inserts an additional bit set to `0` after each sequence of five consecutive `1` bits. This ensures that the sent frame never contains a sequence of six consecutive bits set to `1`. As a consequence, the marker pattern cannot appear inside the frame sent. The marker is also sent to mark the end of the frame. The receiver performs the opposite to decode a received frame. It first detects the beginning of the frame thanks to the `01111110` marker. Then, it processes the received bits and counts the number of consecutive bits set to `1`. If a `0` follows five consecutive bits set to `1`, this bit is removed since it was inserted by the sender. If a `1` follows five consecutive bits sets to `1`, it indicates a marker if it is followed by a bit set to `0`. The table below illustrates the application of bit stuffing to some frames.

Loading…

User avatar pdan1

New translation

cnp3-ebook / principles/reliabilityFrench

2 years ago
Browse all component changes

Glossary

English French
No related strings found in the glossary.

String information

Source string location
../../principles/reliability.rst:160
String age
4 years ago
Source string age
4 years ago
Translation file
locale/fr/LC_MESSAGES/principles/reliability.po, string 37