From cosmogol-bounces@ietf.org Mon Feb 05 15:51:23 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HEAnv-0006dD-55; Mon, 05 Feb 2007 15:51:11 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HEAnu-0006d6-Hn
	for cosmogol@ietf.org; Mon, 05 Feb 2007 15:51:10 -0500
Received: from bortzmeyer.netaktiv.com ([80.67.170.53]
	helo=mail.bortzmeyer.org) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1HEAQw-0001ZQ-Fk
	for cosmogol@ietf.org; Mon, 05 Feb 2007 15:27:27 -0500
Received: by mail.bortzmeyer.org (Postfix, from userid 10)
	id C0321240817; Mon,  5 Feb 2007 21:27:08 +0100 (CET)
Received: by mail.sources.org (Postfix, from userid 1000)
	id 3E3B112354; Mon,  5 Feb 2007 21:27:03 +0100 (CET)
Date: Mon, 5 Feb 2007 21:27:03 +0100
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: cosmogol@ietf.org
Message-ID: <20070205202703.GB1731@sources.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Transport: UUCP rules
X-Operating-System: Debian GNU/Linux 3.1
User-Agent: Mutt/1.5.9i
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 08e48e05374109708c00c6208b534009
Subject: BoF session in Prague "Formal State Machines" 
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

The AD just approved the BoF session in IETF 68 in Prague:

"Formal State Machines"

http://www1.tools.ietf.org/bof/trac/wiki

See you in Prague to discuss requirments, specifications, and Unicode
characters in identifiers :-)

_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Tue Feb 06 04:09:23 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HEMKE-0000EN-Qq; Tue, 06 Feb 2007 04:09:18 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HEMKD-0000EH-KB
	for cosmogol@ietf.org; Tue, 06 Feb 2007 04:09:17 -0500
Received: from mail.gmx.net ([213.165.64.20])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HEMKC-0001eH-3d
	for cosmogol@ietf.org; Tue, 06 Feb 2007 04:09:17 -0500
Received: (qmail invoked by alias); 06 Feb 2007 09:09:13 -0000
Received: from socks1.netz.sbs.de (EHLO [192.35.17.26]) [192.35.17.26]
	by mail.gmx.net (mp038) with SMTP; 06 Feb 2007 10:09:13 +0100
X-Authenticated: #29516787
Message-ID: <45C845B5.7050201@gmx.net>
Date: Tue, 06 Feb 2007 10:09:09 +0100
From: Hannes Tschofenig <Hannes.Tschofenig@gmx.net>
User-Agent: Thunderbird 2.0b2 (Windows/20070116)
MIME-Version: 1.0
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
References: <20070205202703.GB1731@sources.org>
In-Reply-To: <20070205202703.GB1731@sources.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

Hi Stephane,

I worked on a couple of documents that contain a state machine. For 
example,

QoS NSLP State Machine
http://tools.ietf.org/wg/nsis/draft-fu-nsis-qos-nslp-statemachine-05.txt
http://www.ietf.org/internet-drafts/draft-fu-nsis-qos-nslp-statemachine-05.pdf

NATFW NSLP State Machine
http://tools.ietf.org/wg/nsis/draft-werner-nsis-natfw-nslp-statemachine-03.txt

GIST State Machine
http://tools.ietf.org/id/draft-ietf-nsis-ntlp-statemachine-02.txt

I worked on these documents to make it easier to quickly produce a 
compliant implementation.
I have received good feedback from implementers telling me that it 
helped them a lot.

We tried to use the language introduced by the EAP state machine: 
http://tools.ietf.org/rfc/rfc4137.txt

What is difficult with the work is the lack of tool support to produce 
the PDF version of the document (or a text version from the PDF).

Why should I re-write my documents to comply to a more formal state 
machine description?

Ciao
Hannes

Stephane Bortzmeyer wrote:
> The AD just approved the BoF session in IETF 68 in Prague:
>
> "Formal State Machines"
>
> http://www1.tools.ietf.org/bof/trac/wiki
>
> See you in Prague to discuss requirments, specifications, and Unicode
> characters in identifiers :-)
>
> _______________________________________________
> Cosmogol mailing list
> Cosmogol@ietf.org
> https://www1.ietf.org/mailman/listinfo/cosmogol
>   


_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Tue Feb 06 16:31:39 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HEXuU-0002Zt-M6; Tue, 06 Feb 2007 16:31:30 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HEXuT-0002Wa-RL
	for cosmogol@ietf.org; Tue, 06 Feb 2007 16:31:29 -0500
Received: from virtual3.netaktiv.com ([80.67.170.53] helo=mail.bortzmeyer.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HEXqV-0006AX-9U
	for cosmogol@ietf.org; Tue, 06 Feb 2007 16:27:26 -0500
Received: by mail.bortzmeyer.org (Postfix, from userid 10)
	id D4449240813; Tue,  6 Feb 2007 22:27:12 +0100 (CET)
Received: by mail.sources.org (Postfix, from userid 1000)
	id 079EC12695; Tue,  6 Feb 2007 22:24:38 +0100 (CET)
Date: Tue, 6 Feb 2007 22:24:38 +0100
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Hannes Tschofenig <Hannes.Tschofenig@gmx.net>
Message-ID: <20070206212438.GA23042@sources.org>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <45C845B5.7050201@gmx.net>
X-Transport: UUCP rules
X-Operating-System: Debian GNU/Linux 3.1
User-Agent: Mutt/1.5.9i
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 08170828343bcf1325e4a0fb4584481c
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

On Tue, Feb 06, 2007 at 10:09:09AM +0100,
 Hannes Tschofenig <Hannes.Tschofenig@gmx.net> wrote 
 a message of 53 lines which said:

> Why should I re-write my documents to comply to a more formal state
> machine description?

Figures (wether in ASCII-art, in Unicode-art, in SVG, in GIF or
whatever) and informal tables are impossible to analyze automatically
(for instance to check if they are deterministic, or to translate them
automatically to software like Ragel). That's the main problem I have
with informal descriptions: you cannot process them by software and
you have to check them manually.

Being parsable by a program is the main aim of the future language.

_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Wed Feb 07 15:46:48 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HEtgd-0008Jh-Ro; Wed, 07 Feb 2007 15:46:39 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HEtgc-0008Jb-Qy
	for cosmogol@ietf.org; Wed, 07 Feb 2007 15:46:38 -0500
Received: from mail.gmx.net ([213.165.64.20])
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1HEtgb-00031E-Bv
	for cosmogol@ietf.org; Wed, 07 Feb 2007 15:46:38 -0500
Received: (qmail invoked by alias); 07 Feb 2007 20:46:33 -0000
X-Provags-ID: V01U2FsdGVkX1+YJgBLXL2Ypna1NCBuArAvFvp6OPXXGz4WNuS2XD
	H8Jw==
Message-ID: <45CA3AA8.3000609@gmx.net>
Date: Wed, 07 Feb 2007 21:46:32 +0100
From: Hannes Tschofenig <Hannes.Tschofenig@gmx.net>
User-Agent: Thunderbird 2.0b2 (Windows/20070116)
MIME-Version: 1.0
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
	<20070206212438.GA23042@sources.org>
In-Reply-To: <20070206212438.GA23042@sources.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f60d0f7806b0c40781eee6b9cd0b2135
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

Hi Stephane,

I used formal languages for the verification of security protocols. I 
gave a presentation about the AVISPA project at IETF#59  (see 
http://www.tschofenig.com/avispa/).

I also applied them to some more recent protocols as well, including HIP and
http://www.tschofenig.com/svn/draft-vidya-mipshop-handover-keys-aaa/draft-vidya-mipshop-handover-keys-aaa-00.txt
(see Appendix E).

There are many nice things out there. The question is only: For whom is 
it helpful and how does it help them?

The above-mentioned formal method tool for verifying security protocols 
might help the protocol designers and people from a formal method 
community when reading IETF documents. The latter group is pretty small 
in size and regarding the former one I noticed that it only helps to the 
extend that they represent the protocol in a different way and could 
therefore discover some inconsistency in their document. The formal 
verification part is for most protocols useless since real problems are 
not discovered.

Here is my conclusion: it looks nice on paper but the tradeoff (effort 
to write compared to the value one gets) lead people to not use it.

So, coming back to the formal state machine language.

Have tried to apply your favorite language to a more complex, real-world 
protocol?
Have you been noticing real problems in the way how existing protocol 
specifications are written?
Why do you expect people to use it?
Have you spoken with implementers/protocol designers to determine 
whether you solve one of their problems?
Why do you think that the benefit is bigger than the effort?

In any case, I think that it is a useful thing to talk about this stuff 
and to give some guidance. It depends on how far you would like to go. 
If the idea is to give some guidance on how state machines could be 
described in IETF documents then that would be fine. If every working 
group suddenly has to write state machine documents using the developed 
language then some folks could get a bit nervous.

Ciao
Hannes

PS: My students have used  the following tools in past projects: the 
state machine compiler, available at http://smc.sourceforge.net, and for 
graphical representation they used 
http://www.research.att.com/sw/tools/graphviz/.

Stephane Bortzmeyer wrote:
 > On Tue, Feb 06, 2007 at 10:09:09AM +0100,
 >  Hannes Tschofenig <Hannes.Tschofenig@gmx.net> wrote
 >  a message of 53 lines which said:
 >
 >> Why should I re-write my documents to comply to a more formal state
 >> machine description?
 >
 > Figures (wether in ASCII-art, in Unicode-art, in SVG, in GIF or
 > whatever) and informal tables are impossible to analyze automatically
 > (for instance to check if they are deterministic, or to translate them
 > automatically to software like Ragel). That's the main problem I have
 > with informal descriptions: you cannot process them by software and
 > you have to check them manually.
 >
 > Being parsable by a program is the main aim of the future language.


_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Thu Feb 08 02:21:44 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HF3ax-0007X7-I2; Thu, 08 Feb 2007 02:21:27 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HF3aw-0007Wz-Gc
	for cosmogol@ietf.org; Thu, 08 Feb 2007 02:21:26 -0500
Received: from ind-iport-1.cisco.com ([64.104.129.195])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HF3at-0001VP-Ol
	for cosmogol@ietf.org; Thu, 08 Feb 2007 02:21:26 -0500
Received: from ind-dkim-1.cisco.com ([64.104.140.57])
	by ind-iport-1.cisco.com with ESMTP; 08 Feb 2007 12:18:37 -0800
X-IronPort-AV: i="4.13,299,1167638400"; 
	d="scan'208"; a="75241501:sNHT68797512"
Received: from hkg-core-1.cisco.com (hkg-core-1.cisco.com [64.104.123.94])
	by ind-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id l187LKcG030779; 
	Thu, 8 Feb 2007 12:51:20 +0530
Received: from xbh-hkg-412.apac.cisco.com (xbh-hkg-412.cisco.com
	[64.104.123.69])
	by hkg-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id l187LIU3009382; 
	Thu, 8 Feb 2007 15:21:19 +0800 (CST)
Received: from xfe-hkg-411.apac.cisco.com ([64.104.123.70]) by
	xbh-hkg-412.apac.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 8 Feb 2007 15:21:16 +0800
Received: from [10.0.0.96] ([10.70.230.36]) by xfe-hkg-411.apac.cisco.com with
	Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Feb 2007 15:21:16 +0800
In-Reply-To: <20070206212438.GA23042@sources.org>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
	<20070206212438.GA23042@sources.org>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <71C245A9-A53C-4E44-B944-55381FBFA8E7@cisco.com>
Content-Transfer-Encoding: 7bit
From: Fred Baker <fred@cisco.com>
Date: Thu, 8 Feb 2007 00:24:19 +0100
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 08 Feb 2007 07:21:17.0318 (UTC)
	FILETIME=[B9189A60:01C74B51]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=2232; t=1170919280;
	x=1171783280; c=relaxed/simple; s=inddkim1002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=fred@cisco.com;
	z=From:=20Fred=20Baker=20<fred@cisco.com>
	|Subject:=20Re=3A=20BoF=20session=20in=20Prague=20=22Formal=20State=20Mac
	hines=22 |Sender:=20;
	bh=Dy3dhMN5WQSnUlgzrAJZOeAJihxqRwas/2vpKnLcwCY=;
	b=flLXuILcBaBnzxVrsml2LtsuRFRf7dZ2yMaBLHejIej6hPcQnuLahxzA6DvpR5PYbdCLMfYc
	2PM401qC4jGRssSl7EnkdM6DZ8YdnQWNdkAKYQkgjfcKVkd3v34TjIAp;
Authentication-Results: ind-dkim-1; header.From=fred@cisco.com; dkim=pass (s
	ig from cisco.com/inddkim1002 verified; ); 
X-Spam-Score: 0.2 (/)
X-Scan-Signature: cab78e1e39c4b328567edb48482b6a69
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

Having written parsers for table-described state machines, I beg to  
differ. Table-described state machines can in fact be machine- 
readable if they are designed to be. It's just another way to write  
the language.

In fact, I'll argue the flip side; SDL and compiler-compiler  
languages like YACC often fail to describe every possible input in  
every possible state. Rather, they tend to say things like "the  
receipt of this input in any other state is an error and should be  
handled in <this> way" - where the action might be "ignore the  
input", "fail, discard all accumulated state, and revert to initial  
conditions", or something else.

What is required for any state machine definition to be complete is  
that every input is described in every state, and should the input  
arrive, the resulting actions, side effects, and new state must be  
unambiguously defined. What is necessary for that to be parseable is  
that the description be understandable by an appropriately-written  
program. Now, you might not *like* to write programs that recognize  
ascii-art cells and find in them things like input names, new state  
names, conditionals, actions, and side-effects. You might prefer  
token parsers like lex. But those are matters of preference, not  
possibility.

On Feb 6, 2007, at 10:24 PM, Stephane Bortzmeyer wrote:
> On Tue, Feb 06, 2007 at 10:09:09AM +0100,
>  Hannes Tschofenig <Hannes.Tschofenig@gmx.net> wrote
>  a message of 53 lines which said:
>
>> Why should I re-write my documents to comply to a more formal state
>> machine description?
>
> Figures (wether in ASCII-art, in Unicode-art, in SVG, in GIF or
> whatever) and informal tables are impossible to analyze automatically
> (for instance to check if they are deterministic, or to translate them
> automatically to software like Ragel). That's the main problem I have
> with informal descriptions: you cannot process them by software and
> you have to check them manually.
>
> Being parsable by a program is the main aim of the future language.
>
> _______________________________________________
> Cosmogol mailing list
> Cosmogol@ietf.org
> https://www1.ietf.org/mailman/listinfo/cosmogol

_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Thu Feb 08 14:22:15 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HFEqR-0002TR-AU; Thu, 08 Feb 2007 14:22:11 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HFEqQ-0002TM-Gm
	for cosmogol@ietf.org; Thu, 08 Feb 2007 14:22:10 -0500
Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HFEqO-0005C7-1t
	for cosmogol@ietf.org; Thu, 08 Feb 2007 14:22:10 -0500
Received: from list by ciao.gmane.org with local (Exim 4.43)
	id 1HFEpM-0000Dm-HU
	for cosmogol@ietf.org; Thu, 08 Feb 2007 20:21:04 +0100
Received: from d255075.dialin.hansenet.de ([80.171.255.75])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <cosmogol@ietf.org>; Thu, 08 Feb 2007 20:21:04 +0100
Received: from nobody by d255075.dialin.hansenet.de with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <cosmogol@ietf.org>; Thu, 08 Feb 2007 20:21:04 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: cosmogol@ietf.org
From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Thu, 08 Feb 2007 20:15:21 +0100
Organization: <URL:http://purl.net/xyzzy>
Lines: 48
Message-ID: <45CB76C9.5E@xyzzy.claranet.de>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
	<20070206212438.GA23042@sources.org>
	<71C245A9-A53C-4E44-B944-55381FBFA8E7@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: d255075.dialin.hansenet.de
X-Mailer: Mozilla 3.0 (OS/2; U)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

Fred Baker wrote:
 
> Having written parsers for table-described state machines, I beg to
> differ. Table-described state machines can in fact be machine-
> readable if they are designed to be. It's just another way to write
> the language.

Makes sense.  But it would be nice to have a common language for such
simple cases, intuitively readable (without manual), and at the same 
time working as input for tools (validators and/or transformations
into other formats).

For something that's complex enough to _need_ SDL putting it into a
plain text 69-columns format is most probably anyway hopeless. 

Any proposal has its own limitations, but that's no reason to offer
no format suited for the publication in RFCs at all.  

> you might not *like* to write programs that recognize ascii-art
> cells and find in them things like input names, new state names,
> conditionals, actions, and side-effects.

Maybe I would like it if a common format using ascii-art tables is
defined.  I won't like it if I have to tweak that program depending
on peculiar features of any individual RFC using this format.

> You might prefer token parsers like lex. But those are matters of
> preference, not possibility.

If the matter of preference starts with "you have perl / xerxes /
..." I'd say "no, not for the O/S on my box".  

Hannes Tschofenig wrote in another article:

| If every working group suddenly has to write state machine 
| documents using the developed language then some folks could
| get a bit nervous.

IMO that can't be the goal, you're also not forced to use ABNF in
cases where it's clearly unsuited.  But if you use some form of
"BNF" please don't roll your own like the horrorshow in RFC 2068,
and stick to RFC 4234 with all minor warts it still has.  Nobody
is forced to use <CHAR>, <CTL>, or the dangerous <LWSP> with its
"lines containing only trailing white space" vs. "empty lines".

Frank




_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Thu Feb 08 15:47:35 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HFGB1-0008EY-Jq; Thu, 08 Feb 2007 15:47:31 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HFGB1-0008DW-A7
	for cosmogol@ietf.org; Thu, 08 Feb 2007 15:47:31 -0500
Received: from bortzmeyer.netaktiv.com ([80.67.170.53]
	helo=mail.bortzmeyer.org) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1HFGAz-0000sf-0K
	for cosmogol@ietf.org; Thu, 08 Feb 2007 15:47:31 -0500
Received: by mail.bortzmeyer.org (Postfix, from userid 10)
	id 006B024080E; Thu,  8 Feb 2007 21:47:07 +0100 (CET)
Received: by mail.sources.org (Postfix, from userid 1000)
	id 615C0135FF; Thu,  8 Feb 2007 21:45:27 +0100 (CET)
Date: Thu, 8 Feb 2007 21:45:27 +0100
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Fred Baker <fred@cisco.com>
Message-ID: <20070208204527.GA13732@sources.org>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
	<20070206212438.GA23042@sources.org>
	<71C245A9-A53C-4E44-B944-55381FBFA8E7@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <71C245A9-A53C-4E44-B944-55381FBFA8E7@cisco.com>
X-Transport: UUCP rules
X-Operating-System: Debian GNU/Linux 3.1
User-Agent: Mutt/1.5.9i
X-Spam-Score: 0.1 (/)
X-Scan-Signature: b19722fc8d3865b147c75ae2495625f2
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

On Thu, Feb 08, 2007 at 12:24:19AM +0100,
 Fred Baker <fred@cisco.com> wrote 
 a message of 50 lines which said:

> Table-described state machines can in fact be machine- readable if
> they are designed to be.

Nobody ever said the opposite. Cosmogol is very close from a
table-described state machine, by the way, although the syntax is very
different from a typical table but a table, or a Comogol description
are both just a list of tuples (current-state, transition,
next-state).

> Now, you might not *like* to write programs that recognize ascii-art
> cells and find in them things like input names, new state names,
> conditionals, actions, and side-effects.

Indeed. I challenge you to write a parser for the state machines of RFC
4006 :-) specially with the RFC headers and footers.

We certainly could imagine a more table-like formal syntax with
delimiters like:

OPEN   | Close it    | CLOSED
CLOSED | Open it     | OPEN
OPEN   | Blow it out"| GONE

(or TeX's & sign)

or with fixed-size cells like RFC 4006 attempts to do.

Do you find it better?


_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Thu Feb 08 22:55:22 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HFMqz-0004e2-RE; Thu, 08 Feb 2007 22:55:17 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HFMqy-0004dr-7A
	for cosmogol@ietf.org; Thu, 08 Feb 2007 22:55:16 -0500
Received: from sj-iport-5.cisco.com ([171.68.10.87])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HFMqr-0001il-Oi
	for cosmogol@ietf.org; Thu, 08 Feb 2007 22:55:16 -0500
Received: from sj-dkim-7.cisco.com ([171.68.10.88])
	by sj-iport-5.cisco.com with ESMTP; 08 Feb 2007 19:55:09 -0800
X-IronPort-AV: i="4.13,303,1167638400"; 
	d="scan'208"; a="387330577:sNHT51782492"
Received: from sj-core-4.cisco.com (sj-core-4.cisco.com [171.68.223.138])
	by sj-dkim-7.cisco.com (8.12.11/8.12.11) with ESMTP id l193t9gg001345; 
	Thu, 8 Feb 2007 19:55:09 -0800
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com
	[128.107.191.63])
	by sj-core-4.cisco.com (8.12.10/8.12.6) with ESMTP id l193ssnN020398;
	Thu, 8 Feb 2007 19:55:08 -0800 (PST)
Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by
	xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 8 Feb 2007 19:54:58 -0800
Received: from [10.0.0.96] ([10.21.99.69]) by xfe-sjc-212.amer.cisco.com with
	Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Feb 2007 19:54:57 -0800
In-Reply-To: <20070208204527.GA13732@sources.org>
References: <20070205202703.GB1731@sources.org> <45C845B5.7050201@gmx.net>
	<20070206212438.GA23042@sources.org>
	<71C245A9-A53C-4E44-B944-55381FBFA8E7@cisco.com>
	<20070208204527.GA13732@sources.org>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <DF0756AA-496C-4057-89AA-079308CFCC1C@cisco.com>
Content-Transfer-Encoding: 7bit
From: Fred Baker <fred@cisco.com>
Date: Fri, 9 Feb 2007 09:24:53 +0530
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 09 Feb 2007 03:54:57.0990 (UTC)
	FILETIME=[10DACE60:01C74BFE]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=4114; t=1170993309;
	x=1171857309; c=relaxed/simple; s=sjdkim7002;
	h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version;
	d=cisco.com; i=fred@cisco.com;
	z=From:=20Fred=20Baker=20<fred@cisco.com>
	|Subject:=20Re=3A=20BoF=20session=20in=20Prague=20=22Formal=20State=20Mac
	hines=22 |Sender:=20;
	bh=5ysS074cWYWxDmU9V8ehx1HrUV24Mjh8ZEvynzRRX80=;
	b=W1Fit9dGpiBmWMmdRkwaYi1Y+hBxg8OYabZkbdKdjI5uUeTAgr7w4NYQMgLHivn03HApyqVW
	di45RwYEz0iW3RNPp/w75bK/DBgpiWJQgYd5RxMRJMEG1XB+slOHLb1k;
Authentication-Results: sj-dkim-7; header.From=fred@cisco.com; dkim=pass (si
	g from cisco.com/sjdkim7002 verified; ); 
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f66b12316365a3fe519e75911daf28a8
Cc: cosmogol@ietf.org
Subject: Re: BoF session in Prague "Formal State Machines"
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

Personally, I have used a fairly convoluted series of steps in  
designing state machines for various things; I have done it because I  
found the results useful. It uses a combination of a compiler- 
compiler language and a table-driven state machine.

Let's take an intentionally complex example: TCP. A TCP session can  
be described as starting from and ending in the initial state of "no  
connection". From the initiator's perspective, there is a sequence  
(be gentle on me, I'm doing this from memory while waiting for a  
meeting to start)

	initiate:
		user-open {send SYN, start dead timer, start retransmit timer}
		[retransmit-timer {send SYN, restart retransmit timer}]*
		( dead-timer {FAIL} | network-SYN-ACK {send empty data segment,  
restart dead-timer, restart retransmit timer )

the receiver has the opposite sequence starting with the receipt of a  
SYN segment from the network and ending with either the dead-timer or  
receipt of a subsequent segment.

Constructing these rules and running them through YACC with the  
correct set of options gets me a state machine that is quite a bit  
more complex than the one in RFC 793 but in fact handles all the  
issues that a TCP implementation faces. The one change one makes to  
that state machine is changing reduction rules to jumps to the state  
that the reduction rule would place you in.

The problem with it is statements like "{FAIL}". The constructed  
state machine tells one all the necessary states and all of the  
correct state transitions; it doesn't tell much about the error  
cases. For this, I wind up transcribing the YACC-produced state  
machine into a state table and filling in all of the error cases.

I'm about to make a statement that, while it is true, will sound  
preposterous. I assure you that it is true. In 1983, working at  
Control Data, I designed an XNS SPP implementation that used what  
today we call VJ congestion avoidance procedures. I spent a lot of  
time getting the state machine correct. I then constructed a set of  
'sed' processes (we were running unix v6 on a PDP 11/34) that did  
text edits to convert my state machine into the high level code for  
the protocol, and wrote a "language" of supporting routines; the  
counterpart to "send SYN" was, for example, a call to a routine that  
constructed a control packet to be sent to the peer with a certain  
set of calling parameters.

Work that followed on that code related to optimization and setting  
parameters appropriately, but folks who later maintained it told me  
that they never found a protocol bug in it.

Identifying and ensuring the correct handling of all the error cases  
is as important, perhaps more so, as handling the normal-and-correct  
transitions. I can't say I have ever found a language that does that  
well, including and perhaps especially SDL.

On Feb 9, 2007, at 2:15 AM, Stephane Bortzmeyer wrote:

> On Thu, Feb 08, 2007 at 12:24:19AM +0100,
>  Fred Baker <fred@cisco.com> wrote
>  a message of 50 lines which said:
>
>> Table-described state machines can in fact be machine- readable if
>> they are designed to be.
>
> Nobody ever said the opposite. Cosmogol is very close from a
> table-described state machine, by the way, although the syntax is very
> different from a typical table but a table, or a Comogol description
> are both just a list of tuples (current-state, transition,
> next-state).
>
>> Now, you might not *like* to write programs that recognize ascii-art
>> cells and find in them things like input names, new state names,
>> conditionals, actions, and side-effects.
>
> Indeed. I challenge you to write a parser for the state machines of  
> RFC
> 4006 :-) specially with the RFC headers and footers.
>
> We certainly could imagine a more table-like formal syntax with
> delimiters like:
>
> OPEN   | Close it    | CLOSED
> CLOSED | Open it     | OPEN
> OPEN   | Blow it out"| GONE
>
> (or TeX's & sign)
>
> or with fixed-size cells like RFC 4006 attempts to do.
>
> Do you find it better?

_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



From cosmogol-bounces@ietf.org Thu Feb 22 09:52:55 2007
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
	by megatron.ietf.org with esmtp (Exim 4.43)
	id 1HKFJL-0001Os-7X; Thu, 22 Feb 2007 09:52:43 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.43) id 1HKFJJ-0001MU-Dj
	for cosmogol@ietf.org; Thu, 22 Feb 2007 09:52:41 -0500
Received: from mx2.nic.fr ([192.134.4.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HKFJI-0003G1-4e
	for cosmogol@ietf.org; Thu, 22 Feb 2007 09:52:41 -0500
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.nic.fr (Postfix) with ESMTP id 53A1826C2F9
	for <cosmogol@ietf.org>; Thu, 22 Feb 2007 15:52:14 +0100 (CET)
X-Virus-Scanned: by amavisd-new at mx2.nic.fr
Received: from relay2.nic.fr (relay2.nic.fr [192.134.4.163])
	by mx2.nic.fr (Postfix) with ESMTP id 8EBBE26C2E6
	for <cosmogol@ietf.org>; Thu, 22 Feb 2007 15:52:13 +0100 (CET)
Received: from bortzmeyer.nic.fr (batilda.nic.fr [192.134.4.69])
	by relay2.nic.fr (Postfix) with ESMTP id 896AA58ED73
	for <cosmogol@ietf.org>; Thu, 22 Feb 2007 15:52:13 +0100 (CET)
Date: Thu, 22 Feb 2007 15:52:13 +0100
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: cosmogol@ietf.org
Message-ID: <20070222145213.GA3622@nic.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Operating-System: Debian GNU/Linux 4.0
X-Kernel: Linux 2.6.17-2-686 i686
Organization: NIC France
X-URL: http://www.nic.fr/
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1ac7cc0a4cd376402b85bc1961a86ac2
Subject: A state-machine language in XML
X-BeenThere: cosmogol@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: DIscussion on state machine specification in IETF protocols
	<cosmogol.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/cosmogol>
List-Post: <mailto:cosmogol@ietf.org>
List-Help: <mailto:cosmogol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/cosmogol>,
	<mailto:cosmogol-request@ietf.org?subject=subscribe>
Errors-To: cosmogol-bounces@ietf.org

For those who would prefer a XML syntax:

http://www.w3.org/TR/2007/WD-scxml-20070221/

[Note the last item in the enumeration]

This document outlines State Chart XML (SCXML), which is a general-purpose event-based state machine language that can be used in many ways, including:

    * As a high-level dialog language controlling VoiceXML 3.0's encapsulated speech modules (voice form, voice picklist, etc.)
    * As a voice application metalanguage, where in addition to VoiceXML 3.0 functionality, it may also control database access and business logic modules.
    * As a multimodal control language in the MultiModal Interaction framework [W3C MMI], combining VoiceXML 3.0 dialogs with dialogs in other modalities including keyboard and mouse, ink, vision, haptics, etc. It may also control combined modalities such as lipreading (combined speech recognition and vision) speech input with keyboard as fallback, and multiple keyboards for multi-user editing.
    * As the state machine framework for a future version of CCXML.
    * As an extended call center managment language, combining CCXML call control functionality with computer-telephony integration for call centers that integrate telephone calls with computer screen pops, as well as other types of message exchange such as chats, instant messaging, etc.
    * As a general process control language in other contexts not involving speech processing.

_______________________________________________
Cosmogol mailing list
Cosmogol@ietf.org
https://www1.ietf.org/mailman/listinfo/cosmogol



