Академический Документы
Профессиональный Документы
Культура Документы
1. Communications
Information can be distributed very quickly, such as email and video conferencing.
2. Saving Money
Resources such as information, software, and hardware can be shared.
OSI model
The Open Systems Interconnection (OSI) model began as a reference model, but has since
been implemented.
It was created by the International Organization for Standardization (ISO) to provide a logical
framework for how data communication processes should interact across networks
There are 7 layers in the OSI model. Each layer is responsible for a particular aspect of data
communication.
It is therefore often referred to as the OSI Seven Layer Model.
ECE 1
I. APPLICATION
The Application layer provides network services directly to the user's application such as
a web browser, email software and Windows Explorer. This layer is said to be "closest to
the user".
II. PRESENTATION
This layer 'represents' the data in a particular format to the Application layer. It defines
encryption, compression, conversion and other coding functions.
IV. TRANSPORT
V. NETWORK
Main topics:
Internet Protocol (IP) addressing and routing
Bridges
VII. PHYSICAL
Convert the logical 1s and 0s coming from layer 2 into electrical signals.
Transmission of the electrical signals over a communication channel.
ECE 2
Error
Topics:
Types of Errors
Detection
Correction
Flow control
Error control
Definition of Error
Networks must be able to transform data from once device to another with complete
accuracy. While the transmission data can be corrupted, for reliable communication
errors must be detected and corrected.
Environmental interference and physical defects in the communication medium can cause
random bit errors during data transmission.
Error detection and correction are implemented either at data link layer or the transport
layer of the OSI model.
Types of Errors
ECE 3
Single-bit errors
Only one bit in the data unit has changed
Burst errors
It means that two or more bits in the data unit has changed.
Redundancy
Error detection uses the concept of redundancy, which means adding extra bits for detecting
error at the destination
Instead of repeating the entire data stream, a shorter group of bits may be appended to the
end of each unit. This technique is called Redundancy because the extra bit are redundant
to the information. They are discarded as soon as the accuracy of the transmission has been
determined.
ECE 4
Detection/Correction Techniques
Parity Checks
Check summing methods
Cyclic redundancy checks
ECE 5
Parity Checks
In parity check, a parity bit is added to every data unit so that the total number of 1s is even
ECE 6
Parity for each character (byte=line) + parity for each column (set of data bytes sent)
ECE 8
Example: detect error happened or not
Error correction
Two methods
When an error is discovered, the receiver can have the sender retransmit the entire data unit.
Receiver can use an error correcting code, which automatically corrects certain errors
ECE 9
Hamming Code
Hamming code can be applied to data units of any length and uses the relationship between
data and redundancy bits. For e.g.
A 7 bit ASCII code requires 4 Redundancy bits that can be added to the end of the data unit
or interspersed with the original data bits
These bits are placed in positions 1, 2, 4 and 8. We refer to these bits as r1, r2, r4 and r8.
In the Hamming code, each r bit is the CRC bit for one combination of data bits :
The combination used to calculate each of the four values for a 7 bit data sequence are as
follows :
- r1 : bits 1,3,5,7,9,11.
- r2 : bits 2,3,6,7,10,11.
- r4 : bits 4,5,6,7.
- r8 : bits 8,9,10,11.
ECE 10
Data and redundancy bits
2r m r 1
ECE 11
Flow and Error Control
Flow Control
Flow control coordinates the amount of data that can be sent before receiving
acknowledgement
It is one of the most important functions of data link layer.
Flow control is a set of procedures that tells the sender how much data it can transmit
before it must wait for an acknowledgement from the receiver.
Receiver has a limited speed at which it can process incoming data and a limited amount
of memory in which to store incoming data.
Receiver must inform the sender before the limits are reached and request that the
transmitter to send fewer frames or stop temporarily.
Since the rate of processing is often slower than the rate of transmission, receiver has a
block of memory (buffer) for storing incoming data until they are processed.
Error Control
1. Stop-and-Wait
2. Go-Back-N ARQ
3. Selective-Repeat ARQ
ECE 12
Flow and Error control
1. Stop-and-Wait
For identification, both data frames and acknowledgements (ACK) frames are numbered
alternatively 0 and 1.
Sender has a control variable (S) that holds the number of the recently sent frame. (0 or 1)
Receiver has a control variable R that holds the number of the next frame expected (0 or 1).
Sender starts a timer when it sends a frame. If an ACK is not received within a allocated
time period, the sender assumes that the frame was lost or damaged and resends it
ACK number always defines the number of the next expected frame
ECE 13
EOT: End of Transmission
Disadvantage of Stop-and-Wait
In stop-and-wait, at any point in time, there is only one frame that is sent and waiting to be
acknowledged.
To improve efficiency, multiple frames should be in transition while waiting for ACK.
2. Go-Back-N ARQ
ECE 14
In a GBN protocol, the sender is allowed to transmit multiple packets (when available)
without waiting for an acknowledgement, but is constrained to have no more than some
maximum allowable number, N, of unacknowledged packets in the pipeline.
ECE 15
3. Selective Repeat ARQ
Go-Back-N ARQ simplifies the process at the receiver site. Receiver only keeps track of
only one variable, and there is no need to buffer out-of-order frames, they are simply
discarded.
However, Go-Back-N ARQ protocol is inefficient for noisy link. It bandwidth inefficient
and slows down the transmission.
In Selective Repeat ARQ, only the damaged frame is resent. More bandwidth efficient
but more complex processing at receiver.
It defines a negative ACK (NAK) to report the sequence number of a damaged frame
before the timer expires.
ECE 16
Chapter 1 and 2 End
ECE 17