: Advertising relay application-id and the election process.
Jan Nordqvist <[email protected]> Wed, 07 Sep 2005 11:28:37 -0700
| Newsgroups | gmane.ietf.aaa |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I have two questions for the group in regards to the Diameter base protocol: 1. Has there been any discussion within the group as to what AVP to use when advertising the Relay application ID in CEA/CER's? RFC-3588 only states that the relay application may be advertised, but not by what means. 2. A totally different and unrelated issue is in regards to the election process, more specifically the Origin-Host comparison described in RFC-3588 section 5.6.4. Quote from the RFC: The election is performed on the responder. The responder compares the Origin-Host received in the CER sent by its peer with its own Origin-Host. If the local Diameter entity's Origin-Host is higher than the peer's, a Win-Election event is issued locally. The comparison proceeds by considering the shorter OctetString to be padded with zeros so that it length is the same as the length of the longer, then performing an octet-by-octet unsigned comparison with the first octet being most significant. Any remaining octets are assumed to have value 0x80. The text is very confusing and contradicting: The statement about padding in the second paragraph mentions nothing about where the padding is applied, i.e. to the right, left or possibly some other method. Then, in the second sentence, it is stated that any remaining octets are assumed to contain the value 0x80. How can there be any remaining octets when the lengths are made the same through padding? Would it be reasonable to assume that the following intuitive interpretation is valid: "The two OctetStrings are compared byte by byte, starting with the left-most byte of each OctetString and stopping at either the first differing octet or at the end of one or both OctetStrings. If a differing octet is encountered, the OctetString containing the byte with a higher unsigned value is considered higher, otherwise the longer of the two OctetStrings is considered higher." Feedback most appreciated, Jan Nordqvist, Lucent Technologies.