Chapter 1


Published on

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

Chapter 1

  1. 1. E5214 Data Communication1. What is Data Communications?Data Communications concerns the transmission of digital messages to devices external to the messagesource. "External" devices are generally thought of as being independently powered circuitry that existsbeyond the chassis of a computer or other digital message source. As a rule, the maximum permissibletransmission rate of a message is directly proportional to signal power, and inversely proportional tochannel noise. It is the aim of any communications system to provide the highest possible transmissionrate at the lowest possible power and with the least possible noise.2. History2.1 Telecommunications: 1837 - Samuel Morse exhibited a working telegraph system 1843 - The first telegraph lines were opened in between Paddington and Slough by the Great Western Railway 1846 - Alexander Bain patented printing telegraph 1876 - Alexander Graham Bell invented the telephone 1895 - Guglielmo Marconi invented radio 1901 - First Trans-Atlantic signal 1926 - John Logi Baird gave the first demonstration of the television 1951 - First direct long distance dialing without an operator 1958 - The US launched its first communications satellite It formed part of an early warning radar system First international satellite telephone call by 1962 1962 - Faxing service was introduced 1968 - AT&T and Bell Telephone Company had controlled the US-Telephone System 1983 - Introduction of cell phones 1984 - AT&T was split into 2-parts 1996 - Deregulation Act: U.S. Congress enacted the Telecommunications Act Replaced all the current laws and FCC regulations2.2 Data Communications: 1940 - Bell Laboratories began experimenting with a communications system using the COMPLEX computer. This was the forerunner of the teletypewriter 1947 - Transistor invented in Bell Labs 1950s - Computer systems used batch processing with discrete files 1954 - IBM Remote Job Entry (RJE); it allowed a terminal to forward records to a host computer and receive reports back 1960 - AT&T Bell Labs 300 Baud Modem (MOdulator/DEModulator) 1960s - Data Communication across telephone lines became more commonplace 1969 - Internet started by the US DoD as a network of 4 computers known as ARPANET (American Research Project Agency network) 1976 - Introduction of Packet-Switched service (X.25, Frame Relay, ATM, SMDS) 1980 - Public service of digital networks (ISDN) 1984 - ARPANET became more commonly known as the Internet2.3 The Internet: 1974 - Microcomputer revolution 1983 - Internet split into 2-parts: Milnet - devoted to military network Internet - devoted to the university research 1989 - Internet and CA*Net massed in great numbers - 200,000 servers combined 1990 - All networks around the world joined together as a worldwide network of networks 1Sargunan Ainal (JKE)
  2. 2. E5214 Data Communication 1990s – Usage density grows rapidly Commercial networks began connecting to both NSFNET and CA*Net More than 60 percent of all U.S. PCs are networked (i.e. LANs) 1992 - More than 1 million servers on the Internet 1994 - Status of the Internet: Almost 4 million servers on the Internet Commercialization of the Internet begins rapid growth 1995 - Commercialization continues at a rapid pace 6.5 million Hosts, 100,000 WWW Sites NSFNET reverts back to a research network. Main US backbone traffic now routed through interconnected network providers (TLA’s) www surpasses FTP data in March as the service with greatest traffic on NSFNET based on packet count, and in April based on byte count Traditional online dial-up systems (CompuServe, AOL & Prodigy) begin to provide Internet access A number of Net related companies go public, with Netscape leading the pack Registration of domain names is no longer free Technologies of the Year: WWW & Search engines (WAIS development) Microsoft enters the arena, Windows 95 essentially puts the Internet at millions of desktops The WWW browser war begin Microsoft Internet Explorer vs. Netscape Navigator) Software development cycles shorten due to the greater pool of beta users Software development cycles shorten due to the greater pool of beta users 12.8 million Hosts, 500,000 WWW Sites. Internet phones catch the attention of US telecommunication companies Clearly a case of anti-competitiveness from the Telecom industry 1997 - What Next? 19,5 million Hosts, 1 million WWW sites, 71,618 Newsgroups. International agreement signed by 68 countries to reduce regulation in TC markets Beginning with the telegraph in the 1840’s, Electronic Data Communications have greatly sped up the transmission rate of information Information that took days or weeks to transmit during the 1700’s could be transmitted in minutes or hours by the 1900’s Today, telecommunications networks transmit huge quantities of information in a fraction of a second.3. Communication Codes3.1 Morse CodeOrigin Morse Code was invented by Samuel F. B. Morse (1791-1872), a painter and founder of the National Academy of Design. He conceived the basic idea of an electromagnetic telegraph in 1832, and produced the first working telegraph set in 1836. This made transmission possible over any distance. The first Morse Code message, "What hath God wrought?", was sent from Washington to Baltimore. Morse Code can be transmitted using sound or light, as sometimes happens between ships at sea. It is used in emergencies to transmit distress signals when no other form of communication is available. The standard international distress signal is •••---••• (SOS) Since December 2003, Morse Code has included the @ symbol: it is a combination of a and c: •-- •-• and is the first change to the system since before World War II. 2Sargunan Ainal (JKE)
  3. 3. E5214 Data Communication Alphabet Code Alphabet Code Alphabet Code A - Q -- - 9 ---- B - R - 0 ----- C -- S . --- D - T - , -- -- E U - ? -- F - V - / - - G -- W -- : --- H X - - ; --- I 1 --- ( - -- - J --- 2 --- ) - -- K -- 3 -- ‘ ---- L - 4 - - - - M -- 5 $ - - N - 6 - ‘’ - - O --- 7 -- Y - -- P -- 8 --- Z -- Table 1 : Morse code3.2 EBCDIC (Extended Binary Coded Decimal Interchange Code)EBCDIC (Extended Binary Coded Decimal Interchange Code ) (pronounced either "ehb-suh-dik" or "ehb-kuh-dik") is a binary code for alphabetic and numeric characters that IBM developed for its largeroperating systems. It is the code for text files that is used in IBMs OS/390 operating system for its S/390servers and that thousands of corporations use for their legacy applications and databases. In anEBCDIC file, each alphabetic or numeric character is represented with an 8-bit binary number (a string ofeight 0s or 1s). 256 possible characters (letters of the alphabet, numerals, and special characters) aredefined. 3Sargunan Ainal (JKE)
  4. 4. E5214 Data Communication Bit Bit 0123 Position 4567 Position Table 2: EBCDIC3.3 Baudot CodeIn the dawn of time (about 1875 A.D.), a Frenchman named Emile Baudot devised a way to connect twotyping machines so that whatever was typed on one would be typed on the other automatically. Themachines, some of which are still used today, are called teletypes. Teletype machines were used for datacommunications before computers were built, and were used as data terminals on computers untilreplaced by video display terminals (which have since been replaced by personal computers runningprograms which emulate teletype machines or video display terminals.)Baudot code has several limitations which make it less than ideal for modern use. The technology of thetime imposed a 5 level (5 bit) limit to the code. This allows only 32 characters, normally not adequate foreven the basic alphabet and digits. Baudot code extends the character set to 55 characters by using twocodes, LTRS and FIGS, as shift controls. Each shift code determines the meaning of the codes whichfollow it. For example, the sequence 11111 00011 01010 00001 means "ARE", while the sequence 1101100011 01010 00001 means "-43".There are no lower case letters in the Baudot code. There are only the 26 capitol letters, the 10 digits,three format control characters (space, LF, and CR), 15 punctuation marks, and an audible signal (Bell).There are actually several different versions of the Baudot code, with different meanings for thepunctuation marks.Baudot code is typically transmitted using an asynchronous serial protocol. The least significant bit (LSB)is sent first, and the most significant bit (MSB) is sent last. 4Sargunan Ainal (JKE)
  5. 5. E5214 Data Communication Charater Data Bus Table 3 : Baudot Code3.4 ASCII CodeASCII is short for American Standard Code for Information Interchange, and is a 7 bit encoding ofcharacters on computers. There are 128 values ranging from 0 to 127, of which 95 are printablecharacters and 33 are not visible but used for control characters. Carriage return (0xD16 in hexadecimal)and linefeed (0xA16 ) are two of the better known control characters. 5Sargunan Ainal (JKE)
  6. 6. E5214 Data Communication Table 4: ASCII4. Data Communication : Transmitting, Transmission Medium, ReceivingThere are three main component of data communication system. These are transmitter, receiver andtransmission medium. The computer or device sending the data is called transmitter. The device orcomputer that receives the data is called receiver. The means through which data is sent from onelocation to another is called transmission medium. In electronic data communication, both the transmitterand the receivers are usually computers. A receiver can also be printer or a fax machine. The receiverand transmitter may be located within a building. In this case receiver and transmitter are connected bywire. If they are located at different locations, they may be connected through telephone lines, fiber opticsor microwave. The coaxial cable, twisted pair cable, telephone lines, fiber optics and microwave acts astransmission medium. The rules according to which data is transmitted and received are calledcommunication protocol. Different component of communication system such as receiver and transmittermust strictly follow these rules for successful transmission of data. First rule is ""how data is to becommunicated"". How transmitter and receiver will communicate with each other and how transmitterknows that the receiver has received the data Source A device that generates data to be transmitted; examples are telephones and computers. We will assume that we wish to transmit digital data (consisting of 0s and 1s) for the majority of this paper. Transmitter A device that encodes the data to be transmitted in such a way as to create electromagnetic signals that can be transmitted across some kind of transmission system. Transmission System: The physical medium that carries the signals produced by the transmitter. This can be a single wire connecting two telephones or a vast network connecting thousands of computers. 6Sargunan Ainal (JKE)
  7. 7. E5214 Data Communication Receiver A device that accepts a signal from the transmission system and converts it into a usable form for the destination device. Destination Accepts the incoming data from the receiver. The destination device can be a telephone, a computer, a network switch, etc. The device usually processes the data in some way so that it is usable by a human user or a program running on the device.The communications model defines the transmission system as the data carrier between source anddestination. We will examine the structure and function of the transmission system in this paper. Thereare two physical ways to carry data: guided transmission media or unguided transmission media. Guidedtransmission occurs over solid wave carrying materials (wire or fiber optic cable). Unguided transmission(TV/radio, space communication) broadcasts signals into air or space and allows them to propagate tothe receiver. Each of these will be discussed in greater depth later. We first examine the terminology ofelectromagnetic waves and then two specific cases of data transmission. After a general discussion of thetransmission system we will discuss a specific example of how transmitter and receiver work in a systemused in modern computer networks.5. DTE and DCEThe terms DTE and DCE are very common in the data communications market. DTE is short for DataTerminal Equipment and DCE stands for Data Communications Equipment. But what do they reallymean? As the full DTE name indicates this is a piece of device that ends a communication line, whereasthe DCE provides a path for communication.Lets say we have a computer on which wants to communicate with the Internet through a modem and adial-up connection. To get to the Internet you tell your modem to dial the number of your provider. Afteryour modems has dialed the number, the modem of the provider will answer your call and your will hear alot of noise. Then it becomes quiet and you see your login prompt or your dialing program tells you theconnection is established.Now you have a connection with the server from your provider and you can wander the Internet. In thisexample you PC is a Data Terminal (DTE). The two modems (yours and that one of your provider) areDCEs, they make the communication between you and your provider possible. But now we have to lookat the server of your provider. Is that a DTE or DCE? The answer is a DTE. It ends the communicationline between you and the server. Although it gives you the possibility to surf around the glode. The reasonwhy it is a DTE is that when you want to go from your provides server to another place it uses anotherinterface. So DTE and DCE are interface dependend. It is e.g. possible that for your connection to theserver, the server is a DTE, but that that same server is a DCE for the equipment that it is attached to onthe rest of the Net. Fig 1 : DTE & DCE 7Sargunan Ainal (JKE)
  8. 8. E5214 Data Communication Fig 2 : DTE and DCE configaration6. Transmission6.1 SimplexData flows in only one direction on the data communication line (medium). Examples are Radio andTelevision broadcasts. They go from the TV station to your home television. Fig 3 : Simplex transmission 8Sargunan Ainal (JKE)
  9. 9. E5214 Data Communication6.2 Half-DuplexData flows in both directions but only one direction at a time on the data communication line. Ex.Conversation on walkie-talkies is a half-duplex data flow. Each person takes turns talking. If both talk atonce - nothing occurs! Bi-directional but only 1 direction at time! Fig 4 : Half Duplex transmission6.3 Full-DuplexData flows in both directions simultaneously. Modems are configured to flow data in both directions.Bi-directional both directions simultaneously! Fig 5 : Full Duplex transmission6.4 Serial and parallel transmissionThe transmission mode refers to the number of elementary units of information (bits) that can besimultaneously translated by the communications channel. In fact, processors (and therefore computersin general) never process (in the case of recent processors) a single bit at a time; generally they are ableto process several (most of the time it is 8: one byte), and for this reason the basic connections on acomputer are parallel connections.6.4.1 Parallel connectionParallel connection means simultaneous transmission of N bits. These bits are sent simultaneously overN different channels (a channel being, for example, a wire, a cable or any other physical medium). Theparallel connection on PC-type computers generally requires 10 wires. 9Sargunan Ainal (JKE)
  10. 10. E5214 Data Communication Fig 6 : Parallel connection6.4.2 Serial connectionIn a serial connection, the data are sent one bit at a time over the transmission channel. However, sincemost processors process data in parallel, the transmitter needs to transform incoming parallel data intoserial data and the receiver needs to do the opposite. Fig 7 : Serial connectionThese operations are performed by a communications controller (normally a UART (UniversalAsynchronous Receiver Transmitter) chip). The communications controller works in the following manner:The parallel-serial transformation is performed using a shift register. The shift register, working togetherwith a clock, will shift the register (containing all of the data presented in parallel) by one position to theleft, and then transmit the most significant bit (the leftmost one) and so on:The serial-parallel transformation is done in almost the same way using a shift register. The shift registershifts the register by one position to the left each time a bit is received, and then transmits the entireregister in parallel when it is full: (a) Parallel input, serial output (b) Serial input, parallel outpu Fig 8 : Serial - Parallel connection 10Sargunan Ainal (JKE)
  11. 11. E5214 Data Communication7. Synchronous and asynchronous transmissionGiven the problems that arise with a parallel-type connection, serial connections are normally used.However, since a single wire transports the information, the problem is how to synchronise the transmitterand receiver, in other words, the receiver can not necessarily distinguish the characters (or moregenerally the bit sequences) because the bits are sent one after the other. There are two types oftransmission that address this problem:An asynchronous connection, in which each character is sent at irregular intervals in time (for example auser sending characters entered at the keyboard in real time). So, for example, imagine that a single bit istransmitted during a long period of silence... the receiver will not be able to know if this is 00010000,10000000 or 00000100... To remedy this problem, each character is preceded by some informationindicating the start of character transmission (the transmission start information is called a START bit) andends by sending end-of-transmission information (called STOP bit, there may even be several STOPbits).In a synchronous connection, the transmitter and receiver are paced by the same clock. The receivercontinuously receives (even when no bits are transmitted) the information at the same rate the transmittersend it. This is why the transmitter and receiver are paced at the same speed. In addition, supplementaryinformation is inserted to guarantee that there are no errors during transmission.During synchronous transmission, the bits are sent successively with no separation between eachcharacter, so it is necessary to insert synchronisation elements; this is called character-levelsynchronisation.The main disadvantage of synchronous transmission is recognising the data at the receiver, as there maybe differences between the transmitter and receiver clocks. That is why each data transmission must besustained long enough for the receiver to distinguish it. As a result, the transmission speed can not bevery high in a synchronous link.7.1 TimingSignal timing is a repetitive signal is used to control the timing of operations.Bit timing is the time for a bit if it bit 0 or 1.Slot time is any time that can be repeatedly identified and defined uniquely. Error due to sampling process, normally occur at receiver. It cause by differential in timing at Tx and Rx. Fig 9 : TimingImportance of TimingSender and receiver must have the same bit of timing, so the bit sampling can be made closer to themidpoint of the period of a bit received, to determine the level of bits, either 0 or 1, with the right. 11Sargunan Ainal (JKE)
  12. 12. E5214 Data CommunicationSome bits (= 1 byte) will decoded of data flow, to determine which characters are represented by thebyte. Decoding must be done as accurately as possible, starting from the first bit to last bit of the bit.Therefore, the receiver must know the timing word (byte) for a character who decoded7.2 FramingCircumstances in which additional bits sent with the actual data.These additional bits may represent the station codes, error detection, control start bit and bit the end, orsync characters, either in front or behind the data, or both. All this will create a character, or a block ofcharacters completely, which is sent in each shipment. H= Header D = Data or P = Payload T= Trailer Fig 10 : Framing dataHeader Codes consist of the station, start bit, character SYN, STX and DLE. The header helps the recipient to know the data is for him or not. Each station will check the data arrived, and took data addressed to him. SYN = character synchronization DLE STX = first rule text DLE ETX = text of the final rule FCS = frame detection rulesTrailer Consists of the final bit, character ETX, DLE and error detection (Frame Check Sequence, FCS), which covers the FCS error detection and correction.Frame check sequence (FCS) The frame check sequence is the product of an error-detecting code, normally inserted as the final field in a block of transmitted data, that can be used upon reception of the data to detect errors.8. Error Detection and Correction8.1. Types of ErrorsWhenever bits flow from one point to another, they are subject to unpredictable changes because ofinterference. This interference can change the shape of the signal. In a single-bit error, a 0 is changed toa 1 or a 1 to a 0. The term single-bit error means that only 1 bit of a given data unit (such as a byte,character, or packet) is changed from 1 to 0 or from 0 to 1. The term burst error means that 2 or more bitsin the data unit have changed from 1 to 0 or from 0 to 1. 2.8.2 RedundancyThe central concept in detecting or correcting errors is redundancy. To be able to detect or correct errors,we need to send some extra bits with our data. These redundant bits are added by the sender andremoved by the receiver. Their presence allows the receiver to detect or correct corrupted bits. Theconcept of including extra information in the transmission for error detection is a good one. But instead ofrepeating the entire data stream, a shorter group of bits may be appended to the end of each unit. Thistechnique is called redundancy because the extra bits are redundant to the information: they arediscarded as soon as the accuracy of the transmission has been determined. Figure 11 shows the 12Sargunan Ainal (JKE)
  13. 13. E5214 Data Communicationprocess of using redundant bits to check the accuracy of a data unit. Once the data stream has beengenerated, it passes through a device that analyses it and adds on an appropriately coded redundancycheck. The data unit, now enlarged by several hits, travels over the link to the receiver. The receiver putsthe entire stream through a checking function. If the received hit stream passes the checking criteria, thedata portion of the data unit is accepted and the redundant bits are discarded. Sender Node Receiver Node Data 10100000000101010 Data 10100000000101010 Yes Yes Reject OK data No 10100000000101010 1011101 10100000000101010 1011101 Data & Redundancy Data & Redundancy Transmission Medium Fig 11Three types of redundancy checks are common in data communications: parity check, cyclic redundancycheck (CRC) and checksum (see Fig. 12). Detection Method Parity Check Cyclic redundancy Checksum check Fig 12 : Detection Method 13Sargunan Ainal (JKE)
  14. 14. E5214 Data Communication8.2.1 Simple Parity CheckIn this technique, a redundant bit called a parity bit is added to every data unit so that the total number of1’s in the unit (including the parity bit) becomes even (or odd). Figure (13) shows this concept whentransmit the binary data unit 1100001. Sender Node Receiver Node Data (7 Drop parity bit & accept data 1100001 bits) Yes Calculate parity bit Reject Even? data No Count b its 1100001 1 Bits Transmission Medium Fig 13 14Sargunan Ainal (JKE)
  15. 15. E5214 Data CommunicationExample 1Suppose the sender wants to send the word world. In ASCII, the 5 characters are coded as 1110111 1101111 1110010 1101100 1100100 w o r l dEach of the first four character has an even number of 1s, so the parity bit a 0. The last character (d),however, has three 1s (an odd number), so the parity bit is a 1 to make the total number of 1s even. Thefollowing shows the actual bits sent (the parity bits are underlined) 11101110 11011110 11100100 11011000 11001001Eample 2Now suppose the word world in Example 1 is received by the receiver without being corrupted intransmission. 11101110 11011110 11100100 11011000 11001001The receiver counts the 1s in each character and comes up with even numbers (6,6,4,4,4). The data areaccepted.Example 3Now suppose the word world in Example 1 is corrupted during transmission 11111110 11011110 11101100 11011000 11001001The receiver counts the 1s in each character and comes up with even and odd numbers (7,6,5,4,4). Thereceiver knows that the data are accepted, discards them, and asks for retransmission.PerformanceSimple parity check can detect all single-bit errors. It can also detect burst errors as long as the totalnumber of bits changed is odd. This method cannot detect errors where the total number of hits changedis even. If any two bits change in transmission, the changes cancel each other and the data unit will passa parity check even though the data unit is damaged. The same holds true fur any even lumber of errors.8.2.3 Cyclic Redundancy Check (CRC)The third and most powerful of the redundancy checking techniques is the cyclic redundancy check(CRC). Unlike the parity check which is based on addition. CRC is based on binary division. In CRC,instead of adding bits to achieve a desired parity, a sequence of redundant bits, called the CRC or theCRC remainder, is appended to the end of a data unit so that the resulting data unit becomes exactlydivisible by a second, predetermined binary number. At its destination, the incoming data unit is dividedby the same number. If at this step there is no remainder the data unit is assumed to be intact and istherefore accepted. A remainder indicates that the data unit has been damaged in transit and thereforemust be rejected. The redundancy bits used by CRC are derived by dividing the data unit by apredetermined divisor; the remainder is the CRC. To be valid, a CRC must have two qualities: It musthave exactly one less bit than the divisor, and appending it to the end of the data string must make theresulting bit sequence exactly divisible by the divisor. Both the theory and the application of CRC errordetection are straightforward. start with an overview and add complexity as we go. 15Sargunan Ainal (JKE)
  16. 16. E5214 Data Communication Sender Receiver Data 00…0 Data CRC n bits Data CRC n+1 bits Divisor Divisor Reminder Reminder CRC n bits 0 accept, non-zero reject Fig 14First, a string of n 0’s is appended to the data unit. The number n is 1 less if-number of bits in thepredetermined divisor which is n + 1 bits. Second, the newly elongated data unit is divided by thedivisor, using a p called binary division. The remainder resulting from this division is the CRC. Third, theCRC of n bits derived in step 2 replaces the appended 0’s at the data unit. Note that the CRC may consistof all 0’s. The data unit arrives at the receiver data first, followed by the CRC. The receiver treats thewhole siring as a unit and divides it by the same divisor that was used the CRC remainder. If the siringarrives without error, the CRC checker yields a remainder of zero, the data unit passes. If the string hasbeen changed in transit, the division yields zero remainder and the data unit does not pass. Figure 15shows how we generate CRCA CRC checker functions exactly as the generator does. After receiving the data appended with the CRC,it does the same modulo-2 division. If the remainder is all 0’s, the CRC is dropped and the data areaccepted: otherwise, the received stream of bits is discarded and data are resent. Figure 16 shows thesame process of division in the receiver. We assume that there is no error The remainder is therefore all0’s, and the data are accepted. 1111 01 Divisor 1101 1001000 01 Data plus CRC received 1101 1000 1101 1010 1101 1110 1101 0110 Whan the leftmost bit of the 0000 reminder is 0, use 0000 istead 1101 of the original divisor 1101 000 Result Fig 15 16Sargunan Ainal (JKE)
  17. 17. E5214 Data Communication 1111 01 1101 1001000 00 Data plus extra 0 (bold) 1101 1000 1101 1010 1101 1110 1101 0110 Whan the leftmost bit of the 0000 reminder is 0, use 0000 istead 1100 of the original divisor 1101 001 Reminder Fig .16The divisor in the CRC generator is most often represented not as a string of 1’s and 0’s, but as analgebraic polynomial (see Fig. 17). The polynomial format is useful for two reasons: It is short, and it canbe used to prove the concept mathematically. The relationship of a polynomial to its corresponding binaryrepresentation is shown in Figure 18. Polynomial x7 + x5 + x2 + x + 1 x6 x4 x3 1 0 1 0 0 1 1 1 Divisor Fig.17 Fig.18Performance of CRCCRC is a very effective error detection method. If the divisor is chosen according to the previouslymentioned rules, 1.CRC can detect all burst errors that affect an odd number of bits. 2.CRC can detect all burst errors of length less than or equal to the degree of the polynomial 3.CRC can detect, with a very high probability, burst errors of length greater than the degree of the polynomial. 17Sargunan Ainal (JKE)