Section: 16.2 BSF address
Content: The Bootstrapping Server Function (BSF) address is in the form of a Fully Qualified Domain Name as defined in IETF RFC 1035 [19] and IETF RFC 1123 [20]. The BSF address consists of one or more labels. Each label shall consist of the alphabetic characters (A-Z and a-z), digits (0-9) and the hyphen (-) in accordance with IETF RFC 1035 [19]. Each label shall begin and end with either an alphabetic character or a digit in accordance with IETF RFC 1123 [20]. The case of alphabetic characters is not significant. For 3GPP systems, the UE shall discover the BSF address from the identity information related to the UICC application that is used during the bootstrapping procedure i.e. IMSI for USIM, or IMPI for ISIM, in the following way: - In the case where the USIM is used in bootstrapping, the BSF address shall be derived as follows: 1. take the first 5 or 6 digits, depending on whether a 2 or 3 digit MNC is used (see 3GPP TS 31.102[ Characteristics of the Universal Subscriber Identity Module (USIM) application ]  [27]) and separate them into MCC and MNC; if the MNC is 2 digits then a zero shall be added at the beginning; 2. use the MCC and MNC derived in step 1 to create the "mnc<MNC>.mcc<MCC>.pub.3gppnetwork.org" domain name; 3. add the label "bsf." to the beginning of the domain. Example 1: If IMSI in use is "234150999999999", where MCC=234, MNC=15, and MSIN=0999999999, the BSF address would be "bsf.mnc015.mcc234.pub.3gppnetwork.org". - In the case where ISIM is used in bootstrapping, the BSF address shall be derived as follows: 1. extract the domain name from the IMPI; 2. if the last two labels of the domain name extracted from the IMPI are "3gppnetwork.org": a. the first label is "bsf"; b. the next labels are all labels of the domain name extracted from the IMPI apart from the last two labels; and c. the last three labels are "pub.3gppnetwork.org"; Example 2: If the IMPI in use is "234150999999999@ims.mnc015.mcc234.3gppnetwork.org", the BSF address would be "bsf.ims.mnc015.mcc234.pub.3gppnetwork.org". 3. if the last two labels of the domain name extracted from the IMPI are other than the "3gppnetwork.org": a. add the label "bsf." to the beginning of the domain. Example 3: If the IMPI in use is "user@operator.com", the BSF address would be "bsf.operator.com ".