• No results found

A Buffer insertion priority mechanism based on the IEEE 802.4 priority scheme

N/A
N/A
Protected

Academic year: 2019

Share "A Buffer insertion priority mechanism based on the IEEE 802.4 priority scheme"

Copied!
95
0
0

Loading.... (view fulltext now)

Full text

(1)

Rochester Institute of Technology

RIT Scholar Works

Theses

Thesis/Dissertation Collections

6-1-1992

A Buffer insertion priority mechanism based on the

IEEE 802.4 priority scheme

Nicholas W. Oddo

Follow this and additional works at:

http://scholarworks.rit.edu/theses

This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion in Theses by an authorized administrator of RIT Scholar Works. For more information, please [email protected].

Recommended Citation

(2)

:{

....

:"..'

...

A Buffer Insertion Priority Mechanism Based

on the IEEE

802.4

Priority Scheme

by

Nicholas W. Oddo

A Thesis Submitted in

Partial Fulfillment of the

Requirements for the Degree of

MASTER OF SCIENCE

in Computer Engineering

Approved by:

Roy S. Czemlkowskl. Ph.D. (Committee Chairman and Department Head) Department of Computer Engineering

JamesE.Hellotls. Ph.D. (Committee Member) Department of Computer Science

Tony Chang. Ph.D. (Committee Member) Department of Computer Engineering

DEPARTMENT OF COMPUTER ENGINEERING COLLEGE OF ENGINEERING

ROCHESTER INSTITUTE OF TECHNOLOGY ROCHESTER. NEW YORK

JUNE 1992

(3)

A Buffer Insertion Priority Mechanism Based on the IEEE 802.4 Priority Scheme

I, Nicholas W. Oddo

,

hereby grant permission to the Wallace

Me-morial Library of RIT to reproduce my thesis in whole or in part. Any reproduction will

not

be

for commercial use or profit.

(4)

Table

of

Contents

1. Introduction 2

1.1. Goals 2

2. Analysisofthe IEEE 802.4

Priority

Mechanism 5

2.1. Background 5

2.2. Introduction 6

2.3. Functional Description 7

2.3.1.

Priority

Levels 8

2.3.2.AccessClasses 9

2.3.3. Timers 11

2.3.3.1. High

Priority

Token Hold Timer 11

2.3.3.2. Target Rotation Timers 12

2.4.

Meeting

Real-Time Requirements 14

2.4. 1. Alarm Messages 14

2.4.2. Control DataandNetwork Maintenance 15

2.4.3. Routine Data 16

2.4.4. File Transfer 17

2.5.

Analyzing

UtilizationandThroughput 18

2.5.1. General Terms 18

2.5.2. Assumptions 21

2.5.3.Lower

Priority

Levels 22

2.5.3.1.Peak Utilizations 22

2.5.3.2. Actual Utilizations 23

2.5.4. High

Priority

26

2.5.4.1.

Deriving

thePeak Level 6 Utilization 26

2.5.4.2.

Deriving

theGeneral Level6 Utilization 27

2.5.4.2.1. Case 1:

TR(0)

<

TR(2)

<

TR(4)

<CS

28

2.5.4.2.1.1. Case la: 29

2.5.4.2.1.2. Case lb: 30

(5)

2.5.4.2.2. Case 2:

TR(0)

<

TR(2)

<

C<TR(4)

30

2.5.4.2.2.1. Case 2a: 31

2.5.4.2.2.2. Case 2b: 32

2.5.4.2.2.3.

Case 2c: 34

2.5.4.2.2.4. Level6 UtilizationModelfor Case 2 34

2.5.4.2.3.

Case 3:

TR(0)<C<TR(2)<TR(4)

36

2.5.4.2.3.1. Case

3a: 37

2.5.4.2.3.2. Case 3b: 37

2.5.4.2.3.3. Case 3c: 39

2.5.4.2.3.4. Case 3d: 40

2.5.4.2.3.5. Case 3e: 41

2.5.4.2.3.6.Level 6 Utilization Model forCase 3 41 2.5.4.2.4. Case 4:

Cs

<

TR(0)

<

TR(2)

<

TR(4)

43

2.5.4.2.4.1. Case4a: 44

2.5.4.2.4.2. Case4b: 45

2.5.4.2.4.3. Case 4c: 45

2.5.4.2.4.4. Case 4d: 46

2.5.4.2.4.5. Case4e: 47

2.5.4.2.4.6. Case4f: 48

2.5.4.2.4.7. Case 4g: 49

2.5.4.2.4.8. Level 6 Utilization Model forCase4 49

2.6.

Analyzing

MediumAccess Delays 51

2.6. 1. WorstCase Level 6 Access

Delay

52

2.6.2. Worst Case Level 4 Access

Delay

53

2.6.3.WorstCase Access

Delay

for Other

Priority

Levels 56

3. Proposed Buffer Insertion

Priority

Mechanism 57

3.1. Introduction 57

3.2. Background 57

3.2.1.

Ring Priority

58

3.2.2. Station

Priority

58

3.2.3. Advantages 59

(6)

3.2.3.2. SmallOverhead forMediumAccess 60

3.2.4. Problems AssociatedwithReal-TimeApplications 60

3.2.4.1. Starvation 60

3.2.4.2. Insertion BufferOverflow 61

3.3.FunctionalDescription 61

3.3.1.

Priority

Levels 62

3.3.2.Access Classes 62

3.3.3.High

Priority

Transmissions 63

3.3.3.1. DedicatedInsertion Buffer 64

3.3.3.2.Expedited Propagation 65

3.3.3.3. Algorithm 65

3.3.4. Lower

Priority

Transmissions 67

3.3.4. 1. Partitioned Insertion Buffer 67

3.3.4.2. Starvation Avoidance 68

3.3.4.3. Algorithm 69

3.4.

Analyzing

Medium Access Delays 71

3.5.

Analyzing

Insertion Buffer Delays 73

3.6.

Analyzing

UtilizationandThroughput 74

3.6.1. High

Priority

Transmissions 75

3.6.2. Lower

Priority

Levels 77

4. Conclusion 81

5.

Glossary

86
(7)

Abstract

Thefocusofthis thesisistoinvestigatea media accessprioritymechanismfora

buffer insertionnetwork sothatitis bettersuitedforuse inreal-time applications. This

is done

by

examininga popularprioritymechanismpresentintheIEEE 802.4tokenbus

standard, andFiberDistributedData Interface

(FDDI)

standard. Mathematicalmodels

forthroughputand

delay

are presentedfortheIEEE 802.4 prioritymechanism. These

models arethenusedasabasis for

developing

theprioritymechanismforthebuffer in

sertionring. Models forthroughputand

delay

arealso presentedforthebuffer insertion

priorityscheme sothat the twomedia accesstechniquesmaybecompared.

(8)

1.

Introduction

Therearemanypopular media accesstechniquesfor distributedsystems.

Among

themost popular are

firstcome firstserved,

carrier sense multiple access

(CSMA),

token passing,

buffer

insertion,

and slottedrings.

Ofthese,onlyafew havebeen definedorimplementedwithaprioritymechanismin

mind. This istruefor manyreasons. Perhapsthemedia accessprotocoldoesnotlend

itselfeasilytopriority

transmissions,

orperhapstheapplicationrunningonthenetwork

isnotverytimecriticalanddoesnotneedprioritization ofdatatransfers.

Withoutaprioritymechanism, themediaaccessprotocolhasnowayofgetting

high prioritytransmissions to theirdestinations ina

timely

manner. The framesmust

waitforaccessto themedia

following

the same constraints aseveryotherframeawaiting

transmission. Thismeansthatimportant data mayhavetowaitforaccessto themedia

becauselessimportantdata is

hogging

thebandwidth. Onewaytoavoidthisproblemis

by

assigningalloutgoingframesa priority. Basedonthe definitionofthepriority

mechanism,thepriorityassignedtoaframewill

help

dictatewhenitgains accessto the

medium. Lower priorityframesyieldto thetransmissionofhigherpriorityframes.

1.1. Goals

Thegoals ofthisthesisareto

studya well

designed,

documentedandacceptedprioritymechanism,

and usethisknowledge in

developing

aprioritymechanismforabuffer

insertionprotocol.

(9)

Theprioritymechanismthatwillbe studiedis definedintheIEEE 802.4tokenbusstan

dard. This prioritymechanismisalsoverysimilartothatusedintheFiber Distributed

DataInterface

(FDDI)

standard. Section2gives afunctional descriptionofthepriority

scheme. Itthengoes onto

develop

modelsforthroughputand media accessdelay.

Thesemodelswillaid inbothunderstandingtheIEEE 802.4 prioritymechanisms,andin

developing

a similarprioritymechanismforthebuffer insertionprotocol.

Thebuffer insertionprotocolischosen as a candidateforthedevelopmentof a

prioritymechanismbecauseofitsuniquenessas a mediaaccessprotocol,andits

inability

tomeetreal-time constraintsunder

heavy loading

conditions. Without anytypeof prior

ity

mechanism,thebuffer insertionprotocoldisplaysasteady increase inmedia access

delay

asthethroughputofthe systemincreases. Thisisnotsatisfactory forreal-timeap

plicationsthatmustguarantee a maximum media access

delay

and

delivery

timefora

certainmessage class. Inaddition, thebuffer insertionprotocol allows forstarvationto

occur. Thiswill occur whena nodeisprohibitedfromaccessingthenetworkbecauseof

the

heavy

usagefromothernodes. Starvationisalsounsatisfactory inreal-timedistrib

uted applications.

A well-designedprioritymechanismshould allowforgracefuldegradationof

thecommunications system. Thatisto say,whentheofferedloadto thenetwork ex

ceedsitsbandwidthcapabilities,moreimportantmessages(messagesofhigherpriority)

willbethefirstto reachtheirdestinations. Less important datawillbethefirstto suffer

dueto thehigh load. Ifthe loadwastocontinue

increasing,

theperformance ofthenet

work woulddegrade inagraceful way.

(10)

Ignoring

thenegative remarks aboutthebuffer insertionprotocol statedabove,it

does havemany

intriguing

featuresthatmakeitanattractive choiceforreal-time sys

tems. Thisis especiallytruewithrespectto tokenpassingprotocols. Theoverheadin

volvedintoken passing, token regeneration,andduplicatetoken

detection,

isnolonger

neededinabuffer insertion ring.

Also,

thebufferinsertionalgorithm allows formultiple

transmissions tobeoccurringsimultaneously. Thisiscalledspatialreuse,and allowsfor

throughputexceedingthecapacityofthemedia. Bothcharacteristicsamounttobetter

useofthemediaforalltypesoftransmissions. In otherwords,

looking

attotalnetwork

throughputisattractivetoreal-timeapplications,butthemediaaccessdelaysassociated

withthesehighthroughputsaretheproblem.

Section3gives afunctional descriptionoftheprioritymechanismproposed for

thebuffer insertionprotocol. Thisis followed

by

thedevelopmentof mathematical mod

elsforthroughputandaccessdelay. The finalsectiondiscussestheresults ofthebuffer

insertion prioritymechanism when comparedto themodelsfortheIEEE 802.4tokenbus

priorityscheme.

(11)

2.

Analysis

oftheIEEE 802.4

Priority

Mechanism

2.1. Background

Priority

mechanismsinloosely-coupled distributedsystemsplayasignificantrole

in howa network will performunderhigh

loading

conditions.

Any

mediaaccessproto

col

(MAC),

even onethatdoesn't incorporateaprioritymechanism, canperformsatisfac

torily

withintheoperational constraintsofthemedia. Whatisconsideredhere ishowa

network willperform whentheofferedtransmissionload beginstoexceedthe available

bandwidth fora giventime. Performanceover a network whose media access protocol

doesnotincorporateprioritytransmissionswillsuffer. This is becausetheprotocolhas

nowayof

discerning

important datafromunimportantdata. Data istransmittedina

first-come-first-served fashion. Ifthenetworkis

being

usedinareal-time application

suchasprocesscontrol,theconsequences couldbe disastrous. Amedia accesspriority

mechanism understands which ofthedata queuedfortransmissionisthemosttime criti

cal,andwhichisnot. More importantdatawillbetransmittedsoonerthanlessimportant

data.

The IEEE 802.4standardincorporatesamediaaccesscontrol

(MAC)

protocol

thatusesaprioritytransmissionmechanism. TheMAC layer isa sub-layerwithinthe

boundsoftheOSIarchitecture'sdatalink layer. A bus

topology

isusuallyassociated

withtheIEEE 802.4prioritymechanism.

This, however,

does nothavetobethecase.

FDDIalso uses aprioritymechanismthatisverysimilarto theIEEE 802.4protocol, and

FDDIisatokenpassing

ring

network. Itis safetosaythat theprioritymechanism

being

detailed inthis section couldbeusedin anytokenpassingnetwork. Itisnotdependent

onthe underlyingphysicaltopology. Althoughthetokenbus

topology

is discussed
(12)

throughout the

document,

itis importanttorememberthat theprotocolis justaseasily

implemented ina

token-passing

ring

network.

The IEEE 802.4tokenbusexpects stationstobeconfiguredalongalinear

bus,

buttreats thebusas alogical ring. Itisimportantto notethatthephysicalorderingof

thenodes onthebusdoesnot affecttheorder oftokenpassing. Since everystation con

nectedto thebus hearseverytransmission,the tokenisusuallyaddressedtoa specific

nodethatisthenextlower deviceaddress. Thestationwiththelowestdeviceaddress

obviouslyhastoaddressthetokento thestation withthehighestdevice address. The

specification ofthephysicallayerisnotimportant forourpurposes,butthebusis usually

madeup of75-ohm broadbandcoaxial cable. Transmissionrates of

1,

5,

and 10

Mbits/secare possible.

2.2. Introduction

The IEEE 802.4tokenbusnetworkhasbecomeastandardinthe industrial auto

mationindustry. Thereason for itsacceptance liesinthreemain areas. Theseareas are

stability,

reliability,

and aprioritymechanism.

The IEEE 802.4 prioritymechanismallows anindustrial networktomeetrigidreal-time

requirements.

Also,

itallows additionalbandwidthtobeusedfortrafficassociated with

applicationsthatare nottime critical, orwhose real-time requirementsarenot as strin

gent. Thisisdone

by

allowingstationsto accessthemediumsynchronouslyandasynch

ronously. Forhighpriority transmissions,eachstationhasa guaranteedamountoftime

foreachtokenrotationinwhichit maytransmit. Thisisguaranteedbandwidthwhatever

(13)

the totalcommunicationload. Forlowerpriority

transmissions,

each stationmayormay

notreceive anopportunityto transmitforeach rotationofthetoken.

Gaining

accessto

themediumfor lower prioritytransmissionsisbasedupontheoverall communication

load.

The

following

sections

discuss

theIEEE 802.4 prioritymechanism. Afunctional

descriptionoftheprioritymechanismisgiven, followed

by

mathematicalmodelsthat

analyzetheeffectsthat theprioritymechanismhasonthroughputandmediaaccess

delay.

2.3. Functional Description

The IEEE 802.4 prioritymechanismis describedfromafunctionalstandpointin

thissection. Thedescription breaks downtheprioritymechanismintothree major

groups;

priority

levels,

accessclasses,

andtimers.

Eachofthese areasandtheirinterrelationships is discussed.

Acompletedescriptionoftheprioritymechanismispresentedbelow instructured

English. Thereaderisencouragedtoreferto this top-leveldescriptionwhilereading lat

erthesectionsexplainingtheusage ofthehighprioritytokenholdtime andtargetrota

tiontimers. The IEEE 802.4prioritymechanismisnowpresented.

1. waitfortoken

2. starthigh prioritytokenholdtimer

(14)

3. transmitlevel 6 datauntilhigh prioritytokenholdtimerexpires orthereis

no morelevel 6 datatobetransmitted.

4. stop high prioritytokenholdtimer

5. passthe token

internally

toaccess class4

6. calculatethelevel 4token

holding

time

by

storingtheremainingtime lefton

the level4targetrotationtimer

7. restartthelevel4targetrotationtimer

8. ifthelevel4token

holding

time isgreaterthan0thentransmitlevel 4 data

untilthelevel4token

holding

timeisreached orthere isno morelevel 4 data

tobetransmitted

9. passthe token

internally

toaccess class2

10. calculatethelevel2token

holding

time

by

storingtheremainingtimelefton

thelevel2targetrotationtimer

1 1. restartthelevel2targetrotationtimer

12. ifthelevel2token

holding

time isgreaterthan0thentransmitlevel2data

untilthelevel 2token

holding

timeisreached orthereis no morelevel 2 data

tobetransmitted

13. passthe token

internally

toaccess class0

14. calculatethe level 0token

holding

time

by

storingtheremainingtime lefton

thelevel 0targetrotationtimer

15. restartthelevel 0targetrotationtimer

16. ifthelevel 0token

holding

timeis greaterthan0then transmitlevel0data

untilthelevel0token

holding

timeisreached orthereisno morelevel0data

tobetransmitted

17. passthetokento thenext stationinthe

ring

18. repeat

2.3.1.

Priority

Levels

The IEEE 802.4 prioritymechanismoffersfour priority levels atwhichdatamay

betransmitted. These priority levelsarenamed

0, 2, 4,

and

6,

with 6

being

thehighest
(15)

priority. A station connectedtoan802.4tokenbusmaybeconfiguredtouse anycombi

nation ofthesepriority

levels,

ornoprioritymechanismatall. Astationnotconfigured

tousetheprioritymechanismautomatically

defaults

to

transmitting

its framesatpriority

level 6. Whatevera station'sconfiguration,itcancoexist withotherstations onthebus

usingdifferentprioritylevelconfigurations. Forthepurposes ofthis

discussion,

itisas

sumedthat thestations are configuredtouseallavailableprioritylevels.

2.3.2. AccessClasses

Access classes aretheentities responsiblefor servicingeachpriority levelwithin

a single station. Oneaccessclass existsfor every priority level forwhichthe stationis

configured. Forexample,astationconfiguredtouseall fourprioritylevelswillhave

fouraccess classes.

They

arenamedaccessclass

0,

2, 4,

and

6,

afterthepriority levels

that

they

service.

Accessclassescanbethoughtof as virtualsubstations. Eachaccess classpresent

inastationhasitsown queueto storeoutgoing

frames,

receivesthetoken,transmits

frames,

andtransmits the token.

However,

forastation configuredtouse allfourprior

ity

levels,

onlyaccess class6receivesthetokenfromphysicalmedium,andonlyaccess

class0transmitsthetokenontothephysical medium. Atall othertimes the tokenis be

ing

passed

internally

withinthe station. Figure 1 showsthisforabustopology.
(16)

6 4 2 0 6 4 2 0 6 4 2 0

r -? ->

r

-? n r ? -.

A

?

?

1

? 1 ? T

L

-? - L -?

-i

Figure 1

-TokenrotationfortheIEEE 802.4 priorityschemeisaccomplishedbypass

ingthe token toeachaccess class(orvirtualsub-station)within anodebe foretransmittingitacrossthephysicalmediato thenextdevice inthelogical

In Figure

1,

thepathofthe tokenisshown

by

thedotted lineswith arrows. The

large boxesrepresentphysicalstations onthebus. Eachbox is divided into foursmaller

boxestorepresentthevirtualsubstations oraccess classeswithineach station. Eachac

cessclassis labeledwithits priority

directly

above it. Notice howaccess class

6,

the

highest priority accessclass,receivesthe tokenfirstwithin eachstation. Itthenpasses

thetoken

internally

toaccess class4. Accessclass4

internally

passesthe token toaccess

class

2,

and so on. Whenthetokenis

finally

transmitted fromaccess class

0,

itisphysi

callysent onthemediato thenext stationinthering.

Whenan accessclassreceivesthetoken,andhasdatatotransmit,itneverpasses

the frame

internally

tothenextlower priorityaccess class. Eachaccess class withina

stationtransmits data

directly

ontothephysicalmedium.

Similarly,

each access class

maintainsits own queuesfor

holding

data pendingarrival ofthe token. Queuesarenot

sharedamongaccess classes.

(17)

2.3.3. Timers

Oncethe tokenisreceived, anaccess classuses adedicatedtimerto trackhow

long

data

transmission,

atitspriority

level,

canlast.

Depending

onthepriority levelas

sociated withtheaccessclass,theaccess class usesoneoftwo typesoftimers;

ahighprioritytokenhold timer,

or atargetrotationtimer.

Theamount oftime thatanaccess classisallowedto transmitis determined

depending

ontheprioritylevelassociatedwithit. Lower priorityaccessclasses usetargetrotation

timers to

determine

transmission

duration,

while access class6usesthehigh priorityto

kenholdtimer.

2.3.3.1. High

Priority

Token Hold Timer

Wheneveralevel6access classreceivesthetoken,theamount ofdatathatwillbe

transmittedbeforethetokenispassedisdetermined

by

one oftwothings;

1. theofferedloadatthatpriority

level,

2. ortheduration ofthehighprioritytokenholdtime.

Inotherwords, thehigh prioritytokenholdtimerplaces an upperboundontheamount

ofdatathatalevel 6access classmaytransmitpertokenrotation. Whenthe tokenar

rives,

thehigh prioritytokenholdtimerisstarted, anddatatransmissionbegins. When

the timer expires, thecurrenttransmissioniscompletedandthe token ispassed

internally

to thenextlower priorityaccessclass, ortothenext stationifno other access classesex

ist. Iftheaccess classruns out ofdatatotransmitbeforethehigh prioritytokenhold

(18)

timerexpires,the timerisstopped andthe tokenpassed onward. Ifthe timeneededto

transmittheframeonthefrontofthequeueisgreaterthanthehigh prioritytokenhold

time,onlyoneframewillbetransmittedpertokenrotation.

Thehigh prioritytokenholdtimeisa configurable parameterintheIEEE 802.4

standard. It maybeconfigured

differently

for everystationinthenetworkusingaccess

class

6,

but usuallyall stationsusingaccess class6 are configuredforthesameduration.

Thismeansthateverynode onthecontrol networkwillhavea reservedbandwidth in

which it maytransmitlevel6 frames.

Having

a reservedbandwidthmeansthatwhatever

thecommunications

load,

everynode cantransmitlevel 6framesuponthearrival ofthe

token. Thiswillbe guaranteed. Theconfigurationofthehighprioritytokenhold timer,

forreal-timenetworks,isdiscussedinsection2.4.

2.3.3.2. Target Rotation Timers

Theamountoftimethe lower priorityaccessclasses are allottedfor datatrans

missionarealso governed

by

timers. Thetargetrotationtime isthemaximumtoken

rotationtime thatcan occurinorderfordatatransmissionto takeplacefrom an access

class.Withinastation,these timersareusedinall access classes exceptaccess class

6,

which usesthehighprioritytokenholdtimertodeterminetransmissionduration. When

atokenarrives atalowerpriorityaccessclass, theamountoftimeleftbeforethe target

rotationtimerexpiresisnoted. Thistimeiscalledthe token

holding

time. Afterthe to

ken

holding

timeis saved, thetargetrotationtimerisresetand restarted. Ifthetoken

holding

timewas notedasgreaterthan

0,

the access classisallowedtotransmitdata for

the durationofthetoken

holding

time. Ifthetoken

holding

timeexpiresinthemiddle of
(19)

adata

transmission,

thenthattransmissioniscompleted. Iftheaccess classdoesnothave

anymore datatotransmit,but itstoken

holding

timehasnot yetexpired,the tokenis

passed early. Ifthe access class'stoken

holding

timewas

0,

thenitstargetrotationtimer

expired

before

thereturn ofthe

token,

and nodatatransmissionisallowedfromthatac

cess classforthat tokenrotation.

Thetargetrotationtimesforprioritylevels

0,

2,

and

4,

are configurable parame

tersintheIEEE 802.4 standard.

They

may beconfigured

differently

for everystation on

the token

bus,

but usuallyall stationsusinga particularaccess class are configuredfor

the sameduration.

Also,

thehigherpriorityaccess classes arenormallyconfiguredwith

largertargetrotationtimes. Thismeansthat

they

haveahigher probabilityoftransmit

ting

pertokenrotation.

Itis importantto notethat the targetrotationtimefora particularaccess classde

terminesthemaximum amount ofbandwidthavailabletoallnodes

transmitting

thatlevel

framepertokenrotation. Theactualbandwidthavailableforany prioritylevel is depen

dentonthenumberof otherpriority framesthataretransmitted.

Tounderstandwhythisisso,let's firstassumethatnetworktraffic ismadeupof

asinglepriority levelotherthanlevel 6. Thismeansthatthetargetrotationtimealone

determinesthe totalbandwidthavailableforthispriority levelframepertokenrotation.

Ifa singlenodetransmitsforitsmaximumtoken

holding

time,thenno other nodes can

transmitforthattokenrotation.

Every

other nodeonthenetworkwillreceivethetoken

afteritstargetrotationtimerhasexpired.

Now,

let'sadd networktrafficcomprising of

datathatisofhigherpriority,

including

level 6frames. Theavailablebandwidthofour

priority level may

drop

to0ifenoughhigher priority levelframesaretransmitted. Ifthe
(20)

prioritylevelinquestionis level

2,

thenprioritylevel6traffic,prioritylevel4traffic,or

a combinationofthe twomayusetheavailablepriority level 2bandwidth. If priority

level4transmissionsareusingtheentirelevel4targetrotationtime,thennobandwidth

willbe left for level2

transmission,

whateverthelevel 6traffic. Thisisassuming, of

course,thatthetargetrotationtimefor level4is largerthan thatfor level 2.

Similarly,

level 6trafficmayuse available level2bandwidth if manynodeshave level 6 framesto

transmit.

2.4.

Meeting

Real-Time Requirements

Theprioritymechanisminherent intheIEEE 802.4standardmaybeconfigured

sothatitworksefficiently for many different networkingapplications. Themain con

cernofthissectionis todetail howthehigh prioritytokenholdtimeandthe targetrota

tiontimes maybeconfiguredto meetreal-time requirementsacrossthecontrolnetwork.

Theparticularareaofreal-timecommunicationdiscussed inthissectionisprocess con

trol. The networkdataassociated with process controlisbroken downinto categories.

TheconfigurationoftheIEEE802.4prioritytimersis discussed foreachcategory.

2.4.1. Alarm Messages

Alarmmessages areusuallyassociated withmalfunctionsintheprocess control

equipment. Messagessuchasthesearegeneratedfromasingleboardcomputerthat

comprisesasingle station onthecontrol network. Thereareusuallyno external storage

or

display

peripherals associatedwith it. Inorderforthealarm messagetoreachtheop

erator, themessagemustbetransmittedontothe controlnetwork. Thealarm messageis

(21)

destined foranodeorgroupof nodesthatwill respond

immediately

to themalfunction.

Partofthecontrol network willbeplacedinafail-safecondition,andplantoperators

willbe informedthroughouttheplant on

display

devices. Ifalarm messagesare

lost,

or

take a

long

time toreachtheir

destinations,

adangeroussituationmayresult.

Sincealarm messages are soimportantintheprocesscontrolenvironment,

they

shouldbetransmittedaspriority level 6 frames. Thismeansthateverynode onthecon

trolnetworkwillhaveareservedbandwidth inwhichitmaytransmitalarmmessages.

The durationofthe transmissionis determined

by

thehigh prioritytokenholdtime. Ev

erynode cantransmitalarmmessagesuponthe arrivalofthetoken,whatevertheload on

thecommunication network.

2.4.2. Control DataandNetwork Maintenance

Afteralarmmessages, data

directly

relatedto theprocess

being

controlledisthe

nextmostimportant groupof messages onthe controlnetwork. Thisdatamaybetrans

mittedsynchronouslyorasynchronouslybetweennodesonthe systemtomaintain con

troloftheprocess. Ofequalimportanceis network maintenance. Networkmaintenance

messages consist ofmessagesthatallow nodesthroughoutthenetworktotrackthe acces

sibilityof variousdestinations. If important datamustreach a particular

destination,

but

the destination is downorforanother reasonis

inaccessible,

thenthe source ofthe trans

mission must actappropriately.

Typically,

thismeans sendingan alarmmessage. Net

work maintenance messages alsohandletheaddition anddeletionof nodesto thelogical

ring

dynamically. Thenetworkdoesnothavetoberebootedeverytimeanode isadded
(22)

to the logical

ring,

anddoesnot crasheverytimeanode isremoved. Withoutnetwork

management messages

being

handled

efficiently,the control networkmayfail.

Transmissions containing data importantforthecontrol oftheprocess should also

be highpriority.

Applications

runninginvarious stationsinthenetworkmaybeusing

control variablesforvarious purposes. Someofthese control variablesmaybecollected

outsidethestation

doing

thecalculations andthereforemustbetransmitted acrossthe

control network. Thecontrol variablesmaybeupdatedsynchronouslyorasynchronous

ly. In anycase, thisdata is very important in

keeping

theprocessunder control and must

be delivered ina

timely

fashion.

Priority

level 4 isusedformessagesrelatingtocontroldataandnetwork manage

ment. Besidesthealarm messages

being

transmittedatlevel

6,

thecontrol and network

managementtransmissionswillbethehighest prioritytransmissionsonthecontrolnet

work. This makessense,sincethesemessages arethebackboneofthecontrolprocess.

Sincethe number ofalarmmessages

being

transmittedisexpectedtobeverysmall

(systemmalfunctions shouldbe

infrequent),

controldataandnetwork maintenancewill

usuallybethehighest priority datapresent onthe control network.

2.4.3. Routine Data

Networktraffic categorizedasroutine encompassestransmissionsthatareimpor

tanttothecontrolprocess,butnotastimecriticalascontroldataor network management

data. Anexample ofthiswouldbenetworktraffic associated withconsoledisplays.

Op

eratorsmayattemptto

display

various piecesofdataon a

display

device.

Doing

so usu

allymeanscollectingdatafromother stationsinthecontrolnetworkthatare responsible

(23)

for maintainingthedisplayedvariables.

Therefore,

thisdatamustbesent acrossthecon

trolnetworkto stations with

display

devices.

Furthermore,

the

display

mustbeupdated

as valuesinthecontrol network change. Thismeansthata periodicflowofdatato the

station

housing

the

display

must occur. Inotherwords, the dataonthe

display

willbe

updated atsome predetermined periodic rate.

Anotherexample of an applicationthatwouldrelyontransmissionsofthisprior

ity

maybeahistorical device. Thiswouldbea station onthecontrol networkresponsi

ble forcollecting dataonvarious control variablesthroughoutthenetwork. Anoperator

could examinethetrendsinthe

data,

athisconvenience,andfindpossiblefaultsorim

provementsthatcouldbemadeto thecontrol process. Thisinformation isnot criticalto

maintainingthe process,butmust stillbe deliveredcloseto thesamplingrate ofthehis

toricaldevicetomaintainvalidityofanystatistical analysisthatmay be done.

Priority

level 2 isusedformessages relatedtoroutinedata. Thisdataisnot as

timecritical aslevel 6and4 transmissions, butshould stillbegivenpriorityovertheop

erations described inthenextsection.

2.4.4. File Transfer

The lowest prioritytraffic onthecontrol networkis associatedwithfiletransfer.

Filetransfersoccurwhen a nodeonthecontrol networkis booted.

Many

nodesdonot

contain anyexternal storagedevicestoloadtheirsoftwareintomemory.

Instead,

they

areinstalledwithboot PROMsthatallowfordownloadacrossthecontrol networkfrom

a servernodecontainingallthesoftware. Thistypeoftransferisassociated withlarge

framesoverthetimeittakestocompletethedownload. Atransfersuch asthisat ahigh

(24)

priority levelcould endangerthecontrolprocess,becausecontroldatamaynotbetrans

mittedbeforetheirhard

deadlines.

Priority

level 0isusedformessages relatedto filetransfer. Theamount oftime it

takes todownloada node overthe control networkisnot asimportantasmaintainingthe

process

being

controlled.

2.5.

Analyzing

UtilizationandThroughput

Theutilization andqueuing

delay

of networktraffic associated withaparticular

prioritylevel is mathematicallymodelledinthissection. Thesemodelswill representthe

functional descriptionsof eachpriority level alreadygiven. Beforethiscanbe

done,

however,

some mathematicalfoundationmustbediscussed. Themodel presentedistak

enfrom [5]. Thismodel willbeusedas abasetobuildothermodels, specificallythe

modelofthebuffer insertionprotocol presentedlater. Thiswill allowthe twoprotocols

tobeeasilycompared.

2.5.1. General Terms

Before explainingthedetailsofthe model,somebackground

terminology

must

bepresented.

Utilization, U,

isthe fractionoftimedata frames aretransmittedontothe

control network.

Throughput,

S,

isthetotalnumberofdata bitsreceivedatadestination

persecond expressed asafractionofthebandwidth. Thesetermscanbeusedtodiscuss

network widetrends concerningall stationsonthecontrolnetwork,aswell as specific

stations.

Ui

andS.aretheutilization andthroughputofprioritylevel

i,

where isequalto

0,

2, 4,

or6. The relationship between Sand U isgiven

by

(25)

St

=atUi

where

a,= Tt

{Ti

+

Toh)

Ts

isthemeanframe lengthofprioritylevelitransmissions. Iftransmission time

ismeasuredin bit times, ortheamount oftime ittakes totransmitone

bit,

then T.isalso

the transmission timeofpriorityleveliframes. Forexample,a 5byte framewilltake40

bittimes to transmit. Themeanlengthof aframe doesnotincludeany headerortrailer

information.

Toh

isthenumber of overheadbits inaframe. Thisvalue isthesamefor

allpriority levels. It isalso the timeittakesto transmittheoverhead portionofany

frame. Figure2portrays atypicalframe

format,

showingthe

header,

trailer,anddata

portions oftheframe.

PREAMBLE SD FC DA SA DATA FCS ED

Figure2-Theframe formatoftheIEEE802.4MACsublayerismade

upof12 to 14bytesof overhead. Thisis dueto thepreamblewhichcanbe 1,2,or3by

tesdependingonthecapacityofthebus. Thedatafieldmaycontainany wherefrom 0to 1014 bytesofinformation.

The frameoverhead consists ofthe preamble,startdelimiter

(SD),

framecontrol

(FC),

destinationaddress

(DA),

source address

(SA),

frame check sequence

(FCS),

and endde

limiter(ED). Thestart

delimiter,

framecontrol, andenddelimiterareonebyte fields.

The destinationaddressandsource addressaretwobyte fields. Theframe checkse

quenceis athreebyte field. Thepreambleis

1, 2,

or3 bytes

depending

on whetherthe
(26)

capacityofthebus is

1,

5or 10Mbits/secrespectively. Thespecificmeaningof each

field isnotimportant forthisanalysis. Itis just importanttonotethatthesefieldsare

whatmakeupthevariable Toh. Thedata fieldinFigure2changessize

depending

onhow

muchinformationanapplicationhasto transmit. It maybe0to 1014bytes insize.

a,

isa factorrelatingthedataportion of aframeto theoverall sizeofthe

frame,

including

the

headers

andtrailers. Fromthe earlierequation, thedifference between

throughputand utilizationisevident. Utilizationisa measureofthe totalframestrans

mitted. Throughput isameasure ofthedatareceived,excludingoverhead.

Anothermetricthatisusedtoevaluatethestate ofanetworkistheoffered load.

The offered

load,

G,

isthenumberofdata bitsgenerated

by

allactive stations persecond

expressed asafractionofthechannelbandwidth. More simply,it istheamount ofdata

generated,

by

allnodes, fortransmission,overagiventime. Ifthenetworkcanhandle

theamountofdata

being

generatedfortransmission,then the offeredloadwillequalthe

utilization. Ifthenetworkcannothandletheamountofdata

being

generatedfortrans

mission,thentheofferedloadwillbegreaterthantheutilization. Likeutilizationand

throughput,

Gt

representstheoffered load for priority levelitransmissions.

G/

istheof

fered loadofprioritylevel iwhenthe offeredload isconsideredtobeall ofthebits gen

eratedperunittime, notjustthedata bits. Inotherwords,

Ui

isto

G/

asS. isto

Gr

T,

representsthemeantokenpassingtimebetweentwo stations onthelogical

ring. Thistime includesthestation

delay,

thehead-end

delay,

the transmitterand receiv

ermodem

delays,

the token transmissiontime,andthepropagationdelay.

If,

forexam

ple, thereareAfstations onthe ring, then

NT,

wouldbethe minimum amount oftime
(27)

neededforthe token tocirculatetheentire network. Thisminimumtokenrotationtime

occursifno station onthe

ring

transmitsanydata. Theminimumtokenrotationtime is

represented

by

C0. C representsthemeantokenrotationtime. Thisisthemeantime

betweenthe tokenarrivingat a particular accessclass,andreturningtothesameclass.

Timevalues associatedwiththehigh prioritytokenholdtimeare represented

by

thesymbol Tt.

Similarly,

thetargetrotationtimesforaccess classes

4, 2,

and0are repre

sented

by

thevariables

TR,(4), 1^(2),

and

TR(0)

respectively.

Lastly,

TJi)

representsthe

amount oftimeaccess classiholdsthetokenafteritshigh prioritytokenholdtimeror '

targetrotationtimerhasexpired. Rememberthatas

long

as atransmissionbeginsbefore

the timerexpires, itwillalways complete. Forexample,thevalueof

TJ6)

rangesfrom 0

tothetransmission timeofthemaximum sized

frame,

depending

on whenthehighprior

ity

tokenholdtimerexpires.

2.5.2. Assumptions

Aswithanymathematicalmodel,certainsimplifyingassumptions needtobe

madeto

keep

themodeltractable. The

following

are assumptionsmadeforthemodel

being

presented.

errorfreeoperation ofthenetwork

noadditions ordeletionsofnodesfromarunningsystem

alargenumberofnodes

the targetrotationtimesare greaterthan theminimumtokenrotationtime

thetargetrotationtimesarewellseparated anddecreasewith

decreasing

priority.

Theseassumptions willbecomeclearerasthemodelispresented. A largenum

berof nodesmustbeusedbecausethemodel

being

presentedis baseduponthemean
(28)

kenrotationtimeofthenetwork. Forthemodeltobeprecise, theactualtokenrotation

timemustremainverycloseto themeantokenrotationtime. This isaccomplishedwhen

alargenumberofnodes existinthe system.

Targetrotationtimesmustbeseparated

by

many bittimessothattheutilization

andthroughputgiven

by

themodelisclearfora particularpriority level. Targetrotation

times tooclose willresultinutilizationsthatare a combination oftwo ormorepriority

levels.

2.5.3. Lower

Priority

Levels

Theutilization models ofthelower priority levelsarediscussed first. Thesemod

els representtheutilizationsoflevel

4,

level

2,

andlevel 0transmissions. These are pres

entedfirstsince

they

are moreintuitiveandthereforeeasiertounderstandthan themodel

representingtheutilization characteristicsofaccess class6.

Normally

the targetrotationtimersof each access classareconfigured sothat

TR(0)

<

TR(2)

< TR(4).

This, however,

doesnothavetobethecase. Thetimersmay be

configuredsothatanyaccess classisgreater orlessthananyother. The only criteriabe

ing

that

they

arewell separated. Forthe

following

discussion,

we willassumethat

TR(0)

<

TR(2)

< TR(4).

2.5.3.1. PeakUtilizations

Examining

eachpriority levelseparately, itiseasytoseethattheutilization ofa

particularpriority level increasesastheofferedloadofthatpriority levelincreases. This

will occur untilthemeantokenrotationtimeexceedsthe targetrotationtime forthatac

cess class.

Assuming,

foramoment,thatall networktraffic iscomprised of a single
(29)

priority

level,

i,

andthat the tokenrotationtimeisequalto thetargetrotationtime for

thatpriority

level,

then theutilizationisatitsmaximum andisgiven

by

7XQ

-C,

whereirepresentstheprioritylevelof

4, 2,

or

0,

again where

Ce

istheminimumtoken

rotationtimer, andPrepresentsthepeak utilizationofpriority level i.

Any

wastedband

widthisbecauseoftheoverheadinvolvedwithpassingthetoken,otherwise,all ofthe

bandwidthavailabletopriority leveliis

being

used.

Continuing

the assumptionthatall networktraffic is

being

madeupof a single

lowerpriority

level,

the

following

statementabout utilizationmaybemade. Theutiliza

tionofaprioritylevelmustbethe minimum oftheofferedloadofthatpriority

level,

and

thepeak utilization ofthatpriority level. Inotherwords,

U,=MIN(G,i,

Pt)

ifnetworktrafficismadeupofonlyaccessclassitransmissions.

2.5.3.2. Actual Utilizations

Theprevious section explained whathappenstotheutilizations ofthelower

priorityaccess classes whenallnetworktrafficbelongstoa singleprioritylevel. Howev

er, thenetworkusuallyhasamixtureofmany differentprioritylevels

being

transmitted

ina singletokenrotation. Networktrafficofahigher priority levelwill usebandwidth

thatwouldotherwisebeavailabletolower prioritytransmissions. Forexample,when

themeantokenrotationtimeincreasesabovethelevel 4targetrotationtime,the level4

utilizationbecomes dependentontheutilizationofthehigher priority level (level

6)

and

thetokenrotationtime ofanidle bus.

Therefore,

whenthe tokenrotationtimereaches
(30)

the targetrotationtimeof a particularpriority

level,

theutilization forthatpriority level

willhavereached alocalmaximumforthatparticularcombinationof offeredloads.

Only

when networktraffic consists oftheprioritylevelinquestioniswhentheutilization

oftheprioritylevelreachesitspeak

described

intheprevioussection.

Therefore,

theuti

lizationwhenthemeantokenrotationtimeequalsthetargetrotationtimeof aparticular

prioritylevelwill alwaysbetheminimumoftheofferedloadofthatpriority leveland

thepeakutilization ofthatprioritylevelminusthecombinedutilizations ofthehigher

prioritylevels. Notethattheutilizationatany prioritylevelcan neverbecome lessthan

zero. Iftheutilizationfromahigherpriorityleveluses all ofa particularprioritylevel's

bandwidththen theutilizationforthatpriority level remains zero anddoesnot gonega

tive. Itshould alsobe notedherethatnetworktraffic ofalower priority levelcannot re

ducetheutilizationofahigher priority level. The lower priority levels havesmaller

targetrotationtimesandcannotdrivethemeantokenrotationtime abovethetargetrota

tiontime ofthepriority level inquestion.

Wheneverthemeantokenrotationtimeis smallerthan thetargetrotationtimefor

aparticularpriority

level,

there is bandwidthavailabletohandletheofferedloadofthat

priority level. More

formally,

U4

=

\

G4,

C<TR(4)

MAX(0,

P4-U6),

C>TR{4)

(31)

and

U2

=

G2,

C<TR(2)

MAX

(0,

P2-U6-Ua),

C>

7>(2)

U0

=

\

MAX(0,

P0-U6-Ua-U2),

C<TR(0)

C>TR.(0)

Calculating

these threeutilizations still requiresthatthemeantokenrotationtime

be known. At leastwhenrepresentedinthisform it does. Itmayalsobeexpressedin

the

following

notation.

Ua

=MAX(MIN

(G4,

Pa

-U6), 0)

U2

=MAX(MIN

(G2,

Pa-U6-Ua), 0)

U0

=MAX(MIN

(Go,

Pa~U6-Ua-

U2),

0).

Noticethateachofthelower priority levelutilizationsmaynowbecalculated if

theoffered

load,

targetrotationtime,minimumtokenrotationtime,andhigh priorityuti

lizationis known. Allofthese factors havealready

been

expressedexceptone, thelevel

6utilization. Without

it,

none oftheotherutilizationsmaybecomputed. Thenextsec

tion is dedicatedtoexplainingthemathematical modelassociatedwithcomputingthe

level6utilization.

(32)

2.5.4. High

Priority

Expressing

thelevel6utilizationmathematically ismoredifficultthanexpressing

theutilizations ofthelowerprioritylevels. This is mainlydueto the factthatthehigh

prioritytokenholdtimerisused

differently

than the targetrotationtimersofthelower

prioritylevels. Thetargetrotationtimers

indicated

themaximumamountoftimeaccess

classes of a particularprioritylevelmaytransmitina singletokenrotation. Thehigh

prioritytokenholdtimerdoesn'tgivethemaximumtokenrotationtimeifonly level 6

framesare

being

transmitted.

Instead,

itgivestheamountoftimeeach station onthe net

workmaytransmitlevel 6 data. Thissectionexplainshowthelevel 6utilizationcanbe

expressedintermsoftargetrotationtimes, offered

loads,

etc., sothatit may beusedto

solvetheequations oflower priorityutilization. Notethatitmakesno sensetomodelthe

level 6utilization intermsofthelevel

4, 2,

or0utilizationssincethe goalistousethe

resultheretoresolvethe finalvariableinthoseequations.

2.5.4.1.

Deriving

the Peak Level 6 Utilization

Asstated above, thehighprioritytokenholdtimerdoesnotexpressthemaximum

tokenrotationtimefor

transmitting

onlylevel6dataasdoesthe targetrotationtimers.

However,

themaximumtokenrotationtime, ifnetworktrafficisonlymadeup oflevel 6

data,

canbeexpressedintermsofthehigh prioritytokenholdtimeas

follows;

CS

=

(TS

+

Tm(6)

+T,)N.

whereNisthenumber ofstationsonthe network,

Ts

isthehighprioritytoken

hold time,

TJ6)

isthemaximum overshootforaprioritylevel 6accessclass,and

T,

isthe token

passingtimebetweentwoadjacentstations.

(33)

Toachieve maximumlevel6 utilization, each oftheNstations onthenetwork

musttransmitfortheirentirehighprioritytokenhold time,plus some additionaltrans

missiontimetofinishuponcethetimerexpires. Eachstation mustalso passthetoken to

the nextdevice.

Again,

assumingthatnetworktrafficismadeupofonly level 6 transmissions,the

peak utilization ofprioritylevel6 isgiven

by

P6

= ^S ^O

Since itis knownthat

C0=NTP

theexpressionisequivalentto

[r,+rw(6);pv-P6=

c,

2.5.4.2.

Deriving

theGeneral Level 6 Utilization

Depending

onhowthevalue ofthemaximumlevel 6tokenrotationtime,

Cs,

comparesto the targetrotationtimes,theactual level 6utilizationmay besimple orvery

difficulttomodel. Unlikethe targetrotationtimersofthelower priority

levels,

Cs

de

pends uponthenumber of stations inthenetwork. Italso dependsuponthemean sizeof

level 6transmissions,buttoamuchlesserextent. Itispossiblethatthemaximumlevel

6tokenrotationtime,

C

fallanywhereintherange oftargetrotationtimers

depending

onthevalue ofthe highprioritytokenholdtimeandthenumber ofstationsinthenet

work. For anytimer configuration,one ofthe

following

conditionswill exist

1.

7^(0)

<

7^2)

<

7^4)

<C,

2.

TR(0)

<

TR(2)

<CS<

TR(4)

3.

TR(0)

<

C,

<

TR(2)

<

TR(4)

(34)

4.

C,

<

TR(0)

<

TR(2)

< TR(4).

Thelevel 6utilizationforeach ofthesecasesis different. Eachcaseistreatedseparately

inoneofthenextfoursections.

Before proceeding,some general conclusions aboutlevel 6utilization willbe

drawn,

as wasdone forthelower levelutilizationsinthepreceding sections. Thiswillbe

used as abasisforthelevel 6utilization models.

Theequationforthelevel 6peak utilizationonlyapplieswhenthenetworktraffic

consists ofstrictly level 6transmissions. The factthat thelevel 6utilizationfallsbe

tweentheoffered loadandthepeak utilization underthese same constraintshasalsobeen

discussed. Thesemodels weredeveloped basedonthepremisethatthemeantokenrota

tion timedidnot exceedCs.

However,

ifnetworktraffic consists oftransmissionsfrom

many priority

levels,

the meantokenrotationtimemayexceed

Cs

inthreeout ofthe four

caseslistedabove.

Therefore,

the level6utilizationundermixednetworktraffic should

notbedependentuponthevalueof

Cs,

butrather onthe meantokenrotationtime. It

maybestatedthat

Ingeneral,thelevel 6utilization willbetheminimum ofthelevel 6offeredloadandthe

maximumlevel 6transmission timedivided

by

meantokenrotationtime.

2.5.4.2.1. Casel:

TR(0)

<

TR(2)

<

TR(4)

<

Cs

Thecase when allofthetargetrotationtimesaresmallerthan

C,

isthe easiestto

model. To

fully

analyzethelevel 6utilizationwhen

Cs

is greaterthanall ofthetarget

rotationtimes themodel mustbebrokenintotwosub-cases. Thesesub-cases are

(35)

1.

C=CS,

themeantokenrotationtimeisequalto the level6tokenrotation

time.

2. C<

Cr,

themeantokenrotationtime is lessthan thelevel 6tokenrotation

time.

2.5.4.2.1.1. Case la:

C=CS

Whenthemeantokenrotation reaches

C,

,theutilizationof alllower priority lev

elswillbe drivento 0. Inotherwords,level 6trafficiscapableof

increasing

themean

tokenrotationtimesothatnootherpriorityleveltransmission takesplace. Thismeans

thatthelowerprioritylevelscannothaveanaffectontheutilizationofpriority level

6,

andthatthemaximumlevel 6utilizationisactuallythepeaklevel 6utilization,P6.

Amoreformalproof ofthisderivation follows.

Theorem: ifC=

Cs

and

TR(0)

<

TR(2)

<

TR(4)

<

Cs

then

U6

=

P6

Proof:

1. U6=MIN

(g'6,

[r'+7f(<5)]*

)

definitionof

U6

2

p6

=

It,+t(6)-]n

definitionof

P6

w

3.

P6

= =

4. ifC=CsthenG'6>^Zf^

from(l)

5 u6=

[r'+6)>r

from (1

)

and

(4)

6.

U6=P6

from

(3)

and

(5)

(36)

2.5.4.2.1.2. Case lb:

C<CS

Whenthemeantokenrotationtimeis lessthan thelevel 6tokenrotationtime,

bandwidth

still exists formorelevel6transmissionstotakeplaceinasingletokenrota

tion.

Therefore,

thelevel 6utilization mustbeequaltothe level 6offeredload.

Theorem: ifC<

Cs

and

TR(0)

<

TR(2)

<

TR(4)

<

Cs

then

U6

=

G'6

Proof:

1.

U6

=MIN

[g'6,

[r'+rg(6)]")

definitionof

U6

2. ifC<CsthenG'6<lT'+Tf)lN

3.

U6

=

G'6

from

(1)

and

(2)

2.5.4.2.1.3. Level 6 Utilization Model for Case 1

Theentire level6utilization model whenthelevel 6maximumtokenrotation

timeisgreaterthanallofthetargetrotationtimes canbestated as

follows,

ifC=

Cs

then U6=MIN

[g'6,

pA

else

U6

=G6.

Thisreducesto

u6=min(g'6,

p6]

sincetheelseconditionisalreadyasubset ofthefirstcondition.

2.5.4.2.2. Case 2:

TR(0)

<

TR(2)

<

C,

<

TR(4)

Thissectiondevelopsa modelfor level 6utilizationwhenthemaximumtoken

rotationtimefor level 6traffic is lessthanthetargetrotationtime ofprioritylevel 4.

Cs

isnolongerthemaximumtokenrotationtimeoftheentire network.

Instead,

thevalue
(37)

ofthelevel4targetrotationtimeisthemaximumtokenrotationtimepossible. This

meansthatbandwidthwill stillbeavailableforlevel4transmissionsafterlevel 6traffic

hasreacheditspeak. Additional level4trafficwilldecreasetheutilizationofpriority

level 6. Inotherwords,oncethemeantokenrotationtime grows greaterthan

Cs,

the

maximumlevel 6utilizationbecomesdependentuponthetargetrotationtimeofpriority

level4. Astheadditionallevel4trafficpushesthemeantokenrotation greaterthan

Cs,

the level 6utilizationdecreases. Ifthemeantokenrotationtime is lessthan

Cs

thenlevel

4traffic hasno effectonlevel 6utilization.

Toexaminethelevel 6utilization, themodelmustbe broken intothreecases.

1.

C=TR(4),

themeantokenrotationtimeis equaltothelevel 4targetrotation

time.

2.

CS<C<TR(4),

themeantokenrotationtimeislessthan the targetrotation

timeand greaterthanor equaltothe level 6tokenrotationtime.

3.

C<CS,

themeantokenrotationtime is lessthenthelevel 6tokenrotation

time.

2.5.4.2.2.1. Case 2a:

C=TR(4)

Whenthemeantokenrotationtime equalsthelevel 4targetrotationtime,the

meantokenrotationtimehasreacheditsmaximumvalue. The level 6utilization,under

these circumstances, is dependentuponthelevel 4targetrotationtime. Themaximum

level 6utilizationwill still occur when allTVstations onthecontrol networkaretransmit

ting

level6 data forthereentirehigh prioritytokenholdtimes,butthemeantokenrota

tion timewillbegreaterthanCs.

Mathematically

stated,

[Ts

+Tm(6)]N H4"

TR(4)

'
(38)

where

H4

isthemaximumlevel 6utilization possiblewhenthemeantokenrotation is

equalto thelevel 4targetrotationtime,andbothare greaterthan Cs.

Ifthemaximumamount oflevel 6 data hasnotbeen transmitted,thenthelevel 6

utilizationisequalto the offeredloadofpriority level 6. The level6utilizationcan now

bestated as

follows,

U6=MIn(g'6,

H^.

A formalprooffollows.

Theorem:

ifC=

TR(4)

and

7>(0)

<

7>(2)

<

Cs

<

TR(4)

then

U6

=MIN

[g'6,

Ha

J

Proof:

1.

C=r*(4)

given

2.

U6

=MIN

[g'6,

[rj+7g(6)]Af

)

definitionof

U6

3

if(J,6

< [r,+7,(6)> ^

^

= G/

from

(2)

4. l/G/>lZ>^^nrj6=

lZl^

from

(2)

5

f76

= [r^r-(6)^ substitute

(1)

into

(4)

6.

#4

=

U6

7.

C/6

=MIN

[g'6,

Ha

]

from

(3), (5),

and

(6)

2.5.4.2.2.2. Case 2b:

C,<C<r*(4)

Whenthemeantokenrotationtimefalls betweenthelevel 4targetrotationtime

andthelevel 6tokenrotationtime,the totalutilizationofthesystemcannolonger be

represented

by

PA

eventhoughitstill consists ofonly level 4 andlevel 6traffic. The
(39)

maximumlevel 6utilizationmust stillberepresentedintermsofthelevel4trafficload.

Inotherwords, the level 6utilizationisthe fractionofthepeakutilizationthatisnotdi

minished

by

level4traffic. Sincenetworktrafficismadeupofonly level 4andlevel6

transmissions, 1

-G'A

representsthefractionofutilizationthatisnotmadeupoflevel 4

traffic.

Therefore,

u6=min[g'6,p6(\-g'S]

representsthelevel6utilization forthis specificcircumstance.

A formalproof ofthelevel 6utilizationfollows.

Theorem:

if

CS<C<

TR(4)

and

TR(0)

<

TR(2)

<CS<

TR(4)

then

u6=min[g'6,

P6(\-G'S]

Proof

1. ifC<TR(4)thenUA=

G'4

2.

U6=MIn(g'6,

lT'+Tf)lN)

definitionof

U6

3 < It1+tW fhen

Us

= G/

from

(1)

4 >

Iz+T^

then

Ue

=

rr^r^

from(1)

5. U=

Ua

+

U6

6 u=Gi

+

ILH^n

substitute

(1)

and

(4)

into

(5)

n jj z definitionofutilization

c

8.

definitionof minimum

tokenrotationtime j_

Qi

_

c^Tt+rm(6)lN

substitute

(6)

into

(7)

9. C0=NT,

10.

l-G'4=lTs+Tm-)+T'lN substitute

(9)

into

(8)

Nicholas W. Oddo

c

(40)

11.

CS

=

(TS

+

Tm(6)

+T,)N definitionof

C,

12. 1

-G'4

=

-|-substitute(1

1)

into

(10)

13.

P&

=

'n

definitionof

P.

6

14-

P6

=

^3:

substitute

(12)

into

(13)

C(lG^) '

15.

P6(\-G'A)

=

^-simplify

(14)

16.

P6(l-Gf4)

=

U6

from

(4), (9), (11),

and

(14)

17.

U6=MIN\G'6,

P6(l-G4'))

from

(3)

and

(16)

2.5.4.2.2.3. Case2c:

C<CS

Wheneverthemeantokenrotationtimeis lessthanthe level6maximumtoken

rotationtime,theentirelevel6 offeredloadmaybe handled.

Therefore,

U6

=G'6.

2.5.4.2.2.4. Level6 Utilization Model for Case 2

Theentirelevel6utilizationmodelwhenthe level6maximumtokenrotation

timeisthan thelevel 0andlevel 2targetrotationtimes,andlessthanthelevel 4target

rotationtime,cannowbe stated completely.

ifC=

TR(4)

then

U6

=MIN

(g'6,

Ha]

else ifCs

<C<TR(4)

then

U6

=MIN

(g'6,

P6(\~

G'6)\

elseifC<

Cs

then

U6

=

G'6

Thethreeconditionsfor level 6utilizationmayalsobeexpressedintermsof uti

lizations,

insteadoftokenrotationtimes. Thisis done foreach ofthe threeconditionals

andtherevisedmodelispresentedbelow.

(41)

Whenthemeantokenrotationtimeequalsthelevel4targetrotationtime,theof

fered loadoflevel 4mustbe greaterthan theutilization oflevel 4.

Also,

thetotalutiliza

tionofthesystem mustbeequaltoP4. Thisis notto saythat theentire utilizationis

madeupoflevel4traffic. Infact it isnot,itismadeupoflevel 4andlevel6traffic

only. Theutilizations ofpriority level 0andlevel2are0becausethemeantokenrota

tion timeisgreaterthan thererespectivetargetrotationtimes.

Therefore,

sayingthatthe

level4offeredloadandthelevel6utilizationis greaterthan thelevel 4peak utilization

isequivalentto statingthat themeantokenrotationtimeequalsthatlevel 4targetrota

tiontime.

\g'4

+MIN

[g'6,

H^PA~\=

\Cs

=Cand

TR(0)

<

TR(2)

<CS<

TR(4)~]

Ifthelevel 4offeredloadandlevel 6utilizationarenotgreat enoughtoexceed

thepeakutilization, thenperhapsthelevel 4andlevel 6trafficaregreaterthanthelevel

6maximumtokenrotationtime. Thiswould meanthat thelevel 4 andlevel 6offered

loadsexceededthelevel 6peak utilization. More

formally

stated,

\_G'4

+

G'6

P<~]

=

[CS<C< TR(4)

and

TR(0)

<

TR(2)

<CS<7^(4)].

Lastly,

if bothoftheprevious conditions cannotbe satisfied,thenthemeantoken

rotationtimemustbelessthanCs. Theentiremodelmaynowberestated as follows.

if\Gf4

+MIN

[g'6,

H4

)

/%

]

then

u6=min[g'6,Ha^

else

if

\_G'4

+

G'6>P6']

then

u6=min(g'6,p6(i-g4)}

else

U6

=

G'6

(42)

2.5.4.2.3. Case3:

TR(0)

<

Cs

<

TR(2)

<

TR(4)

This sectiondiscussesthecharacteristicsoflevel 6utilization when

Cs

islessthan

thetargetrotationtimeforlevel

2,

and greaterthan the targetrotationtimeoflevel 0.

Theargument usedintheprecedingsection,when

Cs

fellbetweenthetargetrotation

timesoflevel 4 andlevel 2 , canbeextendedforthissituation.

Intheprecedingsection, to

fully

analyzethelevel6utilization, theproblemhad

tobe broken down intothree caseswith respectto themeantokenrotationtime. This

approachcanbe followedwhen

Cs

falls betweenthe targetrotationtimesoflevel 2and

level0 as well. Theequationsfor level6utilizationderivedforthepreviouscasewill

alsoapply

here,

since a portion ofthisderivationoverlapsthepreviousderivation.

Whenthe level 6tokenrotationtimefallsbetweenthelevel 2andlevel 0target

rotationtimes,thederivations forthelevel 6utilization modelmay bebrokeninto five

distinctcasesbasedonthemeantokenrotationtime. Thesecasesare

1. C=

TR(4)

,themeantokenrotationtimeequalsthe level 4targetrotation

time.

2.

7^(2)

<C<

77?(4),

themeantokenrotationtimeis lessthanthe level 4

targetrotationtimeand greaterthanthe level 2targetrotationtime.

3. C=

TR(2)

,themeantokenrotationtime equalsthelevel 2targetrotation time.

4. CS<C<

TR(2)

,themeantokenrotationtimeis lessthanthe level 2target

rotationtimeand greaterthanor equalto the level 6tokenrotationtime.

5. C<

Cs

,themeantokenrotationtimeislessthanthe level6targetrotation

time.

Noticethatcase 1 andcase5 forthislevel 6utilizationanalysis areidenticalto

the level 6utilization analysiswhenthe level 6tokenrotationtime fell betweenthe level

(43)

4andlevel2targetrotationtimes. Thismeansthattwoofthe fivecases outlined above

havealreadybeensolved. Themodelsforthese twocaseswillberepeatedforcomplete

ness.

However,

forafullunderstandingofthe derivationtheprevious sections shouldbe

examined.

2.5.4.2.3.1. Case3a:

C=TR(4)

Thelevel 6utilization underthesecircumstancesis equivalentto thederivation

done insection 1.5.4.2.2.1. Thiscanbe statedsincethe

following

threecriteria arethe

samefor bothcases.

1. Themeantokenrotationtime isequaltothe level4targetrotationtime.

2. Themeantokenrotationtimeisgreaterthan Cs.

3. The level 4targetrotationtime isgreaterthanthelevel0andlevel 2target

rotationtimes.

Itis irrelevantthat thelevel 6maximumtokenrotationtime falls betweenthelevel 0and

level 2targetrotationtimes,insteadof the level 2andlevel 4targetrotationtimes. The

resultispresentedhereforcompleteness.

U6=MIN(G/6,

774)

2.5.4.2.3.2. Case 3b:

TR(2)

<C<

TR(4)

Whenthemeantokenrotationtime isgreaterthan thelevel 2andlevel 0target

rotationtimes,theutilization fortheseprioritylevelswillbe 0.

Therefore,

themeanto

kenrotationtimeis caused

by

networktraffic fromthe level4andlevel6 prioritylevels only. Notethatthenetworktrafficmust consist oftransmissionsfrombothpriority
(44)

classes,orjust from level 4. Level 6trafficalone cannotincreasethemeantokenrota

tiontimeabovethelevel2targetrotationtime.

Whentheofferedloadofpriority level6 islessthanthemaximumallowable

bandwidth,

then the level 6utilizationisequalto thelevel 6offeredload.

However,

whenlevel 6 transmissionsreachtheirmaximum,thatistosay,whenallstationsonthe

network are

transmitting

fortheirfull highprioritytokenholdtime,the level 6utilization

maydwindle duetoan

increasing

loadoflevel 4transmissions.

Therefore,

itcanbe said

thatthelevel 6utilization underthesecircumstancesisafractionofthelevel6peak uti

lization.

More specifically,

U6

=P6(l-G'4).

Noticethatasthelevel4offeredloadreachesthepoint whereit becomesthe total

utilizationofthenetwork,the level 6utilizationdropsto 0. Thishastobethecase since

level 6transmissionsareguaranteed at eachnodeforthehigh prioritytokenholdtime.

Alsonotethat asthelevel 4offeredload dropsto

0,

the level 6utilizationapproachesthe

peak utilization. The level6utilizationwillnever reachitspeakvalue,

however,

since a

level 4offered loadmustbepresenttoincreasethemeantokenrotationtimeabovethe

level 2targetrotationtime.

The level 6utilizationcan nowbepresentedas

follows,

u6=min(g/6,

/>6(1-C?i)).

Noticethatthisexpressionfor level 6utilizationis identicaltotheexpressionfor level 6

utilizationderivedinsection 1.5.4.2.2.2. Forthat

derivation,

themeantokenrotation

timewas greaterthanor equalto

Cs,

andlessthan thelevel 4targetrotationtime. The

sameistrueforthis

derivation,

exceptthatthemeantokenrotationtime can never equal
(45)

C,. The factthat

C,

was greaterthan thelevel2targetrotationforthe derivation insec

tion

1.5.4.2.2.2,

andlessthan the level2targetrotationtime forthisderivationis irrele

vant. The

derivation

is

done

onthe

foundation

that themeantokenrotationtimeis less

than thelevel4targetrotation

time,

and greaterthanCs. Theprooffromsection

1.5.4.2.2.2 isthereforeidentical forthisderivationand isnot repeated.

2.5.4.2.3.3. Case 3c:

C=TR(2)

Thederivationofthelevel6utilizationwhenthemeantokenrotationtimeequals

the level 2targetrotationtimeis verysimilartothederivationoflevel 6utilization when

themeantokenrotationtimeequaledthelevel 4targetrotationtime. This derivationwas

done insection 1.5.4.2.2.1.

Whenthemeantokenrotationtimeequalsthe level 2targetrotationtime,the

meantokenrotationtimehasreacheditsmaximum value. Thelevel6utilization,under

these circumstances, isdependentuponthe level 2targetrotationtime. Themaximum

level 6utilization will stilloccurwhenallNstationsonthe control networkaretransmit

ting

level 6 data forthereentirehigh prioritytokenhold times,butthemeantokenrota

tion timewillbegreaterthanC3.

Mathematically

stated,

lTs

+Tm(6)^N 2"

TR(2)

'

where

H2

isthemaximumlevel 6utilization possible whenthemeantokenrotationis

equaltothe level 2targetrotationtime, andbotharegreaterthanCs.

Ifthemaximum amountoflevel 6 data hasnotbeentransmitted,then thelevel 6

utilizationisequalto theofferedloadofpriority level 6. Thelevel 6utilization can now

(46)

be stated as

follows,

u6=min(g'6,h2]

Theproofforthisexpression oflevel 6utilization isidenticalto theproofforthecaseof

themeantokenrotationtimeequalingthe level4targetrotationtime. The only differ

ence isthat thelevel2targetrotationtime,

TR(2),

shouldbesubstitutedforthelevel 4

targetrotation

time,

TR(4),

throughout theproof.

2.5.4.2.3.4. Case 3d: CS<C<

TR(2)

Whenthemeantokenrotationtimefalls betweenthelevel 2targetrotationtime

andthelevel6tokenrotationtime,thetotalutilization ofthesystem canno longer be

represented

by

P2. Forthis case,thelevel 6 utilizationisthefractionofthelevel 6peak

utilizationthat isnotdiminished

by

level 4 andlevel 2traffic. Sincenetworktrafficis

madeup level

2,

level 4andlevel 6 transmissions, 7*6(1

G2

G4)

representsthe frac

tionoflevel6utilizationthatisnotmadeupoflevel 2 orlevel4traffic.

Therefore,

U6

=MIN

[g'6,

P6(\

-G'2-G'4)j

representsthelevel 6utilizationforthisspecificcircumstance.

Theproofforthisexpressionoflevel 6utilizationisidenticalto theproofinsec

tion 1.5.4.2.2.2. The only differenceisthatthetotalutilizationisequaltoth

References

Related documents

High-frequency sampling campaigns and analyses were conducted in this study to investigate temporal variations of river water chemistry and the impacts of climate variability on CO

[r]

All the figures and tables should be labeled (Times New Roman 11) and included in list of figures and list of tables respectively.

Quality: We measure quality (Q in our formal model) by observing the average number of citations received by a scientist for all the papers he or she published in a given

While the duration dependence of ice cream purchases implied by Figures 1 and 2 can be consistent with variety-seeking behaviour induced by a diminishing marginal utility, it can

SVM classifiers were trained to discriminate bacterial protective antigens (BPAs) and non-BPAs in BPAD200+N+B+AF and receiver operator characteristic (ROC) curves generated from

hypergeometric functions by employing the generalized Gauss’s second summation the- orem, Bailey’s summation theorem and Kummer’s summation theorem obtained earlier by Lavoie,

1 Spatial planning of public charging points using multi-dimensional analysis of early adopters of electric vehicles for a city region..