摘要 |
PURPOSE: A method for searching a subscriber processing index using a port identifier in a V5.2 Public Switched Telephone Network(PSTN) protocol is provided to use a V5.2 entity index and the port identifier in a V5.2 PSTN service which is a protocol between a local exchange(LE) and an access network(AN) in a wireless local loop(WLL), to calculate a hashing value, and to search a subscriber processor data structure index for assigning a trunk in a hashing data structure. CONSTITUTION: If a telephone service is requested to a V5.2 entity of four V5.2 entities through an optional port identifier, a public switched telephone network(PSTN) exchange generates a hashing value by using an identifier of the V5.2 entity and the port identifier(ST11). The PSTN exchange applies a modula operation to the hashing value into '10000'which is a set key size, and generates a hashing key(ST12). The PSTN exchange checks whether the hashing key exists in a hashing key table(ST13) or not. If so, the PSTN exchange finds the first index of subscriber data structures linked to the hashing key(ST14). The PSTN exchange compares a hashing key which a subscriber data structure of the first index has with the hashing key generated in the step 'ST12'. If hashing keys are equal, the PSTN exchange returns the index of the subscriber data structure to quickly find a subscriber data structure index(ST15,ST16). If the two hashing keys are not equal, the PSTN exchange checks whether a subsequent subscriber data structure index linked to the first index exists in a subscriber data structure table(ST17) or not. If the subsequent subscriber data structure index does not exist, the PSTN exchange completes the process. If the subsequent subscriber data structure index exists, the PSTN takes the subsequent subscriber data structure index of the first index as the first index to go back to the step 'ST15'(ST18). |