communication lines. osi model open systems interconnection (osi) model (iso/iec 7498-1) source:...

43
Communication lines

Upload: ayanna-towsley

Post on 14-Dec-2015

237 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Communication lines

Page 2: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

OSI model

• Open Systems Interconnection (OSI) model (ISO/IEC 7498-1)

Source: homepages.uel.ac.uk

• Physical layer – specifies electrical and physical properties (cable)

• Pins, voltages, impedance, modulation, timing, topology

Page 3: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

OSI model

• Open Systems Interconnection (OSI) model (ISO/IEC 7498-1)

Source: homepages.uel.ac.uk

• Physical layer – Transmits raw bit stream over physical cable

• IEEE 802, RS232, RS422, RS485, I2C, SPI,…

Page 4: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

OSI model

• Open Systems Interconnection (OSI) model (ISO/IEC 7498-1)

Source: homepages.uel.ac.uk

• Data link layer – specifies network data frame (packet), checksum, source and destination address, and data

• E.g. Ethernet MAC, RS232

Page 5: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

OSI model

• Open Systems Interconnection (OSI) model (ISO/IEC 7498-1)

Source: homepages.uel.ac.uk

• Network layer – routing, directing datagrams from one network to another

• E.g. IP addresses

Page 6: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 (EIA232)

• Dates from 1969 (RS-232-C)• Last standard is TIA/EIA-232-F from 1997• Defines physical and data link layer• Single transmitter and receiver

TX RX

Log. 0 : +5 to +15 VLog. 1 : -15 to -5 V

Log. 0 : > +3 VLog. 1 : < -3 VNoise immunity:

min. 2 V

Page 7: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 (EIA232)

• Length RS-232-C = 15 m• RS-232-F defines max. load capacity 2500 pF

TX RX

CRX

~20 pF

CM

signal

shield

CS

CS

Page 8: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Cable capacity

CS ~ 0,5 CM unshielded cable

CS ~ 2 CM shielded cable

CRX

~20 pF

CM

signal

shield

CS

CS

Max. length: Lmax = 2500 / Ctotal

Ctotal = CM + CS

e.g. Belden 1700A TP: 78,7 Ω/km, 45,9 pF/m

Page 9: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Communication protocol

idle

Log. 0 : +5 to +15 VLog. 1 : -15 to -5 V

start

0

1

0

1

0

1

0

1 1

b0b1

b2b3

b4b5

b6b7

stop idle

1

(parity)• Odd• Even

data: 11010101b (213dec)

LSB MSB

1,1.5,2

Page 10: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Asynchronous communication

idle

Fixed comm. speed: tx + rx same (tolerance ~3%)

start

0

1

0

1

0

1

0

1 1

b0b1

b2b3

b4b5

b6b7

stop idle

1

(parity)

TX RX

Page 11: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Communication speedRS-232-F limits to 30 V/µs, max 4% of bit time => max. theoretical speed 200 kbit/s 0

11

Δt

ΔV

Page 12: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Communication speedRS-232-F standard defines speeds:50,75,110,150,300,600,1200,2400,4800,9600,19200 bit/s

Common speeds above standard definition:28800, 38400, 57600, 115200 bit/s

Higher speed = lower distance

Baud rate [Bd] Max length [ft] Max length [m]

19 200 50 15

9 600 500 150

4 800 1 000 300

2 400 3 000 900

source: www.hw.cz

Page 13: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - SignalsDev. 1 Dev. 2

TxD

RxD

GND

RxD

TxD

RTS Request to send

CTS Clear to send

CTS

RTS

DTR Data terminal ready DCDData Carrier Detect

DSRData Set Ready

DTRDSR

DCD

Page 14: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Connectors

source: www.arcelect.com

9 pin

Page 15: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Connectors

source: fjkraan.home.xs4all.nl

25 pin

source: www.solentcables.co.uk

Page 16: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS232 - Summary

• 1 transmitter, 1 receiver• Common ground• Typically 8 bit, no parity, 1 stop bit (8N1)

Page 17: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-422 (EIA-422)

• ANSI/TIA/EIA-422-B or ITU-T Recommendation T-REC-V.11

• Uses differential signaling + GND• 1 transmitter + 10 receivers• 10 Mbit/s (12 m), 100 kbit/s (1200 m)• Max. 1200 m• Standard does not define protocol and pins

Page 19: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-422

source: meteosat.pessac.free.fr

source: www.scantec.de

Log. 0: VA – VB ≥ +0.2 V

Log. 1: VA – VB ≤ -0.2 V

Page 20: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-485

• ANSI/TIA/EIA-485 (1998)

• Uses differential signaling• 32 transmitter + 32 receivers• 10 Mbit/s (12 m), 100 kbit/s (1200 m)• Max. 1200 m

• Standard does not define protocol and pins

Page 21: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-485 signaling

Source: www.consultants-online.co.za

source: www.sealevel.com

Log. 0: VA – VB ≥ +0.2 V

Log. 1: VA – VB ≤ -0.2 V

Page 22: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-485 devices

Source: www.root.cz

Internally each node can have a transmitter and receiver, they are switched into high-impedance mode when not used

Page 27: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

RS-422 vs. RS-485

source: hw.cz

Page 28: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

USB• Universal serial bus (1995)

• Differential signaling (DATA + , DATA -) + power

source: www.se7ensins.comsource: en.wikipedia.org

Page 29: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

USB specifications

• Max. 127 devices• Superspeed – 5 Gbit/s (USB 3.0 - 2008)• High Speed - 480Mbits/s (USB 2.0 - 1999)• Full Speed - 12Mbits/s• Low Speed - 1.5Mbits/s

Page 30: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

USB signaling

• Uses NRZI (Non Return to Zero Invert) signaling

host device

• Differential „1“: D+ greater than D-

• Differential „0“: D+ less than D-

D+

D-

• Differential „1“: D+ > 2.8 V, D- < 0.3V• Differential „0“:D- > 2.8 V, D+ < 0.3V

Page 32: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Speed identification

• Full speed device

source: www.beyondlogic.org

Page 33: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Speed identification

• Full speed device

source: www.beyondlogic.org

Page 34: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Non Return to Zero Invert signaling

• "One" is represented by a transition of the physical level.

• "Zero" has no transition.

source: en.wikipedia.org source: www.jbmelectronics.com

Page 35: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – physical layer

• Standard IEEE 802.3• Max. length 100m• 3 Mbit/s to 100 Gbit/s

• Differential signaling• Signals TX+, TX-, RX+, RX-

source: techpubs.sgi.com

Page 36: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – physical layer

Logic levels (10BaseT - output)• Log. 1 > +0.7 V• Log. 0 < -0.7 V

source: hw-server.com

source: sigalrm.blogspot.comsource: www.interfacebus.com

Page 37: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Manchester encoding

source: en.wikipedia.org

• Encoding helps clock recovery

Page 38: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – physical layer

Ethernet data, showing MLT-3 encoding of bits. (used in e.g. 100BASE-TX)

source: flickr.com

Page 39: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Data Link Layer - frame

synchronization

source: communities.netapp.com

Page 40: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Data Link Layer - frame

addresses

source: communities.netapp.com

Page 41: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Data Link Layer - frame

identifies what higher-level network protocol is being carried in the frame (example: TCP/IP)

source: communities.netapp.com

Page 42: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Data Link Layer - frame

data

source: communities.netapp.com

Page 43: Communication lines. OSI model Open Systems Interconnection (OSI) model (ISO/IEC 7498-1) Source: homepages.uel.ac.ukhomepages.uel.ac.uk Physical layer

Ethernet – Data Link Layer - frame

Control checksumCyclic redundancy check

source: communities.netapp.com