[MULTIMOBSEC-API] RE: update of api draft
Miika Komu <miika@iki.fi> Wed, 07 June 2006 17:00 UTC
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fo1OI-0000Ro-FW; Wed, 07 Jun 2006 13:00:22 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fo1OE-0000Lh-Lc for multimobsec-api@ietf.org; Wed, 07 Jun 2006 13:00:18 -0400
Received: from twilight.cs.hut.fi ([130.233.40.5]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Fo1OD-0003BN-4T for multimobsec-api@ietf.org; Wed, 07 Jun 2006 13:00:18 -0400
Received: by twilight.cs.hut.fi (Postfix, from userid 60001) id 4BAA33013; Wed, 7 Jun 2006 20:00:16 +0300 (EEST)
X-Spam-Checker-Version: SpamAssassin 3.1.2-niksula20060321 (2006-05-25) on twilight.cs.hut.fi
X-Spam-Level:
X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.2-niksula20060321
X-Spam-Niksula: No
Received: from kekkonen.cs.hut.fi (kekkonen.cs.hut.fi [130.233.41.50]) by twilight.cs.hut.fi (Postfix) with ESMTP id 5B8793002; Wed, 7 Jun 2006 20:00:15 +0300 (EEST)
Received: from localhost (mkomu@localhost) by kekkonen.cs.hut.fi (8.13.4+Sun/8.13.3/Submit) with ESMTP id k57H0EnT027535; Wed, 7 Jun 2006 20:00:14 +0300 (EEST)
X-Authentication-Warning: kekkonen.cs.hut.fi: mkomu owned process doing -bs
Date: Wed, 07 Jun 2006 20:00:14 +0300
From: Miika Komu <miika@iki.fi>
X-X-Sender: mkomu@kekkonen.cs.hut.fi
To: "Shinta Sugimoto (TO/NRJ)" <shinta.sugimoto@ericsson.com>
In-Reply-To: <DA38843C0546204C8CFBBB411311BB4A017214CF@ejpsymw100.eapac.ericsson.se>
Message-ID: <Pine.SOL.4.64.0606071907520.23483@kekkonen.cs.hut.fi>
References: <DA38843C0546204C8CFBBB411311BB4A017214CF@ejpsymw100.eapac.ericsson.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 68ba2b07ef271dba6ee42a93832cfa4c
Cc: multimobsec-api@ietf.org, "Kristian Slavov (JO/LMF)" <kristian.slavov@ericsson.com>
Subject: [MULTIMOBSEC-API] RE: update of api draft
X-BeenThere: multimobsec-api@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Multihoming, mobility and security APIs" <multimobsec-api.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/multimobsec-api>, <mailto:multimobsec-api-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/multimobsec-api>
List-Post: <mailto:multimobsec-api@ietf.org>
List-Help: <mailto:multimobsec-api-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/multimobsec-api>, <mailto:multimobsec-api-request@ietf.org?subject=subscribe>
Errors-To: multimobsec-api-bounces@ietf.org
On Tue, 6 Jun 2006, Shinta Sugimoto (TO/NRJ) wrote: >> I believe that the last "o" bullet should be a "*" bullet. > > This was intentionally separated. The former were dynamic feedback > while the latter is rather static feedback (timeout values). Yes, both > are common in a sense that they are feedbacks from app to the shim > layer. (Maybe you could mention on the dynamic vs. static difference in the text) >> I am leaning towards option b) but having the same SO_SHIM >> socket options for both protocols. However, I am open for ideas. > > I think SOL_SHIM would make sense because we are defining > "common" socket API for the generic multihoming shim layer. > The shim layer, by nature, should not be specific to any protocol > family. And as we say that its "common" for shim approach > which is based on ID/Locator separation (e.g. SHIM6, HIP), > shouldn't we define it in protocol independent way ? I believe the question boils down to unshared functionality. How to have options e.g. for mobility that are not applicable for shim6 but apply for HIP. Or public key related things that are shared with btns and hip, but do not apply to shim6. On the other hand, if SHIM6 and HIP cannot be used simultaneously for a single socket, there should not be a problem? So, maybe we can use a single shared SHIM contant for the time being and split it later if we discover some problems e.g. through implementation work. >> In addition, should it be IPPROTO_ rather than SOL_? I am >> little bit unsure on this but I think IPROTO_ is the right >> one, altough SOL _could be the alias like it is for e.g. >> IPPROTO_TCP and SOL_TCP. >> >> Opinions, please? > > As the generic concept of the "shim layer" should be protocol > independent, it seems reasonable to have prefix "SOL_" rather than > "IPPROTO_." In my understanding, "IPPROTO_" implies specific protocol, > but "SOL_" could followed by conceptual layer such as socket or shim > layer, IMHO. Does this make sense ? Regarding to the previous point, maybe IPPROTO_HIP and IPPROTO_SHIM6 could be used to separate uncommon features, if necessary. However, seems like most of the SOL_XX have a corresponding IPPROTO_XX variable. So, I am fine with experiment with the SOL_SHIM for the time being. >>> *2: TBD. >> >> I suggest standard "struct addrinfo" data structure, man >> getaddrinfo, or: >> >> ftp://ftp.rfc-editor.org/in-notes/rfc3493.txt > > Ok, I think sockaddrs_storage will do the job, as Kristian pointed out. Wasn't this supposed to be a list? > Hmm, I personally liked the figure that I borrowed from Steven's book > (UNIX Networking Programming, vol. 1) and see how the shim layer > fits into the existing model. But... The SOL_SOCKET was not illustarated correctly in the original figure. Also, having the packets flying around when talking about socket layering was a little bit misleading. >> +------------------------------------------+ >> | Application | socket >> +------------------------------------------+ >> >> +------------------------------------------+ >> | SOL_SOCKET | generic socket options >> +----------------------------------------- + >> >> +------------+------------+----------------+ >> | IPROTO_TCP | IPROTO_UDP | IPPROTO_ICMPV6 | transport layer sockets >> +------------+------------+----------------+ >> >> +---------------------+--------------------+ >> | IPPROTO_HIP | IPPROTO_SHIM6 | shim layer sockets >> +---------------------+--------------------+ >> >> +-------------------+----------------------+ >> | IPROTO_IP | IPPROTO_IPV6 | network layer sockets >> +-------------------+----------------------+ (SOL_SOCKET bar could also be reversed 90 degrees since it applies to all layers, but the current way may be easier to comprehend) >>> ISSUE: It may be controversial to introduce a new level >> SOL_SHIM for >>> shim specific socket options. IMHO, we should avoid defining shim >>> specific socket options for both in level IPPROTO_IP and >> IPPROTO_IPV6 >>> as it's redundant and seems to be architecturally wrong. >> >> I think you can just remove this issue. > > Given the discussion above, do you think SOL_SHIM is reasonable ? Sure let's go for that. > Agree that root privilege should override normal user settings. > And partially agree with that some case may be OK to simply updates > the last value. But there might be other cases too: > > request 1: set timeout value T for 2 hours > request 2: set timeout value T for 1.5 hours > request 3: set timeout value T for 3 hours > > Suppose if above requests are made sequentially by the entities > who have same privilege level (say all are root), then what should > the shim layer do ? What Marcelo suggested/mentioned in the > last discussion was to introduce a sort of heuristics to accommodate > these contradictory requests. One possible option would be to take > demanding request; in above example, timeout value is set to 1.5 > hours (request 3 is ignored since it's less demanding). But I think > appropriate strategy would dependent on socket options or timeout > values. As long as the heuristic are simple, that would be fine. > Will update the document and reflecting your comments. Thanks again for > the review! No problem and apologies for delay in the reply. Remember that Monday is cut-off DL, so please remember to submit the draft early :) I hope you or Marcelo could present the draft also in the HIP WG in the next IETF. -- Miika Komu miika@iki.fi http://www.iki.fi/miika/ _______________________________________________ MULTIMOBSEC-API mailing list MULTIMOBSEC-API@ietf.org https://www1.ietf.org/mailman/listinfo/multimobsec-api
- [MULTIMOBSEC-API] Re: update of api draft Miika Komu
- [MULTIMOBSEC-API] RE: update of api draft Shinta Sugimoto (TO/NRJ)
- [MULTIMOBSEC-API] RE: update of api draft Shinta Sugimoto (TO/NRJ)
- [MULTIMOBSEC-API] Re: update of api draft marcelo bagnulo braun
- [MULTIMOBSEC-API] RE: update of api draft Miika Komu
- [MULTIMOBSEC-API] Re: update of api draft Kristian Slavov
- [MULTIMOBSEC-API] Re: update of api draft Miika Komu
- [MULTIMOBSEC-API] Re: update of api draft marcelo bagnulo braun
- [MULTIMOBSEC-API] Re: update of api draft Kristian Slavov
- [MULTIMOBSEC-API] Re: update of api draft Kristian Slavov
- [MULTIMOBSEC-API] Re: update of api draft Miika Komu
- [MULTIMOBSEC-API] Re: update of api draft Miika Komu
- Re: [MULTIMOBSEC-API] RE: update of api draft Shinta Sugimoto
- Re: [MULTIMOBSEC-API] Re: update of api draft Shinta Sugimoto
- Re: [MULTIMOBSEC-API] RE: update of api draft Miika Komu