Introduc)on to Computer Networks

Similar documents
CSCI-1680 Physical Layer Rodrigo Fonseca

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

Encoding and Framing

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

C06a: Digital Modulation

Lecture 5 Transmission

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Stefan Savage

Lecture 23: Media Access Control. CSE 123: Computer Networks Alex C. Snoeren

Introduc8on to Computer Networks. Where we are in the Course. Overview of the Physical Layer

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Alex C. Snoeren

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

CSE 461: Bits and Bandwidth. Next Topic

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

Computer Networks

Physical Layer. Transfers bits through signals overs links Wires etc. carry analog signals We want to send digital bits. Signal

Physical Layer. Networked Systems (H) Lecture 3

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

Operating Systems and Networks. Networks Part 2: Physical Layer. Adrian Perrig Network Security Group ETH Zürich

Lecture Progression. Followed by more detail on: Quality of service, Security (VPN, SSL) Computer Networks 2

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

SEN366 Computer Networks

Lecture-8 Transmission of Signals

Physical Layer: Outline

Fundamentals of Data and Signals

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

and coding (a.k.a. communication theory) Signals and functions Elementary operation of communication: send signal on

CSE 461 Bits and Links. David Wetherall

Class 4 ((Communication and Computer Networks))

Digital to Digital Encoding

CS601 Data Communication Solved Objective For Midterm Exam Preparation

CSEP 561 Bits and Links. David Wetherall

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

Chapter 2. Physical Layer

Lecture (06) Digital Coding techniques (II) Coverting Digital data to Digital Signals

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

Physical Layer. Networked Systems Architecture 3 Lecture 6

Data Communications and Networking (Module 2)

Lecture 3 Concepts for the Data Communications and Computer Interconnection

Outline / Wireless Networks and Applications Lecture 3: Physical Layer Signals, Modulation, Multiplexing. Cartoon View 1 A Wave of Energy

Physical Layer. Networked Systems 3 Lecture 5

Fundamentals of Digital Communication

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

ECE 435 Network Engineering Lecture 4

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Sirindhorn International Institute of Technology Thammasat University

Data Communication (CS601)

Lecture 2: Links and Signaling"

Chapter 3 Digital Transmission Fundamentals

Chapter 4 Digital Transmission 4.1

Announcements : Wireless Networks Lecture 3: Physical Layer. Bird s Eye View. Outline. Page 1

Channel Concepts CS 571 Fall Kenneth L. Calvert

Why Digital? Communication Abstractions and Digital Signaling

Department of Computer Science and Engineering. CSE 3213: Computer Networks I (Fall 2009) Instructor: N. Vlajic Date: Dec 11, 2009.

The Physical Layer Outline

Lecture (07) Digital Modulation Digital data transmission through analog signals

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

Last Time. Transferring Information. Today (& Tomorrow (& Tmrw)) Application Layer Example Protocols ftp http Performance.

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

CTD600 Communication Trainer kit

Layering and Controlling Errors

Wireless Communication in Embedded System. Prof. Prabhat Ranjan

Signal Encoding Techniques

Announcement : Wireless Networks Lecture 3: Physical Layer. A Reminder about Prerequisites. Outline. Page 1

MULTIPLE CHOICE QUESTIONS

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

RF Basics 15/11/2013

Basic Communications Theory Chapter 2

Simple Algorithm in (older) Selection Diversity. Receiver Diversity Can we Do Better? Receiver Diversity Optimization.

Stream Information. A real-time voice signal must be digitized & transmitted as it is produced Analog signal level varies continuously in time

Systems. Roland Kammerer. 29. October Institute of Computer Engineering Vienna University of Technology. Communication in Distributed Embedded

Chapter 1 Acknowledgment:

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

Physical connec-vity CSCI 466: Networks Keith Vertanen Fal 2011

IST 220 Exam 1 Notes Prepared by Dan Veltri

Manchester Coding and Decoding Generation Theortical and Expermental Design

Lecture 8: Media Access Control

ROM/UDF CPU I/O I/O I/O RAM

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

1. What is the bandwidth of a signal that ranges from 40 KHz to 4 MHz? a MHz (4M -40K) b. 36 MHz c. 360 KHz d. 396 KHz

Lecture 8: Media Access Control. CSE 123: Computer Networks Stefan Savage

Question Paper Profile

Computer Facilities and Network Management BUS3150 Assignment 1

Wireless Intro : Computer Networking. Wireless Challenges. Overview

Data Communications Computer Eng. 3 rd class course Lecturer : Hamid Mousa

Basic Concepts in Data Transmission

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Digital Transmission

Digital Transmission

Datenkommunikation SS L01 - Communication Basics (v5.2)

The figures and the logic used for the MATLAB are given below.

EEE 309 Communication Theory

Data Encoding g(p (part 2)

Transcription:

Introduc)on to Computer Networks COSC 4377 Lecture 20 Spring 2012 April 4, 2012

Announcements HW9 due this week HW10 out HW11 and HW12 coming soon! Student presenta)ons

HW9 Capture packets using Wireshark Plot CDF

Today s Topics Switching Physical Layer Bandwidth Modula)on Encoding Framing

Wired Media Access

Learning Bridges A B C Bridge Port 1 Port 2 X Y Z Idea: don t forward a packet where it isn t needed If you know recipient is not on that port Learn hosts loca)ons based on source addresses Build a table as you receive packets Table says when not to forward a packet Doesn t need to be complete for correctness

Dealing with Loops Problem: people may create loops in LAN! Accidentally, or to provide redundancy Don t want to forward packets indefinitely A B3 B C B5 B2 D B7 K E F B1 G H I B6 B4 J

Spanning Tree In the mathema)cal field of graph theory, a spanning tree T of a connected, undirected graph G is a tree composed of all the ver)ces and some (or perhaps all) of the edges of G. Informally, a spanning tree of G is a selec)on of edges of G that form a tree spanning every vertex. That is, every vertex lies in the tree, but no cycles (or loops) are formed. From: hzp://en.wikipedia.org/wiki/spanning_tree

Spanning Tree hzp://www.graph- magics.com/ar)cles/min_spantree.php

Spanning Tree Algorithms Graph search algorithms Dijkstra s algorithm Minimum- spanning Tree Algorithms

Spanning Tree A A B3 B B3 B C B5 C B5 B2 D B7 K B2 D B7 K E F E F B1 B1 G H G H I B6 B4 I B6 B4 J J Need to disable ports, so that no loops in network Like crea)ng a spanning tree in a graph View switches and networks as nodes, ports as edges

Distributed Spanning Tree Algorithm Every bridge has a unique ID (Ethernet address) Goal: Bridge with the smallest ID is the root Each segment has one designated bridge, responsible for forwarding its packets towards the root Bridge closest to root is designated bridge If there is a )e, bridge with lowest ID wins

Spanning Tree Protocol Spanning Tree messages contain: ID of bridge sending the message ID sender believes to be the root Distance (in hops) from sender to root Bridges remember best config msg on each port Send message when you think you are the root Otherwise, forward messages from best known root Add one to distance before forwarding Don t forward if you know you aren t dedicated bridge

Limita)ons of Bridges Scaling Spanning tree algorithm doesn t scale Broadcast does not scale No way to route around congested links, even if path exists May violate assump)ons Could confuse some applica)ons that assume single segment Much more likely to drop packets Makes latency between nodes non- uniform Beware of transparency

Local Area Network A B3 B C B5 B2 D B7 K E F B1 G H I B6 B4 J

Physical Layer Responsible for specifying the physical medium Type of cable, fiber, wireless frequency Responsible for specifying the signal (modula)on) TransmiZer varies something (amplitude, frequency, phase) Receiver samples, recovers signal Responsible for specifying the bits (encoding) Bits above physical layer - > chips

Specifying the signal Chips vs bits Chips: data (in bits) at the physical layer Bits: data above the physical layer Phy layer specifies Analog signal chip mapping On- off keying (OOK): voltage of 0 is 0, +V is 1 PAM- 5: 000 is 0, 001 is +1, 010 is - 1, 011 is - 2, 100 is +2 Frequency shig keying (FSK) Phase shig keying (PSK)

Modula)on Specifies mapping between digital signal and some varia)on in analog signal Why not just a square wave (1v=1; 0v=0)? Not square when bandwidth limited Bandwidth frequencies that a channel propagates well Signals consist of many frequency components AZenua)on and delay frequency- dependent

Use Carriers Idea: only use frequencies that transmit well Modulate the signal to encode bits OOK: On-Off Keying ASK: Amplitude Shift Keying 1 0 1 1 0 1

Use Carriers Idea: only use frequencies that transmit well Modulate the signal to encode bits FSK: Frequency Shift Keying 1 0 1 PSK: Phase Shift Keying 1 0 1

How Fast Can You Really Send? Depends on frequency and signal/noise ra)o Shannon: C = B log 2 (1 + S/N) C is the channel capacity in bits/second B is the bandwidth of the channel in Hz S and N are average signal and noise power Example: Telephone Line 3KHz b/w, 30dB S/N = 10ˆ(30/10) = 1000 C 30 Kbps

Encoding Now assume that we can somehow modulate a signal: receiver can decode our binary stream How do we encode binary data onto signals? One approach: Non- return to Zero (NRZ) Transmit 0 as low, 1 as high! 0 0 1 0 1 0 1 1 0 NRZ (non- return to zero) Clock

Drawbacks of NRZ No signal could be interpreted as 0 (or vice- versa) Consecu)ve 1s or 0s are problema)c Baseline wander problem How do you set the threshold? Could compare to average, but average may drig Clock recovery problem For long runs of no change, could miscount periods

Alterna)ve Encodings Non- return to Zero Inverted (NRZI) Encode 1 with transi)on from current signal Encode 0 by staying at the same level At least solve problem of consecu)ve 1s 0 0 1 0 1 0 1 1 0 NRZI (non- return to zero intverted) Clock

Manchester Map 0 à chips 01; 1 à chips 10 Transmission rate now 1 bit per two clock cycles Solves clock recovery, baseline wander But cuts transmission rate in half 0 0 1 0 1 0 1 1 0 Manchester Clock

4B/5B Can we have a more efficient encoding? Every 4 bits encoded as 5 chips Need 16 5- bit codes: selected to have no more than one leading 0 and no more than two trailing 0s Never get more than 3 consecu)ve 0s Transmit chips using NRZI Other codes used for other purposes E.g., 11111: line idle; 00100: halt Achieves 80% efficiency

Encoding Goals DC Balancing (same number of 0 and 1 chips) Clock synchroniza)on Can recover some chip errors Constrain analog signal pazerns to make signal more robust Want near channel capacity with negligible errors Shannon says it s possible, doesn t tell us how Codes can get computa)onally expensive In prac)ce More complex encoding: fewer bps, more robust Less complex encoding: more bps, less robust

802.15.4 Standard for low- power, low- rate wireless PANs Must tolerate high chip error rates Uses a 4B/32B bit- to- chip encoding Bits Chips Symbols 0000 0001 0010 0011 1111 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0

Framing Given a stream of bits, how can we represent boundaries? Break sequence of bits into a frame Typically done by network adaptor Node A Adaptor Bits Adaptor Node B Frames

Represen)ng Boundaries Sen)nels Length counts Clock- based Bits Node A Adaptor Adaptor Node B Frames

Bit- Oriented Protocols View message as a stream of bits, not bytes Can use sen)nel approach as well (e.g., HDLC) 8 16 16 8 Beginning sequence Header Body CRC Ending sequence HDLC begin/end sequence 01111110 Use bit stuffing to escape 01111110 Always append 0 ager five consecu)ve 1s in data Ager five 1s, receiver uses next two bits to decide if stuffed, end of frame, or error.

Length- based Framing Drawback of sen)nel techniques Length of frame depends on data Alterna)ve: put length in header (e.g., DDCMP) 8 8 8 14 42 16 SYN SYN Class Count Danger: Framing Errors Header What if high bit of counter gets corrupted? Adds 8K to length of frame, may lose many frames CRC checksum helps detect error Body CRC

Represen)ng Boundaries Sen)nels Length counts Clock- based Bits Node A Adaptor Adaptor Node B Frames