Outline. Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties

Similar documents
ECE 4450:427/527 - Computer Networks Spring 2017

The Link Layer and LANs. Chapter 6: Link layer and LANs

Chapter 5 Link Layer and LANs

CS 455/555 Intro to Networks and Communications. Link Layer

Data Link Layer: Multi Access Protocols

Chapter 5: Link layer

1-1. Switching Networks (Fall 2010) EE 586 Communication and. November 8, Lecture 30

CSC 4900 Computer Networks: The Link Layer

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

Lecture 8 Link Layer: functionality, error detection, media access algorithm

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

Broadcast Links, Addressing and Media Access Control. Link Layer B. Link and Physical Layers. MAC Addresses

Lecture 8 The Data Link Layer part I. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

MULTIPLE ACCESS PROTOCOLS 2. 1

Multiple Access Links and Protocols

CC451 Computer Networks

CSC 401 Data and Computer Communications Networks

CMPE 150: Introduction to Computer Networks

Data Link Layer: Overview, operations

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

Lecture 19. Principles behind data link layer services Framing Multiple access protocols

Chapter V: Link Layer

Link Layer and LANs. CMPS 4750/6750: Computer Networks

SC250 Computer Networking I. Link Layer. Prof. Matthias Grossglauser LCA/I&C.

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

Links. CS125 - mylinks 1 1/22/14

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter 5 Link Layer and LANs

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

Chapter 6: Link layer and LANs. Link layer, LANs: outline. Link layer: introduction. Link layer: context. Link layer services (more)

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Master Course Computer Networks IN2097

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter V: Link Layer

CSCD 330 Network Programming

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

Message, Segment, Packet, and Frame Link-layer services Encoding, framing, error detection, transmission control Error correction and flow control

Chapter 4 Network Layer

Goals of Today s Lecture. Adaptors Communicating

CS 3516: Computer Networks

transferring datagram from one node data-link layer has responsibility of to adjacent node over a link 5-1 TDTS06 Computer networks

CSE 461: Multiple Access. Homework: Chapter 2, problems 1, 8, 12, 18, 23, 24, 35, 43, 46, and 58

Master Course Computer Networks IN2097

CSCD 330 Network Programming Fall 2012

Medium Access Control

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Chapter 5 Link Layer and LANs

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

Link Layer and LANs. Our Goals. Link Layer

EE 122: Ethernet and

Module 10 Data Link Layer CS655! 10-1!

Redes de Computadores. Medium Access Control

Chapter 5: DataLink Layer

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

CSC 8560 Computer Networks: Link Layer

Chapter 6 The Link Layer and LANs

Getting Connected (Chapter 2 Part 4) Networking CS 3470, Section 1 Sarah Diesburg

Lecture 6 - Link layer. Lecture 5 Review. Link Layer. Introduction, Services. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

CSCI Computer Networks Fall 2016

Link Layer and Ethernet

Internet protocol stack

CSCI Computer Networks Spring 2017

Link Layer: Introduction. Chapter 5 Link Layer & LANS. Link layer: context. Link Layer Services

Link Layer and Ethernet

Multiple Access Protocols

Links. COS 461: Computer Networks Spring Mike Freedman h?p://

Chapter 12 Multiple Access 12.1

Jaringan Komputer. Broadcast Network. Outline. MAC (Medium Access Control) Channel Allocation Problem. Dynamic Channel Allocation

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Chapter 5: The Data Link Layer

Chapter 6 The Link Layer and LANs

CHAPTER 7 MAC LAYER PROTOCOLS. Dr. Bhargavi Goswami Associate Professor & Head Department of Computer Science Garden City College

Random Access. 1. Aloha. 2. Slotted Aloha 3. CSMA 4. CSMA/CD

Chapter 6 The Data Link layer

COMP/ELEC 429/556 Introduction to Computer Networks

Module 4 Data Link Layer CS655! 4-1!

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

CCM 4300 Lecture 6 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Links Reading: Chapter 2

Internet Protocol Stack

Chapter 5 Link Layer. Link Layer 5-1

Local Area Networks (LANs) SMU CSE 5344 /

Random Assignment Protocols

Real-Time (Paradigms) (47)

Chapter 6 Medium Access Control Protocols and Local Area Networks

Lecture 9: Bridging. CSE 123: Computer Networks Alex C. Snoeren

CMPE 257: Wireless and Mobile Networking

Chapter 6 The Link Layer and LANs

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

Transcription:

Outline Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties Layered Network Architectures - OSI framework descriptions of layers - Internet protocol stack Physical Layer Options - Guided transmission media - Wireless transmission media Data Link Layer Services and MAC Protocols Embedded System Communication Protocols - Wireless protocols: Wi-Fi, ZigBee, WirelessHART - Wired protocols: Ethernet, CAN, TTP, BACnet TCP/IP Stack and 6LoWPAN Stack Modeling and Analysis of Communication Protocols

DATA LINK LAYER SERVICES Framing, link access: - encapsulate datagram into frame, adding header, tailer - channel access if shared medium - MAC addresses used in frame headers to identify source, destination Reliable delivery between adjacent nodes - Seldom used on low bit-error link (fiber, some twisted pair) - wireless links: high error rates Flow control: - Pacing between adjacent sending and receiving nodes Error detection: - Errors caused by signal attenuation, noise. - Receiver detects presence of errors: signals sender for retransmission or drops frame Error correction: - Receiver identifies and corrects bit error(s) without resorting to retransmission Half-duplex and full-duplex - with half duplex, nodes at both ends of link can transmit, but not at same time

MULTIPLE ACCESS PROTOCOLS Single shared broadcast channel Two or more simultaneous transmissions by nodes: interference - Collision if node receives two or more signals at the same time Multiple Access Protocol distributed algorithm that determines how nodes share channel, i.e., determine when node can transmit. communication about channel sharing must use channel itself. - no out-of-band channel for coordination

AN IDEAL MULTIPLE ACCESS PROTOCOL given: broadcast channel of rate R bps desiderata: 1. when one node wants to transmit, it can send at rate R. 2. when M nodes want to transmit, each can send at average rate R/M 3. fully decentralized: no special node to coordinate transmissions no synchronization of clocks, slots 4. simple

MAC PROTOCOLS: TAXONOMY Three broad classes: Channel partitioning - divide channel into smaller pieces (time slots, frequency, code) - allocate piece to node for exclusive use Random access - channel not divided, allow collisions - recover from collisions Taking turns - nodes take turns, but nodes with more to send can take longer turns

CHANNEL PARTITIONING MAC PROTOCOLS: TDMA TDMA: time division multiple access Access to channel in "rounds" Each node gets fixed length slot (length = packet trans time) in each round unused slots go idle example: 6-station LAN, 1,3,4 have packets, slots 2,5,6 idle 6-slot frame 6-slot frame 1 3 4 1 3 4

CHANNEL PARTITIONING MAC PROTOCOLS: FDMA FDMA: frequency division multiple access Channel spectrum divided into frequency bands Each node assigned fixed frequency band Unused transmission time in frequency bands go idle Example: 6-station LAN, 1,3,4 have pkt, frequency bands 2,5,6 idle FDM cable frequency bands

PAPER READING ASSIGNMENT II A. Laya, C. Kalalas, F. Vazquez-Gallego, L. Alonso and J. Alonso-Zarate, "Goodbye, ALOHA!," in IEEE Access, vol. 4, no., pp. 2029-2044, 2016. http://ieeexplore.ieee.org/document/7457611/

RANDOM ACCESS PROTOCOLS When node has packet to send: - Transmit at full channel data rate R. - No a priori coordination among nodes - Two or more transmitting nodes collision Random access MAC protocol specifies: - How to detect collisions - How to recover from collisions (e.g., via delayed retransmissions) Examples of random access MAC protocols: - Slotted ALOHA - ALOHA - CSMA, CSMA/CD, CSMA/CA

SLOTTED ALOHA assumptions: All frames same size Time divided into equal size slots (time to transmit 1 frame) Nodes start to transmit only slot beginning Nodes are synchronized If two or more nodes transmit in slot, all nodes detect collision operation: When node obtains fresh frame, transmits in next slot If no collision: node can send new frame in next slot If collision: node retransmits frame in each subsequent slot with prob. p until success

SLOTTED ALOHA node 1 1 1 1 1 node 2 2 2 2 node 3 3 3 3 C E C S E C E S S Pros: Single active node can continuously transmit at full rate of channel Highly decentralized: only slots in nodes need to be in sync Simple Cons: Collisions, wasting slots Idle slots Nodes may be able to detect collision in less than time to transmit packet Clock synchronization

SLOTTED ALOHA: EFFICIENCY efficiency: long-run fraction of successful slots (many nodes, all with many frames to send) suppose: N nodes with many frames to send, each transmits in slot with probability p prob that given node has success in a slot = p(1-p) N-1 prob that any node has a success = Np(1-p) N-1 max efficiency: find p* that maximizes Np(1-p) N-1 for many nodes, take limit of Np*(1-p*) N-1 as N goes to infinity, gives: max efficiency = 1/e =.37 at best: channel used for useful transmissions 37% of time!

PURE (UNSLOTTED) ALOHA Unslotted Aloha: simpler, no synchronization When frame first arrives: - transmit immediately Collision probability increases: - frame sent at t 0 collides with other frames sent in [t 0-1,t 0 +1]

PURE ALOHA EFFICIENCY P(success by given node) = P(node transmits). P(no other node transmits in [t 0-1,t 0 ]. P(no other node transmits in [t 0,t 0 +1] = p. (1-p) N-1. (1-p) N-1 =p. (1-p) 2(N-1) choosing optimum p and then letting n = 1/(2e) =.18 even worse than slotted Aloha!

PROBLEMS WITH PURE/SLOTTED ALOHA do not listen to the channel

CSMA (CARRIER SENSE MULTIPLE ACCESS) CSMA: listen before transmit If channel sensed idle: transmit entire frame If channel sensed busy: defer transmission Persistent CSMA: retry immediately with probability p when channel becomes idle (may cause instability) Non-persistent CSMA: retry after random interval Human analogy: don t interrupt others!

CSMA COLLISIONS collisions can still occur: propagation delay means two nodes may not hear each other s transmission Collision: entire packet transmission time wasted spatial layout of nodes - Distance & propagation delay play role in determining collision probability

CSMA/CD (COLLISION DETECTION) CSMA/CD: carrier sensing, deferral as in CSMA collisions detected within short time colliding transmissions aborted, reducing channel wastage Collision detection: - easy in wired media: measure signal strengths, compare transmitted, received signals - difficult in wireless media receiver shut off while transmitting receiver s channel condition is different from that of the sender Human analogy: the polite conversationalist

CSMA/CD (COLLISION DETECTION) spatial layout of nodes

CSMA/CA (COLLISION AVOIDANCE) CSMA/CA: - Wireless MAC protocols often use collision avoidance techniques, in conjunction with a (physical or virtual) carrier sense mechanism - To be discussed more in WiFi and ZigBee protocols Collision avoidance - Nodes hearing RTS or CTS stay silent for the duration of the corresponding transmission. - Once channel becomes idle, the node waits for a randomly chosen duration before attempting to transmit. Carrier sense - Nodes stay silent when carrier sensed (physical/virtual) - Physical carrier sense: carrier sense threshold - Virtual carrier sense using Network Allocation Vector (NAV): NAV is updated based on overheard RTS/CTS/DATA/ACK packets

TAKING TURNS MAC PROTOCOLS Channel partitioning MAC protocols: Share channel efficiently and fairly at high load Inefficient at low load: delay in channel access, 1/N bandwidth allocated even if only 1 active node! Random access MAC protocols Efficient at low load: single node can fully utilize channel High load: collision overhead taking turns protocols Look for best of both worlds.

TAKING TURNS MAC PROTOCOLS Polling: Master node invites slave nodes to transmit in turn Typically used with dumb slave devices Concerns: - polling overhead data data poll master - Latency - single point of failure (master) slaves

TAKING TURNS MAC PROTOCOLS Token passing: T Control token passed from one node to next sequentially. Token message Concerns: - Token overhead - Latency - Single point of failure (token) (nothing to send) T data

SUMMARY OF MAC PROTOCOLS Channel partitioning, by time, frequency or code - Time Division, Frequency Division Random access (dynamic) - ALOHA, S-ALOHA, CSMA, CSMA/CD - Carrier sensing: easy in some technologies (wire), hard in others (wireless) - CSMA/CD used in Ethernet - CSMA/CA used in 802.11 Taking turns - Polling from central site, token passing - Bluetooth, FDDI, token ring