protocols

25
Communication Protocols 1

Upload: subasrijayagopi

Post on 13-Apr-2016

1 views

Category:

Documents


0 download

DESCRIPTION

protocols stc

TRANSCRIPT

Page 1: Protocols

Communication Protocols

1

Page 2: Protocols

Protocol

A protocol is a standard adopted, which tells the way in which the bits of a frame must be sent from a device (or controller or port or processor) to another device or system

2

Page 3: Protocols

A protocol defines how are the frame bits:

3

1) sent Synchronously or Iso- synchronously or asynchronously and at what rate(s)?

2) preceded by the header bits?

Page 4: Protocols

3) How the receiving device address communicated so that only destined device activates and receives the bits?

[Needed when several devices addressed though a common line (bus)]

4

Page 5: Protocols

4) How can the transmitting device address defined so that receiving device comes to know the source when receiving data from several sources?

5) How the frame-length defined so that receiving device know the frame-size in advance?

5

Page 6: Protocols

6) Frame-content specifications Arethe sent frame bits specify the control or device configuring or command or data?

6

7) Are there succeeding to frame the trailing bits so that receiving device can check the errors, if any in

reception before it detects end of the frame ?

Page 7: Protocols

A protocol may also define:

7

8) Frame bits minimum and maximum length permitted per frame

9) Line supply and impedances and line-Connectors specifications

Page 8: Protocols

Specified protocol at an embedded system port or communication device

IO port bits are sent according to a specified protocol, which is to be followed when communicating with another device through an IO port or channel

8

Page 9: Protocols

Protocols

9

• HDLC, Frame Relay, for synchronous communication

• For asynchronous transmission from a device port RS232C, UART, X.25, ATM, DSL and ADSL

• For networking the physical devices in telecommunication and computer networks Ethernet and token ring protocols used in LAN networks

Page 10: Protocols

Protocols in embedded network devices

• For Bridges and routers• Internet appliances application protocols

and Web protocols ─HTTP (hyper text transfer protocol), HTTPS (hyper text transfer protocol Secure Socket Layer), SMTP (Simple Mail Transfer Protocol), POP3 (Post office Protocol version 3), ESMTP (Extended SMTP),

10

Page 11: Protocols

File transfer, Boot Protocols in Embedded

11

• TELNET (Tele network),• FTP (file transfer protocol),• DNS (domain network server),• IMAP 4 (Internet Message Exchange

Application Protocol) and• Bootp (Bootstrap protocol).

Page 12: Protocols

Wireless Protocols in embedded devices network

12

• Embedded wireless appliances uses wireless protocols

• ─ WLAN 802.11, 802.16, Bluetooth, ZigBee, WiFi, WiMax,

Page 13: Protocols

Exemplary Protocol – HDLC

• HDLC (High-level Data Link Control) is a standard protocol for the data link network.

• For synchronous communication between two data link layers on a network.

13

Page 14: Protocols

14

The contents of an HDLC frame are shown in the following table:

The contents of an HDLC frame

Flag Address Control Information FCS Flag

8 bits 8 or more bits 8 or 16 bits

Variable length, 0 or more bits

16 or 32 bits 8 bits

Page 15: Protocols

15

Page 16: Protocols

There are two formats Standard HDLC and Extended HDLC for 28 and 216 destination devices or systems, respectively .

16

Formats of bits in a HDLC frame

Page 17: Protocols

Sequence of bits in a HDLC frame

17

Page 18: Protocols

18

• FramestartCompulsory-

signalingFlag bits

flagatstart

bits;are

(01111110)

Page 19: Protocols

• Address bitsfor

19

destinationCompulsory 8 bits in Standard HDLC16 bits in extended format

Page 20: Protocols

• Control bits Case 1: • Information Frame

First bit 0, next 3-bits N(S), next

20

bit P/F and last 3-bits N(R) instandard format

N(R) :sequence number of frame received earlier from a

device to which this HDLC frame is being sent

N(S) :sequence number of frame sendP/F :Polling means to detect

through an acknowledgement

Page 21: Protocols

• Control bits Case 2:Supervisory Frame; First two bits

(10), next 2-

21

bits RR or RNR or REJ or SREJ, next bit P/F and last 3-bits

N(R) in standard format. RR- A message in control bits in case 2,

which conveys ‘Receiver Ready’RNR - Receiver Not ReadyREJ – Reject (Sent when a message rejects). SREJ – ‘Selectively Reject’ Frame received out-of-sequence, repeat suggested. REJ and SREJ are negative Acknowledgement NACK

Page 22: Protocols

• Control

22

bits Case 3: Un-numberedFrame; First two bits (11), next 2-bits^M,next remaining

bit P/F andlast bits for

M. [8-bits

3-bitare

immaterial after M bits inextended format]M- For command or Response from the transmitter- Reset, Disconnect or a set of defined mopde type

Page 23: Protocols

10

• Data bits; Compulsory; m frame bits transmitted; Each bit is at the serial line for time T or, each frame is atthe line for time m.T.

23

Page 24: Protocols

(Frame

24

Check Sequence)• FCS bits; Compulsory; 16 bits in

and 32 in

standard format extended format

Page 25: Protocols

• Frame

25

End flag bits; Compulsory;Flag bits at end = (01111110)