physical layer
play

Physical layer Encoding data into signals Computer networks Girts - PowerPoint PPT Presentation

Physical layer Encoding data into signals Computer networks Girts Strazdins, gist@ntnu.no, NTNU i lesund, 2020 Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and


  1. Physical layer Encoding data into signals Computer networks Girts Strazdins, gist@ntnu.no, NTNU i Ålesund, 2020

  2. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  3. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  4. Data and signals Communication channel Receiver Sender Data Received Data Signals Can be digital or Can be digital or analog analog

  5. Analog data • Continuous, without natural discrete boundaries • Examples: temperature, audio signal

  6. Digital data • Any data with naturally separate categories, boundaries. Discrete data. • Examples: integer numbers, text.

  7. We focus on digital data • Computers operate with digital data only • In this course we focus only on digital data transmission Discretization 101001010101.......

  8. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  9. Transmitting data with signals Sender Receiver Data Received Data Signals In computer communication we use electromagnetic signals

  10. What can be signals? Anything, as long as: • Signals can encode symbols – signs with a meaning • Sender and receiver agree on their meaning • These can be transmitted

  11. Example symbols Sender Receiver Data Received Data Symbols: black and white card

  12. Encoding 1 and 0 We agree that white card means 0 and black card means 1 Sender Receiver Data Received Data Symbols: black and white card

  13. 1 bit per symbol • 2 possible symbols: 0 and 1. • We can transmit 1 bit of information with each symbol • To transmit an 8-bit number, we need to show 8 symbols: • 12 in decimal = 00001010 = • 27 in decimal = 00011011 = • 254 in decimal = 11111110 =

  14. What if we have 4 cards? How many bits per symbol?

  15. What if we have 4 cards? 4 = 2 2 possible symbols = 2 bits per symbol 00 01 10 11 • To transmit an 8-bit number, we need to show 4 symbols: • 12 in decimal = 00001010 = 00 00 10 10 = • 27 in decimal = 00011011 = 00 01 10 11 = • 254 in decimal = 11111110 = 11 11 11 10 =

  16. Why not infinite number of symbols? • More symbols = harder: • Harder to signal them • Harder to separate them for the receiver

  17. Why not infinite number of symbols? • More symbols = harder: • Harder to signal them • Harder to separate them for the receiver • Example: separating these is easy: • How about these?

  18. Baudrate and bitrate • Baudrate = the rate (speed) at which symbols can be shown, measured in symbols/second • Bitrate = how many bits per second the channel can transmit (the speed of the channel) • Bitrate = baudrate x bitsPerSymbol

  19. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  20. Digital signaling Symbols are distinct, grouped in separate categories. Examples: • Pieces of paper with distinct colors • Morse code (sound) ... --- ... • Distinct voltage levels in wires (+5V, 0V) • Digital signaling is easier over wires, harder with wireless. • Examples of digital signaling: Ethernet and ISDN lines

  21. Transmitting data with signals Sender Receiver Data Received Data Signals In computer communication we use electromagnetic signals

  22. Voltage levels as digital signals • Easiest example: 0V means 0 while +3V means 1 • We get 1 bit per symbol

  23. 4 levels = 2 bits/symbol If we can use 4 different voltage levels (-10V, -5V, +5V, +10V), we get 4 symbols = 2 bits per symbol: • -10V = 00 • -5V = 01 • +5V = 10 • +10V = 11

  24. Goals for digital signaling Ideally, we want the signaling to be: • Effective : high bitrate (speed) • Synchronized: same baudrate for sender and receiver • Robust : noise should not confuse the receiver

  25. Sender and receiver synchronization Receiver must sample (read) the symbols at the same rate at which they were sent (baudrate) Example of synchronization error: Sender signals the symbols: 0 1 time Receiver samples symbols: 0 0 1 1

  26. Popular encoding types 1. Absolute 2. Differential 3. Bi-phase • We observe these for learning purposes. More advanced techniques used in practice.

  27. Absolute encoding • Each symbol is a specific voltage level • Example: Non-Return-to-Zero (NRZ), used in RS-232 (serial port communication) • Effectiveness: + • Synchronization: - • Robustness: -

  28. Differential encoding • One symbol (1) changes the voltage, the other symbol (0) keeps the same voltage level • Example: Non-Return-to-Zero-Inverted (NRZI), used in CDs • Effectiveness: + • Synchronization: - • Robustness: +/-

  29. Bi-phase encoding • Each symbol is a sequence of two voltage levels. • For example: 0 is high-to-low voltage change, while 1 is low-to-high change • Example: Manchester encoding, used in 10Mb/s Ethernet • Effectiveness: - • Synchronization: + • Robustness: +

  30. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  31. Analog signaling • Idea: take an analog carrier wave , modulate it with the signal (data) • Modulation: change properties of the carrier signal, such as: • Amplitude • Frequency • Phase • Several properties can be combined (modern techniques do that)

  32. Amplitude Shift keying (ASK) • Note: term Amplitude Modulation (AM) is used for analog data. ASK is used for digital data. • Idea: use distinct amplitude levels of the signal. • Informally: volume, intensity, strength of the signal

  33. Frequency Shift Keying (FSK) • Idea: use distinct frequency waves in the signal

  34. Phase Shift Keying (PSK) • Idea: change the phase of the signal • Informally: move the signal to the left or right

  35. Limitations • We can’t increase the amplitudes and frequencies indefinitely. It will be hard to manufacture equipment. • We can’t increase the number of levels (symbols) indefinitely: noise will create confusion.

  36. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  37. Sender and receiver synchronization Receiver must sample (read) the symbols at the same rate at which they were sent (baudrate) Example of synchronization error: Sender signals the symbols: 0 1 time Receiver samples symbols: 0 0 1 1

  38. Synchronization principles • Without synchronization the transmission is worthless (can even be harmful - misinformation) • Main sources of challenge: • High speed of transmission = many symbols/second • Long periods with no change (or “silence”) – receiver starts to wonder - what is going on?

  39. Main synchronization approaches • In practice, different approaches. • The main synchronization types: a) Synchronization signal on a separate line b) Synchronization signal built into the line c) Start and stop signal before and after each message, short messages (low chance of de-synchronization within one message)

  40. Outline 1. Digital and analog data 2. Signaling, symbols, bitrate 3. Digital signaling 4. Analog signaling 5. Sender and receiver synchronization 6. Physical media

  41. Physical media • Media – tools and environment allowing to transmit signals, the channel of communication. • Popular physical media for computer networks: • Coaxial copper cables (somewhat outdated) • Twisted-pair cables • Fiber optic cables • Wireless communication

  42. Coaxial cable Was more actively used in early days

  43. Twisted pair cable RJ 45 • • Shielded Unshielded

  44. Fiber-optic cables

  45. How the fiber works Watch this video to understand how fiber optic cables are made and how they work: https://www.youtube.com/watch?v=0MwMkBET_5I

  46. Wireless media Digital data sent with analog signals

  47. Wireless links Wireless routers or bridges Cellular networks (3G, 4G, … ) How far can you transmit?

  48. Wireless links

  49. How many km did you say?

  50. Things to remember • We transmit symbols at a specific rate ( baudrate ) • The overall transmission speed ( bitrate ) depends on baudrate and bits per symbol • Digital data can be encoded in both analog and digital signals • We strive for efficient, robust and synchronized signaling (encoding) • Different physical media are available, the most popular nowadays are twisted-pair cables, fiber optic cables and wireless media

  51. Further reading Topic Chapters in Kurose’s book Chapters in Hallsteinsen’s book Analog and digital data, - 6.7 Analoge og digitale signals, symbols, See Data Encoding data og signaler baudrate, bitrate, Techniquest, Digital synchronization Modulation Techniques in Tutorialspoint https://www.tutorialspoin t.com/digital_communica tion/digital_communicati on_data_encoding_techni ques.htm Physical media 1.2.2 Physical media 6.6 Medier

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend