[Hipsec-rg] Re: Native HIP API questions in the hipsec-rg meeting
lars.eggert@netlab.nec.de (Lars Eggert) Mon, 16 August 2004 15:35 UTC
From: lars.eggert@netlab.nec.de (Lars Eggert)
Date: Mon Aug 16 15:35:01 2004
Subject: [Hipsec-rg] Re: Native HIP API questions in the hipsec-rg meeting
In-Reply-To: <Pine.GSO.4.58.0408161501130.1778@kekkonen.cs.hut.fi>
References: <6938661A6EDA8A4EA8D1419BCE46F24C045223EE@xch-nw-27.nw.nos.boeing.com>
<Pine.GSO.4.58.0408161501130.1778@kekkonen.cs.hut.fi>
Message-ID: <41211AD3.6080306@netlab.nec.de>
This is a cryptographically signed message in MIME format. --------------ms010206080801030809060509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Miika, Miika Komu wrote: >> >>Lars Eggert: Why are you binding to a src interface rather than >>address? >> >>Joe Touch: Binding to interfaces doesn't make sense. Interfaces have >>multiple IP addresses. A single host identity must be able to bind to a >>particular IP address, for policy reasons. > > Actually, the binding is done on the source endpoint descriptor. The > resolver communicates the descriptor to the HIP module and associates it > with a (given) interface. > > The main motivation for preferring IP addresses instead of interfaces is > related to the probable life time of the identifiers. IP addresses are > more unstable than interfaces, so interfaces were preferred. It is still > possible to use a specific IP address by specifying the protocol family > (and prefix) of the IP address to the resolver. > > (Btw, usually client apps do not bind explicitly and server applications > bind to INADDR_ANY or IN6ADDR_ANY, so this question may not be so > important.) > > Other opinions? Does anyone think that using interfaces instead of > IP-addresses is a better approach? Or a no-go? now I'm confused. The slides in San Diego showed a binding from HITs to interfaces. Yet this email talks about binding HITs to IP addresses. Which is it? Were the slides in San Diego wrong? The issue we raised in San Diego was that *nothing* in the current sockets API ever binds to interfaces. Everything binds to IP addresses. Even INADDR_ANY just means "any IP address." A HIP API would do well to follow this approach. The reason is that an outgoing interface is determined for each packet independently based on a routing lookup at transmission time. Which means that when the routing table changes, implementations don't have to go through all bindings to change their interfaces. Additionally, as Joe pointed out, interfaces can have aliases, and furthermore, those aliases may move from one interface to another during the lifetime of a connection. Binding to IP addresses instead of interfaces avoids all this update mess. > Another question to all: do you prefer "endpoint descriptors" instead > of HITs as the AID and why? Are there other kinds of endpoint descriptors than HITs? If yes, use the generic term. If no, just use "HITs" to be clear. (My two cents.) >>Andrew McGregor: Agree about not binding to an interface. You may want >>to bind to a HIT and use a setsockopt() to associate a locator with it. > > Resolver does the setsockopt() on the behalf of the user. The difference > is that the HI-to-IP mapping is "global" instead of socket specific. The > security issues are dealt by tagging the mapping with the UID and GID. I don't recall Andrew's exact question, and the above doesn't mean anything to me. Could you please elaborate? >>Tim Shepard: What if no DNS? Nervous about building in dependencies on >>DNS. >> >>Julien: use /etc/hosts. Can fall back to opportunistic mode too. > > The other alternative for DNS is the DHT, but it remains to be seen if we > ever get there. In the mean time, we should rely on DNS, as there are no > real alternatives currently available. > > Maybe the resolver should should support DHT queries too. With a new > resolver, this should not be a problem. I'll have to look at this topic > when I get my hands on a DHT DNS replacement implementation... See Tim's email. I agree with him that finding a way to use HIP without a deployed DNS would be very useful. How do you bootstrap communication if someone hands you just a HIT? Lars -- Lars Eggert NEC Network Laboratories --------------ms010206080801030809060509 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJpzCC Ay4wggKXoAMCAQICAwyFWjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwNjE3MDcyMjAzWhcNMDUwNjE3MDcyMjAz WjCBhDEPMA0GA1UEBBMGRWdnZXJ0MQ0wCwYDVQQqEwRMYXJzMRQw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Q0ECAwyFWjAJBgUr DgMCGgUAoIIBpzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0w NDA4MTYyMDM2MzVaMCMGCSqGSIb3DQEJBDEWBBQFAPwYB7HkHLV7UJwYk4LYU5O9azBSBgkq hkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIB QDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYT AlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNU aGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIDDIVaMHoGCyqGSIb3DQEJEAIL MWugaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg THRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwyF WjANBgkqhkiG9w0BAQEFAASCAQAV2sc2vjfDiI38wXebRpt/hjh4YgCXGDD19YZViFAVZijM +1Z0468Y06ugQmcAhpm7bbQIcyLWJV51sywUAY19s7c3Li5VrS2P059yzUEyaypAy+Fbsdt3 WGvTFiPpXQYpdVWkmyIG02wWdrFc1/gzFvJYHvFAA43QkP5WY8KL2Ep/ak6S2c1uIfdjgEyw UxBSuRHbnZlYSy8PiTAjIWnfz7ut9z8rsB9qhGhGUwV6IyHd2HW6jKuNLBobY9u2UqDNEd7f JoVhhiwgctmnr6B2ra3z/CPLWk+ocLIojyQByzMjn5wl7KWlo2IoAs8f2Eh+HLRwJOfeCMPC +YOQ/DmsAAAAAAAA --------------ms010206080801030809060509--
- [Hipsec-rg] Re: Native HIP API questions in the h… Pekka Nikander
- [Hipsec-rg] Re: Native HIP API questions in the h… Joe Touch
- [Hipsec-rg] Re: Native HIP API questions in the h… Andrew McGregor
- [Hipsec-rg] Re: Native HIP API questions in the h… Joe Touch
- [Hipsec-rg] Re: Native HIP API questions in the h… Joe Touch
- [Hipsec-rg] Re: Native HIP API questions in the h… Joe Touch
- [Hipsec-rg] Re: Native HIP API questions in the h… Miika Komu
- [Hipsec-rg] Re: Native HIP API questions in the h… Tim Shepard
- [Hipsec-rg] Re: Native HIP API questions in the h… Lars Eggert
- [Hipsec-rg] Re: Native HIP API questions in the h… Tim Shepard
- [Hipsec-rg] Native HIP API questions in the hipse… Miika Komu
- [Hipsec-rg] meeting minutes from HIP-RG meeting Henderson, Thomas R