Report 3: Design of A Network: Presented by
Report 3: Design of A Network: Presented by
Report 3: Design of A Network: Presented by
Presented By:
•Jad Nassif
•Mathieu Chamoun
1
1-Communication Types
2
A. Request/Reply
Request/Reply Communication
Common technique for one application to request the
services of another.
3
Example of Request/Response
Communication in Online Banking
4
A. Request/Reply
Advantages Disadvantages
5
B.Message Stream
• Setting up a stream between two processes across a network.
Message Stream
• Setting up a stream directly between two devices.
2-35.2
Message Stream
• An example of multicasting a stream to several receivers.
Message Stream
Unicast Streaming Network Multicast Streaming Network
9
•The 2 entities send a stream(flow) of messages
between each other where the receiver start
processing the received message before it is
completely delivered.
•Message stream ensures privacy and integrity of
the data.
•It supports multicasting to allow multiple parties
participating in teleconference.
10
Example: streaming video(HULU.com), video
conferencing.
11
Advantages:
-Because the sequence number is included in each message
he receives, and is authenticated, each agent can be sure
that he has not missed any messages, nor received any
messages in an order other than that intended by the sender.
-Right order
Disadvantages:
-Can lose frames
-Server or client crash
12
2-Channel Communication types
13
A-Simplex
Communication
•data is transmitted in
only one direction.
•A terminal can only send
data and cannot receive
it or it can only receive
data but cannot send it.
•Simplex mode is usually
used for a remote device
that is meant only to
receive data.
•It is not possible to
confirm successful
transmission of data in
simplex mode.
14
Example of television broadcasting
15
Advantage:
Cheapest communication method.
Disadvantage:
Only allows for communication in one direction,
so it is impossible to send back error or control
signals to the transmit end.
16
B-Half Duplex
•data can be transmitted
in both directions but
only in one direction at a
time.
•During any transmission,
one is the transmitter and
the other is receiver.
•each time for sending or
receiving data, direction
of data communication is
reversed
•transmission of data can
be confirmed.
17
Example:talk-back radio (talkie-
walkie)
18
B- Half Duplex Communication
Advantages Disadvantages
• Costs less than full • Costs more than
duplex. simplex.
• Enables for two way • Only one device can
communications. transmit at a time.
• Enables to perform error • slow down data
detection and request the
transmission rate.
sender to retransmit
information that arrived
corrupted.
19
C-Full Duplex
•data can be
transmitted in both
directions
simultaneously.
•faster mode for
transmitting data.
•no need to switch
from transmit to
receive mode like
in half duplex.
20
Example: telephone set or mobile in which both the
users can talk and listen at the same time.
21
C-Full Duplex
Advantages Disadvantage
• Enables two-way • The most expensive
communication method in terms of
simultaneously. equipment because
• faster mode for of two bandwidth
transmitting data channels is required.
22
23
3-Reliability in a Network
24
3-How to Ensure reliabilities in Network
25
4-Failures in Computer Network
26
a. Bit Errors
• bit error When a single transmission bit is
corrupted
• burst error When several bits are corrupted
• error may be a conversion of 1 to 0 or a 0 to 1
• Bit errors occur due to Electromagnetic interference
• If the error cannot be corrected the entire packet of
data is discarded and request its retransmission.
• Example: original message 001011, the received
message 101001
27
b. Packet Loss
• Occurs when an entire packet is lost or discarded by
the network.
*** Reasons:
• uncorrectable error
• ‘congestion’ in the network when the buffer of a
switch or router is full
• buggy software
N.B: late arrival of a packet
Example: when the client doesn’t get a reply from the
server.
28
c. Link Failure
***Reasons:
• The physical link between nodes is cut
• Power failure
• Software Crashes
***Solutions:
• A backup circuit
• Example: Link between Node A and B is down,
therefore the traffic can’t get to B, and must find
another path not passing by B.
29
d. Node Failure
• Same reasons as for link failure…
***Solutions:
• -Setting up double switch nodes, such that when
one of them is down
• -Setting up protection paths that bypass the failed
node.
Example: A node failure can lead all the
communications of an area or a city to be totally
isolated from the remaining of the world.
30
5-Synchronization techniques
- Asynchronous communication
- Synchronous communication
31
a.Asynchronous communication
• Separate timing channel
is not used
• Data is sent in small
packets of 10 or 11 bits, 8
of which constitute
message information
• A data packet begins with
a start bit and ends with
a parity bit and stop bit
• Example: real time chat
32
b-Synchronous communication
• Separate timing channels
are used to transmit data
• The timing channel
transmits clock pulses to
the receiver
• The transmitter tells the
receiver to read the data
channel via the clock
pulse, and the data channel
is not read again until the
next clock pulse arrives
• Example: instant messaging
33
Note
4.34
Note
4.35
Figure 4.34 Asynchronous transmission
4.36
Note
4.37
Figure 4.35 Synchronous transmission
4.38
6-Multiplexing techniques
• Multiplexing methods are created by some
telephone companies to put many
conversations over a single line.
• We are going to discuss these methods:
- Frequency Division Multiplexing (FDM)
- Wave-length Division Multiplexing (WDM)
- Time Division Multiplexing (TDM)
- Statistical Multiplexing(STDM)
39
A-Frequency Division Multiplexing (FDM)
• It’s an analog technique
where each communication
channel is is assigned a
carrier frequency.
• A guard-band would be
used to separate the
channels and to ensure that
the channels do not
interfere with each other.
• Example: TV cable, Radio
station
40
41
B-Wave-length Division Multiplexing (WDM)
42
43
C-Time Division Multiplexing (TDM)
• Selects each channel for a
very short time, then goes
on to the next channel
whether the terminal is
being used or not.
• The users take turns
according to a policy (round-
robbin).
• Example: An example of
TDM is a station that has
two logical subchannels:
music and advertising. These
two alternate in time on the
same frequency. First, a
short period of music, then a
short period of advertising. 44
45
D-Statistical Multiplexing(STDM)
• Statistical Time Division
Multiplexing uses intelligent
devices that are capable of
identifying when a terminal
is idle.
• Allocate time only to lines
when required.
• More lines can be
connected to a transmission
medium because this device
statistically compensates for
normal idle time (in data
communication lines).
46