SanKumar2015 / EST-coaps

EST over CoAPs IETF draft
1 stars 1 forks source link

EST-coaps resource discovery (Klaus WGLC review 2/12/2019) #123

Closed csosto-pk closed 5 years ago

csosto-pk commented 5 years ago

From Klaus

The use of the well-known path "/.well-known/est" seems to follow the letter of BCP 190 but not the spirit. I don't see any reason why a well-known path is needed here. In fact, as the section emphasizes, short paths are important and an implementation will there likely want to do the "/.well-known/core"-based discovery of URIs. I would recommend that the entire use of "/.well-known/est" is dropped.

Also he pointed out that in

Resource discovery is necessary when the IP address of the server is unknown to the client.

that

Assuming that "resource directory" refers to "/.well-known/core"-based discovery of URIs, then this is wrong. If the IP address of a server is not known, then a client cannot retrieve the "/.well-known/core" of that server.

csosto-pk commented 5 years ago

Not sure why we are not following the letter of BCP 190, but I edited the resource discovery text to make it clearer and remove the incorrect comment about an unknown server IP address

The server MUST support the default /.well-known/est root resource on port 5684. The server SHOULD support resource discovery when he supports non-default URIs (like /est or /est/ArbitraryLabel) or ports. The client SHOULD use resource discovery when /.well-known/est fails or when she is unaware of the available EST-coaps resources or when she considers sending two Uri-Path Options to convey the resource wasteful.

csosto-pk commented 5 years ago

Klaus to confirm that text

The server MUST support the default /.well-known/est root resource. The server SHOULD support resource discovery when he supports non-default URIs (like /est or /est/ArbitraryLabel) or ports. The client SHOULD use resource discovery when /.well-known/est fails or when she is unaware of the available EST-coaps resources or when she considers sending two Uri-Path Options to convey the resource wasteful.

addresses his comment.