Академический Документы
Профессиональный Документы
Культура Документы
Introduction
Information must be transformed into signals before it can be transported across communication media.
Digital-to-digital encoding
Signal spectrum Signal synchronization capability Signal error detecting capability Signal interference and noise immunity Cost and complexity
Scrambling techniques
A coding scheme that is commonly used in North America and based on a bipolar-AMI is known as Bipolar with 8Zeros substitution (B8ZS) displayed in Fig. 2.6. The drawback of AMI code is that a long string of zeros may result in loss of synchronization. To overcome this problem, the encoding is amended with the following rules: If an octet of all zeros (i.e., 8 zeros) occurs and the last voltage pulse preceding this octet was positive, then eight zeros of the octet are encoded as (0 0 0 + - 0 - +). If an octet of all zeros occurs and the last voltage pulse preceding this octet was negative, then the eight zeros of the octet are encoded as (0 0 0 + 0 + -).
Digital-to-Analog Encoding
Switching Techniques
Circuit switching Message switching Packet switching
Circuit Switching
Features of circuit switching one line is exclusively and continuously used per connection during the whole duration of information exchange. fully transparent; i.e., once connection is made, delivering is guaranteed and sequential, delays are constant and small. blocking may occur when all lines are busy. delay is encountered prior to data transfer (of the order of 10-20 sec.) simultaneous availability of the two parties is necessary. interactive session is possible; communication takes place in real time.
Disadvantages of circuit switching Inefficient For burst data, channel may be idle for a significant portion of time, yet remain unavailable to another users. Slow Delay prior to data transfer of few seconds for only few micro seconds for data transmission. Relatively expensive Charge is based on time and distance not on data transmitted.
Message switching
no dedicated physical path is necessary in advance between the two stations. no simultaneous availability of the two stations is required. header information must be included with each message. node is a general purpose minicomputer. fully transactional; i.e., at each node, the message is stored and forward. delay at each node en route to destination may occur for receiving, queuing. no limit on message size
simultaneous availability of the two is not necessary. no blocking is encountered but queuing delay may occur. efficiency is greater as channel is used only when transmitting data. capable to send the message to many destinations by appending addresses. providing priority to users is possible. if error is discovered, it is possible to request retransmission. speed and code conversion can be employed.
large storage capacity must be available at each node. long queuing delay with great variance may occur. not suitable for interactive connections.
Usage of message switching It is not used in LAN due to delay and storage limitations. It is used in governmental, military and business applications for legal and historical reasons.
Packet switching
Features of packet switching message is divided into fixed-length packets. each packet is hold temporary at each node and then forward to the next node after confirming successful reception. suitable for interactive traffic.
Advantages over message switching Pipelining Packet 1 is transmitted from node B to node C at the same time that packet 2 is transmitted from node A to B. This simultaneous use of communication circuits yields considerable gains in efficiency and minimizing delay. Lower errors As packets are short, they are less likely subject to errors than complete messages. This leads to lower probability of retransmission. Lower congestion As packets may be routed through the network independently, congestion may be minimized by taking different routes to their destinations.
Each packet is treated independently with no prior route determination. Packets do not follow the same route and delivery is not guaranteed. Packets may arrive out of sequence or be lost or duplicated. Call set up phase is avoided. Routing decision at each node is required. More flexible. Preferred when short data stream is transmitted.
An initial set-up phase is used to set up a fixed route for all packets exchanged during the session between users. Routing decision is made only once for each connection. It is similar to circuit switching in that sense of route set up prior to data transfer. This does not mean that there is a dedicated path as in circuit switching; a packet is still buffered and queued. Logical connection is established (call request, call accept, clear request). It appears to the as a dedicated physical circuit between source and destination although the circuit is shared among multiple users . Routing decision is not required at each node . Delivery of packets in proper sequence with no errors is guaranteed. Good for long messages and for relieving stations of processing burdens.
Packet Format
Stopand-Wait ARQ
Continuous ARQ
GobackN ARQ In this approach, the transmitter must retransmit the block that was detected in error as well as all succeeding blocks as displayed in Fig. 2.20(a). This ensures that the blocks at the receiver are in correct sequence. The disadvantage of that approach is that it is inefficient with respect to channel utilization especially at high errors.
Continuous ARQ
Selective repeat ARQ Only the block detected in error is retransmitted in this approach as shown in Fig. 2.20(b). It is much more efficient with respect to channel utilization, but more buffer space and more complex processing are required at the receiving node to store all the blocks received correctly and then reassemble them into the correct sequence after the block originally in error is properly retransmitted. A further drawback to selective repeat is that multiple errors in different blocks can lead to very complex recovery sequences.
Continuous ARQ
Questions ?