+ All Categories
Home > Documents > TOBB ET Ü ELE46/ELE563 Com munications Networks Lecture 01 May 6, 2014

TOBB ET Ü ELE46/ELE563 Com munications Networks Lecture 01 May 6, 2014

Date post: 23-Feb-2016
Category:
Upload: israel
View: 19 times
Download: 0 times
Share this document with a friend
Description:
TOBB ET Ü ELE46/ELE563 Com munications Networks Lecture 01 May 6, 2014. Fall 20 11 Tuesday 10: 30 – 1 2:2 0 ( 310 ) Thursday 15: 30 – 1 7:2 0 ( 372 ) İsrafil Bahçeci Office : 168 ibahcec [email protected]. Data Link Layer. Functions of DLL. Frame transmission Reliable: Error free - PowerPoint PPT Presentation
Popular Tags:
23
TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci Office: 168 [email protected]
Transcript
Page 1: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

TOBB ETÜ ELE46/ELE563Communications Networks

Lecture 01May 6, 2014

Fall 2011

Tuesday 10:30 – 12:20 (310)Thursday 15:30 – 17:20 (372)

İsrafil BahçeciOffice: 168

[email protected]

Page 2: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Data Link Layer

Page 3: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Functions of DLL Frame transmission

Reliable: Error free Efficient: Transmission Rate vs.

Channel condition What to do?

Error correction/detection Channel impairements

Page 4: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

DLL Design Issues Service interface to network layer Dealing with transmission errors Flow control Frame management: Network

packets encapsulated

Page 5: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Data Path

1. Unacknowledged connectionless service -> Reliable channel ->Ethernet2. Acknowledged connectionless service -> Unreliable channel -> Wi-Fi 3. Acknowledged connection-oriented service

Page 6: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

ACK/NACK issue DLL ACK/NACK is an optimization, not requirements

Higher layers may take care of errors PHY medium determines this optimization

Fiber, ethernet Wireless

Connection-oriented service: reliable streaming Appropriate for unreliable, long channels (satellite, long-

distance telephone circuit, etc..) Establish a connection before data exchange Numbered frames Each frames received exactly once, all in order 3 phases

Connection establishment, initialize counters Frame transmission Connection release

Page 7: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Framing Bit stream from PHY layer may contain

errors DLL splits bit streams in to discrete

frames Checksum: CRC = cyclic redundancy

check bits Receiver calculates the checksum bits

and compares it with the one contained in the frame

Bad frames detection

Page 8: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014
Page 9: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Frame generation Must alleviate the frame reception (e.g., sync) at

the receiver side Byte-count

Number of bytes in the header Errors in this info is catastrpohic

Flag bytes with byte stuffing Frame start at certain slots indicate by a known flag byte

(start and end with FLAGs) If FLAG exists in paylod, insert ESC charcater; ESC is removed

before forwarding to network layer PPP: point-to-point protocol

Flag bits with bit stuffing Physical layer coding violation

Page 10: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Byte FLAGing

Page 11: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Bit FLAGing Bit level flagging Bit stuffing

Ex. HDLC – high level data link control Frame begins with 0x7E : 01111110 Bit sutffing: a consecutive 5 1s stuffed

with 0

Page 12: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Frame Length Data based frame length

~12.5% with bit stuffing Ethernet

Preamble: all frames start with a known bit pattern

72-bits for 802.11

Page 13: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Error Control ACK/NACK

ACK: correct reception NACK: error!, retransmit

Complete ACK/frame loss Timers: Time to wait for ACK/NACK Timer cancellation if ACK arrives before

Multiple transmission of frames: Frame numbering Overall goal: Each frame is only passed

only once to the network layer

Page 14: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Flow Control How to control frame rate so that receiver

can accept transmissions Sender: fast processors, receiver: slow processor

HD Video to a smartphone with small computing power!

Feedback-based flow control Rx to Tx: send more/less data

Rate-based flow control Tx-built in flow control without feedback

Usually feed-back based in DLL: Rx side determines the transmission of additional data until it processes the previously received ones

Page 15: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Error Detection/Correction Fiber, cable: small error Wireless links: larger errors

Add redundancy for correction FER: forward error correction

Enough redundancy for detection Depends on channel reliability

Fiber: error detection Wireless: error correction + detection

Error types Single-bit errors, few-bit errors Burst errors Erasure channel: easier to correct than flip-errors

FEC/ED can be used in PHY,DLL and network layers as well

Page 16: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

FEC: error correction codes Hamming Binary convolutional Reed-Solomon Low-density parity check codes

Page 17: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

FEC Frame length: m bits Redundancy: r bits Linear block code: r bits from m

information bits via linear combination (e.g., in mod-2 for binary codes) of information block Systematic code: m bits are sent directly

Code rate = m/(m+r)

Page 18: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Hamming distance Distance between two sequences

Binary: seq_d = seq1 XOR seq2 Number of 1s in seq_d Hamming distance of d -> d single bit

errors

Page 19: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Hamming Code Linear block code Error syndrome

Page 20: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Convolutional Code

Page 21: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Decoding Soft-decision Hard-decision

Page 22: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Cyclic codes A subset of linear block codes Non-binary cyclic codes

BCH codes Reed-Solomon codes

Page 23: TOBB ET Ü ELE46/ELE563 Com munications  Networks Lecture 01 May 6, 2014

Error Detection Codes Linear systematic block codes

Parity Checksums Cyclic redundancy checks (CRCs)


Recommended