Re: [Nsis-imp] Assigned numbers for version GIMPS -06
Xiaoming Fu <fu@cs.uni-goettingen.de> Tue, 12 July 2005 10:34 UTC
Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.32)
id 1DsI5r-0005gC-NZ; Tue, 12 Jul 2005 06:34:27 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
by megatron.ietf.org with esmtp (Exim 4.32) id 1DsI5p-0005g7-Oh
for nsis-imp@megatron.ietf.org; Tue, 12 Jul 2005 06:34:25 -0400
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA09232
for <nsis-imp@ietf.org>; Tue, 12 Jul 2005 06:34:23 -0400 (EDT)
Received: from s2.ifi.informatik.uni-goettingen.de ([134.76.81.12])
by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1DsIY1-0006Cl-7a
for nsis-imp@ietf.org; Tue, 12 Jul 2005 07:03:33 -0400
Received: from [172.22.0.26] (tmg26.tmg.loc [::ffff:172.22.0.26])
(AUTH: LOGIN fu) by s2.ifi.informatik.uni-goettingen.de with esmtp;
Tue, 12 Jul 2005 12:34:23 +0200 id 000837A4.42D39CAF.00006BEB
Message-ID: <42D39C14.5020305@cs.uni-goettingen.de>
Date: Tue, 12 Jul 2005 12:31:48 +0200
From: Xiaoming Fu <fu@cs.uni-goettingen.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041217
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Lang, Christopher" <christopher.lang@roke.co.uk>
Subject: Re: [Nsis-imp] Assigned numbers for version GIMPS -06
References: <3F2E01E1D7B04F4EBEC92D3FA324D8803F683E@rsys004a>
In-Reply-To: <3F2E01E1D7B04F4EBEC92D3FA324D8803F683E@rsys004a>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 963faf56c3a5b6715f0b71b66181e01a
Content-Transfer-Encoding: 7bit
Cc: nsis-imp@ietf.org
X-BeenThere: nsis-imp@lists.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: List for implementation questions for NSIS protocols
<nsis-imp.lists.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nsis-imp>,
<mailto:nsis-imp-request@lists.ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/nsis-imp>
List-Post: <mailto:nsis-imp@lists.ietf.org>
List-Help: <mailto:nsis-imp-request@lists.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nsis-imp>,
<mailto:nsis-imp-request@lists.ietf.org?subject=subscribe>
Sender: nsis-imp-bounces@lists.ietf.org
Errors-To: nsis-imp-bounces@lists.ietf.org
Good, this reminds me of the programming error we had before. The
result was found to be that "Set IP_ROUTER_ALERT ON" in our Linux
2.6 must be used - which represents the case where RAO value is set
as 0. (This conforms to RFC2113 that only value 0 is allocated for
current use.) The appearence of a RAO (having value 0) + port number
identifies a message being a discovery.
Below is our code segment (for IPv4 and v6 in scoutd in our CASP
implementation):
/*****************************************************************
Set IP_ROUTER_ALERT option to "on" in given socket
returns 0 on success and -1 on failure
******************************************************************/
int r_alert_recv_on(int socket)
{
int on = TRUE;
/* insert ipv4/v6 differentiation here and set correctly */
if (ip_version_get() == 4)
{
if ((setsockopt(socket,SOL_IP,IP_ROUTER_ALERT,
(char *) &on,sizeof(on))) < 0)
return -1;
}
else
{
if ((setsockopt(socket,SOL_IPV6,IP_ROUTER_ALERT,
(char *) &on,sizeof(on))) < 0)
{
/*printf("Error: %i\n\n", errno);*/
return -1;
}
}
return 0;
}
Xiaoming
Lang, Christopher wrote:
> To be more specific:
>
> We have been using standard raw IP sockets with the IP_ROUTER_ALERT option to intercept packets. This method only works on Linux when the RAO value is 0 (see http://lxr.linux.no/source/net/ipv4/ip_options.c#L428). Also we only looked at IPv4 before we stuck to an RAO of 0. I don't know if raw IPv6 sockets work better or not.
>
> It appears, from comments from Thomas, that it is possible to use any RAO value if the packets are intercepted using iptables and libipq (using a standard unpatched kernel) :-)
>
> Chris Lang
>
>
>>-----Original Message-----
>>From: Lang, Christopher
>>Sent: 11 July 2005 10:46
>>To: 'Xiaoming Fu'; Hancock, Robert
>>Cc: nsis-imp@ietf.org
>>Subject: RE: [Nsis-imp] Assigned numbers for version GIMPS -06
>>
>>
>>Hi,
>>
>>We have been using Linux as a platform (with a 2.6.7 kernel).
>>Using non-zero RAO values we intially found that GIMPS
>>messages were not being picked up by intermediate nodes.
>>Inspection of the Kernel source revealed that the Linux
>>kernel ignores all RAO values except 0.
>>
>>There also does not appear to be support for picking out any
>>RAO packets in Windows.
>>
>>Which platform have you been using?
>>
>>Chris Lang
>>
>>
>>>-----Original Message-----
>>>From: Xiaoming Fu [mailto:fu@cs.uni-goettingen.de]
>>>Sent: 07 July 2005 17:47
>>>To: Hancock, Robert
>>>Cc: nsis-imp@ietf.org
>>>Subject: Re: [Nsis-imp] Assigned numbers for version GIMPS -06
>>>
>>>
>>>Hancock, Robert wrote:
>>>
>>>>>My point was, to rely on NLI TLV to determine the size of PI (by
>>>>>minus other fields) may be simple but not efficient for
>>
>>processing.
>>
>>>>from C.4.3 (the NLI format):
>>>>
>>
>>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>
>>>> | PI-Length | IP-TTL |IP-Ver |
>>
>>Reserved |
>>
>>>>
>>
>>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>
>>>> PI-Length = the byte length of the Peer-Identity field
>>>> (note that the Peer-Identity field itself is padded
>>>> to a whole number of words)
>>>>
>>>>i'm not sure what encoding the PI as a separate object
>>>
>>>would buy you
>>>
>>>>here.
>>>
>>>Sorry, I have missed this field.
>>>
>>>
>>>>but see for example the end of the second paragraph of
>>
>>3.1, "If the
>>
>>>>routing state does not exist, it may be possible for GIMPS
>>>
>>>to send a
>>>
>>>>message anyway, with the same encapsulation as used for a Query
>>>>message."
>>>
>>>Well, a GIMPS engine will always do whatever it is supposed to, as
>>>long as the task is part of the 'spec' and the implementation.
>>>
>>>
>>>>>>- the RAO value of 0 is not realistic and in principle would
>>>>>> be NSLPID dependent. but exactly what the values should be
>>>>>> is a question for John's draft - or something like it ;-)
>>>>>
>>>>>That's what I also guessed but there was a question of
>>
>>being "0". I
>>
>>>>>like John's statement "An NSLPID must be associated with a
>>>
>>>unique RAO
>>>
>>>>>value." Assuming a preliminary one for basic testing would
>>>
>>>be needed,
>>>
>>>>>possibly using e.g., "diagnostics/ping/traceroute" function.
>>>>
>>>>
>>>>yep - you'll find the same statement about NSLPIDs in the
>>>
>>>GIMPS draft,
>>>
>>>>btw. but the point is, we can't allocate a 'real' ourselves
>>>
>>>(without
>>>
>>>>going to IANA), so we just picked an easy one. Some IP
>>>
>>>stacks seem to
>>>
>>>>have a problem with values other than 0, in our experience.
>>>>
>>>
>>>Good to know of this. Any example platform?
>>>Xiaoming
>>>
>>>_______________________________________________
>>>NSIS-imp mailing list
>>>NSIS-imp@lists.ietf.org
>>>https://www1.ietf.org/mailman/listinfo/nsis-imp
>>>
>>
>>_______________________________________________
>>NSIS-imp mailing list
>>NSIS-imp@lists.ietf.org
>>https://www1.ietf.org/mailman/listinfo/nsis-imp
>>
>
>
> _______________________________________________
> NSIS-imp mailing list
> NSIS-imp@lists.ietf.org
> https://www1.ietf.org/mailman/listinfo/nsis-imp
_______________________________________________
NSIS-imp mailing list
NSIS-imp@lists.ietf.org
https://www1.ietf.org/mailman/listinfo/nsis-imp
- [Nsis-imp] Assigned numbers for version GIMPS -06 Hancock, Robert
- Re: [Nsis-imp] Assigned numbers for version GIMPS… Xiaoming Fu
- RE: [Nsis-imp] Assigned numbers for version GIMPS… Hancock, Robert
- Re: [Nsis-imp] Assigned numbers for version GIMPS… Xiaoming Fu
- RE: [Nsis-imp] Assigned numbers for version GIMPS… Hancock, Robert
- Re: [Nsis-imp] Assigned numbers for version GIMPS… Xiaoming Fu
- RE: [Nsis-imp] Assigned numbers for version GIMPS… Lang, Christopher
- RE: [Nsis-imp] Assigned numbers for version GIMPS… Lang, Christopher
- Re: [Nsis-imp] Assigned numbers for version GIMPS… Thomas Herzog
- Re: [Nsis-imp] Assigned numbers for version GIMPS… Xiaoming Fu