Exercise 8 Protocols /802.2

Similar documents
Introduction to the ZigBee Application Framework

Accepted for release by: This document has not yet been accepted for release by the ZigBee Alliance Board of Directors.

Outline. TWR Module. Different Wireless Protocols. Section 7. Wireless Communication. Wireless Communication with

Zigbee protocol stack overview

Project: IEEE P Working Group for Wireless Personal Area Networks N

Technical Report An IEEE protocol implementation (in nesc/tinyos): Reference Guide v1.1 André CUNHA Mário ALVES

Technical Report An IEEE protocol implementation (in nesc/tinyos): Reference Guide v1.0 André CUNHA Mário ALVES

Wireless Sensor Networks. Introduction to the Laboratory

CHAPTER 4 CROSS LAYER INTERACTION

Simulation of a sensor network embedded in rail train

Project: IEEE P Working Group for Wireless Personal Area Networks N

3GPP TS V8.2.0 ( )

Local Area Networks. Ethernet LAN

IEEE P g IEEE P Wireless Personal Area Networks. IEEE P Working Group for Wireless Personal Area Networks (WPANs)

ETSI TS V8.1.0 ( )

Technical Report. Implementation Details of the Time Division Beacon Scheduling Approach for ZigBee Cluster-Tree Networks

IEEE Wireless LAN Medium Access Control and Physical Layer Specifications. Issues Related to Distributed Time Bounded Service

Status of P Sub-Specification

MACdongle. Summary. IEEE MAC layer firmware for UZBee USB adapter

INTERNATIONAL STANDARD

SERIES G: TRANSMISSION SYSTEMS AND MEDIA, DIGITAL SYSTEMS AND NETWORKS Access networks In premises networks

New RF Models of the TinyOS Simulator for IEEE Standard

Multichannel Superframe Scheduling in IEEE : Implementation Issues

ZIGBEE. Erkan Ünal CSE 401 SPECIAL TOPICS IN COMPUTER NETWORKS

LANs Local Area Networks LANs provide an efficient network solution : To support a large number of stations Over moderately high speed

Tutorial 2 : Networking

Chapter 3.1 Acknowledgment:

Wireless Network Security

IEEE MAC Sublayer (Based on IEEE )

Technical Report Implementation of the ZigBee Network Layer with Cluster-tree Support André CUNHA Mário ALVES Anis KOUBÂA

ZigBee Mesh Networking - In Control

Wireless Inverted Pendulum using IEEE Protocol

ETSI TS V8.0.0 ( ) Technical Specification

IEEE P g. IEEE P Wireless Personal Area Networks. Frequency Hopping Support for SUN Devices

IEEE P Wireless Personal Area Networks

TI-15.4-STACK Co-Processor

A Modified Medium Access Control Algorithm for Systems with Iterative Decoding

Definition and evaluation of the data link layer of PACnet

Introduction. Instructor: Visiting Instructor Adomas Svirskas, Vilnius University, Lithuania Learning Resources:

IEEE Transceiver CA-8210

TKN. Technical University Berlin. TKN15.4: An IEEE MAC Implementation for TinyOS 2 Jan-Hinrich Hauer.

In multiple-hub networks, demand priority ensures fairness of access for all nodes and guarantees access time for multimedia applications.

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

Computer Networks with Internet Technology William Stallings. Chapter 2 Protocols and the TCP/IP Protocol Suite

ETSI EN V1.2.1 ( )

Draft ETSI EN V2.1.0 ( )

Network Working Group. Obsoletes: RFC 1103 October 1990

ABSTRACT. 2. DISCUSSION The following list describes the proposed modifications to the Q.2111 Annex D baseline by section:

Investigation of IEEE standard Medium Access Control (MAC) layer in ad-hoc networks and comparison with IEEE distributed mesh networks

The ZigBee Architecture An Introduction

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

This document is a preview generated by EVS

The WAVE Communications Stack: IEEE p, and, September, 2007

Draft ETSI EN V1.2.0 ( )

Standard for wireless sensor networks. Developed and promoted by the ZigBee alliance

LAN PROTOCOL ARCHITECTURE

Temporary Document 3203/Rev.1

Wireless Personal Area Networks architecture and protocols for multimedia applications

Chapter 15 Local Area Network Overview

Guide to Wireless Communications, 3 rd Edition. Objectives

Hybrid coordinator simplifications: Queue State element and Express traffic

Data and Computer Communications. Protocols and Architecture

)454 1 ")3$.!4-!$!04!4)/.,!9%2 3%26)#% 30%#)&)# #/..%#4)/. /2)%.4%$ 02/4/#/, 33#/0 "2/!$"!.$ )3$. )454 2ECOMMENDATION 1

This document is a preview generated by EVS

A Comprehensive Study of ZigBee. Presented by Dr. K F Tsang Citycom Technology Ltd. Tel:

Matteo Petracca Scuola Superiore Sant Anna, Pisa

MAC & Scope Background for 802.3cg, Priority & PLCA

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

ELC 537 Communication Networks

ISO INTERNATIONAL STANDARD. Road vehicles Controller area network (CAN) Part 1: Data link layer and physical signalling

******************************************************************************************

Subnetting and addresses revisited

Encapsulated Bridging Support of November 2001

ETSI TS V3.6.0 ( )

Introduction to Open System Interconnection Reference Model

Outline. CS5984 Mobile Computing. IEEE 802 Architecture 1/7. IEEE 802 Architecture 2/7. IEEE 802 Architecture 3/7. Dr. Ayman Abdel-Hamid, CS5984

Technologies de l information Téléinformatique Spécifications PHY/MAC pour applications à bas débit sans fil à courte portée dans la bande ISM

Copyright 2008 by the Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue New York, New York USA All Rights Reserved.

Advisory Public Review Draft

MODULAR LINK LAYER FUNCTIONS OF A GENERIC PROTOCOL STACK FOR FUTURE WIRELESS NETWORKS

Energy Efficient Clear Channel Assessment for LR-WPAN

Data and Computer Communications

Draft ES V1.1.1 ( )

IP Address Assignment

ETSI TS V4.1.1 ( )

Chapter 12. Network Organization and Architecture. Chapter 12 Objectives Introduction Introduction

AN IMPLEMENTATION OF THE IEEE WAVE STANDARD FOR USE IN A VEHICULAR NETWORKING TESTBED. Kyle Kuffermann. A Thesis Submitted to the Faculty of

ZigBee Technology: Wireless Control that Simply Works

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

ADVENT OF PHY AND MAC LAYER OPERATIONS IN WIRELESS AND LOCAL PERSONAL AREA NETWORK

IEEE s ESS Mesh Networking

System Specifications

Data & Computer Communication

ET4254 Communications and Networking 1

Layered Architecture

Bridging Solution for the MAN: Address Separation

[MS-PSDP]: Proximity Service Discovery Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

Princess Nora Bint Abdulrahman University College of computer and information sciences Networks department Networks Security (NET 536)

! High Data Rates (0.1 Mbps to 10 Gbps)! Short Distances (0.1 to 40 km) ! Low Error Rate (10 to 10 ) Local Area Networks

Improving IEEE for Low-latency Energy-efficient Industrial Applications

Transcription:

Figure 8.1 shows the protocol stack for IEEE 802.15.4 1, also known as Low-Rate Wireless Personal Area Networks (LR-WPAN), and IEEE 802.2 LLC. Upper Layers 802.2 LLC SSCS MAC PHY Physical Medium Figure 8.1: Protocol stack 802.15.4 Figure 8.2 depicts the frame structure for data in 802.15.4. Figure 8.2: 802.15.4 Data Frame The PHY shown in Fig. 8.3 provides an interface between the MAC sublayer and the physical radio channel, via the RF firmware and RF hardware. The PHY conceptually includes a management entity called the PLME. This entity provides the layer management service interfaces through which layer management functions may be invoked. The PLME is also responsible for maintaining a database of managed objects pertaining to the PHY. This database is referred to as the PHY PAN information base (PIB). The PHY provides two services, accessed through two SAPs: the PHY data service, accessed through the PHY data SAP (PD-SAP), and the PHY management service, accessed through the PLME s SAP (PLME-SAP). 1 The according standard is available at http://standards.ieee.org/getieee802/download/802.15.4-2003.pdf. Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 1

The service primitives in 802.15.4 follow the ISO/OSI reference model s service primitives as shown in Fig. 8.4. The PD-SAP supports the transport of MPDUs between peer MAC sublayer entities. The primitives supported by the PD-SAP are: PD-DATA.request PD-DATA.confirm PD-DATA.indication The semantics of the PD-DATA.request primitive is as follows: PD-DATA.request(psduLength, psdu) The MAC sublayer of 802.15.4 is depicted in Fig. 8.5. The semantics of the MCPS-DATA.request primitive is as follows: MCPS-DATA.request(SrcAddrMode, SrcPANId, SrcAddr, DstAddrMode, DstPANId, DstAddr, msdulength, msdu, msduhandle, TxOptions) The semantics of the MA-UNITDATA.request primitive in the SSCS is as follows: MA-UNITDATA.request(SrcAddr, DstAddr, RoutingInformation, data, priority, ServiceClass) The primitives associated with unacknowledged connectionless-mode data transfer in 802.2 LLC are as follows: DL-UNITDATA request DL-UNITDATA indication The DL-UNITDATA request primitive is passed to the LLC sublayer to request that an LSDU be sent using unacknowledged connectionless-mode procedures. The DL-UNITDATA indication primitive is passed from the LLC sublayer to indicate the arrival of an LSDU. The primitives associated with connection establishment are as follows: DL-CONNECT request DL-CONNECT indication DL-CONNECT response DL-CONNECT confirm The DL-CONNECT request primitive is passed to the LLC sublayer to request that a data link connection be established between a local LSAP and a remote LSAP. The DL- CONNECT indication primitive is passed from the LLC sublayer to indicate the request by a remote entity to establish a connection to a local LSAP. The DL-CONNECT response Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 2

Figure 8.3: 802.15.4 PHY Figure 8.4: Service Primitives Figure 8.5: 802.15.4 MAC Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 3

primitive is passed to the LLC sublayer to signal acceptance of a connection. The DL- CONNECT confirm primitive is passed from the LLC sublayer to convey the results of the previous associated DL-CONNECT request primitive. The primitive associated with connection-mode data transfer are as follows: DL-DATA request DL-DATA indication The DL-DATA request primitive is passed to the LLC sublayer to request that an LSDU be sent using connection-mode procedures. The DL-DATA indication primitive is passed from the LLC sublayer to indicate the arrival of an LSDU. The semantics of the DL-DATA.request primitive is as follows: DL-DATA.request (source_address, destination_address, data) The primitives associated with connection termination are as follows: DL-DISCONNECT request DL-DISCONNECT indication The DL-DISCONNECT request primitive is passed to the LLC sublayer to request the immediate termination of a data link connection. The DL-DISCONNECT indication primitive is passed from the LLC sublayer to indicate to the network that a connection has been terminated. 1. Name the protocols that are in use when browsing the web over 802.15.4! 2. Under which circumstances could a WLAN (802.11b/g) user communicate with another user on 802.15.4? Name the respective network-related protocols! 3. Draw a Message Sequence Chart (MSC) for connection-oriented data transfer. 4. The payload length n needs to be less or equal to amaxmacframesize. amax- MACFrameSize is defined in the standard as amaxphypacketsize amaxframeoverhead. Look up amaxphypacketsize and amaxframeoverhead up in the standard. What is the minimum and maximum percentage of overhead introduced by 802.15.4 MAC and PHY? For more insight on how protocols can be implemented, we attached a code example that provides the MCPS DATA interface in the NesC language, which is a C derivative for event-based programming in TinyOS. Figure 8.6 depicts the signal definition in the Specification and Description Language (SDL), which will be covered in the next exercise. The figure is part of the specification of 802.15.4 and can be found in Appendix D.4.3. interface MCPS_DATA { /** * Request a data transfer. * See page 57 of the IEEE 802.15.4 specification. * * @param SrcAddrMode The source addressing mode for this primitive and * subsequent MPDU * @param SrcPANId The 16 bit PAN identifier of the source * @param SrcAddr Individual device address of the source as per Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 4

* the SrcAddrMode * @param DstAddrMode The destination addressing mode for this primitive * and subsequent MPDU * @param DstPANId The 16 bit PAN identifier of the destination * @param DstAddr Individual device address of the destination as per * the DstAddrMode * @param msdulength Number of octets contained in the msdu * @param msdu Set of octets forming the msdu * @param msduhandle Handle associated with the MSDU to be transmitted * @param TxOptions Bitwised OR transmission options */ command void request ( uint8_t SrcAddrMode, uint16_t SrcPANId, uint8_t* SrcAddr, uint8_t DstAddrMode, uint16_t DstPANId, uint8_t* DstAddr, uint8_t msdulength, uint8_t* msdu, uint8_t msduhandle, uint8_t TxOptions ); /** * Confirm reports the results of a request to transfer a data MSDU. * See page 59 of the IEEE 802.15.4 specification. * * @param msduhandle The handle associated with the MSDU * @param status That status of the last MSDU transmission */ event void confirm ( uint8_t msduhandle, IEEE_status status ); /** * Indicates the transfer of a data unit from the MAC sublayer. * See page 60 of the IEEE 802.15.4 specification. * * @param SrcAddrMode The source addressing mode for this primitive and * subsequent MPDU * @param SrcPANId The 16 bit PAN identifier of the source * @param SrcAddr Individual device address of the source as per * the SrcAddrMode * @param DstAddrMode The destination addressing mode for this primitive * and subsequent MPDU * @param DstPANId The 16 bit PAN identifier of the destination * @param DstAddr Individual device address of the destination as per * the DstAddrMode Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 5

} * @param msdulength Number of octets contained in the msdu * @param msdu Set of octets forming the msdu * @param mpdulinkquality LQ value measured during reception * @param SecurityUse An indication whether the received data frame is * using security * @param ACLEntry The macsecuritymode parameter value from the ACL entry * associated with the sender of the data frame. This value * is set to 0x08 if the sender of the data frame was not * found in the ACL. */ event void indication ( uint8_t SrcAddrMode, uint16_t SrcPANId, uint8_t* SrcAddr, uint8_t DstAddrMode, uint16_t DstPANId, uint8_t* DstAddr, uint8_t msdulength, uint8_t* msdu, uint8_t mpdulinkquality, bool SecurityUse, uint8_t ACLEntry ); Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 6

Figure 8.6: SDL implementation example Prof. Dr. C. Görg et al. Tutorial Communication Networks I WS 2012/13 7