3-mux & switching

Upload: anusainimtech

Post on 05-Apr-2018

234 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 3-Mux & Switching

    1/61

    Data Communication and Networks

    (Multiplexing and Switching)

  • 7/31/2019 3-Mux & Switching

    2/61

    MULTIPLEXING

  • 7/31/2019 3-Mux & Switching

    3/61

    Figure 1 Dividing a link into channels

  • 7/31/2019 3-Mux & Switching

    4/61

    Figure 2 Categories of multiplexing

  • 7/31/2019 3-Mux & Switching

    5/61

    Figure 3 FDM

  • 7/31/2019 3-Mux & Switching

    6/61

    FDM is an analog multiplexing

    technique that combines signals.

    Note:

  • 7/31/2019 3-Mux & Switching

    7/61

    Figure 4 FDM process

  • 7/31/2019 3-Mux & Switching

    8/61

    Figure 5 FDM demultiplexing example

  • 7/31/2019 3-Mux & Switching

    9/61

    Frequency Division Multiplexing

    FDMUseful bandwidth of medium exceeds required

    bandwidth of channel

    Each signal is modulated to a different carrierfrequency

    Carrier frequencies separated so signals do notoverlap (guard bands)

    e.g. broadcast radio

    Channel allocated even if no data

  • 7/31/2019 3-Mux & Switching

    10/61

    Frequency Division Multiplexing

    Diagram

  • 7/31/2019 3-Mux & Switching

    11/61

  • 7/31/2019 3-Mux & Switching

    12/61

    Time Division Multiplexing

    Sharing of the signal is accomplished by dividing available

    transmission time on a medium among users.

    Digital signaling is used exclusively.

    Time division multiplexing comes in two basic forms:

    1. Synchronous time division multiplexing, and

    2. Statistical, or asynchronous time division

    multiplexing.

  • 7/31/2019 3-Mux & Switching

    13/61

    Figure 8 TDM

  • 7/31/2019 3-Mux & Switching

    14/61

    TDM is a digital multiplexingtechnique to combine data.

    Note:

  • 7/31/2019 3-Mux & Switching

    15/61

    Figure 9 TDM frames

  • 7/31/2019 3-Mux & Switching

    16/61

    In a TDM, the data rate of the link is n

    times faster, and the unit duration is n

    times shorter.

    Note:

  • 7/31/2019 3-Mux & Switching

    17/61

    Figure 10 Interleaving

  • 7/31/2019 3-Mux & Switching

    18/61

    Figure 11 Multiplexing and inverse multiplexing

  • 7/31/2019 3-Mux & Switching

    19/61

    Time Division Multiplexing

  • 7/31/2019 3-Mux & Switching

    20/61

    Time division multiplexing

    Time division multiplexing comes in two basicforms:

    1. Synchronous time division multiplexing, and

    2. Statistical, or asynchronous time divisionmultiplexing.

  • 7/31/2019 3-Mux & Switching

    21/61

    Synchronous Time Division

    Multiplexing

    Data rate of medium exceeds data rate of digitalsignal to be transmitted

    Multiple digital signals interleaved in time

    May be at bit level of blocks

    Time slots pre-assigned to sources and fixed

    Time slots allocated even if no data

    Time slots do not have to be evenly distributedamongst sources

  • 7/31/2019 3-Mux & Switching

    22/61

  • 7/31/2019 3-Mux & Switching

    23/61

    Synchronous Time Division Multiplexing

    If one device generates data at a faster rate than other

    devices, then the multiplexer must either sample the

    incoming data stream from that device more often

    than it samples the other devices, or buffer the fasterincoming stream.

    If a device has nothing to transmit, the multiplexer

    must still insert a piece of data from that device intothe multiplexed stream.

  • 7/31/2019 3-Mux & Switching

    24/61

  • 7/31/2019 3-Mux & Switching

    25/61

  • 7/31/2019 3-Mux & Switching

    26/61

    Synchronous time division multiplexing

    So that the receiver may stay synchronized with the incomingdata stream, the transmitting multiplexer can insert alternating

    1s and 0s into the data stream.

  • 7/31/2019 3-Mux & Switching

    27/61

    Statistical TDM

    In Synchronous TDM many slots are wastedStatistical TDM allocates time slots dynamically

    based on demand

    Multiplexer scans input lines and collects datauntil frame full

    Data rate on line lower than aggregate rates ofinput lines

  • 7/31/2019 3-Mux & Switching

    28/61

    Statistical Time Division Multiplexing

    A statistical multiplexer transmits only the data

    from active workstations (or why work when

    you dont have to).

    If a workstation is not active, no space is wasted

    on the multiplexed stream.

    A statistical multiplexer accepts the incomingdata streams and creates a frame containing

    only the data to be transmitted.

  • 7/31/2019 3-Mux & Switching

    29/61

  • 7/31/2019 3-Mux & Switching

    30/61

    Statistical Time Division Multiplexing

    To identify each piece of data, an address is included.

  • 7/31/2019 3-Mux & Switching

    31/61

    If the data is of variable size, a length is also included.

    Statistical Time Division Multiplexing

  • 7/31/2019 3-Mux & Switching

    32/61

    More precisely, the transmitted frame contains a collectionof data groups.

    Statistical Time Division Multiplexing

  • 7/31/2019 3-Mux & Switching

    33/61

    A statistical multiplexer does not require a

    line over as high a speed line as synchronous

    time division multiplexing since STDM doesnot assume all sources will transmit all of the

    time!

    Good for low bandwidth lines (used forLANs)

    Much more efficient use of bandwidth!

    Statistical Time Division Multiplexing

  • 7/31/2019 3-Mux & Switching

    34/61

    Switching

  • 7/31/2019 3-Mux & Switching

    35/61

    Simple Switched Network

    Th C t f P th i

  • 7/31/2019 3-Mux & Switching

    36/61

    The Concept of Path in

    Communication

    A path is a route for data to travel between twonodes in a network

    Dynamic pathIn this case, the path often changes from packet to packet

    Example: Packet Switching

    Static pathPath is initially established and it remains unchanged for the

    duration of the communication session

    Example: Circuit Switching

  • 7/31/2019 3-Mux & Switching

    37/61

    Switching Networks

    Long distance transmission is typically doneover a network of switched nodes

    Nodes not concerned with content of data

    End devices are stationsComputer, terminal, phone, etc.

    A collection of nodes and connections is acommunications network

    Data routed by being switched from node tonode

  • 7/31/2019 3-Mux & Switching

    38/61

    Nodes

    Nodes may connect to other nodes only, or tostations and other nodes

    Node to node links usually multiplexed

    Network is usually partially connectedSome redundant connections are desirable for

    reliability

    Two different switching technologies

    Circuit switchingPacket switching

  • 7/31/2019 3-Mux & Switching

    39/61

    Circuit Switching

    Dedicated communication path between twostations

    Three phases

    Establish

    Transfer

    Disconnect

    Must have switching capacity and channel

    capacity to establish connectionMust have intelligence to work out routing

    P bli Ci it S it h d

  • 7/31/2019 3-Mux & Switching

    40/61

    Public Circuit Switched

    Network

  • 7/31/2019 3-Mux & Switching

    41/61

    Circuit Establishment

  • 7/31/2019 3-Mux & Switching

    42/61

    Circuit Switching - Issues

    Circuit switching is inefficient (designed forvoice)

    Resources dedicated to a particular call

    Much of the time a data connection is idle

    Data rate is fixed

    Both ends must operate at the same rate

    Set up (connection) takes time

    Once connected, transfer is transparent

  • 7/31/2019 3-Mux & Switching

    43/61

    Packet Switching

    Circuit switching designed for voiceResources dedicated to a particular call

    Much of the time a data connection is idle

    Data rate is fixed

    Both ends must operate at the same rate

  • 7/31/2019 3-Mux & Switching

    44/61

    Basic Operation

    Data transmitted in small packetsTypically 1000 octets

    Longer messages split into series of packets

    Each packet contains a portion of user data plus

    some control info

    Control info

    Routing (addressing) info

    Packets are received, stored briefly (buffered)and passed on to the next node

    Store and forward

  • 7/31/2019 3-Mux & Switching

    45/61

    Use of Packets

  • 7/31/2019 3-Mux & Switching

    46/61

    Switching Technique

    Station breaks long message into packetsPackets sent one at a time to the network

    Packets handled in two ways

    DatagramVirtual circuit

  • 7/31/2019 3-Mux & Switching

    47/61

    Datagram

    Each packet treated independentlyPackets can take any practical route

    Packets may arrive out of order

    Packets may go missingUp to receiver to re-order packets and recover

    from missing packets

  • 7/31/2019 3-Mux & Switching

    48/61

    Datagram Diagram

  • 7/31/2019 3-Mux & Switching

    49/61

    Virtual Circuit

    Preplanned route established before anypackets sent

    Call request and call accept packets establishconnection (handshake)

    Each packet contains a virtual circuit identifierinstead of destination address

    No routing decisions required for each packet

    Clear request to drop circuitNot a dedicated path

  • 7/31/2019 3-Mux & Switching

    50/61

    Virtual Circuit Diagram

  • 7/31/2019 3-Mux & Switching

    51/61

    Virtual Circuits v Datagram

    Virtual circuitsNetwork can provide sequencing and error control

    Packets are forwarded more quicklyNo routing decisions to make

    Less reliableLoss of a node loses all circuits through that node

    DatagramNo call setup phaseBetter if few packets

    More flexibleRouting can be used to avoid congested parts of the

    network

    Transmission of Audio and

  • 7/31/2019 3-Mux & Switching

    52/61

    Transmission of Audio and

    Video in Packet Switching

    Transmission of audio and video are time sensitiveTimely arrival of packet is important

    The process that would ensure the orderly and timelyarrival of data packets is known as streaming

    Streaming also compresses the data to minimize

    bandwidth requirements thus ensuring that the packetshave adequate bandwidth to travel to the destination inthe order in which they are supposed to arrive at thedestination

  • 7/31/2019 3-Mux & Switching

    53/61

    Buffering in Streaming

    Streamed audio or video is often buffered toensure that the audio or video is playedcontinuously

  • 7/31/2019 3-Mux & Switching

    54/61

    Packet Size

  • 7/31/2019 3-Mux & Switching

    55/61

    Circuit v Packet Switching

  • 7/31/2019 3-Mux & Switching

    56/61

    Circuit Switching

    Figure 2-38. (a) Circuit switching. (b) Packet switching.

  • 7/31/2019 3-Mux & Switching

    57/61

  • 7/31/2019 3-Mux & Switching

    58/61

  • 7/31/2019 3-Mux & Switching

    59/61

    Message Switching

    A store-and-forward network where the block oftransfer is a complete message.

    Since messages can be quite large, this cancause:

    buffering problems

    high mean delay

  • 7/31/2019 3-Mux & Switching

    60/61

    Cell Switching

    A network where the unit of transfer is a small,

    fixed size block of date (i.e., one cell).ATM (Asynchronous Transfer Mode) networks

    use 53 byte cells.

    53 bytes

  • 7/31/2019 3-Mux & Switching

    61/61

    THANKS?