CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.

Slides:



Advertisements
Similar presentations
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Advertisements

Lecture 12 Layer 2 – Data Link Layer Protocols
Chapter 6 Errors, Error Detection, and Error Control.
1 Fall 2005 LAN Technologies and Network Topology Qutaibah Malluhi Computer Science and Engineering Department Qatar University.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
CSCI 4550/8556 Computer Networks Comer, Chapter 8: LAN Technology and Network Topologies.
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
Computer Network 實踐資管 Wang-Jiunn Cheng 2004 PART IV-1 Local Area Networks (LANs) Topology.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
1 Part II: Packet Transmission Packets on a Network Packets, Frames, LAN, WAN, Hardware Addresses, Bridges, Switches, Routing and Protocols Fall 2005 Qutaibah.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
CS352- Link Layer Dept. of Computer Science Rutgers University.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
Chapter 8 LAN Technologies and Network Topology Direct Point-to-Point Communication Local Area Networks (LANs) LAN Topologies Ethernet Token Ring FDDI.
Synchronous - Asynchronous Data Transmission. Asynchronous ► The sender and receiver are not Synchronised. ► The sender sends only one character at a.
Data Link Layer IS250 Spring 2010
Network Topologies An introduction to Network Topologies and the Link Layer.
Data link layer: services
Layer 2 functionality – bridging and switching BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
CSC 311 IEEE STANDARD ETHERNET Common Bus topology Uses CSMA/CD Named after “ether”, the imaginary substance many once believed occupied all of space.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
LAN technologies and network topology LANs and shared media Locality of reference Star, bus and ring topologies Medium access control protocols.
Integrity in Data Communications Packets, Frames and Error Detection.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
1 Part III Packet Transmission Chapter 7 Packets, Frames, and Error Detection.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
Networks. Common Xmit Media Shared Media Networks are a shared communication resource Only one user can access at a time.
1 Packets, Frames, and Error Detection. 2 The Problem Cannot afford individual network connection per pair of computers Reasons –Installing wires consumes.
1 ITGN 235: Principles of Networking ITGN 225: Networking Fall 2007/2008.
Computer Networks and Internets 《计算机网络与因特网》课件 林坤辉
CENG 490/510 Network Programming Russell Deaton Rm
Layer Two Data Link Layer Collects bits from layer 1 and organizes into frames Passes bits that make up frames to layer 1 for transmission Concerned with.
Chapter 7 - Packets, Frames and Error Detection 1. Concepts of Packets 2. Motivation for Packet Switching 3. Framing 4. Frame Formats 5. Transmission Errors.
IST 126 Computer Networks Day 2. Server Security Only one password needed to access network Associated with the account is permission to access certain.
1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.
SEPT, 2005CSI Part I.2 Packets, Frames, Parity, Checksums, and CRCs Dr. R.L. Probert, SITE, University of Ottawa.
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Local Area Networks: Topologies. 2 Packet Identification & MAC Addresses Each packet specifies an intended recipient with an identifier. – Demultiplexing.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
COMPUTER NETWORKS CS610 Lecture-7 Hammad Khalid Khan.
Chapter 8 LAN Technologies and Network Topology
COMPUTER NETWORKS CS610 Lecture-4 Hammad Khalid Khan.
CS4470 Computer Networking Protocols
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
ERROR DETECTION AND CORRECTION
Local Area Networks: Topologies
OCR AS Level F451: Data transmission
Chapter 7 Packets, Frames, and Error Detection
Part III Datalink Layer 10.
COMPUTER NETWORKS CS610 Lecture-6 Hammad Khalid Khan.
Packets, Frames, Parity, Checksums, and CRCs
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Packets, Frames, Parity, Checksums, and CRCs
Switching, Packets, Frames, Parity, Checksums, and CRCs
Presentation transcript:

CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection

Packets We have been talking in previous classes about lowest levels of data transmission Computer networks do not transfer data as a string of continuous bits Send small blocks called packets Packet switching networks

Packets Sender and receiver need to coordinate to ensure that data arrives correctly If data is lost computers can determine which packets have arrived intact On a network computers share access Using small packets ensures fairness to the wire resource Computers take turns sending packets so one set of computers don’t monopolize the network resource

Time division multiplexing Breaking data into small parts ensures access to the resource

Packets and hardware frames Ex: RS-232 encodes bits to transmit an ASCII character, doesn’t allow sender to signal start and end of a block of characters, hence ASCII 01(soh) and 04(eot)

Byte stuffing If framing characters are in data

Byte stuffing Replace reserved characters in data with mapped escape characters

Transmission errors Interference causes data to be lost or changed Lightning, electro-magnetic interference, power surges Lost, changed, or spuriously appearing bits account for much of the complexity in networks

Parity bits At the end of each character (remember ASCII is 7 bit characters) Sender and receiver agree on odd or even parity Sum the total number of 1 bits in character and make the parity bit a 1 or 0 to make the sum odd or even Parity error checking can’t detect transmission errors that change an even number of bits

Error detection mechanisms Adds overhead (additional bits are added to data) Size of additional information Complexity of algorithm Number of bit errors that can be detected Error detection is approximate – a reasonable effort to produce low probability of corrupt data

Checksum Send a checksum along with each packet Treat the data as a sequence of binary integers and compute the sum

Checksum Advantage Size and ease of computation 16 or 32 bit checksum=small overhead Addition algorithm=small computation overhead Disadvantage Can’t detect all common errors

Checksum error detection

CRC Errors (Cyclic Redundancy Checks) or Better than checksum Exclusive or (xor) Shift register

Shift register, XOR,CRC A hardware 16 bit CRC

Common errors that CRC’s can detect Vertical errors First two bits of each character are set to 0 These errors appear in a vertical column if the characters are arranged in rows Burst errors Small set of bits in one location (from emi)da Account for many errors

Frame format Networks associate error detection at frame level Sender calculates checksum or CRC and transmits the extra data in the frame Receiver calculates the same value and compares it to the additional information sent with the frame

Network topologies Direct point-to-point Shared medium (LAN)

Locality of reference principle Computer communication follows two distinct patterns. First, a computer is more likely to communicate with computers that are physically nearby than with computers that are far away. Second, a computer is more likely to communicate with the same set of computers repeatedly

LAN topologies Star Ring Bus Logical connection vs. physical connection For instance a ring topology need not be in a circle, but could follow a hallway or rise vertically to another floor

Star All computers attach to a central point

Ring Entire ring network is disabled if one node is cut

Bus Single cable to which all computers attach Advantage/disadvantage

Ethernet History Coax, 500 meters, 3 meters between segments, operated at 10Mbps

Ethernet Transmission and Manchester Encoding Manchester Encoding Edge triggered Rising or falling edges encode data Falling edge encodes 0; rising edge = 1 Preamble allows for time synchronization Receiver uses preamble(64 alternating bits preceding the frame) to sync time slots

Sharing on ethernet Bus topology shares access to wire CMSA = Carrier Sense Multiple Access Checks for transmission on wire before sending data Wait until wire is empty to transmit

Collision detect Interference between two signals Simultaneous transmit Garbles data Computers use exponential backoff to choose which will proceed Random time delay before transmitting again