1 / 109

Data Encoding at the PL

16.546 Computer Telecommunications : Modulation and Data Encoding Professor Jay Weitzen Electrical & Computer Engineering Department The University of Massachusetts Lowell. Data Encoding at the PL. Source node. Destination node. Application. Application. Presentation. Presentation. Session.

arden
Download Presentation

Data Encoding at the PL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 16.546 Computer Telecommunications:Modulation and Data EncodingProfessor Jay WeitzenElectrical & Computer Engineering DepartmentThe University of Massachusetts Lowell

  2. Data Encoding at the PL Source node Destination node Application Application Presentation Presentation Session Session Intermediate node transport transport Packets Network Network Network Frames Data link Data link Data link Bits Physical Physical Physical Signals

  3. We Need to Encode PL Frame Network A Node 7 Application Application Layer Msg AL-Hdr 6 Presentation PL-Hdr Presentation Layer Msg 5 Session SL-Hdr Session Layer Msg 4 Transport TL-Hdr Transport Layer Msg 3 Network NL-Hdr Network Layer Msg 2 Data Link DLL-Hdr Data Link Layer Msg 1 Physical PL-Hdr Physical Layer Msg

  4. Encoding Techniques • Digital data, digital signal • Analog data, digital signal • Digital data, analog signal • Analog data, analog signal

  5. Digital Data, Digital Signal • Digital signal • Discrete, discontinuous voltage pulses • Each pulse is a signal element • Binary data encoded into signal elements

  6. Terminology • Unipolar • All signal elements have same sign • Polar • One logic state represented by positive voltage the other by negative voltage • Data rate • Rate of data transmission in bits per second • Duration or length of a bit • Time taken for transmitter to emit the bit • Modulation rate • Rate at which the signal level changes • Measured in baud = signal elements per second • Mark and Space • Binary 1 and Binary 0 respectively

  7. Interpreting Signals • Need to know • Timing of bits - when they start and end • Signal levels • Factors affecting successful interpreting of signals • Signal to noise ratio • Data rate • Bandwidth

  8. Comparison of Encoding Schemes (1) • Signal Spectrum • Lack of high frequencies reduces required bandwidth • Lack of dc component allows ac coupling via transformer, providing isolation • Concentrate power in the middle of the bandwidth • Clocking • Synchronizing transmitter and receiver • External clock • Sync mechanism based on signal

  9. Comparison of Encoding Schemes (2) • Error detection • Can be built in to signal encoding • Signal interference and noise immunity • Some codes are better than others • Cost and complexity • Higher signal rate (& thus data rate) lead to higher costs • Some codes require signal rate greater than data rate

  10. Encoding Schemes • Nonreturn to Zero-Level (NRZ-L) • Nonreturn to Zero Inverted (NRZI) • Bipolar -AMI • Pseudoternary • Manchester • Differential Manchester • B8ZS • HDB3 • 4B/5B, MLT-3, 8B/10 Schemes

  11. Nonreturn to Zero-Level (NRZ-L) • Two different voltages for 0 and 1 bits • Voltage constant during bit interval • no transition, i.e., no return to zero voltage • Absence of voltage for zero, constant positive voltage for one • More often, negative voltage for one value and positive for the other • This is NRZ-L

  12. Nonreturn to Zero Inverted • Nonreturn to zero inverted on ones • Constant voltage pulse for duration of bit • Data encoded as presence or absence of signal transition at beginning of bit time • Transition (low to high or high to low) denotes a binary 1 • No transition denotes binary 0 • An example of differential encoding

  13. NRZ

  14. Differential Encoding • Data represented by changes rather than levels • More reliable detection of transition rather than level • In complex transmission layouts it is easy to lose sense of polarity

  15. NRZ pros and cons • Pros • Easy to engineer • Make good use of bandwidth • Cons • dc component • Lack of synchronization capability • Used for magnetic recording • Not often used for signal transmission

  16. Multilevel Binary • Use more than two levels • Bipolar-AMI (Alternate Mark Inversion) • zero represented by no line signal • one represented by positive or negative pulse • one pulses alternate in polarity • No loss of sync if a long string of ones (zeros still a problem) • No net dc component • Lower bandwidth • Easy error detection

  17. Pseudoternary • One represented by absence of line signal • Zero represented by alternating positive and negative • No advantage or disadvantage over bipolar-AMI

  18. Bipolar-AMI and Pseudoternary

  19. Trade Off for Multilevel Binary • Not as efficient as NRZ • Each signal element only represents one bit • In a 3 level system could represent log23 = 1.58 bits • Receiver must distinguish between three levels (+A, -A, 0) • Requires approx. 3dB more signal power for same probability of bit error

  20. Biphase • Manchester • Transition in middle of each bit period • Transition serves as clock and data • Low to high represents one • High to low represents zero • Used by IEEE 802.3 • Differential Manchester • Midbit transition is clocking only • Transition at start of a bit period represents zero • No transition at start of a bit period represents one • Note: this is a differential encoding scheme • Used by IEEE 802.5

  21. Biphase Pros and Cons • Con • At least one transition per bit time and possibly two • Maximum modulation rate is twice NRZ • Requires more bandwidth • Pros • Synchronization on mid bit transition (self clocking) • No dc component • Error detection • Absence of expected transition

  22. Modulation Rate

  23. Scrambling • Use scrambling to replace sequences that would produce constant voltage • Filling sequence • Must produce enough transitions to sync • Must be recognized by receiver and replace with original • Same length as original • No dc component • No long sequences of zero level line signal • No reduction in data rate • Error detection capability

  24. B8ZS • Bipolar With 8 Zeros Substitution • Based on bipolar-AMI • If octet of all zeros and last voltage pulse preceding was positive encode as 000+-0-+ • If octet of all zeros and last voltage pulse preceding was negative encode as 000-+0+- • Causes two violations of AMI code • Unlikely to occur as a result of noise • Receiver detects and interprets as octet of all zeros

  25. HDB3 • High Density Bipolar 3 Zeros • Based on bipolar-AMI • String of four zeros replaced with one or two pulses

  26. B8ZS and HDB3

  27. Digital Signal Encoding For LANs • 4B/5B-NRZI • Used for 100BASE-X and FDDI LANs • Four Data Bits Encoded into Five Code Bits, 80% • MLT-3 • 100BASE-TX & FDDI Over Twisted Pair • 8B/6T • Uses Ternary Signaling (Pos, Neg, Zero Voltages) • Eight Data Bits Encoded into 6 Ternary Symbols • 8B/10B • Used for Fibre Channel & Gigabit Ethernet

  28. 10 Gigabit Ethernet (1 of 2) • IEEE 802.3ae • MAC: it’s just Ethernet • Maintains 802.3 frame format and size • Full duplex operation only • Throttled to 10.0 for LAN PHY or 9.58464 Gb/s for WAN PHY • PHY: LAN and WAN phys • LAN PHY uses simple encoding mechanisms to transmit data on dark fiber and dark wavelengths • WAN PHY adds a SONET framing sublayer to utilize SONET/SDH as layer 1 transport • PMD: optical media only • 850 nm on MMF to 65m • 1310 nm, 4 lambda, WDM to 300 m on MMF; 10 km on SMF • 1310 nm on SMF to 10 km • 1550 nm on SMF to 40 km

  29. 10 Gigabit Ethernet (2 of 2) • Supports dark wavelength and SONET/TDM with unlimited reach • Several Coding Schemes (64b/66b; 8B/10B; Scramblers) • Three optional interfaces: XGMII; XAUI; XSBI • Extension of MDIO interface • Continues Ethernet’s reputation for cost effectiveness and simplicity (goal 10X performance for 3X cost) • Expected target for ratification in Spring 2002

  30. 802.3ae to 802.3z Comparison • 10 Gigabit Ethernet • Full Duplex Only • Throttle MAC Speed • Optical Media Only • Create New Optical PMD’s From Scratch • New Coding Schemes • Support LAN to 40 km; Use SONET/SDH as Layer 1 Transport • 1 Gigabit Ethernet • CSMA/CD + Full Duplex • Carrier Extension • Optical/Copper Media • Leverage Fibre Channel PMD’s • Reuse 8B/10B Coding • Support LAN to 5 km

  31. Converting From Analog To Digital

  32. Pulse Code Modulation: a digital encoding scheme used in TDM • In this modulation technique, an analog signal is digitized, and interleaved with other digitized voice signal to create a single bit stream • At the receiving end, the bit stream is decomposed into separate digital streams of lower frequencies, each stream is then converted back into what resembles the original voice signal.

  33. Steps Required to Generate PCMStreams • Sampling: periodic measurement of the analog signals at regular intervals • Quantizing: assigning discrete values to samples • Coding: assigned binary codes to samples using what is known as the PCM code word

  34. Sampling

  35. Sampling • Sampling rate: how often should we take measurements of the analog signal • at least at twice the rate of its highest frequency component • For a voice channel with a frequency range between 300 Hz and 3400 Hz (bandwidth of 3100 Hz) we need to take a sample at least at a rate of 2 X 3100 = 6200 Hz or every 1/6200 second

  36. Sampling • In practical system, we sample multiple channel, we combine the samples of all channels into a single signal called the PAM signal (Pulse Amplitude Modulation signal) • In American systems we sample 24 channels • In the European systems 30 channels are sampled

  37. Quantization • To represent samples by a fixed number of bits • For example if the amplitude of the PAM signal range between -1 and +1 there can be infinite number of values. For instance one value can be -0.2768987653598364834634 • For practicality, we may use 20 different discrete values between -1 and +1 volts • Each value at a 0.1 increment

  38. Quantization: the binary world • Because we live in a binary world, we select the total number of discrete values to be binary number multiple (i.e., 2, 4, 8, 16, 32, 64, 128, 256, and so on) • This facilitate binary coding • For instance, if there were 4 values they would be as follows: 00, 01, 10, 11 • This is a 2-bit code

  39. Quantization:16 coded quantum steps • Between -1 and + 1 volts signal • 16 discrete steps • each step at 0.125 volts increment or decrement from the adjacent step • 0 0000 0v 3 0011 0.375v • 1 0001 0.125v 4 0100 0.500v • 2 0010 0.25v 5 0101 0.625v

  40. Quantization: 16 quantum steps(-1 to + 1 volts)

  41. Quantization Distortion • Quantization error is the different between the quantum value and the true value • More steps reduce quantizing distortion in linear quantization • This will require higher bandwidth, since we need more bits for each code word • Voice represent a problem because of the wide dynamic range, the level from the loudest syllable of the loudest talker to the lowest syllable of the quietest talker • S/D = 6n + 1.8 dB EX: 7 bit PCM cod 6.7 + 1.8 = 43.8 • practical system S/D = 30 - 33 dB

  42. Companding • Compression/Expanding • Non-linear • The voltage level between the loudest and the lowest is segmented in non-linear manor • The voltage range of each segment varies according to the level of the voltage

  43. Non-linear Quantization

  44. Non-linear Quantization

  45. Coding for Modern PCM systems • Non-linear • Logarithmic • A-Law • u-Law

  46. A-Law

  47. U-Law

  48. Coding for Modern PCM systems • Where  = instantaneous input voltage • V = maximum input voltage for which peak limitation is absent • i = number of quantization steps starting from the center of the range • B = number of quantization steps on each side of the center of the range.

  49. 13-segment A-Law Curve

  50. PCM Code Word

More Related