TCP/IP Layered Model Flashcards
Layers
+ 5: Application Layer + 4: Transport Layer + 3: Network Layer + 2: Data Link Layer + 1: Physical Layer
Layer 1 Encoding Schemes
Manchester (clock XOR data = code) 8b/10b -> Block encoding. 80% efficient 64b/66b -> 10 Gigabit Ethernet. 97% efficient.
Layer 1: Shannon’s theorem
Taking into account signal to noise ratio: Max Data rate = Hlog2 where H = bandwidth. S = Signal Power. N = Noise power.
Layer 2:
Link Layer
Layer 2 Functions:
Receive datagrams from Network Layer Transmission of frames over physical media. Synchronisation Detection of Transmission errors
Data Link Layer
Transforms raw transmission facility into a line ‘free of errors’ to the network layer. Lets sender break transmission into frames. May regulate flow of data - Stops slow receiver being overwhelmed by fast sender.
Link Layer Acknowledgements
Three models for acknowledging: + Connectionless (no ack’s) -> Low error rate networks eg. Ethernet + Acknowledge, connectionless service. -> e.g. 802.11 + Acknowledged connection-oriented services -> For long, unreliable links e.g. satellite.
Handling Acknowledgements & Errors using Automatic Repeat and reQuest (ARQ).
+ Stop and Wait. Send frame, wait for ACK. Send next frame. Fails error check if no ACK. + Improved by pipelining. Send multiple frames before receiving ACK. 1. Go-back-N ARQ. Re-Send window of transmitted frames. 2. Selective-Reject ARQ: Transmit only lost frames. Difficult to implement.
Framing
Each sequence of bits needs to be framed. Use channel bandwidth to indicate start and end of frame. + Use FLAG to mark start and end: If FLAG - Use ESC byte When received: Strip first ESC byte. If ESC occurs in data -> ESC it. Used by Point-to-Point protocol (PPP)
Detecting Errors
Parity Bit - Simplest -> Not efficient. Cyclic Redundancy Check (CRC) - Used by Ethernet
Ethernet.
Originally shared media. Later became switched to handle media contention. No contention if fully duplex
CSMA/CD
Carrier Sense Multiple Access with Collision Detection. Detects collisions in Ethernet. +Sender listens to channel to see if it is busy. If so, wait. + When the channel is free, start talking. Listen whilst sending. + Stop if collision occurs. +Back off before retransmitting after time delay t (where t is increasing time value)
Ethernet Frame
+48 bit source and destination address. + Preamble: 7 bytes plus 1 byte SFD to sync Tx and Rx. +Min Data Size: 46 bytes -> To detect collisions.
Ethernet Networks: Link layer elements
+ Logical Link Control (LLC): Provides interface to Layer 3. Supports error detection, ARQ pipelining. May use ACKs. + Medium Access Control protocol (MAC): Controls accessto broadcast media. Handles multiple host access to same collision domain.
MAC Addresses.
Need to be unique. 24bit allocated to vendor. 24bit allocated by vendor.