Transcription of LonTalk Protocol Specification - EnerLon
1 LonTalk ProtocolSpecificationVersion @E C H E L O N C O R P O R A T I O N078-0125-01 AEchelon, LON, LONWORKS, Neuron, 3150, LonBuilder, LonTalk , andLonManager are registered trademarks of Echelon , LonMaker, LonSupport, LonUsers, LONews, LONMARKand 3120 are trademarks of Echelon Corporation. Other namesmay be trademarks of their respective brand and product names are trademarks or registeredtrademarks of their respective MAKES AND YOU RECEIVE NO WARRANTIES ORCONDITIONS, EXPRESS, IMPLIED, STATUTORY OR IN ANYCOMMUNICATION WITH YOU, AND ECHELON SPECIFICALLYDISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITYOR FITNESS FOR A PARTICULAR LICENSE IS GRANTED UNDER ANY COPYRIGHT OR PATENT OFECHELON CORPORATION EXCEPT PURSUANT TO A WRITTENLICENSE AGREEMENT WITH ECHELON part of this publication may be reproduced, stored in aretrieval system, or transmitted, in any form or by any means,electronic, mechanical, photocopying.
2 Recording, orotherwise, without the prior written permission of No. 19550 Printed in the United States of 1994 by Echelon Corporation4015 Miranda AvenuePalo Alto, CA 94304, USAT able of ContentsLonTalk Protocol Specification (Created 1989-1994) Echelon 3 of And AND Protocol . of LonTalk Protocol AND Types and and to the Link to the Physical Detection p-persistent CSMA Overview Channel . Collision Predictive CSMA Transmit Receive Manchester Structuring of the Network . 8 Routing Algorithm CONTROL of ContentsLonTalk Protocol Specification (Created 1989-1994)
3 Echelon 4 of Control Types and Protocol State Send Receive Pool Size and Configuration of of Structure of the Session Types and Timing Protocol Client Protocol Server Protocol and the Role of the Checksum Number Types and Protocol State Between the Offline State and Request - Notification to the Application Notification for Notification for Network MANAGEMENT AND Management and Diagnostics Application 80 Table of ContentsLonTalk Protocol Specification (Created 1989-1994) Echelon 5 of the Network Management Configuration An Application Handling Router Network Management Formats and Respond to Network Variable Group Network Variable Node Standard Network Variable Variable Value Pin Management Escape Clear Group or Subnet Group or Subnet Table Group Subnet Do Not Forward Do Not Forward Types and Transceiver Capacity and Conditions Conditions High A PDU of ContentsLonTalk Protocol Specification (Created 1989-1994)
4 Echelon 6 of 112 This page is intentionally left blankIntroductionLonTalk Protocol Specification (Created 1989-1994) Echelon 7 of 112 1. INTRODUCTION Scope And ObjectivesThe LonTalk Protocol is designed for communication in control networks. Thesenetworks are characterized by short messages (few bytes), very low per node cost,multiple communications media, low bandwidth, low maintenance, multivendorequipment, and low support document provides the Protocol specifications for the LonTalk Protocol (the physical layer Protocol is not limited to any particular communicationsmedium, and thus is defined by any number of transceiver designs that can beconnected to the Neuron Chip).
5 See the Neuron Chip Data Book published byMotorola and Toshiba for details on the interface requirements of thecommunication port. See the LONMARK Layers 1-6 Interoperability Guidelinesfor specifications on standard transceivers. See the LONMARK Application LayerInteroperability Guidelines for specifications on how to design interoperableapplication nodes with the LonTalk Document OverviewFollowing the overview in section 2 and the description of addressing in section 3,the document is structured in a uniform fashion. A chapter is dedicated to eachprotocol layer or sublayer.
6 Each chapter starts with a list of assumptions about theservice provided by the underlying layers. For the sake of completeness, a briefservice description is then included, followed by a detailed Specification of theprotocol. Most of the algorithms are specified in structured English, using a Pascal-like 11 contains a description of the built-in network management capabilitiesof the Protocol . Chapter 12 describes the essential behavioral characteristics of theprotocol. Finally, the syntax of all Protocol Data Units is summarized in and OverviewLonTalk Protocol Specification (Created 1989-1994) Echelon 8 of 112 2.
7 TERMINOLOGY AND P ROTOCOL OVERVIEW TerminologyThe primary objective of this document is to provide a concise yet readable speci-fication of the LonTalk Protocol . For this reason, the notation and terminology isnot as formal as that used in some other Protocol ChannelS&FRepeaterxyBridgeRouterSubnet B, B', ..Subnet A, A', ..Domain ADomain BGatewayconnects two channels (x and y); forwards allpackets from x to y and vice versa, as long asthe packets originated on one of the samedomain(s) as the bridgeBridgeRouterroutes packets to their respective destinations byselectively forwarding from subnet to subnet; aLonTalk router always connects two (sets of)subnets; LonTalk routers may modify the layer 3address fields to prevent packets from looping.
8 (Application) Gatewayinterconnects networks at their highest protocollayers (often two different protocols); twoLonTalk domains can be connected through anapplication & Forward Repeatermay repeat on the same channel or mayconnect two channels; generates duplicates;multiple repeaters may cause packet set of nodes accessible through the same layer2 Protocol ; a routing abstraction for a channel; LonTalk Protocol subnets are limited to 127 nodesTable Basic TerminologyTerminology and OverviewLonTalk Protocol Specification (Created 1989-1994) Echelon 9 of 112 Table introduces the basic terminology employed throughout the of it is commonly used and the terms have the same meaning in both thegeneral and the LonTalk context.
9 However, there are subtle differences. Forexample, bridges in general do selective forwarding based on the layer 2 destinationaddress. There are no layer 2 addresses in the LonTalk Protocol , so LonTalk bridgesforward all packets, as long as the Domain address in the packet matches a Domainof which the bridge is a member. Routers, in general, perform network addressmodification so that two protocols with the same transport layer but differentnetwork layers can be connected to form a single logical network. LonTalk routersperform network address modification on packets that might otherwise loop, buttypically they only examine the network address fields and selectively forwardpackets based on the layer 3 address LonTalk Protocol layering is described using the standard OSI terminology, asshown in figure N protocolentitylayer N protocolentityFigure Protocol TerminologyThe Protocol Data Unit (PDU) abbreviations used throughout this document are.
10 MPDUMAC Protocol Data Unit, or frameLPDULink Protocol Data Unit, or frameNPDU Network Protocol Data Unit, or packetTPDUT ransport Protocol Data Unit, or a message/ackSPDUS ession Protocol Data Unit, or request/responseNMPDUN etwork Management Protocol Data UnitDPDUD iagnostic Protocol Data UnitAPDUA pplication Protocol Data Overview of LonTalk Protocol LayeringLonTalk Protocol layering consists of the layers shown in table At each layerwithin the table there is a description of the services provided within that layer is described and OverviewLonTalk Protocol Specification (Created 1989-1994) Echelon 10 of 112 Multiple Physical Layer protocols and data encoding methods are used in LonTalksystems.